Commit Graph
24343 Commits
Author SHA1 Message Date
Pascal Bleser acb16b538a fix(graph): return the identities of the identity backend on /me
Without $expand=memberOf, GET /me built the user from the CS3 user of
the request context. That user doesn't know the identities the user
signed in with, so identities[].issuerAssignedId contained the internal
user ID instead of the subject assigned by the identity provider, which
the identity backend stores when the user is provisioned. Only requests
with $expand=memberOf read the user from the identity backend and
returned the correct value.

GET /me now always reads the user from the identity backend. The group
memberships are still only looked up when $expand=memberOf asks for
them, so a plain /me costs one more user lookup in the identity
backend.

This changes the response of a plain GET /me in two cases:
- users for whom the identity backend has no stored identity, e.g.
  users created through the API rather than signed in through an
  identity provider, get no identities at all, instead of one that
  wrongly carried the internal user ID
- when the identity backend doesn't know the user, /me answers with its
  error (e.g. 404 instead of 200 with a model built from the request
  context)

A failing identity backend is now logged at error level, a user it
doesn't know at debug level.

PERFORMANCE: every plain GET /me now runs one search in the identity
backend (LDAP), where it used to need none.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-12 18:04:58 +01:00
Sara Ahmadi 3999ed0de8 Merge pull request #3881 from asaah262/feat/895-improve-graph-logging-and-tracing
feat(graph): improve logging and tracing for drive item permissions
2026-11-12 15:36:53 +01:00
Sara Ahmadi f12a02b007 feat(graph): log error text and correlate gateway selection failures
Log the error text with every permission failure, at debug and error
level, and the texts of both errors when a fallback returns a different
error than the first attempt.

Log gateway selection failures in the share helpers at error level with
the request id and, where available, the permission id, so they can be
matched with the entry of the calling operation.

Use constants for the log keys, the recipient types and the tracer name,
log the space type of unsupported spaces and the user id of the shared
by me listing, and log an unknown permission type when deleting.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-12 11:58:30 +01:00
Jörn Friedrich Dreyer 9c7ecc1755 Merge pull request #3946 from pbleser-oc/fix/graph-reject-empty-drive-name
fix(graph): reject empty and invisible drive names on update
2026-11-11 13:31:32 +01:00
Sara Ahmadi 84c784ae67 feat(graph): improve logging and tracing for drive item permissions 2026-11-11 12:19:00 +01:00
Sara Ahmadi cb3a906cb6 Merge pull request #3928 from asaah262/feat/899-get-single-sharing-permission
feat(graph): add GET endpoints for single sharing permissions
2026-11-11 12:14:42 +01:00
Jörn Friedrich Dreyer a2c24749a6 Merge branch 'main' into workpagages 2026-11-11 11:54:21 +01:00
Alex Ababii d7e5b97bdf Merge pull request #3857 from maki5/fix/expired_user_token_in_guest_session
Fix/expired user token in guest session
2026-11-11 11:18:06 +01:00
Alex Ababii 3fb1dd3f3f Merge pull request #3938 from maki5/fix/webfinger_panic
fix(webfinger): fix panic in OidcAuth middleware
2026-11-11 10:54:33 +01:00
Dominik Schmidt 078a209c4e Merge pull request #3896 from opencloud-eu/fix/csp-media-src-blob
fix(proxy): allow blob: in media-src for motion and live photo playback
2026-11-11 10:43:56 +01:00
Sara Ahmadi 64a1ac8339 feat(graph): add GET endpoints for single sharing permissions
Assisted-by: Claude Code:claude-opus-5-5
2026-11-10 18:18:01 +01:00
Jörn Friedrich Dreyer 39493c1f37 Merge pull request #3937 from opencloud-eu/fix/client-ip-no-trusted-proxies
fix(middleware): do not build the XFF middleware without trusted proxies
2026-11-10 17:24:51 +01:00
Pascal Bleser 0e265282d2 fix(graph): reject empty and invisible drive names on update
Updating a drive with an empty name ("name": "") succeeded and silently
kept the old name, because the name was only validated when it was
non-empty. Validate it whenever the request contains it, so an empty
name is rejected with 400 like on create. A request without a name, or
with "name": null, still leaves the name unchanged.

Space names were trimmed with strings.TrimSpace, which only removes
Unicode whitespace. Invisible formatting characters such as the
zero-width space (U+200B), the word joiner (U+2060) or the byte order
mark (U+FEFF) aren't whitespace, so a name made only of them was
accepted on create and on update, and showed up as an empty name in
every client. Trim these characters from both ends of the name as
well. Inside a name they are still allowed, since some of them are
needed there, e.g. the zero-width joiner in emoji sequences.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-10 17:16:37 +01:00
Jörn Friedrich Dreyer c292fc9c1f Merge pull request #3939 from dragonchaser/backport-wp2-746
fix(graph): report the space name instead of "." for space roots in sharedByMe
2026-11-10 16:03:42 +01:00
Christian Richter 25534bb010 test(acceptance): add missing blank line before scenario in sharedByMe.feature 2026-11-10 14:38:07 +01:00
Roman Perekhod 1e9919f9ae fix: Fix space root handling in a graph sharedByMe
The drive item name was derived from the resource path. Space roots
have no path ("."), so e.g. the sharedByMe response reported "." as
the name of a shared project space. Use the name provided by the
storage provider and fall back to the base of the path if it is empty.

Adjust the sharedByMe acceptance scenario for link shares of a
project space accordingly: the space root item now carries the name of
the space.
2026-11-10 14:16:07 +01:00
Jannik Stehle 7be14e1ee9 Merge pull request #3932 from opencloud-eu/feat/guest-link-logout
fix(auth-guest): add missing guest link logout endpoint
2026-11-10 13:36:36 +01:00
Andre Duffeck 318991481a Merge pull request #3936 from aduffeck/idcache-nats-only
Remove redis-sentinel from store descriptions
2026-11-10 13:32:52 +01:00
Jörn Friedrich Dreyer 73bfeb00d0 fix(middleware): do not build the XFF middleware without trusted proxies
Starting with chi v5.4.0, ClientIPFromXFF panics when no trusted prefix
is given, so ClientIP would crash the proxy and collaboration services at
startup when no trusted proxies are configured. Without trusted proxies
every request uses the network address anyway, so return
ClientIPFromRemoteAddr.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-10 13:00:28 +01:00
Alex Ababii f8d2b87b8e fix(webfinger): set webfinger insecure with opencloud init --insecure 2026-11-10 12:50:12 +01:00
André Duffeck 487313d06c Remove redis-sentinel from store descriptions
Redis isn't supported anymore. Also note that the posix driver needs
nats-js-kv for the id cache.
2026-11-10 12:26:09 +01:00
Jannik Stehle f5990666d1 feat(auth-guest): add guest link logout endpoint 2026-11-10 10:39:05 +01:00
Jörn Friedrich Dreyer a7970e779e Merge pull request #3285 from opencloud-eu/feat/userlog_event_handler_on_demand
ability to disable http and/or event consumer for user log service
2026-11-09 16:44:55 +01:00
Jörn Friedrich Dreyer 9f6df0cebe Merge branch 'main' into feat/userlog_event_handler_on_demand
Keep main's shared.AllComponentsDisabledError name and use it in
userlog and eventhistory as well.

Assisted-by: Claude Opus 5.5
2026-11-09 15:20:21 +01:00
Benedikt Kulmann 14b9622edd Merge pull request #3923 from opencloud-eu/chore/bump-web-8.2.2-beta.1
[full-ci] chore: bump web to v8.2.2-beta.1
2026-11-09 14:48:38 +01:00
Alex Ababii c71ca6f699 fix(webfinger): fix panic in OidcAuth middleware 2026-11-09 14:33:55 +01:00
Jannik Stehle 0699ef622a chore: bump web to v8.2.2-beta.1 2026-11-09 12:33:14 +01:00
Andre Duffeck 2013f811c3 Merge pull request #3900 from aduffeck/search-index-memory
Bound the memory of bleve indexing
2026-11-09 09:23:36 +01:00
André Duffeck 5bda7ddc9b Document the memory bleve needs for merging 2026-11-09 08:21:57 +01:00
Michael Barz 2edb3e1c7b Merge pull request #3914 from opencloud-eu/fix-healthchecks-2
fix: filter health checks from the pod ip
2026-11-06 15:07:10 +01:00
micbar 1eb3c738b1 fix: filter health checks from the pod ip
The health check calls the address the server listens on. For 0.0.0.0
that is the IP of the pod, not the loopback address. Compare the peer
with the local address of the connection instead.
2026-11-06 14:34:28 +01:00
Alex Ababii ae2116d2bc fix(proxy): fix codacy report in test 2026-11-06 12:29:04 +01:00
Alex Ababii 0a4bf452cd fix(proxy): handle tus upload with guest session through guest links autheticator 2026-11-06 12:29:04 +01:00
Alex Ababii 6441bfabbf fix(proxy): handle guest link signed with jwt 2026-11-06 12:29:04 +01:00
Alex Ababii 007c09d499 fix(proxy): upd guest link authenticator middleware 2026-11-06 12:29:04 +01:00
Alex Ababii 654d02f86d fix(proxy); restrict non guest related credentials in guest link authenticator middelware 2026-11-06 12:29:02 +01:00
Michael Barz 413082e97e Merge pull request #3908 from opencloud-eu/fix/healthcheck-access-log
fix: keep the health checks out of the access log
2026-11-06 09:56:55 +01:00
micbar f558acdfdb fix: keep the health checks out of the access log 2026-11-05 23:00:19 +01:00
Michael Barz 2eb513b16e Merge pull request #3906 from opencloud-eu/fix-tracing-global-propagator
fix(tracing): set the global text map propagator
2026-11-05 17:28:02 +01:00
dependabot[bot] 23399cdcff build(deps): bump github.com/prometheus/client_golang
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.24.1 to 1.25.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.25.0/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.24.1...v1.25.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-05 17:20:56 +01:00
dependabot[bot] 5f349fa28a build(deps): bump github.com/nats-io/nats.go from 1.54.0 to 1.55.0
Bumps [github.com/nats-io/nats.go](https://github.com/nats-io/nats.go) from 1.54.0 to 1.55.0.
- [Release notes](https://github.com/nats-io/nats.go/releases)
- [Commits](https://github.com/nats-io/nats.go/compare/v1.54.0...v1.55.0)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats.go
  dependency-version: 1.55.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-05 17:20:10 +01:00
dependabot[bot] 4234cc047e build(deps): bump github.com/kovidgoyal/imaging from 1.8.23 to 1.9.0
Bumps [github.com/kovidgoyal/imaging](https://github.com/kovidgoyal/imaging) from 1.8.23 to 1.9.0.
- [Release notes](https://github.com/kovidgoyal/imaging/releases)
- [Commits](https://github.com/kovidgoyal/imaging/compare/v1.8.23...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/kovidgoyal/imaging
  dependency-version: 1.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-05 17:19:36 +01:00
Jörn Friedrich Dreyer dc7f4433a1 fix(tracing): set the global text map propagator
The go-micro tracing wrappers and otelhttp inject and extract the trace
context with the global propagator. Nobody set it, so it stayed the
default no-op: no traceparent went over the wire and every go-micro
service (settings, policies, eventhistory, search) started a new trace
instead of joining the caller's.

GetTraceProvider now also sets the global propagator to the W3C
TraceContext and Baggage propagator we already use elsewhere.

fixes https://github.com/opencloud-eu/opencloud/issues/3856

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-05 16:20:47 +01:00
dependabot[bot] 331855fe99 build(deps): bump google.golang.org/grpc from 1.84.0 to 1.85.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.84.0 to 1.85.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.84.0...v1.85.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.85.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-05 15:13:28 +01:00
André Duffeck a88477aa73 Write one bleve batch at a time
bleve keeps the analysis of a whole batch in memory until it is written, so
batches of spaces reindexed in parallel stacked up their memory.
2026-11-04 15:47:44 +01:00
André Duffeck 51b7c8b0d3 Bound the memory of bleve indexing batches
Push a batch at 16 MiB of document data or before a document would overflow
it. Reindexing large text files ran out of memory otherwise.
2026-11-04 15:47:33 +01:00
Ryo Kusnadi 31722c878e fix(proxy): answer 403 instead of 500 when the role claim is missing
With PROXY_ROLE_ASSIGNMENT_DRIVER=oidc, a token whose claims give no
OpenCloud role made the account resolver answer 500. Mark these claim
errors with userroles.ErrRoleClaim and answer 403 for them. Failures of
the settings or gateway service still answer 500.

Signed-off-by: Ryo Kusnadi <ryokusnadi@gmail.com>
2026-11-04 15:29:30 +01:00
Dominik Schmidt 44ef380168 fix(proxy): allow blob: in media-src for motion and live photo playback 2026-11-04 12:14:54 +01:00
opencloudeu 79b2f33848 [tx] updated from transifex 2026-11-03 23:17:38 +00:00
dependabot[bot] 057e6ecd1f build(deps): bump github.com/KimMachineGun/automemlimit
Bumps [github.com/KimMachineGun/automemlimit](https://github.com/KimMachineGun/automemlimit) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/KimMachineGun/automemlimit/releases)
- [Commits](https://github.com/KimMachineGun/automemlimit/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: github.com/KimMachineGun/automemlimit
  dependency-version: 1.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-03 18:50:35 +01:00