1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

fix(cloudfoundry): fetch credentials from vault (#2444)

This commit is contained in:
Kevin Stiehl 2020-12-03 18:30:32 +01:00 committed by GitHub
parent e1d140e513
commit 7d275b3ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 40 additions and 40 deletions

View File

@ -147,7 +147,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},
@ -167,7 +167,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},

View File

@ -131,7 +131,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},
@ -151,7 +151,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},

View File

@ -147,7 +147,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},
@ -167,7 +167,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},

View File

@ -128,7 +128,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},
@ -148,7 +148,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},

View File

@ -407,7 +407,7 @@ func cloudFoundryDeployMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},
@ -451,7 +451,7 @@ func cloudFoundryDeployMetadata() config.StepData {
{
Name: "",
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
Type: "vaultSecret",
},
},

View File

@ -40,9 +40,9 @@ spec:
param: username
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
- name: password
type: string
description: Password for Cloud Foundry User
@ -58,9 +58,9 @@ spec:
param: password
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
- name: cfOrg
type: string
description: Cloud Foundry org

View File

@ -48,9 +48,9 @@ spec:
param: username
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
- name: password
type: string
description: Password for Cloud Foundry User
@ -66,9 +66,9 @@ spec:
param: password
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
- name: cfOrg
type: string
description: Cloud Foundry org

View File

@ -36,9 +36,9 @@ spec:
param: username
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
- name: password
type: string
description: User Password for CF User
@ -54,9 +54,9 @@ spec:
param: password
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
- name: cfOrg
type: string
description: CF org

View File

@ -36,9 +36,9 @@ spec:
param: username
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
- name: password
type: string
description: User Password for CF User
@ -54,9 +54,9 @@ spec:
param: password
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
- name: cfOrg
type: string
description: CF org

View File

@ -302,9 +302,9 @@ spec:
param: password
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
- name: smokeTestScript
type: string
description:
@ -357,9 +357,9 @@ spec:
param: username
- type: vaultSecret
paths:
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
- $(vaultPath)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
containers:
- name: cfDeploy
image: ppiper/cf-cli