Commit Graph
5471 Commits
Author SHA1 Message Date
Jörn Friedrich Dreyer d6c15b2f5e Merge pull request #4141 from opencloud-eu/fix/audit-legacy-upgrade
[full-ci] fix: audit log follow-ups from the review
2026-11-27 12:20:18 +01:00
Andre Duffeck fd9bb83f78 Merge pull request #3243 from opencloud-eu/fix/graph-get-user-drive-id-or-name
feat(graph): accept user name or id in GetUserDrive
2026-11-27 11:27:19 +01:00
micbar fe15575227 fix(audit): report ignored file settings, audit members added by PATCH
Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 11:20:58 +01:00
Alexander Ackermann 175d5681bc feat(graph): return the creator of a public link
Link permissions now carry their creator as invitation.invitedBy.user,
like user and group shares do.

Fixes #4148

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 08:24:20 +01:00
Florian Schade 8315120894 Merge pull request #4136 from fschade/search-optimize-index
feat(search): add a command to optimize the search index
2026-11-26 20:15:41 +01:00
micbar 0a36e91f0c fix: audit log follow-ups from the review
Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 17:26:25 +01:00
micbar 8d42270543 refactor(audit): build the audit emitter in one place 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 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
Florian Schade d275718077 feat(search): add a command to optimize the search index 2026-11-26 15:24:55 +01: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
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
Dominik Schmidt a541fac41d feat(graph): accept user name or id in GetUserDrive
GetUserDrive only resolved the personal drive when the {user-id} path
segment was the user's opaque id; a user name (which GetUser accepts)
returned 404. Resolve the segment through the identity backend first
(skipping the /me/drive self case), so both an id and a name work. Also
add GetUserDrive to the Service interface, consistent with the other
user handlers.
2026-11-25 23:23:36 +01: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
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
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
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
Pascal Bleser 153c046778 fix(proxy): redirect to HTTPS on the host of OC_URL
The proxy redirected requests forwarded as plain HTTP to https:// plus
the Host header of the request. The client controls that header, so the
redirect could send users to any other site (open redirect).

The redirect now uses the host of OC_URL, the URL where OpenCloud is
reachable for users, and keeps the path and query of the request as the
client escaped them. If OC_URL can't be parsed or has no host, requests
are passed on without a redirect, and the proxy logs why at startup.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 09:34:44 +01:00
Sara Ahmadi e7ddde8ce0 Merge pull request #4114 from asaah262/test/861-auth-app-token-label
test(auth-app): cover custom labels of app tokens and document the label parameter
2026-11-25 09:16:15 +01:00
Sara Ahmadi f4ab61990d Merge pull request #4116 from asaah262/fix/865-hsts-include-subdomains
fix(proxy): add includeSubDomains to the Strict-Transport-Security header
2026-11-25 09:11:48 +01:00
opencloudeu 99899755c6 [tx] updated from transifex 2026-11-24 23:17:30 +00:00
Florian Schade 93a514c6da Merge pull request #4113 from fschade/fix-search-extraction-state
feat(search): keep tika out of tag updates and retry incomplete extractions
2026-11-24 18:27:49 +01:00
Florian Schade cf5a087de2 fix(search): index files by name while tika is unreachable 2026-11-24 17:51:11 +01:00
Florian Schade 7577dbfd5d fix(search): cap and space the retries of unparsable files 2026-11-24 17:37:54 +01:00
Sara Ahmadi b9a39ea2d5 fix(proxy): add includeSubDomains to the Strict-Transport-Security header
Assisted-by: Claude Code:claude-opus-5-5
2026-11-24 16:55:55 +01:00
Florian Schade 8dc18b7f1d refactor(search): drop UpsertItem and reuse the stat in UpdateMetadata 2026-11-24 16:44:45 +01:00
Florian Schade 23f890cd62 fix(search): index failed extractions by name and retry them 2026-11-24 16:23:29 +01:00
Florian Schade 6cfc198663 fix(search): keep existing index entries out of the upgrade reindex 2026-11-24 16:20:57 +01:00
Sara Ahmadi 05933a6932 test(auth-app): cover custom labels of app tokens and document the label parameter
Assisted-by: Claude Code:claude-opus-5-5
2026-11-24 15:18:06 +01:00
Florian Schade 4e3d952c13 fix(search): keep tika out of tag updates and retry incomplete extractions 2026-11-24 14:12:19 +01:00
Sara Ahmadi 9095f76f52 feat(audit): log the space name when a space is deleted
Assisted-by: Claude Code:claude-opus-5-5
2026-11-24 13:14:50 +01:00
Pascal Bleser 0b73e9ecf8 Merge pull request #3778 from pbleser-oc/feat/1419-clean-up-file-versions
feat: clean up old revisions according to a cleanup strategy
2026-11-24 12:15:43 +01:00
Florian Schade 27b89c8e1a Merge pull request #3652 from opencloud-eu/feat/search-report-facets
feat(webdav): add facets to REPORT hits
2026-11-24 11:53:04 +01:00
Sara Ahmadi 4e0b8f483b Merge pull request #4092 from asaah262/test/856-basic-challenge-app-auth
test(proxy): cover the authentication challenges for basic auth and app tokens
2026-11-24 11:46:12 +01:00
Sara Ahmadi 245bc7aa66 Merge pull request #4101 from asaah262/fix/858-selector-cookie-flags
fix(proxy): set Secure, HttpOnly and SameSite=Strict on the policy selector cookie
2026-11-24 11:45:23 +01:00
Sara Ahmadi 1aa9a5a80d test(proxy): build the test metrics from the default config
Assisted-by: Claude Code:claude-opus-5-5
2026-11-24 11:31:53 +01:00
Pascal Bleser 5e8a88a05f feat: 1419: clean up revisions by the time they were created
Follows opencloud-eu/reva#895, which makes the revision cleanup go by
the time a revision was created, recorded by the server, instead of the
modification time of its content, which clients choose with X-OC-Mtime.
"auto" keeps the oldest revision of each slot (#3735).

- The storage-users README explains the new age of a revision.
- The acceptance scenario outline that checked the age as the time the
  content was written is replaced by two scenarios: versions whose
  content is dated 60 and 50 days ago are kept by "30d", and a version
  with content dated 10 years ahead doesn't push out the newest one
  under "1".

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 23:59:43 +01:00
Pascal Bleser a9b16e6745 fix: 1419: describe what a file metadata cache local to each process does
The revisions cleanup command, its help and the README said that, with
a cache local to each process, the server would keep listing the
revisions the command deleted until their cache entries expire or it
restarts. It doesn't: the server lists the revisions of a file from
disk. What it doesn't learn about is that they were deleted, so a list
of versions that is already open, e.g. in the Versions panel, keeps
showing them, and downloading or restoring one of them fails.

The command still refuses to run with such a cache, unless
--allow-local-cache is given: a shared cache is the right setup for a
command that changes the storage next to the server.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 23:59:43 +01:00
Pascal Bleser 498e5030e7 feat: 1419: let a dry run of the revisions cleanup keep a cache of its own
A dry run reads the metadata of every file it looks at. With a file
metadata cache shared with the server, e.g. 'nats-js-kv', it filled
that cache with entries for all of them, for a run that changes
nothing.

A dry run now always keeps its file metadata cache in its own memory,
whatever is configured. It doesn't need the shared cache: it deletes
nothing the server would have to see, and a cache of its own starts
empty, so it reads the metadata from disk. A real run still uses the
configured cache, which must be shared.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 23:59:43 +01:00
Pascal Bleser cae8a78da9 docs: 1419: a restore keeps the revision of the replaced content
The revision cleanup doesn't apply the strategy to the revision a
restore created of the content it replaced, not even an age limit,
as long as the file has the restored content. Say so next to the
strategies, as it is an exception admins wouldn't expect.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 23:59:43 +01:00