Skip to main content

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.

API reference

A reference to a secret value, which can be handled more safely than the value itself.

Implements Node

id: ID!

A unique identifier for this Secret.

name: String!

The name of this secret.

plaintext: String!

The value of this secret.

uri: String!

The URI of this secret.

References

Returned by

Accepted as an argument by