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:
parent
2b460fec5b
commit
6b29f46f3b
2 changed files with 14 additions and 0 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue