From 4bd155d1ed22b174f0a5c24b235fe0ac7678c402 Mon Sep 17 00:00:00 2001 From: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com> Date: Tue, 22 Dec 2020 17:43:57 +0100 Subject: [PATCH] feature(protecodeExecuteScan) proper Vault support (#2483) --- cmd/protecodeExecuteScan_generated.go | 12 ++++++++++++ resources/metadata/protecode.yaml | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/cmd/protecodeExecuteScan_generated.go b/cmd/protecodeExecuteScan_generated.go index 7155900aa..60bab6e1b 100644 --- a/cmd/protecodeExecuteScan_generated.go +++ b/cmd/protecodeExecuteScan_generated.go @@ -321,6 +321,12 @@ func protecodeExecuteScanMetadata() config.StepData { Param: "username", Type: "secret", }, + + { + Name: "", + Paths: []string{"$(vaultPath)/protecode", "$(vaultBasePath)/$(vaultPipelineName)/protecode", "$(vaultBasePath)/GROUP-SECRETS/protecode"}, + Type: "vaultSecret", + }, }, Scope: []string{"PARAMETERS", "STAGES", "STEPS"}, Type: "string", @@ -335,6 +341,12 @@ func protecodeExecuteScanMetadata() config.StepData { Param: "password", Type: "secret", }, + + { + Name: "", + Paths: []string{"$(vaultPath)/protecode", "$(vaultBasePath)/$(vaultPipelineName)/protecode", "$(vaultBasePath)/GROUP-SECRETS/protecode"}, + Type: "vaultSecret", + }, }, Scope: []string{"PARAMETERS", "STAGES", "STEPS"}, Type: "string", diff --git a/resources/metadata/protecode.yaml b/resources/metadata/protecode.yaml index 727ad5eeb..5cb4040e6 100644 --- a/resources/metadata/protecode.yaml +++ b/resources/metadata/protecode.yaml @@ -174,6 +174,11 @@ spec: - name: protecodeCredentialsId type: secret param: username + - type: vaultSecret + paths: + - $(vaultPath)/protecode + - $(vaultBasePath)/$(vaultPipelineName)/protecode + - $(vaultBasePath)/GROUP-SECRETS/protecode - name: password type: string description: Password which is used for the user @@ -187,6 +192,11 @@ spec: - name: protecodeCredentialsId type: secret param: password + - type: vaultSecret + paths: + - $(vaultPath)/protecode + - $(vaultBasePath)/$(vaultPipelineName)/protecode + - $(vaultBasePath)/GROUP-SECRETS/protecode - name: artifactVersion type: string description: The version of the artifact to allow identification in protecode backend