Skip to main content
Novita.secret``.get() fetches the metadata of an active Secret by name. It returns SecretBinding metadata and does not return the real value. Use it to confirm a Secret exists and inspect its host allow list before referencing it from a sandbox.

Prerequisites

CLI

Example

The example ensures a Secret exists, fetches its metadata with novita.secret.get(), launches a sandbox that references it, uses the placeholder from inside the sandbox, and kills the sandbox when done.
novita.secret.get() returns SecretBinding metadata only — it never returns the real value. If the name does not exist or has been deleted, the call returns 404 Not Found.
Last modified on August 6, 2026