diff --git a/changelog/unreleased/fix-ocis-multi-marketplace-csp.md b/changelog/unreleased/fix-ocis-multi-marketplace-csp.md new file mode 100644 index 00000000000..d48e2f1e698 --- /dev/null +++ b/changelog/unreleased/fix-ocis-multi-marketplace-csp.md @@ -0,0 +1,7 @@ +Enhancement: Allow ownCloud Marketplace in ocis_multi CSP + +The `ocis_multi` deployment example's default Content-Security-Policy configuration +was updated to allow connections to the new ownCloud Marketplace domain, matching +the change already applied to the other deployment examples. + +https://github.com/owncloud/ocis/pull/13090 diff --git a/deployments/examples/ocis_multi/config/keycloak/docker-entrypoint-override.sh b/deployments/examples/ocis_multi/config/keycloak/docker-entrypoint-override.sh index 43141975abb..03a66b9a36c 100644 --- a/deployments/examples/ocis_multi/config/keycloak/docker-entrypoint-override.sh +++ b/deployments/examples/ocis_multi/config/keycloak/docker-entrypoint-override.sh @@ -2,7 +2,7 @@ printenv # replace oCIS domain in keycloak realm import mkdir /opt/keycloak/data/import -sed -e "s/ocis.owncloud.test/${OCIS_DOMAIN}/g" /opt/keycloak/data/import-dist/ocis-realm.json > /opt/keycloak/data/import/oCIS-realm.json +sed -e "s/ocis.owncloud.test/${OCIS_DOMAIN}/g" -e "s/ocis.ocm.owncloud.test/${OCIS_OCM_DOMAIN}/g" /opt/keycloak/data/import-dist/ocis-realm.json > /opt/keycloak/data/import/oCIS-realm.json # sed -e "s/ocis.ocm.owncloud.test/${OCIS_OCM_DOMAIN}/g" /opt/keycloak/data/import-dist/ocis-realm.json > /opt/keycloak/data/import/oCIS-realm.json # run original docker-entrypoint diff --git a/deployments/examples/ocis_multi/config/ocis/csp-ocm.yaml b/deployments/examples/ocis_multi/config/ocis/csp-ocm.yaml index 4d55599de93..feb25fc2a4e 100644 --- a/deployments/examples/ocis_multi/config/ocis/csp-ocm.yaml +++ b/deployments/examples/ocis_multi/config/ocis/csp-ocm.yaml @@ -5,6 +5,7 @@ directives: - '''self''' - 'blob:' - 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' + - 'https://marketplace.owncloud.com/' - 'https://${KEYCLOAK_DOMAIN|keycloak.owncloud.test}/' default-src: - '''none''' @@ -24,6 +25,7 @@ directives: - 'data:' - 'blob:' - 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' + - 'https://marketplace.owncloud.com/' manifest-src: - '''self''' media-src: diff --git a/deployments/examples/ocis_multi/config/ocis/csp.yaml b/deployments/examples/ocis_multi/config/ocis/csp.yaml index 3bbcf892a47..cea3bce68a1 100644 --- a/deployments/examples/ocis_multi/config/ocis/csp.yaml +++ b/deployments/examples/ocis_multi/config/ocis/csp.yaml @@ -5,6 +5,7 @@ directives: - '''self''' - 'blob:' - 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' + - 'https://marketplace.owncloud.com/' # In contrary to bash and docker the default is given after the | character - 'https://${KEYCLOAK_DOMAIN|keycloak.owncloud.test}/' default-src: @@ -23,6 +24,7 @@ directives: - 'data:' - 'blob:' - 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' + - 'https://marketplace.owncloud.com/' manifest-src: - '''self''' media-src: diff --git a/deployments/examples/ocis_multi/docker-compose.yml b/deployments/examples/ocis_multi/docker-compose.yml index 67ca9868ddc..d9413ec2d54 100644 --- a/deployments/examples/ocis_multi/docker-compose.yml +++ b/deployments/examples/ocis_multi/docker-compose.yml @@ -192,7 +192,8 @@ services: OCIS_LDAP_BIND_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin} OCIS_LDAP_GROUP_BASE_DN: "ou=groups,dc=owncloud,dc=com" GRAPH_LDAP_GROUP_CREATE_BASE_DN: "ou=groups-8d24cb5f-6ee6-4b98-86df-c4c268dddb46,ou=groups,dc=owncloud,dc=com" - OCIS_LDAP_GROUP_OBJECTCLASS: "owncloudGroup" + OCIS_LDAP_GROUP_OBJECTCLASS: "groupOfNames" + OCIS_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES: "ownCloudGroup" OCIS_LDAP_USER_BASE_DN: "ou=users,dc=owncloud,dc=com" OCIS_LDAP_USER_OBJECTCLASS: "inetOrgPerson" LDAP_LOGIN_ATTRIBUTES: "uid" @@ -272,6 +273,7 @@ services: - "./config/keycloak/ocis-realm.dist.json:/opt/keycloak/data/import-dist/ocis-realm.json" environment: OCIS_DOMAIN: ${OCIS_DOMAIN:-ocis.owncloud.test} + OCIS_OCM_DOMAIN: ${OCIS_OCM_DOMAIN:-ocis.ocm.owncloud.test} KC_HOSTNAME: ${KEYCLOAK_DOMAIN:-keycloak.owncloud.test} KC_DB: postgres KC_DB_URL: "jdbc:postgresql://postgres:5432/keycloak"