Skip to content

nodus.secret

View Markdown

Secret references (resources.md §5.2). Values are write-only: nothing the API returns contains them.

class Secret(name: str | None = None, *, data: dict[str, str] | None = None, type: str = 'Opaque') -> None

A named Secret, or inline values that become one when first used.

from_name never touches the network. from_dict and from_dotenv are stored as <app>-<hash8> each time an App using them is published (owned by that App object and removed with it), or as sdk-<hash8> outside an App.

create(name: str, data: dict[str, str], type: str = 'Opaque', project: str | None = None) -> _Secret

Create the Secret, or write a new version when it exists (running attempts keep their pinned version).

from_dict(data: dict[str, str]) -> _Secret
from_dotenv(path: str | Path = '.env') -> _Secret
from_name(name: str) -> _Secret

Type: str | None