2024-05-04 16:41:54 +02:00
|
|
|
package options
|
|
|
|
|
|
|
|
|
|
// SecretSource references an individual secret value.
|
|
|
|
|
// Only one source within the struct should be defined at any time.
|
|
|
|
|
type SecretSource struct {
|
2025-07-26 12:46:17 +02:00
|
|
|
// Value expects a base64 encoded string value.
|
2025-07-25 13:29:22 +02:00
|
|
|
Value []byte `yaml:"value,omitempty"`
|
2024-05-04 16:41:54 +02:00
|
|
|
|
|
|
|
|
// FromEnv expects the name of an environment variable.
|
2025-02-09 17:23:03 +01:00
|
|
|
FromEnv string `yaml:"fromEnv,omitempty"`
|
2024-05-04 16:41:54 +02:00
|
|
|
|
|
|
|
|
// FromFile expects a path to a file containing the secret value.
|
2025-02-09 17:23:03 +01:00
|
|
|
FromFile string `yaml:"fromFile,omitempty"`
|
2024-05-04 16:41:54 +02:00
|
|
|
}
|