fix security issue of using default auth secret
ci/woodpecker/push/flux-reconcile-source Pipeline was successful

This commit is contained in:
2026-07-04 22:28:37 +02:00
parent 1680761f1f
commit 961dfd5e03
4 changed files with 32 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
---
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultStaticSecret
metadata:
name: kaneo-app-secret
namespace: kaneo
spec:
type: kv-v2
mount: secret
path: kaneo
destination:
create: true
name: kaneo-app-secret
type: Opaque
transformation:
excludeRaw: true
templates:
auth_secret:
text: '{{ get .Secrets "auth_secret" }}'
vaultAuthRef: kaneo
+1
View File
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- app-secret.yaml
- oauth-secret.yaml
- postgres-volume.yaml
- postgres-cluster.yaml
+4
View File
@@ -58,6 +58,10 @@ spec:
env:
clientUrl: "https://kaneo.lumpiasty.xyz"
disablePasswordRegistration: true
existingSecret:
enabled: true
name: kaneo-app-secret
key: auth_secret
database:
external:
enabled: true
+4
View File
@@ -1,3 +1,7 @@
path "secret/data/authentik/kaneo" {
capabilities = ["read"]
}
path "secret/data/kaneo" {
capabilities = ["read"]
}