Commit Graph
23092 Commits
Author SHA1 Message Date
7d9b63b856 ci: add zizmor workflow audit (#13232)
* ci: add zizmor workflow audit

Runs zizmor over this repository's workflows and Dependabot config on
every pull request, on pushes to the default branch and weekly, through
owncloud/reusable-workflows' zizmor.yml. Any finding fails the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>

* fix(ci): resolve zizmor findings

- excessive-permissions: workflows without a permissions block ran
  with the repository default, which is read/write. They now default
  to contents: read; only create-github-release gets contents: write,
  for softprops/action-gh-release. audit-release only GETs the
  published release, which read covers.
- cache-poisoning: the release workflow's setup-node steps opt out of
  package-manager caching, so a tag build cannot restore a cache that a
  branch build wrote.
- artipacked: checkouts do not persist credentials. No job runs a git
  operation after checkout.
- dependabot-cooldown: every ecosystem waits 7 days, as github-actions
  already does.
- ref-version-mismatch: setup-php's tag is 2.40.0, without the v.
- self-repository: local reusable workflows and actions are called as
  $/... instead of ./... .
- Suppressed inline, with the reason on the line: the unpinned
  `npm install -g yarn npx` in the release workflow (pre-existing, left
  to the maintainers), the version-pinned gherlint install, and the
  softprops release step, which CI cannot exercise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>

* fix(ci): undo two zizmor auto-fix slips, keep scheduled runs

- zizmor's template-injection auto-fix read `${{ }}` inside a shell
  comment in determine-release-type as an expansion: it added an env
  entry reading that job's own output, which is always empty, and
  rewrote the comment to describe something no longer true. The entry
  is gone and the comment describes the env indirection the later jobs
  now use, with the version check as a second safeguard.
- Only pull request runs of the zizmor audit cancel each other now; a
  push to master and the weekly run share a ref.

The previous commit's message is incomplete: it lists a self-repository
change this repository did not need, and omits the auto-fixed
template-injection findings (expressions in run: moved to env: in
release.yml, release-npm-packages.yml and acceptance-tests.yml) and the
cache-poisoning fix also turning off setup-go's cache in the release
jobs, so a tag build cannot restore a cache a branch build wrote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>

---------

Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
Co-authored-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 14:55:39 +01:00
Firas Frikha 913e9b83bf fix(graph): [OCISDEV-1601] let teachers of other schools receive vault shares before their first login (#13273)
* fix(graph): [OCISDEV-1601] let teachers of other schools receive vault shares before their first login

* chore: [OCISDEV-1601] add changelog entry

* fix(graph): [OCISDEV-1601] harden the guest vault role assignment

* docs(graph): [OCISDEV-1601] shorten the description of the guest role mapping

* fix(graph): [OCISDEV-1601] read the userClass with a separate backend method

* fix(graph): [OCISDEV-1601] assign the guest vault role around the share creation

* docs(graph): [OCISDEV-1601] describe that only the guest role mapping is used

* docs(graph): [OCISDEV-1601] document how graph applies the guest role mapping

* refactor: [OCISDEV-1601] share the guest role mapping between proxy and graph

* refactor(graph): [OCISDEV-1601] fix the linter findings of the guest vault role

* fix(graph): [OCISDEV-1601] keep the guest vault role once the share exists
2026-10-30 11:44:40 +01:00
Kavita gautam 15dacf5295 [tests-only][full-ci][k8s] test: Run e2e vault-storage on K8s deployment (#13088)
* test: run e2e vault-storage on K8s deployment

Signed-off-by: Kavita Gautam <kavita@jankaritech.com>

* test: add suite specific external services and proxy readyz

Signed-off-by: Kavita Gautam <kavita@jankaritech.com>

* test: directly specifying the readyz url

Signed-off-by: Kavita Gautam <kavita@jankaritech.com>

---------

Signed-off-by: Kavita Gautam <kavita@jankaritech.com>
2026-10-30 14:18:46 +05:45
LarsJurgensen ef9b4f7fc9 chore(deps): [OCISDEV-1392] bump reva (#13272) 2026-10-29 13:18:22 +01:00
Matteo 633837b3e1 revert(web): restore go redirect link in help menus (#13254)
* revert(web): restore go redirect link in help menus

Reverts the hard-coded documentation URLs from #13241. The help menus link to doc.owncloud.com/go?to=webui-users-sharing again, so the target can be maintained by the docs redirect instead of in web.

Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>

* chore: remove changelog of reverted help menu link fix

Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>

---------

Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
2026-10-29 11:52:26 +01:00
Michal Klos 6b28863fa5 fix(graph): [OCISDEV-1542] LDAP user search: make email, surname configurable (#13219)
Signed-off-by: Michal Klos <michal.klos@kiteworks.com>
2026-10-29 09:48:00 +00:00
Roman PerekhodandClaude Sonnet 5.5 579249bd1e ci: ignore CVE-2026-116587 for go-jose/v3 in the Trivy scan (#13267)
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 09:38:41 +01:00
Pujitha PaladuguandPujitha Paladugu f6df02372c fix(deployments): pass SMTP password and authentication in ocis_full example (#13222)
Motivation: the ocis_full example defines SMTP_PASSWORD and SMTP_AUTHENTICATION
in .env but the ocis service did not forward them, so an SMTP server requiring
authentication could not be configured through this example.

Approach: add NOTIFICATIONS_SMTP_PASSWORD and NOTIFICATIONS_SMTP_AUTHENTICATION
to the ocis environment block next to the other NOTIFICATIONS_SMTP_* entries,
document accepted authentication values in .env, and add a changelog entry.
An empty SMTP_AUTHENTICATION is treated as 'auto' by the notifications service,
so existing setups that leave it unset behave as before.

Validation: parsed ocis.yml with python yaml and confirmed both variables are
present in the ocis environment. I could not run docker compose or an
authenticated SMTP server here (docker is not installed), so end-to-end mail
delivery was not exercised; I checked the variable names against the env tags
in services/notifications/pkg/config/config.go and the empty-value handling in
services/notifications/pkg/channels/channels.go.

Report: https://github.com/owncloud/ocis/issues/11757

Assisted-by: claude-sonnet-5-5 (via Claude Code)

Signed-off-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
Co-authored-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
2026-10-28 17:51:10 +01:00
Firas Frikha 9469149f39 fix(deps): bump go-jose/v4 to v4.1.6 for CVE-2026-116587 (#13256)
* fix(deps): bump go-jose/v4 to v4.1.6 for CVE-2026-116587

* fix(deps): bump golang.org/x/net to v0.62.0 for GO-2026-6860 and GO-2026-6866
2026-10-28 10:08:47 +01:00
Roman PerekhodandClaude Opus 5.5 4680d9d905 fix(proxy): [OCISDEV-1464] fix the role assignment of multi-instance guests (#13250)
* fix(proxy): [OCISDEV-1464] fail on an unknown multi-instance guest role

The OIDC role assigner did not check that OCIS_MULTI_INSTANCE_GUEST_ROLE
exists. When the guest role name is wrong, the role name has no role id.
The proxy then sent AssignRoleToUser with an empty RoleId on each request.

The role assigner now returns an "unknown role" error and does not change
the role assignment. A test covers a guest that no guest role mapping
matches.

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

* fix(proxy): [OCISDEV-1464] check the guest role mapping more strictly

GuestRoleMapping now trims the spaces around the claim value and the
role name. The env var parser trims list elements, but the yaml parser
does not. Before this change, the yaml entry "spaceadmin: user-light-vault"
gave the role name " user-light-vault", and each matching guest login
failed with "unknown role".

GuestRoleMapping now also rejects a mapping when
OCIS_MULTI_INSTANCE_GUEST_ROLE is empty. The role assigner applies the
mapping only to users that get the guest role. Without a guest role, the
proxy ignored the mapping and gave guests a member role.

gofmt also fixes the indent of a TODO comment in the same file.

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

* fix(proxy): [OCISDEV-1464] log why the guest role mapping does not apply

mapGuestRole dropped the extractRoles error without a log line. When
PROXY_ROLE_ASSIGNMENT_OIDC_CLAIM had a wrong claim name, each guest kept
the guest role, and the admin could not find the cause.

mapGuestRole now writes a debug log line with the claim name and the
error. A guest without a roles claim is valid, and the role assigner runs
on each request, so the log level is debug and not warning.

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

* docs(proxy): [OCISDEV-1464] tell that guest claim values are regexes

The guest role mapping uses the same claim matcher as the role mapping.
A claim value is an exact string or a regular expression that must match
the full claim value. The description of
OCIS_MULTI_INSTANCE_GUEST_ROLE_MAPPING did not tell this. An admin who
writes 'school.admin' also matches the claim 'schoolXadmin', and that
guest can get a role with more permissions.

The description now tells that claim values are regexes. It also tells
the admin to escape regex metacharacters in an exact string.

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

* fix(proxy): [OCISDEV-1464] read the roles again for an unknown guest role

The OIDC role assigner checks the guest role and the mapped guest role
against a role cache with a 5 minute TTL. A role that an admin created
after the last cache read was unknown. For up to 5 minutes, each request
of a matching guest failed with "unknown role" and HTTP 500.

The new function guestRoleName reads the roles again one time when the
role is unknown. It reads the roles again only when the cache is older
than 30 seconds. Thus a role that does not exist causes a maximum of one
ListRoles request in 30 seconds, and not one request for each guest
request. The check for an unknown guest role moves into guestRoleName.

roleNamesToRoleIDs now has a maxAge parameter.

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

* docs: [OCISDEV-1464] add the changelog for the guest role mapping fixes

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 09:44:32 +01:00
Matteo 64b18f5432 fix(web): [OCISDEV-1581] fix copy link in EPUB library book details (#13239)
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
2026-10-28 08:23:08 +01:00
Michal Klos a065ed0962 fix(graph): [OCISDEV-1519] include OCM federated users in vault-eligible sharee search (#13135) 2026-10-27 13:44:45 +00:00
Matteo 887145f143 fix(web): [OCISDEV-1583] restore trash items with the same name without conflicts (#13238)
* fix(web): [OCISDEV-1583] restore trash items with the same name without conflicts

Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
2026-10-27 13:28:08 +01:00
Matteo 1986da8657 fix(web): [OCISDEV-1589] fix broken Read more link in help menus (#13241)
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
2026-10-27 13:27:34 +01:00
Roman Perekhod 36a034fa83 feat: [OCISDEV-1586] added the vault support to the ocis_multi (#13243)
Added the vault support to the ocis_multi deployment exaple
2026-10-27 09:57:36 +01:00
Firas Frikha dd6fa31ac9 feat: [OCISDEV-1464] Assign multi-instance guests a role based on their claims (#13231) 2026-10-27 07:50:55 +00:00
Gaurav Soni cdaba15e35 fix(web): [OCISDEV-1183] stop logging OAuth tokens to the browser console (#13233)
* fix(web): [OCISDEV-1183] stop logging OAuth tokens to the browser console

On every login and silent token renewal, the web client wrote the user's raw
access and refresh tokens to the browser console via console.debug. The
userLoaded handler now logs a static message without any token or user data.

Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>

* docs: [OCISDEV-1183] add PR link to changelog

Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>

---------

Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
2026-10-26 15:54:06 +00:00
Gaurav Soni efe85baed9 fix(web): [OCISDEV-1187] disable confirm in link password dialog when empty (#13218)
The link "Add password" / "Edit password" dialog could be confirmed, by
button or Enter, while the field was still empty, which removed the
password from the link. Confirm now starts disabled, and Enter only
confirms when the password policy is fulfilled, same as the button.

Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
2026-10-26 14:24:14 +01:00
Matteo 486fa4811c chore: bump zod to 4.6.7 and happy-dom to 21.0.4 (#13227)
happy-dom 21 serializes var() fallbacks with a space after the comma,
so adjust the tag colour style assertions accordingly.

Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
2026-10-26 11:40:32 +01:00
Lukas Hirt bacd899092 test: [OCISDEV-1558] wait for account page content before running a11y checks (#13161) 2026-10-25 12:16:22 +01:00
Matteo 6c1dfdc38c fix(web): [OCISDEV-1579] show a definitive no-permission message for inaccessible space trash (#13217) 2026-10-25 03:14:26 +01:00
owncloud-translations-bot[bot] 390614e9d0 chore: update translations from transifex (#13212)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
2026-10-23 16:56:50 +00:00
Matteo 45e2b94b5e chore: bump dompurify to version 3.4.17 (#13216)
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
2026-10-23 09:30:08 +02:00
Gaurav Soni e609fefa8c feat(web): [OCISDEV-1417] make "Shared by" sortable in Shared with me (#13213)
The "Shared by" column in Shared with me could not be sorted. It now sorts
A to Z (Z to A on a second click) by all sharers' names in alphabetical
order, the same rule as "Shared with", so items shared by several people
stay in a stable place while the avatars keep their current order. Sorting
by "Shared with" also no longer reorders that column's avatars.

Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
2026-10-22 11:31:47 +02:00
Matteo 2d8841f490 chore(web): bump vite to 7.3.7 and markdown-it to 14.3.3 (#13206)
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
2026-10-21 10:45:18 +02:00
Roman PerekhodandClaude Sonnet 5.5 00567fa575 feat: [full-ci] [OCISDEV-1563] remove the owncloudsql driver (#13191)
Remove the deprecated owncloudsql driver configuration from the storage-users,
auth-basic, users, groups and sharing services and from the migrate command.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 09:53:26 +02:00
owncloud-translations-bot[bot] 4f7de832a8 chore: update translations from transifex (#13196)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
2026-10-21 07:06:16 +00:00
Matteo 46684067e9 fix(collaboration): [OCISDEV-1550] fix closing a shared document from the office editor (#13198)
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
2026-10-21 08:19:05 +02:00
Lukas Hirt dcdf6d4854 fix(web): [OCISDEV-1036] point npm package repository metadata to ocis (#13201)
The packages are now published from owncloud/ocis, but their repository
and homepage fields still referenced owncloud/web. npm trusted publishing
requires repository.url to exactly match the publishing repository, and
the first publish attempt (tsconfig 0.0.7) failed with a 404.

Also disable setup-node package manager caching in the release workflow,
as recommended for release builds.

Signed-off-by: Lukas Hirt <info@hirt.cz>
web-test-helpers-v13.0.0 web-pkg-v13.0.0 web-client-v13.0.0 design-system-v13.0.0 extension-sdk-v12.5.1 eslint-config-v12.5.1 prettier-config-v0.0.2 babel-preset-v0.0.2 tsconfig-v0.0.7
2026-10-20 11:31:55 +02:00
Lukas Hirt 3a62b3aafc chore(web): bump npm package versions for release (#13194)
Bump versions of the published @ownclouders packages to verify the npm
trusted publisher setup.

- web-client, web-pkg, web-test-helpers, design-system: 13.0.0
  (axios replaced by native fetch, vue3-gettext 2 -> 4)
- eslint-config, extension-sdk: 12.5.1
- babel-preset, prettier-config: 0.0.2
- tsconfig: 0.0.7

Signed-off-by: Lukas Hirt <info@hirt.cz>
2026-10-20 10:27:22 +02:00
Matteo dd3989444d fix(web): [OCISDEV-1541] redirect vault root to default app (#13192)
* fix(web): [OCISDEV-1541] redirect vault root to default app

Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
2026-10-20 08:28:22 +02:00
LarsJurgensen 5ed476c35e fix(graph): [OCISDEV-1561] tolerate preferred language lookup failures 2026-10-19 15:03:25 +02:00
owncloud-translations-bot[bot] 1ed8498d7d chore: update translations from transifex (#13183)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
2026-10-19 09:51:00 +00:00
Lukas Hirt f6a3aa694e test: [OCISDEV-1559] mark project spaces e2e journey as slow (#13162)
The 'unstructured collection of testable space interactions' test runs about 80 UI steps across two spaces and takes ~150s of its 180s budget, so slow CI runners made it time out. Mark it with test.slow(), as done for the other long journeys.

Signed-off-by: Lukas Hirt <info@hirt.cz>
2026-10-19 09:39:19 +02:00
MartinandMichal Klos d2d82ba95e docs: final removal of any docs related content (#13165)
* feat: final removal of any docs related content

* docs: fixes from codereview

* chore: remove dead protoc-gen-doc references, drop stale buf.gen.yaml warning

The buf.gen.yaml warning comment is incorrect: the bare plugin paths are
intentional, resolved at build time by the symlink protoc-deps creates via
`bingo get -l` before buf generate ever runs.

Removing the doc plugin block left protoc-gen-doc dead: nothing generates
with it anymore, but protoc-deps still installed/symlinked it and its
.bingo lock files were still committed.

See: https://github.com/owncloud/ocis/pull/13165#issuecomment-6218074157

---------

Co-authored-by: Michal Klos <michal.klos@kiteworks.com>
2026-10-16 17:04:41 +00:00
13d3481cfb chore(ci): set dependabot cooldown for github-actions (#13177)
A 7-day cooldown is already imposed before a newly-released GitHub
action may be used, but Dependabot's default cooldown is only 3 days,
so it raises github-actions PRs whose CI fails. Same change as
owncloud/core#41905.

Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
Co-authored-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 18:33:05 +02:00
Roman PerekhodandClaude Opus 4.8 ee5da2733f fix: [OCISDEV-1053] Warn when resetting a service user password locks out login (#13176)
fix(idm): sync bind config when resetting a service user password

Resetting an IDM service user password with `ocis idm resetpassword
--user-type service` only changed the entry in the IDM directory. Services
such as auth-basic, users and groups still bound to LDAP as the reva service
user using the old bind_password from their configuration, so after a restart
those binds failed and regular admin login started returning 401 Unauthorized.

The command now rewrites the matching bind_password and service_user_passwords
keys in ocis.yaml when it is present, and always prints the environment
variables that must carry the new password for env-var and distributed
deployments it cannot rewrite.

Fixes: https://github.com/owncloud/ocis/issues/12569

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-10-16 15:20:41 +00:00
Roman Perekhod 720e1ee0b3 fix: Remove the unmarshalable request body field from graph log messages (#12915) 2026-10-16 14:07:44 +00:00
Michal Klos 08b6313c8b fix(graph): [OCISDEV-1506] enforce $filter before cross-instance user resolution (#13154) 2026-10-16 14:39:40 +02:00
Prajwol Amatya 0cbd7d3401 [tests-only][full-ci][k8s] test: run e2e ocm test suite with k8s deployment (#13104)
test: run e2e ocm test suite with k8s deployment

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
2026-10-16 16:54:21 +05:45
owncloud-translations-bot[bot] 342f5eb0f1 chore: update translations from transifex (#13163)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
2026-10-16 07:51:57 +00:00
Matteo 70f4e504b6 fix(web): [OCISDEV-1539] show a clear error for deleted public links and files (#13156) 2026-10-16 08:03:15 +02:00
dependabot[bot] 2db76a1c4e build(deps): bump shivammathur/setup-php from 2.37.2 to 2.40.0 in the minor-and-patch group across 1 directory (#13116) 2026-10-15 23:03:02 +02:00
Matteo 408c41dc83 fix(web): [OCISDEV-1555] remove federated connections in the OCM connections panel (#13160) 2026-10-15 18:38:31 +02:00
Matteo c9856ef000 fix(web): [OCISDEV-1540] mark all notifications as read in the notifications menu (#13157) 2026-10-15 18:38:17 +02:00
Lukas Hirt 63fced12a6 fix(collaboration): retry rename and upload while file is processing (#13141)
* fix(collaboration): retry rename and upload while file is processing

RenameFile and PutFile failed with a 500 when the storage answered with CODE_TOO_EARLY because the file was still in postprocessing, e.g. right after PutRelativeFile. This made the wopi-builtin validator flaky. Share the retry-with-backoff logic that DeleteFile already had and apply it to Move and InitiateFileUpload as well. The retries are now bounded.

Signed-off-by: Lukas Hirt <info@hirt.cz>

* fix(collaboration): return context error when retry is cancelled

Return ctx.Err() from retryWhileTooEarly when the context is cancelled, document the intentional no-op after the wait, and add a test for it.

Signed-off-by: Lukas Hirt <info@hirt.cz>

---------

Signed-off-by: Lukas Hirt <info@hirt.cz>
2026-10-15 16:41:05 +02:00
Roman Perekhod e76dc49698 fix: [OCISDEV-1502] The global variable OCIS_CACHE_DATABASE was replaced (#13158) 2026-10-15 13:29:49 +02:00
Pradip Subedi c17c33b6d8 [full-ci][tests-only] test: fix flaky cliCommands tests (#13133)
* test: fix flaky blobstore test

* test: fix flaky backupconsistency test
2026-10-15 14:03:05 +05:45
owncloud-translations-bot[bot] 66e93ceaf3 chore: update translations from transifex (#13143)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
2026-10-15 07:28:51 +00:00
Matteo fba139fdec fix(web): [OCISDEV-1543] show details preview for public link files with spaces in the name (#13150) 2026-10-14 14:03:08 +02:00