Compare commits

...
Author SHA1 Message Date
Michal Klos a7569b3fd7 feat: claude skill for deep dive into flaky tests fix 2026-03-24 10:41:22 +01:00
Ashim Shrestha 31b9a19177 docs: add docs for ocm test suite on kubernetes locally (#12084)
Signed-off-by: Ashim Shrestha <ashimshrestha2384@gmail.com>
2026-03-24 10:35:53 +05:45
ownClouders 77bd5974ab [tx] updated from transifex 2026-03-24 00:07:45 +00:00
kobergj 0883d5d4e2 Automated changelog update [skip ci] 2026-03-20 14:00:23 +00:00
kobergj ac7f054633 Merge pull request #12121 from kobergj/DontIndexFailedUploads
Dont Index failed uploads
2026-03-20 14:58:16 +01:00
Sawjan Gurung 9ac0452d61 test: add setup and docs for running API tests in K8s (#12107)
* test: add locak k8s setup

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* chore: move k8s config files

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* fix: add host alias

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* fix: remove unsed dir

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* ci: use script to expose external servers to the cluster

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* ci: expose using existing script

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* docs: add docs

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* docs: refer k8s setup docs

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* ci: specify namespace

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* ci: create namespace

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* docs: fix docs errors

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: patch chart template only once

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* docs: add toc and setup cleanup

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* chore: remove deprecated --atomic helm option

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: add k8s namespace wrapper option

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: fix logs dir permissions

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* docs: update docs

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: fix host ip detection

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* docs: add show-logs command and warning for external services

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

---------

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2026-03-19 15:26:57 +05:45
Martin 2a163e7075 Automated changelog update [skip ci] 2026-03-19 07:33:00 +00:00
Martin d45fd2221a Merge pull request #12123 from owncloud/update_deployment_images
[docs-only] Update images in the ocis_full deployment example
2026-03-19 08:30:51 +01:00
Martin Mattel 8aaadc4bb4 properly name the changelog file 2026-03-19 08:24:04 +01:00
Martin Mattel 95250276cc fix broken tika tag 2026-03-19 08:21:42 +01:00
Julian Koberg ba41ba62b0 fix: dont index failed uploads
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-03-18 14:04:08 +01:00
Roman Perekhod f62acb2f38 Automated changelog update [skip ci] 2026-03-18 12:29:07 +00:00
Roman Perekhod 2f55302d9f Merge pull request #12127 from owncloud/revert-12115-fix/proxy-createhome-dedup
Revert "fix(proxy): [OCISDEV-460] deduplicate CreateHome calls in middleware"
2026-03-18 13:26:39 +01:00
Roman Perekhod 9ca2c016be Revert "fix(proxy): [OCISDEV-460] deduplicate CreateHome calls in middleware" 2026-03-18 10:58:53 +01:00
Martin aec2f4b0c0 Automated changelog update [skip ci] 2026-03-18 08:28:15 +00:00
Martin 846b391c65 Merge pull request #12115 from paul43210/fix/proxy-createhome-dedup
fix(proxy): [OCISDEV-460] deduplicate CreateHome calls in middleware
2026-03-18 09:25:30 +01:00
Martin 8386760598 Automated changelog update [skip ci] 2026-03-17 11:31:58 +00:00
Martin be86a9513d Merge pull request #12120 from owncloud/update_envvar_check_script
[docs-only] Update the check-env-var-annotation script
2026-03-17 12:29:47 +01:00
Martin Mattel fdf7e502be [docs-only] Update images in the ocis_full deployment example 2026-03-17 12:06:35 +01:00
Paul FaureandClaude Opus 4.6 5063c80536 fix(proxy): address review — introductionVersion and env var description
- Change introductionVersion from "8.0.0" to "Daledda" (codename)
- Clarify that the cache is a process-lifetime cache tracking which
  users have a personal space, not one of the general proxy caches

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 13:44:33 -04:00
Martin ac5dfc01ec Automated changelog update [skip ci] 2026-03-16 16:01:20 +00:00
Martin 48dd8ff19f Merge pull request #12109 from owncloud/update_special_yaml_files
[docs-only] Update extended_vars.yaml and env_vars.yaml
2026-03-16 16:59:18 +01:00
Martin Mattel 7087d771c9 [docs-only] Update the check-env-var-annotation script 2026-03-16 16:20:27 +01:00
Paul FaureandClaude Opus 4.6 224c0e6244 refactor(proxy): extract helpers to reduce ServeHTTP cognitive complexity
Extract homeKnown() and createHome() from ServeHTTP to bring
cognitive complexity under the SonarCloud limit of 15.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 11:20:18 -04:00
Paul FaureandClaude Opus 4.6 e227983a9f feat(proxy): add PROXY_CREATEHOME_CACHE_DISABLED env var
Allow operators to disable the in-memory CreateHome cache via
PROXY_CREATEHOME_CACHE_DISABLED as a fallback if the cache causes
unexpected behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 10:50:36 -04:00
Martin 9336a1bfed Automated changelog update [skip ci] 2026-03-16 10:30:08 +00:00
Martin df4b6a337a Merge pull request #12114 from paul43210/fix/idp-babel-freebsd
fix(idp): disable absolute Babel runtime paths for FreeBSD compatibility
2026-03-16 11:21:16 +01:00
Paul FaureandClaude Opus 4.6 a087a99da0 fix: address SonarCloud linter issues in CreateHome middleware
- Use canonical header casing "X-Access-Token" (canonicalheader)
- Return true instead of nil on success to avoid nilnil (nilnil)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 00:50:05 -04:00
Paul FaureandClaude Opus 4.6 b588579ff7 docs: update changelog with PR number
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 23:34:33 -04:00
Paul FaureandClaude Opus 4.6 31ce8a68a7 fix(proxy): deduplicate CreateHome calls with singleflight and sync.Map
The CreateHome middleware fired a gRPC CreateHome request on every
authenticated HTTP request. On first login the browser sends ~11
parallel requests, each triggering a redundant call. Use singleflight
to collapse concurrent calls for the same user and sync.Map to cache
successful results so subsequent requests skip the gRPC call entirely.

Fixes: #12068

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 23:34:10 -04:00
Paul FaureandClaude Opus 4.6 0be2bd11aa docs: update changelog with PR number
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 23:21:51 -04:00
Paul FaureandClaude Opus 4.6 3030491395 fix(idp): disable absolute Babel runtime paths for FreeBSD compatibility
babel-preset-react-app defaults to absoluteRuntime: true, which
hardcodes Linux-specific absolute paths to @babel/runtime helpers.
This breaks builds on FreeBSD. Setting absoluteRuntime: false makes
Babel resolve the runtime relative to the source file instead.

Fixes: #12065

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 23:21:23 -04:00
Martin Mattel 5308fb916c [docs-only] Update extended_vars.yaml and env_vars.yaml 2026-03-13 11:07:55 +01:00
46 changed files with 1118 additions and 558 deletions

No files matched your search

+261
View File
@@ -0,0 +1,261 @@
---
description: Investigate top flaky tests from the owncloud/ocis weekly pipeline report
argument-hint: "[workflow-run-url-or-local-json-path]"
allowed-tools: [Bash, Read, Glob, Grep, WebFetch, Agent]
---
Investigate flaky tests from the owncloud/ocis weekly pipeline CI report.
The argument (if provided) is: $ARGUMENTS
## Phase 1 – Fetch CI failure data
The weekly pipeline report workflow (`weekly_pipeline_report.yml`) runs a Go tool that emits a
JSON summary directly to the job log. There are no artifacts — the data is in the log.
**Step 1a – resolve the run ID.**
If $ARGUMENTS is a GitHub run URL (e.g. `https://github.com/owncloud/ocis/actions/runs/12345`),
extract the numeric run ID from the URL.
If $ARGUMENTS is a local file path, read it directly with the Read tool and skip to Phase 2.
If $ARGUMENTS is empty, fetch the most recent completed run:
```bash
gh api "repos/owncloud/ocis/actions/workflows/weekly_pipeline_report.yml/runs?per_page=5&status=completed" \
--jq '.workflow_runs[0] | {id, conclusion, created_at, html_url}' 2>/dev/null
```
**Step 1b – get the "Generate Pipeline Report" job ID for that run:**
```bash
gh api "repos/owncloud/ocis/actions/runs/RUN_ID/jobs" \
--jq '.jobs[] | select(.name == "Generate Pipeline Report") | {id, conclusion}' 2>/dev/null
```
**Step 1c – download the job log and extract the JSON report:**
The log ends with a JSON block starting at `{` after the line `Result: N failed / M total`.
Save the raw log then use Python to extract the JSON reliably:
```bash
gh api "repos/owncloud/ocis/actions/jobs/JOB_ID/logs" 2>/dev/null \
> /tmp/ocis_raw.log
python3 - <<'EOF'
import re, json, sys
raw = open('/tmp/ocis_raw.log').readlines()
# Find the "Result:" line
start = next((i for i, l in enumerate(raw) if 'Result:' in l), None)
if start is None:
print("ERROR: Result line not found", file=sys.stderr); sys.exit(1)
# Strip timestamps, fix secret redactions
lines = []
for l in raw[start+1:]:
l = re.sub(r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z ', '', l)
lines.append(l)
text = ''.join(lines)
text = text.replace('***"', '[REDACTED]')
# raw_decode stops at end of valid JSON, ignoring trailing log lines
data, _ = json.JSONDecoder().raw_decode(text)
with open('/tmp/ocis_report.json', 'w') as f:
json.dump(data, f, indent=2)
print(f"OK: {len(data.get('count', []))} count entries, {len(data.get('pipelines', []))} pipelines")
EOF
```
If the API call fails or the Python script exits with an error, ask the user:
> "I couldn't fetch the CI report automatically. Please provide either:
> - A local path to the report JSON file
> - The URL of a specific GitHub Actions run (e.g. `https://github.com/owncloud/ocis/actions/runs/12345`)
> - The raw JSON pasted directly"
Once you have the JSON (either from the log or from the user), proceed to Phase 2.
**Step 1d – extract failure logs for the top-ranked steps:**
After `/tmp/ocis_report.json` is written, extract the `logs` field for each failing step entry
from the `pipelines` array and save them to `/tmp/ocis_step_logs.json`:
```bash
python3 - <<'EOF'
import json, sys
report = json.load(open('/tmp/ocis_report.json'))
count = report.get('count', [])
# Build a lookup: (stage_name, step_name) -> logs
logs_by_key = {}
for pipeline in report.get('pipelines', []):
for stage in pipeline.get('pipeline_info', {}).get('pipeline_stages', []):
for step in stage.get('steps', []):
if step.get('status') == 'failure':
key = (step.get('stage_name', ''), step.get('step_name', ''))
logs_by_key[key] = step.get('logs', '')
# Attach logs to top-5 count entries (excluding CI plumbing — same filter applied in Phase 2)
EXCLUDE = {'scan-result-cache', 'codacy', 'upload', 'publish', 'tarball',
'output', 'diff', 'clone', 'checkout', 'generate'}
def is_test_step(name):
n = name.lower()
if any(n.startswith(e) for e in EXCLUDE): return False
return any(k in n for k in ('test', 'e2e', 'api', 'cli'))
test_entries = [e for e in count if is_test_step(e.get('step_name', ''))]
test_entries.sort(key=lambda e: e.get('count', 0), reverse=True)
top5 = test_entries[:5]
result = []
for e in top5:
key = (e.get('stage_name', ''), e.get('step_name', ''))
result.append({
'stage_name': e['stage_name'],
'step_name': e['step_name'],
'count': e['count'],
'logs': logs_by_key.get(key, ''),
})
with open('/tmp/ocis_step_logs.json', 'w') as f:
json.dump(result, f, indent=2)
for i, r in enumerate(result, 1):
preview = (r['logs'] or '(no logs)')[:120].replace('\n', ' ')
print(f" {i}. [{r['count']}x] {r['stage_name']} / {r['step_name']}")
print(f" {preview}")
EOF
```
The output of this script provides the per-step log previews shown in the Phase 2 triage table,
and the full `logs` content is passed verbatim to each Phase 3 deep-dive agent.
## Phase 2 – Triage: rank top 5
The JSON has a `count` array of objects: `{stage_name, step_name, count}`.
**Exclude** these step names — they are CI plumbing, not test failures:
- `scan-result-cache`, `coverage-cache-*`, `restore_*`, `sync-from-cache`
- `codacy`, `upload`, `publish`, `tarball`, `output`, `diff`
- `clone`, `checkout`, `generate`, `build*`, `lint*`, `docs-*`
- `wait-for-*`, `health-check-*`, `restore-*`, `unzip-*`
- Any step whose name does not involve running actual tests
**Keep** entries whose step name contains: `run-api-tests`, `localApiTests-*`, `e2e-tests`,
`cli-tests`, `unit-tests`, `test`.
Sort the kept entries by `count` descending, take top 5.
Print a ranked table:
```
Rank | Failures | Stage / Step
-----|----------|--------------------------------------
1 | N | stage-name / step-name
2 | N | ...
...
```
Also print the overall summary line:
> `N failed / M total commits (P%) in the past 14 days`
Then ask the user:
> "Which of the top 5 should I investigate? Enter one or more numbers (e.g. `1` or `1,3,5`), or `all` for all five."
Wait for the user's selection before proceeding.
## Phase 3 – Deep-dive per selected offender
For each selected offender, launch a parallel Explore agent (one Agent call per offender).
Run all selected offenders in parallel.
Each agent receives:
- `stage_name` and `step_name`
- The full `logs` field extracted in Step 1d (Behat output: scenario title, feature file path,
failing step text, and assertion error)
Because the failure log is already known, the agent must **not** search for it from scratch.
Instead:
1. **Parse the provided failure log** to extract:
- The exact `Scenario:` title
- The feature file path and line number (already in the log)
- The failing Gherkin step text
- The assertion error / exception message
2. **Find the step definition** implementing the failing Gherkin step:
- Search `tests/acceptance/features/bootstrap/` for the PHP file and method matching the step.
- Note `file:line` for the matching step method.
3. **Find the Go server handler** invoked by that step:
- Trace the HTTP call (WebDAV, Graph API, CS3 gRPC) from the step definition to the Go backend.
- Search `services/` for the relevant service handler.
- Search `vendor/github.com/cs3org/reva/` for lower-level handlers.
- Note `file:line` and function name.
4. **Identify the flakiness mechanism**. Classify as one of:
- `timing` — test doesn't wait long enough for an async operation
- `race` — concurrent access without synchronization
- `ordering` — assumes deterministic result ordering
- `stale-cache` — reads from an index/cache before it's updated
- `resource-leak` — leftover state from a previous test
- `env-dep` — depends on external service availability or network
- `other` — describe specifically
5. **Return a structured result:**
```
STAGE: <stage-name>
STEP: <step-name>
SCENARIO: <full scenario title or "unknown — suite-level failure">
FEATURE_FILE: <path>:<line>
STEP_DEFINITION: <path>:<line> — <step text>
GO_HANDLER: <path>:<line> — <function name>
MECHANISM: <classification>
FAILURE_ASSERTION: <exact assert/error from logs if available>
EVIDENCE: <1-3 sentences describing what you found in the code>
```
## Phase 4 – Synthesize
For each investigated offender, produce a report section:
### [Rank]. `<Stage / Step>`
**Root cause** (one sentence): ...
**Evidence**
| What | Where | Detail |
|------|-------|--------|
| Failing assertion | `file:line` | exact error text |
| Step definition | `file:line` | step text |
| Server handler | `file:line` | function name |
**5-Why analysis**
1. Why did the test fail? — ...
2. Why did that condition occur? — ...
3. Why isn't that condition prevented? — ...
4. Why wasn't this caught earlier? — ...
5. Why does this recur? — ...
**Fix options** (least to most invasive)
1. *Test-side*: ...
2. *Test-side (alternative)*: ...
3. *Server-side*: ...
**Recommended fix**: Option N — rationale in one sentence.
---
## Phase 5 – Output
Print the full synthesized report for all investigated offenders.
Then ask the user:
> "Should I write this report to a markdown file? If yes, provide a filename or I'll use `flaky-test-report-YYYY-MM-DD.md`."
If the user confirms, write the report to the specified (or default) filename in the current directory.
+10 -26
View File
@@ -3975,18 +3975,10 @@ def k3sCluster(name = OCIS_SERVER_NAME, ocm = False):
if ocm:
commands.extend([
# wait for peer
"echo 'Waiting for %s to be available...'" % peer_name,
"for i in {1..60}; do if getent hosts %s > /dev/null 2>&1; then break; fi; echo 'Waiting for %s... attempt '$i; sleep 2; done" % (peer_name, peer_name),
# get the IP of peer
"PEER_IP=$(getent hosts %s | awk '{ print $1 }')" % peer_name,
"echo \"%s IP: $PEER_IP\"" % peer_name,
# create namespace for ocis
"kubectl create namespace ocis --dry-run=client -o yaml | kubectl apply -f -",
# create service in the 'ocis' namespace
"cat <<EOF | kubectl apply -f -\napiVersion: v1\nkind: Service\nmetadata:\n name: %s\n namespace: ocis\nspec:\n type: ClusterIP\n clusterIP: None\n ports:\n - port: 443\n protocol: TCP\n---\napiVersion: v1\nkind: Endpoints\nmetadata:\n name: %s\n namespace: ocis\nsubsets:\n- addresses:\n - ip: $PEER_IP\n ports:\n - port: 443\n protocol: TCP\nEOF" % (peer_name, peer_name),
# verify
"kubectl get svc %s -n ocis" % peer_name,
"kubectl get endpoints %s -n ocis" % peer_name,
"until getent hosts %s >/dev/null 2>&1; do echo 'Waiting for %s...'; sleep 2; done" % (peer_name, peer_name),
# create namespace
"kubectl create namespace ocis || true",
"bash %s/tests/config/k8s/expose-external-svc.sh -n ocis %s:443" % (dirs["base"], peer_name),
])
commands.extend([
@@ -4025,7 +4017,7 @@ def prepareChartsK8s(environment = []):
"[ ! -d %s/ocis-charts ] && " % dirs["base"] +
"git clone --single-branch -b main --depth 1 https://github.com/owncloud/ocis-charts.git",
# prepare charts for the tests
"bash %s/tests/config/drone/k8s/setup.sh %s/ocis-charts" % (dirs["base"], dirs["base"]),
"bash %s/tests/config/k8s/setup.sh %s/ocis-charts" % (dirs["base"], dirs["base"]),
]
return [{
@@ -4070,10 +4062,6 @@ def deployOcisK8s(name = OCIS_SERVER_NAME):
"cd %s/ocis-charts" % dirs["base"],
# update external domain
"sed -i 's|externalDomain:.*|externalDomain: %s|' ./charts/ocis/ci/deployment-values.yaml" % name,
# [NOTE]
# Remove schema validation to add extra configs in values.yaml.
# Also this allows us to use fakeoffice as web-office server
"rm ./charts/ocis/values.schema.json || true",
# deploy ocis
"make helm-install-atomic",
],
@@ -4134,15 +4122,10 @@ def exposeNodePortsK8s(services = [], name = OCIS_SERVER_NAME):
}]
def exposeExternalServersK8s(servers = [], name = OCIS_SERVER_NAME):
commands = []
servers_arg = []
for server in servers:
server_name = server[0]
server_port = str(server[1])
commands.append("SERVER_IP=$(getent hosts %s | awk '{print $1}')" % server_name)
commands.append('echo -e "apiVersion: v1\nkind: Endpoints\nmetadata:\n name: %s\n namespace: ocis\n' % server_name +
'subsets:\n- addresses:\n - ip: $SERVER_IP\n ports:\n - port: %s" | kubectl apply -f -' % server_port)
commands.append('echo -e "apiVersion: v1\nkind: Service\nmetadata:\n name: %s\n namespace: ocis\n' % server_name +
'spec:\n ports:\n - port: %s\n targetPort: %s" | kubectl apply -f -' % (server_port, server_port))
servers_arg.append("%s:%s" % (server[0], str(server[1])))
servers_arg = ",".join(servers_arg)
return [{
"name": "expose-external-servers",
@@ -4150,5 +4133,6 @@ def exposeExternalServersK8s(servers = [], name = OCIS_SERVER_NAME):
"commands": [
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}-%s.yaml" % name,
"until test -f $${KUBECONFIG}; do sleep 1s; done",
] + commands,
"bash %s/tests/config/k8s/expose-external-svc.sh -n ocis %s" % (dirs["base"], servers_arg),
],
}]
+1 -4
View File
@@ -63,7 +63,4 @@ go.work.sum
.env
.envrc
CLAUDE.md
.claude/
# charts
ocis-charts/
.claude/
+53 -24
View File
@@ -1,42 +1,67 @@
#!/bin/bash
# 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"
# The following grep will filter out every line containing an `env` annotation.
# It will ignore every line that already has a valid `introductionVersion` annotation.
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"
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 such as a release name
${RED}Invalid examples:${NORM}
introductionVersion:"5.0cheesecake"
introductionVersion:"5"
introductionVersion:"5blueberry"
introductionVersion:"5-lasagna"
introductionVersion:"4.9.3rc5"
See the dev docs for more details: https://owncloud.dev/services/general-info/envvars/envvar-naming-scopes/
EOL
}
ERROR=0
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/")
QI=$(git grep -n "env:" -- '*.go' |grep -v -P "introductionVersion:\"($SEMVER_REGEX|(pre5\\.0)|($ALPHA_REGEX))\""|grep -v "_test.go"|grep -v "vendor/")
# 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")
RESULTS_INTRO=$(echo "${QUERY_INTRO}"|wc -l)
echo "Checking introductionVersion annotations"
if [ "${QUERY_INTRO}" != "" ] && [ "${RESULTS_INTRO}" -gt 0 ]; then
echo
echo "==============================================================================================="
echo "The following ${RESULTS_INTRO} items contain an invalid or missing introductionVersion annotation:"
echo ${RED}"The following ${RESULTS_INTRO} items contain invalid or missing introductionVersion annotation(s):"${NORM}
echo "==============================================================================================="
echo
echo "$QUERY_INTRO"
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
@@ -45,9 +70,13 @@ fi
QUERY_DESC=$(git grep -n "env:" -- '*.go' |grep -v -P "desc:\".{10,}\""|grep -v "_test.go"|grep -v "vendor/")
RESULTS_DESC=$(echo "${QUERY_DESC}"|wc -l)
echo "Checking description annotations"
if [ "${QUERY_DESC}" != "" ] && [ "${RESULTS_DESC}" -gt 0 ]; then
echo
echo "==============================================================================================="
echo "The following ${RESULTS_DESC} items contain an invalid or missing description annotation:"
echo ${RED}"The following ${RESULTS_DESC} items contain invalid or missing description annotation:"${NORM}
echo "==============================================================================================="
echo "$QUERY_DESC"
ERROR=1
+29
View File
@@ -81,6 +81,8 @@ The following sections list the changes for unreleased.
* Bugfix - Fix case-sensitive photo metadata search: [#12078](https://github.com/owncloud/ocis/pull/12078)
* Bugfix - Prevent incomplete Tika extractions from permanently blocking re-index: [#12095](https://github.com/owncloud/ocis/pull/12095)
* Bugfix - Use O(1) document lookup instead of full search during reindexing: [#12096](https://github.com/owncloud/ocis/pull/12096)
* Bugfix - Fix IDP build on FreeBSD by disabling absolute Babel runtime: [#12114](https://github.com/owncloud/ocis/pull/12114)
* Bugfix - Don't index failed uploads: [#12121](https://github.com/owncloud/ocis/pull/12121)
* Enhancement - Add web extensions deployment configuration: [#11940](https://github.com/owncloud/ocis/pull/11940)
* Enhancement - Add AI-assisted development guide: [#11941](https://github.com/owncloud/ocis/pull/11941)
* Enhancement - Bump Web to 12.3.1: [#12015](https://github.com/owncloud/ocis/pull/12015)
@@ -91,6 +93,7 @@ The following sections list the changes for unreleased.
* Enhancement - Support numeric range queries in KQL: [#12094](https://github.com/owncloud/ocis/pull/12094)
* Enhancement - Add blobstore CLI commands to storage-users service: [#12102](https://github.com/owncloud/ocis/pull/12102)
* Enhancement - Optimize search index after bulk reindexing: [#12104](https://github.com/owncloud/ocis/pull/12104)
* Enhancement - Update images in the ocis_full deployment example: [#12123](https://github.com/owncloud/ocis/pull/12123)
## Details
@@ -239,6 +242,25 @@ The following sections list the changes for unreleased.
https://github.com/owncloud/ocis/issues/12093
https://github.com/owncloud/ocis/pull/12096
* Bugfix - Fix IDP build on FreeBSD by disabling absolute Babel runtime: [#12114](https://github.com/owncloud/ocis/pull/12114)
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/issues/12065
https://github.com/owncloud/ocis/pull/12114
* Bugfix - Don't index failed uploads: [#12121](https://github.com/owncloud/ocis/pull/12121)
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
* Enhancement - Add web extensions deployment configuration: [#11940](https://github.com/owncloud/ocis/pull/11940)
We added deployment configuration for the photo-addon and advanced-search web
@@ -353,6 +375,13 @@ The following sections list the changes for unreleased.
https://github.com/owncloud/ocis/issues/12093
https://github.com/owncloud/ocis/pull/12104
* Enhancement - Update images in the ocis_full deployment example: [#12123](https://github.com/owncloud/ocis/pull/12123)
- 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
# Changelog for [8.0.0] (2026-02-13)
The following sections list the changes for 8.0.0.
@@ -0,0 +1,7 @@
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
@@ -0,0 +1,10 @@
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
@@ -0,0 +1,6 @@
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
+11 -8
View File
@@ -12,7 +12,7 @@ INSECURE=true
# Note: Traefik is always enabled and can't be disabled.
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
# release notes: https://github.com/traefik/traefik/releases
TRAEFIK_DOCKER_TAG=v3.6.7
TRAEFIK_DOCKER_TAG=v3.6.10
# Serve Traefik dashboard.
# Defaults to "false".
TRAEFIK_DASHBOARD=
@@ -45,7 +45,7 @@ OCIS=:ocis.yml
OCIS_DOCKER_IMAGE=owncloud/ocis
# The oCIS container version.
# Defaults to "latest" and points to the latest stable tag.
OCIS_DOCKER_TAG=
OCIS_DOCKER_TAG=latest
# Domain of oCIS, where you can find the frontend.
# Defaults to "ocis.owncloud.test"
OCIS_DOMAIN=
@@ -94,6 +94,9 @@ S3NG_BUCKET=
# For testing purposes, add local minio S3 storage to the docker-compose file.
# The leading colon is required to enable the service.
#S3NG_MINIO=:minio.yml
# Set the desired docker image tag or digest.
# Defaults to "latest"
MINIO_DOCKER_TAG=latest
# Minio domain. Defaults to "minio.owncloud.test".
MINIO_DOMAIN=
@@ -171,8 +174,8 @@ COMPANION_ONEDRIVE_SECRET=
# Note: the leading colon is required to enable the service.
TIKA=:tika.yml
# Set the desired docker image tag or digest.
# Defaults to "latest"
TIKA_IMAGE=
# Defaults to "latest-full"
TIKA_DOCKER_TAG=latest-full
### IMPORTANT Note for Online Office Apps ###
# To avoid app interlocking issues, you should select only one app to be active/configured.
@@ -185,7 +188,7 @@ TIKA_IMAGE=
COLLABORA=:collabora.yml
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
# release notes: https://www.collaboraonline.com/release-notes/
COLLABORA_DOCKER_TAG=25.04.8.1.1
COLLABORA_DOCKER_TAG=25.04.9.3.1
# Domain of Collabora, where you can find the frontend.
# Defaults to "collabora.owncloud.test"
COLLABORA_DOMAIN=
@@ -217,7 +220,7 @@ COLLABORA_SSL_VERIFICATION=false
#CLAMAV=:clamav.yml
# Image version of the ClamAV container.
# Defaults to "latest"
CLAMAV_DOCKER_TAG=
CLAMAV_DOCKER_TAG=latest
### OnlyOffice Settings ###
@@ -230,7 +233,7 @@ CLAMAV_DOCKER_TAG=
ONLYOFFICE_IMAGE=onlyoffice/documentserver
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
# release notes: https://github.com/ONLYOFFICE/DocumentServer/releases
ONLYOFFICE_DOCKER_TAG=9.2.1.1
ONLYOFFICE_DOCKER_TAG=9.3.1.1
# EE only: the path to your license file on the host.
# To activate a license file, comment ONLYOFFICE_DEACTIVATE_LICENSE. Otherwise, it <must> stay uncommented.
@@ -257,7 +260,7 @@ ONLYOFFICE_DOMAIN=
MAIL_SERVER_DOMAIN=
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
# release notes: https://github.com/axllent/mailpit/releases
MAIL_SERVER_DOCKER_TAG=v1.28.0
MAIL_SERVER_DOCKER_TAG=v1.29.3
### Debugging - Monitoring ###
+1 -1
View File
@@ -13,7 +13,7 @@ services:
- "clamav-socket:/var/run/clamav"
clamav:
image: clamav/clamav:${CLAMAV_DOCKER_TAG:-latest}
image: clamav/clamav:${CLAMAV_DOCKER_TAG}
# release notes: https://blog.clamav.net
networks:
ocis-net:
+2 -2
View File
@@ -12,7 +12,7 @@ services:
GRAPH_AVAILABLE_ROLES: "b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5,a8d5fe5e-96e3-418d-825b-534dbdf22b99,fb6c3e19-e378-47e5-b277-9732f9de6e21,58c63c02-1d89-4572-916a-870abc5a1b7d,2d00ce52-1fc2-4dbc-8b95-a73b73395f5a,1c996275-f1c9-4e71-abdf-a42f6495e960,312c0871-5ef7-4b3a-85b6-0e4074c64049,aa97fe03-7980-45ac-9e50-b325749fd7e6"
collaboration:
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG:-latest}
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG}
networks:
ocis-net:
depends_on:
@@ -49,7 +49,7 @@ services:
restart: always
collabora:
image: collabora/code:${COLLABORA_DOCKER_TAG:-latest}
image: collabora/code:${COLLABORA_DOCKER_TAG}
networks:
ocis-net:
environment:
@@ -1,7 +1,7 @@
---
services:
traefik:
image: traefik:${TRAEFIK_DOCKER_TAG:-latest}
image: traefik:${TRAEFIK_DOCKER_TAG}
networks:
ocis-net:
command:
@@ -8,7 +8,7 @@ services:
NOTIFICATIONS_SMTP_INSECURE: "true"
mailserver:
image: axllent/mailpit:${MAIL_SERVER_DOCKER_TAG:-latest}
image: axllent/mailpit:${MAIL_SERVER_DOCKER_TAG}
networks:
- ocis-net
ports:
+1 -1
View File
@@ -1,7 +1,7 @@
---
services:
minio:
image: minio/minio:latest
image: minio/minio:${MINIO_DOCKER_TAG}
# release notes: https://github.com/minio/minio/releases
networks:
ocis-net:
+1 -1
View File
@@ -6,7 +6,7 @@ services:
aliases:
- ${OCIS_DOMAIN:-ocis.owncloud.test}
ocis:
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG:-latest}
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG}
# changelog: https://github.com/owncloud/ocis/tree/master/changelog
# release notes: https://doc.owncloud.com/ocis_release_notes.html
networks:
@@ -7,7 +7,7 @@ services:
- ${ONLYOFFICE_DOMAIN:-onlyoffice.owncloud.test}
collaboration-oo:
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG:-latest}
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG}
networks:
ocis-net:
depends_on:
@@ -45,7 +45,7 @@ services:
onlyoffice:
# note, you also need to add a volume when using the enterprise version, see below
image: ${ONLYOFFICE_IMAGE:-onlyoffice/documentserver}:${ONLYOFFICE_DOCKER_TAG:-latest}
image: ${ONLYOFFICE_IMAGE:-onlyoffice/documentserver}:${ONLYOFFICE_DOCKER_TAG}
networks:
ocis-net:
entrypoint:
+1 -1
View File
@@ -1,7 +1,7 @@
---
services:
tika:
image: ${TIKA_IMAGE:-apache/tika:latest-full}
image: apache/tika:${TIKA_DOCKER_TAG}
# release notes: https://tika.apache.org
networks:
ocis-net:
@@ -6,7 +6,7 @@ services:
condition: service_completed_successfully
advanced-search-init:
image: owncloud/web-extensions:advanced-search-0.1.0
image: owncloud/web-extensions:advanced-search-0.2.0
user: root
volumes:
- ocis-apps:/apps
@@ -6,7 +6,7 @@ services:
condition: service_completed_successfully
photo-addon-init:
image: owncloud/web-extensions:photo-addon-0.1.0
image: owncloud/web-extensions:photo-addon-0.2.0
user: root
volumes:
- ocis-apps:/apps
+151 -152
View File
@@ -6038,10 +6038,10 @@ IDM_ADMIN_USER_ID:
removalVersion: ""
deprecationInfo: ""
IDM_CREATE_DEMO_USERS:
name: SETTINGS_SETUP_DEFAULT_ASSIGNMENTS;IDM_CREATE_DEMO_USERS
name: IDM_CREATE_DEMO_USERS
defaultValue: "false"
type: bool
description: The default role assignments the demo users should be setup.
description: Flag to enable or disable the creation of the demo users.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
@@ -7882,12 +7882,12 @@ OCDAV_WEBDAV_NAMESPACE:
removalVersion: ""
deprecationInfo: ""
OCIS_ADMIN_USER_ID:
name: OCIS_ADMIN_USER_ID;SETTINGS_ADMIN_USER_ID
name: OCIS_ADMIN_USER_ID;STORAGE_USERS_PURGE_TRASH_BIN_USER_ID
defaultValue: ""
type: string
description: ID of the user that should receive admin privileges. Consider that
the UUID can be encoded in some LDAP deployment configurations like in .ldif files.
These need to be decoded beforehand.
description: ID of the user who collects all necessary information for deletion.
Consider that the UUID can be encoded in some LDAP deployment configurations like
in .ldif files. These need to be decoded beforehand.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
@@ -7912,28 +7912,28 @@ OCIS_ASYNC_UPLOADS:
removalVersion: ""
deprecationInfo: ""
OCIS_CACHE_AUTH_PASSWORD:
name: OCIS_CACHE_AUTH_PASSWORD;SETTINGS_CACHE_AUTH_PASSWORD
name: OCIS_CACHE_AUTH_PASSWORD;STORAGE_USERS_ID_CACHE_AUTH_PASSWORD
defaultValue: ""
type: string
description: The password to authenticate with the cache. Only applies when store
type 'nats-js-kv' is configured.
description: The password to authenticate with the cache store. Only applies when
store type 'nats-js-kv' is configured.
introductionVersion: "5.0"
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_CACHE_AUTH_USERNAME:
name: OCIS_CACHE_AUTH_USERNAME;SETTINGS_CACHE_AUTH_USERNAME
name: OCIS_CACHE_AUTH_USERNAME;STORAGE_USERS_ID_CACHE_AUTH_USERNAME
defaultValue: ""
type: string
description: The username to authenticate with the cache. Only applies when store
type 'nats-js-kv' is configured.
description: The username to authenticate with the cache store. Only applies when
store type 'nats-js-kv' is configured.
introductionVersion: "5.0"
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_CACHE_DATABASE:
name: OCIS_CACHE_DATABASE
defaultValue: settings-cache
defaultValue: ids-storage-users
type: string
description: The database name the configured store should use.
introductionVersion: pre5.0
@@ -7941,7 +7941,7 @@ OCIS_CACHE_DATABASE:
removalVersion: ""
deprecationInfo: ""
OCIS_CACHE_DISABLE_PERSISTENCE:
name: OCIS_CACHE_DISABLE_PERSISTENCE;SETTINGS_CACHE_DISABLE_PERSISTENCE
name: OCIS_CACHE_DISABLE_PERSISTENCE;STORAGE_USERS_ID_CACHE_DISABLE_PERSISTENCE
defaultValue: "false"
type: bool
description: Disables persistence of the cache. Only applies when store type 'nats-js-kv'
@@ -7951,7 +7951,7 @@ OCIS_CACHE_DISABLE_PERSISTENCE:
removalVersion: ""
deprecationInfo: ""
OCIS_CACHE_STORE:
name: OCIS_CACHE_STORE;SETTINGS_CACHE_STORE
name: OCIS_CACHE_STORE;STORAGE_USERS_ID_CACHE_STORE
defaultValue: memory
type: string
description: 'The type of the cache store. Supported values are: ''memory'', ''redis-sentinel'',
@@ -7961,7 +7961,7 @@ OCIS_CACHE_STORE:
removalVersion: ""
deprecationInfo: ""
OCIS_CACHE_STORE_NODES:
name: OCIS_CACHE_STORE_NODES;SETTINGS_CACHE_STORE_NODES
name: OCIS_CACHE_STORE_NODES;STORAGE_USERS_ID_CACHE_STORE_NODES
defaultValue: '[127.0.0.1:9233]'
type: '[]string'
description: A list of nodes to access the configured store. This has no effect
@@ -7973,12 +7973,13 @@ OCIS_CACHE_STORE_NODES:
removalVersion: ""
deprecationInfo: ""
OCIS_CACHE_TTL:
name: OCIS_CACHE_TTL;SETTINGS_CACHE_TTL
defaultValue: 10m0s
name: OCIS_CACHE_TTL;STORAGE_USERS_ID_CACHE_TTL
defaultValue: 24m0s
type: Duration
description: Default time to live for entries in the cache. Only applied when access
tokens has no expiration. See the Environment Variable Types description for more
details.
description: Default time to live for user info in the user info cache. Only applied
when access tokens have no expiration. Defaults to 300s which is derived from
the underlaying package though not explicitly set as default. See the Environment
Variable Types description for more details.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
@@ -8021,7 +8022,7 @@ OCIS_CLAIM_MANAGED_SPACES_REGEXP:
removalVersion: ""
deprecationInfo: ""
OCIS_CORS_ALLOW_CREDENTIALS:
name: OCIS_CORS_ALLOW_CREDENTIALS;SETTINGS_CORS_ALLOW_CREDENTIALS
name: OCIS_CORS_ALLOW_CREDENTIALS;AUTH_APP_CORS_ALLOW_CREDENTIALS
defaultValue: "true"
type: bool
description: 'Allow credentials for CORS.See following chapter for more details:
@@ -8031,8 +8032,9 @@ OCIS_CORS_ALLOW_CREDENTIALS:
removalVersion: ""
deprecationInfo: ""
OCIS_CORS_ALLOW_HEADERS:
name: OCIS_CORS_ALLOW_HEADERS;SETTINGS_CORS_ALLOW_HEADERS
defaultValue: '[Authorization Origin Content-Type Accept X-Requested-With X-Request-Id]'
name: OCIS_CORS_ALLOW_HEADERS;AUTH_APP_CORS_ALLOW_HEADERS
defaultValue: '[Authorization Origin Content-Type Accept X-Requested-With X-Request-Id
Ocs-Apirequest]'
type: '[]string'
description: 'A list of allowed CORS headers. See following chapter for more details:
*Access-Control-Request-Headers* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers.
@@ -8042,8 +8044,8 @@ OCIS_CORS_ALLOW_HEADERS:
removalVersion: ""
deprecationInfo: ""
OCIS_CORS_ALLOW_METHODS:
name: OCIS_CORS_ALLOW_METHODS;SETTINGS_CORS_ALLOW_METHODS
defaultValue: '[GET POST PUT PATCH DELETE OPTIONS]'
name: OCIS_CORS_ALLOW_METHODS;AUTH_APP_CORS_ALLOW_METHODS
defaultValue: '[GET POST DELETE]'
type: '[]string'
description: 'A list of allowed CORS methods. See following chapter for more details:
*Access-Control-Request-Method* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method.
@@ -8053,7 +8055,7 @@ OCIS_CORS_ALLOW_METHODS:
removalVersion: ""
deprecationInfo: ""
OCIS_CORS_ALLOW_ORIGINS:
name: OCIS_CORS_ALLOW_ORIGINS;SETTINGS_CORS_ALLOW_ORIGINS
name: OCIS_CORS_ALLOW_ORIGINS;AUTH_APP_CORS_ALLOW_ORIGINS
defaultValue: '[*]'
type: '[]string'
description: 'A list of allowed CORS origins. See following chapter for more details:
@@ -8176,7 +8178,7 @@ OCIS_ENABLE_OCM:
removalVersion: ""
deprecationInfo: ""
OCIS_EVENTS_AUTH_PASSWORD:
name: OCIS_EVENTS_AUTH_PASSWORD;SSE_EVENTS_AUTH_PASSWORD
name: OCIS_EVENTS_AUTH_PASSWORD;OCM_EVENTS_AUTH_PASSWORD
defaultValue: ""
type: string
description: The password to authenticate with the events broker. The events broker
@@ -8186,7 +8188,7 @@ OCIS_EVENTS_AUTH_PASSWORD:
removalVersion: ""
deprecationInfo: ""
OCIS_EVENTS_AUTH_USERNAME:
name: OCIS_EVENTS_AUTH_USERNAME;SSE_EVENTS_AUTH_USERNAME
name: OCIS_EVENTS_AUTH_USERNAME;OCM_EVENTS_AUTH_USERNAME
defaultValue: ""
type: string
description: The username to authenticate with the events broker. The events broker
@@ -8196,18 +8198,18 @@ OCIS_EVENTS_AUTH_USERNAME:
removalVersion: ""
deprecationInfo: ""
OCIS_EVENTS_CLUSTER:
name: OCIS_EVENTS_CLUSTER;SSE_EVENTS_CLUSTER
name: OCIS_EVENTS_CLUSTER;OCM_EVENTS_CLUSTER
defaultValue: ocis-cluster
type: string
description: The clusterID of the event system. The event system is the message
queuing service. It is used as message broker for the microservice architecture.
Mandatory when using NATS as event system.
introductionVersion: "5.0"
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_EVENTS_ENABLE_TLS:
name: OCIS_EVENTS_ENABLE_TLS;NATS_EVENTS_ENABLE_TLS
name: OCIS_EVENTS_ENABLE_TLS;OCM_EVENTS_ENABLE_TLS
defaultValue: "false"
type: bool
description: Enable TLS for the connection to the events broker. The events broker
@@ -8217,31 +8219,31 @@ OCIS_EVENTS_ENABLE_TLS:
removalVersion: ""
deprecationInfo: ""
OCIS_EVENTS_ENDPOINT:
name: OCIS_EVENTS_ENDPOINT;SSE_EVENTS_ENDPOINT
name: OCIS_EVENTS_ENDPOINT;OCM_EVENTS_ENDPOINT
defaultValue: 127.0.0.1:9233
type: string
description: The address of the event system. The event system is the message queuing
service. It is used as message broker for the microservice architecture.
introductionVersion: "5.0"
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_EVENTS_TLS_ROOT_CA_CERTIFICATE:
name: OCIS_EVENTS_TLS_ROOT_CA_CERTIFICATE;SSE_EVENTS_TLS_ROOT_CA_CERTIFICATE
name: OCIS_EVENTS_TLS_ROOT_CA_CERTIFICATE;OCM_EVENTS_TLS_ROOT_CA_CERTIFICATE
defaultValue: ""
type: string
description: The root CA certificate used to validate the server's TLS certificate.
If provided SSE_EVENTS_TLS_INSECURE will be seen as false.
introductionVersion: "5.0"
If provided OCM_EVENTS_TLS_INSECURE will be seen as false.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_GATEWAY_GRPC_ADDR:
name: OCIS_GATEWAY_GRPC_ADDR;GATEWAY_GRPC_ADDR
name: OCIS_GATEWAY_GRPC_ADDR;STORAGE_USERS_GATEWAY_GRPC_ADDR
defaultValue: 127.0.0.1:9142
type: string
description: The bind address of the GRPC service.
introductionVersion: pre5.0
description: The bind address of the gateway GRPC address.
introductionVersion: "5.0"
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
@@ -8269,11 +8271,11 @@ OCIS_GRPC_CLIENT_TLS_MODE:
removalVersion: ""
deprecationInfo: ""
OCIS_GRPC_PROTOCOL:
name: OCIS_GRPC_PROTOCOL;APP_REGISTRY_GRPC_PROTOCOL
name: OCIS_GRPC_PROTOCOL;AUTH_APP_GRPC_PROTOCOL
defaultValue: ""
type: string
description: The transport protocol of the GRPC service.
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
@@ -8309,21 +8311,20 @@ OCIS_HTTP_TLS_KEY:
removalVersion: ""
deprecationInfo: ""
OCIS_INSECURE:
name: OCIS_INSECURE;NATS_TLS_SKIP_VERIFY_CLIENT_CERT
name: OCIS_INSECURE;OCM_EVENTS_TLS_INSECURE
defaultValue: "false"
type: bool
description: Whether the NATS server should skip the client certificate verification
during the TLS handshake.
description: Whether to verify the server TLS certificates.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_JWT_SECRET:
name: OCIS_JWT_SECRET;APP_REGISTRY_JWT_SECRET
name: OCIS_JWT_SECRET;AUTH_APP_JWT_SECRET
defaultValue: ""
type: string
description: The secret to mint and validate jwt tokens.
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
@@ -8383,8 +8384,8 @@ OCIS_KEYCLOAK_USER_REALM:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_BIND_DN:
name: OCIS_LDAP_BIND_DN;USERS_LDAP_BIND_DN
defaultValue: uid=reva,ou=sysusers,o=libregraph-idm
name: OCIS_LDAP_BIND_DN;GRAPH_LDAP_BIND_DN
defaultValue: uid=libregraph,ou=sysusers,o=libregraph-idm
type: string
description: LDAP DN to use for simple bind authentication with the target LDAP
server.
@@ -8393,7 +8394,7 @@ OCIS_LDAP_BIND_DN:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_BIND_PASSWORD:
name: OCIS_LDAP_BIND_PASSWORD;USERS_LDAP_BIND_PASSWORD
name: OCIS_LDAP_BIND_PASSWORD;GRAPH_LDAP_BIND_PASSWORD
defaultValue: ""
type: string
description: Password to use for authenticating the 'bind_dn'.
@@ -8402,7 +8403,7 @@ OCIS_LDAP_BIND_PASSWORD:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_CACERT:
name: OCIS_LDAP_CACERT;USERS_LDAP_CACERT
name: OCIS_LDAP_CACERT;GRAPH_LDAP_CACERT
defaultValue: /var/lib/ocis/idm/ldap.crt
type: string
description: Path/File name for the root CA certificate (in PEM format) used to
@@ -8423,20 +8424,20 @@ OCIS_LDAP_CROSS_INSTANCE_REFERENCE_TEMPLATE:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_DISABLE_USER_MECHANISM:
name: OCIS_LDAP_DISABLE_USER_MECHANISM;USERS_LDAP_DISABLE_USER_MECHANISM
name: OCIS_LDAP_DISABLE_USER_MECHANISM;GRAPH_DISABLE_USER_MECHANISM
defaultValue: attribute
type: string
description: An option to control the behavior for disabling users. Valid options
description: An option to control the behavior for disabling users. Supported options
are 'none', 'attribute' and 'group'. If set to 'group', disabling a user via API
will add the user to the configured group for disabled users, if set to 'attribute'
this will be done in the ldap user entry, if set to 'none' the disable request
is not processed.
is not processed. Default is 'attribute'.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_DISABLED_USERS_GROUP_DN:
name: OCIS_LDAP_DISABLED_USERS_GROUP_DN;USERS_LDAP_DISABLED_USERS_GROUP_DN
name: OCIS_LDAP_DISABLED_USERS_GROUP_DN;GRAPH_DISABLED_USERS_GROUP_DN
defaultValue: cn=DisabledUsersGroup,ou=groups,o=libregraph-idm
type: string
description: The distinguished name of the group to which added users will be classified
@@ -8456,7 +8457,7 @@ OCIS_LDAP_GROUP_AFFILIATION_ATTRIBUTE:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_GROUP_BASE_DN:
name: OCIS_LDAP_GROUP_BASE_DN;USERS_LDAP_GROUP_BASE_DN
name: OCIS_LDAP_GROUP_BASE_DN;GRAPH_LDAP_GROUP_BASE_DN
defaultValue: ou=groups,o=libregraph-idm
type: string
description: Search base DN for looking up LDAP groups.
@@ -8465,7 +8466,7 @@ OCIS_LDAP_GROUP_BASE_DN:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_GROUP_FILTER:
name: OCIS_LDAP_GROUP_FILTER;USERS_LDAP_GROUP_FILTER
name: OCIS_LDAP_GROUP_FILTER;GRAPH_LDAP_GROUP_FILTER
defaultValue: ""
type: string
description: LDAP filter to add to the default filters for group searches.
@@ -8474,11 +8475,11 @@ OCIS_LDAP_GROUP_FILTER:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_GROUP_OBJECTCLASS:
name: OCIS_LDAP_GROUP_OBJECTCLASS;USERS_LDAP_GROUP_OBJECTCLASS
name: OCIS_LDAP_GROUP_OBJECTCLASS;GRAPH_LDAP_GROUP_OBJECTCLASS
defaultValue: groupOfNames
type: string
description: The object class to use for groups in the default group search filter
like 'groupOfNames'.
('groupOfNames').
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
@@ -8494,7 +8495,7 @@ OCIS_LDAP_GROUP_SCHEMA_DISPLAYNAME:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_GROUP_SCHEMA_GROUPNAME:
name: OCIS_LDAP_GROUP_SCHEMA_GROUPNAME;USERS_LDAP_GROUP_SCHEMA_GROUPNAME
name: OCIS_LDAP_GROUP_SCHEMA_GROUPNAME;GRAPH_LDAP_GROUP_NAME_ATTRIBUTE
defaultValue: cn
type: string
description: LDAP Attribute to use for the name of groups.
@@ -8503,22 +8504,22 @@ OCIS_LDAP_GROUP_SCHEMA_GROUPNAME:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_GROUP_SCHEMA_ID:
name: OCIS_LDAP_GROUP_SCHEMA_ID;USERS_LDAP_GROUP_SCHEMA_ID
defaultValue: ownclouduuid
name: OCIS_LDAP_GROUP_SCHEMA_ID;GRAPH_LDAP_GROUP_ID_ATTRIBUTE
defaultValue: owncloudUUID
type: string
description: LDAP Attribute to use as the unique ID for groups. This should be a
description: LDAP Attribute to use as the unique id for groups. This should be a
stable globally unique ID like a UUID.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_GROUP_SCHEMA_ID_IS_OCTETSTRING:
name: OCIS_LDAP_GROUP_SCHEMA_ID_IS_OCTETSTRING;USERS_LDAP_GROUP_SCHEMA_ID_IS_OCTETSTRING
name: OCIS_LDAP_GROUP_SCHEMA_ID_IS_OCTETSTRING;GRAPH_LDAP_GROUP_SCHEMA_ID_IS_OCTETSTRING
defaultValue: "false"
type: bool
description: Set this to true if the defined 'id' attribute for groups is of the
'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute
of Active Directory for the group ID's.
description: Set this to true if the defined 'ID' attribute for groups is of the
'OCTETSTRING' syntax. This is required when using the 'objectGUID' attribute of
Active Directory for the group ID's.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
@@ -8533,7 +8534,7 @@ OCIS_LDAP_GROUP_SCHEMA_MAIL:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_GROUP_SCHEMA_MEMBER:
name: OCIS_LDAP_GROUP_SCHEMA_MEMBER;USERS_LDAP_GROUP_SCHEMA_MEMBER
name: OCIS_LDAP_GROUP_SCHEMA_MEMBER;GRAPH_LDAP_GROUP_MEMBER_ATTRIBUTE
defaultValue: member
type: string
description: LDAP Attribute that is used for group members.
@@ -8542,17 +8543,17 @@ OCIS_LDAP_GROUP_SCHEMA_MEMBER:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_GROUP_SCOPE:
name: OCIS_LDAP_GROUP_SCOPE;USERS_LDAP_GROUP_SCOPE
name: OCIS_LDAP_GROUP_SCOPE;GRAPH_LDAP_GROUP_SEARCH_SCOPE
defaultValue: sub
type: string
description: LDAP search scope to use when looking up groups. Supported values are
description: LDAP search scope to use when looking up groups. Supported scopes are
'base', 'one' and 'sub'.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_INSECURE:
name: OCIS_LDAP_INSECURE;USERS_LDAP_INSECURE
name: OCIS_LDAP_INSECURE;GRAPH_LDAP_INSECURE
defaultValue: "false"
type: bool
description: Disable TLS certificate validation for the LDAP connections. Do not
@@ -8632,7 +8633,7 @@ OCIS_LDAP_SERVER_WRITE_ENABLED:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_URI:
name: OCIS_LDAP_URI;USERS_LDAP_URI
name: OCIS_LDAP_URI;GRAPH_LDAP_URI
defaultValue: ldaps://localhost:9235
type: string
description: URI of the LDAP Server to connect to. Supported URI schemes are 'ldaps://'
@@ -8642,7 +8643,7 @@ OCIS_LDAP_URI:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_BASE_DN:
name: OCIS_LDAP_USER_BASE_DN;USERS_LDAP_USER_BASE_DN
name: OCIS_LDAP_USER_BASE_DN;GRAPH_LDAP_USER_BASE_DN
defaultValue: ou=users,o=libregraph-idm
type: string
description: Search base DN for looking up LDAP users.
@@ -8651,16 +8652,16 @@ OCIS_LDAP_USER_BASE_DN:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_ENABLED_ATTRIBUTE:
name: OCIS_LDAP_USER_ENABLED_ATTRIBUTE;USERS_LDAP_USER_ENABLED_ATTRIBUTE
name: OCIS_LDAP_USER_ENABLED_ATTRIBUTE;GRAPH_USER_ENABLED_ATTRIBUTE
defaultValue: ownCloudUserEnabled
type: string
description: LDAP attribute to use as a flag telling if the user is enabled or disabled.
description: LDAP Attribute to use as a flag telling if the user is enabled or disabled.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_FILTER:
name: OCIS_LDAP_USER_FILTER;USERS_LDAP_USER_FILTER
name: OCIS_LDAP_USER_FILTER;GRAPH_LDAP_USER_FILTER
defaultValue: ""
type: string
description: LDAP filter to add to the default filters for user search like '(objectclass=ownCloud)'.
@@ -8689,24 +8690,24 @@ OCIS_LDAP_USER_MEMBER_ATTRIBUTE:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_OBJECTCLASS:
name: OCIS_LDAP_USER_OBJECTCLASS;USERS_LDAP_USER_OBJECTCLASS
name: OCIS_LDAP_USER_OBJECTCLASS;GRAPH_LDAP_USER_OBJECTCLASS
defaultValue: inetOrgPerson
type: string
description: The object class to use for users in the default user search filter
like 'inetOrgPerson'.
('inetOrgPerson').
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_SCHEMA_DISPLAYNAME:
name: OCIS_LDAP_USER_SCHEMA_DISPLAYNAME;USERS_LDAP_USER_SCHEMA_DISPLAYNAME
defaultValue: displayname
name: OCIS_LDAP_USER_SCHEMA_DISPLAYNAME;GRAPH_LDAP_USER_DISPLAYNAME_ATTRIBUTE
defaultValue: displayName
type: string
description: LDAP Attribute to use for the displayname of users.
description: LDAP Attribute to use for the display name of users.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: 'LDAP_USER_SCHEMA_DISPLAY_NAME changing name for consistency | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '
deprecationInfo: 'LDAP_USER_SCHEMA_DISPLAY_NAME changing name for consistency | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '
OCIS_LDAP_USER_SCHEMA_EXTERNAL_ID:
name: OCIS_LDAP_USER_SCHEMA_EXTERNAL_ID;GRAPH_LDAP_EXTERNAL_ID_ATTRIBUTE
defaultValue: owncloudExternalID
@@ -8719,8 +8720,8 @@ OCIS_LDAP_USER_SCHEMA_EXTERNAL_ID:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_SCHEMA_ID:
name: OCIS_LDAP_USER_SCHEMA_ID;USERS_LDAP_USER_SCHEMA_ID
defaultValue: ownclouduuid
name: OCIS_LDAP_USER_SCHEMA_ID;GRAPH_LDAP_USER_UID_ATTRIBUTE
defaultValue: owncloudUUID
type: string
description: LDAP Attribute to use as the unique ID for users. This should be a
stable globally unique ID like a UUID.
@@ -8729,18 +8730,18 @@ OCIS_LDAP_USER_SCHEMA_ID:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_SCHEMA_ID_IS_OCTETSTRING:
name: OCIS_LDAP_USER_SCHEMA_ID_IS_OCTETSTRING;USERS_LDAP_USER_SCHEMA_ID_IS_OCTETSTRING
name: OCIS_LDAP_USER_SCHEMA_ID_IS_OCTETSTRING;GRAPH_LDAP_USER_SCHEMA_ID_IS_OCTETSTRING
defaultValue: "false"
type: bool
description: Set this to true if the defined 'ID' attribute for users is of the
'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute
of Active Directory for the user ID's.
'OCTETSTRING' syntax. This is required when using the 'objectGUID' attribute of
Active Directory for the user ID's.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_SCHEMA_MAIL:
name: OCIS_LDAP_USER_SCHEMA_MAIL;USERS_LDAP_USER_SCHEMA_MAIL
name: OCIS_LDAP_USER_SCHEMA_MAIL;GRAPH_LDAP_USER_EMAIL_ATTRIBUTE
defaultValue: mail
type: string
description: LDAP Attribute to use for the email address of users.
@@ -8749,7 +8750,7 @@ OCIS_LDAP_USER_SCHEMA_MAIL:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_SCHEMA_USER_TYPE:
name: OCIS_LDAP_USER_SCHEMA_USER_TYPE;USERS_LDAP_USER_TYPE_ATTRIBUTE
name: OCIS_LDAP_USER_SCHEMA_USER_TYPE;GRAPH_LDAP_USER_TYPE_ATTRIBUTE
defaultValue: ownCloudUserType
type: string
description: LDAP Attribute to distinguish between 'Member' and 'Guest' users. Default
@@ -8759,7 +8760,7 @@ OCIS_LDAP_USER_SCHEMA_USER_TYPE:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_SCHEMA_USERNAME:
name: OCIS_LDAP_USER_SCHEMA_USERNAME;USERS_LDAP_USER_SCHEMA_USERNAME
name: OCIS_LDAP_USER_SCHEMA_USERNAME;GRAPH_LDAP_USER_NAME_ATTRIBUTE
defaultValue: uid
type: string
description: LDAP Attribute to use for username of users.
@@ -8768,70 +8769,70 @@ OCIS_LDAP_USER_SCHEMA_USERNAME:
removalVersion: ""
deprecationInfo: ""
OCIS_LDAP_USER_SCOPE:
name: OCIS_LDAP_USER_SCOPE;USERS_LDAP_USER_SCOPE
name: OCIS_LDAP_USER_SCOPE;GRAPH_LDAP_USER_SCOPE
defaultValue: sub
type: string
description: LDAP search scope to use when looking up users. Supported values are
description: LDAP search scope to use when looking up users. Supported scopes are
'base', 'one' and 'sub'.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LOG_COLOR:
name: OCIS_LOG_COLOR;APP_REGISTRY_LOG_COLOR
name: OCIS_LOG_COLOR;AUTH_APP_LOG_COLOR
defaultValue: "false"
type: bool
description: Activates colorized log output.
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LOG_FILE:
name: OCIS_LOG_FILE;APP_REGISTRY_LOG_FILE
name: OCIS_LOG_FILE;AUTH_APP_LOG_FILE
defaultValue: ""
type: string
description: The path to the log file. Activates logging to this file if set.
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LOG_LEVEL:
name: OCIS_LOG_LEVEL;APP_REGISTRY_LOG_LEVEL
name: OCIS_LOG_LEVEL;AUTH_APP_LOG_LEVEL
defaultValue: ""
type: string
description: 'The log level. Valid values are: ''panic'', ''fatal'', ''error'',
''warn'', ''info'', ''debug'', ''trace''.'
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_LOG_PRETTY:
name: OCIS_LOG_PRETTY;APP_REGISTRY_LOG_PRETTY
name: OCIS_LOG_PRETTY;AUTH_APP_LOG_PRETTY
defaultValue: "false"
type: bool
description: Activates pretty log output.
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_MACHINE_AUTH_API_KEY:
name: OCIS_MACHINE_AUTH_API_KEY;AUTH_MACHINE_API_KEY
name: OCIS_MACHINE_AUTH_API_KEY;AUTH_APP_MACHINE_AUTH_API_KEY
defaultValue: ""
type: string
description: Machine auth API key used to validate internal requests necessary for
the access to resources from other services.
introductionVersion: pre5.0
description: The machine auth API key used to validate internal requests necessary
to access resources from other services.
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_MAX_CONCURRENCY:
name: OCIS_MAX_CONCURRENCY;USERLOG_MAX_CONCURRENCY
defaultValue: "1"
name: OCIS_MAX_CONCURRENCY;STORAGE_USERS_S3NG_MAX_CONCURRENCY
defaultValue: "5"
type: int
description: Maximum number of concurrent go-routines. Higher values can potentially
get work done faster but will also cause more load on the system. Values of 0
or below will be ignored and the default value will be used.
introductionVersion: 7.0.0
or below will be ignored and the default value of 100 will be used.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
@@ -8935,10 +8936,10 @@ OCIS_OIDC_CLIENT_ID:
removalVersion: ""
deprecationInfo: ""
OCIS_OIDC_ISSUER:
name: OCIS_URL;OCIS_OIDC_ISSUER
name: OCIS_URL;OCIS_OIDC_ISSUER;AUTH_BEARER_OIDC_ISSUER
defaultValue: https://localhost:9200
type: string
description: The OIDC issuer URL to assign to the demo users.
description: URL of the OIDC issuer. It defaults to URL of the builtin IDP.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
@@ -9011,54 +9012,54 @@ OCIS_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS:
removalVersion: ""
deprecationInfo: ""
OCIS_PERSISTENT_STORE:
name: OCIS_PERSISTENT_STORE;STORAGE_PUBLICLINK_STORE_STORE
name: OCIS_PERSISTENT_STORE;NOTIFICATIONS_STORE
defaultValue: nats-js-kv
type: string
description: 'The type of the store. Supported values are: ''memory'', ''nats-js-kv'',
''redis-sentinel'', ''noop''. See the text description for details.'
introductionVersion: 8.0.0
introductionVersion: 7.1.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_PERSISTENT_STORE_AUTH_PASSWORD:
name: OCIS_PERSISTENT_STORE_AUTH_PASSWORD;STORAGE_PUBLICLINK_STORE_AUTH_PASSWORD
name: OCIS_PERSISTENT_STORE_AUTH_PASSWORD;NOTIFICATIONS_STORE_AUTH_PASSWORD
defaultValue: ""
type: string
description: The password to authenticate with the store. Only applies when store
type 'nats-js-kv' is configured.
introductionVersion: 8.0.0
introductionVersion: 7.1.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_PERSISTENT_STORE_AUTH_USERNAME:
name: OCIS_PERSISTENT_STORE_AUTH_USERNAME;STORAGE_PUBLICLINK_STORE_AUTH_USERNAME
name: OCIS_PERSISTENT_STORE_AUTH_USERNAME;NOTIFICATIONS_STORE_AUTH_USERNAME
defaultValue: ""
type: string
description: The username to authenticate with the store. Only applies when store
type 'nats-js-kv' is configured.
introductionVersion: 8.0.0
introductionVersion: 7.1.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_PERSISTENT_STORE_NODES:
name: OCIS_PERSISTENT_STORE_NODES;STORAGE_PUBLICLINK_STORE_NODES
name: OCIS_PERSISTENT_STORE_NODES;NOTIFICATIONS_STORE_NODES
defaultValue: '[127.0.0.1:9233]'
type: '[]string'
description: A list of nodes to access the configured store. This has no effect
when 'memory' store is configured. Note that the behaviour how nodes are used
is dependent on the library of the configured store. See the Environment Variable
Types description for more details.
introductionVersion: 8.0.0
introductionVersion: 7.1.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_PERSISTENT_STORE_TTL:
name: OCIS_PERSISTENT_STORE_TTL;USERLOG_STORE_TTL
name: OCIS_PERSISTENT_STORE_TTL;NOTIFICATIONS_STORE_TTL
defaultValue: 336h0m0s
type: Duration
description: Time to live for events in the store. Defaults to '336h' (2 weeks).
See the Environment Variable Types description for more details.
introductionVersion: pre5.0
description: Time to live for notifications in the store. Defaults to '336h' (2
weeks). See the Environment Variable Types description for more details.
introductionVersion: 7.1.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
@@ -9103,19 +9104,17 @@ OCIS_REVA_GATEWAY_TLS_MODE:
removalVersion: ""
deprecationInfo: ""
OCIS_SERVICE_ACCOUNT_ID:
name: SETTINGS_SERVICE_ACCOUNT_IDS;OCIS_SERVICE_ACCOUNT_ID
name: OCIS_SERVICE_ACCOUNT_ID;OCM_SERVICE_ACCOUNT_ID
defaultValue: ""
type: '[]string'
description: 'The list of all service account IDs. These will be assigned the hidden
''service-account'' role. Note: When using ''OCIS_SERVICE_ACCOUNT_ID'' this will
contain only one value while ''SETTINGS_SERVICE_ACCOUNT_IDS'' can have multiple.
See the ''auth-service'' service description for more details about service accounts.'
type: string
description: The ID of the service account the service should use. See the 'auth-service'
service description for more details.
introductionVersion: "5.0"
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_SERVICE_ACCOUNT_SECRET:
name: OCIS_SERVICE_ACCOUNT_SECRET;CLIENTLOG_SERVICE_ACCOUNT_SECRET
name: OCIS_SERVICE_ACCOUNT_SECRET;OCM_SERVICE_ACCOUNT_SECRET
defaultValue: ""
type: string
description: The service account secret.
@@ -9143,11 +9142,12 @@ OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD:
removalVersion: ""
deprecationInfo: ""
OCIS_SPACES_MAX_QUOTA:
name: OCIS_SPACES_MAX_QUOTA;FRONTEND_MAX_QUOTA
name: OCIS_SPACES_MAX_QUOTA;STORAGE_USERS_OCIS_MAX_QUOTA
defaultValue: "0"
type: uint64
description: Set the global max quota value in bytes. A value of 0 equals unlimited.
The value is provided via capabilities.
description: Set a global max quota for spaces in bytes. A value of 0 equals unlimited.
If not using the global OCIS_SPACES_MAX_QUOTA, you must define the FRONTEND_MAX_QUOTA
in the frontend service.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
@@ -9162,10 +9162,10 @@ OCIS_SYSTEM_USER_API_KEY:
removalVersion: ""
deprecationInfo: ""
OCIS_SYSTEM_USER_ID:
name: OCIS_SYSTEM_USER_ID;SETTINGS_SYSTEM_USER_ID
name: OCIS_SYSTEM_USER_ID
defaultValue: ""
type: string
description: ID of the oCIS STORAGE-SYSTEM system user. Admins need to set the ID
description: ID of the oCIS storage-system system user. Admins need to set the ID
for the STORAGE-SYSTEM system user in this config option which is then used to
reference the user. Any reasonable long string is possible, preferably this would
be an UUIDv4 format.
@@ -9174,7 +9174,7 @@ OCIS_SYSTEM_USER_ID:
removalVersion: ""
deprecationInfo: ""
OCIS_SYSTEM_USER_IDP:
name: OCIS_SYSTEM_USER_IDP;SETTINGS_SYSTEM_USER_IDP
name: OCIS_SYSTEM_USER_IDP;SHARING_PUBLIC_CS3_SYSTEM_USER_IDP
defaultValue: internal
type: string
description: IDP of the oCIS STORAGE-SYSTEM system user.
@@ -9183,40 +9183,40 @@ OCIS_SYSTEM_USER_IDP:
removalVersion: ""
deprecationInfo: ""
OCIS_TRACING_COLLECTOR:
name: OCIS_TRACING_COLLECTOR;APP_REGISTRY_TRACING_COLLECTOR
name: OCIS_TRACING_COLLECTOR;AUTH_APP_TRACING_COLLECTOR
defaultValue: ""
type: string
description: The HTTP endpoint for sending spans directly to a collector, i.e. http://jaeger-collector:14268/api/traces.
Only used if the tracing endpoint is unset.
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_TRACING_ENABLED:
name: OCIS_TRACING_ENABLED;APP_REGISTRY_TRACING_ENABLED
name: OCIS_TRACING_ENABLED;AUTH_APP_TRACING_ENABLED
defaultValue: "false"
type: bool
description: Activates tracing.
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_TRACING_ENDPOINT:
name: OCIS_TRACING_ENDPOINT;APP_REGISTRY_TRACING_ENDPOINT
name: OCIS_TRACING_ENDPOINT;AUTH_APP_TRACING_ENDPOINT
defaultValue: ""
type: string
description: The endpoint of the tracing agent.
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_TRACING_TYPE:
name: OCIS_TRACING_TYPE;APP_REGISTRY_TRACING_TYPE
name: OCIS_TRACING_TYPE;AUTH_APP_TRACING_TYPE
defaultValue: ""
type: string
description: The type of tracing. Defaults to '', which is the same as 'jaeger'.
Allowed tracing types are 'jaeger', 'otlp' and '' as of now.
introductionVersion: pre5.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
@@ -9224,27 +9224,27 @@ OCIS_TRANSFER_SECRET:
name: OCIS_TRANSFER_SECRET
defaultValue: ""
type: string
description: Transfer secret for signing file up- and download requests.
description: The storage transfer secret.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_TRANSLATION_PATH:
name: OCIS_TRANSLATION_PATH;SETTINGS_TRANSLATION_PATH
name: OCIS_TRANSLATION_PATH;GRAPH_TRANSLATION_PATH
defaultValue: ""
type: string
description: (optional) Set this to a path with custom translations to overwrite
the builtin translations. Note that file and folder naming rules apply, see the
documentation for more details.
introductionVersion: 7.1.0
introductionVersion: 7.0.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
OCIS_URL:
name: OCIS_URL;OCIS_OIDC_ISSUER
name: OCIS_URL;OCIS_OIDC_ISSUER;AUTH_BEARER_OIDC_ISSUER
defaultValue: https://localhost:9200
type: string
description: The OIDC issuer URL to assign to the demo users.
description: URL of the OIDC issuer. It defaults to URL of the builtin IDP.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
@@ -9259,12 +9259,11 @@ OCIS_USER_SEARCH_DISPLAYED_ATTRIBUTES:
removalVersion: ""
deprecationInfo: ""
OCIS_WOPI_DISABLE_CHAT:
name: COLLABORATION_WOPI_DISABLE_CHAT;OCIS_WOPI_DISABLE_CHAT
name: APP_PROVIDER_WOPI_DISABLE_CHAT;OCIS_WOPI_DISABLE_CHAT
defaultValue: "false"
type: bool
description: Disable chat in the office web frontend. This feature applies to OnlyOffice
and Microsoft.
introductionVersion: 7.0.0
description: Disable the chat functionality of the office app.
introductionVersion: pre5.0
deprecationVersion: ""
removalVersion: ""
deprecationInfo: ""
+8
View File
@@ -39,6 +39,14 @@ variables:
default_value: ""
description: ""
do_ignore: true
- rawname: GITHUB_TOKEN
path: tools/ci-reporter/cmd/list-failed-commits/main.go:116
foundincode: true
name: GITHUB_TOKEN
type: ""
default_value: ""
description: ""
do_ignore: true
- rawname: _serverMaxConnectionAgeEnv
path: ocis-pkg/service/grpc/keepalive.go:19
foundincode: true
+3 -156
View File
@@ -1,6 +1,6 @@
---
title: "Acceptance Testing"
date: 2018-05-02T00:00:00+00:00
title: 'Acceptance Testing'
date: 2026-03-18T00:00:00+00:00
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/ocis/development
@@ -591,160 +591,7 @@ The sample `fontsMap.json` file is located in `tests/config/drone/fontsMap.json`
## Running Test on Helm Setup
The following tools must be installed:
* Install [k3d](https://k3d.io/stable/#install-script)
* Install [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
* Install [helm](https://helm.sh/docs/intro/install/)
Also, clone the [ocis-charts](https://github.com/owncloud/ocis-charts/) repository.
1. Setup Basicauth\
Enable basic authentication for the proxy in the `ocis-charts` repo:
```bash
cd ocis-charts
# Enable basic auth in proxy deployment
sed -i '/- name: PROXY_HTTP_ADDR/i \
- name: PROXY_ENABLE_BASIC_AUTH \
value: "true"' ./charts/ocis/templates/proxy/deployment.yaml
# copy authbasic service
cp -r <path-to-ocis-repo>/tests/config/drone/k8s/authbasic ./charts/ocis/templates/
# change admin password
sed -i '/- name: IDM_ADMIN_PASSWORD/{n;N;N;N;d;}' ./charts/ocis/templates/idm/deployment.yaml
sed -i '/- name: IDM_ADMIN_PASSWORD/a\\n value: "admin"' ./charts/ocis/templates/idm/deployment.yaml
# Update values.yaml
cp <path-to-ocis-repo>/tests/config/drone/k8s/values.yaml ./charts/ocis/ci/deployment-values.yaml
# Update template values
sed -i '/{{- $_ := set .scope "appNameAuthMachine" "authmachine" -}}/a \
{{- $_ := set .scope "appNameAuthBasic" "authbasic" -}}' \
./charts/ocis/templates/_common/_tplvalues.tpl
```
2. Install Charts Using k3d
```bash
k3d cluster create drone \
--api-port ocis-server:33199 \
-p '80:80@loadbalancer' \
-p '443:443@loadbalancer' \
--k3s-arg '--tls-san=k3d@server:*' \
--k3s-arg '--disable=metrics-server@server:*'
k3d kubeconfig get drone > kubeconfig.yaml
chmod 0600 kubeconfig.yaml
kubectl create configmap coredns-custom \
--namespace kube-system \
--from-literal='rewritehost.override=rewrite name exact ocis-server host.k3d.internal'
kubectl -n kube-system rollout restart deployment coredns
make helm-install-atomic
```
3. Run Test\
To run test you should set `K8S` to true:
```bash
cd <path-to-ocis-repo>
# build and run ocis wrapper
make -C ./tests/ociswrapper
./tests/ociswrapper/bin/ociswrapper serve \
--url https://ocis-server \
--admin-username admin \
--admin-password admin \
--skip-ocis-run
K8S=true TEST_SERVER_URL="https://ocis-server" \
make test-acceptance-api BEHAT_FEATURE=tests/acceptance/features/apiArchiver/downloadById.feature
```
4. Run Test With ociswrapper
```bash
ociswrapper serve \
--url https://ocis-server \
--admin-username admin \
--admin-password admin \
--skip-ocis-run
```
5. Run Antivirus Test\
To run the clamav service, run these commands deploying the helm chart:
```bash
cp -r config/drone/k8s/clamav charts/ocis/templates/
sed -i 's/{{ *\.Values\.features\.virusscan\.infectedFileHandling *| *quote *}}/"delete"/' \
ocis/templates/antivirus/deployment.yaml
sed -i '/name: ANTIVIRUS_SCANNER_TYPE/{n;s/value: *"icap"/value: "clamav"/}' \
charts/ocis/templates/antivirus/deployment.yaml
sed -i '/- name: ANTIVIRUS_SCANNER_TYPE/i \
- name: ANTIVIRUS_CLAMAV_SOCKET\n \
value: "tcp://clamav:3310"' \
charts/ocis/templates/antivirus/deployment.yaml
```
5. Run Email Test\
To run the email service, run these commands deploying the helm chart:
```bash
cp -r <path-to-ocis-repo>/tests/config/drone/k8s/mailpit charts/ocis/templates/
```
After ocis is deployed:
```bash
kubectl port-forward svc/mailpit $EMAIL_PORT:8025 -n ocis
```
6. Run Tika Test\
To run the tika service, run these commands deploying the helm chart:
```bash
cp -r <path-to-ocis-repo>/tests/config/drone/k8s/tika charts/ocis/templates/
```
### Running Core API Test Suites from Pipeline "8"
For running specific core API suites (`coreApiWebdavMove1`, `coreApiWebdavPreviews`, `coreApiWebdavUpload`, `coreApiWebdavUploadTUS`) on k8s:
1. **Additional Configs** (after step 1 above):
```bash
# Create fonts configmaps
echo '{"defaultFont": "/etc/ocis/fonts/NotoSans.ttf"}' > fontsMap.json
kubectl create configmap -n ocis sharing-banned-passwords \
--from-file=banned-password-list.txt=<path-to-ocis-repo>/tests/config/drone/banned-password-list.txt
kubectl create configmap -n ocis ocis-fonts-map --from-file=./fontsMap.json
# Patch sharing for banned passwords
sed -i 's|/etc/ocis/sharing-banned-passwords.txt|/etc/ocis/config/drone/banned-password-list.txt|' ./charts/ocis/templates/sharing/deployment.yaml
sed -i 's|- name: configs|- name: banned-passwords|' ./charts/ocis/templates/sharing/deployment.yaml
sed -i 's|mountPath: /etc/ocis$|mountPath: /etc/ocis/config/drone|' ./charts/ocis/templates/sharing/deployment.yaml
sed -i 's|name: sharing-banned-passwords-{{ .appName }}|name: sharing-banned-passwords|' ./charts/ocis/templates/sharing/deployment.yaml
kubectl create configmap -n ocis sharing-banned-passwords \
--from-file=banned-password-list.txt=<path-to-ocis-repo>/tests/config/drone/banned-password-list.txt
```
2. **Install and Setup** (after step 2 above):
```bash
make helm-install-atomic
```
3. **Run Tests**:
```bash
cd <path-to-ocis-repo>
K8S=true \
TEST_OCIS=true \
TEST_WITH_GRAPH_API=true \
TEST_SERVER_URL="https://ocis-server" \
OCIS_WRAPPER_URL="http://localhost:5200" \
make test-acceptance-api \
BEHAT_FEATURE=tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature
```
Refer to the [Running API Tests in Kubernetes Cluster](../../../tests/config/k8s/README.md) documentation for running tests against a K8s setup.
## Generating Code Coverage Report by Running Acceptance Tests
@@ -0,0 +1,109 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Martin <github@diemattels.at>, 2026
# Miha Podobnik, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-24 00:06+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Miha Podobnik, 2026\n"
"Language-Team: Slovenian (https://app.transifex.com/owncloud-org/teams/6149/sl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: sl\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
#: pkg/service/response.go:44
msgid "description"
msgstr "opis"
#: pkg/service/response.go:43
msgid "display name"
msgstr "prikazno ime"
#: pkg/service/response.go:42
msgid "expiration date"
msgstr "datum poteka"
#: pkg/service/response.go:41
msgid "password"
msgstr "geslo"
#: pkg/service/response.go:40
msgid "permission"
msgstr "dovoljenje"
#: pkg/service/response.go:45
msgid "shared-with-me"
msgstr "deljeno-z-mano"
#: pkg/service/response.go:39
msgid "some field"
msgstr "neko polje"
#: pkg/service/response.go:26
msgid "{resource} was downloaded via public link {token}"
msgstr "{resource} je bil prenesen prek javne povezave {token}"
#: pkg/service/response.go:24
msgid "{user} added {resource} to {folder}"
msgstr "{user} je dodal {resource} v {folder}"
#: pkg/service/response.go:36
msgid "{user} added {sharee} as member of {space}"
msgstr "{user} je dodal {sharee} kot član {space}"
#: pkg/service/response.go:27
msgid "{user} deleted {resource} from {folder}"
msgstr "{user} je izbrisal {resource} iz {folder}"
#: pkg/service/response.go:28
msgid "{user} moved {resource} to {folder}"
msgstr "{user} je premaknil {resource} v {folder}"
#: pkg/service/response.go:35
msgid "{user} removed link to {resource}"
msgstr "{user} je odstranil povezavo do {resource}"
#: pkg/service/response.go:32
msgid "{user} removed {sharee} from {resource}"
msgstr "{user} je odstranil uporabnika {sharee} iz {resource}"
#: pkg/service/response.go:37
msgid "{user} removed {sharee} from {space}"
msgstr "{user} je odstranil uporabnika {sharee} iz {space}"
#: pkg/service/response.go:29
msgid "{user} renamed {oldResource} to {resource}"
msgstr "{user} je preimenoval/a {oldResource} v {resource}"
#: pkg/service/response.go:33
msgid "{user} shared {resource} via link"
msgstr "{user} je omogočil souporabo {resource} prek povezave"
#: pkg/service/response.go:30
msgid "{user} shared {resource} with {sharee}"
msgstr "Uporabnik {user} je omogočil souporabo {resource} z {sharee}"
#: pkg/service/response.go:34
msgid "{user} updated {field} for a link {token} on {resource}"
msgstr ""
"Uporabnik {user} je posodobil polje {field} za povezavo {token} na viru "
"{resource}"
#: pkg/service/response.go:31
msgid "{user} updated {field} for the {resource}"
msgstr "{user} je preimenoval/a {oldResource} v {resource}"
#: pkg/service/response.go:25
msgid "{user} updated {resource} in {folder}"
msgstr "Uporabnik {user} je posodobil {resource} v {folder}"
+1 -1
View File
@@ -16,7 +16,7 @@
},
"babel": {
"presets": [
"react-app"
["react-app", { "absoluteRuntime": false }]
]
},
"browserslist": {
+3
View File
@@ -87,6 +87,9 @@ func HandleEvents(s Searcher, bus events.Consumer, logger log.Logger, cfg *confi
case events.FileUploaded:
indexSpaceDebouncer.Debounce(getSpaceID(ev.Ref))
case events.UploadReady:
if ev.Failed {
return
}
indexSpaceDebouncer.Debounce(getSpaceID(ev.FileRef))
case events.SpaceRenamed:
indexSpaceDebouncer.Debounce(ev.ID)
@@ -1,19 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: clamav
spec:
replicas: 1
selector:
matchLabels:
app: clamav
template:
metadata:
labels:
app: clamav
spec:
containers:
- name: clamav
image: owncloudci/clamavd
ports:
- containerPort: 3310
@@ -1,11 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: clamav
spec:
selector:
app: clamav
ports:
- protocol: TCP
port: 3310
targetPort: 3310
@@ -1,24 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mailpit
labels:
app: mailpit
spec:
replicas: 1
selector:
matchLabels:
app: mailpit
template:
metadata:
labels:
app: mailpit
spec:
containers:
- name: mailpit
image: axllent/mailpit:latest
ports:
- containerPort: 1025
name: smtp
- containerPort: 8025
name: web
@@ -1,17 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: mailpit
spec:
selector:
app: mailpit
ports:
- name: smtp
port: 1025
targetPort: smtp
protocol: TCP
appProtocol: tcp
- name: web
port: 8025
targetPort: web
protocol: TCP
-72
View File
@@ -1,72 +0,0 @@
#!/bin/bash
set -e
CHART_REPO="$1"
if [[ -z "$CHART_REPO" ]]; then
echo "[ERR] Chart directory argument missing. Usage: $0 <chart-repo-directory>"
exit 1
fi
if [[ ! -d "$CHART_REPO" ]]; then
echo "[ERR] Path not found: $CHART_REPO"
exit 1
fi
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT="$(cd $SCRIPT_DIR/../../../.. && pwd)"
CFG_DIR="$ROOT/tests/config/drone/k8s"
CHT_DIR="$CHART_REPO/charts/ocis"
TPL_DIR="$CHT_DIR/templates"
# patch ocis service templates
for service in "$TPL_DIR"/*/; do
if [[ -f "$service/deployment.yaml" ]]; then
if grep -qE 'ocis.caEnv' "$service/deployment.yaml"; then
sed -i '/.*ocis.caEnv.*/a\{{- include "ocis.extraEnvs" . | nindent 12 }}' "$service/deployment.yaml"
sed -i '/.*ocis.caPath.*/a\{{- include "ocis.extraVolMounts" . | nindent 12 }}' "$service/deployment.yaml"
sed -i '/.*ocis.caVolume.*/a\{{- include "ocis.extraVolumes" . | nindent 8 }}' "$service/deployment.yaml"
else
sed -i '/env:/a\{{- include "ocis.extraEnvs" . | nindent 12 }}' "$service/deployment.yaml"
sed -i '/volumeMounts:/a\{{- include "ocis.extraVolMounts" . | nindent 12 }}' "$service/deployment.yaml"
sed -i '/volumes:/a\{{- include "ocis.extraVolumes" . | nindent 8 }}' "$service/deployment.yaml"
fi
fi
done
# copy custom template resources
cp -r $CFG_DIR/templates/* $TPL_DIR/
# add authbasic service
sed -i "/{{- define \"ocis.basicServiceTemplates\" -}}/a\ {{- \$_ := set .scope \"appNameAuthBasic\" \"authbasic\" -}}" $TPL_DIR/_common/_tplvalues.tpl
if [[ "$ENABLE_ANTIVIRUS" == "true" ]]; then
sed -i '/virusscan:/{n;s|false|true|}' $CFG_DIR/values.yaml
fi
if [[ "$ENABLE_EMAIL" == "true" ]]; then
sed -i '/emailNotifications:/{n;s|false|true|}' $CFG_DIR/values.yaml
fi
if [[ "$ENABLE_TIKA" == "true" ]]; then
sed -i 's|type: basic|type: tika|' $CFG_DIR/values.yaml
fi
if [[ "$ENABLE_WOPI" == "true" ]]; then
sed -i '/appsIntegration:/{n;s|false|true|}' $CFG_DIR/values.yaml
# patch collaboration service
# - allow dynamic wopi src
sed -i -E "s|value: http://.*:9300|value: {{ \$officeSuite.wopiSrc }}|" $TPL_DIR/collaboration/deployment.yaml
fi
if [[ "$ENABLE_OCM" == "true" ]]; then
sed -i '/ocm:/{n;s|false|true|}' $CFG_DIR/values.yaml
fi
if [[ "$ENABLE_AUTH_APP" == "true" ]]; then
sed -i '/authapp:/{n;s|false|true|}' $CFG_DIR/values.yaml
fi
# move custom values file
cp $CFG_DIR/values.yaml "$CHT_DIR/ci/deployment-values.yaml"
@@ -1,19 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: tika
spec:
replicas: 1
selector:
matchLabels:
app: tika
template:
metadata:
labels:
app: tika
spec:
containers:
- name: tika
image: apache/tika:3.2.2.0-full
ports:
- containerPort: 9998
-12
View File
@@ -1,12 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: tika
spec:
selector:
app: tika
ports:
- protocol: TCP
port: 9998
targetPort: 9998
type: ClusterIP
+2
View File
@@ -0,0 +1,2 @@
logs/
ocis-charts/
+45
View File
@@ -0,0 +1,45 @@
LOGS_DIR := $(abspath ./logs)
CHART_REPO := $(abspath ./ocis-charts)
HOST_IP := $(shell ip route get 1 | awk '{print $$7}')
OCM ?= false
DOMAIN := ocis-server
ifeq ($(OCM), true)
DOMAIN := federation-ocis-server
endif
.PHONY: create-cluster
create-cluster:
@echo $(LOGS_DIR)
@mkdir -p $(LOGS_DIR)
@chmod 777 $(LOGS_DIR)
k3d cluster create local-ocis \
-p '80:80@loadbalancer' -p '443:443@loadbalancer' -p '9100-9399:30100-30399@loadbalancer' \
--k3s-arg '--tls-san=k3d@server:*' --k3s-arg '--disable=metrics-server@server:*' \
--host-alias $(HOST_IP):ocis-server --host-alias $(HOST_IP):federation-ocis-server \
-v $(LOGS_DIR):/logs
.PHONY: prepare-charts
prepare-charts:
@test -d "$(CHART_REPO)" || git clone --single-branch -b main --depth 1 https://github.com/owncloud/ocis-charts.git $(CHART_REPO)
bash setup.sh $(CHART_REPO)
kubectl create namespace $(DOMAIN) || true
kubectl create configmap -n $(DOMAIN) ocis-fonts-ttf --from-file=../drone/NotoSans.ttf || true
.PHONY: deploy-ocis
deploy-ocis:
@sed -i 's|externalDomain:.*|externalDomain: $(DOMAIN)|' $(CHART_REPO)/charts/ocis/ci/deployment-values.yaml
helm install -n $(DOMAIN) --create-namespace \
--values $(CHART_REPO)/charts/ocis/ci/deployment-values.yaml \
--wait --timeout 5m0s ocis $(CHART_REPO)/charts/ocis/
.PHONY: show-logs
show-logs:
@tail -f $(LOGS_DIR)/*.log
.PHONY: cleanup
cleanup:
k3d cluster delete local-ocis
rm -rf $(LOGS_DIR)
rm -rf $(CHART_REPO)
+229
View File
@@ -0,0 +1,229 @@
# Running API Tests in Kubernetes Cluster
## Table of Contents
- [K8s Setup](#k8s-setup)
- [Running API Tests](#running-api-tests)
- [Run General API tests](#run-general-api-tests)
- [Run Notification API tests](#run-notification-api-tests)
- [Run Antivirus API tests](#run-antivirus-api-tests)
- [Run Full Text Search API tests](#run-full-text-search-api-tests)
- [Cleanup the Setup](#cleanup-the-setup)
## K8s Setup
### Pre-requisites
1. Install the following tools:
- [k3d](https://k3d.io/stable/)
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/)
- [helm@v3](https://github.com/helm/helm/releases/tag/v3.20.1) (⚠️ MUST use v3)
2. Add these hosts to your `/etc/hosts` file:
```bash
echo "127.0.0.1 ocis-server federation-ocis-server \
clamav collabora onlyoffice fakeoffice tika \
email" | sudo tee -a /etc/hosts
```
### Deploy oCIS in K8s
1. Change directory to `<ocis-root>/tests/config/k8s`:
```bash
cd <ocis-root>/tests/config/k8s
```
2. Create K8s Cluster
```bash
make create-cluster
```
3. Prepare Charts
```bash
make prepare-charts
```
> [!TIP]
> To run the test suites that require extra services,
> use the following appropriate environment variables:
>
> - `ENABLE_ANTIVIRUS=true`: Antivirus test suites
> - `ENABLE_EMAIL=true`: Notification test suites
> - `ENABLE_TIKA=true`: Content search test suites
> - `ENABLE_WOPI=true`: WOPI test suites
> - `ENABLE_OCM=true`: OCM test suites
> - `ENABLE_AUTH_APP=true`: auth-app test suites
>
> ⚠️ When using the above environment variables,
> make sure you run the necessary external services and expose them to the cluster.
> Check the respective test running sections for more details.
Example:
```bash
ENABLE_EMAIL=true make prepare-charts
```
4. Deploy oCIS
```bash
make deploy-ocis
```
5. Check the ocis logs
```bash
make show-logs
```
## Running API Tests
Build and run the ociswrapper to be able to run the API tests tagged with `@env-config`.
1. Change directory to the ocis root:
```bash
cd <ocis-root>
```
2. Build the ociswrapper:
```bash
make -C tests/ociswrapper build
```
3. Run the ociswrapper:
```bash
tests/ociswrapper/bin/ociswrapper serve \
--url https://ocis-server \
--admin-username admin \
--admin-password admin \
--skip-ocis-run \
-n ocis-server
```
### Run General API tests
```bash
TEST_SERVER_URL=https://ocis-server \
K8S=true \
BEHAT_FEATURE=<test-suites-path>/apiDownloads/download.feature \
make test-acceptance-api
```
### Run Notification API tests
1. Check if setup [step 3](#deploy-ocis-in-k8s) is done correctly. (`ENABLE_EMAIL=true`)
2. Start the email server
```bash
docker run -d -p 1025:1025 -p 8025:8025 axllent/mailpit:v1.22.3
```
3. Expose the email server to the cluster
```bash
bash tests/config/k8s/expose-external-svc.sh email:1025
```
4. Run the tests
```bash
TEST_SERVER_URL=https://ocis-server \
EMAIL_HOST=email \
EMAIL_PORT=8025 \
K8S=true \
BEHAT_FEATURE=<test-suites-path>/apiNotification/notification.feature \
make test-acceptance-api
```
### Run Antivirus API tests
1. Check if setup [step 3](#deploy-ocis-in-k8s) is done correctly. (`ENABLE_ANTIVIRUS=true`)
2. Start the antivirus server
```bash
docker run -d -p 3310:3310 owncloudci/clamavd
```
3. Expose the antivirus server to the cluster
```bash
bash tests/config/k8s/expose-external-svc.sh clamav:3310
```
4. Run the tests
```bash
TEST_SERVER_URL=https://ocis-server \
K8S=true \
BEHAT_FEATURE=<test-suites-path>/apiAntivirus/antivirus.feature \
make test-acceptance-api
```
### Run Full Text Search API tests
1. Check if setup [step 3](#deploy-ocis-in-k8s) is done correctly. (`ENABLE_TIKA=true`)
2. Start the tika server
```bash
docker run -d -p 9998:9998 apache/tika:3.2.2.0-full
```
3. Expose the tika server to the cluster
```bash
bash tests/config/k8s/expose-external-svc.sh tika:9998
```
4. Run the tests
```bash
TEST_SERVER_URL=https://ocis-server \
K8S=true \
BEHAT_FEATURE=<test-suites-path>/apiSearchContent/contentSearch.feature \
make test-acceptance-api
```
### Run OCM tests
For running OCM test suite on k8s, we need to deploy a federation ocis server
in a separate namespace on the same cluster, alongside the ocis server:
1. Check if setup [step 3](#deploy-ocis-in-k8s) is done correctly. (`ENABLE_OCM=true`)
2. Prepare Charts for federation oCIS
```bash
OCM=true make prepare-charts
```
3. Deploy federation oCIS
```bash
OCM=true make deploy-ocis
```
4. Run the tests
```bash
TEST_SERVER_URL=https://ocis-server \
TEST_SERVER_FED_URL=https://federation-ocis-server \
K8S=true \
BEHAT_FEATURE=<test-suites-path>/apiOcm/share.feature \
make test-acceptance-api
```
## Cleanup the Setup
To delete the cluster and all the setup resources, run the following command:
```bash
make -C <ocis-root>/tests/config/k8s cleanup
```
This will delete the K8s cluster, ocis-charts, and ocis logs directory.
+81
View File
@@ -0,0 +1,81 @@
#!/bin/bash
set -e
HOST_IP=$(ip route get 1 | awk '{print $7}')
NAMESPACE="ocis-server"
while [[ $# -gt 0 ]]; do
case "$1" in
-n|--namespace)
NAMESPACE="$2"
shift 2
;;
*)
services="$1"
break
;;
esac
done
if [ -z "$services" ]; then
echo "[ERR] No services provided."
echo "Usage: $0 [-n <namespace>] <svc1:port1,svc2:port2,...>"
exit 1
fi
function expose_svc() {
local k8s_endpoint k8s_service svc port server_ip
svc=$1
port=$2
server_ip=$3
k8s_endpoint=$(cat <<EOF
apiVersion: v1
kind: Endpoints
metadata:
name: $svc
namespace: $NAMESPACE
subsets:
- addresses:
- ip: $server_ip
ports:
- port: $port
EOF
)
echo -e "$k8s_endpoint" | kubectl apply -f -
k8s_service=$(cat <<EOF
apiVersion: v1
kind: Service
metadata:
name: $svc
namespace: $NAMESPACE
spec:
ports:
- port: $port
targetPort: $port
EOF
)
echo -e "$k8s_service" | kubectl apply -f -
}
IFS=',' read -ra ADDR <<< "$services"
for service in "${ADDR[@]}"; do
IFS=':' read -ra SVC <<< "$service"
if [ ${#SVC[@]} -ne 2 ]; then
echo "[ERR] Invalid service format (<svc>:<port>): $service"
exit 1
fi
SERVER_IP=$(getent hosts "${SVC[0]}" | awk '{print $1}')
if [ -z "$SERVER_IP" ]; then
echo "[ERR] Could not resolve IP for service ${SVC[0]}"
exit 1
fi
# for localhost services, use the host IP
if [[ "$SERVER_IP" == "127.0.0.1" ]]; then
SERVER_IP="$HOST_IP"
fi
expose_svc "${SVC[0]}" "${SVC[1]}" "$SERVER_IP"
done
+83
View File
@@ -0,0 +1,83 @@
#!/bin/bash
set -e
CHART_REPO="$1"
if [[ -z "$CHART_REPO" ]]; then
echo "[ERR] Chart directory argument missing. Usage: $0 <chart-repo-directory>"
exit 1
fi
if [[ ! -d "$CHART_REPO" ]]; then
echo "[ERR] Path not found: $CHART_REPO"
exit 1
fi
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT="$(cd $SCRIPT_DIR/../../.. && pwd)"
CFG_DIR="$ROOT/tests/config/k8s"
CHT_DIR="$CHART_REPO/charts/ocis"
TPL_DIR="$CHT_DIR/templates"
function patch_templates(){
# patch ocis service templates
for service in "$TPL_DIR"/*/; do
if [[ -f "$service/deployment.yaml" ]]; then
if grep -qE 'ocis.caEnv' "$service/deployment.yaml"; then
sed -i '/.*ocis.caEnv.*/a\{{- include "ocis.extraEnvs" . | nindent 12 }}' "$service/deployment.yaml"
sed -i '/.*ocis.caPath.*/a\{{- include "ocis.extraVolMounts" . | nindent 12 }}' "$service/deployment.yaml"
sed -i '/.*ocis.caVolume.*/a\{{- include "ocis.extraVolumes" . | nindent 8 }}' "$service/deployment.yaml"
else
sed -i '/env:/a\{{- include "ocis.extraEnvs" . | nindent 12 }}' "$service/deployment.yaml"
sed -i '/volumeMounts:/a\{{- include "ocis.extraVolMounts" . | nindent 12 }}' "$service/deployment.yaml"
sed -i '/volumes:/a\{{- include "ocis.extraVolumes" . | nindent 8 }}' "$service/deployment.yaml"
fi
fi
done
# copy custom template resources
cp -r $CFG_DIR/templates/* $TPL_DIR/
# add authbasic service
sed -i "/{{- define \"ocis.basicServiceTemplates\" -}}/a\ {{- \$_ := set .scope \"appNameAuthBasic\" \"authbasic\" -}}" $TPL_DIR/_common/_tplvalues.tpl
# [NOTE]
# Remove schema validation to add extra configs in values.yaml.
# Also this allows us to use fakeoffice as web-office server
rm "$CHT_DIR/values.schema.json"
}
if [[ -f "$CHT_DIR/values.schema.json" ]]; then
patch_templates
fi
if [[ "$ENABLE_ANTIVIRUS" == "true" ]]; then
sed -i '/virusscan:/{n;s|false|true|}' $CFG_DIR/values.yaml
fi
if [[ "$ENABLE_EMAIL" == "true" ]]; then
sed -i '/emailNotifications:/{n;s|false|true|}' $CFG_DIR/values.yaml
fi
if [[ "$ENABLE_TIKA" == "true" ]]; then
sed -i 's|type: basic|type: tika|' $CFG_DIR/values.yaml
fi
if [[ "$ENABLE_WOPI" == "true" ]]; then
sed -i '/appsIntegration:/{n;s|false|true|}' $CFG_DIR/values.yaml
# patch collaboration service
# - allow dynamic wopi src
sed -i -E "s|value: http://.*:9300|value: {{ \$officeSuite.wopiSrc }}|" $TPL_DIR/collaboration/deployment.yaml
fi
if [[ "$ENABLE_OCM" == "true" ]]; then
sed -i '/ocm:/{n;s|false|true|}' $CFG_DIR/values.yaml
fi
if [[ "$ENABLE_AUTH_APP" == "true" ]]; then
sed -i '/authapp:/{n;s|false|true|}' $CFG_DIR/values.yaml
fi
# copy custom values file
cp $CFG_DIR/values.yaml "$CHT_DIR/ci/deployment-values.yaml"
@@ -1,5 +1,4 @@
---
namespaceOverride: ocis
image:
repository: owncloud/ocis-rolling
tag: master
+2
View File
@@ -35,6 +35,7 @@ func serveCmd() *cobra.Command {
ocisConfig.Set("retry", cmd.Flag("retry").Value.String())
ocisConfig.Set("adminUsername", cmd.Flag("admin-username").Value.String())
ocisConfig.Set("adminPassword", cmd.Flag("admin-password").Value.String())
ocisConfig.Set("namespace", cmd.Flag("namespace").Value.String())
if cmd.Flag("skip-ocis-run").Value.String() == "false" {
go ocis.Start(nil)
@@ -52,6 +53,7 @@ func serveCmd() *cobra.Command {
serveCmd.Flags().StringP("admin-username", "", "", "admin username for oCIS server")
serveCmd.Flags().StringP("admin-password", "", "", "admin password for oCIS server")
serveCmd.Flags().Bool("skip-ocis-run", false, "Skip running oCIS server")
serveCmd.Flags().StringP("namespace", "n", ocisConfig.Get("namespace"), "K8s namespace of oCIS server")
return serveCmd
}
+1
View File
@@ -6,6 +6,7 @@ var config = map[string]string{
"retry": "5",
"adminUsername": "",
"adminPassword": "",
"namespace": "ocis",
}
var services = map[string]int{