Secret

A Secret is an object containing sensitive information, or a handle to a secured keypair (such as a general RSA keypair or an SSH keypair).

Scope

A secret can be created in one of the following scopes:

Kind

A secret can be created as one of the following kinds:

Access

The content of a Secret-kind secret can only be accessed in one of the following ways:

Filesystem Access

Org-level secrets are mounted under both /run/sandbox/fs/secrets/shared and /run/sandbox/fs/secrets/owner.

Private secrets in an org are mounted under /run/sandbox/fs/secrets/owner and override org-level secrets with the same name.

Private secrets are only mounted when the sandbox sharing mode is Private, or they are explicitly listed in Collaborated mode. They are unmounted when the sandbox is in Shared mode.

Org-level secrets marked as not mountable are never mounted in the filesystem.

Org-level secrets marked as admin only are only mounted when the corresponding workspace is in admin-only restriction mode.

Filesystem Example

Given the following org-level secrets:

And a private sandbox whose owner has these private secrets:

The workspace filesystem of the sandbox will contain:

Path Content
/run/sandbox/fs/secrets/shared/cred0 credential 0
/run/sandbox/fs/secrets/shared/cred1 credential 1
/run/sandbox/fs/secrets/owner/cred0 credential 0
/run/sandbox/fs/secrets/owner/my-cred my special token
/run/sandbox/fs/secrets/owner/cred1 my credential (overrides org-level cred1)
/run/sandbox/fs/secrets/owner/default-ssh-0 The SSH public key of the owner's managed SSH keypair

When the sandbox is in Shared mode, the folder /run/sandbox/fs/secrets/owner contains only default-ssh-0.

See Also