Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddeb1eac23 | ||
|
|
8a11153149 |
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.25.11
|
||||
go 1.25.10
|
||||
|
||||
require github.com/vektra/mockery/v2 v2.53.5
|
||||
+3
-6
@@ -1,6 +1,3 @@
|
||||
# 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
|
||||
services/settings/ @lukashirt
|
||||
services/web/ @lukashirt
|
||||
assets/End-User-License-Agreement-for-ownCloud-Infinite-Scale.pdf @kobergj @hodyroff
|
||||
@@ -8,18 +8,15 @@ jobs:
|
||||
detect-changes:
|
||||
name: detect-changes
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
outputs:
|
||||
docs-only: ${{ steps.check.outputs.docs-only }}
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check if changes are docs-only
|
||||
id: check
|
||||
env:
|
||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||
run: |
|
||||
# Always run full CI on workflow_dispatch, tags, or when PR title contains [full-ci]
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||
@@ -27,6 +24,7 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
|
||||
PR_TITLE="${{ github.event.pull_request.title }}"
|
||||
if echo "$PR_TITLE" | grep -qi "\[full-ci\]"; then
|
||||
echo "docs-only=false" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
@@ -54,22 +52,21 @@ jobs:
|
||||
needs: [detect-changes]
|
||||
if: needs.detect-changes.outputs.docs-only != 'true'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.33.3 --activate
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -94,7 +91,6 @@ jobs:
|
||||
make govulncheck > /tmp/govulncheck.log 2>&1 & PIDS+=($!)
|
||||
make ci-node-generate > /tmp/node-gen.log 2>&1 & PIDS+=($!)
|
||||
make ci-go-generate > /tmp/go-gen.log 2>&1 & PIDS+=($!)
|
||||
make changelog-lint > /tmp/changelog-lint.log 2>&1 & PIDS+=($!)
|
||||
|
||||
FAILED=0
|
||||
for PID in "${PIDS[@]}"; do wait "$PID" || FAILED=1; done
|
||||
@@ -117,19 +113,9 @@ jobs:
|
||||
echo "=== govulncheck ===" && cat /tmp/govulncheck.log
|
||||
echo "=== ci-node-generate ===" && cat /tmp/node-gen.log
|
||||
echo "=== ci-go-generate ===" && cat /tmp/go-gen.log
|
||||
echo "=== changelog-lint ===" && cat /tmp/changelog-lint.log
|
||||
|
||||
exit $FAILED
|
||||
|
||||
- name: Trivy scan
|
||||
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
with:
|
||||
scan-type: fs
|
||||
format: table
|
||||
exit-code: 1
|
||||
severity: CRITICAL,HIGH
|
||||
trivy-config: .trivy.yaml
|
||||
|
||||
- name: Build, lint and test
|
||||
run: |
|
||||
# Phase 2 — all three are CPU-bound Go compilation on 2 vCPU.
|
||||
@@ -139,11 +125,8 @@ jobs:
|
||||
vmstat 2 > /tmp/vmstat-phase2.log & MONITOR_PID=$!
|
||||
|
||||
make ci-golangci-lint > /tmp/golangci-lint.log 2>&1 & PIDS=($!)
|
||||
( ENABLE_VIPS=true make -C ocis build-debug \
|
||||
&& mv ocis/bin/ocis-debug ocis/bin/ocis ) > /tmp/ocis-build.log 2>&1 & PIDS+=($!)
|
||||
make test > /tmp/unit-tests.log 2>&1 & PIDS+=($!)
|
||||
# vips-tagged files live only under thumbnails; scoped run, no coverprofile.
|
||||
go test -v -tags 'enable_vips' ./services/thumbnails/... > /tmp/unit-tests-vips.log 2>&1 & PIDS+=($!)
|
||||
ENABLE_VIPS=true make -C ocis build > /tmp/ocis-build.log 2>&1 & PIDS+=($!)
|
||||
make test > /tmp/unit-tests.log 2>&1 & PIDS+=($!)
|
||||
GOWORK=off make -C tests/ociswrapper build > /tmp/ociswrapper-build.log 2>&1 & PIDS+=($!)
|
||||
|
||||
FAILED=0
|
||||
@@ -160,12 +143,11 @@ jobs:
|
||||
echo "=== ocis build ===" && cat /tmp/ocis-build.log
|
||||
echo "=== ociswrapper build ===" && cat /tmp/ociswrapper-build.log
|
||||
echo "=== unit tests ===" && cat /tmp/unit-tests.log
|
||||
echo "=== vips unit tests ===" && cat /tmp/unit-tests-vips.log
|
||||
|
||||
exit $FAILED
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
path: |
|
||||
@@ -178,9 +160,6 @@ jobs:
|
||||
name: ${{ matrix.suite }}
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -227,11 +206,10 @@ jobs:
|
||||
- apiOcm
|
||||
# collaboration (needs WOPI)
|
||||
- apiCollaboration
|
||||
- apiVault
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -239,7 +217,7 @@ jobs:
|
||||
|
||||
- name: Cache libcurl 8.12.0
|
||||
id: cache-libcurl
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
||||
with:
|
||||
path: /opt/libcurl
|
||||
key: libcurl-8.12.0-${{ runner.os }}
|
||||
@@ -280,7 +258,7 @@ jobs:
|
||||
'
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -288,34 +266,21 @@ jobs:
|
||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
||||
|
||||
- name: Run ${{ matrix.suite }}
|
||||
run: |
|
||||
mkdir -p "$GOCOVERDIR"
|
||||
BEHAT_SUITES=${{ matrix.suite }} python3 tests/acceptance/run-github.py
|
||||
|
||||
- name: Upload raw coverage data
|
||||
if: always()
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: api-coverage-${{ matrix.suite }}
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
if-no-files-found: error
|
||||
run: BEHAT_SUITES=${{ matrix.suite }} python3 tests/acceptance/run-github.py
|
||||
|
||||
cli-tests:
|
||||
needs: [build-and-test]
|
||||
name: ${{ matrix.suite }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
suite:
|
||||
- cliCommands,apiServiceAvailability # grouped: both need ClamAV + email services
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -328,7 +293,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -336,73 +301,12 @@ jobs:
|
||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
||||
|
||||
- name: Run ${{ matrix.suite }}
|
||||
run: |
|
||||
mkdir -p "$GOCOVERDIR"
|
||||
BEHAT_SUITES="${{ matrix.suite }}" python3 tests/acceptance/run-github.py
|
||||
|
||||
- name: Upload raw coverage data
|
||||
if: always()
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: api-coverage-cli-${{ matrix.suite }}
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
if-no-files-found: error
|
||||
|
||||
ldap-pool-tests:
|
||||
needs: [build-and-test]
|
||||
name: ldapPool-${{ matrix.suite }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
suite:
|
||||
- apiGraphUser,apiGraph,apiGraphGroup
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- 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@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
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: |
|
||||
mkdir -p "$GOCOVERDIR"
|
||||
BEHAT_SUITES="${{ matrix.suite }}" OCIS_LDAP_POOL_ENABLED=true python3 tests/acceptance/run-github.py
|
||||
|
||||
- name: Upload raw coverage data
|
||||
if: always()
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: api-coverage-ldap-pool-${{ matrix.suite }}
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
if-no-files-found: error
|
||||
run: BEHAT_SUITES="${{ matrix.suite }}" python3 tests/acceptance/run-github.py
|
||||
|
||||
core-api-tests:
|
||||
name: ${{ matrix.suite }}
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -417,9 +321,9 @@ jobs:
|
||||
- "coreApiWebdavProperties"
|
||||
- "coreApiWebdavMove1,coreApiWebdavPreviews,coreApiWebdavUpload,coreApiWebdavUploadTUS"
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -427,7 +331,7 @@ jobs:
|
||||
|
||||
- name: Cache libcurl 8.12.0
|
||||
id: cache-libcurl
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
||||
with:
|
||||
path: /opt/libcurl
|
||||
key: libcurl-8.12.0-${{ runner.os }}
|
||||
@@ -468,7 +372,7 @@ jobs:
|
||||
'
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -476,38 +380,28 @@ jobs:
|
||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
||||
|
||||
- name: Run ${{ matrix.suite }}
|
||||
run: |
|
||||
mkdir -p "$GOCOVERDIR"
|
||||
BEHAT_SUITES="${{ matrix.suite }}" \
|
||||
ACCEPTANCE_TEST_TYPE=core-api \
|
||||
WITH_REMOTE_PHP=true \
|
||||
run: >
|
||||
BEHAT_SUITES="${{ matrix.suite }}"
|
||||
ACCEPTANCE_TEST_TYPE=core-api
|
||||
WITH_REMOTE_PHP=true
|
||||
python3 tests/acceptance/run-github.py
|
||||
|
||||
- name: Upload raw coverage data
|
||||
if: always()
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: api-coverage-core-${{ matrix.suite }}
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
if-no-files-found: error
|
||||
|
||||
e2e-tests:
|
||||
name: e2e-${{ matrix.suite }}
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- suite: part-1
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 1"
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 1"
|
||||
- suite: part-2
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 2"
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 2"
|
||||
- suite: part-3
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 3"
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 3"
|
||||
- suite: part-4
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 4"
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 4"
|
||||
- suite: search
|
||||
args: "--type playwright --suites search"
|
||||
tika: true
|
||||
@@ -523,25 +417,16 @@ jobs:
|
||||
- suite: oidc-iframe
|
||||
args: "--type playwright specs/oidc/iframeTokenRenewal.spec.ts"
|
||||
oidc_iframe: true
|
||||
- suite: app-provider
|
||||
args: "--type playwright --suites app-provider"
|
||||
collaboration: true
|
||||
- suite: ocm
|
||||
args: "--type playwright --suites ocm"
|
||||
federated: true
|
||||
- suite: vault-storage
|
||||
args: "--type playwright --suites vault-storage"
|
||||
vault_storage: true
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
# 24.16.0 breaks playwright install (yauzl zip extraction hangs); pin to last known good.
|
||||
# https://github.com/microsoft/playwright/issues/40724
|
||||
node-version: "24.15.0"
|
||||
- name: Enable pnpm
|
||||
run: |
|
||||
corepack enable && corepack prepare pnpm@10.33.3 --activate
|
||||
corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
pnpm config set store-dir ./.pnpm-store
|
||||
|
||||
- name: Install libvips runtime
|
||||
@@ -551,7 +436,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -559,10 +444,10 @@ jobs:
|
||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
||||
|
||||
- name: Cache Playwright Chromium
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: playwright-chromium-${{ hashFiles('web/pnpm-lock.yaml') }}
|
||||
key: playwright-chromium-${{ hashFiles('ci.env') }}
|
||||
|
||||
# --- Tika (search suite only) ---
|
||||
- name: Start Tika
|
||||
@@ -574,18 +459,17 @@ jobs:
|
||||
|
||||
# --- Keycloak (keycloak and mfa suites) ---
|
||||
- name: Generate Keycloak certs
|
||||
if: matrix.keycloak == true || matrix.mfa == true || matrix.vault_storage == true
|
||||
if: matrix.keycloak == true || matrix.mfa == true
|
||||
run: |
|
||||
mkdir -p keycloak-certs
|
||||
openssl req -x509 -newkey rsa:2048 \
|
||||
-keyout keycloak-certs/keycloakkey.pem \
|
||||
-out keycloak-certs/keycloakcrt.pem \
|
||||
-nodes -days 365 -subj '/CN=keycloak' \
|
||||
-addext 'subjectAltName=DNS:localhost,IP:127.0.0.1'
|
||||
-nodes -days 365 -subj '/CN=keycloak'
|
||||
chmod -R 777 keycloak-certs
|
||||
|
||||
- name: Start Postgres
|
||||
if: matrix.keycloak == true || matrix.mfa == true || matrix.vault_storage == true
|
||||
if: matrix.keycloak == true || matrix.mfa == true
|
||||
run: |
|
||||
docker run -d --name postgres --network host \
|
||||
-e POSTGRES_DB=keycloak \
|
||||
@@ -595,12 +479,12 @@ jobs:
|
||||
timeout 30 bash -c 'until docker exec postgres pg_isready -U keycloak; do sleep 1; done'
|
||||
|
||||
- name: Start Keycloak
|
||||
if: matrix.keycloak == true || matrix.mfa == true || matrix.vault_storage == true
|
||||
if: matrix.keycloak == true || matrix.mfa == true
|
||||
run: |
|
||||
# The mfa suite needs a different realm with TOTP MFA configured.
|
||||
# ocis-ci-realm uses ocis-server:9200, ocis-mfa-ci-realm uses localhost:9200;
|
||||
# ocis runs on 127.0.0.1:9200 so we rewrite both forms.
|
||||
if [[ "${{ matrix.mfa }}" == "true" || "${{ matrix.vault_storage }}" == "true" ]]; then
|
||||
if [[ "${{ matrix.mfa }}" == "true" ]]; then
|
||||
REALM_FILE=tests/config/ci/ocis-mfa-ci-realm.dist.json
|
||||
else
|
||||
REALM_FILE=tests/config/ci/ocis-ci-realm.dist.json
|
||||
@@ -631,44 +515,6 @@ jobs:
|
||||
|| (echo "=== keycloak logs ===" && docker logs keycloak --tail 80 && exit 1)
|
||||
echo "keycloak ready."
|
||||
|
||||
# --- Collabora + OnlyOffice (app-provider suite only) ---
|
||||
- name: Start Collabora
|
||||
if: matrix.collaboration == true
|
||||
run: |
|
||||
docker run -d \
|
||||
--name collabora \
|
||||
--network host \
|
||||
--entrypoint bash \
|
||||
-e DONT_GEN_SSL_CERT=set \
|
||||
-e "extra_params=--o:ssl.enable=true --o:ssl.termination=true --o:welcome.enable=false --o:net.frame_ancestors=https://127.0.0.1:9200" \
|
||||
collabora/code:25.04.7.3.1 \
|
||||
-c "coolconfig generate-proof-key && bash /start-collabora-online.sh"
|
||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:9980/hosting/discovery > /dev/null; do sleep 5; done'
|
||||
echo "collabora ready."
|
||||
|
||||
- name: Start OnlyOffice
|
||||
if: matrix.collaboration == true
|
||||
run: |
|
||||
sudo systemctl stop postgresql || true
|
||||
docker run -d \
|
||||
--name onlyoffice \
|
||||
--network host \
|
||||
-e WOPI_ENABLED=true \
|
||||
-e USE_UNAUTHORIZED_STORAGE=true \
|
||||
-v "${{ github.workspace }}/tests/config/ci/only-office.json:/tmp/local.json:ro" \
|
||||
--entrypoint /bin/sh \
|
||||
onlyoffice/documentserver:9.2.1 \
|
||||
-c "set -e
|
||||
cp /tmp/local.json /etc/onlyoffice/documentserver/local.json
|
||||
openssl req -x509 -newkey rsa:4096 -keyout onlyoffice.key -out onlyoffice.crt -sha256 -days 365 -batch -nodes
|
||||
mkdir -p /var/www/onlyoffice/Data/certs
|
||||
cp onlyoffice.key /var/www/onlyoffice/Data/certs/
|
||||
cp onlyoffice.crt /var/www/onlyoffice/Data/certs/
|
||||
chmod 400 /var/www/onlyoffice/Data/certs/onlyoffice.key
|
||||
/app/ds/run-document-server.sh"
|
||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:443/hosting/discovery > /dev/null; do sleep 5; done'
|
||||
echo "onlyoffice ready."
|
||||
|
||||
- name: Run e2e-${{ matrix.suite }}
|
||||
run: E2E_ARGS="${{ matrix.args }}" python3 tests/acceptance/run-e2e.py
|
||||
env:
|
||||
@@ -677,33 +523,13 @@ jobs:
|
||||
MFA_NEEDED: ${{ matrix.mfa == true && 'true' || 'false' }}
|
||||
OIDC_NEEDED: ${{ matrix.oidc == true && 'true' || 'false' }}
|
||||
OIDC_IFRAME_NEEDED: ${{ matrix.oidc_iframe == true && 'true' || 'false' }}
|
||||
COLLABORATION_NEEDED: ${{ matrix.collaboration == true && 'true' || 'false' }}
|
||||
FEDERATED_NEEDED: ${{ matrix.federated == true && 'true' || 'false' }}
|
||||
VAULT_STORAGE_NEEDED: ${{ matrix.vault_storage == true && 'true' || 'false' }}
|
||||
|
||||
- name: Upload tracing result
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: playwright-traces-${{ matrix.suite }}-${{ github.run_attempt }}
|
||||
path: web/reports/e2e
|
||||
retention-days: 7
|
||||
|
||||
- name: Upload a11y result
|
||||
if: ${{ !cancelled() }}
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: playwright-a11y-result-${{ matrix.suite }}-${{ github.run_attempt }}
|
||||
path: web/reports/e2e/a11y-report.json
|
||||
retention-days: 7
|
||||
|
||||
litmus:
|
||||
name: litmus
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Install libvips runtime
|
||||
run: |
|
||||
@@ -712,7 +538,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -726,9 +552,8 @@ jobs:
|
||||
name: cs3api
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Install libvips runtime
|
||||
run: |
|
||||
@@ -737,7 +562,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -751,9 +576,8 @@ jobs:
|
||||
name: wopi-builtin
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Install libvips runtime
|
||||
run: |
|
||||
@@ -762,7 +586,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -776,9 +600,8 @@ jobs:
|
||||
name: wopi-cs3
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Install libvips runtime
|
||||
run: |
|
||||
@@ -787,7 +610,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -797,115 +620,9 @@ 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
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.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
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.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
|
||||
|
||||
acceptance-coverage:
|
||||
name: acceptance-coverage
|
||||
needs: [detect-changes, local-api-tests, cli-tests, ldap-pool-tests, core-api-tests]
|
||||
if: always() && github.event_name == 'pull_request' && needs.detect-changes.outputs.docs-only != 'true'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- name: Download raw coverage data
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
pattern: api-coverage-*
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
merge-multiple: true
|
||||
|
||||
- name: Convert coverage counters to profile
|
||||
run: go tool covdata textfmt -i=${{ env.GOCOVERDIR }} -o=coverage.out
|
||||
|
||||
- name: Publish coverage summary
|
||||
run: |
|
||||
{
|
||||
echo "## Acceptance test coverage"
|
||||
echo '```'
|
||||
go tool covdata percent -i=${{ env.GOCOVERDIR }}
|
||||
echo '```'
|
||||
echo
|
||||
echo "<details>"
|
||||
echo "<summary>Per-function coverage</summary>"
|
||||
echo
|
||||
echo '```'
|
||||
go tool cover -func=coverage.out
|
||||
echo '```'
|
||||
echo "</details>"
|
||||
} >> "$GITHUB_STEP_SUMMARY"
|
||||
|
||||
all-acceptance-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]
|
||||
needs: [detect-changes, local-api-tests, cli-tests, core-api-tests, litmus, cs3api, wopi-builtin, wopi-cs3, e2e-tests]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check all jobs passed
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
name: Check licenses
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [master, stable-*]
|
||||
|
||||
jobs:
|
||||
license-check:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Install REUSE tool
|
||||
run: pip install reuse
|
||||
|
||||
- name: Run REUSE lint
|
||||
run: reuse lint
|
||||
@@ -1,12 +0,0 @@
|
||||
name: Validate commit message
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master, stable-*]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
uses: owncloud/reusable-workflows/.github/workflows/semantic-git-message.yml@main
|
||||
@@ -1,64 +1,48 @@
|
||||
name: Test Deployment Examples
|
||||
name: test deployment example
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 1 * * *"
|
||||
- cron: "0 0 * * *" # every day at 00:00 UTC
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: ${{ matrix.example }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- example: ocis_full
|
||||
urls: "https://ocis.owncloud.test https://collabora.owncloud.test"
|
||||
ocisUrls: "https://ocis.owncloud.test"
|
||||
# - example: ocis_hello
|
||||
# urls: "https://ocis.owncloud.test"
|
||||
urls: "https://ocis.owncloud.test"
|
||||
- example: ocis_ldap
|
||||
urls: "https://ocis.owncloud.test https://ldap.owncloud.test"
|
||||
ocisUrls: "https://ocis.owncloud.test"
|
||||
- example: ocis_multi
|
||||
urls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test https://keycloak.owncloud.test https://ldap.owncloud.test"
|
||||
urls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test"
|
||||
- example: ocis_ocm
|
||||
urls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test https://ocis.ocm.next.owncloud.test https://collabora.ocm.owncloud.test https://onlyoffice.owncloud.test"
|
||||
composeFiles: "-f docker-compose.yml -f ocis.yml -f ocis-ocm.yml -f ocis-ocm-next.yml -f collabora-ocm.yml -f onlyoffice.yml"
|
||||
ocisUrls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test https://ocis.ocm.next.owncloud.test"
|
||||
urls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test https://ocis.ocm.next.owncloud.test"
|
||||
- example: ocis_keycloak
|
||||
urls: "https://ocis.owncloud.test https://keycloak.owncloud.test"
|
||||
|
||||
steps:
|
||||
- name: Checkout ocis repo
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
repository: owncloud/ocis
|
||||
|
||||
- name: Set up Docker Compose
|
||||
uses: docker/setup-compose-action@8cccb8c14b6500aaffebff1aa49c502c34d2e5e6 # v2.1.0
|
||||
|
||||
- name: Prepare hosts entry
|
||||
run: |
|
||||
echo "127.0.0.1 ocis.owncloud.test collabora.owncloud.test keycloak.owncloud.test mail.owncloud.test minio.owncloud.test onlyoffice.owncloud.test tika ldap.owncloud.test ocis.ocm.owncloud.test ocis.ocm.next.owncloud.test collabora.ocm.owncloud.test" | sudo tee -a /etc/hosts
|
||||
echo "127.0.0.1 ocis.owncloud.test collabora.owncloud.test keycloak.owncloud.test mail.owncloud.test minio.owncloud.test onlyoffice.owncloud.test tika ldap.owncloud.test ocis.ocm.owncloud.test ocis.ocm.next.owncloud.test onlyoffice.owncloud.test" | sudo tee -a /etc/hosts
|
||||
|
||||
- name: Run compose stack
|
||||
working-directory: deployments/examples/${{ matrix.example }}
|
||||
run: |
|
||||
set -e
|
||||
echo "=== Running ${{ matrix.example }} ==="
|
||||
|
||||
if [ "${{ matrix.example }}" = "ocis_ocm" ]; then
|
||||
export INSECURE=true
|
||||
export COLLABORA_SSL_ENABLE=false
|
||||
export COLLABORA_SSL_VERIFICATION=false
|
||||
fi
|
||||
|
||||
if [ -n "${{ matrix.ocisUrls }}" ]; then
|
||||
export PROXY_ENABLE_BASIC_AUTH=true
|
||||
fi
|
||||
|
||||
docker compose ${{ matrix.composeFiles }} up -d --wait --wait-timeout 120
|
||||
docker compose up -d
|
||||
|
||||
- name: Wait for services
|
||||
run: |
|
||||
@@ -88,27 +72,8 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
- name: Basic upload/download test
|
||||
if: matrix.ocisUrls
|
||||
run: |
|
||||
set -e
|
||||
|
||||
for URL in ${{ matrix.ocisUrls }}; do
|
||||
FILE="upload-test-$RANDOM.txt"
|
||||
echo "hello from deployment-test $(date +%s)" > "$FILE"
|
||||
|
||||
echo "=== Uploading $FILE to $URL ==="
|
||||
curl -kfsS -u admin:admin -T "$FILE" "$URL/remote.php/dav/files/admin/$FILE"
|
||||
|
||||
echo "=== Downloading $FILE back from $URL ==="
|
||||
curl -kfsS -u admin:admin "$URL/remote.php/dav/files/admin/$FILE" -o "downloaded-$FILE"
|
||||
|
||||
echo "=== Verifying downloaded content matches what was uploaded ==="
|
||||
diff "$FILE" "downloaded-$FILE"
|
||||
echo "upload/download succeeded for $URL"
|
||||
done
|
||||
|
||||
- name: Tear down
|
||||
if: always()
|
||||
working-directory: deployments/examples/${{ matrix.example }}
|
||||
run: docker compose ${{ matrix.composeFiles }} down -v
|
||||
run: docker compose down -v
|
||||
@@ -3,15 +3,9 @@ name: k6 Load Test
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
schedule:
|
||||
- cron: '0 1 * * *'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ocis_ref:
|
||||
description: 'oCIS commit or branch to build on the target (must exist in owncloud/ocis)'
|
||||
default: master
|
||||
quick:
|
||||
description: 'Short smoke run instead of the full ramping suite'
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -23,85 +17,38 @@ concurrency:
|
||||
jobs:
|
||||
k6-load-test:
|
||||
name: k6-load-test
|
||||
# The runner lives on the k6 driver itself, so there is no checkout, no
|
||||
# container and no ssh into the driver — only the target is remote.
|
||||
runs-on: [self-hosted, loadtest]
|
||||
timeout-minutes: 360
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: owncloudci/alpine:latest
|
||||
if: >-
|
||||
github.event_name == 'schedule' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
contains(github.event.pull_request.title || '', 'k6-test'))
|
||||
env:
|
||||
OCIS_HOST: ${{ vars.LOADTEST_OCIS_HOST || 'loadtest-ocis.svc.owncloud.host' }}
|
||||
OCIS_COMMIT_ID: ${{ inputs.ocis_ref || github.event.pull_request.head.sha || github.sha }}
|
||||
# inputs.* is empty on pull_request, so the workflow_dispatch default does
|
||||
# not apply here — the shell below falls back to a quick run.
|
||||
QUICK: ${{ inputs.quick }}
|
||||
SSH_OPTS: -o BatchMode=yes -o ServerAliveInterval=60 -o ServerAliveCountMax=10
|
||||
SSH_OCIS_REMOTE: ${{ secrets.SSH_OCIS_REMOTE }}
|
||||
SSH_OCIS_USERNAME: ${{ secrets.SSH_OCIS_USERNAME }}
|
||||
SSH_OCIS_PASSWORD: ${{ secrets.SSH_OCIS_PASSWORD }}
|
||||
TEST_SERVER_URL: ${{ secrets.TEST_SERVER_URL }}
|
||||
SSH_K6_REMOTE: ${{ secrets.SSH_K6_REMOTE }}
|
||||
SSH_K6_USERNAME: ${{ secrets.SSH_K6_USERNAME }}
|
||||
SSH_K6_PASSWORD: ${{ secrets.SSH_K6_PASSWORD }}
|
||||
OCIS_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
steps:
|
||||
- name: Show what will run
|
||||
run: |
|
||||
echo "driver : $(hostname -f)"
|
||||
echo "target : $OCIS_HOST"
|
||||
echo "oCIS : $OCIS_COMMIT_ID"
|
||||
/usr/local/bin/k6 version
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Build and start oCIS on the target
|
||||
id: start
|
||||
run: |
|
||||
ssh $SSH_OPTS "loadtest@$OCIS_HOST" \
|
||||
"OCIS_COMMIT_ID='$OCIS_COMMIT_ID' /usr/local/bin/ocis.sh start"
|
||||
- name: Install SSH dependencies
|
||||
run: apk add --no-cache openssh-client sshpass
|
||||
|
||||
- name: Show the oCIS build log
|
||||
if: failure() && steps.start.outcome == 'failure'
|
||||
run: ssh $SSH_OPTS "loadtest@$OCIS_HOST" 'tail -n 200 /srv/loadtest/ocis-build.log' || true
|
||||
|
||||
# ocis.sh proves readiness from the target's own shell. This proves it from
|
||||
# the driver, which is a different question: firewalld, and whether the
|
||||
# server outlived the ssh session that started it.
|
||||
- name: Check that the target answers from the driver
|
||||
run: |
|
||||
if curl -sk -o /dev/null --max-time 10 \
|
||||
"https://$OCIS_HOST:9200/.well-known/openid-configuration"; then
|
||||
echo "oCIS answers at https://$OCIS_HOST:9200"
|
||||
exit 0
|
||||
fi
|
||||
echo "::error::oCIS is not answering on $OCIS_HOST:9200 from the driver"
|
||||
ssh $SSH_OPTS "loadtest@$OCIS_HOST" \
|
||||
'pgrep -af "bin/ocis server" || echo "no oCIS process on the target"'
|
||||
exit 1
|
||||
|
||||
# No !cancelled() here on purpose: k6 against a target that failed to start
|
||||
# just buries the real error under a TypeScript stack trace.
|
||||
- name: Run the k6 tests
|
||||
run: |
|
||||
if [ "${QUICK:-true}" = "true" ]; then
|
||||
# Seed at least one user per VU: each VU logs in as the pool user
|
||||
# matching its own VU number, so seeding fewer users than the 16 VUs
|
||||
# started below leaves those extra VUs with accounts that were never
|
||||
# created, and every request they make fails to authenticate.
|
||||
export SEED_USERS_TOTAL=20
|
||||
for id in 020 040 050 070 080 090 100 110; do
|
||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_STAGES_VUS=2
|
||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_STAGES_UP_DURATION=10s
|
||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_STAGES_PEAK_DURATION=30s
|
||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_STAGES_DOWN_DURATION=10s
|
||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_SLEEP_AFTER_ITERATION=1s
|
||||
done
|
||||
fi
|
||||
/usr/local/bin/k6-tests.sh
|
||||
|
||||
- name: Retrieve the oCIS log
|
||||
- name: Run k6 load tests
|
||||
if: ${{ !cancelled() }}
|
||||
run: ssh $SSH_OPTS "loadtest@$OCIS_HOST" '/usr/local/bin/ocis.sh log' || true
|
||||
run: sh tests/config/drone/run_k6_tests.sh
|
||||
|
||||
# always(), not the old fire-and-forget tail call: a failing k6 run used to
|
||||
# leave oCIS holding port 9200, and the next run then failed to start.
|
||||
- name: Stop oCIS on the target
|
||||
if: always()
|
||||
run: ssh $SSH_OPTS "loadtest@$OCIS_HOST" '/usr/local/bin/ocis.sh stop'
|
||||
- name: Retrieve OCIS logs
|
||||
if: ${{ !cancelled() }}
|
||||
run: sh tests/config/drone/run_k6_tests.sh --ocis-log
|
||||
|
||||
- name: Show Grafana dashboard link
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
echo "Grafana: http://$(hostname -f):3000 (office/VPN only)"
|
||||
echo "Grafana Dashboard: https://grafana.k6.infra.owncloud.works"
|
||||
+314
-645
File diff suppressed because it is too large.
Load diff
@@ -1,85 +0,0 @@
|
||||
name: Release NPM packages
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "babel-preset-v*"
|
||||
- "design-system-v*"
|
||||
- "eslint-config-v*"
|
||||
- "extension-sdk-v*"
|
||||
- "prettier-config-v*"
|
||||
- "tsconfig-v*"
|
||||
- "web-client-v*"
|
||||
- "web-pkg-v*"
|
||||
- "web-test-helpers-v*"
|
||||
|
||||
jobs:
|
||||
release-npm:
|
||||
name: Publish NPM package
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
defaults:
|
||||
run:
|
||||
working-directory: web
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: 24.15.0
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Setup pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.33.3 --activate
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Determine package
|
||||
id: package
|
||||
run: |
|
||||
TAG="${{ github.ref_name }}"
|
||||
PACKAGES="babel-preset design-system eslint-config extension-sdk prettier-config tsconfig web-client web-pkg web-test-helpers"
|
||||
for pkg in $PACKAGES; do
|
||||
if [[ "$TAG" == "${pkg}-v"* ]]; then
|
||||
echo "name=$pkg" >> "$GITHUB_OUTPUT"
|
||||
echo "version=${TAG#${pkg}-v}" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
echo "tag '$TAG' does not match any known package prefix: $PACKAGES"
|
||||
exit 1
|
||||
|
||||
- name: Verify package version
|
||||
run: |
|
||||
PKG="${{ steps.package.outputs.name }}"
|
||||
VERSION="${{ steps.package.outputs.version }}"
|
||||
ACTUAL_VERSION=$(jq -r '.version' < "packages/${PKG}/package.json")
|
||||
echo "Build ${PKG} ${VERSION} package.json: ${ACTUAL_VERSION}"
|
||||
if [ "${ACTUAL_VERSION}" != "${VERSION}" ]; then
|
||||
echo "git tag does not match version in web/packages/${PKG}/package.json"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Build tokens
|
||||
run: pnpm build:tokens
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
PKG="${{ steps.package.outputs.name }}"
|
||||
case "$PKG" in
|
||||
design-system|web-client|web-pkg|web-test-helpers)
|
||||
pnpm --filter "@ownclouders/${PKG}" vite build
|
||||
;;
|
||||
esac
|
||||
|
||||
- name: Publish to NPM
|
||||
run: |
|
||||
pnpm publish \
|
||||
--no-git-checks --filter "@ownclouders/${{ steps.package.outputs.name }}" \
|
||||
--access public --tag latest
|
||||
+198
-57
@@ -14,27 +14,28 @@ on:
|
||||
default: ''
|
||||
|
||||
env:
|
||||
PRODUCTION_RELEASE_TAGS: '5.0,7,8'
|
||||
DOCKER_REPO_ROLLING: owncloud/ocis-rolling
|
||||
DOCKER_REPO_PRODUCTION: owncloud/ocis
|
||||
NODE_VERSION: '24'
|
||||
PNPM_VERSION: '10.28.1'
|
||||
GOLANG_BUILD_IMAGE: 'golang:1.26.8-alpine3.23@sha256:a8fa79c5bd40d880b52bd3b6d7669ecdcfd00e85facdd427d279efb5ddd79cb1'
|
||||
|
||||
jobs:
|
||||
determine-release-type:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
outputs:
|
||||
version: ${{ steps.info.outputs.version }}
|
||||
is_production: ${{ steps.info.outputs.is_production }}
|
||||
is_prerelease: ${{ steps.info.outputs.is_prerelease }}
|
||||
docker_repos: ${{ steps.info.outputs.docker_repos }}
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
if: ${{ github.ref_type == 'branch' || (github.event_name == 'workflow_dispatch' && inputs.version_override == '') }}
|
||||
with:
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
|
||||
- id: info
|
||||
env:
|
||||
VERSION_OVERRIDE: ${{ inputs.version_override }}
|
||||
run: |
|
||||
next_dev() {
|
||||
# If latest tag is already a pre-release (e.g. v8.0.2-dev.1), reuse its base
|
||||
@@ -51,7 +52,7 @@ jobs:
|
||||
}
|
||||
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||
VERSION="$VERSION_OVERRIDE"
|
||||
VERSION="${{ inputs.version_override }}"
|
||||
[[ -z "$VERSION" ]] && VERSION=$(next_dev)
|
||||
elif [[ "${{ github.ref_type }}" == "branch" ]]; then
|
||||
VERSION=$(next_dev)
|
||||
@@ -59,36 +60,37 @@ jobs:
|
||||
VERSION="${GITHUB_REF#refs/tags/v}"
|
||||
fi
|
||||
|
||||
# `version` below is read back by nine `run:` blocks in this file (thirteen
|
||||
# interpolations) as ${{ needs.determine-release-type.outputs.version }}, and each
|
||||
# of those is substituted into the script text before bash sees it. Refusing
|
||||
# anything that is not a version token here is what keeps those nine safe, instead
|
||||
# of nine more env: blocks -- and a release version that is not a version token is
|
||||
# a bug in its own right.
|
||||
if [[ ! "$VERSION" =~ ^[0-9A-Za-z][0-9A-Za-z.+-]*$ ]]; then
|
||||
echo "::error title=Invalid release version::'$VERSION' is not a version string (expected ^[0-9A-Za-z][0-9A-Za-z.+-]*$)"
|
||||
exit 1
|
||||
fi
|
||||
IS_PRODUCTION=false
|
||||
for TAG in ${PRODUCTION_RELEASE_TAGS//,/ }; do
|
||||
[[ "$VERSION" == "$TAG"* ]] && IS_PRODUCTION=true && break
|
||||
done
|
||||
|
||||
[[ "$VERSION" == *"-"* ]] && IS_PRERELEASE=true || IS_PRERELEASE=false
|
||||
|
||||
if [[ "$IS_PRODUCTION" == "true" && "$IS_PRERELEASE" == "false" ]]; then
|
||||
REPOS=[\"$DOCKER_REPO_ROLLING\",\"$DOCKER_REPO_PRODUCTION\"]
|
||||
else
|
||||
REPOS=[\"$DOCKER_REPO_ROLLING\"]
|
||||
fi
|
||||
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "is_production=$IS_PRODUCTION" >> $GITHUB_OUTPUT
|
||||
echo "is_prerelease=$IS_PRERELEASE" >> $GITHUB_OUTPUT
|
||||
echo "docker_repos=$REPOS" >> $GITHUB_OUTPUT
|
||||
|
||||
generate-code:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: [determine-release-type]
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- run: npm install --silent -g yarn npx --force
|
||||
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v4
|
||||
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v4
|
||||
with:
|
||||
version: ${{ env.PNPM_VERSION }}
|
||||
- run: pnpm config set store-dir ./.pnpm-store && make ci-node-generate
|
||||
@@ -101,30 +103,174 @@ jobs:
|
||||
run: |
|
||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
||||
sed -i "s/LatestTag = \".*\"/LatestTag = \"$VERSION\"/" ocis-pkg/version/version.go
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
with:
|
||||
name: generated-code
|
||||
path: |
|
||||
.
|
||||
!.git
|
||||
!web
|
||||
retention-days: 1
|
||||
|
||||
docker-build:
|
||||
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]
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [amd64, arm64]
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- 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 }}
|
||||
- id: goversion
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
ALPINE_VERSION=$(grep '^FROM.*alpine:' ocis/docker/Dockerfile.linux.${{ matrix.arch }} | grep -o 'alpine:[0-9.]*' | cut -d: -f2 | cut -d. -f1,2)
|
||||
docker run --rm \
|
||||
-v "${{ github.workspace }}:/workspace" \
|
||||
-w /workspace \
|
||||
"golang:${{ steps.goversion.outputs.go-version }}-alpine${ALPINE_VERSION}" \
|
||||
sh -c "apk add --no-cache bash gcc musl-dev vips-dev make git && \
|
||||
git config --global --add safe.directory /workspace && \
|
||||
CGO_ENABLED=1 ENABLE_VIPS=true VERSION=${{ needs.determine-release-type.outputs.version }} \
|
||||
make -C ocis release-linux-docker-${{ matrix.arch }}"
|
||||
- id: tags
|
||||
run: |
|
||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
||||
REPO="${{ matrix.repo }}"
|
||||
ARCH="${{ matrix.arch }}"
|
||||
printf "tags<<EOF\n%s\nEOF\n" \
|
||||
"${REPO}:${VERSION}-linux-${ARCH}" >> $GITHUB_OUTPUT
|
||||
- id: build
|
||||
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
||||
with:
|
||||
context: ocis
|
||||
file: ocis/docker/Dockerfile.linux.${{ matrix.arch }}
|
||||
platforms: linux/${{ matrix.arch }}
|
||||
load: true
|
||||
push: false
|
||||
provenance: false
|
||||
build-args: |
|
||||
REVISION=${{ github.sha }}
|
||||
VERSION=${{ needs.determine-release-type.outputs.version }}
|
||||
tags: ${{ steps.tags.outputs.tags }}
|
||||
- id: trivy
|
||||
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
continue-on-error: true
|
||||
with:
|
||||
image-ref: ${{ steps.tags.outputs.tags }}
|
||||
format: table
|
||||
exit-code: 1
|
||||
severity: HIGH,CRITICAL
|
||||
ignore-unfixed: true
|
||||
skip-files: /usr/bin/gomplate,/usr/bin/wait-for
|
||||
hide-progress: true
|
||||
env:
|
||||
TRIVY_IGNOREFILE: .trivyignore
|
||||
- name: Block on vulnerabilities
|
||||
if: steps.trivy.outcome == 'failure'
|
||||
run: |
|
||||
echo "::error title=Security scan blocked release::Image ${{ steps.tags.outputs.tags }} has HIGH or CRITICAL vulnerabilities (see Trivy report above). Fix all findings before releasing."
|
||||
exit 1
|
||||
- name: push
|
||||
if: steps.trivy.outcome == 'success'
|
||||
run: docker push ${{ steps.tags.outputs.tags }}
|
||||
|
||||
docker-scan:
|
||||
name: docker-scan (${{ matrix.arch }}, ${{ matrix.repo }})
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, docker-build]
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [amd64]
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
id: trivy
|
||||
continue-on-error: true
|
||||
with:
|
||||
image-ref: ${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-${{ matrix.arch }}
|
||||
format: table
|
||||
exit-code: 1
|
||||
severity: HIGH,CRITICAL
|
||||
ignore-unfixed: true
|
||||
skip-files: /usr/bin/gomplate,/usr/bin/wait-for
|
||||
hide-progress: true
|
||||
env:
|
||||
TRIVY_IGNOREFILE: .trivyignore
|
||||
|
||||
- name: Block on vulnerabilities
|
||||
if: steps.trivy.outcome == 'failure'
|
||||
run: |
|
||||
echo "::error title=Security scan blocked release::Image ${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-${{ matrix.arch }} has HIGH or CRITICAL vulnerabilities (see Trivy report above). Fix all findings before releasing."
|
||||
exit 1
|
||||
|
||||
docker-manifest:
|
||||
name: docker-manifest (${{ matrix.repo }})
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, docker-build, docker-scan]
|
||||
strategy:
|
||||
matrix:
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- if: ${{ contains(matrix.repo, 'rolling') }}
|
||||
run: |
|
||||
docker buildx imagetools create \
|
||||
-t "${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-amd64" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-arm64"
|
||||
- if: ${{ !contains(matrix.repo, 'rolling') }}
|
||||
run: |
|
||||
docker buildx imagetools create \
|
||||
-t "${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-amd64" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-arm64"
|
||||
|
||||
docker-readme:
|
||||
name: docker-readme (${{ matrix.repo }})
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, docker-manifest]
|
||||
strategy:
|
||||
matrix:
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
repository: ${{ matrix.repo }}
|
||||
readme-filepath: ocis/README.md
|
||||
|
||||
build-binaries:
|
||||
name: build-binaries (${{ matrix.os }})
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
needs: [determine-release-type, generate-code]
|
||||
strategy:
|
||||
matrix:
|
||||
os: [linux, darwin]
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
@@ -133,7 +279,7 @@ jobs:
|
||||
if [[ "${{ matrix.os }}" == "linux" ]]; then
|
||||
cp assets/End-User-License-Agreement-for-ownCloud-Infinite-Scale.pdf ocis/dist/release/
|
||||
fi
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
with:
|
||||
name: binaries-${{ matrix.os }}
|
||||
path: ocis/dist/release/*
|
||||
@@ -141,9 +287,8 @@ jobs:
|
||||
|
||||
security-scan-trivy:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
with:
|
||||
scan-type: fs
|
||||
@@ -154,29 +299,24 @@ jobs:
|
||||
|
||||
license-check:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: [determine-release-type, generate-code]
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
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 .
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: third-party-licenses.tar.gz
|
||||
@@ -184,13 +324,12 @@ jobs:
|
||||
|
||||
generate-changelog:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
needs: [determine-release-type]
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
@@ -200,7 +339,7 @@ jobs:
|
||||
if [[ $(wc -l < ocis/dist/CHANGELOG.md) -lt 5 ]]; then
|
||||
echo "Development release — no release notes yet. See [unreleased changes](https://github.com/owncloud/ocis/tree/master/changelog/unreleased/)." > ocis/dist/CHANGELOG.md
|
||||
fi
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
with:
|
||||
name: changelog
|
||||
path: ocis/dist/CHANGELOG.md
|
||||
@@ -208,26 +347,25 @@ jobs:
|
||||
|
||||
create-github-release:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy]
|
||||
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy, docker-readme]
|
||||
steps:
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: changelog
|
||||
path: .
|
||||
- uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
|
||||
- uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
|
||||
with:
|
||||
tag_name: v${{ needs.determine-release-type.outputs.version }}
|
||||
name: v${{ needs.determine-release-type.outputs.version }}
|
||||
@@ -237,26 +375,29 @@ jobs:
|
||||
|
||||
audit-release:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
needs:
|
||||
- determine-release-type
|
||||
- generate-code
|
||||
- docker-build
|
||||
- docker-scan
|
||||
- docker-manifest
|
||||
- docker-readme
|
||||
- build-binaries
|
||||
- security-scan-trivy
|
||||
- license-check
|
||||
- generate-changelog
|
||||
- create-github-release
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
@@ -264,7 +405,7 @@ jobs:
|
||||
python3 scripts/audit-release.py \
|
||||
--version "${{ needs.determine-release-type.outputs.version }}" \
|
||||
--dir release-assets/ \
|
||||
--github-release
|
||||
--github-release --docker
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -16,7 +16,6 @@ jobs:
|
||||
remove-stale-branches:
|
||||
name: Remove Stale Branches
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: fpicalausa/remove-stale-branches@9b829bc2975ade0c61e64e9613def53ec0732440 # v2.6.1
|
||||
with:
|
||||
|
||||
@@ -20,22 +20,3 @@ jobs:
|
||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
||||
TRANSLATION_APP_ID: ${{ secrets.TRANSLATION_APP_ID }}
|
||||
TRANSLATION_APP_PRIVATE_KEY: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }}
|
||||
|
||||
# web/ is a pnpm workspace nested inside the repo, not covered by the
|
||||
# root-level L10N_MODULES/sub_path: . sync above (that job has no
|
||||
# package.json at the repo root, so a pnpm install there would be a
|
||||
# no-op/fail). Run it as its own invocation scoped to sub_path: web,
|
||||
# sequenced after `sync` since the reusable workflow always pushes to
|
||||
# the same hardcoded chore/translations-update branch.
|
||||
sync-web:
|
||||
needs: sync
|
||||
uses: owncloud/reusable-workflows/.github/workflows/translation-sync.yml@main
|
||||
with:
|
||||
mode: make
|
||||
package_manager: pnpm
|
||||
reviewers: kobergj,mmattel
|
||||
sub_path: web
|
||||
secrets:
|
||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
||||
TRANSLATION_APP_ID: ${{ secrets.TRANSLATION_APP_ID }}
|
||||
TRANSLATION_APP_PRIVATE_KEY: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }}
|
||||
@@ -1,139 +0,0 @@
|
||||
name: Web Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [master, stable-*]
|
||||
|
||||
jobs:
|
||||
detect-web-changes:
|
||||
name: detect-web-changes
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
outputs:
|
||||
web-changed: ${{ steps.check.outputs.web-changed }}
|
||||
full-run: ${{ steps.check.outputs.full-run }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check if web/ changed
|
||||
id: check
|
||||
env:
|
||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||
run: |
|
||||
# full-run: push to master/stable-* or an explicit [full-ci] request always run
|
||||
# everything, unscoped - same as before Nx. A normal PR gets the affected-scoped
|
||||
# path instead (see web-build-test), since only those two cases actually need every
|
||||
# project checked.
|
||||
if [[ "${{ github.event_name }}" == "push" ]]; then
|
||||
echo "web-changed=true" >> "$GITHUB_OUTPUT"
|
||||
echo "full-run=true" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if echo "$PR_TITLE" | grep -qi "\[full-ci\]"; then
|
||||
echo "web-changed=true" >> "$GITHUB_OUTPUT"
|
||||
echo "full-run=true" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "full-run=false" >> "$GITHUB_OUTPUT"
|
||||
|
||||
CHANGED_FILES=$(git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}" 2>/dev/null || git diff --name-only HEAD~1)
|
||||
|
||||
WEB_CHANGED=false
|
||||
while IFS= read -r file; do
|
||||
case "$file" in
|
||||
web/*) WEB_CHANGED=true; break ;;
|
||||
.github/workflows/web-tests.yml) WEB_CHANGED=true; break ;;
|
||||
esac
|
||||
done <<< "$CHANGED_FILES"
|
||||
|
||||
echo "web-changed=$WEB_CHANGED" >> "$GITHUB_OUTPUT"
|
||||
echo "web/ changed: $WEB_CHANGED"
|
||||
|
||||
web-build-test:
|
||||
name: web-build-test
|
||||
needs: [detect-web-changes]
|
||||
if: needs.detect-web-changes.outputs.web-changed == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
defaults:
|
||||
run:
|
||||
working-directory: web
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
# nx affected --base=<pr-base-sha> (used below) needs that commit present locally
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
||||
with:
|
||||
version: 10.33.3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: 24.15.0
|
||||
cache: pnpm
|
||||
cache-dependency-path: web/pnpm-lock.yaml
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Check licenses
|
||||
run: pnpm licenses:check
|
||||
|
||||
- name: Save licenses
|
||||
run: pnpm licenses:csv && pnpm licenses:save
|
||||
|
||||
- name: Check types
|
||||
# Whole-repo, unconditional: only 5/27 projects have a per-project typecheck target
|
||||
# (nx/vite's typecheck inference needs a project's own vite.config.ts, which most
|
||||
# web-app-* packages don't have), so `nx affected -t typecheck` can't safely stand
|
||||
# in for this yet.
|
||||
run: pnpm check:types
|
||||
|
||||
- name: Check format
|
||||
run: pnpm check:format
|
||||
|
||||
- name: Lint
|
||||
env:
|
||||
FULL_RUN: ${{ needs.detect-web-changes.outputs.full-run }}
|
||||
run: |
|
||||
if [[ "$FULL_RUN" == "true" ]]; then
|
||||
pnpm lint
|
||||
else
|
||||
pnpm exec nx affected -t lint --base="${{ github.event.pull_request.base.sha }}"
|
||||
fi
|
||||
|
||||
- name: Run unit tests
|
||||
env:
|
||||
FULL_RUN: ${{ needs.detect-web-changes.outputs.full-run }}
|
||||
run: |
|
||||
if [[ "$FULL_RUN" == "true" ]]; then
|
||||
pnpm test:unit --coverage
|
||||
else
|
||||
pnpm exec nx affected -t test --base="${{ github.event.pull_request.base.sha }}"
|
||||
fi
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
web-tests-passed:
|
||||
name: web-tests-passed
|
||||
needs: [detect-web-changes, web-build-test]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check web-build-test passed or was skipped
|
||||
run: |
|
||||
if [[ "${{ needs.web-build-test.result }}" == "failure" || "${{ needs.web-build-test.result }}" == "cancelled" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
@@ -15,11 +15,10 @@ jobs:
|
||||
generate-report:
|
||||
name: Generate Pipeline Report
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
container: golang:1.25-alpine
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
|
||||
- name: Run CI Reporter
|
||||
working-directory: tools/ci-reporter
|
||||
|
||||
@@ -60,9 +60,6 @@ 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
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
# Code of Conduct
|
||||
|
||||
This project follows the ownCloud Code of Conduct.
|
||||
|
||||
Please read the full Code of Conduct at:
|
||||
**<https://owncloud.com/contribute/code-of-conduct/>**
|
||||
|
||||
By participating in this project, you agree to abide by its terms.
|
||||
+260
-6
@@ -1,9 +1,263 @@
|
||||
# Contributing
|
||||
First of all, thank you for taking the time to read this and your interest in contributing to ownCloud Infinite Scale!
|
||||
|
||||
Thank you for your interest in contributing to this project!
|
||||
The following is a set of guidelines for contributing to most of the projects hosted in the [ownCloud Organization](https://github.com/owncloud) on [GitHub](https://www.github.com). These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
|
||||
|
||||
Please read the full contributing guidelines at:
|
||||
**<https://owncloud.com/contribute/>**
|
||||
For simplicity reasons, this document mostly refers to the ownCloud [Infinite Scale project](https://www.github.com/owncloud/ocis), but it should be easily transferable to other (sub)projects.
|
||||
|
||||
For development setup, coding standards, and pull request process,
|
||||
see the README in this repository.
|
||||
#### Table Of Contents
|
||||
|
||||
[I don't want to read this whole thing, I just have a question](#i-dont-want-to-read-this-whole-thing-i-just-have-a-question)
|
||||
|
||||
[What should I know before I get started](#what-should-i-know-before-i-get-started)
|
||||
* [ownCloud is hosted on GitHub](#owncloud-is-hosted-on-github)
|
||||
* [ownCloud Company, Engineering Partners and Community](#owncloud-company,-engineering-partners-and-community)
|
||||
* [Licensing and CLA](#licensing-and-cla)
|
||||
|
||||
[How Can I Contribute](#how-can-i-contribute)
|
||||
* [Help spreading the word](#help-spreading-the-word)
|
||||
* [Reporting Bugs](#reporting-bugs)
|
||||
* [Suggesting Enhancements](#suggesting-enhancements)
|
||||
* [Your First Code Contribution](#your-first-code-contribution)
|
||||
* [Pull Requests](#pull-requests)
|
||||
* [Documentation Contributions](#documentation-contributions)
|
||||
* [Internationalization](#internationalization)
|
||||
* [Deployments: Docker, Ansible and friends](#deployments-docker-ansible-and-friends)
|
||||
|
||||
[Styleguides](#styleguides)
|
||||
* [Git Commit Messages](#git-commit-messages)
|
||||
* [Golang Styleguide](#golang-styleguide)
|
||||
* [Web Styleguide](#web-styleguide)
|
||||
* [Documentation Styleguide](#documentation-styleguide)
|
||||
|
||||
[Additional Notes](#additional-notes)
|
||||
* [Issue and Pull Request Labels](#issue-and-pull-request-labels)
|
||||
|
||||
## I don't want to read this whole thing I just have a question
|
||||
|
||||
> **Note:** Please don't file an issue to ask a question. You'll get faster results by using the resources below.
|
||||
|
||||
For general questions, please refer to [ownCloud's FAQs](https://owncloud.com/faq/) or ask on the [ownCloud Central Server](https://central.owncloud.org/).
|
||||
|
||||
We also have a [Matrix channel](https://matrix.to/#/#ocis:matrix.org) to answer your questions specifically about ownCloud Infinite Scale.
|
||||
|
||||
## What should I know before I get started
|
||||
|
||||
### ownCloud is hosted on GitHub
|
||||
|
||||
To effectively contribute to ownCloud Infinite Scale, you need a GitHub account. You can get that for free at [GitHub](https://github.com/join). You can find howtos on the internet, for example [here](https://www.wikihow.com/Create-an-Account-on-GitHub).
|
||||
|
||||
For other ways of contributing, for example with translations, other systems require you to have an account as well, for example [Transifex](https://www.transifex.com).
|
||||
|
||||
The ownCloud project follows the strict GitHub workflow of development as briefly [described here](https://guides.github.com/introduction/flow/).
|
||||
|
||||
### ownCloud Company, Engineering Partners and Community
|
||||
|
||||
ownCloud Infinite Scale is largely created by developers who are employed by the [ownCloud company](https://www.owncloud.com), which is located in Germany. It is providing support for ownCloud for customers worldwide. In addition, there are engineering partners who also work full time on ownCloud related code, for example in [CERN REVA](https://github.com/cs3org/reva/).
|
||||
|
||||
Because of that fact, the pace that the development is moving forward is sometimes high for people who are not willing and/or able to spend a comparable amount of time to contribute. Even though this can be a challenge, it should not scare anybody away. Here is our clear commitment that we feel honored by everybody who is interested in our work and improves it, no matter how big the contribution might be.
|
||||
|
||||
We as the full time devs from either organization are doing our best to listen, review and consider all changes that are brought forward following this guideline and make sense for the project.
|
||||
|
||||
### Licensing and CLA
|
||||
|
||||
We are very happy that there is *no CLA* required for most of the code of ownCloud Infinite Scale.
|
||||
|
||||
Currently, only for the following components you need to sign a [Contributors License Agreement](https://en.wikipedia.org/wiki/Contributor_License_Agreement):
|
||||
|
||||
* [ownCloud Web](https://github.com/owncloud/web/): [Link to CLA](https://owncloud.com/contribute/join-the-development/contributor-agreement/)
|
||||
|
||||
Please make sure to read and understand the details of the CLA before starting to invest time on a component that requires it. If you have any questions or concerns please feel free to raise them with us.
|
||||
|
||||
## How Can I Contribute
|
||||
|
||||
There are many ways to contribute to open source projects, and all are equally valuable and appreciated.
|
||||
|
||||
### Help spreading the word
|
||||
|
||||
This way to contribute to the project can not be overestimated: People who talk about their experience with ownCloud Infinite Scale and help others with that are the key to success of the project.
|
||||
|
||||
There are too many ways of doing that to line them up here, but examples are answering questions in [ownCloud Central](https://central.owncloud.org/) or on [ownCloud Talk](https://talk.owncloud.com/channel/ocis), writing blog posts etc. pp.
|
||||
|
||||
There is no formal guideline to this, just do it :-)
|
||||
|
||||
### Reporting Bugs
|
||||
|
||||
This section guides you through submitting a bug report for ownCloud Infinite Scale. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, and find related reports :mag_right:.
|
||||
|
||||
Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). Fill out [the required template](https://github.com/owncloud/ocis/issues/new?Type%3ABug&template=bug_report.md), the information it asks for helps us resolve issues faster.
|
||||
|
||||
> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. If you have permission to reopen the issue, feel free to do so.
|
||||
|
||||
#### Before Submitting A Bug Report
|
||||
|
||||
* **Make sure you are running a recent version** Usually, developers' interest in old versions of software drops very fast once a new shiny version has been released. So the general recommendation is: Use the latest released version or even the current master to reproduce problems that you might encounter. That helps a lot to attract developers attention.
|
||||
* **Determine which [repository](https://github.com/owncloud) the problem should be reported in**.
|
||||
* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aowncloud)** with possibly a more granular filter on the repository, to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one **if you have new information**. Please abstain from adding "plus ones", except using the GitHub emojis. That might indicate how many users are affected.
|
||||
|
||||
#### How Do I Submit A (Good) Bug Report
|
||||
|
||||
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined [which repository](https://github.com/owncloud) your bug is related to, create an issue on that repository and provide the following information by filling in [the template](https://github.com/owncloud/ocis/issues/new?Type%3ABug&template=bug_report.md).
|
||||
|
||||
Explain the problem and include additional details to help maintainers reproduce the problem:
|
||||
|
||||
* **Use a clear and descriptive title** for the issue to identify the problem.
|
||||
* **Describe the exact steps which reproduce the problem** in as many details as possible. Start with describing, from a user perspective, what you tried to achieve, i.e. "I want to share some pictures with Grandma". When listing steps, **don't just say what you did, but explain how you did it**. For example, if you uploaded a file to ownCloud, say which client you used, which way of uploading you chose, if the name was special somehow and how big it was.
|
||||
* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
|
||||
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
|
||||
* **Explain which behavior you expected to see instead and why.**
|
||||
* **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
|
||||
* **If you report a web browser related problem**, consider to using the browser's Web developer tools (such as the debugger, console or network monitor) to check what happened. Make sure to add screenshots of the utilities if you are short of time to interpret it.
|
||||
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
|
||||
|
||||
Provide more context by answering these questions:
|
||||
|
||||
* **Did the problem start happening recently** (e.g. after updating to a new version) or was this always a problem?
|
||||
* If the problem started happening recently, **can you reproduce the problem in an older version?** What's the most recent version in which the problem doesn't happen? You can find more information about how to set up [test environments](https://owncloud.dev/ocis/development/testing/) in the [developer documentation](https://owncloud.dev/#developer-documentation).
|
||||
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
|
||||
|
||||
Include details about your configuration and environment as asked for in the template.
|
||||
|
||||
### Suggesting Enhancements
|
||||
|
||||
This section guides you through submitting an enhancement suggestion for ownCloud Infinite Scale, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:.
|
||||
|
||||
Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in [the template](https://github.com/owncloud/ocis/.github/blob/master/.github/ISSUE_TEMPLATE/feature_request.md), including the steps that you imagine you would take if the feature you're requesting existed.
|
||||
|
||||
#### Before Submitting An Enhancement Suggestion
|
||||
|
||||
* **Check if there's already an extension or other component which provides that enhancement, even in a different way.**
|
||||
* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aowncloud)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. Feel free to use the GitHub emojis to indicate that you are in favour of an enhancement request.
|
||||
|
||||
#### How Do I Submit A (Good) Enhancement Suggestion
|
||||
|
||||
Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined [which repository](https://github.com/owncloud) your enhancement suggestion is related to, create an issue on that repository and provide the following information:
|
||||
|
||||
* **Use a clear and descriptive title** for the issue to identify the suggestion.
|
||||
* **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
|
||||
* **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
|
||||
* **Explain why this enhancement would be useful** to most ownCloud users.
|
||||
* **List some other projects or products where this enhancement exists.**
|
||||
|
||||
### Your First Code Contribution
|
||||
|
||||
Unsure where to begin contributing to ownCloud? You can start by looking through these `Needs-help` issues:
|
||||
|
||||
* The [Good first issue](https://github.com/owncloud/ocis/labels/Topic%3Agood-first-issue) label marks good items to start with.
|
||||
* [Tests needed](https://github.com/owncloud/ocis/labels/Interaction%3ANeeds-tests) - issues which would benefit from a test.
|
||||
* [Help wanted issues](https://github.com/owncloud/ocis/labels/Interaction%3ANeeds-help) - issues which should be a bit more involved.
|
||||
|
||||
It is fine to pick one of the list following personal preference. While not perfect, number of comments is a reasonable proxy for impact a given change will have.
|
||||
|
||||
To find out how to set up ownCloud Infinite Scale for local development please refer to the [Developer Documentation](https://owncloud.dev/ocis/development/getting-started/). It contains a lot of information that will come in handy when starting to work on the project.
|
||||
|
||||
### Pull Requests
|
||||
|
||||
All contributions to ownClouds projects use so-called pull requests following the [GitHub PR workflow](https://guides.github.com/introduction/flow/).
|
||||
|
||||
Please follow these steps to have your contribution considered by the maintainers:
|
||||
|
||||
* Follow all instructions in [the template](https://github.com/owncloud/ocis/blob/master/.github/pull_request_template.md)
|
||||
* Follow the [styleguides](#styleguides) where applicable
|
||||
* After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing <details><summary>What if the status checks are failing?</summary>If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.</details>
|
||||
|
||||
While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
|
||||
|
||||
### Documentation Contributions
|
||||
|
||||
ownCloud is very proud of the documentation it has, which is the work of a great team of people. Of course, also the documentation is open to contributions.
|
||||
|
||||
See the [Getting Started Guide](https://owncloud.dev/ocis/development/getting-started/) on how to get started. Other useful information is summarized in the [Documentation Readme](https://github.com/owncloud/docs).
|
||||
|
||||
### Internationalization
|
||||
|
||||
Our projects are getting translated into many languages to allow people from all over the world to use ownCloud in their native language. For translations, ownCloud uses [Transifex](https://www.transifex.com) as a community based collaboration platform for internationalization.
|
||||
|
||||
For contributions please refer to the [Transifex Resources](https://www.transifex.com/resources/) to learn how to improve ownClouds translations there.
|
||||
|
||||
### Deployments: Docker, Ansible and friends
|
||||
|
||||
Depending on the ownCloud component, there is complex deployment tooling to install in various environments. There is for example [ownCloud Ansible](https://github.com/owncloud-ansible) with Ansible resources. Contributions to that are very appreciated and follow the same guidelines as every other code contribution.
|
||||
|
||||
## Styleguides
|
||||
|
||||
To keep up with a consistent code and tooling landscape, some ownCloud modules maintain styleguides for contributions. It is mandatory to follow them in contributions.
|
||||
|
||||
### Git Commit Messages
|
||||
|
||||
* Use the present tense ("Add feature" not "Added feature")
|
||||
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
|
||||
* Limit the first line to 72 characters or less
|
||||
* Reference issues and pull requests liberally after the first line
|
||||
* When only changing documentation, include `[docs-only]` in the commit title
|
||||
|
||||
### Golang Styleguide
|
||||
|
||||
Use the built-in golang code formatter before submitting the patch. Also, consulting documentation like [Effective Go](https://golang.org/doc/effective_go) or [Practical Go](http://bit.ly/gcsg-2019) helps to improve the code quality.
|
||||
|
||||
### Web Styleguide
|
||||
|
||||
Refer to related documents in the [ownCloud Web Repository](https://github.com/owncloud/web).
|
||||
|
||||
#### Documentation Styleguide
|
||||
|
||||
See the [ownCloud Documentation Styleguide](https://github.com/owncloud/docs/blob/master/docs/style-guide.md).
|
||||
|
||||
## Additional Notes
|
||||
|
||||
### Issue and Pull Request Labels
|
||||
|
||||
This section lists the labels we use to help us track and manage issues and pull requests. Most labels are used across all ownCloud repositories, but some are specific.
|
||||
|
||||
[GitHub search](https://help.github.com/articles/searching-issues/) makes it easy to use labels for finding groups of issues or pull requests you're interested in. To help you find issues and pull requests, each label can be used in search links for finding open items with that label in the ownCloud repositories.
|
||||
|
||||
The labels are loosely grouped by their purpose, but it's not required that every issue has a label from every group or that an issue can't have more than one label from the same group.
|
||||
|
||||
The list here contains all the more general categories of issues which are followed by a colon and a specific value. For example severity 1 looks like `Severity:sev1-critical`.
|
||||
|
||||
#### Platform
|
||||
|
||||
Describes the platform the issue is happening on, i.e. iOS or Windows.
|
||||
|
||||
#### Estimation
|
||||
|
||||
T-Shirt sizes for effort estimation to fix that bug or implement an enhancement. Ranges from XS to XXXL.
|
||||
|
||||
#### Priority
|
||||
|
||||
P1 to P4 (lowest) to indicate a priority. Mostly a tool for internal project management and support.
|
||||
|
||||
#### QA
|
||||
|
||||
Flags to indicate the internal QA status in terms of process and priority. Please leave alone unless you're QA ;-)
|
||||
|
||||
#### Severity
|
||||
|
||||
Severity for the product, mostly impact on user.
|
||||
|
||||
#### Type
|
||||
|
||||
The issue type, helps to structure the issues in the agile categories (Epic, Story...) but also organizational ones.
|
||||
|
||||
#### Topic
|
||||
|
||||
A general category of the topic of a ticket.
|
||||
|
||||
#### Category
|
||||
|
||||
Categorizes the issue to also indicate the type of the issue.
|
||||
|
||||
#### Status
|
||||
|
||||
The status in the ticket life cycle. Keep an eye on that one, especially for the `Waiting-for-Feedback` tag which might indicate that the reporter is asked for feedback.
|
||||
|
||||
#### Interaction
|
||||
|
||||
Another label that indicates the type of the issue.
|
||||
|
||||
#### Browser
|
||||
|
||||
Important for browser dependent web issues. It specifies the browser that shows the error.
|
||||
|
||||
#### Early-Adopter
|
||||
|
||||
Tags issues that were reported by one of the oCIS early adopters, i.e. customers and users who start using ownCloud Infinite Scale before its general availability.
|
||||
+1
-1
@@ -28,7 +28,7 @@ COPY --from=generate /ocis /ocis
|
||||
WORKDIR /ocis/ocis
|
||||
RUN make ci-go-generate build ENABLE_VIPS=true
|
||||
|
||||
FROM alpine:3.24.2
|
||||
FROM alpine:3.23.4
|
||||
|
||||
RUN apk add --no-cache attr ca-certificates curl mailcap tree \
|
||||
&& apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community "vips=8.18.2-r0" \
|
||||
|
||||
@@ -1,188 +0,0 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
@@ -1,11 +0,0 @@
|
||||
Copyright (c) <year> <owner>.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -1,18 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
||||
following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
||||
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -1,373 +0,0 @@
|
||||
Mozilla Public License Version 2.0
|
||||
==================================
|
||||
|
||||
1. Definitions
|
||||
--------------
|
||||
|
||||
1.1. "Contributor"
|
||||
means each individual or legal entity that creates, contributes to
|
||||
the creation of, or owns Covered Software.
|
||||
|
||||
1.2. "Contributor Version"
|
||||
means the combination of the Contributions of others (if any) used
|
||||
by a Contributor and that particular Contributor's Contribution.
|
||||
|
||||
1.3. "Contribution"
|
||||
means Covered Software of a particular Contributor.
|
||||
|
||||
1.4. "Covered Software"
|
||||
means Source Code Form to which the initial Contributor has attached
|
||||
the notice in Exhibit A, the Executable Form of such Source Code
|
||||
Form, and Modifications of such Source Code Form, in each case
|
||||
including portions thereof.
|
||||
|
||||
1.5. "Incompatible With Secondary Licenses"
|
||||
means
|
||||
|
||||
(a) that the initial Contributor has attached the notice described
|
||||
in Exhibit B to the Covered Software; or
|
||||
|
||||
(b) that the Covered Software was made available under the terms of
|
||||
version 1.1 or earlier of the License, but not also under the
|
||||
terms of a Secondary License.
|
||||
|
||||
1.6. "Executable Form"
|
||||
means any form of the work other than Source Code Form.
|
||||
|
||||
1.7. "Larger Work"
|
||||
means a work that combines Covered Software with other material, in
|
||||
a separate file or files, that is not Covered Software.
|
||||
|
||||
1.8. "License"
|
||||
means this document.
|
||||
|
||||
1.9. "Licensable"
|
||||
means having the right to grant, to the maximum extent possible,
|
||||
whether at the time of the initial grant or subsequently, any and
|
||||
all of the rights conveyed by this License.
|
||||
|
||||
1.10. "Modifications"
|
||||
means any of the following:
|
||||
|
||||
(a) any file in Source Code Form that results from an addition to,
|
||||
deletion from, or modification of the contents of Covered
|
||||
Software; or
|
||||
|
||||
(b) any new file in Source Code Form that contains any Covered
|
||||
Software.
|
||||
|
||||
1.11. "Patent Claims" of a Contributor
|
||||
means any patent claim(s), including without limitation, method,
|
||||
process, and apparatus claims, in any patent Licensable by such
|
||||
Contributor that would be infringed, but for the grant of the
|
||||
License, by the making, using, selling, offering for sale, having
|
||||
made, import, or transfer of either its Contributions or its
|
||||
Contributor Version.
|
||||
|
||||
1.12. "Secondary License"
|
||||
means either the GNU General Public License, Version 2.0, the GNU
|
||||
Lesser General Public License, Version 2.1, the GNU Affero General
|
||||
Public License, Version 3.0, or any later versions of those
|
||||
licenses.
|
||||
|
||||
1.13. "Source Code Form"
|
||||
means the form of the work preferred for making modifications.
|
||||
|
||||
1.14. "You" (or "Your")
|
||||
means an individual or a legal entity exercising rights under this
|
||||
License. For legal entities, "You" includes any entity that
|
||||
controls, is controlled by, or is under common control with You. For
|
||||
purposes of this definition, "control" means (a) the power, direct
|
||||
or indirect, to cause the direction or management of such entity,
|
||||
whether by contract or otherwise, or (b) ownership of more than
|
||||
fifty percent (50%) of the outstanding shares or beneficial
|
||||
ownership of such entity.
|
||||
|
||||
2. License Grants and Conditions
|
||||
--------------------------------
|
||||
|
||||
2.1. Grants
|
||||
|
||||
Each Contributor hereby grants You a world-wide, royalty-free,
|
||||
non-exclusive license:
|
||||
|
||||
(a) under intellectual property rights (other than patent or trademark)
|
||||
Licensable by such Contributor to use, reproduce, make available,
|
||||
modify, display, perform, distribute, and otherwise exploit its
|
||||
Contributions, either on an unmodified basis, with Modifications, or
|
||||
as part of a Larger Work; and
|
||||
|
||||
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
||||
for sale, have made, import, and otherwise transfer either its
|
||||
Contributions or its Contributor Version.
|
||||
|
||||
2.2. Effective Date
|
||||
|
||||
The licenses granted in Section 2.1 with respect to any Contribution
|
||||
become effective for each Contribution on the date the Contributor first
|
||||
distributes such Contribution.
|
||||
|
||||
2.3. Limitations on Grant Scope
|
||||
|
||||
The licenses granted in this Section 2 are the only rights granted under
|
||||
this License. No additional rights or licenses will be implied from the
|
||||
distribution or licensing of Covered Software under this License.
|
||||
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
||||
Contributor:
|
||||
|
||||
(a) for any code that a Contributor has removed from Covered Software;
|
||||
or
|
||||
|
||||
(b) for infringements caused by: (i) Your and any other third party's
|
||||
modifications of Covered Software, or (ii) the combination of its
|
||||
Contributions with other software (except as part of its Contributor
|
||||
Version); or
|
||||
|
||||
(c) under Patent Claims infringed by Covered Software in the absence of
|
||||
its Contributions.
|
||||
|
||||
This License does not grant any rights in the trademarks, service marks,
|
||||
or logos of any Contributor (except as may be necessary to comply with
|
||||
the notice requirements in Section 3.4).
|
||||
|
||||
2.4. Subsequent Licenses
|
||||
|
||||
No Contributor makes additional grants as a result of Your choice to
|
||||
distribute the Covered Software under a subsequent version of this
|
||||
License (see Section 10.2) or under the terms of a Secondary License (if
|
||||
permitted under the terms of Section 3.3).
|
||||
|
||||
2.5. Representation
|
||||
|
||||
Each Contributor represents that the Contributor believes its
|
||||
Contributions are its original creation(s) or it has sufficient rights
|
||||
to grant the rights to its Contributions conveyed by this License.
|
||||
|
||||
2.6. Fair Use
|
||||
|
||||
This License is not intended to limit any rights You have under
|
||||
applicable copyright doctrines of fair use, fair dealing, or other
|
||||
equivalents.
|
||||
|
||||
2.7. Conditions
|
||||
|
||||
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
||||
in Section 2.1.
|
||||
|
||||
3. Responsibilities
|
||||
-------------------
|
||||
|
||||
3.1. Distribution of Source Form
|
||||
|
||||
All distribution of Covered Software in Source Code Form, including any
|
||||
Modifications that You create or to which You contribute, must be under
|
||||
the terms of this License. You must inform recipients that the Source
|
||||
Code Form of the Covered Software is governed by the terms of this
|
||||
License, and how they can obtain a copy of this License. You may not
|
||||
attempt to alter or restrict the recipients' rights in the Source Code
|
||||
Form.
|
||||
|
||||
3.2. Distribution of Executable Form
|
||||
|
||||
If You distribute Covered Software in Executable Form then:
|
||||
|
||||
(a) such Covered Software must also be made available in Source Code
|
||||
Form, as described in Section 3.1, and You must inform recipients of
|
||||
the Executable Form how they can obtain a copy of such Source Code
|
||||
Form by reasonable means in a timely manner, at a charge no more
|
||||
than the cost of distribution to the recipient; and
|
||||
|
||||
(b) You may distribute such Executable Form under the terms of this
|
||||
License, or sublicense it under different terms, provided that the
|
||||
license for the Executable Form does not attempt to limit or alter
|
||||
the recipients' rights in the Source Code Form under this License.
|
||||
|
||||
3.3. Distribution of a Larger Work
|
||||
|
||||
You may create and distribute a Larger Work under terms of Your choice,
|
||||
provided that You also comply with the requirements of this License for
|
||||
the Covered Software. If the Larger Work is a combination of Covered
|
||||
Software with a work governed by one or more Secondary Licenses, and the
|
||||
Covered Software is not Incompatible With Secondary Licenses, this
|
||||
License permits You to additionally distribute such Covered Software
|
||||
under the terms of such Secondary License(s), so that the recipient of
|
||||
the Larger Work may, at their option, further distribute the Covered
|
||||
Software under the terms of either this License or such Secondary
|
||||
License(s).
|
||||
|
||||
3.4. Notices
|
||||
|
||||
You may not remove or alter the substance of any license notices
|
||||
(including copyright notices, patent notices, disclaimers of warranty,
|
||||
or limitations of liability) contained within the Source Code Form of
|
||||
the Covered Software, except that You may alter any license notices to
|
||||
the extent required to remedy known factual inaccuracies.
|
||||
|
||||
3.5. Application of Additional Terms
|
||||
|
||||
You may choose to offer, and to charge a fee for, warranty, support,
|
||||
indemnity or liability obligations to one or more recipients of Covered
|
||||
Software. However, You may do so only on Your own behalf, and not on
|
||||
behalf of any Contributor. You must make it absolutely clear that any
|
||||
such warranty, support, indemnity, or liability obligation is offered by
|
||||
You alone, and You hereby agree to indemnify every Contributor for any
|
||||
liability incurred by such Contributor as a result of warranty, support,
|
||||
indemnity or liability terms You offer. You may include additional
|
||||
disclaimers of warranty and limitations of liability specific to any
|
||||
jurisdiction.
|
||||
|
||||
4. Inability to Comply Due to Statute or Regulation
|
||||
---------------------------------------------------
|
||||
|
||||
If it is impossible for You to comply with any of the terms of this
|
||||
License with respect to some or all of the Covered Software due to
|
||||
statute, judicial order, or regulation then You must: (a) comply with
|
||||
the terms of this License to the maximum extent possible; and (b)
|
||||
describe the limitations and the code they affect. Such description must
|
||||
be placed in a text file included with all distributions of the Covered
|
||||
Software under this License. Except to the extent prohibited by statute
|
||||
or regulation, such description must be sufficiently detailed for a
|
||||
recipient of ordinary skill to be able to understand it.
|
||||
|
||||
5. Termination
|
||||
--------------
|
||||
|
||||
5.1. The rights granted under this License will terminate automatically
|
||||
if You fail to comply with any of its terms. However, if You become
|
||||
compliant, then the rights granted under this License from a particular
|
||||
Contributor are reinstated (a) provisionally, unless and until such
|
||||
Contributor explicitly and finally terminates Your grants, and (b) on an
|
||||
ongoing basis, if such Contributor fails to notify You of the
|
||||
non-compliance by some reasonable means prior to 60 days after You have
|
||||
come back into compliance. Moreover, Your grants from a particular
|
||||
Contributor are reinstated on an ongoing basis if such Contributor
|
||||
notifies You of the non-compliance by some reasonable means, this is the
|
||||
first time You have received notice of non-compliance with this License
|
||||
from such Contributor, and You become compliant prior to 30 days after
|
||||
Your receipt of the notice.
|
||||
|
||||
5.2. If You initiate litigation against any entity by asserting a patent
|
||||
infringement claim (excluding declaratory judgment actions,
|
||||
counter-claims, and cross-claims) alleging that a Contributor Version
|
||||
directly or indirectly infringes any patent, then the rights granted to
|
||||
You by any and all Contributors for the Covered Software under Section
|
||||
2.1 of this License shall terminate.
|
||||
|
||||
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
||||
end user license agreements (excluding distributors and resellers) which
|
||||
have been validly granted by You or Your distributors under this License
|
||||
prior to termination shall survive termination.
|
||||
|
||||
************************************************************************
|
||||
* *
|
||||
* 6. Disclaimer of Warranty *
|
||||
* ------------------------- *
|
||||
* *
|
||||
* Covered Software is provided under this License on an "as is" *
|
||||
* basis, without warranty of any kind, either expressed, implied, or *
|
||||
* statutory, including, without limitation, warranties that the *
|
||||
* Covered Software is free of defects, merchantable, fit for a *
|
||||
* particular purpose or non-infringing. The entire risk as to the *
|
||||
* quality and performance of the Covered Software is with You. *
|
||||
* Should any Covered Software prove defective in any respect, You *
|
||||
* (not any Contributor) assume the cost of any necessary servicing, *
|
||||
* repair, or correction. This disclaimer of warranty constitutes an *
|
||||
* essential part of this License. No use of any Covered Software is *
|
||||
* authorized under this License except under this disclaimer. *
|
||||
* *
|
||||
************************************************************************
|
||||
|
||||
************************************************************************
|
||||
* *
|
||||
* 7. Limitation of Liability *
|
||||
* -------------------------- *
|
||||
* *
|
||||
* Under no circumstances and under no legal theory, whether tort *
|
||||
* (including negligence), contract, or otherwise, shall any *
|
||||
* Contributor, or anyone who distributes Covered Software as *
|
||||
* permitted above, be liable to You for any direct, indirect, *
|
||||
* special, incidental, or consequential damages of any character *
|
||||
* including, without limitation, damages for lost profits, loss of *
|
||||
* goodwill, work stoppage, computer failure or malfunction, or any *
|
||||
* and all other commercial damages or losses, even if such party *
|
||||
* shall have been informed of the possibility of such damages. This *
|
||||
* limitation of liability shall not apply to liability for death or *
|
||||
* personal injury resulting from such party's negligence to the *
|
||||
* extent applicable law prohibits such limitation. Some *
|
||||
* jurisdictions do not allow the exclusion or limitation of *
|
||||
* incidental or consequential damages, so this exclusion and *
|
||||
* limitation may not apply to You. *
|
||||
* *
|
||||
************************************************************************
|
||||
|
||||
8. Litigation
|
||||
-------------
|
||||
|
||||
Any litigation relating to this License may be brought only in the
|
||||
courts of a jurisdiction where the defendant maintains its principal
|
||||
place of business and such litigation shall be governed by laws of that
|
||||
jurisdiction, without reference to its conflict-of-law provisions.
|
||||
Nothing in this Section shall prevent a party's ability to bring
|
||||
cross-claims or counter-claims.
|
||||
|
||||
9. Miscellaneous
|
||||
----------------
|
||||
|
||||
This License represents the complete agreement concerning the subject
|
||||
matter hereof. If any provision of this License is held to be
|
||||
unenforceable, such provision shall be reformed only to the extent
|
||||
necessary to make it enforceable. Any law or regulation which provides
|
||||
that the language of a contract shall be construed against the drafter
|
||||
shall not be used to construe this License against a Contributor.
|
||||
|
||||
10. Versions of the License
|
||||
---------------------------
|
||||
|
||||
10.1. New Versions
|
||||
|
||||
Mozilla Foundation is the license steward. Except as provided in Section
|
||||
10.3, no one other than the license steward has the right to modify or
|
||||
publish new versions of this License. Each version will be given a
|
||||
distinguishing version number.
|
||||
|
||||
10.2. Effect of New Versions
|
||||
|
||||
You may distribute the Covered Software under the terms of the version
|
||||
of the License under which You originally received the Covered Software,
|
||||
or under the terms of any subsequent version published by the license
|
||||
steward.
|
||||
|
||||
10.3. Modified Versions
|
||||
|
||||
If you create software not governed by this License, and you want to
|
||||
create a new license for such software, you may create and use a
|
||||
modified version of this License if you rename the license and remove
|
||||
any references to the name of the license steward (except to note that
|
||||
such modified license differs from this License).
|
||||
|
||||
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
||||
Licenses
|
||||
|
||||
If You choose to distribute Source Code Form that is Incompatible With
|
||||
Secondary Licenses under the terms of this version of the License, the
|
||||
notice described in Exhibit B of this License must be attached.
|
||||
|
||||
Exhibit A - Source Code Form License Notice
|
||||
-------------------------------------------
|
||||
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
|
||||
If it is not possible or desirable to put the notice in a particular
|
||||
file, then You may include the notice in a location (such as a LICENSE
|
||||
file in a relevant directory) where a recipient would be likely to look
|
||||
for such a notice.
|
||||
|
||||
You may add additional accurate notices of copyright ownership.
|
||||
|
||||
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
||||
---------------------------------------------------------
|
||||
|
||||
This Source Code Form is "Incompatible With Secondary Licenses", as
|
||||
defined by the Mozilla Public License, v. 2.0.
|
||||
@@ -96,6 +96,15 @@ help:
|
||||
@echo
|
||||
@echo -e "${RED}You also should have a look at other available Makefiles:${RESET}"
|
||||
@echo
|
||||
@echo -e "${GREEN}oCIS:${RESET}\n"
|
||||
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/ocis/build-docs/${RESET}\n"
|
||||
@echo -e "\tsee ./ocis/Makefile"
|
||||
@echo -e "\tor run ${YELLOW}make -C ocis help${RESET}"
|
||||
@echo
|
||||
@echo -e "${GREEN}Documentation:${RESET}\n"
|
||||
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/build-docs/${RESET}\n"
|
||||
@echo -e "\trun ${YELLOW}make list | grep docs-\t\t${BLUE}note: run all docs command via this makefile${RESET}"
|
||||
@echo
|
||||
@echo -e "${GREEN}Testing with test suite in docker:${RESET}\n"
|
||||
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/testing/#testing-with-test-suite-in-docker${RESET}\n"
|
||||
@echo -e "\tsee ./tests/acceptance/docker/Makefile"
|
||||
@@ -158,6 +167,61 @@ clean:
|
||||
$(MAKE) --no-print-directory -C $$mod clean || exit 1; \
|
||||
done
|
||||
|
||||
# generate the docs
|
||||
# intents and comments are intentional...
|
||||
.PHONY: docs-generate # 1. prepare docs
|
||||
docs-generate:
|
||||
@echo 'Empty folders first to only have those files that are generated without remnants.'
|
||||
find docs/services/_includes/ -type f \( -name "*" ! -name ".git*" \) -delete || exit 1
|
||||
|
||||
@echo 'Generate content from services.'
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod docs-generate || exit 1; \
|
||||
done
|
||||
|
||||
@$(MAKE) --no-print-directory -C docs docs-run-helpers || exit 1
|
||||
|
||||
# initialize the docs build environment
|
||||
@$(MAKE) --no-print-directory -C docs docs-init
|
||||
|
||||
# copy required resources into hugo/content
|
||||
.PHONY: docs-copy # 2. copy required doc resources
|
||||
docs-copy:
|
||||
@$(MAKE) --no-print-directory -C docs docs-copy
|
||||
|
||||
# the docs-build|serve commands requires that docs-init was run first for the required data to exists
|
||||
# create a docs build
|
||||
.PHONY: docs-build # 3. build prepared docs
|
||||
docs-build:
|
||||
@$(MAKE) --no-print-directory -C docs docs-build
|
||||
|
||||
# serve built docs with hugo
|
||||
.PHONY: docs-serve # serve the docs build
|
||||
docs-serve:
|
||||
@$(MAKE) --no-print-directory -C docs docs-serve
|
||||
|
||||
# clean up doc build artifacts
|
||||
.PHONY: docs-clean # clean all docs artifacts, must be run as sudo
|
||||
docs-clean:
|
||||
@$(MAKE) --no-print-directory -C docs docs-clean
|
||||
|
||||
# docs-local imitates the 3-step docs build pipeline (generate → copy → build)
|
||||
# locally without pushing. docs-hugo-drone-prep creates the ../hugo symlink required by
|
||||
# the Hugo Docker image (hugomods/hugo:base-0.129.0).
|
||||
# imitate a full docs build run locally without pushing to the web.
|
||||
# this can help identify uncaught issues when running `make docs-serve` only.
|
||||
.PHONY: docs-local # run all steps as drone would do it (1, 2, 3)
|
||||
docs-local:
|
||||
@$(MAKE) --no-print-directory docs-generate
|
||||
@$(MAKE) --no-print-directory docs-copy
|
||||
@$(MAKE) --no-print-directory docs-build
|
||||
|
||||
# prepare a link from the root to the hugo folder because the image requires it
|
||||
# note that on local building, the referenced container of inside the hugo/makefile is used
|
||||
.PHONY: docs-hugo-drone-prep # only used for drone !
|
||||
docs-hugo-drone-prep:
|
||||
@$(MAKE) --no-print-directory -C docs docs-hugo-drone-prep
|
||||
|
||||
.PHONY: check-env-var-annotations
|
||||
check-env-var-annotations:
|
||||
.make/check-env-var-annotations.sh
|
||||
@@ -181,17 +245,6 @@ go-mod-tidy:
|
||||
$(MAKE) --no-print-directory -C $$mod go-mod-tidy || exit 1; \
|
||||
done
|
||||
|
||||
# Opt in to vips-tagged sources: `ENABLE_VIPS=true
|
||||
# make test` compiles files behind `//go:build enable_vips` (e.g. thumbnails).
|
||||
TAGS ?=
|
||||
ifdef ENABLE_VIPS
|
||||
ifeq ($(strip $(TAGS)),)
|
||||
TAGS := enable_vips
|
||||
else
|
||||
TAGS := $(TAGS),enable_vips
|
||||
endif
|
||||
endif
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@go test -v -tags '$(TAGS)' -coverprofile coverage.out ./...
|
||||
@@ -275,17 +328,6 @@ endif
|
||||
mkdir -p ocis/dist
|
||||
$(CALENS) --version $(CHANGELOG_VERSION) -o ocis/dist/CHANGELOG.md
|
||||
|
||||
.PHONY: changelog-lint
|
||||
changelog-lint:
|
||||
@FAILED=0; \
|
||||
while IFS= read -r -d '' f; do \
|
||||
title=$$(head -1 "$$f"); \
|
||||
if [ $${#title} -gt 80 ]; then \
|
||||
echo "$$f: title too long ($${#title}/80)"; FAILED=1; \
|
||||
fi; \
|
||||
done < <(find changelog -mindepth 2 -name "*.md" -print0); \
|
||||
exit $$FAILED
|
||||
|
||||
.PHONY: changelog-csv
|
||||
changelog-csv: $(CALENS)
|
||||
mkdir -p ocis/dist
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
ownCloud Infinite Scale (ocis)
|
||||
Copyright 2020-2026 ownCloud GmbH
|
||||
|
||||
This product includes software developed by ownCloud GmbH and the
|
||||
ownCloud community, licensed under the Apache License, Version 2.0
|
||||
(see the LICENSE file in this repository's root directory).
|
||||
|
||||
--------------------------------------------------------------------
|
||||
Provenance note: the ownCloud Web frontend (web/)
|
||||
--------------------------------------------------------------------
|
||||
|
||||
The `web/` directory contains the source of the ownCloud Web frontend.
|
||||
It was formerly maintained as the independent repository
|
||||
https://github.com/owncloud/web and, through its final release
|
||||
(tag `v12.5.0`, also tagged `last-agpl-release`, commit
|
||||
b16a34fdf5569d2fd63b1ff3c575c1a4ee569ad3), was historically licensed
|
||||
under the GNU Affero General Public License, version 3.0 (AGPL-3.0).
|
||||
|
||||
All contributors to that repository accepted the ownCloud Contributor
|
||||
License Agreement (CLA), which grants ownCloud GmbH the right to
|
||||
relicense their contributions. Under that grant, ownCloud GmbH has
|
||||
relicensed the source tree at the commit above from AGPL-3.0 to the
|
||||
Apache License, Version 2.0 -- the same license that covers the rest
|
||||
of this repository -- and merged it into this repository.
|
||||
|
||||
The pre-relicense, AGPL-3.0-licensed development history remains
|
||||
publicly available in the archived https://github.com/owncloud/web
|
||||
repository for historical and attribution purposes. That history is
|
||||
not the license under which the code in this repository is
|
||||
distributed; this repository's root LICENSE (Apache-2.0) governs the
|
||||
entirety of this repository, including web/.
|
||||
@@ -69,15 +69,13 @@ Use as URL `localhost:9200` and the user/password printed.
|
||||
|
||||
Infinite Scale allows the following ownCloud clients:
|
||||
|
||||
* Web (bundled in this repository under [`web/`](web/)),
|
||||
* [web](https://github.com/owncloud/web),
|
||||
* [Android](https://github.com/owncloud/android),
|
||||
* [iOS](https://github.com/owncloud/ios-app) and
|
||||
* [Desktop](https://github.com/owncloud/client/)
|
||||
|
||||
to synchronize and share file spaces with a scalable server backend based on [reva](https://reva.link/) using open and well-defined APIs like [WebDAV](http://www.webdav.org/) and [CS3](https://github.com/cs3org/cs3apis/).
|
||||
|
||||
The Web client used to live in the separate [owncloud/web](https://github.com/owncloud/web) repository; it is now developed in-tree here under [`web/`](web/) as part of a single-repo product (backend + web frontend). `owncloud/web` is archived and kept only as the historical record up to its final release; file web-related issues and contributions in this repository instead.
|
||||
|
||||
### Web Office Applications
|
||||
|
||||
Infinite Scale can integrate web office applications such as:
|
||||
@@ -104,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/admin/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/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
|
||||
|
||||
@@ -168,5 +166,5 @@ Some builds of stable ownCloud Infinite Scale releases provided by ownCloud GmbH
|
||||
## Copyright
|
||||
|
||||
```console
|
||||
Copyright (c) 2020-2026 ownCloud GmbH <https://owncloud.com>
|
||||
Copyright (c) 2020-2023 ownCloud GmbH <https://owncloud.com>
|
||||
```
|
||||
@@ -1,9 +0,0 @@
|
||||
version = 1
|
||||
SPDX-PackageName = "ocis"
|
||||
SPDX-PackageSupplier = "ownCloud GmbH <devops@owncloud.com>"
|
||||
SPDX-PackageDownloadLocation = "https://github.com/owncloud/ocis"
|
||||
|
||||
[[annotations]]
|
||||
path = "**"
|
||||
SPDX-FileCopyrightText = "2016-2026 ownCloud GmbH - A Kiteworks Company and ownCloud contributors"
|
||||
SPDX-License-Identifier = "Apache-2.0"
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
# Security Policy
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
**Do NOT open a public GitHub issue for security vulnerabilities.**
|
||||
|
||||
Please report security issues responsibly via:
|
||||
**<https://security.owncloud.com>**
|
||||
|
||||
You can also report vulnerabilities through our YesWeHack bug bounty program:
|
||||
**<https://yeswehack.com/programs/owncloud-bug-bounty-program>**
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
# Support
|
||||
|
||||
For support with this project, please use the following channels:
|
||||
|
||||
- **Enterprise Support**: <https://owncloud.com/contact-us/>
|
||||
- **Community discussions**: https://github.com/orgs/owncloud/discussions
|
||||
- **Matrix Chat**: <https://app.element.io/#/room/#owncloud:matrix.org>
|
||||
- **Documentation**: <https://doc.owncloud.com>
|
||||
|
||||
Please do not use GitHub issues for general support questions.
|
||||
@@ -1,4 +1,4 @@
|
||||
Enhancement: Use default upload protocol instead of explicitly disabling tus
|
||||
Enhancement: Use a default protocol parameter instead of explicitly disabling tus
|
||||
|
||||
https://github.com/cs3org/reva/pull/1331
|
||||
https://github.com/owncloud/ocis/pull/1374
|
||||
@@ -1,4 +1,4 @@
|
||||
Enhancement: Added share_jail and projects feature flags in spaces capability
|
||||
Enhancement: Added `share_jail` and `projects` feature flags in spaces capability
|
||||
|
||||
We've added feature flags to the `spaces` capability to indicate to clients which features are supposed to be shown to users.
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
Bugfix: Education user delete no longer 404s and leaves the LDAP entry behind
|
||||
|
||||
`DELETE /graph/v1.0/education/users/{id}` previously returned a 404 without
|
||||
removing the user. The education user delete handler used `user.GetExternalID()` for the backend
|
||||
DELETE, while the regular `/users` handler and the pre-v8.0 code path used
|
||||
`user.GetId()`. With the default `RequireExternalID=false`, the LDAP backend
|
||||
looked up the user by name-or-UUID, so the externalID never matched, the LDAP
|
||||
entry was never removed, and the response was a 404. This is now fixed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12395
|
||||
@@ -1,18 +0,0 @@
|
||||
Bugfix: Recover from permanently-closed NATS connections in the nats-js-kv store
|
||||
|
||||
The `nats-js-kv` go-micro store plugin's `hasConn()` only checked whether the
|
||||
connection object was non-nil, not whether it was still alive. Once the
|
||||
underlying NATS client exhausted its reconnect attempts (e.g. a NATS pod
|
||||
restart longer than the client's reconnect window), the connection stayed
|
||||
non-nil but permanently closed. Because connection initialization is gated on
|
||||
`!hasConn()`, it never re-ran, so every subsequent KV operation failed with
|
||||
`nats: connection closed` until the affected pod was restarted.
|
||||
|
||||
This surfaced as several user-visible failures backed by the NATS KV cache,
|
||||
e.g. all spaces becoming invisible (`storage-users` `ListStorageSpaces`) and
|
||||
download failures from missing signing keys (`ocs`).
|
||||
|
||||
The store plugin now treats a closed connection as no connection, so the next
|
||||
operation transparently re-initializes it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12401
|
||||
@@ -1,6 +0,0 @@
|
||||
Security: Bump Go to 1.25.11
|
||||
|
||||
Fixes CVE-2026-42504, a stdlib MIME header decoding vulnerability flagged by
|
||||
the release image scan.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12446
|
||||
@@ -1,7 +0,0 @@
|
||||
Security: Upgrade libvips to 8.18.3
|
||||
|
||||
Bumped libvips to 8.18.3 in all Docker images. The previous pin (8.18.2-r0)
|
||||
was dropped from the Alpine edge/community repository, which broke the image
|
||||
build.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12446
|
||||
@@ -1,16 +0,0 @@
|
||||
Enhancement: Allow disabling the last sign-in timestamp update
|
||||
|
||||
The graph service maintains the 'oCLastSignInTimestamp' LDAP attribute of a user
|
||||
on every sign-in (when the LDAP identity backend has write access). This can
|
||||
cause a significant amount of LDAP write load, especially when the proxy's OIDC
|
||||
userinfo cache has a short TTL and sign-in events are emitted frequently.
|
||||
|
||||
A new setting 'OCIS_LDAP_UPDATE_LAST_SIGNIN_DATE' / 'GRAPH_LDAP_UPDATE_LAST_SIGNIN_DATE'
|
||||
(default 'true') allows disabling the update of the last sign-in timestamp
|
||||
without having to disable all LDAP writes ('OCIS_LDAP_SERVER_WRITE_ENABLED') or
|
||||
the graph events consumer. When set to 'false' the graph service no longer
|
||||
listens for 'UserSignedIn' events and does not write the 'oCLastSignInTimestamp'
|
||||
attribute.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12522
|
||||
https://github.com/owncloud/ocis/issues/9942
|
||||
@@ -1,8 +0,0 @@
|
||||
Security: Upgrade Go to 1.25.12
|
||||
|
||||
Bumped the Go toolchain used to build the release binaries and Docker images
|
||||
from 1.25.11 to 1.25.12. Go 1.25.11 is affected by CVE-2026-39822 (os.Root
|
||||
symlink following allows directory traversal), which is fixed in 1.25.12 and
|
||||
was blocking the release image security scan.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12602
|
||||
@@ -1,7 +0,0 @@
|
||||
Security: Upgrade libvips to 8.18.4
|
||||
|
||||
Bumped libvips to 8.18.4 in all Docker images. The previous pin (8.18.3-r0)
|
||||
was dropped from the Alpine edge/community repository, which broke the image
|
||||
build.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12596
|
||||
@@ -1,19 +0,0 @@
|
||||
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/12660
|
||||
@@ -1,14 +0,0 @@
|
||||
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
|
||||
@@ -1,16 +0,0 @@
|
||||
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
|
||||
@@ -1,13 +0,0 @@
|
||||
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/12635
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
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/12663
|
||||
@@ -1,7 +0,0 @@
|
||||
Bugfix: Mask configs that hold secrets
|
||||
|
||||
Envvars and their config structs can hold secrets.
|
||||
The ServiceAccount config is now masked.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12397
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix the empty mount ID for reva config
|
||||
|
||||
We fixed the empty mount ID for storage-users
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12492
|
||||
@@ -1,18 +0,0 @@
|
||||
Bugfix: Keep personal space when Drives.Create permission check is inconclusive
|
||||
|
||||
When a user's role is (re-)assigned, both the proxy (on OIDC login) and the graph
|
||||
appRoleAssignment handler check the `Drives.Create` permission to decide whether to
|
||||
restore or disable the user's personal space. The permission check collapsed two very
|
||||
different outcomes into a single `false`: the user genuinely lacks the permission, and
|
||||
the permission could not be determined (a transport error, or a non-OK status such as
|
||||
`CODE_INTERNAL` returned by the settings/gateway service). In the second case the code
|
||||
proceeded to disable the personal space, moving it to the trash, even though the user's
|
||||
entitlement was never actually denied.
|
||||
|
||||
`utils.CheckPermission` now distinguishes the three cases at the root: a transport error
|
||||
or a non-OK status other than `PERMISSION_DENIED` is surfaced as an error and the callers
|
||||
fail closed. The personal space is left untouched, and the graph appRoleAssignment handler
|
||||
additionally reverts the role assignment it just persisted so the user is not left in a
|
||||
half-applied state. The role transition is retried on the next login.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12429
|
||||
@@ -1,10 +0,0 @@
|
||||
Enhancement: Bump Reva version
|
||||
|
||||
bumped reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12051
|
||||
https://github.com/owncloud/ocis/pull/12087
|
||||
https://github.com/owncloud/ocis/pull/12137
|
||||
https://github.com/owncloud/ocis/pull/12302
|
||||
https://github.com/owncloud/ocis/pull/12410
|
||||
https://github.com/owncloud/ocis/pull/12492
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Deprecate the owncloudsql storage driver option
|
||||
|
||||
The value `owncloudsql` in the `STORAGE_USERS_DRIVER` environment variable is no
|
||||
longer a valid option and has been marked for deprecation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12486
|
||||
@@ -1,14 +0,0 @@
|
||||
Enhancement: Bump Web to 12.4.2
|
||||
|
||||
- Security [owncloud/web#13844](https://github.com/owncloud/web/issues/13844): Validate postMessage origin in embed mode modals
|
||||
- Bugfix [owncloud/web#13822](https://github.com/owncloud/web/issues/13822): Add explicit size to space header image
|
||||
- Bugfix [owncloud/web#13826](https://github.com/owncloud/web/pull/13826): Apply vault theme after OIDC callback
|
||||
- Bugfix [owncloud/web#13827](https://github.com/owncloud/web/pull/13827): Gate MFA expiry dialog on vault capability
|
||||
- Bugfix [owncloud/web#13834](https://github.com/owncloud/web/pull/13834): Logo not rendering in Firefox
|
||||
- Bugfix [owncloud/web#13843](https://github.com/owncloud/web/pull/13843): Fix theme switching issues
|
||||
- Bugfix [owncloud/web#13867](https://github.com/owncloud/web/pull/13867): Pass vault parameter to capabilities endpoint
|
||||
- Bugfix [owncloud/web#13877](https://github.com/owncloud/web/pull/13877): Filter notifications by vault mode
|
||||
- Bugfix [owncloud/web#13907](https://github.com/owncloud/web/pull/13907): Use authMfaRequiredLevelname from capabilities instead of hardcoded value
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12450
|
||||
https://github.com/owncloud/web/releases/tag/v12.4.2
|
||||
@@ -1,9 +0,0 @@
|
||||
Bugfix: Education user DELETE no longer 404s while leaving LDAP entry behind
|
||||
|
||||
The education user delete handler used `user.GetExternalID()` for the backend
|
||||
DELETE, while the regular `/users` handler and the pre-v8.0 code path used
|
||||
`user.GetId()`. With the default `RequireExternalID=false`, the LDAP backend
|
||||
looked up the user by name-or-UUID, so the externalID never matched, the LDAP
|
||||
entry was never removed, and the response was a 404. This is now fixed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12400
|
||||
@@ -1,12 +0,0 @@
|
||||
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/12411
|
||||
@@ -1,18 +0,0 @@
|
||||
Bugfix: Recover from permanently-closed NATS connections in the nats-js-kv store
|
||||
|
||||
The `nats-js-kv` go-micro store plugin's `hasConn()` only checked whether the
|
||||
connection object was non-nil, not whether it was still alive. Once the
|
||||
underlying NATS client exhausted its reconnect attempts (e.g. a NATS pod
|
||||
restart longer than the client's reconnect window), the connection stayed
|
||||
non-nil but permanently closed. Because connection initialization is gated on
|
||||
`!hasConn()`, it never re-ran, so every subsequent KV operation failed with
|
||||
`nats: connection closed` until the affected pod was restarted.
|
||||
|
||||
This surfaced as several user-visible failures backed by the NATS KV cache,
|
||||
e.g. all spaces becoming invisible (`storage-users` `ListStorageSpaces`) and
|
||||
download failures from missing signing keys (`ocs`).
|
||||
|
||||
The store plugin now treats a closed connection as no connection, so the next
|
||||
operation transparently re-initializes it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12402
|
||||
@@ -1,15 +0,0 @@
|
||||
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/12661
|
||||
https://github.com/owncloud/ocis/issues/12582
|
||||
@@ -1,18 +0,0 @@
|
||||
Bugfix: Always set an audit action for share updates
|
||||
|
||||
Share-update audit events were written with an empty `action` and a message of
|
||||
`updated field ''`, because the conversion read the deprecated
|
||||
`ShareUpdated.Updated` field, which reva no longer populates (it now sets
|
||||
`UpdateMask`). Received-share declines were also not audited correctly because
|
||||
the conversion matched `SHARE_STATE_DECLINED`, which is not a CS3 share state
|
||||
(the enum value is `SHARE_STATE_REJECTED`), again producing an empty action and
|
||||
message.
|
||||
|
||||
The conversion now derives the updated field and action from `UpdateMask`
|
||||
(falling back to the deprecated field), maps `SHARE_STATE_REJECTED` to the
|
||||
declined action, and uses a generic, non-empty action for any unrecognized
|
||||
update field or share state, so every audit entry carries a meaningful,
|
||||
countable action.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/7661
|
||||
https://github.com/owncloud/ocis/pull/12423
|
||||
@@ -1,9 +0,0 @@
|
||||
Bugfix: The auth-app will create the user's home if needed
|
||||
|
||||
When the user logs in, his home must be created. This happens automatically
|
||||
during login via OIDC (web access). Some recent changes in the code broke
|
||||
this behavior when the user logs in via auth-app.
|
||||
Now, this behavior is restored, and the user's home will be created when the
|
||||
user logs in via auth-app.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12457
|
||||
@@ -1,10 +0,0 @@
|
||||
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
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix the empty mount ID for reva config
|
||||
|
||||
We fixed the empty mount ID for storage-users
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12492
|
||||
@@ -1,10 +0,0 @@
|
||||
Bugfix: Return 404 when deleting a non-existing link share on a space
|
||||
|
||||
Deleting an already-removed link share via
|
||||
`DELETE /graph/v1beta1/drives/{driveID}/root/permissions/{permissionID}`
|
||||
returned `400 Bad Request` instead of `404 Not Found`. The underlying
|
||||
reva `RemovePublicShare` and `RemoveShare` handlers now propagate
|
||||
not-found errors as `CODE_NOT_FOUND` rather than `CODE_INTERNAL`,
|
||||
ensuring the correct `404` HTTP response is returned.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12266
|
||||
@@ -1,8 +0,0 @@
|
||||
Bugfix: ensure the redirect URI for the IDP is valid
|
||||
|
||||
The URI sent as redirect URI for the IDP will be validated in oCIS.
|
||||
Invalid URIs will return a 500 error. Note that this should never happen
|
||||
under normal circumstances.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12444
|
||||
https://github.com/owncloud/ocis/pull/12479
|
||||
@@ -1,13 +0,0 @@
|
||||
Bugfix: Honor $select=actions on the drive item permissions endpoint
|
||||
|
||||
Listing the permissions of a drive item with
|
||||
`$select=@libre.graph.permissions.actions.allowedValues` still returned the
|
||||
roles allowedValues as well. The handler only had a projection for the roles
|
||||
selection (`@libre.graph.permissions.roles.allowedValues`), which drops the
|
||||
actions, but no symmetric handling for an actions-only selection, so the roles
|
||||
were always included. The actions selection now drops the roles allowedValues
|
||||
(and, like the roles selection, skips the share lookup since only the allowed
|
||||
values are requested).
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10816
|
||||
https://github.com/owncloud/ocis/pull/12419
|
||||
@@ -1,8 +0,0 @@
|
||||
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
|
||||
@@ -1,15 +0,0 @@
|
||||
Bugfix: Keep bind config in sync when resetting a service user password
|
||||
|
||||
Resetting an IDM service user password with `ocis idm resetpassword
|
||||
--user-type service` only changed the entry in the IDM directory. Services such
|
||||
as auth-basic, users and groups still bound to LDAP as the `reva` service user
|
||||
using the old `bind_password` from their configuration, so after a restart
|
||||
those binds failed and regular admin login started returning 401 Unauthorized.
|
||||
|
||||
The command now rewrites the matching `bind_password` and
|
||||
`service_user_passwords` keys in `ocis.yaml` when it is present, and always
|
||||
prints the environment variables that must carry the new password for env-var
|
||||
and distributed deployments it cannot rewrite.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12716
|
||||
https://github.com/owncloud/ocis/issues/12569
|
||||
@@ -1,12 +0,0 @@
|
||||
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
|
||||
@@ -1,28 +0,0 @@
|
||||
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
|
||||
@@ -1,9 +0,0 @@
|
||||
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
|
||||
@@ -1,12 +0,0 @@
|
||||
Bugfix: Fix double HTML-escaping of notification emails for multiple recipients
|
||||
|
||||
The notifications service reuses the same template variables map for every
|
||||
recipient of an event (for example when a group is invited to a space). The
|
||||
helper that HTML-escapes those variables for the HTML email body escaped the
|
||||
map in place, so every recipient after the first received a plain-text body
|
||||
containing HTML entities and an HTML body with one additional layer of escaping
|
||||
per recipient (a space named `R&D` became `R&amp;D`). The helper now returns
|
||||
a new map and leaves the shared variables untouched, so every recipient renders
|
||||
from the original values.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12413
|
||||
@@ -1,13 +0,0 @@
|
||||
Bugfix: Re-verify access tokens with an expired userinfo cache entry
|
||||
|
||||
The proxy authenticated requests against a cached userinfo entry. When the
|
||||
cached entry's expiry had passed, the request was rejected outright instead of
|
||||
re-verifying the access token. The cached expiry is not always the real token
|
||||
expiry — for opaque access tokens it falls back to the configured cache TTL —
|
||||
so a still-valid token could be rejected just because its cache entry aged out,
|
||||
causing spurious logouts (most noticeable under frequent PROPFIND requests). The
|
||||
proxy now treats an expired cache entry as a cache miss and re-verifies the
|
||||
access token, while a genuinely expired or invalid token is still rejected by
|
||||
the re-verification.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12414
|
||||
@@ -1,7 +0,0 @@
|
||||
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
|
||||
@@ -1,16 +0,0 @@
|
||||
Bugfix: Keep group memberships when the OIDC groups claim is absent
|
||||
|
||||
When auto-provisioning group memberships from an OIDC claim, the proxy
|
||||
reconciled the user's groups against the groups claim and removed them from any
|
||||
group not present in the claim. If a token carried no groups claim at all — for
|
||||
example a token issued for an OIDC client that has no groups mapper configured,
|
||||
such as a dedicated desktop-client registration — the parsed group set was empty
|
||||
and the user was removed from all of their groups.
|
||||
|
||||
The sync is now skipped when the groups claim is absent or null in the token. A
|
||||
present-but-empty claim is still treated as a legitimate "no groups" and
|
||||
reconciled as before. This mirrors the guard the role-assignment path already
|
||||
has for a missing roles claim.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/11435
|
||||
https://github.com/owncloud/ocis/pull/12420
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Fix the proxy readiness check for NATS
|
||||
|
||||
The proxy readiness check passed the events cluster ID instead of the events
|
||||
endpoint to the NATS reachability check. NATS then tried to resolve the cluster
|
||||
ID (e.g. `ocis-cluster`) as a host name, which always failed, so the proxy
|
||||
`/readyz` endpoint reported the service as not ready even when NATS was
|
||||
reachable. The check now uses the events endpoint, consistent with every other
|
||||
service.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10661
|
||||
https://github.com/owncloud/ocis/pull/12421
|
||||
@@ -1,14 +0,0 @@
|
||||
Bugfix: Prevent panic in presigned URL auth when signing key is missing
|
||||
|
||||
The presigned-URL authenticator read the per-user signing key from a store and
|
||||
indexed the first record without checking that the result was non-empty. When
|
||||
the store returns an empty result without an error — which the `noop` store
|
||||
does, and `OCIS_CACHE_STORE=noop` also switches the presigned-URL signing-key
|
||||
store to `noop` — every signed-URL request panicked with `index out of range
|
||||
[0] with length 0` (recovered per request as an HTTP 502), so all signed-URL
|
||||
downloads failed. The authenticator now guards the lookup and returns a normal
|
||||
authentication error instead of panicking; it also no longer returns a nil
|
||||
error when the stored key is empty.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12384
|
||||
https://github.com/owncloud/ocis/pull/12418
|
||||
@@ -1,10 +0,0 @@
|
||||
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
|
||||
@@ -1,10 +0,0 @@
|
||||
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
|
||||
@@ -1,15 +0,0 @@
|
||||
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
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Pass the space ID when purging revision blobs
|
||||
|
||||
The `revisions purge` command removed a revision's metadata but did not delete
|
||||
its blob, because it called the blobstore without the space ID. The blobstore
|
||||
builds the blob path from the space ID and blob ID, so an empty space ID
|
||||
targeted the wrong path: the deletion was a no-op (S3) or missed the file
|
||||
(POSIX), leaving the blob orphaned while the revision was already removed. The
|
||||
space ID parsed from the revision path is now passed to the blobstore.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/11644
|
||||
https://github.com/owncloud/ocis/pull/12422
|
||||
@@ -1,25 +0,0 @@
|
||||
Bugfix: Keep shares visible in sharedWithMe when a resource cannot be statted
|
||||
|
||||
The graph `sharedWithMe` handler resolves each received share by fanning out a per-resource
|
||||
`Stat` call with a concurrency limit, all sharing the request context. When a `Stat` failed
|
||||
for any reason (slow or stuck downstream, deleted space, gateway error, deadline exceeded)
|
||||
the worker logged at debug and returned without emitting a drive item, so the share was
|
||||
silently omitted from the response and the handler still returned `200 OK` with a partial,
|
||||
non-deterministic list. A single chronically-slow share could therefore make other,
|
||||
recently-accepted shares intermittently invisible, and repeated calls returned different
|
||||
subsets of the user's shares.
|
||||
|
||||
The handler now:
|
||||
|
||||
- bounds each per-share `Stat` with its own timeout derived from the request context, so one
|
||||
slow resource can no longer consume the deadline shared by all the other shares. The bound
|
||||
is configurable via `GRAPH_RECEIVED_SHARES_STAT_TIMEOUT` (default `10s`);
|
||||
- returns a degraded drive item built from the data already present in the share record
|
||||
(ids, permissions, grantees, timestamps, mountpoint name) when the resource cannot be statted
|
||||
due to a transient or indeterminate failure (timeout, slow or unavailable downstream), so the
|
||||
share stays visible instead of intermittently disappearing. A genuinely missing resource or
|
||||
revoked access (for example after the sharer was deleted) still drops the share, as before;
|
||||
- logs the dropped/degraded shares at warning level with a per-request count for operator
|
||||
visibility.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12430
|
||||
@@ -1,12 +0,0 @@
|
||||
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
|
||||
@@ -1,14 +0,0 @@
|
||||
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
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Bump dependencies
|
||||
|
||||
Bumped Go and npm dependencies to address security findings:
|
||||
|
||||
- `github.com/go-git/go-git/v5` v5.19.1 → v5.19.2 (CVE-2026-71556)
|
||||
- `nanoid` 3.3.15 → 3.3.17 and 5.1.5 → 5.1.16 (npm, via pnpm overrides; CVE-2026-67213, CVE-2026-67214)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12766
|
||||
@@ -1,15 +0,0 @@
|
||||
Enhancement: Add `ocis shares clean-corrupt-public-shares` maintenance command
|
||||
|
||||
A single public-share entry with a nil/empty `resource_id` makes the json
|
||||
public-share manager's `ListPublicShares` panic with a nil-pointer dereference.
|
||||
Because the manager reads all entries and filters them in memory, that one bad
|
||||
entry poisons the endpoint for the whole tenant: every Members/permissions panel
|
||||
load and every password-protected link creation fails.
|
||||
|
||||
The new `ocis shares clean-corrupt-public-shares` command detects and removes
|
||||
such corrupt entries. It reads the raw persistence (so it never triggers the
|
||||
panic itself) and writes back through the same metadata storage path the manager
|
||||
uses, recomputing blob size, mtime and etag automatically. It defaults to
|
||||
`--dry-run` and supports the `jsoncs3` and `json` public-share drivers.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12494
|
||||
@@ -1,7 +0,0 @@
|
||||
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
|
||||
@@ -1,7 +0,0 @@
|
||||
Enhancement: Add configurable software license and help page links
|
||||
|
||||
Themes can now set `common.urls.softwareLicense` and `common.urls.helpPage` to
|
||||
surface deployment-specific legal/help links in the web UI. When set, links
|
||||
appear in a new "Help" menu in the topbar and on the account page.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12528
|
||||
@@ -1,10 +0,0 @@
|
||||
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
|
||||
@@ -1,11 +0,0 @@
|
||||
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
|
||||
@@ -1,5 +0,0 @@
|
||||
Security: Block password and account changes via PATCH /graph/v1.0/me
|
||||
|
||||
`PATCH /graph/v1.0/me` no longer accepts `passwordProfile`, `accountEnabled`, or `onPremisesSamAccountName`. Use `POST /graph/v1.0/me/changePassword` to change your password.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12493
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Replace embedded IDP React SPA with server-rendered login page
|
||||
|
||||
Replaced the embedded IDP login's React SPA (pnpm, 21k LOC) with server-rendered HTML keeping theming and localiation support. The login page now works with minimal JavaScript, loads faster, and has a much smaller dependecy vulnerability surface.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12086
|
||||
@@ -1,10 +0,0 @@
|
||||
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
|
||||
@@ -1,19 +0,0 @@
|
||||
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/12688
|
||||
@@ -1,14 +0,0 @@
|
||||
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
|
||||
@@ -1,16 +0,0 @@
|
||||
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
|
||||
@@ -1,7 +0,0 @@
|
||||
Enhancement: Configurable logo click-through URL
|
||||
|
||||
We've added an optional `href` field to the `logo` theme configuration. When set,
|
||||
clicking the topbar logo navigates to the configured URL instead of the default
|
||||
files navigation. When not set, the existing default behavior is unchanged.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12529
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Harden OCM create share
|
||||
|
||||
`CreateShare` now validates the provider via `GetInfoByDomain` and verifies an accepted invite relationship via `GetAcceptedUser` before creating the share.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12496
|
||||
@@ -1,7 +0,0 @@
|
||||
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
|
||||
@@ -1,49 +0,0 @@
|
||||
Bugfix: Allow renaming, moving and editing files with the editor-lite role
|
||||
|
||||
We've fixed the editor-lite role ("Can edit" in the web UI). Sharees can now
|
||||
rename a file inside a shared folder, move it and change its contents. Before,
|
||||
they could only upload new files, and the web UI offered neither the rename nor
|
||||
the overwrite action.
|
||||
|
||||
The role has always granted Move, but the persisted ACE format had no flag of
|
||||
its own for it: Move shared the "w" flag with InitiateFileUpload and was only
|
||||
recovered on read by assuming a grant may move whenever it may write, download
|
||||
and delete. The editor-lite role has no delete, so its Move was dropped as soon
|
||||
as the grant was written to disk, `Decomposedfs.Move` then refused the rename
|
||||
and propfind reported the grant as a create-only uploader. Move is now
|
||||
persisted under its own "m" flag in `pkg/storage/utils/ace/ace.go`; grants
|
||||
written before that flag existed carry no "m" and keep using the old inference.
|
||||
On top of that, `RoleFromResourcePermissions` in `pkg/conversions/role.go` did
|
||||
not treat Move as write, so the WebDAV permissions string lacked "NV" (rename)
|
||||
and "W" (overwrite) even for a grant that had kept its Move. Move now implies
|
||||
write for grants that do not carry delete, which leaves the OCS permissions of
|
||||
the deletable roles unchanged.
|
||||
|
||||
Note: the effective permission set of the editor-lite role changed. The CS3
|
||||
resource permissions returned by `NewEditorLiteRole` are unchanged - Stat,
|
||||
GetPath, ListContainer, InitiateFileDownload, InitiateFileUpload,
|
||||
CreateContainer and Move, still no Delete and no ListFileVersions - but a grant
|
||||
created from it is now stored as "txrwma" instead of "txrwa", reports the OCS
|
||||
permissions 6 (create + write) instead of 4 (create), and reports the WebDAV
|
||||
permissions "SNVW" on a shared file and "SNVCK" on a shared folder instead of
|
||||
"S" and "SCK".
|
||||
|
||||
The same "m" flag also restores Move for any other non-deletable grant that
|
||||
carries it. In particular the Uploader share role is affected: like editor-lite
|
||||
it is a create grant without delete, so its Move used to be dropped on
|
||||
write-back and is now preserved. This is why the previously expected-to-fail
|
||||
"sharee moves a file within a shared folder" scenarios for the Uploader role now
|
||||
pass, and the matching entries were removed from
|
||||
`tests/acceptance/expected-failures-API-on-OCIS-storage.md`.
|
||||
|
||||
This fix DOES NOT include a migration of stored grants. Shares created with
|
||||
that role before this update keep their old grant on disk, which carries no "m"
|
||||
flag. For them, Move stays unset and the WebDAV permissions string stays
|
||||
unchanged, while the share record itself has always kept Move and therefore
|
||||
already reports the new OCS permissions. Only shares created with that role
|
||||
AFTER THE UPDATE get the new permission set. Re-creating an affected share, or
|
||||
updating its role, re-writes the grant and picks up the fix.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12721
|
||||
https://github.com/owncloud/reva/pull/689
|
||||
https://github.com/owncloud/ocis/issues/11977
|
||||
@@ -1,18 +0,0 @@
|
||||
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/12673
|
||||
@@ -1,14 +0,0 @@
|
||||
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/12727
|
||||
https://github.com/owncloud/ocis/pull/12431
|
||||
https://github.com/owncloud/ocis/pull/12411
|
||||
@@ -1,12 +0,0 @@
|
||||
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
|
||||
@@ -1,15 +0,0 @@
|
||||
Bugfix: Show vault-shared mountpoints in the vault drive list
|
||||
|
||||
Shares of vault resources are mountpoints hosted on the shares storage provider
|
||||
that grant into the vault storage provider. When listing spaces with the vault
|
||||
`storage_id`, the storage registry skipped the shares provider entirely, so the
|
||||
vault share mountpoint was missing from the vault drive list while still showing
|
||||
up in the regular drive list.
|
||||
|
||||
The registry now also queries the shares provider when the vault storage id is
|
||||
requested and segregates share mountpoints by their `grantStorageID`, so a vault
|
||||
share only appears in the vault drive list and a regular share only in the
|
||||
regular one.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12656
|
||||
https://github.com/owncloud/reva/pull/670
|
||||
@@ -1,18 +0,0 @@
|
||||
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/12667
|
||||
@@ -1,16 +0,0 @@
|
||||
Enhancement: Allow disabling the last sign-in timestamp update
|
||||
|
||||
The graph service maintains the 'oCLastSignInTimestamp' LDAP attribute of a user
|
||||
on every sign-in (when the LDAP identity backend has write access). This can
|
||||
cause a significant amount of LDAP write load, especially when the proxy's OIDC
|
||||
userinfo cache has a short TTL and sign-in events are emitted frequently.
|
||||
|
||||
A new setting 'OCIS_LDAP_UPDATE_LAST_SIGNIN_DATE' / 'GRAPH_LDAP_UPDATE_LAST_SIGNIN_DATE'
|
||||
(default 'true') allows disabling the update of the last sign-in timestamp
|
||||
without having to disable all LDAP writes ('OCIS_LDAP_SERVER_WRITE_ENABLED') or
|
||||
the graph events consumer. When set to 'false' the graph service no longer
|
||||
listens for 'UserSignedIn' events and does not write the 'oCLastSignInTimestamp'
|
||||
attribute.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12522
|
||||
https://github.com/owncloud/ocis/issues/9942
|
||||
@@ -1,13 +0,0 @@
|
||||
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/12581
|
||||
Loaded 100 of 8332 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user