Julian Koberg
f9c095b36e
Revert "fix: [OCISDEV-237] fix proxy"
...
This reverts commit 7ec667d4b1 .
2025-10-01 15:20:16 +02:00
Lukas Hirt
c620c0c030
Merge pull request #11687 from owncloud/feat/drop-remote-php
...
[full-ci] feat: [OCISDEV-330] drop remote.php prefix
2025-09-25 09:36:49 +02:00
kobergj
2f1ab88b8b
Merge pull request #11603 from owncloud/oidc_claims_checker
...
feat: add a way to check for specific OIDC claims
2025-09-24 13:43:53 +02:00
Lukas Hirt
1b83d986f9
feat: [OCISDEV-330] drop remote.php prefix
...
The `remote.php` prefix is now fully optional in WebDAV endpoints and is never returned in responses.
2025-09-24 11:25:27 +02:00
Julian Koberg
dda6104722
feat: document mfa package
...
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com >
2025-09-18 16:23:14 +02:00
Julian Koberg
824a71dbe2
feat: clean up mfa middleware
...
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com >
2025-09-17 15:56:04 +02:00
Lukas Hirt
dcd3dc6a77
fix: [OCISDEV-330] add OCS v2 capabilities endpoint to public paths
...
Following the same behavior as OCS v1, we added the OCS v2 capabilities
endpoint to the public paths.
2025-09-17 14:54:16 +02:00
Julian Koberg
eeeeba199b
feat: move mfa checks to handlers
...
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com >
2025-09-17 12:42:28 +02:00
Julian Koberg
5052c65526
feat: use middleware for mfa checks
...
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com >
2025-09-17 12:42:28 +02:00
Juan Pablo Villafáñez
7b053e808a
fix: adjust unit tests
2025-09-17 12:42:28 +02:00
Juan Pablo Villafáñez
c0e5c1678d
feat: allow custom headers on authentication failures
2025-09-17 12:42:28 +02:00
Juan Pablo Villafáñez
ed95f21269
feat: add a way to check for specific OIDC claims
...
For now, only some hardcoded paths will check the claims (if there is a
checker configured). If the check fails for those paths, the
authentication will fail and it will return a 401 error
2025-09-17 12:42:28 +02:00
Roman Perekhod
1800cc85b1
Merge pull request #11628 from 2403905/issues/OCISDEV-278
...
feat: [OCISDEV-278] X-XSS-Protection header removed
2025-09-16 16:39:34 +02:00
Michal Klos
70dd34eb84
fix: [ocisdev-266] code scan #27
2025-09-04 15:14:19 +02:00
Roman Perekhod
7ec667d4b1
fix: [OCISDEV-237] fix proxy
2025-09-04 11:38:06 +02:00
Roman Perekhod
d9bf69014f
feat: [OCISDEV-278] X-XSS-Protection header removed
2025-09-02 18:02:53 +02:00
Roman Perekhod
55fe5bd3ec
feat: [OCISDEV-147] use the signing-key for a public link
2025-08-19 17:42:26 +02:00
Juan Pablo Villafañez
a46cd29cc9
Merge pull request #11573 from owncloud/otelhttp_for_tracing
...
Otelhttp for tracing
2025-08-07 13:48:02 +02:00
Michal Klos
112ed96f2b
fix: hsts
2025-08-04 11:54:12 +02:00
Juan Pablo Villafáñez
01a9713b52
feat: use otelhttp for tracing, fix tracing in proxy
...
otelchi and other custom solutions have been replaced with otelhttp to
trace HTTP requests; new middleware is provided to be used across the
platform.
The proxy service will use a custom HTTP client to forward the headers
needed for telemetry automatically (also based on otelhttp)
2025-07-31 11:06:33 +02:00
Michal Klos
6e118bb6c5
fix: cookies, missing SameSite
2025-06-12 10:49:44 +02:00
Michal Klos
ae73db933b
fix: cookie, missing secure flag
2025-06-10 10:24:58 +02:00
Julian Koberg
746adb66b0
feat(proxy): allow multiple space claims
...
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local >
2025-05-06 15:23:31 +02:00
Julian Koberg
02072c37c4
feat(proxy): claim managed spaces
...
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local >
2025-04-30 17:20:23 +02:00
Roman Perekhod
bb9d09b627
Allow the app-auth announce www-authenticate: basic header.
2025-03-12 09:18:38 +01:00
Julian Koberg
b979844791
feat(ocis): adjust reva imports
...
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local >
2025-03-05 11:14:44 +01:00
Juan Pablo Villafáñez
69864b8ab9
feat: improve logs when a context is canceled in the proxy
2024-11-19 11:25:40 +01:00
Roman Perekhod
3a060331f7
fixed an idp guest role default assignment
2024-11-07 17:57:01 +01:00
Jörn Friedrich Dreyer
7fd8284daf
mark header to not show up as a potential password leak G101
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-10-22 10:57:01 +02:00
André Duffeck
bea1deebba
Work around a problem with reverse proxies changing URLs being signed
...
Fixes https://github.com/owncloud/ocis/issues/10180
2024-10-04 09:50:58 +02:00
Ralf Haferkamp
cb8934081f
proxy(oidc): Emit a UserSignedIn event on new session
...
Every time the OIDC middleware sees a new access token (i.e when it needs
to update the userinfo cache) we consider that as a new login. In this case
the middleware add a new flag to the context, which is then used by the
accountresolver middleware to publish a UserSignedIn event.
The event needs to be sent by the accountresolver middleware, because only
at that point we know the user id of the user that just logged in.
(It would probably makes sense to merge the auth and account middleware into a
single component to avoid passing flags around via context)
2024-09-17 16:02:47 +02:00
Ralf Haferkamp
109b23966c
bump some jwt related go modules to current version
...
go-jwt/jwt to v5.2.1
MicahParks/keyfunc to v2.1.0
2024-08-26 15:35:15 +02:00
Juan Pablo Villafañez
faf162704e
Merge pull request #9684 from owncloud/collaboration_improved_tracing
...
feat: include additional metadata for tracing the collaboration service
2024-08-13 11:35:52 +02:00
jkoberg
e7fd04bbe3
feat(tusd): bump tusd pkg to v2.4.0
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-08-07 09:13:50 +02:00
Juan Pablo Villafáñez
a5d27b2f98
feat: include additional metadata for tracing the collaboration service
2024-08-05 13:15:12 +02:00
jkoberg
3b3d30159d
fix(proxy): fix build after rebase
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-07-23 08:58:07 +02:00
Thomas Müller
7005cbc0fc
feat: add unit test for app auth middleware
2024-07-23 08:58:07 +02:00
Thomas Müller
4fa7ea0b20
feat: add cli command to generate app token for user
2024-07-23 08:58:07 +02:00
Thomas Müller
43403edfb8
feat: reva app auth
2024-07-23 08:58:07 +02:00
Jörn Friedrich Dreyer
b2255bb3d5
Log user agent and remote addr on auth errors
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-07-16 12:41:04 +02:00
Ralf Haferkamp
ff6674f97b
Fix fallout of reva bump
...
reva tries to avoid copying proto messages now. This changed some calls
to take pointers now (mainly e.g. FormatResourceId())
2024-07-11 15:21:56 +02:00
Ralf Haferkamp
0d65908e82
autoprovisioning: sync group memberships
...
Add support for autoprovisioning group memberships from OIDC claims.
Users are added to and removed from groups based on the value of an OIDC
claim. If a group does not exist, it is created.
Closes : #5538
2024-07-08 09:32:23 +02:00
Michael Barz
ccb8228edd
fix: bump upstream sec middleware
2024-06-10 17:20:38 +02:00
Roman Perekhod
c7281599d4
replacement for TokenInfo endpoint
2024-05-28 09:29:08 +02:00
Ralf Haferkamp
7ca8391ce2
feat(proxy): Update selected attributes of autoprovisioned users
...
When autoprovisioning is enabled, we now update autoprovisioned users when their
display name or email address claims change.
Closes : #8955
2024-05-15 13:30:45 +02:00
Thomas Müller
4f7480d322
feat: drop github.com/a8m/envsubst in favor of gookit/config ( #9028 )
2024-04-30 18:05:58 +02:00
Thomas Müller
bdbba929d0
feat: add CSP and other security related headers in the oCIS proxy service ( #8777 )
...
* feat: add CSP and other security related headers in the oCIS proxy service
* fix: consolidate security related headers - drop middleware.Secure
* fix: use github.com/DeepDiver1975/secure
* fix: acceptance tests
* feat: support env var replacements in csp.yaml
2024-04-26 09:10:35 +02:00
Ralf Haferkamp
8d5a0c6dd8
fix(public-share-auth): allow to create new documents in public share folder
...
The public share authentication middleware only allowed to open existing documents
the /app/new route was missing.
Fixes #8691
2024-04-15 16:35:13 +02:00
Christian Richter
29549fade7
kill oidc well known middleware and move it to static route
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-03-18 16:56:10 +01:00
Jörn Friedrich Dreyer
26136f8f81
drop store service in favor of a micro store implementation ( #8419 )
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-02-26 16:08:03 +01:00