Skip to main content
Version: 0.21.7

Secret

Dagger allows you to utilize confidential information ("secrets") such as passwords, API keys, SSH keys and so on, without exposing those secrets in plaintext logs, writing them into the filesystem of containers you're building, or inserting them into the cache. The Secret type is used to represent these secret values.

Common operations

Some of the common operations you can perform with a Secret include:

FieldDescription
nameReturns the name of the secret
plaintextReturns the plaintext value of the secret