Commit Graph
404 Commits
Author SHA1 Message Date
Roman Perekhod 9ca2c016be Revert "fix(proxy): [OCISDEV-460] deduplicate CreateHome calls in middleware" 2026-03-18 10:58:53 +01:00
Paul FaureandClaude Opus 4.6 5063c80536 fix(proxy): address review — introductionVersion and env var description
- Change introductionVersion from "8.0.0" to "Daledda" (codename)
- Clarify that the cache is a process-lifetime cache tracking which
  users have a personal space, not one of the general proxy caches

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 13:44:33 -04:00
Paul FaureandClaude Opus 4.6 224c0e6244 refactor(proxy): extract helpers to reduce ServeHTTP cognitive complexity
Extract homeKnown() and createHome() from ServeHTTP to bring
cognitive complexity under the SonarCloud limit of 15.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 11:20:18 -04:00
Paul FaureandClaude Opus 4.6 e227983a9f feat(proxy): add PROXY_CREATEHOME_CACHE_DISABLED env var
Allow operators to disable the in-memory CreateHome cache via
PROXY_CREATEHOME_CACHE_DISABLED as a fallback if the cache causes
unexpected behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 10:50:36 -04:00
Paul FaureandClaude Opus 4.6 a087a99da0 fix: address SonarCloud linter issues in CreateHome middleware
- Use canonical header casing "X-Access-Token" (canonicalheader)
- Return true instead of nil on success to avoid nilnil (nilnil)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 00:50:05 -04:00
Paul FaureandClaude Opus 4.6 31ce8a68a7 fix(proxy): deduplicate CreateHome calls with singleflight and sync.Map
The CreateHome middleware fired a gRPC CreateHome request on every
authenticated HTTP request. On first login the browser sends ~11
parallel requests, each triggering a redundant call. Use singleflight
to collapse concurrent calls for the same user and sync.Map to cache
successful results so subsequent requests skip the gRPC call entirely.

Fixes: #12068

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 23:34:10 -04:00
Paul FaureandClaude Opus 4.6 ece1043ca2 fix(proxy): add data: to font-src CSP to allow bundled KaTeX fonts
The bundled Web UI CSS (from owncloud/web) inlines the KaTeX_Size3 font
as a base64 data:font/woff2 URI. The default CSP sets font-src to 'self'
only, which blocks these data URIs and produces a console error on every
page load:

  Loading the font 'data:font/woff2;base64,...' violates the following
  Content Security Policy directive: "font-src 'self'".

Add 'data:' to font-src, matching the existing pattern where img-src
already permits data: URIs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 11:08:52 +01:00
Michal Klos 983dc5f7b5 fix: X-XSS-Protection header (#12092) 2026-03-10 09:15:35 +01:00
Martin Mattel 31c89b5eaa [docs-only] Some doc related updates 2026-02-16 16:04:42 +01:00
Roman Perekhod da5e63dfe3 feat: bump go to 1.25
feat: bump mockery to v2.53.5

feat: bump govulncheck

feat: bump bingo to v0.10.0

force go-1.25.7

update thumbnail images for test

bump reva to latest
2026-02-10 16:27:52 +01:00
Juan Pablo Villafáñez d3f328320a feat: propagate GRPC metadata across go-micro services
The server handlers for go-micro reuse the data from reva so the
propagation also works with reva services.
Both reva and go-micro services will propagate the data correctly.
2026-01-23 12:05:18 +01:00
Juan Pablo Villafáñez 2b344bffe6 feat: implement brute force protection for public shares 2026-01-23 12:05:18 +01:00
Julian Koberg 563bbf28c0 fix: fix group creation in multi-instance ocis
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-22 18:00:04 +01:00
Julian Koberg 2ca6372668 feat: move multi-instance-config to deployment example
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-16 12:01:59 +01:00
Julian Koberg ddc6cb0651 feat: cross instance sharing
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-16 12:01:33 +01:00
Martin Mattel 68c58c62d9 [docs-only] Change curie to semver in envvars plus script update 2026-01-13 10:11:17 +01:00
Michal Klos 1d0559866e fix: Strict-Transport-Security via proxy 2026-01-05 15:15:48 +01:00
Julian Koberg ace084dc10 feat: clean up multi-instance-ocis
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-12-15 10:46:51 +01:00
Julian Koberg b5a765124b feat: multi-instance-ocis
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-12-15 10:46:51 +01:00
Martin Mattel b81886a662 [master] [PR 11782] [docs-only][7.3] Replace envvar Balch text entries with 7.3.0
Backport of PR #11782
2025-11-04 09:39:35 +01:00
Lukas Hirt f0b2693cd3 feat(proxy): [OCISDEV-342] set referrer-policy to no-referrer
Change the Referrer-Policy from 'strict-origin-when-cross-origin'
to 'no-referrer' to enhance user privacy and security.

Previously, the origin was sent on cross-origin requests. This change
completely removes the Referrer header from all outgoing requests,
preventing any potential leakage of browsing information to third parties.
This is a more robust approach to protecting user privacy.
2025-10-27 09:38:36 +01:00
Roman Perekhod fb2e048864 feat: [OCISDEV-284] Respect changed user type in OIDC claim (#11684)
* feat: [OCISDEV-284] Respect changed user type in OIDC claim

* check the permission insted of the role
2025-10-02 15:37:48 +02:00
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
Lukas Hirt 9df76933da fix(proxy): [OCISDEV-330] add webdav without trailing slash
Added the `/webdav` endpoint without a trailing slash into the proxy default config.
This makes sure that requests to `/webdav` without a trailing slash are handled
by ocdav service instead of web service.
2025-09-22 11:54:54 +02:00
Lukas Hirt de179bba6a Merge pull request #11665 from owncloud/fix/capabilities-public-path 2025-09-22 10:54:10 +02:00
Roman PerekhodandMartin d307b3f945 feat: [OCISDEV-226] Allow wildcards in role assignments (#11663)
* feat: [OCISDEV-226] Allow wildcards in role assignments

* Update services/proxy/README.md

Co-authored-by: Martin <github@diemattels.at>

---------

Co-authored-by: Martin <github@diemattels.at>
2025-09-20 09:38:07 +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 b738f8256e docs: add missing doc information 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 789ac03817 fix: CI complains 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
861b20dc9d chore(deps): bump github.com/olekukonko/tablewriter from 0.0.5 to 1.0.9 (#11570)
* chore(deps): bump github.com/olekukonko/tablewriter from 0.0.5 to 1.0.9

Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.5 to 1.0.9.
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.5...v1.0.9)

---
updated-dependencies:
- dependency-name: github.com/olekukonko/tablewriter
  dependency-version: 1.0.9
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: adjust to tablewriter 1.0.9 (AI-powered)

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>

* update to NewTable

* bring back a Footer

* fix the tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julian Koberg <julian.koberg@kiteworks.com>
Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
2025-08-06 09:39:49 +02:00
Juan Pablo Villafáñez 8b8c7f02bf fix: replace hardcoded services names for variables 2025-08-05 10:00:24 +02:00
Michal Klos 112ed96f2b fix: hsts 2025-08-04 11:54:12 +02:00
Juan Pablo Villafáñez a30475660b fix: sonarcloud issues
Use pointer receivers and use methods instead of attributes for proto
fields
2025-08-04 10:04:07 +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