supports map of secrets; errors redact plaintext

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2022-01-06 13:13:51 -07:00
parent 86ae230261
commit 05820f3a67
5 changed files with 41 additions and 18 deletions

View File

@@ -19,7 +19,7 @@ engine.#Plan & {
input: inputs.secrets.sops.contents
#function: {
input: _
output: yaml.Unmarshal(input).DOCKERHUB_TOKEN
output: yaml.Unmarshal(input)
}
}
@@ -29,7 +29,7 @@ engine.#Plan & {
target: "daggerio/ci-test:private-pull"
username: "daggertest"
secret: dockerHubToken.output
secret: dockerHubToken.output.DOCKERHUB_TOKEN.contents
}]
dockerfile: contents: """
FROM daggerio/ci-test:private-pull@sha256:c74f1b1166784193ea6c8f9440263b9be6cae07dfe35e32a5df7a31358ac2060

View File

@@ -21,7 +21,7 @@ engine.#Plan & {
input: inputs.secrets.sops.contents
#function: {
input: _
output: yaml.Unmarshal(input).TestPAT
output: yaml.Unmarshal(input)
}
}
@@ -30,7 +30,7 @@ engine.#Plan & {
ref: "main"
auth: {
username: "dagger-test"
password: repoPassword.output
password: repoPassword.output.TestPAT.contents
}
}