Skip to content

Commit

Permalink
feat(podfetch): enable sso
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-dclrcq committed Dec 31, 2024
1 parent d040a33 commit 59cd356
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions kubernetes/apps/media/podfetch/app/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: podfetch
spec:
secretStoreRef:
name: hashicorp-vault
kind: ClusterSecretStore
target:
name: podfetch-secret
template:
type: Opaque
data:
OIDC_AUTH: "true"
OIDC_AUTHORITY: "https://sso.${SECRET_DOMAIN}/application/o/podfetch/"
OIDC_CLIENT_ID: '{{ .PODFETCH_CLIENT_ID }}'
OIDC_REDIRECT_URI: "https://podcasts.${SECRET_DOMAIN}/ui/login"
OIDC_SCOPE: "openid profile email"
OIDC_JWKS: "https://sso.${SECRET_DOMAIN}/application/o/podfetch/jwks/"
dataFrom:
- extract:
key: media/podfetch/config
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: podfetch-db
spec:
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/apps/media/podfetch/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
SERVER_URL: "https://podcasts.${SECRET_DOMAIN}"

envFrom:
- secretRef:
name: podfetch-secret
- secretRef:
name: podfetch-db-secret

Expand Down

0 comments on commit 59cd356

Please sign in to comment.