Compare commits
118
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7f9cac8ce | ||
|
|
01b441f639 | ||
|
|
dbfd742112 | ||
|
|
8cc1953d55 | ||
|
|
ad3b71e0d7 | ||
|
|
aca3df1078 | ||
|
|
686aa52fe7 | ||
|
|
db40ce2a02 | ||
|
|
f6236debaf | ||
|
|
13bb950ee3 | ||
|
|
29b620a4fb | ||
|
|
17ae8fbac0 | ||
|
|
8ac40ec030 | ||
|
|
cde8eda368 | ||
|
|
ffabec20f8 | ||
|
|
3829f5cfc6 | ||
|
|
8cbe43b3bb | ||
|
|
fcbfecf376 | ||
|
|
e3916a06ea | ||
|
|
6172ce5495 | ||
|
|
4282e66a6d | ||
|
|
d725a6f499 | ||
|
|
fb07886cd0 | ||
|
|
3b5acbf9f7 | ||
|
|
cdb3ba2f67 | ||
|
|
359b145c9d | ||
|
|
9d9a03747c | ||
|
|
6950f47885 | ||
|
|
f28552c629 | ||
|
|
67deb75f7d | ||
|
|
8951c623ae | ||
|
|
5344650298 | ||
|
|
8481d02fa5 | ||
|
|
845ed39133 | ||
|
|
70d99100a3 | ||
|
|
b0d2d53538 | ||
|
|
9def991c40 | ||
|
|
00449d3104 | ||
|
|
c099c8a356 | ||
|
|
b6dea02d1a | ||
|
|
0b9e2d9d58 | ||
|
|
e23737705e | ||
|
|
84ea676e1b | ||
|
|
2617422fd8 | ||
|
|
af145c25de | ||
|
|
28a04cc6af | ||
|
|
62ef3cce3f | ||
|
|
a7f34f338f | ||
|
|
c9f2a39eb7 | ||
|
|
168133f1f2 | ||
|
|
5b29a68fe2 | ||
|
|
1189d16de8 | ||
|
|
52424f5bfb | ||
|
|
b6b15955f0 | ||
|
|
9be36f0aee | ||
|
|
c552176388 | ||
|
|
f35c67f653 | ||
|
|
19ef1df702 | ||
|
|
30827044c0 | ||
|
|
93377d96c0 | ||
|
|
a984af216d | ||
|
|
39bb128c91 | ||
|
|
da7fd073dc | ||
|
|
c04811347f | ||
|
|
9bc0fec20f | ||
|
|
b8afa41bfe | ||
|
|
aa9a9f5518 | ||
|
|
8ebf837037 | ||
|
|
3b36d53d32 | ||
|
|
cd4927d809 | ||
|
|
a5748fe4ca | ||
|
|
5e96cbc17e | ||
|
|
e425d3ac23 | ||
|
|
919b363406 | ||
|
|
bb5c6c2c92 | ||
|
|
b55ed779f3 | ||
|
|
b2ec35e817 | ||
|
|
75426a75bf | ||
|
|
01bb23fa83 | ||
|
|
5586e75e40 | ||
|
|
dc754e6732 | ||
|
|
b88c93d0c6 | ||
|
|
a25c3d6f3c | ||
|
|
1bdcf0ac51 | ||
|
|
6c0e5a11c2 | ||
|
|
bd39e43995 | ||
|
|
c745579032 | ||
|
|
89743ee287 | ||
|
|
3c663bcf95 | ||
|
|
b1a3042019 | ||
|
|
b15815f2ca | ||
|
|
77e5b9840f | ||
|
|
fd6c7b7139 | ||
|
|
bb1a31623b | ||
|
|
462165a5b6 | ||
|
|
8ad90c49ce | ||
|
|
0d069f907b | ||
|
|
2702ca3650 | ||
|
|
170dfb1c7d | ||
|
|
b22b0ad91e | ||
|
|
226be8f259 | ||
|
|
6bede1a396 | ||
|
|
8b783a2deb | ||
|
|
09c5335fd7 | ||
|
|
ec115d8a01 | ||
|
|
2c36f90403 | ||
|
|
ddf573e745 | ||
|
|
85c60a73fa | ||
|
|
de492f72de | ||
|
|
145602769a | ||
|
|
4adc095b17 | ||
|
|
205817edcc | ||
|
|
b090c82d3c | ||
|
|
6049f6cb25 | ||
|
|
e9dbafafa4 | ||
|
|
57fae291b7 | ||
|
|
9c2da587da | ||
|
|
f2c73cdc45 |
No files matched your search
+3
-1
@@ -1,5 +1,7 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.25.10
|
||||
go 1.24
|
||||
|
||||
toolchain go1.24.0
|
||||
|
||||
require github.com/vektra/mockery/v2 v2.53.5
|
||||
@@ -0,0 +1,3 @@
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=39d6215da6daa184cd2365966915a659bdbd2c8b
|
||||
WEB_BRANCH=stable-12.3
|
||||
+3993
File diff suppressed because it is too large.
Load diff
@@ -1,3 +1,4 @@
|
||||
services/settings/ @lukashirt
|
||||
services/web/ @lukashirt
|
||||
.drone.star @kobergj @phil-davis @individual-it
|
||||
assets/End-User-License-Agreement-for-ownCloud-Infinite-Scale.pdf @kobergj @hodyroff
|
||||
+9
-60
@@ -1,73 +1,22 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: gomod
|
||||
- package-ecosystem: "gomod"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
interval: "daily"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: composer
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
|
||||
- package-ecosystem: npm
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/services/idp"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: docker
|
||||
- package-ecosystem: "docker"
|
||||
directories:
|
||||
- "/"
|
||||
- "/ocis/docker"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: github-actions
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
update-types:
|
||||
- minor
|
||||
- patch
|
||||
@@ -8,6 +8,7 @@
|
||||
* [ ] DEV/QA: Check new strings and align with clients
|
||||
* [ ] DEV/DOCS: Create list of pending docs tasks
|
||||
* [ ] DEV: Create branch `release-x.x.x-rc.x` -> CODEFREEZE
|
||||
* [ ] DEV: specify if it is a production release in [.drone.star](https://github.com/owncloud/ocis/blob/b4cf38fa1ba180c58519026dfe762b7c45695466/.drone.star#L8) (if needed)
|
||||
* [ ] DEV: bump ocis version in necessary files
|
||||
* [ ] DEV: `changelog/CHANGELOG.tmpl`
|
||||
* [ ] DEV: `ocis-pkg/version/version.go`
|
||||
|
||||
@@ -5,60 +5,17 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
detect-changes:
|
||||
name: detect-changes
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
docs-only: ${{ steps.check.outputs.docs-only }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check if changes are docs-only
|
||||
id: check
|
||||
run: |
|
||||
# Always run full CI on workflow_dispatch, tags, or when PR title contains [full-ci]
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||
echo "docs-only=false" >> "$GITHUB_OUTPUT"
|
||||
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
|
||||
fi
|
||||
|
||||
# Get changed files between the PR base and head
|
||||
CHANGED_FILES=$(git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}" 2>/dev/null || git diff --name-only HEAD~1)
|
||||
|
||||
# Patterns that are considered documentation/non-code changes
|
||||
DOCS_ONLY=true
|
||||
while IFS= read -r file; do
|
||||
case "$file" in
|
||||
.github/*|.vscode/*|changelog/*|docs/*|deployments/*) ;;
|
||||
CHANGELOG.md|CONTRIBUTING.md|LICENSE|README.md) ;;
|
||||
*) DOCS_ONLY=false; break ;;
|
||||
esac
|
||||
done <<< "$CHANGED_FILES"
|
||||
|
||||
echo "docs-only=$DOCS_ONLY" >> "$GITHUB_OUTPUT"
|
||||
echo "Changed files docs-only: $DOCS_ONLY"
|
||||
|
||||
build-and-test:
|
||||
name: build-and-test
|
||||
needs: [detect-changes]
|
||||
if: needs.detect-changes.outputs.docs-only != 'true'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -111,15 +68,6 @@ jobs:
|
||||
|
||||
exit $FAILED
|
||||
|
||||
- name: Trivy scan
|
||||
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.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.
|
||||
@@ -200,12 +148,12 @@ jobs:
|
||||
- apiCollaboration
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -220,7 +168,7 @@ jobs:
|
||||
|
||||
- name: Cache libcurl 8.12.0
|
||||
id: cache-libcurl
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
||||
with:
|
||||
path: /opt/libcurl
|
||||
key: libcurl-8.12.0-${{ runner.os }}
|
||||
@@ -273,15 +221,15 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
suite:
|
||||
- cliCommands,apiServiceAvailability # grouped: both need ClamAV + email services
|
||||
- cliCommands,apiServiceAvailability # grouped like drone; needs ClamAV + email
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -308,12 +256,12 @@ jobs:
|
||||
- apiGraphUser,apiGraph,apiGraphGroup
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -348,12 +296,12 @@ jobs:
|
||||
- "coreApiWebdavMove1,coreApiWebdavPreviews,coreApiWebdavUpload,coreApiWebdavUploadTUS"
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -368,7 +316,7 @@ jobs:
|
||||
|
||||
- name: Cache libcurl 8.12.0
|
||||
id: cache-libcurl
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
||||
with:
|
||||
path: /opt/libcurl
|
||||
key: libcurl-8.12.0-${{ runner.os }}
|
||||
@@ -426,35 +374,26 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- suite: part-1
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 1"
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 1"
|
||||
- suite: part-2
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 2"
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 2"
|
||||
- suite: part-3
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 3"
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 3"
|
||||
- suite: part-4
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc --run-part 4"
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 4"
|
||||
- suite: search
|
||||
args: "--type playwright --suites search"
|
||||
args: "--suites search"
|
||||
tika: true
|
||||
- suite: keycloak
|
||||
args: "--type playwright --suites journeys,keycloak"
|
||||
args: "--suites journeys,keycloak"
|
||||
keycloak: true
|
||||
- suite: mfa
|
||||
args: "--type playwright --suites mfa"
|
||||
mfa: true
|
||||
- suite: oidc
|
||||
args: "--type playwright specs/oidc/refreshToken.spec.ts"
|
||||
oidc: true
|
||||
- suite: oidc-iframe
|
||||
args: "--type playwright specs/oidc/iframeTokenRenewal.spec.ts"
|
||||
oidc_iframe: true
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
# 24.16.0 breaks playwright install (yauzl zip extraction hangs); pin to last known good.
|
||||
# https://github.com/microsoft/playwright/issues/40724
|
||||
@@ -469,10 +408,10 @@ jobs:
|
||||
CHROMEDRIVER_SKIP_DOWNLOAD: "true"
|
||||
|
||||
- name: Cache Playwright Chromium
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: playwright-chromium-${{ hashFiles('ci.env') }}
|
||||
key: playwright-chromium-${{ hashFiles('.drone.env') }}
|
||||
|
||||
# --- Tika (search suite only) ---
|
||||
- name: Start Tika
|
||||
@@ -482,9 +421,9 @@ jobs:
|
||||
timeout 120 bash -c 'until curl -sf http://localhost:9998; do sleep 2; done'
|
||||
echo "tika ready."
|
||||
|
||||
# --- Keycloak (keycloak and mfa suites) ---
|
||||
# --- Keycloak (keycloak suite only) ---
|
||||
- name: Generate Keycloak certs
|
||||
if: matrix.keycloak == true || matrix.mfa == true
|
||||
if: matrix.keycloak == true
|
||||
run: |
|
||||
mkdir -p keycloak-certs
|
||||
openssl req -x509 -newkey rsa:2048 \
|
||||
@@ -494,7 +433,7 @@ jobs:
|
||||
chmod -R 777 keycloak-certs
|
||||
|
||||
- name: Start Postgres
|
||||
if: matrix.keycloak == true || matrix.mfa == true
|
||||
if: matrix.keycloak == true
|
||||
run: |
|
||||
docker run -d --name postgres --network host \
|
||||
-e POSTGRES_DB=keycloak \
|
||||
@@ -504,19 +443,11 @@ 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
|
||||
if: matrix.keycloak == 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" ]]; then
|
||||
REALM_FILE=tests/config/ci/ocis-mfa-ci-realm.dist.json
|
||||
else
|
||||
REALM_FILE=tests/config/ci/ocis-ci-realm.dist.json
|
||||
fi
|
||||
sed -e 's|https://ocis-server:9200|https://127.0.0.1:9200|g' \
|
||||
-e 's|https://localhost:9200|https://127.0.0.1:9200|g' \
|
||||
"$REALM_FILE" > /tmp/ocis-realm.json
|
||||
# Patch realm: replace Drone Docker hostname with localhost IP
|
||||
sed 's|https://ocis-server:9200|https://127.0.0.1:9200|g' \
|
||||
tests/config/drone/ocis-ci-realm.dist.json > /tmp/ocis-realm.json
|
||||
docker run -d --name keycloak --network host \
|
||||
-e OCIS_DOMAIN=https://127.0.0.1:9200 \
|
||||
-e KC_HOSTNAME=localhost \
|
||||
@@ -545,9 +476,6 @@ jobs:
|
||||
env:
|
||||
TIKA_NEEDED: ${{ matrix.tika == true && 'true' || 'false' }}
|
||||
KEYCLOAK_NEEDED: ${{ matrix.keycloak == true && 'true' || 'false' }}
|
||||
MFA_NEEDED: ${{ matrix.mfa == true && 'true' || 'false' }}
|
||||
OIDC_NEEDED: ${{ matrix.oidc == true && 'true' || 'false' }}
|
||||
OIDC_IFRAME_NEEDED: ${{ matrix.oidc_iframe == true && 'true' || 'false' }}
|
||||
|
||||
litmus:
|
||||
name: litmus
|
||||
@@ -555,7 +483,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
@@ -568,7 +496,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
@@ -581,7 +509,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
@@ -594,7 +522,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
@@ -664,17 +592,12 @@ jobs:
|
||||
run: tests/ldap-smoke-distributed/run.sh
|
||||
|
||||
all-acceptance-tests:
|
||||
needs: [detect-changes, local-api-tests, cli-tests, core-api-tests, litmus, cs3api, wopi-builtin, wopi-cs3, e2e-tests, ldap-pool-tests, external-ldap-tests, external-ldap-distributed-tests]
|
||||
needs: [local-api-tests, cli-tests, ldap-pool-tests, core-api-tests, litmus, cs3api, wopi-builtin, wopi-cs3, e2e-tests, external-ldap-tests, external-ldap-distributed-tests]
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check all jobs passed
|
||||
run: |
|
||||
# If docs-only, all test jobs are expected to be skipped — that's a pass
|
||||
if [[ "${{ needs.detect-changes.outputs.docs-only }}" == "true" ]]; then
|
||||
echo "Docs-only change — skipping tests is expected."
|
||||
exit 0
|
||||
fi
|
||||
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
@@ -1,79 +0,0 @@
|
||||
name: test deployment example
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 0 * * *" # every day at 00:00 UTC
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- example: ocis_full
|
||||
urls: "https://ocis.owncloud.test"
|
||||
- example: ocis_ldap
|
||||
urls: "https://ocis.owncloud.test https://ldap.owncloud.test"
|
||||
- example: ocis_multi
|
||||
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"
|
||||
- example: ocis_keycloak
|
||||
urls: "https://ocis.owncloud.test https://keycloak.owncloud.test"
|
||||
|
||||
steps:
|
||||
- name: Checkout ocis repo
|
||||
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 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 }} ==="
|
||||
docker compose up -d
|
||||
|
||||
- name: Wait for services
|
||||
run: |
|
||||
set -e
|
||||
|
||||
URLS="${{ matrix.urls }}"
|
||||
|
||||
for url in $URLS; do
|
||||
echo "=== Waiting for $url ==="
|
||||
|
||||
end=$((SECONDS+150))
|
||||
ready=false
|
||||
|
||||
while [ $SECONDS -lt $end ]; do
|
||||
echo "Trying $url"
|
||||
if curl -kfsS --max-time 5 "$url" > /dev/null; then
|
||||
echo "✅ $url is ready"
|
||||
ready=true
|
||||
break
|
||||
fi
|
||||
echo "⏳ Not ready yet, retrying in 5s..."
|
||||
sleep 5
|
||||
done
|
||||
|
||||
if [ "$ready" = false ]; then
|
||||
echo "❌ $url never became ready"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Tear down
|
||||
if: always()
|
||||
working-directory: deployments/examples/${{ matrix.example }}
|
||||
run: docker compose down -v
|
||||
@@ -2,18 +2,14 @@ name: k6 Load Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
types: [opened, synchronize, reopened, edited]
|
||||
schedule:
|
||||
- cron: '0 1 * * *'
|
||||
- cron: '0 4 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: k6-load-test-server
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
k6-load-test:
|
||||
name: k6-load-test
|
||||
@@ -41,14 +37,13 @@ jobs:
|
||||
run: apk add --no-cache openssh-client sshpass
|
||||
|
||||
- name: Run k6 load tests
|
||||
if: ${{ !cancelled() }}
|
||||
run: sh tests/config/drone/run_k6_tests.sh
|
||||
|
||||
- name: Retrieve OCIS logs
|
||||
if: ${{ !cancelled() }}
|
||||
if: always()
|
||||
run: sh tests/config/drone/run_k6_tests.sh --ocis-log
|
||||
|
||||
- name: Show Grafana dashboard link
|
||||
if: ${{ !cancelled() }}
|
||||
if: always()
|
||||
run: |
|
||||
echo "Grafana Dashboard: https://grafana.k6.infra.owncloud.works"
|
||||
+105
-149
@@ -3,74 +3,82 @@ name: Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
- 'v*'
|
||||
branches:
|
||||
- 'feat/release-pipeline**'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version_override:
|
||||
description: "Version (required, e.g. 8.1.0-rc.3)"
|
||||
description: 'Version override (leave empty to auto-detect from latest tag)'
|
||||
type: string
|
||||
required: true
|
||||
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"
|
||||
NODE_VERSION: '24'
|
||||
PNPM_VERSION: '10.28.1'
|
||||
GOLANG_BUILD_IMAGE: 'golang:1.25.13-alpine3.23@sha256:42fc3368d1c50170a452f2bf4a1dfd292a065870c3f258d799aad4316671cb69'
|
||||
|
||||
jobs:
|
||||
determine-release-type:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
version: ${{ steps.info.outputs.version }}
|
||||
is_production: ${{ steps.info.outputs.is_production }}
|
||||
version: ${{ steps.info.outputs.version }}
|
||||
is_prerelease: ${{ steps.info.outputs.is_prerelease }}
|
||||
docker_repos: ${{ steps.info.outputs.docker_repos }}
|
||||
steps:
|
||||
- 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
|
||||
run: |
|
||||
next_dev() {
|
||||
# If latest tag is already a pre-release (e.g. v8.0.2-dev.1), reuse its base
|
||||
# version (8.0.2-dev.1) so repeated branch runs don't bump the patch counter.
|
||||
# If latest tag is a production release (e.g. v8.0.1), increment patch (8.0.2-dev.1).
|
||||
local tag=$(git tag --sort=-version:refname | grep -m1 '^v' || echo "v0.0.0")
|
||||
local ver="${tag#v}"
|
||||
if [[ "$ver" == *"-"* ]]; then
|
||||
echo "${ver%%-*}-dev.1"
|
||||
else
|
||||
IFS='.' read -r M m p <<< "$ver"
|
||||
echo "${M}.${m}.$((p + 1))-dev.1"
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||
VERSION="${{ inputs.version_override }}"
|
||||
[[ -z "$VERSION" ]] && VERSION=$(next_dev)
|
||||
elif [[ "${{ github.ref_type }}" == "branch" ]]; then
|
||||
VERSION=$(next_dev)
|
||||
else
|
||||
VERSION="${GITHUB_REF#refs/tags/v}"
|
||||
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
|
||||
needs: [determine-release-type]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- run: npm install --silent -g yarn npx --force
|
||||
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v4
|
||||
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
|
||||
with:
|
||||
version: ${{ env.PNPM_VERSION }}
|
||||
- run: pnpm config set store-dir ./.pnpm-store && make ci-node-generate
|
||||
env:
|
||||
CHROMEDRIVER_SKIP_DOWNLOAD: "true"
|
||||
CHROMEDRIVER_SKIP_DOWNLOAD: 'true'
|
||||
- run: make ci-go-generate
|
||||
env:
|
||||
BUF_TOKEN: ${{ secrets.BUF_API_TOKEN }}
|
||||
@@ -78,7 +86,7 @@ jobs:
|
||||
run: |
|
||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
||||
sed -i "s/LatestTag = \".*\"/LatestTag = \"$VERSION\"/" ocis-pkg/version/version.go
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: |
|
||||
@@ -86,26 +94,23 @@ jobs:
|
||||
!.git
|
||||
retention-days: 1
|
||||
|
||||
# Builds the release image locally and runs the Trivy security gate against it.
|
||||
# Image publishing to Docker Hub happens in a separate repository; this job only
|
||||
# builds (load, no push) so the vulnerability gate still blocks a bad release.
|
||||
docker-build:
|
||||
if: false
|
||||
name: docker-build (${{ matrix.arch }}, ${{ matrix.repo }})
|
||||
name: docker-build (${{ matrix.arch }})
|
||||
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
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
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:
|
||||
@@ -123,10 +128,22 @@ jobs:
|
||||
- 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
|
||||
"owncloud/ocis:${VERSION}-linux-${ARCH}" >> $GITHUB_OUTPUT
|
||||
- id: build
|
||||
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.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@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
continue-on-error: true
|
||||
@@ -145,82 +162,6 @@ jobs:
|
||||
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@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.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:
|
||||
if: false
|
||||
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:
|
||||
if: false
|
||||
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 }})
|
||||
@@ -231,11 +172,11 @@ jobs:
|
||||
os: [linux, darwin]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
@@ -244,7 +185,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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: binaries-${{ matrix.os }}
|
||||
path: ocis/dist/release/*
|
||||
@@ -267,21 +208,21 @@ jobs:
|
||||
needs: [determine-release-type, generate-code]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force
|
||||
- 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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: third-party-licenses.tar.gz
|
||||
@@ -294,25 +235,17 @@ jobs:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
||||
# For prereleases (e.g. 8.1.0-rc.2), pass the full version so calens finds
|
||||
# changelog/8.1.0-rc.2_*/ rather than falling through to the missing 8.1.0_*/ dir.
|
||||
if [[ "$VERSION" == *-* ]]; then
|
||||
CHANGELOG_VERSION="$VERSION"
|
||||
else
|
||||
CHANGELOG_VERSION=$(echo "$VERSION" | cut -d'-' -f1)
|
||||
fi
|
||||
make changelog CHANGELOG_VERSION="$CHANGELOG_VERSION"
|
||||
make changelog CHANGELOG_VERSION=$(echo "${{ needs.determine-release-type.outputs.version }}" | cut -d'-' -f1)
|
||||
# calens produces empty output when no versioned changelog directory exists (e.g. dev builds).
|
||||
# Fall back to a pointer to the unreleased entries.
|
||||
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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: changelog
|
||||
path: ocis/dist/CHANGELOG.md
|
||||
@@ -320,32 +253,25 @@ jobs:
|
||||
|
||||
create-github-release:
|
||||
runs-on: ubuntu-latest
|
||||
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-build]
|
||||
steps:
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: changelog
|
||||
path: .
|
||||
- uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
|
||||
- uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
|
||||
with:
|
||||
tag_name: v${{ needs.determine-release-type.outputs.version }}
|
||||
name: v${{ needs.determine-release-type.outputs.version }}
|
||||
@@ -358,6 +284,7 @@ jobs:
|
||||
needs:
|
||||
- determine-release-type
|
||||
- generate-code
|
||||
- docker-build
|
||||
- build-binaries
|
||||
- security-scan-trivy
|
||||
- license-check
|
||||
@@ -365,15 +292,15 @@ jobs:
|
||||
- create-github-release
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
@@ -384,3 +311,32 @@ jobs:
|
||||
--github-release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
needs:
|
||||
- determine-release-type
|
||||
- generate-code
|
||||
- docker-build
|
||||
- build-binaries
|
||||
- security-scan-trivy
|
||||
- license-check
|
||||
- generate-changelog
|
||||
- create-github-release
|
||||
- audit-release
|
||||
steps:
|
||||
- run: |
|
||||
[[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]] \
|
||||
&& STATUS="FAILURE" || STATUS="SUCCESS"
|
||||
[[ "${{ github.event_name }}" == "schedule" ]] \
|
||||
&& SOURCE="nightly-${{ github.ref_name }}" \
|
||||
|| SOURCE="${{ github.ref_type == 'tag' && format('tag {0}', github.ref_name) || github.ref_name }}"
|
||||
SHA="${{ github.sha }}"
|
||||
MSG="${STATUS} [${{ github.repository }}#${SHA:0:8}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) (${SOURCE}) by **${{ github.triggering_actor }}**"
|
||||
[[ -z "${{ secrets.MATRIX_HOMESERVER }}" ]] && { echo "MATRIX_HOMESERVER not set, skipping notification"; exit 0; }
|
||||
curl -sf -X PUT \
|
||||
-H "Authorization: Bearer ${{ secrets.MATRIX_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"msgtype\":\"m.text\",\"body\":\"${MSG}\"}" \
|
||||
"${{ secrets.MATRIX_HOMESERVER }}/_matrix/client/r0/rooms/${{ secrets.MATRIX_ROOMID }}/send/m.room.message/$(date +%s)"
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
name: Remove Stale Branches
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: fpicalausa/remove-stale-branches@9b829bc2975ade0c61e64e9613def53ec0732440 # v2.6.1
|
||||
- uses: fpicalausa/remove-stale-branches@v1.6.0
|
||||
with:
|
||||
ignore-unknown-authors: true
|
||||
default-recipient: "kobergj"
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
name: Translation Sync
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 2 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
uses: owncloud/reusable-workflows/.github/workflows/translation-sync.yml@main
|
||||
with:
|
||||
mode: make
|
||||
reviewers: kobergj,mmattel # individual users
|
||||
# team_reviewers: owncloud/ocis-team # and/or a GitHub team slug if exists
|
||||
sub_path: .
|
||||
secrets:
|
||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
||||
TRANSLATION_APP_ID: ${{ secrets.TRANSLATION_APP_ID }}
|
||||
TRANSLATION_APP_PRIVATE_KEY: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }}
|
||||
@@ -1,31 +0,0 @@
|
||||
name: Weekly Pipeline Report
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
branches:
|
||||
- feat/ci-report-tool
|
||||
schedule:
|
||||
- cron: "0 8 * * 1" # Every Monday at 8:00 AM UTC
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
generate-report:
|
||||
name: Generate Pipeline Report
|
||||
runs-on: ubuntu-latest
|
||||
container: golang:1.25-alpine
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
|
||||
- name: Run CI Reporter
|
||||
working-directory: tools/ci-reporter
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
GOWORK=off go run ./cmd/list-flaky-tests \
|
||||
--github-token "$GITHUB_TOKEN" \
|
||||
--workflow acceptance-tests.yml \
|
||||
--since 4w
|
||||
+2
-2
@@ -45,6 +45,8 @@ vendor-php
|
||||
# QA activity reports
|
||||
tests/qa-activity-report/reports/
|
||||
|
||||
# drone CI is in .drone.star, do not let someone accidentally commit a local .drone.yml
|
||||
.drone.yml
|
||||
|
||||
**/l10n/template.pot
|
||||
|
||||
@@ -62,5 +64,3 @@ go.work.sum
|
||||
.envrc
|
||||
CLAUDE.md
|
||||
.claude/
|
||||
GEMINI.md
|
||||
.agents/
|
||||
@@ -1,104 +1,55 @@
|
||||
#!/bin/bash
|
||||
|
||||
# the following grep will filter out every line containing an `env` annotation
|
||||
# and prints all entries found that are invalid. this is required to see where CI might fail
|
||||
|
||||
RED=$(echo -e "\033[0;31m")
|
||||
GREEN=$(echo -e "\033[0;32m")
|
||||
NORM=$(echo -e "\033[0m")
|
||||
|
||||
# create a here doc function to be printed in case of introductionVersion annotation errors
|
||||
# note that tabs are used intentionally. they are removed by cat but are required to make the code readable.
|
||||
print_introduction_version_examples() {
|
||||
cat <<-EOL
|
||||
${GREEN}Valid examples:${NORM}
|
||||
|
||||
introductionVersion:"pre5.0"
|
||||
introductionVersion:"5.0" deprecationVersion:"7.0.0"
|
||||
introductionVersion:"4.9.3-rc5"
|
||||
introductionVersion:"5.10.100.15"
|
||||
introductionVersion:"0.0"
|
||||
introductionVersion:"release" deprecationVersion:"7.0.0"
|
||||
introductionVersion:"releaseX" deprecationVersion:"7.0.0"
|
||||
introductionVersion:"Addams" deprecationVersion:"7.0.0"
|
||||
|
||||
${RED}Invalid examples:${NORM}
|
||||
|
||||
introductionVersion:""
|
||||
introductionVersion:" "
|
||||
introductionVersion:"-"
|
||||
introductionVersion:"--"
|
||||
introductionVersion:"51.0cheesecake" deprecationVersion:"7.0.0"
|
||||
introductionVersion:"50..0.1-cheesecake"
|
||||
introductionVersion:"15"
|
||||
introductionVersion:"54blueberry"
|
||||
introductionVersion:"5-lasagna"
|
||||
introductionVersion:"5.lasagna-rc1"
|
||||
introductionVersion:"4.9.3rc-5" deprecationVersion:"7.0.0"
|
||||
introductionVersion:"5B-rc1" deprecationVersion:"7.0.0"
|
||||
|
||||
See the envvar life cycle in the dev docs for more details:
|
||||
https://owncloud.dev/services/general-info/envvars/envvar-naming-scopes/
|
||||
EOL
|
||||
}
|
||||
# The following grep will filter out every line containing an `env` annotation
|
||||
# it will ignore every line that already has a valid `introductionVersion` annotation
|
||||
#
|
||||
# valid examples:
|
||||
#
|
||||
# introductionVersion:"pre5.0"
|
||||
# introductionVersion:"5.0"
|
||||
# introductionVersion:"4.9.3-rc5"
|
||||
# introductionVersion:"5.0.1-cheesecake"
|
||||
# introductionVersion:"5.10.100.15"
|
||||
# introductionVersion:"0.0"
|
||||
# introductionVersion:"releaseX" # acceptable alphabetical version
|
||||
# introductionVersion:"Addams" # another alphabetical example
|
||||
#
|
||||
# invalid examples:
|
||||
#
|
||||
# introductionVersion:"5.0cheesecake"
|
||||
# introductionVersion:"5"
|
||||
# introductionVersion:"5blueberry"
|
||||
# introductionVersion:"5-lasagna"
|
||||
# introductionVersion:"4.9.3rc5"
|
||||
|
||||
ERROR=0
|
||||
|
||||
# note that our semver is not fully compliant because we do not have a patch version for new envvars
|
||||
# if you want to test, use the examples above and take the blocks separated by `|` (or)
|
||||
SEMVER_REGEX='(?:introductionVersion:\")(?:(?:[^\dA-Za-z]*?)\"|(?:\d+[A-z]+).*?\"|(?:\d*?\")|(?:\d*?[-\.]+\D.*?\")|(?:\d*?[\.]{2,}.*?\")|(?:\d+\.\d+[A-z]+\")|(?:(?:\d+\.)+\d+[A-z]+.*?\"))'
|
||||
|
||||
# filter out the the following paths
|
||||
EXCLUDE_PATHS='_test.go|vendor/'
|
||||
|
||||
# query the code
|
||||
QI=$(git grep -n "env:" -- '*.go' | grep -v -E "${EXCLUDE_PATHS}" | grep --color=always -P "${SEMVER_REGEX}")
|
||||
|
||||
# count the results found
|
||||
RESULTS_INTRO=$(echo "${QI}"|wc -l)
|
||||
|
||||
# add a new line after each hit, eol identified via "´ which only appears at the end of each envvar string definition
|
||||
QUERY_INTRO=$(echo "${QI}" | sed "s#\"\`#\"\`\n#g")
|
||||
|
||||
echo "Checking introductionVersion annotations"
|
||||
SEMVER_REGEX="([0-9]|[1-9][0-9]*)(\.([0-9]|[1-9][0-9]*)){1,2}(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?"
|
||||
ALPHA_REGEX="[A-Za-z]+[A-Za-z0-9-]*"
|
||||
|
||||
QUERY_INTRO=$(git grep -n "env:" -- '*.go' |grep -v -P "introductionVersion:\"($SEMVER_REGEX|(pre5\\.0)|($ALPHA_REGEX))\""|grep -v "_test.go"|grep -v "vendor/")
|
||||
RESULTS_INTRO=$(echo "${QUERY_INTRO}"|wc -l)
|
||||
if [ "${QUERY_INTRO}" != "" ] && [ "${RESULTS_INTRO}" -gt 0 ]; then
|
||||
echo
|
||||
echo "==============================================================================================="
|
||||
echo ${RED}"The following item(s) contain invalid or missing introductionVersion annotation(s):"${NORM}
|
||||
echo "The following ${RESULTS_INTRO} items contain an invalid or missing introductionVersion annotation:"
|
||||
echo "==============================================================================================="
|
||||
echo
|
||||
echo "$QUERY_INTRO"
|
||||
echo
|
||||
echo ${GREEN}"${RESULTS_INTRO} items found"${NORM}
|
||||
echo
|
||||
print_introduction_version_examples
|
||||
echo
|
||||
ERROR=1
|
||||
else
|
||||
echo "All introductionVersion annotations are valid"
|
||||
echo
|
||||
fi
|
||||
|
||||
# the following grep will filter out every line containing an `env` annotation and
|
||||
# will print each line that has an invalid `desc` annotation.
|
||||
# The following grep will filter out every line containing an `env` annotation
|
||||
# it will ignore every line that has allready a valid `desc` annotation
|
||||
|
||||
# query the code
|
||||
QUERY_DESC=$(git grep -n "env:" -- '*.go' | grep -v -E "${EXCLUDE_PATHS}" | grep -v --color=always -P "desc:\".{10,}\"")
|
||||
QUERY_DESC=$(git grep -n "env:" -- '*.go' |grep -v -P "desc:\".{10,}\""|grep -v "_test.go"|grep -v "vendor/")
|
||||
|
||||
# count the results found
|
||||
RESULTS_DESC=$(echo "${QUERY_DESC}"|wc -l)
|
||||
|
||||
echo "Checking description annotations"
|
||||
|
||||
if [ "${QUERY_DESC}" != "" ] && [ "${RESULTS_DESC}" -gt 0 ]; then
|
||||
echo
|
||||
echo "==============================================================================================="
|
||||
echo ${RED}"The following item(s) contain invalid or missing description annotation:"${NORM}
|
||||
echo "The following ${RESULTS_DESC} items contain an invalid or missing description annotation:"
|
||||
echo "==============================================================================================="
|
||||
echo "$QUERY_DESC"
|
||||
echo
|
||||
echo ${GREEN}"${RESULTS_DESC} items found"${NORM}
|
||||
ERROR=1
|
||||
else
|
||||
echo "All description annotations are valid"
|
||||
|
||||
@@ -114,6 +114,7 @@ debug-linux-docker-amd64: release-dirs
|
||||
-gcflags="all=-N -l" \
|
||||
-tags 'netgo $(TAGS)' \
|
||||
-buildmode=exe \
|
||||
-trimpath \
|
||||
-ldflags '-extldflags "-static" $(DEBUG_LDFLAGS) $(DOCKER_LDFLAGS)' \
|
||||
-o '$(DIST)/binaries/$(EXECUTABLE)-linux-amd64' \
|
||||
./cmd/$(NAME)
|
||||
@@ -125,6 +126,7 @@ debug-linux-docker-arm64: release-dirs
|
||||
-gcflags="all=-N -l" \
|
||||
-tags 'netgo $(TAGS)' \
|
||||
-buildmode=exe \
|
||||
-trimpath \
|
||||
-ldflags '-extldflags "-static" $(DEBUG_LDFLAGS) $(DOCKER_LDFLAGS)' \
|
||||
-o '$(DIST)/binaries/$(EXECUTABLE)-linux-arm64' \
|
||||
./cmd/$(NAME)
|
||||
+182
-805
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -28,10 +28,10 @@ COPY --from=generate /ocis /ocis
|
||||
WORKDIR /ocis/ocis
|
||||
RUN make ci-go-generate build ENABLE_VIPS=true
|
||||
|
||||
FROM alpine:3.23.4
|
||||
FROM alpine:3.23.3
|
||||
|
||||
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" \
|
||||
&& apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community "vips=8.18.5-r0" \
|
||||
&& echo 'hosts: files dns' >| /etc/nsswitch.conf
|
||||
|
||||
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
|
||||
|
||||
@@ -20,6 +20,7 @@ L10N_MODULES := \
|
||||
services/userlog \
|
||||
services/settings
|
||||
|
||||
# if you add a module here please also add it to the .drone.star file
|
||||
OCIS_MODULES = \
|
||||
services/activitylog \
|
||||
services/antivirus \
|
||||
@@ -205,10 +206,7 @@ docs-serve:
|
||||
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.
|
||||
# imitate a full drone run locally to build docs 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:
|
||||
@@ -378,6 +376,9 @@ l10n-write:
|
||||
$(MAKE) -C $$extension l10n-write || exit 1; \
|
||||
done
|
||||
|
||||
.PHONY: ci-format
|
||||
ci-format: $(BUILDIFIER)
|
||||
$(BUILDIFIER) --mode=fix .drone.star
|
||||
|
||||
.PHONY: test-php-style
|
||||
test-php-style: vendor-bin/owncloud-codestyle/vendor vendor-bin/php_codesniffer/vendor
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# ownCloud Infinite Scale
|
||||
|
||||
[](https://app.element.io/#/room/#ocis:matrix.org)
|
||||
[](https://github.com/owncloud/ocis/actions/workflows/acceptance-tests.yml)
|
||||
[](https://drone.owncloud.com/owncloud/ocis)
|
||||
[](https://sonarcloud.io/dashboard?id=owncloud_ocis)
|
||||
[](https://sonarcloud.io/dashboard?id=owncloud_ocis)
|
||||
[](https://sonarcloud.io/summary/new_code?id=owncloud-1_ocis_acceptance-tests)
|
||||
@@ -108,7 +108,7 @@ See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/
|
||||
|
||||
Use this method to build and run an instance with the latest code. This is only recommended for development purposes.
|
||||
|
||||
The minimum go version required is `1.25.10`.\
|
||||
The minimum go version required is `1.25.7`.\
|
||||
Note that you need a C compile environment installed as a prerequisite because some dependencies, like reva, have components that require C-Go libraries and toolchains. The command installing for debian based systems is: `sudo apt install build-essential`.
|
||||
|
||||
To build and run a local instance with demo users:
|
||||
|
||||
@@ -2,5 +2,4 @@ Enhancement: Update to go 1.25
|
||||
|
||||
We have updated go to version 1.25 and alpine to version 3.23.3
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12011
|
||||
https://github.com/owncloud/ocis/pull/12004
|
||||
+4
-3
@@ -1,9 +1,10 @@
|
||||
Bugfix: Education user DELETE no longer 404s while leaving LDAP entry behind
|
||||
Bugfix: Education user delete no longer 404s and leaves the LDAP entry behind
|
||||
|
||||
The education user delete handler used `user.GetExternalID()` for the backend
|
||||
`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/12400
|
||||
https://github.com/owncloud/ocis/pull/12395
|
||||
+1
-1
@@ -15,4 +15,4 @@ 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
|
||||
https://github.com/owncloud/ocis/pull/12401
|
||||
@@ -0,0 +1,6 @@
|
||||
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
|
||||
@@ -0,0 +1,7 @@
|
||||
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
|
||||
File renamed without changes.
@@ -0,0 +1,8 @@
|
||||
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
|
||||
@@ -0,0 +1,7 @@
|
||||
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
-1
@@ -16,4 +16,4 @@ 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/12686
|
||||
https://github.com/owncloud/ocis/pull/12660
|
||||
File renamed without changes.
File renamed without changes.
+2
-1
@@ -9,4 +9,5 @@ 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
|
||||
https://github.com/owncloud/ocis/pull/12635
|
||||
|
||||
+1
-1
@@ -15,4 +15,4 @@ 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/12666
|
||||
https://github.com/owncloud/ocis/pull/12663
|
||||
+2
@@ -8,3 +8,5 @@ users, saturating the LDAP connection pool and causing request timeouts. The
|
||||
LDAP identity backend now caches instance mapper lookups, including negative
|
||||
(not-found) results, for a configurable TTL
|
||||
(`OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL`, default 60s).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12823
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,5 @@
|
||||
Security: Bump Go to 1.25.13
|
||||
|
||||
Fixes a stdlib CVE vulnerability flagged by the release image scan.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12832
|
||||
+1
-1
@@ -3,4 +3,4 @@ Security: Bump golang.org/x/image to v0.45.0
|
||||
Upgraded golang.org/x/image from v0.44.0 to v0.45.0 to address
|
||||
GO-2026-6222: excessive memory allocation during VP8L decoding.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12807
|
||||
https://github.com/owncloud/ocis/pull/12808
|
||||
@@ -1,7 +0,0 @@
|
||||
Enhancement: Add SpaceEditorWithoutVersionsWithoutTrashbin space membership role
|
||||
|
||||
Added a new space membership role "Can edit" (SpaceEditorWithoutVersionsWithoutTrashbin)
|
||||
that grants full editor permissions (create, upload, download, edit, move, delete) on a
|
||||
space without access to file versions or the trashbin.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12261
|
||||
@@ -1,7 +0,0 @@
|
||||
Enhancement: Add VaultMode permission
|
||||
|
||||
Add a new `VaultMode.ReadWriteEnabled` permission that gates the visibility of the
|
||||
vault mode switcher in the web UI. The permission is assigned to the admin,
|
||||
space admin and user roles. The user light role does not receive it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12328
|
||||
@@ -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,7 +0,0 @@
|
||||
Bugfix: Don't index failed uploads
|
||||
|
||||
The search service was indexing uploads even when they failed. This caused
|
||||
unnecessary index operations for incomplete or errored file transfers. The fix
|
||||
skips indexing when the UploadReady event indicates the upload has failed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12121
|
||||
@@ -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 @@
|
||||
Bugfix: Skip indexing of files still in postprocessing
|
||||
|
||||
When the search service re-indexed a space in response to an UploadReady
|
||||
event, the walker visited sibling nodes whose blobs were not yet finalized
|
||||
in the blobstore. Content extraction for those in-flight nodes triggered
|
||||
spurious storage-users error logs (S3 NoSuchKey). The walker now skips
|
||||
nodes marked as processing; they are indexed when their own UploadReady
|
||||
event arrives.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12350
|
||||
@@ -1,8 +0,0 @@
|
||||
Bugfix: Stable order for user search attributes
|
||||
|
||||
The `attributes` field returned from the user search endpoint came back in a
|
||||
random order because `getUsersAttributes` ranged over a Go map. The function
|
||||
now iterates over the configured `UserSearchDisplayedAttributes` slice, so
|
||||
the returned attribute values follow the configured order.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12337
|
||||
@@ -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,5 +0,0 @@
|
||||
Enhancement: Add Keycloak to the ocis_full deployment example
|
||||
|
||||
Added Keycloak to the ocis_full deployment example.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12139
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Add space ID to incoming shares
|
||||
|
||||
Added the `spaceId` to the incoming shares. This is aligning the graph API with the WebDAV API where the clients can use `spaceid` property.
|
||||
This change allows clients to get the space ID directly instead of having to parse the resource ID.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12024
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Add spaceid to REPORT
|
||||
|
||||
Added the `spaceid` to the REPORT responses. This is aligning the `REPORT` method with the `PROPFIND` method.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12028
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Add vault themes
|
||||
|
||||
We've added new themes that are available in the vault. These new themes are intended to make a clear distinction between regular drives and vault.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12329
|
||||
@@ -1,11 +0,0 @@
|
||||
Enhancement: Add AI-assisted development guide
|
||||
|
||||
A new guide has been added to the oCIS documentation demonstrating how to build
|
||||
web extensions using AI-assisted development with Claude AI. The guide covers
|
||||
MCP connector setup, a five-phase development workflow, debugging techniques,
|
||||
and contribution workflows.
|
||||
|
||||
This approach has been validated through real contributions including PR #11912
|
||||
(photo metadata search backend) and web extensions PRs #305 and #306.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11941
|
||||
@@ -1,13 +0,0 @@
|
||||
Enhancement: Bump dependencies
|
||||
|
||||
Bumped Go and npm dependencies, including security fixes:
|
||||
|
||||
- `github.com/owncloud/reva/v2` to `v2.0.0-20260519092700-9da01c6fb954`
|
||||
- `github.com/shamaton/msgpack/v2` v2.4.0 → v2.4.1 (CVE: denial of service)
|
||||
- `filippo.io/edwards25519` v1.1.0 → v1.1.1
|
||||
- `github.com/cloudflare/circl` v1.6.1 → v1.6.3
|
||||
- `github.com/russellhaering/goxmldsig` v1.5.0 → v1.6.0
|
||||
- `postcss`, `fast-uri`, `@babel/plugin-transform-modules-systemjs` (npm, via pnpm lock regen)
|
||||
- GitHub Actions: `actions/upload-artifact` 4→7, `actions/download-artifact` 4→8, `pnpm/action-setup` 5→6, `fpicalausa/remove-stale-branches` 2.4→2.6
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12325
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Bump Web to 12.3.1
|
||||
|
||||
Bugfix [owncloud/web#13553](https://github.com/owncloud/web/pull/13553): Search Text Overalps With Search Icon In The Search Bar
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12015
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.1
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Bump Web to 12.3.3
|
||||
|
||||
- Bugfix [owncloud/web#13638](https://github.com/owncloud/web/pull/13638): Share button not usable when role dropdown text is too long
|
||||
- Bugfix [owncloud/web#13667](https://github.com/owncloud/web/pull/13667): Shared with does not show members
|
||||
- Bugfix [owncloud/web#13680](https://github.com/owncloud/web/pull/13680): Escape strings when returned from server
|
||||
|
||||
https://github.com/owncloud/web/pull/13705
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.3
|
||||
@@ -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,21 +0,0 @@
|
||||
Enhancement: Bump Web to 12.4.0
|
||||
|
||||
- Bugfix [owncloud/web#13363](https://github.com/owncloud/web/issues/13363): Prevent duplicate call for password protected public links
|
||||
- Bugfix [owncloud/web#13578](https://github.com/owncloud/web/pull/13578): Use dynamic viewport units (dvh/dvw) instead of viewport units (vh/vw)
|
||||
- Bugfix [owncloud/web#13610](https://github.com/owncloud/web/pull/13610): Cannot edit public link when name is too long
|
||||
- Bugfix [owncloud/web#13634](https://github.com/owncloud/web/pull/13634): Fix space key selecting wrong resource
|
||||
- Bugfix [owncloud/web#13793](https://github.com/owncloud/web/pull/13793): Fix share invite button being pushed down in space sharing
|
||||
- Bugfix [owncloud/web#13799](https://github.com/owncloud/web/pull/13799): Fix upload confirmation not visible on file drop page
|
||||
- Enhancement [owncloud/web#13545](https://github.com/owncloud/web/pull/13545): Strip WebDAV prefix
|
||||
- Enhancement [owncloud/web#13577](https://github.com/owncloud/web/pull/13577): Use spaceId
|
||||
- Enhancement [owncloud/web#13631](https://github.com/owncloud/web/pull/13631): Add theme mode
|
||||
- Enhancement [owncloud/web#13632](https://github.com/owncloud/web/issues/13632): Support log and conf files in text editor
|
||||
- Enhancement [owncloud/web#13759](https://github.com/owncloud/web/pull/13759): Show correct modal for saveAs and open actions
|
||||
- Enhancement [owncloud/web#13769](https://github.com/owncloud/web/pull/13769): Add vault search separation
|
||||
- Enhancement [owncloud/web#13795](https://github.com/owncloud/web/pull/13795): Add new theme colors
|
||||
- Enhancement [owncloud/web#13802](https://github.com/owncloud/web/pull/13802): Check vault permission
|
||||
- Enhancement [owncloud/web#13803](https://github.com/owncloud/web/pull/13803): MFA session expiry warning
|
||||
- Enhancement [owncloud/web#13803](https://github.com/owncloud/web/pull/13803): Vault-aware breadcrumbs
|
||||
|
||||
https://github.com/owncloud/web/pull/13809
|
||||
https://github.com/owncloud/web/releases/tag/v12.4.0
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Disable public link sharing for vault resources
|
||||
|
||||
The `graph` service now rejects creating, updating, and setting passwords on
|
||||
public links when the target resource lives in the vault storage provider.
|
||||
Requests targeting a vault resource return `400 Bad Request` with the message
|
||||
`public links are not allowed for vault resources`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12321
|
||||
@@ -1,13 +0,0 @@
|
||||
Enhancement: Support numeric range queries in KQL
|
||||
|
||||
The KQL parser now supports numeric range queries using comparison
|
||||
operators (>=, <=, >, <) on numeric fields. Previously, range operators
|
||||
only worked with DateTime values, causing queries like `size>=1048576`
|
||||
or `photo.iso>=100` to silently fail by falling through to free-text
|
||||
search.
|
||||
|
||||
Affected numeric fields: Size, photo.iso, photo.fNumber,
|
||||
photo.focalLength, photo.orientation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12094
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Allow multiple objectClasses on group creation
|
||||
|
||||
Added support for configuring additional LDAP objectClasses when creating groups.
|
||||
The new `OCIS_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES` / `GRAPH_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES`
|
||||
environment variable accepts a list of extra objectClasses that are set alongside the
|
||||
primary `GRAPH_LDAP_GROUP_OBJECTCLASS` when a new group is created in LDAP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12229
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Update web-extension images in ocis_fuill
|
||||
|
||||
The imgages for web-extensions have been updated for
|
||||
the ocis_full deployment example.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12324
|
||||
@@ -1,11 +0,0 @@
|
||||
Enhancement: Optimize search index after bulk reindexing
|
||||
|
||||
After an `IndexSpace` walk completes, the search engine now triggers a
|
||||
segment merge (compaction) on the bleve index. Over time, writes create
|
||||
multiple index segments that degrade query performance. The new
|
||||
`Optimize()` method calls bleve's `ForceMerge` to consolidate all
|
||||
segments into one, improving subsequent search and lookup speed. This is
|
||||
especially beneficial after bulk reindexing large spaces.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12104
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
@@ -1,12 +0,0 @@
|
||||
Enhancement: Add `ocis search optimize` CLI command
|
||||
|
||||
Added a new `ocis search optimize` command that compacts the search index
|
||||
by merging Bleve segments, without re-indexing content. The command opens
|
||||
the index directly (without requiring the search service to be running),
|
||||
making it safe to run during maintenance windows without blocking search
|
||||
queries.
|
||||
|
||||
This is useful after bulk reindexing operations that create many small
|
||||
index segments, which can degrade search performance over time.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12136
|
||||
@@ -1,24 +0,0 @@
|
||||
Enhancement: Add blobstore CLI commands to storage-users service
|
||||
|
||||
Added two new CLI commands under `ocis storage-users blobstore` to help
|
||||
operators verify and inspect the configured blobstore without needing
|
||||
direct access to the underlying storage system.
|
||||
|
||||
`blobstore check` performs a full upload/download/delete round-trip using
|
||||
a random payload. The payload size is configurable via `--blob-size` and
|
||||
accepts human-readable values such as `64`, `1KB` or `4MiB` (default: 64 bytes).
|
||||
|
||||
`blobstore get` downloads a specific blob by its ID to verify it is
|
||||
readable. The blob can be identified either with `--blob-id` and
|
||||
`--space-id`, or by passing the raw blob path from a log line directly
|
||||
via `--path`. Both the s3ng key format
|
||||
(`<spaceID>/<pathified_blobID>`) and the ocis filesystem path format
|
||||
(`…/spaces/<pathified_spaceID>/blobs/<pathified_blobID>`) are accepted.
|
||||
When using the s3ng driver without a known blob size, an automatic retry
|
||||
with the actual size is performed on a size mismatch.
|
||||
|
||||
Both commands read the existing service configuration, so they always
|
||||
target the same blobstore as the running service. Only the `ocis` and
|
||||
`s3ng` storage drivers are supported.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12102
|
||||
@@ -1,10 +0,0 @@
|
||||
Enhancement: Add vault capabilities to the OCS capabilities endpoint
|
||||
|
||||
Added `OCIS_ENABLE_VAULT_MODE` / `FRONTEND_ENABLE_VAULT_MODE` config option to
|
||||
the frontend service. When enabled, the OCS capabilities endpoint advertises
|
||||
`vault.enabled = true`. Clients can request vault-specific capabilities via
|
||||
`/ocs/v2.php/cloud/capabilities?vault=true`, which returns a response with
|
||||
public sharing and federation sharing disabled.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12283
|
||||
https://github.com/owncloud/reva/pull/584
|
||||
@@ -1,15 +0,0 @@
|
||||
Enhancement: Add vault storage with MFA-protected access
|
||||
|
||||
Added a dedicated vault storage that can be protected with MFA. A separate
|
||||
`storage-users` service instance configured in vault mode runs and serves
|
||||
`/vault/users` and `/vault/projects` mount points with a dedicated
|
||||
`VaultStorageProviderID`. The `graph` service gained a new vault mode
|
||||
(`OCIS_ENABLE_VAULT_MODE`) that serves the vault API under the `/vault`
|
||||
prefix. The storage registry now routes vault-specific requests exclusively to
|
||||
the vault storage provider, preventing accidental access to vault spaces when
|
||||
no explicit storage ID is provided.
|
||||
|
||||
MFA status is propagated through gRPC metadata
|
||||
and forwarded in HTTP headers for WOPI/collaboration flows.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12108
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Add web extensions deployment configuration
|
||||
|
||||
We added deployment configuration for the photo-addon and advanced-search web
|
||||
extensions to the ocis_full example. This includes Docker compose files for
|
||||
both extensions and CSP configuration for OpenStreetMap tiles required by the
|
||||
photo-addon map feature.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11940
|
||||
@@ -1,9 +0,0 @@
|
||||
Bugfix: Cache compiled rego policies to avoid recompiling on every request
|
||||
|
||||
The policies service was reading and compiling .rego files from disk on
|
||||
every request, causing unnecessary memory pressure and per-request
|
||||
latency. The compiled PreparedEvalQuery is now cached per query string
|
||||
so compilation happens at most once per query string over the lifetime
|
||||
of the service.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12345
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Fix CreateHome cache
|
||||
|
||||
Move the CreateHome middleware cache to the proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12128
|
||||
https://github.com/owncloud/reva/pull/562
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix CSP blocking bundled KaTeX font
|
||||
|
||||
The default Content Security Policy blocked the bundled KaTeX math font (used by the md-editor) because it is inlined as a `data:` URI in the Web UI CSS. Added `data:` to the `font-src` directive to resolve the console error on every page load. Users with custom CSP files (`PROXY_CSP_CONFIG_FILE_LOCATION`) will need to add `data:` to their `font-src` directive manually.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12070
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Don't use hardcoded groupOfNames in group creation
|
||||
|
||||
Formerly, when creating a group with a different objectClass, it will always use groupOfNames instead of the one provided in the config.
|
||||
Now, the server creates groups using the objectClass defined in the config.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11776
|
||||
@@ -1,9 +0,0 @@
|
||||
Bugfix: Avoid superfluous GetPublicShare call when deleting space permissions
|
||||
|
||||
We fixed `DeletePermission` to recognise space permission IDs (prefixed with
|
||||
`u:` or `g:`) by their format before making any gateway calls. Previously,
|
||||
deleting a space member always triggered a `GetPublicShare` lookup that was
|
||||
guaranteed to fail, producing a confusing error log.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12122
|
||||
https://github.com/owncloud/ocis/issues/12012
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Make tag unassignment idempotent and handle publish failures
|
||||
|
||||
The DELETE tags endpoint now returns success when the requested tag is already absent from the file's metadata, instead of returning HTTP 400 with a misleading error message. The TagsRemoved event is always published so the search index stays in sync even when file metadata and the search index are out of sync. If event publishing fails, the metadata change is rolled back and HTTP 500 is returned to avoid leaving the system in an inconsistent state.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12001
|
||||
@@ -1,11 +0,0 @@
|
||||
Enhancement: Allow resetting IDM service user passwords
|
||||
|
||||
The `ocis idm resetpassword` command now supports a `--user-type` flag
|
||||
to select the account type: `user` (default, ou=users) or `service`
|
||||
(ou=sysusers). This allows resetting passwords for service accounts
|
||||
(libregraph, idp, reva) which live in `ou=sysusers`. Previously, the
|
||||
DN was hardcoded to `ou=users`, making it impossible to reset service
|
||||
user passwords via the CLI.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12118
|
||||
https://github.com/owncloud/ocis/issues/12106
|
||||
@@ -1,10 +0,0 @@
|
||||
Bugfix: Fix IDP build on FreeBSD by disabling absolute Babel runtime
|
||||
|
||||
The `babel-preset-react-app` preset defaults to `absoluteRuntime: true`,
|
||||
which hardcodes absolute paths to `@babel/runtime` helpers. These paths
|
||||
fail to resolve on non-Linux platforms like FreeBSD. Setting
|
||||
`absoluteRuntime: false` makes Babel resolve the runtime relative to
|
||||
the source file, which works across all platforms.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12114
|
||||
https://github.com/owncloud/ocis/issues/12065
|
||||
@@ -1,10 +0,0 @@
|
||||
Enhancement: Log effective data and config paths at startup
|
||||
|
||||
oCIS now logs the effective data path and config path at startup so
|
||||
operators can immediately verify that data is written to the expected
|
||||
location. This helps catch misconfigured Docker volume mounts where
|
||||
data silently falls back to an ephemeral container path instead of
|
||||
the intended persistent mount.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12117
|
||||
https://github.com/owncloud/ocis/issues/12044
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Translation for some email notifications
|
||||
|
||||
Some email notifications showed a wrong translated message that shouldn't appear.
|
||||
It's fixed so that message won't appear anymore.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11979
|
||||
@@ -1,8 +0,0 @@
|
||||
Bugfix: Fix postprocessing resume command --restart flag
|
||||
|
||||
The `--restart` / `-r` flag for `ocis postprocessing resume` was broken due to a flag
|
||||
name mismatch (`retrigger` vs `restart`) and silently did nothing. This has been fixed
|
||||
and the command now prints a confirmation message on success.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/11692
|
||||
https://github.com/owncloud/ocis/pull/12002
|
||||
@@ -1,7 +0,0 @@
|
||||
Bugfix: Search no longer disabled when OCIS_DISABLE_PREVIEWS=true
|
||||
|
||||
Setting OCIS_DISABLE_PREVIEWS=true removed the WebDAV REPORT routes from
|
||||
the router, breaking search on /dav/files, /dav/spaces and /webdav. The
|
||||
search routes are now registered independently of the preview flag.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12303
|
||||
@@ -1,26 +0,0 @@
|
||||
Bugfix: Prevent incomplete Tika extractions from permanently blocking re-index
|
||||
|
||||
When Tika returned HTTP 200 but its child processes (OCR, ImageMagick)
|
||||
failed due to resource limits, the search index received metadata but
|
||||
no content. The document was written to Bleve with the correct mtime,
|
||||
and subsequent reindexes skipped it because the id+mtime check passed.
|
||||
This left files permanently stuck as "indexed" with no searchable
|
||||
content.
|
||||
|
||||
Two fixes are applied:
|
||||
|
||||
1. Validate Tika responses: if `MetaRecursive()` returns an empty
|
||||
metadata list, it is now treated as an extraction error so the
|
||||
document is not written to the index.
|
||||
|
||||
2. Add an `Extracted` field to indexed resources. It is set to `true`
|
||||
only after successful extraction. The reindex skip check now requires
|
||||
`Extracted:true`, so incompletely indexed documents are automatically
|
||||
re-processed on the next reindex run.
|
||||
|
||||
Note: existing search indexes will trigger a full re-extraction on the
|
||||
next reindex because documents written before this change lack the
|
||||
`Extracted` field.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12095
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Use O(1) document lookup instead of full search during reindexing
|
||||
|
||||
The `IndexSpace` bulk reindexer was using a full KQL search query per file
|
||||
to check whether re-extraction was needed. On large indexes this query
|
||||
took 600–950ms each, making a 61,000-file space take ~13.5 hours just to
|
||||
walk. Replaced the per-file `Search()` call with an O(1) `Lookup()` using
|
||||
Bleve's `DocIDQuery`, then comparing mtime and extraction status in memory.
|
||||
This reduces per-file check time from ~800ms to <1ms.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12096
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix case-sensitive photo metadata search
|
||||
|
||||
Searching for photo metadata fields like camera make/model was case-sensitive, so searching for "google" would not match a camera make stored as "Google". Changed the photo string field analyzer from `keyword` to `lowercaseKeyword` so both indexed values and search terms are lowercased. Existing Bleve indexes need to be rebuilt after this change.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12078
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Always descend into directories during space reindexing
|
||||
|
||||
The search indexer's `IndexSpace` walk previously used `filepath.SkipDir`
|
||||
to skip entire directory subtrees when the directory itself was already
|
||||
indexed. After a failed or interrupted indexing run (e.g. Tika crash),
|
||||
this caused thousands of unindexed files to be permanently skipped
|
||||
because the parent directory's mtime had not changed. The indexer now
|
||||
always descends into directories, relying on the O(1) per-file DocID
|
||||
lookup to skip already-indexed files efficiently.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12119
|
||||
@@ -1,19 +0,0 @@
|
||||
Bugfix: Extract metadata from oversized files and fix ISO field
|
||||
|
||||
Two issues were found in the Tika content extractor:
|
||||
|
||||
1. Files exceeding `SEARCH_CONTENT_EXTRACTION_SIZE_LIMIT` (default 20MB)
|
||||
were skipped entirely — no EXIF, no photo metadata, no image dimensions
|
||||
were extracted. This particularly affected Pixel Motion Photos (`.MP.jpg`)
|
||||
which embed an MP4 video making them 3-9MB. Since EXIF metadata lives in
|
||||
the JPEG header (first few KB), a truncated stream is sufficient. The
|
||||
extractor now wraps the download in `io.LimitReader` instead of skipping
|
||||
Tika, sending only the first N bytes for metadata extraction.
|
||||
|
||||
2. The ISO speed field was read from `"Base ISO"`, a Canon-specific Tika
|
||||
field (sensor base sensitivity). Most cameras — Pixel, iPhone, Samsung —
|
||||
provide ISO via the standard `"exif:IsoSpeedRatings"` field. The extractor
|
||||
now checks `exif:IsoSpeedRatings` first and falls back to `Base ISO` for
|
||||
Canon compatibility.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12000
|
||||
@@ -1,11 +0,0 @@
|
||||
Security: Add X-XSS-Protection header
|
||||
|
||||
Added the X-XSS-Protection header set to "0" to explicitly disable the
|
||||
deprecated browser XSS filter, which can introduce side-channel
|
||||
vulnerabilities. Modern XSS protection is provided through the
|
||||
Content-Security-Policy header.
|
||||
|
||||
This change addresses security audit findings requiring explicit
|
||||
configuration of HTTP security headers per OWASP recommendations.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12092
|
||||
@@ -1,15 +0,0 @@
|
||||
Bugfix: Fix space management middleware removing users from spaces on download
|
||||
|
||||
The space management middleware ran on every authenticated request, including
|
||||
signed URL requests used for file downloads. Since signed URL auth does not
|
||||
carry OIDC claims, the middleware interpreted the absence of claims as "user
|
||||
should have no space access" and removed the user from all project spaces.
|
||||
On the next OIDC request the user was re-added, causing an oscillating
|
||||
add/remove cycle that led to intermittent download failures and transient
|
||||
"space not found" errors.
|
||||
|
||||
The middleware now skips reconciliation entirely when no OIDC claims are
|
||||
present in the request context.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12285
|
||||
https://github.com/owncloud/ocis/issues/12285
|
||||
@@ -1,8 +0,0 @@
|
||||
Bugfix: SpaceEditorWithoutTrashbin roles now correctly allow file editing
|
||||
|
||||
Fixed a bug where the *WithoutTrashbin space editor roles were rendered as read-only
|
||||
in the Web frontend. The OCS PermissionWrite bit was not set for these roles because
|
||||
the RoleFromResourcePermissions round-trip required RestoreRecycleItem, which these
|
||||
roles intentionally omit.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12346
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix typo in README
|
||||
|
||||
Fixed a typo in the README documentation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12263
|
||||
@@ -1,13 +0,0 @@
|
||||
Enhancement: Add ResourceID field to UploadReady event
|
||||
|
||||
The UploadReady NATS event now includes a `ResourceID` field containing the
|
||||
file's actual resource identifier (with the correct node OpaqueId). Previously,
|
||||
only `FileRef` was available, whose `ResourceId.OpaqueId` is set to the space
|
||||
root ID (required for CS3 gateway path resolution). Consumers that need the
|
||||
file's unique identifier for Graph API or WebDAV operations can now use
|
||||
`ResourceID.OpaqueId` directly.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12060
|
||||
https://github.com/owncloud/ocis/issues/12056
|
||||
https://github.com/owncloud/reva/pull/547
|
||||
https://github.com/owncloud/reva/pull/560
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Return 200 OK for WOPI Lock requests in read-only and view-only modes
|
||||
|
||||
OnlyOffice sends a WOPI Lock request when opening any document, even when
|
||||
the user only has read access. The WOPI Lock handler was attempting to acquire
|
||||
a CS3 write lock regardless of the view mode, causing a permission error for
|
||||
read-only tokens that OnlyOffice displayed as an error message on load.
|
||||
|
||||
The Lock handler now returns 200 OK immediately for READ_ONLY and VIEW_ONLY
|
||||
view modes without attempting to acquire a lock, consistent with the WOPI spec.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12257
|
||||
@@ -1,12 +0,0 @@
|
||||
Bugfix: Rework monitoring in the ocis_full deployment example
|
||||
|
||||
The ocis_full deployment example has been basically reworked for how to provide monitoring.
|
||||
|
||||
We now have:
|
||||
- a singe place for the definition of the tracing envvars for all ocis related container services
|
||||
- an easy and modular setup defining which sources should be inlcuded in monitoring via .env
|
||||
- comments describing the setup for the ease extending it
|
||||
- the monitoring definition in .env has been moved to the bottom and the compose_file assembly
|
||||
has monitoring as last entry now to guarantee nothing gets overwritten by accident
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11995
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Update images in the ocis_full deployment example
|
||||
|
||||
- Update the docker images for core services and web-extensions
|
||||
- Moving all default image definitions (latest) into the .env file for consistency
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12123
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Expose the signature-auth attribute
|
||||
|
||||
Expose the "oc:signature-auth" attribute for the subfolders in the public link propfinds.
|
||||
This is a necessary change to be able to support archive downloads in password protected public links.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12016
|
||||
@@ -1,16 +0,0 @@
|
||||
Enhancement: Retry and abort on repeated extraction failures during indexing
|
||||
|
||||
During `ocis search index` bulk reindexing, if the content extractor (e.g.
|
||||
Tika) becomes unavailable, individual file extractions are now retried up to
|
||||
5 times with a 1-second delay between attempts. If a file still fails after
|
||||
all retries, the failure is logged and the walk continues.
|
||||
|
||||
If 5 consecutive files fail extraction (indicating the extraction service is
|
||||
down rather than a single file being problematic), the index walk is aborted
|
||||
with an error so the admin can investigate.
|
||||
|
||||
Previously, extraction failures were silently logged and the walk continued
|
||||
at full speed, accumulating thousands of wasted "connection refused" errors
|
||||
when Tika was down.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12111
|
||||
@@ -1,8 +0,0 @@
|
||||
Security: Fix signing-key to public share guests
|
||||
|
||||
The /ocs/v[12].php/cloud/user/signing-key endpoint was reachable through a
|
||||
public share session.
|
||||
The endpoint `public-token` is no longer allowed by the public-share resource scope in reva.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12332
|
||||
https://github.com/owncloud/reva/pull/608
|
||||
@@ -1,6 +0,0 @@
|
||||
Security: Upgrade libvips to 8.18.2
|
||||
|
||||
Bumped libvips to 8.18.2 in all Docker images to pick up the fix for a
|
||||
stack buffer overflow.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12301
|
||||
@@ -10,4 +10,4 @@ emitted with `"body": "marshaling error: json: unsupported type: func(int64)"`
|
||||
instead of the payload. Without the tracing middleware the field serialized to an
|
||||
empty object. In both cases the intended payload was never logged.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12917
|
||||
https://github.com/owncloud/ocis/pull/12918
|
||||
@@ -1,10 +0,0 @@
|
||||
Bugfix: Honor per-record expiry in the nats-js-kv store
|
||||
|
||||
The nats-js-kv store ignored the per-record expiry written by callers and kept
|
||||
every entry for the bucket-wide MaxAge, which is fixed at bucket creation. An
|
||||
entry could therefore outlive the deadline stored in it and be served as stale
|
||||
data — for the proxy userinfo cache this signed still-authenticated clients out.
|
||||
Writes now stamp an absolute deadline on each record and reads treat a record
|
||||
past its deadline as a cache miss, matching the memory store's behavior.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12863
|
||||
@@ -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
|
||||
Loaded 100 of 599 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user