Skip to main content
Version: v0.11

secret

Schema Secret

Secrets are used to provide data that is considered sensitive like passwords, API keys,
TLS certificates, tokens or other credentials.

Attributes

nametypedescriptiondefault value
data{str:str}Data contains the non-binary secret data in string form.
immutableboolImmutable, if set to true, ensures that data stored in the Secret cannot be updated.
params{str:str}Collection of parameters used to facilitate programmatic handling of secret data.
type required"basic""token""opaque"

Examples

import kam.workload.secret as sec

basicAuth = sec.Secret {
type: "basic"
data: {
"username": ""
"password": ""
}
}