fix(opencloud): add CSP config to allow Pocket ID OIDC auth

Browser was blocking fetch of https://auth.basicstack.de/.well-known/openid-configuration
due to missing connect-src directive in Content-Security-Policy.

Adds csp.yaml to the ConfigMap (mounted at /etc/opencloud/csp.yaml) with
extended connect-src that includes auth.basicstack.de and WebSocket origins.
Sets PROXY_CSP_CONFIG_FILE_LOCATION env var so the proxy service picks it up.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
CTO Agent 2026-07-05 15:14:26 +00:00
parent 2b460fec5b
commit 6b29f46f3b
2 changed files with 14 additions and 0 deletions

View file

@ -60,3 +60,15 @@ data:
gateway: gateway:
storage_registry: storage_registry:
storage_users_mount_id: ${OC_STORAGE_MOUNT_ID} storage_users_mount_id: ${OC_STORAGE_MOUNT_ID}
csp.yaml: |
directives:
connect-src:
- "'self'"
- "blob:"
- "https://raw.githubusercontent.com/opencloud-eu/awesome-apps/"
- "https://update.opencloud.eu/"
- "https://opencloud.basicstack.de"
- "https://auth.basicstack.de"
- "wss://opencloud.basicstack.de"
- "wss://auth.basicstack.de"

View file

@ -165,6 +165,8 @@ spec:
value: "openid profile email groups" value: "openid profile email groups"
# Proxy service OIDC configuration # Proxy service OIDC configuration
- name: PROXY_CSP_CONFIG_FILE_LOCATION
value: "/etc/opencloud/csp.yaml"
- name: PROXY_OIDC_ISSUER - name: PROXY_OIDC_ISSUER
value: "https://auth.basicstack.de" value: "https://auth.basicstack.de"
- name: PROXY_OIDC_REWRITE_WELLKNOWN - name: PROXY_OIDC_REWRITE_WELLKNOWN