Commit Graph
7 Commits
Author SHA1 Message Date
Roman Perekhod 9143307b70 fix: [ocisdev-1433] fix public share, add The grpc clients keepalive and more (#13020) (#13068)
* fix: the public share configuration and fixed graceful shutdown

* fix: [OCISDEV-1433] remove GRPC_MAX_CONNECTION_AGE

The setting closed healthy grpc connections on a timer so that clients would redo
their DNS lookup. It never helped against the failure it was reached for - a
connection whose peer stopped answering - because the age limit is enforced by
the server, the grace period was left at infinity so a request already in flight
was never ended, and any value without a unit suffix silently disabled it again.

Detecting a peer that stops answering is now the job of the grpc clients, which
ping the peer while a request is in flight. The servers here got the matching
enforcement policy so they accept those pings; the client side arrives with the
next reva bump.

* fix: Added the new variable OCDAV_DISABLE_PROPFIND_PUBLIC_LINK_RESOLUTION that disable the resolution of public link shares when answering PROPFIND requests.

* chore: bump reva

* fix: The keepalive added to grpc clinet

* chore: bump reva

* build(deps): bump go 1.26.8, grpc-go dependency

---------

(cherry picked from commit e86eb4d210)

For the 9.0 branch, the reva dependency was pointed at reva's main-branch
merge of PR #748 (commit 373f9509a, pseudo-version
v2.0.0-20261005091647-373f9509a363) instead of the 8.2-targeted
e0beaa380005, since the 8.2 merge predates the VaultMode/UploadSessionFilter.Orphaned
APIs already present on the 9.0 reva lineage.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

# Conflicts:
#	changelog/unreleased/security-bump-grpc.md
#	go.mod
#	go.sum
#	vendor/google.golang.org/grpc/server.go
#	vendor/google.golang.org/grpc/stream.go
#	vendor/google.golang.org/grpc/version.go
#	vendor/modules.txt
2026-10-06 17:21:46 +02:00
18b2df94f3 feat: add ownCloud branding background to login screens (#12406)
* feat: add ownCloud branding background to login screens

Ships the ownCloud branding image as the default IDP login background and
aligns the web and Keycloak login screens to match.

Reworked for the no-npm IDP (services/idp/src was removed by #12086): the
branding is applied directly in the committed bundle. The default background
image lives at services/idp/assets/identifier/static/media and is referenced
from theme.css, which now anchors it to the top right (background-position) so
the ownCloud logo stays fully visible at every viewport aspect ratio instead
of being cropped by center positioning. Operators can still override the image
via IDP_LOGIN_BACKGROUND_URL (unchanged on master).

Also embeds the same image in the web service theme assets and adds an
"owncloud" Keycloak login theme (already anchored top right) to the
ocis_keycloak deployment example.

Signed-off-by: David Walter <david.walter@kiteworks.com>
Signed-off-by: Lukas Hirt <info@hirt.cz>

* docs(deployment): title-case ocis_keycloak README headings

Co-authored-by: Martin <github@diemattels.at>
Signed-off-by: Lukas Hirt <info@hirt.cz>

---------

Signed-off-by: David Walter <david.walter@kiteworks.com>
Signed-off-by: Lukas Hirt <info@hirt.cz>
Co-authored-by: kobergj <jkoberg@owncloud.com>
Co-authored-by: Martin <github@diemattels.at>
2026-08-26 09:41:11 +02:00
Matteo 7dcc74c3dd fix(idp): announce sign-in errors and fix keyboard use (#12649) 2026-07-27 08:22:44 +00:00
Roman PerekhodandClaude Opus 4.8 6855942f49 Fix/ocisdev 884 (#12442)
* fix(proxy,graph): do not disable personal space on inconclusive permission check

When a user's role is (re-)assigned, both the proxy (on OIDC login) and the
graph appRoleAssignment handler check the Drives.Create permission to decide
whether to restore or disable the user's personal space. An indeterminate
permission result (transport error or a non-OK status other than
PERMISSION_DENIED) was treated as a denial, which disabled (trashed) the
personal space on a transient settings/gateway fault — with no automatic
re-enable. See OCISDEV-884.

Both call sites now fail closed: on an indeterminate result they leave the
personal space untouched, revert the just-persisted role assignment so the
user is not left in a half-applied state, and surface the error (the proxy
retries on the next login, the graph handler returns 500). Relies on the
matching reva utils.CheckPermission change that surfaces non-authoritative
statuses as an error.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* rebased

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 13:22:08 +00:00
Michal Klos 27413d6c7a fix: service idp assets (#12462) 2026-06-24 12:31:37 +02:00
Michal Klos da7ef60508 feat: [OCISDEV-696] service/idp no-npm (#12086)
* poc: service/idp no-js

# Conflicts:
#	services/idp/package.json

# Conflicts:
#	services/idp/package.json
#	services/idp/pnpm-lock.yaml

# Conflicts:
#	services/idp/package.json
#	services/idp/pnpm-lock.yaml

# Conflicts:
#	services/idp/package.json
#	services/idp/pnpm-lock.yaml

* poc: service/idp no-js, css theme

* poc: service/idp no-js, l10n transifex

* poc: service/idp no-js, test

* poc: service/idp no-js, security

* poc: service/idp no-js, cleanup

* poc: service/idp no-js, fix CI

* poc: service/idp no-js, css theme

* poc: service/idp no-js, changelog

* poc: service/idp no-js, fix CI

* poc: service/idp no-js, cleanup

* poc: service/idp no-js, fix CSP [565]

* poc: service/idp no-js, fix CI

* poc: service/idp no-js, html.template

* poc: service/idp no-js, fix bg image

* poc: service/idp no-js, fix consent

* poc: service/idp no-js, add consent.html template

consent.html was created but not committed; the embed.FS could not
find it, causing a fatal at startup in tests and production.

* poc: service/idp no-js, login page exact as previous

* poc: service/idp no-js, desktop oauth path

* poc: service/idp no-js, desktop oauth path

* poc: service/idp no-js, desktop oauth path

* poc: service/idp no-js, add loginerror template

* poc: service/idp no-js, desktop oauth path

* poc: service/idp no-js, simplify

* poc: service/idp no-js, follow OWASP principles

* poc: service/idp no-js, fix ci

* poc: service/idp no-js, theme review

* poc: service/idp no-js, theme review
2026-06-16 10:07:25 +02:00
Christian Richter 78064e6bab rename folder extensions -> services
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-06-27 14:05:36 +02:00