Skip to content

Commit

Permalink
Add secrets to secretmgr
Browse files Browse the repository at this point in the history
Terraform creates the secrets,
and k8s then mounts them in the pod
  • Loading branch information
tfhartmann committed Jan 23, 2025
1 parent 0e35d59 commit 0e69f45
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deployment/dev/backstage/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ spec:
path: "backstage-insights-token"
- resourceName: "projects/bits-backstage-dev/secrets/backstage-license-key/versions/latest"
path: "backstage-license-key"
- resourceName: "projects/bits-backstage-dev/secrets/backstage-skills-slack-bot-token/versions/latest"
path: "backstage-skills-slack-bot-token"
- resourceName: "projects/bits-backstage-dev/secrets/backstage-skills-slack-app-token/versions/latest"
path: "backstage-skills-slack-app-token"
- resourceName: "projects/bits-backstage-dev/secrets/backstage-skills-slack-signing-secrets/versions/latest"
path: "backstage-skills-slack-signing-secret"
12 changes: 12 additions & 0 deletions deployment/dev/terraform/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,16 @@ google_secret_manager_secrets = {
service = "backstage"
type = "string"
},
backstage-skills-slack-bot-token = {
service = "backstage"
type = "string"
},
backstage-skills-slack-app-token = {
service = "backstage"
type = "string"
},
backstage-skills-slack-signing-secret = {
service = "backstage"
type = "string"
},
}
6 changes: 6 additions & 0 deletions deployment/prod/backstage/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ spec:
path: "backstage-insights-token"
- resourceName: "projects/bits-backstage-prod/secrets/backstage-license-key/versions/latest"
path: "backstage-license-key"
- resourceName: "projects/bits-backstage-prod/secrets/backstage-skills-slack-bot-token/versions/latest"
path: "backstage-skills-slack-bot-token"
- resourceName: "projects/bits-backstage-prod/secrets/backstage-skills-slack-app-token/versions/latest"
path: "backstage-skills-slack-app-token"
- resourceName: "projects/bits-backstage-prod/secrets/dec-skills-slack-signing-secrets/versions/latest"
path: "backstage-skills-slack-signing-secret"
12 changes: 12 additions & 0 deletions deployment/prod/terraform/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,16 @@ google_secret_manager_secrets = {
service = "backstage"
type = "string"
},
backstage-skills-slack-bot-token = {
service = "backstage"
type = "string"
},
backstage-skills-slack-app-token = {
service = "backstage"
type = "string"
},
backstage-skills-slack-signing-secret = {
service = "backstage"
type = "string"
},
}

0 comments on commit 0e69f45

Please sign in to comment.