1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +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: "", 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", Type: "vaultSecret",
}, },
}, },
@ -167,7 +167,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
{ {
Name: "", 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", Type: "vaultSecret",
}, },
}, },

View File

@ -131,7 +131,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
{ {
Name: "", 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", Type: "vaultSecret",
}, },
}, },
@ -151,7 +151,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
{ {
Name: "", 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", Type: "vaultSecret",
}, },
}, },

View File

@ -147,7 +147,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
{ {
Name: "", 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", Type: "vaultSecret",
}, },
}, },
@ -167,7 +167,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
{ {
Name: "", 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", Type: "vaultSecret",
}, },
}, },

View File

@ -128,7 +128,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
{ {
Name: "", 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", Type: "vaultSecret",
}, },
}, },
@ -148,7 +148,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
{ {
Name: "", 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", Type: "vaultSecret",
}, },
}, },

View File

@ -407,7 +407,7 @@ func cloudFoundryDeployMetadata() config.StepData {
{ {
Name: "", 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", Type: "vaultSecret",
}, },
}, },
@ -451,7 +451,7 @@ func cloudFoundryDeployMetadata() config.StepData {
{ {
Name: "", 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", Type: "vaultSecret",
}, },
}, },

View File

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

View File

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

View File

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

View File

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

View File

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