nodus.secret
View MarkdownSecret references (resources.md §5.2). Values are write-only: nothing the API returns contains them.
Secret
Section titled “Secret”class Secret(name: str | None = None, *, data: dict[str, str] | None = None, type: str = 'Opaque') -> NoneA 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.
Secret.create
Section titled “Secret.create”create(name: str, data: dict[str, str], type: str = 'Opaque', project: str | None = None) -> _SecretCreate the Secret, or write a new version when it exists (running attempts keep their pinned version).
Secret.from_dict
Section titled “Secret.from_dict”from_dict(data: dict[str, str]) -> _SecretSecret.from_dotenv
Section titled “Secret.from_dotenv”from_dotenv(path: str | Path = '.env') -> _SecretSecret.from_name
Section titled “Secret.from_name”from_name(name: str) -> _SecretSecret.name
Section titled “Secret.name”Type: str | None