Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8119e0fd0 | ||
|
|
2063b84b8f | ||
|
|
a3601009ac | ||
|
|
86105b86af | ||
|
|
6dc967e583 | ||
|
|
af7d39d1b6 | ||
|
|
e21e19470b | ||
|
|
74ae9bf88d | ||
|
|
d9bae04aee | ||
|
|
5a2c1cc351 | ||
|
|
4684d3d4ee | ||
|
|
c53e2f773e | ||
|
|
3b5bad6ade | ||
|
|
81527e98e4 | ||
|
|
36d5089424 | ||
|
|
f6628b6264 | ||
|
|
597104629a | ||
|
|
6d3e10c120 | ||
|
|
8ea724c8a4 | ||
|
|
90148451c8 | ||
|
|
101e9d6404 | ||
|
|
07f2a8bba9 | ||
|
|
1d70560428 | ||
|
|
3da140042c | ||
|
|
f975f00120 | ||
|
|
e1ee0d01ef | ||
|
|
d498d9b42d | ||
|
|
40d257726a | ||
|
|
42cb013e8f | ||
|
|
003e8cddb8 | ||
|
|
8011fcb7e6 | ||
|
|
c1457168c3 | ||
|
|
78313a52fe | ||
|
|
092be75ca0 | ||
|
|
1a43d7ddc0 | ||
|
|
f1dbac418b | ||
|
|
19c1cd2fa2 | ||
|
|
fc34bd9824 | ||
|
|
1745797d2b | ||
|
|
4390b44b02 | ||
|
|
0acfcb4040 | ||
|
|
3a98e41689 | ||
|
|
3b7d0006a7 | ||
|
|
58a0bd9dea | ||
|
|
afa8790227 | ||
|
|
2ea716aea4 | ||
|
|
4ba02000fa | ||
|
|
0e591928c8 | ||
|
|
09299e4ab0 | ||
|
|
604a680a03 | ||
|
|
6d1d0590e2 | ||
|
|
5a23c88296 | ||
|
|
ebda376ae1 | ||
|
|
1a32e4d8c5 | ||
|
|
1cfce945bb | ||
|
|
5d4f19a9c4 | ||
|
|
d6bc1e2400 | ||
|
|
8afeec9c5b | ||
|
|
0450a0d6aa | ||
|
|
91f0671153 | ||
|
|
898f89c697 | ||
|
|
b708076e67 | ||
|
|
8dc7afc07c | ||
|
|
7dcc74c3dd | ||
|
|
e70497b49c | ||
|
|
b395d08db6 | ||
|
|
1d16dd9e1e | ||
|
|
86fa96362a | ||
|
|
f005d68eae | ||
|
|
d68b53c6d8 | ||
|
|
f8b861c723 | ||
|
|
8b675b2e51 | ||
|
|
9f72d77bfc | ||
|
|
30009ff770 | ||
|
|
50141f471b | ||
|
|
d65f3fc215 | ||
|
|
1256793012 | ||
|
|
cdcabdb527 | ||
|
|
2f70a6856f | ||
|
|
eb06e23a09 | ||
|
|
604cb5a069 | ||
|
|
6361b52b7f | ||
|
|
5e7ce5c7de | ||
|
|
63b0cdda0e | ||
|
|
31ccffa99c | ||
|
|
5f1dbeca53 | ||
|
|
5eb6366a6c | ||
|
|
53fa0f0691 | ||
|
|
c3a6f52502 | ||
|
|
2ed2f8697b | ||
|
|
7c87568713 | ||
|
|
b265241288 | ||
|
|
7b284878f5 | ||
|
|
c20900419e | ||
|
|
bfda167e31 | ||
|
|
77560da057 | ||
|
|
ad9ccdc93b | ||
|
|
5bf887a570 | ||
|
|
fa077e7eeb | ||
|
|
382d95a3eb | ||
|
|
aa9aa9b454 | ||
|
|
37222116c0 | ||
|
|
b49335fce6 | ||
|
|
380273bb84 | ||
|
|
5112d837a8 |
No files matched your search
@@ -1,3 +1,6 @@
|
||||
# SPDX-FileCopyrightText: ownCloud GmbH - A Kiteworks Company and ownCloud contributors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Managed by owncloud/admin — edit codeowners/ownership.yml, not this file.
|
||||
# Generated by scripts/sync-codeowners.py. Last matching pattern wins.
|
||||
* @owncloud/ocis-maintainers
|
||||
@@ -217,6 +217,7 @@ jobs:
|
||||
- apiOcm
|
||||
# collaboration (needs WOPI)
|
||||
- apiCollaboration
|
||||
- apiVault
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
|
||||
@@ -314,6 +315,41 @@ jobs:
|
||||
- name: Run ${{ matrix.suite }}
|
||||
run: BEHAT_SUITES="${{ matrix.suite }}" python3 tests/acceptance/run-github.py
|
||||
|
||||
ldap-pool-tests:
|
||||
needs: [build-and-test]
|
||||
name: ldapPool-${{ matrix.suite }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
suite:
|
||||
- apiGraphUser,apiGraph,apiGraphGroup
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
tools: composer
|
||||
|
||||
- name: Install libvips runtime
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
- name: Restore binary permissions
|
||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
||||
|
||||
- name: Run ${{ matrix.suite }} with OCIS_LDAP_POOL_ENABLED=true
|
||||
run: BEHAT_SUITES="${{ matrix.suite }}" OCIS_LDAP_POOL_ENABLED=true python3 tests/acceptance/run-github.py
|
||||
|
||||
core-api-tests:
|
||||
name: ${{ matrix.suite }}
|
||||
needs: [build-and-test]
|
||||
@@ -694,8 +730,70 @@ jobs:
|
||||
- name: Run WOPI validator (cs3)
|
||||
run: python3 tests/acceptance/run-wopi.py --type cs3
|
||||
|
||||
external-ldap-tests:
|
||||
name: external-ldap-smoke
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
# web/idp assets must be embedded for `ocis server` to come up (same as run-github.py)
|
||||
- name: Generate assets
|
||||
run: make ci-node-generate
|
||||
|
||||
- name: Build oCIS
|
||||
run: make -C ocis build
|
||||
|
||||
# Boots an external osixia LDAP + oCIS (embedded idm excluded) and runs the
|
||||
# smoke scope against the graph API — exercises the external-directory
|
||||
# read-after-write / retry path (OCISDEV-1030/1032/1033) that the embedded-idm
|
||||
# acceptance jobs never hit.
|
||||
- name: Run external-LDAP smoke
|
||||
run: tests/ldap-smoke/run.sh
|
||||
|
||||
external-ldap-distributed-tests:
|
||||
name: external-ldap-distributed-smoke
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
# web/idp assets must be embedded for `ocis server` to come up (same as run-github.py)
|
||||
- name: Generate assets
|
||||
run: make ci-node-generate
|
||||
|
||||
- name: Build oCIS
|
||||
run: make -C ocis build
|
||||
|
||||
# Distributed LDAP topology (proxy over an async syncrepl replica + write master);
|
||||
# the replication lag exercises the retry / read-after-write path (OCISDEV-1030/1032/1033).
|
||||
- name: Run external-LDAP distributed smoke
|
||||
run: tests/ldap-smoke-distributed/run.sh
|
||||
|
||||
all-acceptance-tests:
|
||||
needs: [detect-changes, local-api-tests, cli-tests, core-api-tests, litmus, cs3api, wopi-builtin, wopi-cs3, e2e-tests]
|
||||
needs: [detect-changes, local-api-tests, cli-tests, ldap-pool-tests, core-api-tests, litmus, cs3api, wopi-builtin, wopi-cs3, e2e-tests, external-ldap-tests, external-ldap-distributed-tests]
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
steps:
|
||||
|
||||
@@ -0,0 +1,271 @@
|
||||
name: Acceptance Tests K8S
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 1 * * *"
|
||||
|
||||
env:
|
||||
PHP_VERSION: "8.4"
|
||||
K3D_VERSION: "v5.8.3"
|
||||
HELM_VERSION: "v3.18.4"
|
||||
TEST_SERVER_URL: https://ocis-server
|
||||
STORAGE_DRIVER: ocis
|
||||
OCIS_WRAPPER_URL: http://localhost:5200
|
||||
K8S: true
|
||||
|
||||
jobs:
|
||||
api-tests:
|
||||
name: ${{ matrix.suite }}-k8s
|
||||
runs-on: ubuntu-26.04
|
||||
|
||||
if: >-
|
||||
github.event_name == 'schedule' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
contains(github.event.pull_request.title || '', 'k8s'))
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- suite: apiContract
|
||||
- suite: apiLocks
|
||||
- suite: apiSettings
|
||||
# - suite: apiNotification
|
||||
- suite: apiCors
|
||||
- suite: apiGraphUser
|
||||
- suite: apiGraph
|
||||
- suite: apiGraphGroup
|
||||
# - suite: apiSpaces
|
||||
- suite: apiSpacesShares
|
||||
- suite: apiSpacesDavOperation
|
||||
- suite: apiDownloads
|
||||
- suite: apiAsyncUpload
|
||||
- suite: apiDepthInfinity
|
||||
- suite: apiArchiver
|
||||
- suite: apiActivities
|
||||
- suite: apiSearch1
|
||||
- suite: apiSearch2
|
||||
# - suite: apiSearchContent
|
||||
- suite: apiSharingNgShares
|
||||
- suite: apiReshare
|
||||
- suite: apiSharingNgPermissions
|
||||
- suite: apiSharingNgAdditionalShareRole
|
||||
- suite: apiSharingNgDriveInvitation
|
||||
# - suite: apiSharingNgItemInvitation
|
||||
- suite: apiSharingNgDriveLinkShare
|
||||
- suite: apiSharingNgItemLinkShare
|
||||
- suite: apiSharingNgLinkShareManagement
|
||||
- suite: apiAuthApp
|
||||
# - suite: apiAntivirus
|
||||
- suite: apiOcm
|
||||
# - suite: apiCollaboration
|
||||
# - suite: "coreApiAuth,coreApiCapabilities,coreApiFavorites,coreApiMain,coreApiVersions"
|
||||
- suite: "coreApiShareManagementBasicToShares,coreApiShareManagementToShares"
|
||||
- suite: "coreApiSharees"
|
||||
- suite: "coreApiSharePublicLink2"
|
||||
- suite: "coreApiShareOperationsToShares1,coreApiShareOperationsToShares2,coreApiSharePublicLink1,coreApiShareCreateSpecialToShares1,coreApiShareCreateSpecialToShares2,coreApiShareUpdateToShares"
|
||||
- suite: "coreApiTrashbin,coreApiTrashbinRestore,coreApiWebdavEtagPropagation1,coreApiWebdavEtagPropagation2"
|
||||
- suite: "coreApiWebdavDelete,coreApiWebdavOperations,coreApiWebdavMove2"
|
||||
- suite: "coreApiWebdavProperties"
|
||||
# - suite: "coreApiWebdavMove1,coreApiWebdavPreviews,coreApiWebdavUpload,coreApiWebdavUploadTUS"
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Setup PHP ${{ env.PHP_VERSION }}
|
||||
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: ${{ env.PHP_VERSION }}
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
tools: composer
|
||||
|
||||
- name: Download k3d
|
||||
run: |
|
||||
curl -L \
|
||||
-o k3d \
|
||||
https://github.com/k3d-io/k3d/releases/download/${{ env.K3D_VERSION }}/k3d-linux-amd64
|
||||
echo "dbaa79a76ace7f4ca230a1ff41dc7d8a5036a8ad0309e9c54f9bf3836dbe853e k3d" | sha256sum --check
|
||||
chmod +x k3d
|
||||
sudo mv k3d /usr/local/bin/
|
||||
k3d version
|
||||
|
||||
- name: Install Helm
|
||||
run: |
|
||||
curl -fsSL -o helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz https://get.helm.sh/helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
||||
tar -zxvf helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
||||
sudo mv linux-amd64/helm /usr/local/bin/helm
|
||||
helm version --short
|
||||
|
||||
- name: Prepare hosts
|
||||
run: |
|
||||
echo "127.0.0.1 ocis-server clamav email collabora onlyoffice fakeoffice tika federation-ocis-server" \
|
||||
| sudo tee -a /etc/hosts
|
||||
|
||||
- name: Spin up K3d Cluster
|
||||
run: make -C tests/config/k8s create-cluster
|
||||
|
||||
- name: Prepare Helm Charts & Deploy oCIS
|
||||
env:
|
||||
ENABLE_ANTIVIRUS: ${{ matrix.suite == 'apiAntivirus' }}
|
||||
ENABLE_EMAIL: ${{ matrix.suite == 'apiNotification' || matrix.suite == 'apiSettings' || matrix.suite == 'apiOcm' }}
|
||||
ENABLE_TIKA: ${{ matrix.suite == 'apiSearchContent' }}
|
||||
ENABLE_WOPI: ${{ matrix.suite == 'apiCollaboration' }}
|
||||
ENABLE_OCM: ${{ matrix.suite == 'apiOcm' }}
|
||||
ENABLE_AUTH_APP: ${{ matrix.suite == 'apiAuthApp' }}
|
||||
run: |
|
||||
cd tests/config/k8s
|
||||
make prepare-charts
|
||||
kubectl get pods -n ocis-server -Aw &
|
||||
make deploy-ocis
|
||||
if [[ "${{ matrix.suite }}" == "apiOcm" ]]; then
|
||||
OCM=true make prepare-charts
|
||||
OCM=true make deploy-ocis
|
||||
fi
|
||||
|
||||
- name: Deploy Suite-Specific External Backends
|
||||
run: |
|
||||
if [[ "${{ matrix.suite }}" == "apiNotification" || \
|
||||
"${{ matrix.suite }}" == "apiSettings" || \
|
||||
"${{ matrix.suite }}" == "apiOcm" ]]; then
|
||||
docker run -d \
|
||||
-p 1025:1025 \
|
||||
-p 8025:8025 \
|
||||
--name mailpit \
|
||||
axllent/mailpit:v1.22.3
|
||||
bash tests/config/k8s/expose-external-svc.sh email:1025
|
||||
fi
|
||||
if [[ "${{ matrix.suite }}" == "apiAntivirus" ]]; then
|
||||
docker run -d \
|
||||
-p 3310:3310 \
|
||||
--name clamav \
|
||||
owncloudci/clamavd
|
||||
bash tests/config/k8s/expose-external-svc.sh clamav:3310
|
||||
fi
|
||||
|
||||
if [[ "${{ matrix.suite }}" == "apiSearchContent" ]]; then
|
||||
docker run -d \
|
||||
-p 9998:9998 \
|
||||
--name tika \
|
||||
apache/tika:3.2.2.0-full
|
||||
bash tests/config/k8s/expose-external-svc.sh tika:9998
|
||||
fi
|
||||
|
||||
- name: Wait for oCIS to be ready
|
||||
env:
|
||||
FILE_URL: ${{ env.TEST_SERVER_URL }}/remote.php/dav/files/admin/hello1.txt
|
||||
run: |
|
||||
kubectl wait \
|
||||
--namespace ocis-server \
|
||||
--for=condition=Available \
|
||||
deployment \
|
||||
--all \
|
||||
--timeout=10m
|
||||
|
||||
kubectl wait \
|
||||
--namespace ocis-server \
|
||||
--for=condition=Ready \
|
||||
pod \
|
||||
--all \
|
||||
--timeout=10m
|
||||
|
||||
kubectl get pods -n ocis-server
|
||||
|
||||
echo "Creating test file in oCIS..."
|
||||
|
||||
request() {
|
||||
local method=$1
|
||||
shift
|
||||
curl -ks -o /dev/null -w "%{http_code}" \
|
||||
-X "$method" \
|
||||
-u admin:admin \
|
||||
"$@" \
|
||||
"$FILE_URL"
|
||||
}
|
||||
|
||||
retry_http() {
|
||||
local expected=$1
|
||||
shift
|
||||
for i in {1..30}; do
|
||||
status=$("$@")
|
||||
if [ "$status" = "$expected" ]; then
|
||||
echo "Succeeded (HTTP $status)"
|
||||
return 0
|
||||
fi
|
||||
echo "Attempt $i failed (HTTP $status), retrying in 10s..."
|
||||
sleep 10
|
||||
done
|
||||
echo "Failed after 30 attempts"
|
||||
return 1
|
||||
}
|
||||
put_file() {
|
||||
request PUT \
|
||||
-H "Content-Type: text/plain" \
|
||||
--data "Hello from GitHub Actions!"
|
||||
}
|
||||
delete_file() {
|
||||
request DELETE
|
||||
}
|
||||
echo "Creating test file..."
|
||||
retry_http 201 put_file || exit 1
|
||||
echo "Deleting test file..."
|
||||
retry_http 204 delete_file || exit 1
|
||||
|
||||
- name: Expose debug ports
|
||||
run: bash tests/config/k8s/expose-debug-svc.sh
|
||||
|
||||
- name: Build ociswrapper
|
||||
run: make -C tests/ociswrapper/
|
||||
|
||||
- name: Start ociswrapper
|
||||
run: |
|
||||
tests/ociswrapper/bin/ociswrapper serve \
|
||||
--url ${{ env.TEST_SERVER_URL }} \
|
||||
--admin-username admin \
|
||||
--admin-password admin \
|
||||
--skip-ocis-run \
|
||||
-n ocis-server &
|
||||
|
||||
- name: Prepare expected failures
|
||||
if: startsWith( matrix.suite, 'core' )
|
||||
env:
|
||||
EXPECTED_FAILURES_FILE: tests/acceptance/expected-failures-API-on-OCIS-storage.md
|
||||
WITH_REMOTE_PHP: "false"
|
||||
run: |
|
||||
if [[ "$WITH_REMOTE_PHP" != "true" ]]; then
|
||||
cat tests/acceptance/expected-failures-without-remotephp.md >> \
|
||||
"$EXPECTED_FAILURES_FILE"
|
||||
fi
|
||||
|
||||
- name: Run API ${{ matrix.suite }} tests
|
||||
if: startsWith( matrix.suite, 'api' )
|
||||
env:
|
||||
TEST_SERVER_URL: ${{ env.TEST_SERVER_URL }}
|
||||
TEST_SERVER_FED_URL: https://federation-ocis-server
|
||||
STORAGE_DRIVER: ${{ env.STORAGE_DRIVER }}
|
||||
BEHAT_SUITES: ${{ matrix.suite }}
|
||||
BEHAT_FILTER_TAGS: "~@skip&&~@skipOnGraph&&~@skipOnOcis-OCIS-Storage"
|
||||
EXPECTED_FAILURES_FILE: tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md
|
||||
OCIS_WRAPPER_URL: ${{ env.OCIS_WRAPPER_URL }}
|
||||
COLLABORATION_SERVICE_URL: http://ocis-server:9304
|
||||
K8S: ${{ env.K8S }}
|
||||
run: make test-acceptance-api
|
||||
|
||||
- name: Run Core ${{ matrix.suite }} tests
|
||||
if: startsWith( matrix.suite, 'core' )
|
||||
env:
|
||||
TEST_SERVER_URL: ${{ env.TEST_SERVER_URL }}
|
||||
OCIS_REVA_DATA_ROOT: ""
|
||||
STORAGE_DRIVER: ocis
|
||||
BEHAT_FILTER_TAGS: "~@skip&&~@skipOnGraph&&~@skipOnOcis-OCIS-Storage"
|
||||
BEHAT_SUITES: ${{ matrix.suite }}
|
||||
ACCEPTANCE_TEST_TYPE: core-api
|
||||
EXPECTED_FAILURES_FILE: tests/acceptance/expected-failures-API-on-OCIS-storage.md
|
||||
UPLOAD_DELETE_WAIT_TIME: "0"
|
||||
OCIS_WRAPPER_URL: ${{ env.OCIS_WRAPPER_URL }}
|
||||
WITH_REMOTE_PHP: "false"
|
||||
K8S: ${{ env.K8S }}
|
||||
run: make test-acceptance-api
|
||||
@@ -109,9 +109,11 @@ jobs:
|
||||
path: |
|
||||
.
|
||||
!.git
|
||||
!web
|
||||
retention-days: 1
|
||||
|
||||
docker-build:
|
||||
if: false
|
||||
name: docker-build (${{ matrix.arch }}, ${{ matrix.repo }})
|
||||
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
|
||||
needs: [determine-release-type, generate-code, security-scan-trivy]
|
||||
@@ -125,8 +127,8 @@ jobs:
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
||||
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
||||
- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
@@ -152,7 +154,7 @@ jobs:
|
||||
printf "tags<<EOF\n%s\nEOF\n" \
|
||||
"${REPO}:${VERSION}-linux-${ARCH}" >> $GITHUB_OUTPUT
|
||||
- id: build
|
||||
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
|
||||
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
||||
with:
|
||||
context: ocis
|
||||
file: ocis/docker/Dockerfile.linux.${{ matrix.arch }}
|
||||
@@ -165,7 +167,7 @@ jobs:
|
||||
VERSION=${{ needs.determine-release-type.outputs.version }}
|
||||
tags: ${{ steps.tags.outputs.tags }}
|
||||
- id: trivy
|
||||
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
continue-on-error: true
|
||||
with:
|
||||
image-ref: ${{ steps.tags.outputs.tags }}
|
||||
@@ -196,7 +198,7 @@ jobs:
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
- uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
id: trivy
|
||||
continue-on-error: true
|
||||
with:
|
||||
@@ -217,6 +219,7 @@ jobs:
|
||||
exit 1
|
||||
|
||||
docker-manifest:
|
||||
if: false
|
||||
name: docker-manifest (${{ matrix.repo }})
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, docker-build, docker-scan]
|
||||
@@ -224,7 +227,7 @@ jobs:
|
||||
matrix:
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||
- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
@@ -242,6 +245,7 @@ jobs:
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-arm64"
|
||||
|
||||
docker-readme:
|
||||
if: false
|
||||
name: docker-readme (${{ matrix.repo }})
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, docker-manifest]
|
||||
@@ -289,7 +293,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
- uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
with:
|
||||
scan-type: fs
|
||||
format: table
|
||||
@@ -313,6 +317,10 @@ jobs:
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force
|
||||
# web is excluded from the generated-code artifact (see generate-code) to
|
||||
# avoid OOM on upload, so its node_modules — which provides the
|
||||
# license-checker-rseidelsohn binary — must be reinstalled here.
|
||||
- run: cd web && pnpm install
|
||||
- run: make ci-node-check-licenses && make ci-node-save-licenses
|
||||
- run: make ci-go-check-licenses && make ci-go-save-licenses
|
||||
- run: tar -czf third-party-licenses.tar.gz -C third-party-licenses .
|
||||
@@ -347,7 +355,7 @@ jobs:
|
||||
|
||||
create-github-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy, docker-readme]
|
||||
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy]
|
||||
steps:
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
@@ -378,10 +386,6 @@ jobs:
|
||||
needs:
|
||||
- determine-release-type
|
||||
- generate-code
|
||||
- docker-build
|
||||
- docker-scan
|
||||
- docker-manifest
|
||||
- docker-readme
|
||||
- build-binaries
|
||||
- security-scan-trivy
|
||||
- license-check
|
||||
@@ -405,7 +409,7 @@ jobs:
|
||||
python3 scripts/audit-release.py \
|
||||
--version "${{ needs.determine-release-type.outputs.version }}" \
|
||||
--dir release-assets/ \
|
||||
--github-release --docker
|
||||
--github-release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -26,6 +26,9 @@ ocis/cmd/ocis/config/
|
||||
/hugo
|
||||
/docs/services/*/_index.md
|
||||
|
||||
# deployment example runtime data (bind-mounted volumes)
|
||||
/deployments/examples/ocis_full/data/
|
||||
|
||||
# IDEs
|
||||
.idea
|
||||
|
||||
@@ -60,6 +63,9 @@ go.work
|
||||
go.work.sum
|
||||
.env
|
||||
.envrc
|
||||
|
||||
# generated secrets for deployment examples (e.g. Collabora WOPI proof key)
|
||||
deployments/examples/*/config/collabora/
|
||||
CLAUDE.md
|
||||
.claude/
|
||||
GEMINI.md
|
||||
|
||||
@@ -102,7 +102,7 @@ Before starting to set up an instance, we **highly** recommend reading the [Prer
|
||||
|
||||
### Use the Official Documentation
|
||||
|
||||
See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/depl-examples/ubuntu-compose/ubuntu-compose-prod.html) for a production ready deployment starting with a Raspberry Pi, a single server or VM.
|
||||
See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/admin/depl-examples/ubuntu-compose/ubuntu-compose-prod.html) for a production ready deployment starting with a Raspberry Pi, a single server or VM.
|
||||
|
||||
### Use the ocis Repo as Source
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
Bugfix: Prevent deleting your own account in the user management
|
||||
|
||||
In the admin settings user management, the account you are currently logged in
|
||||
as could be selected and included in a delete action, even though the backend
|
||||
always rejects self-deletion. Deleting a selection that included your own
|
||||
account produced a "Failed to delete 1 user" error and made your own row
|
||||
temporarily disappear from the list until the page was refreshed.
|
||||
|
||||
The delete action now excludes the current user from the request, so all other
|
||||
selected users are deleted while your own account is left untouched. When your
|
||||
own account is part of the selection, the delete confirmation dialog shows a
|
||||
hint that it will not be deleted.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12657
|
||||
https://github.com/owncloud/ocis/issues/12582
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Stop breadcrumb items from being announced twice
|
||||
|
||||
Each breadcrumb list item had `tabindex="0"`, putting the item itself in the
|
||||
keyboard/screen reader focus order in addition to the link or button nested
|
||||
inside it. This caused every breadcrumb segment to be announced twice in a
|
||||
row. The list item is no longer a separate focus stop; only its inner link
|
||||
or button is, while the item remains focusable enough for existing
|
||||
drag-and-drop styling to keep working.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12643
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Support Collabora Online 26.x in the ocis_full deployment example
|
||||
|
||||
collabora/code 26.x ships without a shell and without the `coolconfig` helper the
|
||||
ocis_full example relied on to start the container and generate its WOPI proof
|
||||
key, so the example failed to start and, once running, would reject every
|
||||
document open with a 500. The example now uses the image's default entrypoint
|
||||
and a one-shot init container that generates and persists the WOPI proof key
|
||||
before Collabora starts.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12794
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: Fix invisible group icon in share collaborator list
|
||||
|
||||
The icon shown next to group entries in the share collaborator autocomplete
|
||||
list used a color variable that no longer resolved to a valid value, making
|
||||
the icon effectively invisible against the background. The icon now uses the
|
||||
correct default text color variable so it renders properly again.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12722
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: Announce IDP sign-in errors and fix keyboard use
|
||||
|
||||
The login, consent, and account chooser pages did not announce error
|
||||
messages when they appeared, and invalid username/password fields gave no
|
||||
indication of their error state. The consent screen's scope list also had no
|
||||
programmatic link between each entry and its checkbox, and the account
|
||||
chooser's "continue as" and "use another account" entries could not be
|
||||
reached or activated with a keyboard. A visible focus outline on the login
|
||||
form's input fields had also been removed with no replacement. All of these
|
||||
have been fixed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12649
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Return the created user in the invitation response
|
||||
|
||||
The invitations service created the guest account but returned the original request
|
||||
body unchanged, so the `invitedUser` relation defined by the Graph invitation
|
||||
response was always empty. Clients had no way to learn the identity of the user that
|
||||
was just created. The service now populates `invitedUser` with the created user (id,
|
||||
email address and user type), where the id is the OWNCLOUD_ID that oCIS uses once the
|
||||
guest is provisioned locally.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12467
|
||||
@@ -0,0 +1,28 @@
|
||||
Bugfix: Fix low-contrast form controls in dark and vault themes
|
||||
|
||||
Several form controls were hard to see against dark and vault theme
|
||||
backgrounds. The view-options range slider had no visible track border and
|
||||
relied on an opacity dip on hover, making it barely visible at rest. The
|
||||
switch component's off-state track and thumb, and its on-state thumb, used
|
||||
colors too close to their surrounding background to read as a toggle. The
|
||||
select combobox's highlighted/selected option text used a color too close to
|
||||
the highlight background.
|
||||
|
||||
The global search input's text color was forced with `!important`,
|
||||
overriding the theme-specific search text color some themes set, which made
|
||||
typed text render in white on a white search input background in the vault
|
||||
"Dark Theme – High Contrast". The search placeholder color also used an
|
||||
invalid CSS custom property fallback (a bare property name instead of a
|
||||
nested `var()`), silently breaking the placeholder color for any theme that
|
||||
didn't define a search-specific placeholder token, and the vault "Dark
|
||||
Theme"'s placeholder color was too close to its input's text and border color
|
||||
to read as muted.
|
||||
|
||||
The slider now has a visible border and no longer dims on rest, the switch
|
||||
and select now use colors with sufficient contrast against their
|
||||
backgrounds, the `!important` override blocking theme-specific search colors
|
||||
has been removed, the invalid placeholder fallback has been fixed, and the
|
||||
vault "Dark Theme" placeholder color has been changed to one with visible
|
||||
contrast against the input text.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12639
|
||||
@@ -0,0 +1,9 @@
|
||||
Bugfix: Fix keyboard navigation in "New" and "Upload" dropdown menus
|
||||
|
||||
Opening the "New" or "Upload" dropdown menu in the Files app toolbar did
|
||||
not move focus into the menu, so pressing the arrow keys had no effect
|
||||
on the highlighted item, unlike the existing right-click context menu.
|
||||
Both dropdowns now focus their first item on open, restoring arrow key
|
||||
navigation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12646
|
||||
@@ -0,0 +1,28 @@
|
||||
Bugfix: Release the quota of upload sessions with unreadable node metadata
|
||||
|
||||
When an upload's target node lost its metadata, e.g. because an ancestor was
|
||||
moved to the trash while the upload was still in flight, the upload could never
|
||||
finish processing. It stayed in "Processing" forever, could not be downloaded or
|
||||
deleted, and kept consuming the space quota.
|
||||
|
||||
Cleaning such a session up with `ocis storage-users uploads sessions --clean`
|
||||
did not help either: it removed the uploaded bytes and the session info file
|
||||
before failing to revert the node, so it destroyed the only copy of the data
|
||||
without releasing any quota.
|
||||
|
||||
Cleanup now reverts the node before removing anything irreversible and falls
|
||||
back to the session metadata when the node cannot be read, so the quota is
|
||||
released and the orphaned node is removed. If the quota cannot be released the
|
||||
upload is kept so it can be retried instead of being lost.
|
||||
|
||||
A new `--orphaned` filter lists the affected sessions:
|
||||
|
||||
```
|
||||
ocis storage-users uploads sessions --orphaned
|
||||
ocis storage-users uploads sessions --orphaned --clean
|
||||
```
|
||||
|
||||
Note that evaluating the filter reads the node metadata of every session, so it
|
||||
is only done when the flag is set.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12739
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Sync the `.psec` file name when a password-protected folder is renamed
|
||||
|
||||
Renaming a password-protected folder did not update its `.psec` pointer file,
|
||||
so the main file listing kept showing the old name. This happened both when
|
||||
renaming the folder via the hidden `.PasswordProtectedFolders` location and
|
||||
when renaming it from inside the folder-view modal.
|
||||
|
||||
Renaming the real folder now also renames its `.psec` counterpart. Inside the
|
||||
folder-view modal, the framed public-link session notifies the parent window
|
||||
at the moment of rename, so the pointer file stays in sync even on refresh or
|
||||
another device.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12684
|
||||
@@ -0,0 +1,7 @@
|
||||
Bugfix: Apply the role allowlist on permission updates
|
||||
|
||||
The `PATCH` permission and space-root permission handlers now consult the
|
||||
administrator role allowlist when validating a request, consistent with the
|
||||
invite handler.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12540
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: Restarting the proxy service on error was causing panics
|
||||
|
||||
Starting oCIS with the `ocis server` command causes oCIS to monitor the
|
||||
services being started. When a service fails to start, this monitor tries
|
||||
to restart the services. For the cause of the proxy service, restarting it
|
||||
was a panic.
|
||||
|
||||
Now, the proxy service can be restarted as expected, without that panic.
|
||||
Note that the service might still fail to start if the actual cause isn't
|
||||
fixed, such as the service's port being taken by a different application.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12769
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Remove keyboard focus from open file name in top bar
|
||||
|
||||
When opening a file such as a text or markdown document, the file name shown
|
||||
in the top bar could be reached via keyboard tabbing even though it was not
|
||||
clickable and triggered no action. This made keyboard navigation confusing.
|
||||
|
||||
The file name is no longer part of the tab order, since it is a purely
|
||||
informational, non-interactive element.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12752
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Remove unneeded keyboard focus stops
|
||||
|
||||
Some icons and date columns in tables (spaces list, file list) could
|
||||
unexpectedly receive keyboard focus even though they don't trigger any
|
||||
action, adding unnecessary stops when tabbing through the page. The
|
||||
contextual helper icon also carried a label that duplicated the label
|
||||
already present on its surrounding button. These redundant focus stops
|
||||
and duplicate labels have been removed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12645
|
||||
@@ -0,0 +1,14 @@
|
||||
Bugfix: Truncate long resource names instead of overlapping the next column
|
||||
|
||||
In resource tables, a name that was too long for its column was not truncated.
|
||||
Instead it kept its full width and was painted over the value of the adjacent
|
||||
column, making both unreadable. This was most visible in the Spaces overview,
|
||||
where a long space name overlapped the "Manager" column, but it affected every
|
||||
resource table using the name column, including the files list and search
|
||||
results, as well as the parent folder path shown below a search result.
|
||||
|
||||
The name is now truncated with an ellipsis at the column boundary, and the
|
||||
rename button stays inside the name column. The full name remains available via
|
||||
the title tooltip on hover.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12754
|
||||
@@ -0,0 +1,15 @@
|
||||
Bugfix: Restore hover feedback in high-contrast and dark themes
|
||||
|
||||
The Light and Dark High-Contrast themes set the background-highlight color
|
||||
token equal to the default page background, making hover backgrounds
|
||||
indistinguishable from the resting background wherever background-highlight
|
||||
was used for interactive feedback, such as the global search results
|
||||
dropdown. The non-high-contrast Dark theme had the same collision.
|
||||
|
||||
background-highlight now matches background-hover in the affected theme
|
||||
definitions, and the search results dropdown and create-shortcut context
|
||||
menu now use the background-hover color directly for their hover and active
|
||||
states, since background-highlight is otherwise used for static surfaces
|
||||
like cards, modals and form fields rather than interaction feedback.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12613
|
||||
@@ -0,0 +1,20 @@
|
||||
Bugfix: Fix uploads stuck in processing with the s3ng storage driver
|
||||
|
||||
Uploads to a `s3ng` backed storage-users service never left the processing
|
||||
state, so the file stayed unreadable and unmodifiable forever. Every client was
|
||||
affected equally, because the defect sits below the protocol layer: WebDAV, the
|
||||
desktop sync client and the Web UI alike.
|
||||
|
||||
Decomposedfs ignores any event whose storage id does not match its configured
|
||||
mount id. The `s3ng` driver never received a `mount_id`, so that comparison ran
|
||||
against an empty string and every `PostprocessingFinished` event was discarded.
|
||||
The `s3ng` driver now passes `mount_id` the same way the `ocis` driver already
|
||||
does.
|
||||
|
||||
The same key is also added to `OcisNoEvents` and `S3NGNoEvents`. Those build the
|
||||
storage provider rather than the data provider and configure no events, so today
|
||||
the value is unused there. Setting it keeps both constructions of the same
|
||||
storage consistent about their own identity, rather than leaving one of them to
|
||||
report an empty mount id to any future reader of that option.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12756
|
||||
@@ -0,0 +1,9 @@
|
||||
Bugfix: Fix share metadata corruption during concurrent share operations
|
||||
|
||||
When multiple sharing service replicas processed share operations concurrently
|
||||
for the same user, the share metadata could become corrupted with references to
|
||||
missing data, making all shares inaccessible to that user. The received share
|
||||
cache now uses compare-and-swap (etag) validation to detect concurrent writes
|
||||
and retries gracefully, preventing metadata corruption.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12621
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: Preserve accessibility focus in the file versions sidebar
|
||||
|
||||
Opening the file versions panel with a keyboard or screen reader could move
|
||||
focus to the main page, and restoring a version could briefly move focus to the
|
||||
main page before selecting the sidebar's back button. The sidebar now manages
|
||||
focus throughout panel transitions and loading states, restores focus to the
|
||||
control that opened it when closed, and returns focus to the restored version's
|
||||
Restore button after the operation completes. Version dates and action labels
|
||||
also provide clearer context for screen reader users without duplicate
|
||||
announcements or additional tab stops.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12630
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Allow space managers to remove shares created by other users
|
||||
|
||||
Space managers with permission to manage a resource's shares were unable to
|
||||
remove shares that other users had created on that resource. Attempting to
|
||||
remove such a share failed with a generic server error instead of succeeding.
|
||||
|
||||
Space managers can now remove any share on a resource within their space,
|
||||
regardless of who created it, as long as they hold the required permission
|
||||
on that resource.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12705
|
||||
@@ -0,0 +1,14 @@
|
||||
Bugfix: Vault navigation labels not updating on switch
|
||||
|
||||
The Files app navigation labels for the personal space and spaces list
|
||||
sometimes kept showing the regular names instead of the vault-specific
|
||||
ones after switching into the vault, and vice versa. This happened
|
||||
because the vault detection only looked at the plain URL path and
|
||||
missed cases such as hash-based routes or the redirect right after
|
||||
logging in.
|
||||
|
||||
The vault detection has been centralized and now also recognizes
|
||||
hash-based vault routes and the post-login redirect target, so the
|
||||
navigation labels correctly reflect whether the user is in the vault.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12729
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Fix missing labels and low-contrast elements across the web UI
|
||||
|
||||
Several icon-only buttons (search, hide-share, create-user, gallery
|
||||
navigation) were missing labels, and loading spinners and progress bars did
|
||||
not expose a name describing what they represent. The global search and
|
||||
create shortcut dropdowns now use correct roles and states. Tooltips no longer
|
||||
get caught mid-fade with a low-contrast color when the reduced-motion system
|
||||
setting is enabled, and low-contrast colors were fixed in the select combobox
|
||||
search input and in markdown editor links and inline code.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12526
|
||||
@@ -8,3 +8,4 @@ https://github.com/owncloud/ocis/pull/12137
|
||||
https://github.com/owncloud/ocis/pull/12302
|
||||
https://github.com/owncloud/ocis/pull/12439
|
||||
https://github.com/owncloud/ocis/pull/12266
|
||||
https://github.com/owncloud/ocis/pull/12730
|
||||
@@ -0,0 +1,10 @@
|
||||
Change: Respect proxy environment variables for OIDC requests
|
||||
|
||||
The proxy and webfinger services now route OIDC requests through the
|
||||
`HTTP_PROXY` and `HTTPS_PROXY` settings from the environment. Deployments that
|
||||
should not send the OIDC issuer host through the proxy, or whose proxy cannot
|
||||
reach that host, must list the issuer hostname in `NO_PROXY`, otherwise
|
||||
authentication can fail when oCIS's own external hostname is reached through
|
||||
the proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12703
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Clean up the deployment examples
|
||||
|
||||
Removed the legacy deployment example oc10_ocis_parallel and its
|
||||
documentation references.
|
||||
Removed coverage.out
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12521
|
||||
@@ -0,0 +1,12 @@
|
||||
Enhancement: Add EPUB library
|
||||
|
||||
The EPUB reader now includes a library for discovering and organizing books
|
||||
stored across accessible personal and project spaces. The library extracts
|
||||
metadata and cover images in the browser and supports search, sorting, filters,
|
||||
favorites, custom shelves, reading statuses, grid and list views, and resuming
|
||||
from the reader's saved position.
|
||||
|
||||
Book metadata and covers are cached locally. Library preferences are stored in
|
||||
the browser and are not synchronized between browsers or devices.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12648
|
||||
@@ -0,0 +1,10 @@
|
||||
Enhancement: Add option to disable public link sharing
|
||||
|
||||
Added an `OCIS_ENABLE_PUBLIC_SHARING` config option, read by the frontend
|
||||
and sharing services. It defaults to `true`. When set to `false`,
|
||||
creating new public links is rejected and the
|
||||
`files_sharing.public.enabled` capability reports `false` so clients
|
||||
hide the corresponding UI. Direct sharing with users and groups is not
|
||||
affected.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12542
|
||||
@@ -0,0 +1,11 @@
|
||||
Enhancement: Add option to disable direct (user/group) sharing
|
||||
|
||||
Added an `OCIS_ENABLE_USER_SHARING` config option, read by the frontend,
|
||||
graph, sharing and ocm services. It defaults to `true`. When set to
|
||||
`false`, creating new user, group or federated shares is rejected, the
|
||||
legacy `sharees` search endpoint returns no results, and the
|
||||
`files_sharing.user.enabled` and `files_sharing.user_enumeration.enabled`
|
||||
capabilities report `false` so clients hide the corresponding UI. Public
|
||||
link sharing and space membership are not affected.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12542
|
||||
@@ -0,0 +1,10 @@
|
||||
Enhancement: Restrict personal drive information to the owner and admins
|
||||
|
||||
The `/graph/v1.0/users/{userID}/drive`, `/graph/v1.0/drives/{driveID}` and
|
||||
`/graph/v1.0/drives` endpoints now drop personal spaces the caller does not own
|
||||
unless the caller holds account management permission, leaving project and other
|
||||
shared space types unaffected. The single-drive and per-user lookups return the
|
||||
same `404` as a missing drive, so the response does not depend on the target
|
||||
user's existence.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12742
|
||||
@@ -0,0 +1,10 @@
|
||||
Enhancement: Improve page structure on several pages
|
||||
|
||||
We've added missing `main` and `footer` regions to several pages (404,
|
||||
private link resolving, missing config, logout, access denied, public link
|
||||
resolving) for a more consistent page structure. We've also fixed the
|
||||
"Skip to main" link, which previously did nothing on pages using the plain
|
||||
layout (login, logout, public/private link pages) due to a missing target id
|
||||
and a stale cached DOM reference.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12637
|
||||
@@ -0,0 +1,16 @@
|
||||
Enhancement: Configurable Keycloak invitation actions and working ocis_full SMTP
|
||||
|
||||
The invitations service now lets operators configure the Keycloak required actions
|
||||
that are sent to invited guests via the execute-actions email, using the new
|
||||
`INVITATIONS_KEYCLOAK_EXECUTE_ACTIONS` environment variable. It defaults to
|
||||
`UPDATE_PASSWORD,VERIFY_EMAIL`; configured values are passed to Keycloak as-is, and
|
||||
the service falls back to the defaults when none are configured, so an invited guest
|
||||
always has a way to set up their account.
|
||||
|
||||
The Keycloak realm shipped with the `ocis_full` example deployment now points its
|
||||
SMTP server at the bundled mailpit instance. Previously the realm shipped with an
|
||||
empty SMTP configuration, so Keycloak silently dropped every mail it tried to send
|
||||
(including the guest invitation email) even though the invitations service
|
||||
correctly requested it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12467
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Apply Kiteworks branding to the web theme
|
||||
|
||||
The default oCIS theme now uses the Kiteworks OSPO name, slogan and logos
|
||||
across all regular and vault mode themes.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12464
|
||||
@@ -0,0 +1,19 @@
|
||||
Enhancement: Add an opt-in bounded LDAP connection pool
|
||||
|
||||
The auth-basic, users, groups and graph services can now be switched from a
|
||||
single long-lived reconnecting LDAP connection to a bounded pool of connections,
|
||||
so concurrent requests no longer serialize on one socket. Connections are dialed
|
||||
and bound lazily on checkout, unhealthy connections are discarded and lazily
|
||||
re-dialed rather than eagerly reconnected, and checkout blocks with a configurable
|
||||
timeout once the pool is exhausted.
|
||||
|
||||
Pooling is off by default and fully backwards compatible. Enable it per service
|
||||
via 'OCIS_LDAP_POOL_ENABLED' (or the service-specific '<SERVICE>_LDAP_POOL_ENABLED'
|
||||
override), and tune it with 'OCIS_LDAP_POOL_SIZE' (default 5) and
|
||||
'OCIS_LDAP_POOL_CHECKOUT_TIMEOUT' (default 30s).
|
||||
|
||||
The graph service's identity backend now shares the same LDAP client
|
||||
implementation used by the reva auth/user/group managers instead of maintaining
|
||||
its own separate reconnecting client.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12689
|
||||
@@ -0,0 +1,14 @@
|
||||
Enhancement: Eliminate redundant LDAP read-after-write on create and update
|
||||
|
||||
The graph LDAP backend no longer re-reads an entry immediately after writing it
|
||||
just to recover the entry ID for the response. When oCIS generates the ID itself
|
||||
(GRAPH_LDAP_SERVER_UUID disabled), the create response is now synthesized from the
|
||||
data already sent to the directory, and update responses are built by folding the
|
||||
applied modifications onto the entry that was read before the write. This avoids a
|
||||
round-trip that, against a replicated directory reached through a proxy, could hit
|
||||
a lagging replica and fail or return stale data.
|
||||
|
||||
When the directory assigns the ID (GRAPH_LDAP_SERVER_UUID enabled), creates keep
|
||||
the existing read-back, since the generated ID cannot otherwise be recovered.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12618
|
||||
@@ -0,0 +1,16 @@
|
||||
Enhancement: Retry LDAP operations against a lagging replica
|
||||
|
||||
The graph LDAP backend can now retry operations against a replicated directory
|
||||
where a write to the primary is followed by a read that lands on a replica which
|
||||
has not yet caught up. This covers the read-back that recovers a directory-assigned
|
||||
ID after a create (GRAPH_LDAP_SERVER_UUID enabled), which is retried until the entry
|
||||
becomes visible. The retry count and backoff are tunable through
|
||||
`GRAPH_LDAP_RETRY_MAX_COUNT`, `GRAPH_LDAP_RETRY_BASE_DELAY` and
|
||||
`GRAPH_LDAP_RETRY_MAX_DELAY`; the defaults keep the previous behaviour (a single
|
||||
immediate retry with no delay), so existing deployments are unaffected.
|
||||
|
||||
Retries now distinguish reads from writes: a write is no longer retried on a network
|
||||
error, which can surface after the request was already sent and would otherwise apply
|
||||
the mutation twice.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12672
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Add TLS support for NATS store and registry connections
|
||||
|
||||
All `nats-js-kv` store, cache, and service registry connections now support
|
||||
TLS. Configure via `OCIS_CACHE_ENABLE_TLS`, `OCIS_PERSISTENT_STORE_ENABLE_TLS`,
|
||||
and `MICRO_REGISTRY_ENABLE_TLS`, with corresponding `*_TLS_INSECURE` and
|
||||
`*_TLS_ROOT_CA_CERTIFICATE` variants per connection type.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12765
|
||||
@@ -0,0 +1,21 @@
|
||||
Enhancement: Add a command to recalculate the treesize of a space
|
||||
|
||||
The reported quota usage of a space can drift from the data actually stored on
|
||||
disk. The treesize of a directory is maintained as a running counter that is
|
||||
updated on every change, so a failed or incomplete update leaves the counter
|
||||
wrong. Removing a node without propagating the size change, for example, leaves
|
||||
its size counted against the quota forever, with no way to reclaim it.
|
||||
|
||||
The new command walks a space bottom up, recalculates the treesize of every
|
||||
directory from the actual size of its children and corrects the stored values:
|
||||
|
||||
```
|
||||
ocis storage-users spaces recalculate-treesize --space-id <id>
|
||||
ocis storage-users spaces recalculate-treesize --space-id <id> --dry-run=false
|
||||
```
|
||||
|
||||
Omit `--space-id` to process all spaces. As with the other maintenance commands,
|
||||
`--dry-run` defaults to true, so the command reports what it would change until
|
||||
it is explicitly told to write.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12746
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Show the select-all checkbox label in tile view
|
||||
|
||||
The label of the select-all checkbox in the resource tiles view is now
|
||||
visible, improving the user experience by making it clear what the
|
||||
checkbox is for.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12640
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Use a more distinctive icon for the software license link
|
||||
|
||||
The "Software License Information" entry in the help menu and apps menu used
|
||||
the generic "scales" icon, which is easy to confuse with other justice- or
|
||||
balance-related icons. It now uses the "file-shield" icon, which better
|
||||
conveys a legal/license document.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12669
|
||||
@@ -0,0 +1,12 @@
|
||||
Enhancement: Add "Undo" action to the delete success notification
|
||||
|
||||
Deleting a file or folder now shows an "Undo" action alongside the
|
||||
"moved to trash bin" notification, letting users restore the deleted
|
||||
resources directly from the toast instead of navigating to the trash
|
||||
bin. The action is only shown when the resources can be resolved in
|
||||
the trash and the space supports restoring from it. The notification
|
||||
pauses its auto-dismiss timer while hovered or focused, so it does not
|
||||
disappear before the action can be used. Pressing Ctrl+Z (or Cmd+Z on
|
||||
macOS) while the notification is visible triggers the same undo.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12650
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Update app store repository
|
||||
|
||||
We've updated the default app store repository to use the new ownCloud Marketplace instead of the awesome-ocis repository. The default Content-Security-Policy configuration was also updated to allow connections to the new marketplace domain.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12793
|
||||
@@ -0,0 +1,18 @@
|
||||
Bugfix: Fix concurrent map access when listing shares
|
||||
|
||||
Listing shares could abort the whole oCIS process with the Go runtime error
|
||||
"fatal error: concurrent map read and map write". This is an unrecoverable
|
||||
runtime fault, so it could not be caught and recovered from, and it dropped all
|
||||
connections that were in flight at that moment.
|
||||
|
||||
When converting CS3 shares into Graph DriveItems, the worker goroutines read
|
||||
from the shared driveItems map while the collecting loop was already writing
|
||||
results into the very same map. The results channel is buffered, so the workers
|
||||
never blocked when handing over an item and the collecting loop started writing
|
||||
while workers were still running. The results are now collected after all
|
||||
workers have finished, which removes the overlapping access.
|
||||
|
||||
Note that lowering the maximum concurrency did not avoid this, as a single
|
||||
worker could still run concurrently with the collecting loop.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12674
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Return correct issuerAssignedId on /me
|
||||
|
||||
The `/graph/v1.0/me` endpoint reported the internal user UUID as
|
||||
`identities[].issuerAssignedId` instead of the issuer-assigned identity (the
|
||||
OIDC `sub`). The endpoint took a fast path that built the user model from the
|
||||
CS3 user in the request context, which does not carry the external identity, so
|
||||
it fell back to the internal UUID. `/me` now always resolves the user through
|
||||
the identity backend, which reads the stored external identity and returns the
|
||||
correct value. Group memberships are still only expanded when
|
||||
`$expand=memberOf` is requested.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12431
|
||||
https://github.com/owncloud/ocis/pull/12411
|
||||
@@ -0,0 +1,17 @@
|
||||
Bugfix: Open files whose name contains a hash or question mark
|
||||
|
||||
Cmd+Clicking or middle-clicking a file with a `#` or `?` in its name opened the
|
||||
space root instead of the file, and the top bar showed the space name rather than
|
||||
the file name. The file's path is carried in a route parameter which the router
|
||||
percent-encodes when it builds the URL, but the editor route was resolved twice
|
||||
and resolving twice does not encode twice: the second pass rebuilt the URL from
|
||||
the still-decoded parameter with the encoding step skipped. The browser then read
|
||||
everything from the `#` onward as a fragment, discarding the query string along
|
||||
with the `fileId` needed to identify the file. Left clicks were unaffected because
|
||||
they never leave the app.
|
||||
|
||||
Editor routes are now handed to links unresolved, so the file name is encoded
|
||||
exactly once and survives both a new tab and an in-app navigation. Hash and
|
||||
question mark remain valid characters in file names.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12740
|
||||
@@ -0,0 +1,20 @@
|
||||
Bugfix: Reject space images which are too large to be rendered
|
||||
|
||||
Setting a space image larger than the thumbnails service accepts appeared to
|
||||
succeed but never changed the space image. Uploading the file and assigning it
|
||||
as the space image are two separate requests, and both completed successfully,
|
||||
so clients reported success. Only a later preview request, which the assigning
|
||||
client never observes, was rejected because the image exceeded
|
||||
`THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE`. As space images are rendered
|
||||
exclusively as thumbnails, the image was not merely degraded, it was invisible
|
||||
with no error anywhere in the UI.
|
||||
|
||||
The graph service now checks the file size when a space image is assigned and
|
||||
rejects the request with `413 Request Entity Too Large` instead of storing a
|
||||
reference which cannot be displayed. The previous space image is left
|
||||
untouched. The limit is read from the new `GRAPH_MAX_IMAGE_FILE_SIZE` setting,
|
||||
which defaults to `50MB` and must be less than or equal to
|
||||
`THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE`. Space descriptions (`readme`) are not
|
||||
affected.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12701
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: Do not collide vault and non-vault share mountpoints
|
||||
|
||||
Received shares mounted from the Vault storage and received shares mounted
|
||||
from regular drives were treated as one flat namespace when computing a
|
||||
unique mountpoint name. Sharing a resource with the same name once from a
|
||||
regular drive and once from the Vault caused the second one to get a
|
||||
spurious ` (1)` suffix, even though the two shares are rendered in
|
||||
completely separate, segregated lists and never actually collide.
|
||||
Mountpoint name collisions are now only checked against other shares within
|
||||
the same vault/non-vault group.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12730
|
||||
@@ -0,0 +1,5 @@
|
||||
fix(web): Use light logo in light mode (with dark blue topbar)
|
||||
|
||||
The light theme actually have a dark blue topbar and login screen, where the dark logo is applied and can hardly be seen. This patch changes it to logo.svg (the light logo).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12782
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Generate web timestamp by env/git log; make it buildable without .git
|
||||
|
||||
Change compilationTimeStamp to distTimeStamp, set its value from env SOURCE_DATE_EPOCH, or timestamp of last git commit, or fallback to current time. Also fixes a problem that raises an error during make ci-node-generate due to running git clean -xfd in a non-repository directory (usually an extracted source tarball), showing a message instead.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12758
|
||||
@@ -0,0 +1,18 @@
|
||||
Bugfix: Log unmapped thumbnail errors and always report a sabredav exception
|
||||
|
||||
The webdav service logged failures of the thumbnails service at debug level only.
|
||||
Errors which are not a property of the requested file, such as the thumbnails
|
||||
service being unreachable, were therefore invisible at production log levels: a
|
||||
complete preview outage produced HTTP 500 responses without a single log line
|
||||
explaining them. Unmapped errors are now logged at error level, while expected
|
||||
per-file outcomes such as an unsupported file type or a file still being
|
||||
processed stay at debug level. Two of the four thumbnail handlers also logged
|
||||
without the request context, so their messages carried no request id.
|
||||
|
||||
In addition, `codesEnum` only mapped four status codes, so error responses for
|
||||
all other codes were rendered with an empty `<s:exception></s:exception>`
|
||||
element. The missing entries for 403, 425 and 429 have been added and any
|
||||
remaining unmapped code now falls back to a generic exception name, so clients
|
||||
always receive a usable exception.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12668
|
||||
@@ -0,0 +1,14 @@
|
||||
Enhancement: Add audience restriction for OIDC access tokens
|
||||
|
||||
We added a new proxy configuration option `PROXY_OIDC_ACCESS_TOKEN_VERIFY_AUD`
|
||||
which lets operators restrict the JWT access tokens that are accepted to a list
|
||||
of allowed audiences. When set, a token is only accepted if one of the
|
||||
configured values is present in its `aud` (audience) claim or matches its `azp`
|
||||
(authorized party) claim. This is useful when the OIDC provider (IDP) is shared
|
||||
between multiple applications, so that tokens issued for another application are
|
||||
not accepted by ownCloud Infinite Scale.
|
||||
|
||||
The check is disabled by default (empty list) to preserve the existing behavior.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12634
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
Security: Restrict group member data to authorized users
|
||||
|
||||
The groups API could return group membership details to callers who should not have had access to it. Access to group member data is now properly restricted based on the caller's permissions.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12573
|
||||
@@ -0,0 +1,8 @@
|
||||
Security: Harden origin validation for embed mode delegated authentication
|
||||
|
||||
Hardened origin validation for the delegated authentication feature in Web's
|
||||
embed mode. Deployments using `WEB_OPTION_EMBED_DELEGATE_AUTHENTICATION` should
|
||||
ensure `WEB_OPTION_EMBED_DELEGATE_AUTHENTICATION_ORIGIN` is explicitly
|
||||
configured.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12572
|
||||
+7
-2
@@ -11,11 +11,16 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-simplexml": "*",
|
||||
"bamarni/composer-bin-plugin": "^1.8"
|
||||
"bamarni/composer-bin-plugin": "^1.8",
|
||||
"playwright-php/playwright": "^1.2"
|
||||
},
|
||||
"extra": {
|
||||
"bamarni-bin": {
|
||||
"bin-links": false
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"khanamiryan/qrcode-detector-decoder": "^2.0",
|
||||
"spomky-labs/otphp": "^11.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
-26734
File diff suppressed because it is too large.
Load diff
@@ -1,69 +0,0 @@
|
||||
# If you're on a internet facing server please comment out following line.
|
||||
# It skips certificate validation for various parts of oCIS and is needed if you use self signed certificates.
|
||||
INSECURE=true
|
||||
|
||||
# The demo users should not be created on a production instance
|
||||
# because their passwords are public
|
||||
DEMO_USERS=false
|
||||
|
||||
### Traefik settings ###
|
||||
TRAEFIK_LOG_LEVEL=
|
||||
# Serve Traefik dashboard. Defaults to "false".
|
||||
TRAEFIK_DASHBOARD=
|
||||
# Domain of Traefik, where you can find the dashboard. Defaults to "traefik.owncloud.test"
|
||||
TRAEFIK_DOMAIN=
|
||||
# Basic authentication for the dashboard. Defaults to user "admin" and password "admin"
|
||||
TRAEFIK_BASIC_AUTH_USERS=
|
||||
# Email address for obtaining LetsEncrypt certificates, needs only be changed if this is a public facing server
|
||||
TRAEFIK_ACME_MAIL=
|
||||
|
||||
### shared oCIS / oC10 settings ###
|
||||
# Domain of oCIS / oC10, where you can find the frontend. Defaults to "cloud.owncloud.test"
|
||||
CLOUD_DOMAIN=
|
||||
|
||||
### oCIS settings ###
|
||||
# oCIS version. Defaults to "latest"
|
||||
OCIS_DOCKER_TAG=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
STORAGE_TRANSFER_SECRET=
|
||||
# Machine auth api key secret. Must be changed in order to have a secure oCIS. Defaults to "change-me-please"
|
||||
OCIS_MACHINE_AUTH_API_KEY=
|
||||
|
||||
### oCIS settings ###
|
||||
# oC10 version. Defaults to "latest"
|
||||
OC10_DOCKER_TAG=
|
||||
# client secret which the openidconnect app uses to authenticate to Keycloak. Defaults to "oc10-oidc-secret"
|
||||
OC10_OIDC_CLIENT_SECRET=
|
||||
# app which will be shown when opening the ownCloud 10 UI. Defaults to "files" but also could be set to "web"
|
||||
OWNCLOUD_DEFAULT_APP=
|
||||
# if set to "false" (default) links will be opened in the classic UI, if set to "true" ownCloud Web is used
|
||||
OWNCLOUD_WEB_REWRITE_LINKS=
|
||||
|
||||
### LDAP settings ###
|
||||
# password for the LDAP admin user "cn=admin,dc=owncloud,dc=com", defaults to "admin"
|
||||
LDAP_ADMIN_PASSWORD=
|
||||
# Domain of the LDAP management frontend. Defaults to "ldap.owncloud.test"
|
||||
LDAP_MANAGER_DOMAIN=
|
||||
|
||||
### Keycloak ###
|
||||
# Domain of Keycloak, where you can find the management and authentication frontend. Defaults to "keycloak.owncloud.test"
|
||||
KEYCLOAK_DOMAIN=
|
||||
# Realm which to be used with oCIS. Defaults to "oCIS"
|
||||
KEYCLOAK_REALM=
|
||||
# Admin user login name. Defaults to "admin"
|
||||
KEYCLOAK_ADMIN_USER=
|
||||
# Admin user login password. Defaults to "admin"
|
||||
KEYCLOAK_ADMIN_PASSWORD=
|
||||
|
||||
|
||||
# If you want to use debugging and tracing with this stack,
|
||||
# you need uncomment following line. Please see documentation at
|
||||
# https://owncloud.dev/ocis/deployment/monitoring-tracing/
|
||||
#COMPOSE_FILE=docker-compose.yml:monitoring_tracing/docker-compose-additions.yml
|
||||
|
||||
# If you want to use the testsuite with this stack,
|
||||
# you need uncomment following line. Please see documentation at
|
||||
# https://owncloud.dev/ocis/development/testing/
|
||||
#COMPOSE_FILE=docker-compose.yml:testing/docker-compose-additions.yml
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
document this deployment example in docs/ocis/deployment/oc10_ocis_parallel.md
|
||||
---
|
||||
|
||||
Please refer to [our documentation](https://owncloud.dev/ocis/deployment/oc10_ocis_parallel/)
|
||||
for instructions on how to deploy this scenario.
|
||||
@@ -1,63 +0,0 @@
|
||||
{
|
||||
"clientId": "e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD",
|
||||
"name": "ownCloud Android app",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"secret" : "dInFYGV33xKzhbRmpqQltYNdfLdJIfJ9L5ISoKhNoT9qZftpdWSP71VrpGR9pmoD",
|
||||
"redirectUris": [
|
||||
"oc://android.owncloud.com"
|
||||
],
|
||||
"webOrigins": [],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": false,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"role_list",
|
||||
"profile",
|
||||
"roles",
|
||||
"owncloud",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
{
|
||||
"clientId": "xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69",
|
||||
"name": "ownCloud desktop client",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"secret" : "UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh",
|
||||
"redirectUris": [
|
||||
"http://127.0.0.1:*",
|
||||
"http://localhost:*"
|
||||
],
|
||||
"webOrigins": [],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": false,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"role_list",
|
||||
"profile",
|
||||
"roles",
|
||||
"owncloud",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
{
|
||||
"clientId": "mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1",
|
||||
"name": "ownCloud iOS app",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"secret" : "KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx",
|
||||
"redirectUris": [
|
||||
"oc://ios.owncloud.com"
|
||||
],
|
||||
"webOrigins": [],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": false,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"role_list",
|
||||
"profile",
|
||||
"roles",
|
||||
"owncloud",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
{
|
||||
"clientId": "oc10-web",
|
||||
"rootUrl": "https://cloud.owncloud.test",
|
||||
"adminUrl": "https://cloud.owncloud.test",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"redirectUris": [
|
||||
"https://cloud.owncloud.test/*"
|
||||
],
|
||||
"webOrigins": [
|
||||
"https://cloud.owncloud.test"
|
||||
],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": true,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"id.token.as.detached.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"oauth2.device.authorization.grant.enabled": "false",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"use.refresh.tokens": "true",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"oidc.ciba.grant.enabled": "false",
|
||||
"saml.artifact.binding": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"profile",
|
||||
"roles",
|
||||
"owncloud",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
{
|
||||
"clientId": "oc10",
|
||||
"rootUrl": "https://cloud.owncloud.test",
|
||||
"adminUrl": "https://cloud.owncloud.test",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"redirectUris": [
|
||||
"https://cloud.owncloud.test/*"
|
||||
],
|
||||
"webOrigins": [
|
||||
"https://cloud.owncloud.test"
|
||||
],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": false,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"id.token.as.detached.signature": "false",
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"oauth2.device.authorization.grant.enabled": "false",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"use.refresh.tokens": "true",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"oidc.ciba.grant.enabled": "false",
|
||||
"saml.artifact.binding": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"profile",
|
||||
"roles",
|
||||
"owncloud",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
{
|
||||
"clientId": "ocis-web",
|
||||
"rootUrl": "https://cloud.owncloud.test",
|
||||
"adminUrl": "https://cloud.owncloud.test",
|
||||
"baseUrl": "",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"redirectUris": [
|
||||
"https://cloud.owncloud.test/*"
|
||||
],
|
||||
"webOrigins": [
|
||||
"https://cloud.owncloud.test"
|
||||
],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": true,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"profile",
|
||||
"roles",
|
||||
"owncloud",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
printenv
|
||||
# replace owncloud domain in keycloak realm import
|
||||
cp /opt/jboss/keycloak/owncloud-realm.dist.json /opt/jboss/keycloak/owncloud-realm.json
|
||||
sed -i "s/cloud.owncloud.test/${CLOUD_DOMAIN}/g" /opt/jboss/keycloak/owncloud-realm.json
|
||||
sed -i "s/oc10-oidc-secret/${OC10_OIDC_CLIENT_SECRET}/g" /opt/jboss/keycloak/owncloud-realm.json
|
||||
sed -i "s/ldap-bind-credential/${LDAP_ADMIN_PASSWORD}/g" /opt/jboss/keycloak/owncloud-realm.json
|
||||
|
||||
|
||||
|
||||
# run original docker-entrypoint
|
||||
/opt/jboss/tools/docker-entrypoint.sh
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,32 +0,0 @@
|
||||
# This LDIF files describes the ownCloud schema
|
||||
dn: cn=owncloud,cn=schema,cn=config
|
||||
objectClass: olcSchemaConfig
|
||||
cn: owncloud
|
||||
olcObjectIdentifier: ownCloudOid 1.3.6.1.4.1.39430
|
||||
olcAttributeTypes: ( ownCloudOid:1.1.2 NAME 'ownCloudUUID'
|
||||
DESC 'A non-reassignable and persistent account ID)'
|
||||
EQUALITY uuidMatch
|
||||
SUBSTR caseIgnoreSubstringsMatch
|
||||
SYNTAX 1.3.6.1.1.16.1 SINGLE-VALUE )
|
||||
olcAttributeTypes: ( ownCloudOid:1.1.3 NAME 'oCExternalIdentity'
|
||||
DESC 'A triple separated by "$" representing the objectIdentity resource type of the Graph API ( signInType $ issuer $ issuerAssignedId )'
|
||||
EQUALITY caseIgnoreMatch
|
||||
SUBSTR caseIgnoreSubstringsMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
|
||||
olcAttributeTypes: ( ownCloudOid:1.1.4 NAME 'ownCloudUserEnabled'
|
||||
DESC 'A boolean value indicating if ownCloudUser is enabled'
|
||||
EQUALITY booleanMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE)
|
||||
olcAttributeTypes: ( ownCloudOid:1.1.5 NAME 'ownCloudUserType'
|
||||
DESC 'User type (e.g. Member or Guest)'
|
||||
EQUALITY caseIgnoreMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
|
||||
olcObjectClasses: ( ownCloudOid:1.2.1 NAME 'ownCloud'
|
||||
DESC 'ownCloud LDAP Schema'
|
||||
AUXILIARY
|
||||
MAY ( ownCloudUUID ) )
|
||||
olcObjectClasses: ( ownCloudOid:1.2.2 NAME 'ownCloudUser'
|
||||
DESC 'ownCloud User LDAP Schema'
|
||||
SUP ownCloud
|
||||
AUXILIARY
|
||||
MAY ( ocExternalIdentity $ ownCloudUserEnabled $ ownCloudUserType ) )
|
||||
@@ -1,109 +0,0 @@
|
||||
dn: ou=users,dc=owncloud,dc=com
|
||||
objectClass: organizationalUnit
|
||||
ou: users
|
||||
|
||||
# Start dn with uid (user identifier / login), not cn (Firstname + Surname)
|
||||
dn: uid=einstein,ou=users,dc=owncloud,dc=com
|
||||
objectClass: inetOrgPerson
|
||||
objectClass: organizationalPerson
|
||||
objectClass: ownCloud
|
||||
objectClass: person
|
||||
objectClass: posixAccount
|
||||
objectClass: top
|
||||
uid: einstein
|
||||
givenName: Albert
|
||||
sn: Einstein
|
||||
cn: einstein
|
||||
displayName: Albert Einstein
|
||||
description: A German-born theoretical physicist who developed the theory of relativity, one of the two pillars of modern physics (alongside quantum mechanics).
|
||||
mail: einstein@example.org
|
||||
uidNumber: 20000
|
||||
gidNumber: 30000
|
||||
homeDirectory: /home/einstein
|
||||
ownCloudUUID:: NGM1MTBhZGEtYzg2Yi00ODE1LTg4MjAtNDJjZGY4MmMzZDUx
|
||||
userPassword:: e1NTSEF9TXJEcXpFNGdKbXZxbVRVTGhvWEZ1VzJBbkV3NWFLK3J3WTIvbHc9PQ==
|
||||
ownCloudSelector: ocis
|
||||
|
||||
dn: uid=marie,ou=users,dc=owncloud,dc=com
|
||||
objectClass: inetOrgPerson
|
||||
objectClass: organizationalPerson
|
||||
objectClass: ownCloud
|
||||
objectClass: person
|
||||
objectClass: posixAccount
|
||||
objectClass: top
|
||||
uid: marie
|
||||
givenName: Marie
|
||||
sn: Curie
|
||||
cn: marie
|
||||
displayName: Marie Skłodowska Curie
|
||||
description: A Polish and naturalized-French physicist and chemist who conducted pioneering research on radioactivity.
|
||||
mail: marie@example.org
|
||||
uidNumber: 20001
|
||||
gidNumber: 30000
|
||||
homeDirectory: /home/marie
|
||||
ownCloudUUID:: ZjdmYmY4YzgtMTM5Yi00Mzc2LWIzMDctY2YwYThjMmQwZDlj
|
||||
userPassword:: e1NTSEF9UmFvQWs3TU9jRHBIUWY3bXN3MGhHNnVraFZQWnRIRlhOSUNNZEE9PQ==
|
||||
ownCloudSelector: oc10
|
||||
|
||||
dn: uid=richard,ou=users,dc=owncloud,dc=com
|
||||
objectClass: inetOrgPerson
|
||||
objectClass: organizationalPerson
|
||||
objectClass: ownCloud
|
||||
objectClass: person
|
||||
objectClass: posixAccount
|
||||
objectClass: top
|
||||
uid: richard
|
||||
givenName: Richard
|
||||
sn: Feynman
|
||||
cn: richard
|
||||
displayName: Richard Phillips Feynman
|
||||
description: An American theoretical physicist, known for his work in the path integral formulation of quantum mechanics, the theory of quantum electrodynamics, the physics of the superfluidity of supercooled liquid helium, as well as his work in particle physics for which he proposed the parton model.
|
||||
mail: richard@example.org
|
||||
uidNumber: 20002
|
||||
gidNumber: 30000
|
||||
homeDirectory: /home/richard
|
||||
ownCloudUUID:: OTMyYjQ1NDAtOGQxNi00ODFlLThlZjQtNTg4ZTRiNmIxNTFj
|
||||
userPassword:: e1NTSEF9Z05LZTRreHdmOGRUREY5eHlhSmpySTZ3MGxSVUM1d1RGcWROTVE9PQ==
|
||||
ownCloudSelector: ocis
|
||||
|
||||
dn: uid=moss,ou=users,dc=owncloud,dc=com
|
||||
objectClass: inetOrgPerson
|
||||
objectClass: organizationalPerson
|
||||
objectClass: ownCloud
|
||||
objectClass: person
|
||||
objectClass: posixAccount
|
||||
objectClass: top
|
||||
uid: moss
|
||||
givenName: Maurice
|
||||
sn: Moss
|
||||
cn: moss
|
||||
displayName: Maurice Moss
|
||||
description: A worker in the IT Department of Reynholm Industries. Of all the working staff in the IT Department, he is the most hard-working, the most experienced, and the most capable of doing his job well. He puts a lot of effort into his work, however he does not get the credit he deserves.
|
||||
mail: moss@example.org
|
||||
uidNumber: 20003
|
||||
gidNumber: 30000
|
||||
homeDirectory: /home/moss
|
||||
ownCloudUUID:: MDU4YmZmOTUtNjcwOC00ZmU1LTkxZTQtOWVhM2QzNzc1ODhi
|
||||
userPassword:: e1NTSEF9N0hEdTRoMkFDVExFWWt4U0RtSDZVQjhmUlpKRExDZDc=
|
||||
ownCloudSelector: ocis
|
||||
|
||||
dn: uid=admin,ou=users,dc=owncloud,dc=com
|
||||
objectClass: inetOrgPerson
|
||||
objectClass: organizationalPerson
|
||||
objectClass: ownCloud
|
||||
objectClass: person
|
||||
objectClass: posixAccount
|
||||
objectClass: top
|
||||
uid: admin
|
||||
givenName: Admin
|
||||
sn: Admin
|
||||
cn: admin
|
||||
displayName: Admin
|
||||
description: An admin for this oCIS instance.
|
||||
mail: admin@example.org
|
||||
uidNumber: 20004
|
||||
gidNumber: 30000
|
||||
homeDirectory: /home/admin
|
||||
ownCloudUUID:: ZGRjMjAwNGMtMDk3Ny0xMWViLTlkM2YtYTc5Mzg4OGNkMGY4
|
||||
userPassword:: e1NTSEF9UWhmaFB3dERydTUydURoWFFObDRMbzVIckI3TkI5Nmo=
|
||||
ownCloudSelector: oc10
|
||||
@@ -1,81 +0,0 @@
|
||||
dn: ou=groups,dc=owncloud,dc=com
|
||||
objectClass: organizationalUnit
|
||||
ou: groups
|
||||
|
||||
dn: cn=users,ou=groups,dc=owncloud,dc=com
|
||||
objectClass: groupOfNames
|
||||
objectClass: ownCloud
|
||||
objectClass: top
|
||||
cn: users
|
||||
description: Users
|
||||
ownCloudUUID:: NTA5YTlkY2QtYmIzNy00ZjRmLWEwMWEtMTlkY2EyN2Q5Y2Zh
|
||||
member: uid=einstein,ou=users,dc=owncloud,dc=com
|
||||
member: uid=marie,ou=users,dc=owncloud,dc=com
|
||||
member: uid=richard,ou=users,dc=owncloud,dc=com
|
||||
member: uid=moss,ou=users,dc=owncloud,dc=com
|
||||
member: uid=admin,ou=users,dc=owncloud,dc=com
|
||||
|
||||
dn: cn=sailing-lovers,ou=groups,dc=owncloud,dc=com
|
||||
objectClass: groupOfNames
|
||||
objectClass: ownCloud
|
||||
objectClass: top
|
||||
cn: sailing-lovers
|
||||
description: Sailing lovers
|
||||
ownCloudUUID:: NjA0MGFhMTctOWM2NC00ZmVmLTliZDAtNzcyMzRkNzFiYWQw
|
||||
member: uid=einstein,ou=users,dc=owncloud,dc=com
|
||||
|
||||
dn: cn=violin-haters,ou=groups,dc=owncloud,dc=com
|
||||
objectClass: groupOfNames
|
||||
objectClass: ownCloud
|
||||
objectClass: top
|
||||
cn: violin-haters
|
||||
description: Violin haters
|
||||
ownCloudUUID:: ZGQ1OGU1ZWMtODQyZS00OThiLTg4MDAtNjFmMmVjNmY5MTFm
|
||||
member: uid=einstein,ou=users,dc=owncloud,dc=com
|
||||
|
||||
dn: cn=radium-lovers,ou=groups,dc=owncloud,dc=com
|
||||
objectClass: groupOfNames
|
||||
objectClass: ownCloud
|
||||
objectClass: top
|
||||
cn: radium-lovers
|
||||
description: Radium lovers
|
||||
ownCloudUUID:: N2I4N2ZkNDktMjg2ZS00YTVmLWJhZmQtYzUzNWQ1ZGQ5OTdh
|
||||
member: uid=marie,ou=users,dc=owncloud,dc=com
|
||||
|
||||
dn: cn=polonium-lovers,ou=groups,dc=owncloud,dc=com
|
||||
objectClass: groupOfNames
|
||||
objectClass: ownCloud
|
||||
objectClass: top
|
||||
cn: polonium-lovers
|
||||
description: Polonium lovers
|
||||
ownCloudUUID:: Y2VkYzIxYWEtNDA3Mi00NjE0LTg2NzYtZmE5MTY1ZjU5OGZm
|
||||
member: uid=marie,ou=users,dc=owncloud,dc=com
|
||||
|
||||
dn: cn=quantum-lovers,ou=groups,dc=owncloud,dc=com
|
||||
objectClass: groupOfNames
|
||||
objectClass: ownCloud
|
||||
objectClass: top
|
||||
cn: quantum-lovers
|
||||
description: Quantum lovers
|
||||
ownCloudUUID:: YTE3MjYxMDgtMDFmOC00YzMwLTg4ZGYtMmIxYTlkMWNiYTFh
|
||||
member: uid=richard,ou=users,dc=owncloud,dc=com
|
||||
|
||||
dn: cn=philosophy-haters,ou=groups,dc=owncloud,dc=com
|
||||
objectClass: groupOfNames
|
||||
objectClass: ownCloud
|
||||
objectClass: top
|
||||
cn: philosophy-haters
|
||||
description: Philosophy haters
|
||||
ownCloudUUID:: MTY3Y2JlZTItMDUxOC00NTVhLWJmYjItMDMxZmUwNjIxZTVk
|
||||
member: uid=richard,ou=users,dc=owncloud,dc=com
|
||||
|
||||
dn: cn=physics-lovers,ou=groups,dc=owncloud,dc=com
|
||||
objectClass: groupOfNames
|
||||
objectClass: ownCloud
|
||||
objectClass: top
|
||||
cn: physics-lovers
|
||||
description: Physics lovers
|
||||
ownCloudUUID:: MjYyOTgyYzEtMjM2Mi00YWZhLWJmZGYtOGNiZmVmNjRhMDZl
|
||||
member: uid=einstein,ou=users,dc=owncloud,dc=com
|
||||
member: uid=marie,ou=users,dc=owncloud,dc=com
|
||||
member: uid=richard,ou=users,dc=owncloud,dc=com
|
||||
@@ -1,40 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
echo "Writing custom config files..."
|
||||
|
||||
# openidconnect
|
||||
gomplate \
|
||||
-f /etc/templates/oidc.config.php \
|
||||
-o ${OWNCLOUD_VOLUME_CONFIG}/oidc.config.php
|
||||
|
||||
# we need at least version 2.1.0 of the openidconnect app
|
||||
occ market:upgrade --major openidconnect
|
||||
occ app:enable openidconnect
|
||||
|
||||
# user LDAP
|
||||
gomplate \
|
||||
-f /etc/templates/ldap-config.tmpl.json \
|
||||
-o ${OWNCLOUD_VOLUME_CONFIG}/ldap-config.json
|
||||
|
||||
CONFIG=$(cat ${OWNCLOUD_VOLUME_CONFIG}/ldap-config.json)
|
||||
occ config:import <<< $CONFIG
|
||||
|
||||
occ ldap:test-config "s01"
|
||||
occ app:enable user_ldap
|
||||
/bin/bash -c 'occ user:sync "OCA\User_LDAP\User_Proxy" -r -m remove'
|
||||
|
||||
cp /tmp/ldap-sync-cron /etc/cron.d
|
||||
chown root:root /etc/cron.d/ldap-sync-cron
|
||||
|
||||
# ownCloud Web
|
||||
gomplate \
|
||||
-f /etc/templates/web.config.php \
|
||||
-o ${OWNCLOUD_VOLUME_CONFIG}/web.config.php
|
||||
|
||||
gomplate \
|
||||
-f /etc/templates/web-config.tmpl.json \
|
||||
-o ${OWNCLOUD_VOLUME_CONFIG}/config.json
|
||||
|
||||
occ market:upgrade --major web
|
||||
occ app:enable web
|
||||
|
||||
true
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# enable testing app
|
||||
echo "Cloning and enabling testing app..."
|
||||
git clone --depth 1 https://github.com/owncloud/testing.git /var/www/owncloud/apps/testing
|
||||
occ app:enable testing
|
||||
|
||||
true
|
||||
@@ -1,53 +0,0 @@
|
||||
{
|
||||
"apps": {
|
||||
"user_ldap": {
|
||||
"s01has_memberof_filter_support": "0",
|
||||
"s01home_folder_naming_rule": "",
|
||||
"s01last_jpegPhoto_lookup": "0",
|
||||
"s01ldap_agent_password": "{{ .Env.STORAGE_LDAP_BIND_PASSWORD | base64.Encode }}",
|
||||
"s01ldap_attributes_for_group_search": "",
|
||||
"s01ldap_attributes_for_user_search": "{{ .Env.LDAP_USERATTRIBUTEFILTERS }}",
|
||||
"s01ldap_backup_host": "",
|
||||
"s01ldap_backup_port": "",
|
||||
"s01ldap_base_groups": "{{ .Env.LDAP_BASE_DN }}",
|
||||
"s01ldap_base_users": "{{ .Env.LDAP_BASE_DN }}",
|
||||
"s01ldap_base": "{{ .Env.LDAP_BASE_DN }}",
|
||||
"s01ldap_cache_ttl": "60",
|
||||
"s01ldap_configuration_active": "1",
|
||||
"s01ldap_display_name": "{{ .Env.LDAP_USER_SCHEMA_DISPLAYNAME }}",
|
||||
"s01ldap_dn": "{{ .Env.STORAGE_LDAP_BIND_DN }}",
|
||||
"s01ldap_dynamic_group_member_url": "",
|
||||
"s01ldap_email_attr": "{{ .Env.LDAP_USER_SCHEMA_MAIL }}",
|
||||
"s01ldap_experienced_admin": "1",
|
||||
"s01ldap_expert_username_attr": "{{ .Env.LDAP_USER_SCHEMA_NAME_ATTR }}",
|
||||
"s01ldap_expert_uuid_group_attr": "",
|
||||
"s01ldap_expert_uuid_user_attr": "{{ .Env.LDAP_USER_SCHEMA_UID }}",
|
||||
"s01ldap_group_display_name": "{{ .Env.LDAP_GROUP_SCHEMA_DISPLAYNAME }}",
|
||||
"s01ldap_group_filter_mode": "0",
|
||||
"s01ldap_group_filter": "{{ .Env.LDAP_GROUP_FILTER }}",
|
||||
"s01ldap_group_member_assoc_attribute": "{{ .Env.LDAP_GROUP_MEMBER_ASSOC_ATTR }}",
|
||||
"s01ldap_groupfilter_groups": "",
|
||||
"s01ldap_groupfilter_objectclass": "",
|
||||
"s01ldap_host": "{{ .Env.LDAP_HOST }}",
|
||||
"s01ldap_login_filter_mode": "0",
|
||||
"s01ldap_login_filter": "{{ .Env.LDAP_LOGINFILTER }}",
|
||||
"s01ldap_loginfilter_attributes": "",
|
||||
"s01ldap_loginfilter_email": "1",
|
||||
"s01ldap_loginfilter_username": "1",
|
||||
"s01ldap_nested_groups": "0",
|
||||
"s01ldap_override_main_server": "",
|
||||
"s01ldap_paging_size": "100",
|
||||
"s01ldap_port": "{{ .Env.LDAP_PORT }}",
|
||||
"s01ldap_quota_attr": "",
|
||||
"s01ldap_quota_def": "",
|
||||
"s01ldap_tls": "0",
|
||||
"s01ldap_turn_off_cert_check": "0",
|
||||
"s01ldap_user_display_name_2": "",
|
||||
"s01ldap_user_filter_mode": "0",
|
||||
"s01ldap_userfilter_groups": "",
|
||||
"s01ldap_userfilter_objectclass": "",
|
||||
"s01ldap_userlist_filter": "{{ .Env.LDAP_USER_FILTER }}",
|
||||
"s01use_memberof_to_detect_membership": "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
*/1 * * * * www-data /bin/bash -c 'occ user:sync "OCA\User_LDAP\User_Proxy" -r -m remove'
|
||||
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
# reference: https://doc.owncloud.com/server/admin_manual/configuration/user/oidc/
|
||||
|
||||
function getOIDCConfigFromEnv() {
|
||||
$config = [
|
||||
'openid-connect' => [
|
||||
'provider-url' => getenv('IDP_OIDC_ISSUER'),
|
||||
'client-id' => 'oc10',
|
||||
'client-secret' => getenv('IDP_OIDC_CLIENT_SECRET'),
|
||||
'loginButtonName' => 'OpenId Connect',
|
||||
'search-attribute' => 'preferred_username',
|
||||
'mode' => 'userid',
|
||||
'autoRedirectOnLoginPage' => true,
|
||||
'insecure' => true,
|
||||
'post_logout_redirect_uri' => 'https://' . getenv('CLOUD_DOMAIN'),
|
||||
],
|
||||
];
|
||||
return $config;
|
||||
}
|
||||
|
||||
$CONFIG = getOIDCConfigFromEnv();
|
||||
@@ -1,35 +0,0 @@
|
||||
{
|
||||
"server": "https://{{ .Env.CLOUD_DOMAIN }}",
|
||||
"theme": "owncloud",
|
||||
"openIdConnect": {
|
||||
"metadata_url": "{{ .Env.IDP_OIDC_ISSUER }}/.well-known/openid-configuration",
|
||||
"authority": "{{ .Env.IDP_OIDC_ISSUER }}",
|
||||
"client_id": "oc10-web",
|
||||
"response_type": "code",
|
||||
"scope": "openid profile email"
|
||||
},
|
||||
"apps": ["files", "media-viewer", "search"],
|
||||
"applications": [
|
||||
{
|
||||
"icon": "switch_ui",
|
||||
"target": "_self",
|
||||
"title": {
|
||||
"en": "Classic Design",
|
||||
"de": "Dateien",
|
||||
"fr": "Fichiers",
|
||||
"zh_CN": "文件"
|
||||
},
|
||||
"url": "https://{{ .Env.CLOUD_DOMAIN }}/index.php/apps/files"
|
||||
},
|
||||
{
|
||||
"icon": "application",
|
||||
"menu": "user",
|
||||
"target": "_self",
|
||||
"title": {
|
||||
"de": "Einstellungen",
|
||||
"en": "Settings"
|
||||
},
|
||||
"url": "https://{{ .Env.CLOUD_DOMAIN }}/index.php/settings/personal"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
# reference: https://owncloud.dev/clients/web/deployments/oc10-app/
|
||||
|
||||
function getWebConfigFromEnv() {
|
||||
$config = [
|
||||
'web.baseUrl' => 'https://' . getenv('CLOUD_DOMAIN') . '/index.php/apps/web',
|
||||
'web.rewriteLinks' => getenv('OWNCLOUD_WEB_REWRITE_LINKS') == 'true',
|
||||
|
||||
];
|
||||
return $config;
|
||||
}
|
||||
|
||||
$CONFIG = getWebConfigFromEnv();
|
||||
@@ -1,5 +0,0 @@
|
||||
password
|
||||
12345678
|
||||
123
|
||||
ownCloud
|
||||
ownCloud-1
|
||||
@@ -1,61 +0,0 @@
|
||||
---
|
||||
policy_selector:
|
||||
claims:
|
||||
default_policy: oc10
|
||||
unauthenticated_policy: oc10
|
||||
policies:
|
||||
- name: ocis
|
||||
routes:
|
||||
- endpoint: /
|
||||
backend: http://localhost:9100
|
||||
- endpoint: /.well-known/
|
||||
backend: http://localhost:9130
|
||||
- endpoint: /konnect/
|
||||
backend: http://localhost:9130
|
||||
- endpoint: /signin/
|
||||
backend: http://localhost:9130
|
||||
- endpoint: /archiver
|
||||
backend: http://localhost:9140
|
||||
- type: regex
|
||||
endpoint: /ocs/v[12].php/cloud/user/signing-key
|
||||
backend: http://localhost:9110
|
||||
- endpoint: /ocs/
|
||||
backend: http://localhost:9140
|
||||
- type: query
|
||||
endpoint: /remote.php/?preview=1
|
||||
backend: http://localhost:9115
|
||||
- method: REPORT
|
||||
endpoint: /remote.php/dav/
|
||||
backend: http://localhost:9115
|
||||
- type: query
|
||||
endpoint: /dav/?preview=1
|
||||
backend: http://localhost:9115
|
||||
- type: query
|
||||
endpoint: /webdav/?preview=1
|
||||
backend: http://localhost:9115
|
||||
- endpoint: /remote.php/
|
||||
service: com.owncloud.web.ocdav
|
||||
- endpoint: /dav/
|
||||
service: com.owncloud.web.ocdav
|
||||
- endpoint: /webdav/
|
||||
service: com.owncloud.web.ocdav
|
||||
- endpoint: /status.php
|
||||
service: com.owncloud.web.ocdav
|
||||
- endpoint: /index.php/
|
||||
service: com.owncloud.web.ocdav
|
||||
- endpoint: /apps/
|
||||
service: com.owncloud.web.ocdav
|
||||
- endpoint: /data
|
||||
backend: http://localhost:9140
|
||||
- endpoint: /app/
|
||||
backend: http://localhost:9140
|
||||
- endpoint: /graph/
|
||||
backend: http://localhost:9120
|
||||
- endpoint: /api/v0/settings
|
||||
backend: http://localhost:9190
|
||||
- name: oc10
|
||||
routes:
|
||||
- endpoint: "/"
|
||||
backend: http://oc10:8080
|
||||
- endpoint: "/data"
|
||||
backend: http://localhost:9140
|
||||
@@ -1,345 +0,0 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.9.1
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${CLOUD_DOMAIN:-cloud.owncloud.test}
|
||||
- ${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}
|
||||
command:
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dashboard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
# access log
|
||||
- "--accessLog=true"
|
||||
- "--accessLog.format=json"
|
||||
- "--accessLog.fields.headers.names.X-Request-Id=keep"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_BASIC_AUTH_USERS:-admin:$$apr1$$4vqie50r$$YQAmQdtmz5n9rEALhxJ4l.}" # defaults to admin:admin
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
ocis-init-volumes:
|
||||
image: busybox
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
# prepare the oCIS config volume for oCIS
|
||||
command: ["-c", "chown -R 33:33 /etc/ocis /var/lib/ocis"]
|
||||
volumes:
|
||||
- ocis-config:/etc/ocis
|
||||
- ocis-data:/var/lib/ocis
|
||||
|
||||
ocis:
|
||||
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
ocis-net:
|
||||
user: "33:33" # equals the user "www-data" for oC10
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
# run ocis init to initialize a configuration file with random secrets
|
||||
# it will fail on subsequent runs, because the config file already exists
|
||||
# therefore we ignore the error and then start the ocis server
|
||||
command: ["-c", "ocis init || true; exec ocis server"]
|
||||
#entrypoint:
|
||||
# - /bin/sh
|
||||
# - /entrypoint-override.sh
|
||||
environment:
|
||||
# Keycloak IDP specific configuration
|
||||
OCIS_OIDC_ISSUER: https://${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}/auth/realms/${KEYCLOAK_REALM:-owncloud}
|
||||
PROXY_OIDC_REWRITE_WELLKNOWN: "true"
|
||||
WEB_OIDC_CLIENT_ID: ocis-web
|
||||
WEB_OIDC_SCOPE: openid profile email owncloud
|
||||
# external ldap is supposed to be read-only
|
||||
GRAPH_IDENTITY_BACKEND: ldap
|
||||
GRAPH_LDAP_SERVER_WRITE_ENABLED: "false"
|
||||
# LDAP bind
|
||||
OCIS_LDAP_URI: "ldaps://openldap"
|
||||
OCIS_LDAP_INSECURE: "true"
|
||||
OCIS_LDAP_BIND_DN: "cn=admin,dc=owncloud,dc=com"
|
||||
OCIS_LDAP_BIND_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin}
|
||||
# LDAP user settings
|
||||
PROXY_USER_OIDC_CLAIM: ocis.user.uuid # claim was added in Keycloak
|
||||
PROXY_USER_CS3_CLAIM: userid # equals LDAP_USER_SCHEMA_ID
|
||||
OCIS_LDAP_GROUP_BASE_DN: "ou=groups,dc=owncloud,dc=com"
|
||||
OCIS_LDAP_GROUP_SCHEMA_ID: "ownclouduuid"
|
||||
OCIS_LDAP_GROUP_FILTER: "(objectclass=owncloud)"
|
||||
OCIS_LDAP_USER_BASE_DN: "ou=users,dc=owncloud,dc=com"
|
||||
OCIS_LDAP_USER_SCHEMA_ID: "ownclouduuid"
|
||||
OCIS_LDAP_USER_FILTER: "(objectclass=owncloud)"
|
||||
# ownCloudSQL storage driver
|
||||
STORAGE_USERS_DRIVER: "owncloudsql"
|
||||
STORAGE_USERS_OWNCLOUDSQL_DATADIR: "/mnt/data/files"
|
||||
STORAGE_USERS_OWNCLOUDSQL_SHARE_FOLDER: "/Shares"
|
||||
STORAGE_USERS_OWNCLOUDSQL_LAYOUT: "{{.Username}}"
|
||||
STORAGE_USERS_OWNCLOUDSQL_DB_USERNAME: "owncloud"
|
||||
STORAGE_USERS_OWNCLOUDSQL_DB_PASSWORD: "owncloud"
|
||||
STORAGE_USERS_OWNCLOUDSQL_DB_HOST: "oc10-db"
|
||||
STORAGE_USERS_OWNCLOUDSQL_DB_PORT: 3306
|
||||
STORAGE_USERS_OWNCLOUDSQL_DB_NAME: "owncloud"
|
||||
# ownCloudSQL sharing driver
|
||||
SHARING_USER_DRIVER: "owncloudsql"
|
||||
SHARING_USER_OWNCLOUDSQL_DB_USERNAME: "owncloud"
|
||||
SHARING_USER_OWNCLOUDSQL_DB_PASSWORD: "owncloud"
|
||||
SHARING_USER_OWNCLOUDSQL_DB_HOST: "oc10-db"
|
||||
SHARING_USER_OWNCLOUDSQL_DB_PORT: 3306
|
||||
SHARING_USER_OWNCLOUDSQL_DB_NAME: "owncloud"
|
||||
# ownCloud storage readonly
|
||||
OCIS_STORAGE_READ_ONLY: "false" # TODO: conflict with OWNCLOUDSQL -> https://github.com/owncloud/ocis/issues/2303
|
||||
# General oCIS config
|
||||
# OCIS_RUN_SERVICES specifies to start all fullstack services except idm and idp. These are replaced by external services
|
||||
OCIS_RUN_SERVICES: app-registry,app-provider,auth-basic,auth-machine,frontend,gateway,graph,groups,nats,notifications,ocdav,ocs,proxy,search,settings,sharing,storage-system,storage-publiclink,storage-shares,storage-users,store,thumbnails,users,web,webdav
|
||||
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-info}
|
||||
OCIS_LOG_COLOR: "${OCIS_LOG_COLOR:-false}"
|
||||
OCIS_URL: https://${CLOUD_DOMAIN:-cloud.owncloud.test}
|
||||
PROXY_TLS: "false" # do not use SSL between Traefik and oCIS
|
||||
# INSECURE: needed if oCIS / Traefik is using self generated certificates
|
||||
OCIS_INSECURE: "${INSECURE:-false}"
|
||||
# basic auth (not recommended, but needed for e.g., WebDav clients that do not support OpenID Connect)
|
||||
PROXY_ENABLE_BASIC_AUTH: "${PROXY_ENABLE_BASIC_AUTH:-false}"
|
||||
# password policies
|
||||
OCIS_PASSWORD_POLICY_BANNED_PASSWORDS_LIST: "banned-password-list.txt"
|
||||
volumes:
|
||||
- ./config/ocis/banned-password-list.txt:/etc/ocis/banned-password-list.txt
|
||||
- ./config/ocis/proxy.yaml:/etc/ocis/proxy.yaml
|
||||
- ocis-config:/etc/ocis
|
||||
- ocis-data:/var/lib/ocis
|
||||
# shared volume with oC10
|
||||
- oc10-data:/mnt/data
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "traefik.http.routers.ocis.rule=Host(`${CLOUD_DOMAIN:-cloud.owncloud.test}`)"
|
||||
- "traefik.http.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
oc10:
|
||||
image: owncloud/server:${OC10_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
ocis-net:
|
||||
environment:
|
||||
# make ownCloud Web the default frontend
|
||||
OWNCLOUD_DEFAULT_APP: ${OWNCLOUD_DEFAULT_APP:-files} # can be switched to "web"
|
||||
OWNCLOUD_WEB_REWRITE_LINKS: ${OWNCLOUD_WEB_REWRITE_LINKS:-false}
|
||||
# script / config variables
|
||||
IDP_OIDC_ISSUER: https://${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}/auth/realms/${KEYCLOAK_REALM:-owncloud}
|
||||
IDP_OIDC_CLIENT_SECRET: ${OC10_OIDC_CLIENT_SECRET:-oc10-oidc-secret}
|
||||
CLOUD_DOMAIN: ${CLOUD_DOMAIN:-cloud.owncloud.test}
|
||||
# LDAP bind configuration
|
||||
LDAP_HOST: "openldap"
|
||||
LDAP_PORT: 389
|
||||
STORAGE_LDAP_BIND_DN: "cn=admin,dc=owncloud,dc=com"
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin}
|
||||
# LDAP user configuration
|
||||
LDAP_BASE_DN: "dc=owncloud,dc=com"
|
||||
LDAP_USER_SCHEMA_DISPLAYNAME: "displayname"
|
||||
LDAP_LOGINFILTER: "(&(objectclass=owncloud)(|(uid=%uid)(mail=%uid)))"
|
||||
LDAP_GROUP_SCHEMA_DISPLAYNAME: "cn"
|
||||
LDAP_USER_SCHEMA_NAME_ATTR: "uid"
|
||||
LDAP_GROUP_FILTER: "(&(objectclass=groupOfNames)(objectclass=owncloud))"
|
||||
LDAP_USER_SCHEMA_UID: "ownclouduuid"
|
||||
LDAP_USERATTRIBUTEFILTERS: "" #"ownclouduuid;cn;uid;mail"
|
||||
LDAP_USER_SCHEMA_MAIL: "mail"
|
||||
LDAP_USER_FILTER: "(&(objectclass=owncloud))"
|
||||
LDAP_GROUP_MEMBER_ASSOC_ATTR: "uniqueMember"
|
||||
# ownCloud config
|
||||
OWNCLOUD_DB_TYPE: mysql
|
||||
OWNCLOUD_DB_NAME: owncloud
|
||||
OWNCLOUD_DB_USERNAME: owncloud
|
||||
OWNCLOUD_DB_PASSWORD: owncloud
|
||||
OWNCLOUD_DB_HOST: oc10-db
|
||||
OWNCLOUD_ADMIN_USERNAME: admin
|
||||
OWNCLOUD_ADMIN_PASSWORD: admin
|
||||
OWNCLOUD_MYSQL_UTF8MB4: "true"
|
||||
OWNCLOUD_REDIS_ENABLED: "true"
|
||||
OWNCLOUD_REDIS_HOST: redis
|
||||
OWNCLOUD_TRUSTED_PROXIES: ${CLOUD_DOMAIN:-cloud.owncloud.test}
|
||||
OWNCLOUD_OVERWRITE_PROTOCOL: https
|
||||
OWNCLOUD_OVERWRITE_HOST: ${CLOUD_DOMAIN:-cloud.owncloud.test}
|
||||
OWNCLOUD_APPS_ENABLE: "openidconnect,oauth2,user_ldap,graphapi"
|
||||
OWNCLOUD_LOG_LEVEL: 0
|
||||
OWNCLOUD_LOG_FILE: /dev/stdout
|
||||
volumes:
|
||||
# oidc, ldap and web config
|
||||
- ./config/oc10/oidc.config.php:/etc/templates/oidc.config.php
|
||||
- ./config/oc10/ldap-config.tmpl.json:/etc/templates/ldap-config.tmpl.json
|
||||
- ./config/oc10/ldap-sync-cron:/tmp/ldap-sync-cron
|
||||
- ./config/oc10/web.config.php:/etc/templates/web.config.php
|
||||
- ./config/oc10/web-config.tmpl.json:/etc/templates/web-config.tmpl.json
|
||||
# config load script
|
||||
- ./config/oc10/10-custom-config.sh:/etc/pre_server.d/10-custom-config.sh
|
||||
# data persistence
|
||||
- oc10-data:/mnt/data
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
keycloak:
|
||||
# Keycloak WildFly distribution, Quarkus is not ready yet for automatic setup https://github.com/keycloak/keycloak/issues/10216
|
||||
image: quay.io/keycloak/keycloak:legacy
|
||||
networks:
|
||||
ocis-net:
|
||||
entrypoint: ["/bin/sh", "/opt/jboss/tools/docker-entrypoint-override.sh"]
|
||||
volumes:
|
||||
- ./config/keycloak/docker-entrypoint-override.sh:/opt/jboss/tools/docker-entrypoint-override.sh
|
||||
- ./config/keycloak/owncloud-realm.dist.json:/opt/jboss/keycloak/owncloud-realm.dist.json
|
||||
environment:
|
||||
CLOUD_DOMAIN: ${CLOUD_DOMAIN:-cloud.owncloud.test}
|
||||
OC10_OIDC_CLIENT_SECRET: ${OC10_OIDC_CLIENT_SECRET:-oc10-oidc-secret}
|
||||
LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin}
|
||||
DB_VENDOR: POSTGRES
|
||||
DB_ADDR: keycloak-db
|
||||
DB_DATABASE: keycloak
|
||||
DB_USER: keycloak
|
||||
DB_SCHEMA: public
|
||||
DB_PASSWORD: keycloak
|
||||
KEYCLOAK_USER: ${KEYCLOAK_ADMIN_USER:-admin}
|
||||
KEYCLOAK_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD:-admin}
|
||||
PROXY_ADDRESS_FORWARDING: "true"
|
||||
KEYCLOAK_IMPORT: /opt/jboss/keycloak/owncloud-realm.json
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.keycloak.entrypoints=https"
|
||||
- "traefik.http.routers.keycloak.rule=Host(`${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}`)"
|
||||
- "traefik.http.routers.keycloak.tls.certresolver=http"
|
||||
- "traefik.http.routers.keycloak.service=keycloak"
|
||||
- "traefik.http.services.keycloak.loadbalancer.server.port=8080"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
openldap:
|
||||
image: osixia/openldap:latest
|
||||
networks:
|
||||
ocis-net:
|
||||
command: --copy-service --loglevel debug
|
||||
environment:
|
||||
LDAP_TLS_VERIFY_CLIENT: never
|
||||
LDAP_DOMAIN: owncloud.com
|
||||
LDAP_ORGANISATION: ownCloud
|
||||
LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin}
|
||||
LDAP_RFC2307BIS_SCHEMA: "true"
|
||||
LDAP_REMOVE_CONFIG_AFTER_SETUP: "false"
|
||||
volumes:
|
||||
- ./config/ldap/ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
ldap-manager:
|
||||
image: osixia/phpldapadmin:0.9.0
|
||||
networks:
|
||||
ocis-net:
|
||||
environment:
|
||||
PHPLDAPADMIN_LDAP_HOSTS: openldap
|
||||
PHPLDAPADMIN_HTTPS: "false"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ldap-manager.entrypoints=https"
|
||||
- "traefik.http.routers.ldap-manager.rule=Host(`${LDAP_MANAGER_DOMAIN:-ldap.owncloud.test}`)"
|
||||
- "traefik.http.routers.ldap-manager.tls.certresolver=http"
|
||||
- "traefik.http.routers.ldap-manager.service=ldap-manager"
|
||||
- "traefik.http.services.ldap-manager.loadbalancer.server.port=80"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
keycloak-db:
|
||||
image: postgres:alpine
|
||||
networks:
|
||||
ocis-net:
|
||||
volumes:
|
||||
- keycloak-postgres-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: keycloak
|
||||
POSTGRES_USER: keycloak
|
||||
POSTGRES_PASSWORD: keycloak
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
oc10-db:
|
||||
image: mariadb:10.6
|
||||
networks:
|
||||
ocis-net:
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=owncloud
|
||||
- MYSQL_USER=owncloud
|
||||
- MYSQL_PASSWORD=owncloud
|
||||
- MYSQL_DATABASE=owncloud
|
||||
command:
|
||||
[
|
||||
"--max-allowed-packet=128M",
|
||||
"--innodb-log-file-size=64M",
|
||||
"--innodb-read-only-compressed=OFF",
|
||||
]
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-u", "root", "--password=owncloud"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
volumes:
|
||||
- oc10-mysql-data:/var/lib/mysql
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
networks:
|
||||
ocis-net:
|
||||
image: redis:6
|
||||
command: ["--databases", "1"]
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
volumes:
|
||||
- oc10-redis-data:/data
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
certs:
|
||||
ocis-config:
|
||||
ocis-data:
|
||||
keycloak-postgres-data:
|
||||
oc10-mysql-data:
|
||||
oc10-redis-data:
|
||||
oc10-data:
|
||||
oc10-tmp:
|
||||
|
||||
networks:
|
||||
ocis-net:
|
||||
@@ -1,13 +0,0 @@
|
||||
#! /bin/bash
|
||||
docker-compose exec keycloak \
|
||||
sh -c "cd /opt/jboss/keycloak && \
|
||||
timeout 60 bin/standalone.sh \
|
||||
-Djboss.httin/standalone.sh \
|
||||
-Djboss.socket.binding.port-offset=100 \
|
||||
-Dkeycloak.migration.action=export \
|
||||
-Dkeycloak.migration.provider=singleFile \
|
||||
-Dkeycloak.migration.realmName=owncloud \
|
||||
-Dkeycloak.migration.file=owncloud-realm.json"
|
||||
|
||||
docker-compose exec keycloak \
|
||||
cp /opt/jboss/keycloak/owncloud-realm.json /opt/jboss/keycloak/owncloud-realm.dist.json
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
ocis:
|
||||
environment:
|
||||
# tracing
|
||||
OCIS_TRACING_ENABLED: "true"
|
||||
OCIS_TRACING_TYPE: "otlp"
|
||||
OCIS_TRACING_ENDPOINT: jaeger:4317
|
||||
# metrics
|
||||
# if oCIS runs as a single process, all <debug>/metrics endpoints
|
||||
# will expose the same metrics, so it's sufficient to query one endpoint
|
||||
PROXY_DEBUG_ADDR: 0.0.0.0:9205
|
||||
|
||||
networks:
|
||||
ocis-net:
|
||||
@@ -1,19 +0,0 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
ocis:
|
||||
environment:
|
||||
LDAP_GROUP_BASE_DN: "ou=TestGroups,dc=owncloud,dc=com"
|
||||
LDAP_USER_BASE_DN: "ou=TestUsers,dc=owncloud,dc=com"
|
||||
PROXY_ENABLE_BASIC_AUTH: "true"
|
||||
|
||||
oc10:
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- ./config/oc10/11-testing-app.sh:/etc/pre_server.d/11-testing-app.sh
|
||||
|
||||
openldap:
|
||||
ports:
|
||||
- 636:636
|
||||
@@ -65,7 +65,8 @@ LOG_LEVEL=
|
||||
#
|
||||
# Define the oCIS storage location. Set the paths for config and data to a local path.
|
||||
# Note that especially the data directory can grow big.
|
||||
# Leaving it default stores data in docker internal volumes.
|
||||
# Leaving it default stores data under ./data/ocis-config and ./data/ocis-data
|
||||
# relative to the compose project directory.
|
||||
# For more details see:
|
||||
# https://doc.owncloud.com/ocis/next/deployment/general/general-info.html#default-paths
|
||||
# OCIS_CONFIG_DIR=/your/local/ocis/config
|
||||
@@ -134,11 +135,11 @@ START_ADDITIONAL_SERVICES="notifications"
|
||||
# It is possible to use the oCIS Web Extensions to add custom functionality to the oCIS frontend.
|
||||
# For more details see https://github.com/owncloud/web-extensions/blob/main/README.md
|
||||
# Note: the leading colon is required to enable the service.
|
||||
# Enable this to create a new named volume
|
||||
# Enable this to store app extension files under ./data/ocis-apps
|
||||
#EXTENSIONS=:web_extensions/extensions.yml
|
||||
# Enable the desired extensions by uncommenting the following lines.
|
||||
# Note: the leading colon is required to enable the service.
|
||||
# Note: if you want to remove a web extension, you must delete the ocis-apps volume. It will be properly recreated on docker compose startup.
|
||||
# Note: if you want to remove a web extension, you must delete the ./data/ocis-apps directory. It will be properly recreated on docker compose startup.
|
||||
#UNZIP=:web_extensions/unzip.yml
|
||||
#DRAWIO=:web_extensions/drawio.yml
|
||||
#JSONVIEWER=:web_extensions/jsonviewer.yml
|
||||
@@ -212,7 +213,7 @@ TIKA_DOCKER_TAG=latest-full
|
||||
COLLABORA=:collabora.yml
|
||||
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
|
||||
# release notes: https://www.collaboraonline.com/release-notes/
|
||||
COLLABORA_DOCKER_TAG=25.04.9.3.1
|
||||
COLLABORA_DOCKER_TAG=26.04.3.1.1
|
||||
# Domain of Collabora, where you can find the frontend.
|
||||
# Defaults to "collabora.owncloud.test"
|
||||
COLLABORA_DOMAIN=
|
||||
@@ -229,6 +230,9 @@ COLLABORA_SSL_ENABLE=false
|
||||
# If you're on an internet-facing server, enable SSL verification for Collabora Online.
|
||||
# Please comment out the following line:
|
||||
COLLABORA_SSL_VERIFICATION=false
|
||||
# Path to persist the Collabora Online WOPI proof key across container restarts (auto-generated on first start).
|
||||
# Leaving it default stores it in ./config/collabora relative to this compose project.
|
||||
# COLLABORA_CONFIG_DIR=/your/local/collabora/config
|
||||
|
||||
|
||||
## Supplemental Configurations ##
|
||||
|
||||
@@ -15,6 +15,18 @@ This deployment example is documented in two locations for different audiences:
|
||||
Providing details which are more developer focused. This description can also be used when deviating from the default.\
|
||||
Note that this examples uses self signed certificates and is intended for testing purposes.
|
||||
|
||||
## Data Storage
|
||||
|
||||
All persistent runtime data (oCIS config/data, S3 storage, database, virus
|
||||
definitions, web app extensions, etc.) is bind-mounted from a `./data/`
|
||||
directory next to this compose project, rather than docker-managed named
|
||||
volumes. The oCIS config/data paths can be redirected elsewhere via the
|
||||
`OCIS_CONFIG_DIR`/`OCIS_DATA_DIR` variables in `.env`.
|
||||
|
||||
Upgrading an existing deployment that still has data in the old named
|
||||
volumes? Run `./migrate-volumes.sh` once, before starting the stack, to copy
|
||||
data from the old volumes into the new `./data/` directories.
|
||||
|
||||
## Optional Services
|
||||
|
||||
### Keycloak
|
||||
|
||||
@@ -10,6 +10,9 @@ services:
|
||||
# PROXY_TLS is set to "false", the download url has no https
|
||||
STORAGE_USERS_DATA_GATEWAY_URL: http://ocis:9200/data
|
||||
volumes:
|
||||
# a named volume is used here instead of a bind mount: it only ever
|
||||
# holds the runtime clamd.sock and some Docker Desktop hosts don't
|
||||
# reliably support AF_UNIX sockets on bind-mounted paths
|
||||
- "clamav-socket:/var/run/clamav"
|
||||
|
||||
clamav:
|
||||
@@ -19,11 +22,10 @@ services:
|
||||
ocis-net:
|
||||
volumes:
|
||||
- "clamav-socket:/tmp"
|
||||
- "clamav-db:/var/lib/clamav"
|
||||
- "./data/clamav-db:/var/lib/clamav"
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
clamav-socket:
|
||||
clamav-db:
|
||||
@@ -36,8 +36,8 @@ services:
|
||||
COLLABORATION_LOG_LEVEL: ${LOG_LEVEL:-info}
|
||||
OCIS_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
volumes:
|
||||
# configure the .env file to use own paths instead of docker internal volumes
|
||||
- ${OCIS_CONFIG_DIR:-ocis-config}:/etc/ocis
|
||||
# configure the .env file to use different host paths if desired
|
||||
- ${OCIS_CONFIG_DIR:-./data/ocis-config}:/etc/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.collaboration.entrypoints=http"
|
||||
@@ -48,10 +48,33 @@ services:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
# Since collabora/code 26.x, the image ships without a shell (no /bin/bash, no /bin/sh) and
|
||||
# without the "coolconfig" helper that used to generate the WOPI proof key on startup.
|
||||
# This one-shot container generates and persists that key on the host before "collabora" starts.
|
||||
collabora-proof-key-init:
|
||||
image: alpine/openssl:latest
|
||||
user: root
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command:
|
||||
- |
|
||||
if [ -e /keys/proof_key ] && ! openssl rsa -in /keys/proof_key -check -noout >/dev/null 2>&1; then
|
||||
echo "/keys/proof_key is missing, not a regular file, or invalid; regenerating" >&2
|
||||
rm -rf /keys/proof_key
|
||||
fi
|
||||
if [ ! -f /keys/proof_key ]; then
|
||||
openssl genrsa -out /keys/proof_key 2048
|
||||
chmod 644 /keys/proof_key
|
||||
fi
|
||||
volumes:
|
||||
- ${COLLABORA_CONFIG_DIR:-./config/collabora}:/keys
|
||||
|
||||
collabora:
|
||||
image: collabora/code:${COLLABORA_DOCKER_TAG}
|
||||
networks:
|
||||
ocis-net:
|
||||
depends_on:
|
||||
collabora-proof-key-init:
|
||||
condition: service_completed_successfully
|
||||
environment:
|
||||
DONT_GEN_SSL_CERT: "YES"
|
||||
extra_params: |
|
||||
@@ -62,6 +85,8 @@ services:
|
||||
--o:net.frame_ancestors=${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
username: ${COLLABORA_ADMIN_USER:-admin}
|
||||
password: ${COLLABORA_ADMIN_PASSWORD:-admin}
|
||||
volumes:
|
||||
- ${COLLABORA_CONFIG_DIR:-./config/collabora}/proof_key:/etc/coolwsd/proof_key:ro
|
||||
cap_add:
|
||||
- MKNOD
|
||||
labels:
|
||||
@@ -74,7 +99,5 @@ services:
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
entrypoint: ['/bin/bash', '-c']
|
||||
command: ['coolconfig generate-proof-key && /start-collabora-online.sh']
|
||||
healthcheck:
|
||||
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/9980 && echo -e 'GET /hosting/discovery HTTP/1.1\r\nHost: localhost:9980\r\n\r\n' >&3 && head -n 1 <&3 | grep '200 OK'"]
|
||||
test: ["CMD", "/usr/bin/coolwsd", "--probe"]
|
||||
@@ -1964,7 +1964,15 @@
|
||||
"contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';",
|
||||
"strictTransportSecurity": "max-age=31536000; includeSubDomains"
|
||||
},
|
||||
"smtpServer": {},
|
||||
"smtpServer": {
|
||||
"host": "mailserver",
|
||||
"port": "1025",
|
||||
"from": "keycloak@owncloud.test",
|
||||
"fromDisplayName": "oCIS",
|
||||
"ssl": "false",
|
||||
"starttls": "false",
|
||||
"auth": "false"
|
||||
},
|
||||
"eventsEnabled": false,
|
||||
"eventsListeners": [
|
||||
"jboss-logging"
|
||||
|
||||
@@ -7,6 +7,7 @@ directives:
|
||||
- 'https://${COMPANION_DOMAIN|companion.owncloud.test}/'
|
||||
- 'wss://${COMPANION_DOMAIN|companion.owncloud.test}/'
|
||||
- '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}/'
|
||||
# Photo-addon: OpenStreetMap tile requests
|
||||
@@ -32,6 +33,7 @@ directives:
|
||||
- 'data:'
|
||||
- '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://${ONLYOFFICE_DOMAIN|onlyoffice.owncloud.test}/'
|
||||
- 'https://${COLLABORA_DOMAIN|collabora.owncloud.test}/'
|
||||
|
||||
@@ -39,7 +39,7 @@ services:
|
||||
- "443:443"
|
||||
volumes:
|
||||
- "${DOCKER_SOCKET_PATH:-/var/run/docker.sock}:/var/run/docker.sock:ro"
|
||||
- "certs:/certs"
|
||||
- "./data/certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
# defaults to admin:admin
|
||||
@@ -53,8 +53,5 @@ services:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
certs:
|
||||
|
||||
networks:
|
||||
ocis-net:
|
||||
@@ -27,7 +27,7 @@ services:
|
||||
networks:
|
||||
ocis-net:
|
||||
volumes:
|
||||
- keycloak_postgres_data:/var/lib/postgresql
|
||||
- ./data/keycloak-postgres:/var/lib/postgresql
|
||||
environment:
|
||||
POSTGRES_DB: keycloak
|
||||
POSTGRES_USER: keycloak
|
||||
@@ -78,6 +78,3 @@ services:
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
keycloak_postgres_data:
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# One-time helper for upgrading an existing ocis_full deployment from the old
|
||||
# docker-managed named volumes to the new ./data/ bind mounts.
|
||||
#
|
||||
# Docker named volumes are not directly accessible from the host, so for each
|
||||
# volume that still exists we spin up a throwaway container that mounts both
|
||||
# the old volume and the new host directory, and copy the data across.
|
||||
#
|
||||
# Safe to re-run: volumes that no longer exist (fresh installs) are skipped,
|
||||
# and targets that already contain data are left untouched.
|
||||
#
|
||||
# Usage: run this from the ocis_full example directory, before starting the
|
||||
# stack with `docker compose up` for the first time after upgrading:
|
||||
# ./migrate-volumes.sh
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
[ -f .env ] && source .env
|
||||
|
||||
MIGRATIONS=(
|
||||
"ocis-config:${OCIS_CONFIG_DIR:-./data/ocis-config}"
|
||||
"ocis-data:${OCIS_DATA_DIR:-./data/ocis-data}"
|
||||
"ocis-apps:./data/ocis-apps"
|
||||
"keycloak_postgres_data:./data/keycloak-postgres"
|
||||
"minio-data:./data/minio"
|
||||
"clamav-db:./data/clamav-db"
|
||||
"companion-data:./data/companion"
|
||||
)
|
||||
|
||||
for entry in "${MIGRATIONS[@]}"; do
|
||||
vol="${entry%%:*}"
|
||||
target="${entry#*:}"
|
||||
|
||||
if ! docker volume inspect "$vol" >/dev/null 2>&1; then
|
||||
echo "skip ${vol}: no such docker volume (fresh install?)"
|
||||
continue
|
||||
fi
|
||||
|
||||
mkdir -p "$target"
|
||||
if [ -n "$(ls -A "$target" 2>/dev/null)" ]; then
|
||||
echo "skip ${vol}: ${target} already has data, not overwriting"
|
||||
continue
|
||||
fi
|
||||
|
||||
docker run --rm \
|
||||
-v "${vol}:/from" \
|
||||
-v "$(cd "$target" && pwd):/to" \
|
||||
alpine sh -c "cp -a /from/. /to/"
|
||||
echo "migrated ${vol} -> ${target}"
|
||||
done
|
||||
|
||||
vol_names=()
|
||||
for entry in "${MIGRATIONS[@]}"; do
|
||||
vol_names+=("${entry%%:*}")
|
||||
done
|
||||
|
||||
echo
|
||||
echo "Done. Verify the deployment works with the new ./data/ paths, then you"
|
||||
echo "can remove the old named volumes with, e.g.:"
|
||||
echo " docker volume rm ${vol_names[*]}"
|
||||
@@ -13,7 +13,7 @@ services:
|
||||
"mkdir -p /data/${S3NG_BUCKET:-ocis-bucket} && minio server --console-address ':9001' /data",
|
||||
]
|
||||
volumes:
|
||||
- minio-data:/data
|
||||
- ./data/minio:/data
|
||||
environment:
|
||||
MINIO_ACCESS_KEY: ${S3NG_ACCESS_KEY:-ocis}
|
||||
MINIO_SECRET_KEY: ${S3NG_SECRET_KEY:-ocis-secret-key}
|
||||
@@ -27,6 +27,3 @@ services:
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
minio-data:
|
||||
@@ -5,12 +5,35 @@ services:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
# chowns the host-mounted config/data dirs to the oCIS container's non-root
|
||||
# user (uid/gid 1000) before oCIS itself starts, since bind mounts default
|
||||
# to being owned by whoever created them on the host. Skips the recursive
|
||||
# chown on subsequent startups (marker file) so it doesn't re-walk the
|
||||
# whole data dir, which can grow big, on every restart.
|
||||
ocis-data-init:
|
||||
image: alpine:latest
|
||||
user: root
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command:
|
||||
- >-
|
||||
for d in /etc/ocis /var/lib/ocis; do
|
||||
mkdir -p "$$d";
|
||||
m="$$d/.ocis-data-init-done";
|
||||
[ -f "$$m" ] || { chown -R 1000:1000 "$$d"; touch "$$m"; };
|
||||
done
|
||||
volumes:
|
||||
- ${OCIS_CONFIG_DIR:-./data/ocis-config}:/etc/ocis
|
||||
- ${OCIS_DATA_DIR:-./data/ocis-data}:/var/lib/ocis
|
||||
|
||||
ocis:
|
||||
image: ${OCIS_DOCKER_IMAGE}:${OCIS_DOCKER_TAG}
|
||||
# changelog: https://github.com/owncloud/ocis/tree/master/changelog
|
||||
# release notes: https://doc.owncloud.com/ocis_release_notes.html
|
||||
networks:
|
||||
ocis-net:
|
||||
depends_on:
|
||||
ocis-data-init:
|
||||
condition: service_completed_successfully
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
# run ocis init to initialize a configuration file with random secrets
|
||||
@@ -57,9 +80,9 @@ services:
|
||||
- ./config/ocis/app-registry.yaml:/etc/ocis/app-registry.yaml
|
||||
- ./config/ocis/csp.yaml:/etc/ocis/csp.yaml
|
||||
- ./config/ocis/banned-password-list.txt:/etc/ocis/banned-password-list.txt
|
||||
# configure the .env file to use own paths instead of docker internal volumes
|
||||
- ${OCIS_CONFIG_DIR:-ocis-config}:/etc/ocis
|
||||
- ${OCIS_DATA_DIR:-ocis-data}:/var/lib/ocis
|
||||
# configure the .env file to use different host paths if desired
|
||||
- ${OCIS_CONFIG_DIR:-./data/ocis-config}:/etc/ocis
|
||||
- ${OCIS_DATA_DIR:-./data/ocis-data}:/var/lib/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
@@ -70,7 +93,3 @@ services:
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
ocis-config:
|
||||
ocis-data:
|
||||
@@ -31,8 +31,8 @@ services:
|
||||
COLLABORATION_LOG_LEVEL: ${LOG_LEVEL:-info}
|
||||
OCIS_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
volumes:
|
||||
# configure the .env file to use own paths instead of docker internal volumes
|
||||
- ${OCIS_CONFIG_DIR:-ocis-config}:/etc/ocis
|
||||
# configure the .env file to use different host paths if desired
|
||||
- ${OCIS_CONFIG_DIR:-./data/ocis-config}:/etc/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.collaboration-oo.entrypoints=http"
|
||||
|
||||
@@ -32,9 +32,9 @@ services:
|
||||
STORAGE_USERS_OCIS_ROOT: /var/lib/ocis/storage/users-vault
|
||||
STORAGE_USERS_EVENTS_CONSUMER_GROUP: vault-dcfs
|
||||
volumes:
|
||||
# configure the .env file to use own paths instead of docker internal volumes
|
||||
- ${OCIS_CONFIG_DIR:-ocis-config}:/etc/ocis
|
||||
- ${OCIS_DATA_DIR:-ocis-data}:/var/lib/ocis
|
||||
# configure the .env file to use different host paths if desired
|
||||
- ${OCIS_CONFIG_DIR:-./data/ocis-config}:/etc/ocis
|
||||
- ${OCIS_DATA_DIR:-./data/ocis-data}:/var/lib/ocis
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
@@ -9,7 +9,7 @@ services:
|
||||
image: owncloud/web-extensions:advanced-search-0.3.0
|
||||
user: root
|
||||
volumes:
|
||||
- ocis-apps:/apps
|
||||
- ./data/ocis-apps:/apps
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
command: ["-c", "cp -R /var/lib/nginx/html/advanced-search/ /apps"]
|
||||
Loaded 100 of 1303 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user