feat: manage postgres-credentials for artifactapi3 (#194)

pull credentials for postgres/cnpg from vault

---------

Co-authored-by: Ben Vincent <ben@unkin.net>
Reviewed-on: #194
This commit was merged in pull request #194.
This commit is contained in:
2026-06-21 17:26:26 +10:00
parent 349dc5fd01
commit cae42b4896
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ spec:
localeCollate: C
owner: artifacts
secret:
name: postgres-password
name: postgres-credentials
enablePDB: true
enableSuperuserAccess: false
failoverDelay: 0
@@ -32,3 +32,20 @@ spec:
refreshAfter: 5m
type: kv-v2
vaultAuthRef: default
---
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultStaticSecret
metadata:
name: postgres-credentials
namespace: puppet
spec:
destination:
create: true
name: postgres-credentials
overwrite: true
hmacSecretData: true
mount: kv
path: service/artifactapi/postgres-credentials
refreshAfter: 5m
type: kv-v2
vaultAuthRef: default