Jörn Friedrich Dreyer
a69677cecf
feat(policies): leave unknown request lengths out of the policy input
...
content_length was 0 both for an empty body and for a body of unknown
length, e.g. a PUT with chunked transfer encoding. A policy could not
reject uploads that do not declare their size.
The lengths are now proto3 optional fields and the proxy sets
content_length whenever Go knows it, including 0 for an empty body.
An unknown length leaves the key out of the policy input. Rules that
compare a missing key do not apply, so existing limit rules keep
working, and a policy can reject an undeclared length explicitly with
`not "content_length" in object.keys(input.request)`.
We use field presence instead of -1, because a negative sentinel would
turn a request without lengths, e.g. in the postprocessing stage, into
an empty body.
related: https://github.com/opencloud-eu/opencloud/pull/3903#issuecomment-7273785513
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2026-11-30 12:31:02 +01:00
Jörn Friedrich Dreyer
bd4325b75b
feat(policies): pass request lengths to the proxy policies
...
The proxy policies middleware now passes the Content-Length of the
request body and the TUS Upload-Length header to the policies engine
as input.request.content_length and input.request.upload_length. This
allows rejecting uploads that are too big before any data is
transferred, instead of only in postprocessing after the upload has
completed.
We add them to the request instead of setting resource.size, because
the resource describes the target of the request (the middleware may
even stat it) and in postprocessing resource.size is the actual file
size.
This can only be an early check. The TUS concatenation extension
allows merging several smaller uploads into one file, so the file size
still has to be checked in postprocessing.
protojson encodes uint64 values as strings with camelCase keys, so
NewEnvironmentFromPB copies the lengths explicitly.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2026-11-05 15:28:49 +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
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
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
dependabot[bot]
4c63c900c0
build(deps): bump github.com/go-ldap/ldap/v3 from 3.4.14 to 3.4.15
...
Bumps [github.com/go-ldap/ldap/v3](https://github.com/go-ldap/ldap ) from 3.4.14 to 3.4.15.
- [Release notes](https://github.com/go-ldap/ldap/releases )
- [Commits](https://github.com/go-ldap/ldap/compare/v3.4.14...v3.4.15 )
---
updated-dependencies:
- dependency-name: github.com/go-ldap/ldap/v3
dependency-version: 3.4.15
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-11-03 18:36:26 +01:00
Andre Duffeck
5d0440378d
Merge pull request #3884 from opencloud-eu/fix/webdav-generator-passthrough
...
fix(webdav): stream announced types without a converter to the generator
2026-11-03 14:45:04 +01:00
Dominik Schmidt
e462b8ce27
fix(webdav): stream announced types without a converter to the generator
2026-11-03 11:34:16 +01:00
Jörn Friedrich Dreyer
8e83a0eebc
Merge pull request #3464 from maki5/fix/upd_chi_real_ip
...
fix(chore): upd deprecated chi RealIP middelware
2026-11-03 11:05:58 +01:00
dependabot[bot]
9e8e3c161f
build(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdouttrace
...
Bumps [go.opentelemetry.io/otel/exporters/stdout/stdouttrace](https://github.com/open-telemetry/opentelemetry-go ) from 1.46.0 to 1.47.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.46.0...v1.47.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/stdout/stdouttrace
dependency-version: 1.47.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-11-02 17:28:09 +01:00
dependabot[bot]
18a71463d4
build(deps): bump golang.org/x/image from 0.46.0 to 0.47.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.46.0 to 0.47.0.
- [Commits](https://github.com/golang/image/compare/v0.46.0...v0.47.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.47.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-11-02 17:06:51 +01:00
dependabot[bot]
bc88811cae
build(deps): bump golang.org/x/net from 0.61.0 to 0.62.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.61.0 to 0.62.0.
- [Commits](https://github.com/golang/net/compare/v0.61.0...v0.62.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.62.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-11-02 16:25:05 +01:00
Michael Barz
8cf11bf0ba
Merge pull request #3855 from opencloud-eu/adr-auditing
...
docs: add audit logging ADR
2026-11-02 16:14:01 +01:00
Andre Duffeck
e140d0250e
Merge pull request #3853 from aduffeck/smtp-encryption-3844
...
Point to the encryption setting when the SMTP server requires STARTTLS
2026-11-02 11:17:19 +01:00
micbar
b7bb4fbe8c
fix: client address for clients in a private network and behind the proxy
2026-11-02 10:25:18 +01:00
Andre Duffeck
12d8edb6e7
Merge pull request #3858 from aduffeck/kql-quote-escaping
...
Support doubled quotes in KQL values
2026-11-02 08:56:40 +01:00
dependabot[bot]
a2522d27bb
build(deps): bump golang.org/x/net from 0.59.0 to 0.61.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.59.0 to 0.61.0.
- [Commits](https://github.com/golang/net/compare/v0.59.0...v0.61.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.61.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-11-02 08:55:41 +01:00
opencloudeu
5ccce9c7e7
[tx] updated from transifex
2026-10-31 23:17:01 +00:00
Andre Duffeck
70fbc9fcb6
Merge pull request #3516 from opencloud-eu/fix/search-kql-path-normalization
...
fix(search): normalize KQL path once
2026-10-30 16:18:52 +01:00
Andre Duffeck
4118cd0b11
Merge pull request #3142 from opencloud-eu/fix/opensearch-bulk-item-errors
...
fix(search): report rejected documents when indexing to OpenSearch
2026-10-30 16:18:49 +01:00
micbar
4e7ebd4f8c
fix: only trust forwarding headers from trusted reverse proxies
...
chi's ClientIPFrom* header middlewares trust the header from anyone who can
reach us. Pick the middleware per request instead: headers are only read
when the peer is a trusted proxy, everyone else gets their network address.
- PROXY_TRUSTED_PROXIES, defaults to loopback and private ranges
- PROXY_CLIENT_IP_HEADER, defaults to X-Forwarded-For, e.g. CF-Connecting-IP
- drop the strategy setting and xff_trusted_hops
- pass the client address to the services in X-Forwarded-For instead of
X-Client-Ip, reva reads it e.g. for OCM
- same check in collaboration, traefik routes to it directly
- OC_TRUSTED_PROXIES and OC_CLIENT_IP_HEADER set both services
- the other services only drop RealIP, none of them reads the address
Taken from #3864 and https://github.com/opencloud-eu/opencloud/pull/3464#issuecomment-6494799883
# Conflicts:
# services/proxy/README.md
2026-10-30 15:15:22 +01:00
Alex Ababii
cf0f06e060
select correct chi middleware to get real IP based on config values
2026-10-30 15:13:55 +01:00
Alex Ababii
2230f93bfb
upd test
2026-10-30 15:13:55 +01:00
Alex Ababii
850f1714a1
upd deprecated chi RealIP middelware
2026-10-30 15:13:54 +01:00
Michael Barz
1f45d322fa
Merge pull request #3865 from opencloud-eu/addOssScannerDocker
...
Add files for the Anthropic OSS-Scanner to run
2026-10-30 15:11:42 +01:00
Dominik Schmidt
e1f313be98
fix(search): keep a leading wildcard in place of the KQL path prefix
2026-10-30 12:56:41 +01:00
Dominik Schmidt
ff482878d3
fix(search): keep pushing a batch after a rejected bulk, join the errors
2026-10-30 11:53:45 +01:00
Klaas Freitag
1248f08a8b
Add files for the Anthropic OSS-Scanner to run
2026-10-30 11:25:59 +01:00
Dominik Schmidt
4a720c1a86
fix(search): resolve KQL path values like the scope path
2026-10-30 11:23:00 +01:00
Andre Duffeck
120750d8d5
Merge pull request #3476 from opencloud-eu/fix/graph-children-allowed-values
...
fix(graph): expose allowedValues on driveItem children
2026-10-30 11:11:32 +01:00
Andre Duffeck
b8cc9c6eb5
Merge pull request #3496 from opencloud-eu/fix/search-geopoint-range
...
fix(search): index resources with out-of-range coordinates without a geopoint
2026-10-30 11:08:31 +01:00
Andre Duffeck
e8bc4c8ced
Merge pull request #3682 from opencloud-eu/fix/search-stale-facet-metadata
...
perf(search): skip unchanged facet keys when storing metadata
2026-10-30 10:33:18 +01:00
Dominik Schmidt
9a870295d9
perf(search): skip unchanged facet keys when storing metadata
2026-10-30 10:06:51 +01:00
André Duffeck
ff742249ba
Only read a KQL value as a date, number or boolean when it is the whole value
2026-10-30 08:54:05 +01:00
Andre Duffeck
5b1efe5eb1
Merge pull request #3862 from aduffeck/search-stale-facets
...
Remove facet metadata the indexer no longer extracts
2026-10-30 08:40:59 +01:00
opencloudeu
cb585561b3
[tx] updated from transifex
2026-10-29 23:17:07 +00:00
micbar
45347352e5
docs: add audit logging ADR
2026-10-29 21:55:14 +01:00
Ralf Haferkamp
4e1ea5371b
test(graph): wait for event metrics before asserting
...
The mock backend finished before the event counter was incremented,
allowing the assertion to run too early. Wait for the counter and stop
the consumer during cleanup.
2026-10-29 16:59:11 +01:00
Ralf Haferkamp
606fe4ee1b
fix(storage): map legacy drivers to supported backends
...
Related: #3819
2026-10-29 16:59:11 +01:00
Ralf Haferkamp
5419a17fae
fix(storage-users): use configured storage for stale node cleanup
2026-10-29 16:59:11 +01:00
André Duffeck
ad834302be
Remove facet metadata the indexer no longer extracts
2026-10-29 15:57:56 +01:00
André Duffeck
fef2b7e3fa
Support doubled quotes in KQL values
...
Fixes #3666
2026-10-29 10:00:59 +01:00
dependabot[bot]
6bfce08bfa
build(deps): bump go.opentelemetry.io/otel/sdk from 1.46.0 to 1.47.0
...
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go ) from 1.46.0 to 1.47.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.46.0...v1.47.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
dependency-version: 1.47.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-10-29 09:26:55 +01:00
dependabot[bot]
2a0f4d47ee
build(deps): bump github.com/tidwall/gjson from 1.19.0 to 1.20.0
...
Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson ) from 1.19.0 to 1.20.0.
- [Commits](https://github.com/tidwall/gjson/compare/v1.19.0...v1.20.0 )
---
updated-dependencies:
- dependency-name: github.com/tidwall/gjson
dependency-version: 1.20.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-10-29 09:26:38 +01:00
opencloudeu
b806773a08
[tx] updated from transifex
2026-10-28 23:17:12 +00:00
André Duffeck
265126aab5
Point to the encryption setting when the SMTP server requires STARTTLS
...
With encryption set to none the server only answers 530, which doesn't hint at NOTIFICATIONS_SMTP_ENCRYPTION. See #3844 .
2026-10-28 15:56:26 +01:00
dependabot[bot]
5d745311f7
build(deps): bump github.com/davidbyttow/govips/v2 from 2.19.0 to 2.20.0
...
Bumps [github.com/davidbyttow/govips/v2](https://github.com/davidbyttow/govips ) from 2.19.0 to 2.20.0.
- [Release notes](https://github.com/davidbyttow/govips/releases )
- [Commits](https://github.com/davidbyttow/govips/compare/v2.19.0...v2.20.0 )
---
updated-dependencies:
- dependency-name: github.com/davidbyttow/govips/v2
dependency-version: 2.20.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-10-28 14:49:40 +01:00
dependabot[bot]
242117714d
build(deps): bump github.com/onsi/ginkgo/v2 from 2.33.0 to 2.33.1
...
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo ) from 2.33.0 to 2.33.1.
- [Release notes](https://github.com/onsi/ginkgo/releases )
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/onsi/ginkgo/compare/v2.33.0...v2.33.1 )
---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
dependency-version: 2.33.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-10-28 14:49:11 +01:00
dependabot[bot]
832771aa88
build(deps): bump github.com/shamaton/msgpack/v2 from 2.4.2 to 2.4.4
...
Bumps [github.com/shamaton/msgpack/v2](https://github.com/shamaton/msgpack ) from 2.4.2 to 2.4.4.
- [Release notes](https://github.com/shamaton/msgpack/releases )
- [Changelog](https://github.com/shamaton/msgpack/blob/v2.4.4/CHANGELOG.md )
- [Commits](https://github.com/shamaton/msgpack/compare/v2.4.2...v2.4.4 )
---
updated-dependencies:
- dependency-name: github.com/shamaton/msgpack/v2
dependency-version: 2.4.4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-10-28 14:48:53 +01:00