Skip to content

Commit 579cf56

Browse files
update linkding to use own oidc
1 parent 3197477 commit 579cf56

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

clusters/svc.dd.soeren.cloud/linkding/external-secret-linkding.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ spec:
2828
remoteRef:
2929
key: "secret/soeren.cloud/env/prod/linkding"
3030
property: "POSTGRES_USER"
31+
- secretKey: "OIDC_RP_CLIENT_ID"
32+
remoteRef:
33+
key: "soeren.cloud/env/prod/keycloak/soerencloud/clients/linkding"
34+
property: "client_id"
35+
- secretKey: "OIDC_RP_CLIENT_SECRET"
36+
remoteRef:
37+
key: "soeren.cloud/env/prod/keycloak/soerencloud/clients/linkding"
38+
property: "secret_id"

clusters/svc.dd.soeren.cloud/linkding/kustomization.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,21 @@ resources:
77
- namespace.yaml
88
- postgres-pv.yaml
99
- external-secret-linkding.yaml
10-
- external-secret-oauth2-proxy.yaml
1110
components:
1211
- ../../../apps/linkding/components/istio
1312
- ../../../apps/linkding/components/oidc
1413
- ../../../apps/linkding/components/postgres
1514
- ../../../apps/linkding/components/postgres-pvc
1615
- ../../../apps/linkding/components/restic-postgres
1716
configMapGenerator:
18-
- name: oauth2-proxy # TODO: https://github.com/kubernetes-sigs/kustomize/issues/4402
17+
- name: linkding
18+
behavior: merge
1919
literals:
20-
- OAUTH2_PROXY_OIDC_ISSUER_URL=https://keycloak.svc.dd.soeren.cloud/realms/myrealm
20+
- OIDC_OP_AUTHORIZATION_ENDPOINT=https://auth.dd.soeren.cloud/realms/soerencloud/protocol/openid-connect/auth
21+
- OIDC_OP_TOKEN_ENDPOINT=https://auth.dd.soeren.cloud/realms/soerencloud/protocol/openid-connect/token
22+
- OIDC_OP_USER_ENDPOINT=https://auth.dd.soeren.cloud/realms/soerencloud/protocol/openid-connect/userinfo
23+
- OIDC_OP_JWKS_ENDPOINT=https://auth.dd.soeren.cloud/realms/soerencloud/protocol/openid-connect/certs
24+
- OIDC_OP_LOGOUT_ENDPOINT=https://auth.dd.soeren.cloud/realms/soerencloud/protocol/openid-connect/logout
2125
patches:
2226
- target:
2327
kind: Deployment

0 commit comments

Comments
 (0)