1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-10-30 23:57:50 +02:00

feature(protecodeExecuteScan) proper Vault support (#2483)

This commit is contained in:
Oliver Nocon
2020-12-22 17:43:57 +01:00
committed by GitHub
parent b101106a05
commit 4bd155d1ed
2 changed files with 22 additions and 0 deletions

View File

@@ -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",

View File

@@ -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