This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/pkg/dagger.io/dagger/engine/transformsecret.cue
Richard Jones 86bf3bad86
transform secret
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-13 15:04:35 -07:00

18 lines
471 B
CUE

package engine
// Securely apply a CUE transformation on the contents of a secret
#TransformSecret: {
$dagger: task: _name: "TransformSecret"
// The original secret
input: #Secret
// A new secret with the transformation applied
output: #Secret
// Transformation function
#function: {
// Full contents of the input secret (only available to the function)
input: string
// New contents of the output secret (must provided by the caller)
output: string
}
}