Commit Graph
24682 Commits
Author SHA1 Message Date
oauth 3d677fa52b Merge branch 'origin/main' into 'next-release/main' 2026-11-26 16:29:37 +00:00
Viktor Scharf 1a9ae68995 tests: use mailpit instead of inbucket as the email server (#4138)
The local dev setup of web switched from inbucket to mailpit
(opencloud-eu/web#4059). Use mailpit for the acceptance tests too, in the
CI, the docker setup and the README, so that one mail catcher is used
everywhere.

The tests now read and delete the emails through the API of mailpit
(port 8025), and the server sends them via SMTP to port 1025. mailpit's
search also matches parts of addresses, so EmailHelper narrows the results
down to the mailbox (the local part of the address), as inbucket did.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 17:26:47 +01:00
oauth be5680987f 🎉 Release 9.3.0 2026-11-26 15:55:46 +00:00
oauth 58186a054d Merge branch 'origin/main' into 'next-release/main' 2026-11-26 15:55:45 +00:00
micbar 8d42270543 refactor(audit): build the audit emitter in one place 2026-11-26 16:52:55 +01:00
micbar 6b21f018dc docs(adr): add the audit decisions from the first implementation
target and path semantics, the public link as actor, roles and recipients in share records, one login per OIDC session, the link access dedupe, the output ordering and why strict comes later.
2026-11-26 16:52:55 +01:00
micbar 1b3790e6f1 feat: pass the audit settings to the reva services
frontend, sharing and storage-users pass the audit settings and the service version to the reva audit emitters. `best_effort` is the only mode for now, any other value stops the service. The frontend keeps the events endpoint the archiver needs for its records.
2026-11-26 16:52:55 +01:00
micbar c684897e3e feat(graph): audit user, group and role changes
Also records denied space creation and data exports of other users.
2026-11-26 16:52:55 +01:00
micbar 1edcc57d88 feat(proxy): audit logins, public link access and backchannel logouts
The proxy builds the audit request context: client address (PROXY_CLIENT_IP_HEADER behind trusted proxies), user agent, auth method, session and OIDC client. A value a client sent in X-Audit-Context is dropped.

A login is recorded once per OIDC session and client, not per access token. Public link access is recorded with the client address, failed attempts every time.
2026-11-26 16:52:55 +01:00
micbar a12cca9a5f feat: read the audit request context in the HTTP services
The HTTP services put the X-Audit-Context header of the proxy into the request context, so it reaches reva with the next call.
2026-11-26 16:52:55 +01:00
micbar 2b8bd6c51a feat(audit): write audit records from the audit stream
The audit service reads the JetStream stream `audit` and writes every record as one line of JSON to stdout and, if configured, to an OTLP endpoint, with the emitting service in the resource. A record is acknowledged only when all outputs have it, so an output outage keeps the records in the stream, in order and without duplicates. The old audit log stays available with AUDIT_LEGACY_ENABLED.

Adds the OpenTelemetry log packages for the OTLP output.
2026-11-26 16:52:55 +01:00
Michael Barzandv.scharf 0629702ecf docs: label reva bumps by the changes they bring in (#4135)
* docs: label reva bumps by the changes they bring in

Assisted-by: Claude Code:claude-opus-5-5

* docs: label web bumps by the changes they bring in

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: v.scharf <v.scharf@opencloud.eu>
2026-11-26 15:00:36 +01:00
Michael Barz 8a88976436 build: bump reva to the first part of the audit log (#4134)
Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 13:28:08 +00:00
oauth 272791e91f 🎉 Release 9.3.0 2026-11-26 12:49:52 +00:00
oauth d68c00adae Merge branch 'origin/main' into 'next-release/main' 2026-11-26 12:49:52 +00:00
Florian Schade 335e482a96 Merge pull request #4133 from fschade/search-oversized-metadata
fix(search): extract the metadata of files over the size limit
2026-11-26 13:46:59 +01:00
oauth c8d1a99a8d 🎉 Release 9.3.0 2026-11-26 12:45:58 +00:00
oauth 767881501c Merge branch 'origin/main' into 'next-release/main' 2026-11-26 12:45:57 +00:00
Viktor Scharf 993a616ae9 tests: renew the bearer token on 401 instead of checking it before each request (#4126)
Before each request with a bearer token, the test helper sent a
GET /graph/v1.0/me to check that the cached token is still valid, which
doubled the number of requests. Now the request is sent with the cached
token right away, and on a 401 the token is renewed and the request sent
once more.

Also drop the retry while the share manager is migrating, which is no
longer needed.
2026-11-26 13:43:10 +01:00
oauth e676e504a4 🎉 Release 9.3.0 2026-11-26 11:25:34 +00:00
oauth 0d3465cefe Merge branch 'origin/main' into 'next-release/main' 2026-11-26 11:25:33 +00:00
Sara Ahmadi 5587308559 Merge pull request #4125 from asaah262/fix/868-web-asset-index-fallback
fix(web): serve the index fallback without recursion and handle file errors
2026-11-26 12:22:53 +01:00
Sara Ahmadi 3158e83185 fix(web): check for a NUL byte in the asset name instead of treating EINVAL as no file
Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 10:47:19 +01:00
oauth 036bf5eaff 🎉 Release 9.3.0 2026-11-26 08:49:43 +00:00
oauth fe7a662483 Merge branch 'origin/main' into 'next-release/main' 2026-11-26 08:49:43 +00:00
Viktor Scharf 21123271d3 tests: set the response only in When steps (#4121)
Helpers and Given/Then steps no longer store their response, so a Then
step can't pass on a response left over from an earlier step:
- favorite helpers, used by Given steps too, return the response
- the preview Given/Then steps and the space entry Then steps pass their
  response explicitly instead of storing it
- the rename by file id and set property steps are When steps
- the wopi, trashbin, colon path and revisions cleanup helpers return the
  response to their When steps
2026-11-26 08:47:07 +00:00
Sara Ahmadi ac365de8db fix(web): log file errors of the asset server and answer server errors with 500
Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 18:24:51 +01:00
Florian Schade 701a26dfb0 fix(search): extract the metadata of files over the size limit 2026-11-25 15:50:10 +01:00
oauth f549c5a90c 🎉 Release 9.3.0 2026-11-25 13:51:43 +00:00
oauth 722db3a3f2 Merge branch 'origin/main' into 'next-release/main' 2026-11-25 13:51:43 +00:00
Pascal Bleser a6806bb603 Merge pull request #4120 from pbleser-oc/fix/867-https-redirect-trusted-host
fix(proxy): redirect to HTTPS on the host of OC_URL
2026-11-25 14:48:34 +01:00
oauth dc99197272 🎉 Release 9.3.0 2026-11-25 13:37:43 +00:00
oauth dd4d353b97 Merge branch 'origin/main' into 'next-release/main' 2026-11-25 13:37:43 +00:00
Florian Schade 301a60e99b Merge pull request #4123 from fschade/search-extraction-retry
feat(search): retry extractions tika could not answer during a walk
2026-11-25 14:34:50 +01:00
Florian Schade b6a3e39f08 fix(search): count only extractions that reach tika in the walk 2026-11-25 14:02:20 +01:00
Florian Schade b7a169671d fix(search): probe tika version to tell a hanging tika from a slow file 2026-11-25 13:34:16 +01:00
Florian Schade 960ff63db3 fix(search): count extraction timeouts against the file, retry on 429 2026-11-25 13:21:45 +01:00
Sara Ahmadi 63f17a94d0 fix: serve the web index fallback without recursion and handle file errors
Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 12:56:19 +01:00
Florian Schade 12e7b86344 fix(search): retry only unreachable extractions and bound each attempt 2026-11-25 12:29:02 +01:00
oauth 2123318738 🎉 Release 9.3.0 2026-11-25 10:34:44 +00:00
oauth d708e1c81e Merge branch 'origin/main' into 'next-release/main' 2026-11-25 10:34:43 +00:00
Florian Schade 98b9dec0f3 Merge pull request #4122 from opencloud-eu/fix/search-typed-field-values
fix(search): answer text on numeric and date fields the same on both engines
2026-11-25 11:31:44 +01:00
oauth b615f61b98 🎉 Release 9.3.0 2026-11-25 10:31:44 +00:00
oauth 6d40a79716 Merge branch 'origin/main' into 'next-release/main' 2026-11-25 10:31:43 +00:00
Viktor Scharf 32e72ca224 tests: check access of guests and sharees outside of the shared resource (#3771)
* tests: check access of guests and sharees outside of the shared resource

* tests: return responses from helpers and set them only in When steps
2026-11-25 11:28:23 +01:00
Florian Schade debbeae2cb feat(search): retry extractions tika could not answer during a walk 2026-11-25 11:13:32 +01:00
Dominik Schmidt c3a08d88da fix(search): answer text on numeric and date fields the same on both engines
A text restriction on a numeric field reached the engines as is. bleve found nothing for size:>100 or size:50..500, OpenSearch failed the search with a number format exception. size=50 only matched on OpenSearch.

Both engines now read the value of such a restriction as a number and match it as a whole, with : and with =. Anything that is no number matches nothing, and so does text on a date field. size:>100 is not KQL, the range form is size>100; old iOS clients still send the colon form.

The field type comes from one table of all fields, built from the walk the mapping validation uses. It replaces the separate walk for numeric fields, which left out the parts of a location: location.altitude>1000 now matches, the parts are indexed as numbers next to the geopoint.

The parity suite covers >=, <=, combined ranges, number equality, the colon forms and the location parts.
2026-11-25 10:58:30 +01:00
oauth 2fd9822632 🎉 Release 9.3.0 2026-11-25 08:49:07 +00:00
oauth b60db8b64e Merge branch 'origin/main' into 'next-release/main' 2026-11-25 08:49:06 +00:00
Florian Schade 9ebb6a75a6 Merge pull request #4015 from pbleser-oc/fix/mise-check-lint
fix(mise): run the pinned golangci-lint in the check:lint task
2026-11-25 09:46:19 +01:00