Commit Graph
523 Commits
Author SHA1 Message Date
Michal Klos fcbfecf376 feat: [stable-8.0][OCISDEV-1115] harden nats communication (#12790)
feat: [OCISDEV-1115] harden nats communication (#12777)

* feat: [OCISDEV-1115] harden nats communication

* feat: bump reva for tls-enabled stores
2026-08-14 12:13:42 +02:00
Michal KlosandRoman Perekhod cdb3ba2f67 feat: [OCISDEV-1032] ldap config and retry policy (#12672)
* feat: ldap config and retry policy

Co-authored-by: Roman Perekhod <2403905@gmail.com>
2026-07-30 18:49:55 +02:00
Lukas Hirt 9d9a03747c feat(ldap): [OCISDEV-1031] add opt-in LDAP connection pool (#12660)
* feat(ldap): [OCISDEV-1031] add opt-in LDAP connection pool

Bump the vendored reva dependency to pick up the opt-in bounded LDAP
connection pool (owncloud/reva#658, #665), and wire it into oCIS: add
pool_enabled/pool_size/pool_checkout_timeout config to auth-basic,
users, groups and graph, forward it into the reva config map for the
first three, and unify graph's identity backend onto reva's LDAP
client (utils.GetLDAPClientFromConfig) instead of its own hand-rolled
reconnecting client, now that reva implements PasswordModify and
ModifyWithResult on both LDAP clients. Pooling is off by default and
fully backwards compatible.

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

* test(ldap): [OCISDEV-1031] run graph LDAP suites with pooling enabled in CI

Add a dedicated ldap-pool-tests job to acceptance-tests.yml that reruns
apiGraphUser/apiGraph/apiGraphGroup with OCIS_LDAP_POOL_ENABLED=true, so
concurrent behat requests exercise checkout/release, eviction and the
pooled PasswordModify/ModifyWithResult path end-to-end, in addition to
the existing pooling-disabled runs of the same suites.

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

---------

Signed-off-by: Lukas Hirt <info@hirt.cz>
2026-07-30 09:34:52 +02:00
8951c623ae fix(graph): [OCISDEV-751] return correct issuerAssignedId on /me (#12635)
fix(graph): [OCISDEV-751] return correct issuerAssignedId on /me (#12411)

The /graph/v1.0/me endpoint reported the internal user UUID as
identities[].issuerAssignedId instead of the OIDC sub. The fast path
built the user model from the CS3 context user, which does not carry the
external identity. /me now always resolves the user through the identity
backend; group memberships are still only expanded on $expand=memberOf.



(cherry picked from commit 61a97e162b)

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
Co-authored-by: kobergj <jkoberg@owncloud.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 09:23:29 +02:00
b0d2d53538 [backport stable-8.0] feat(graph): allow disabling the last sign-in timestamp update (#12532)
* feat(graph): allow disabling the last sign-in timestamp update (#12522)

* feat(graph): [OCISDEV-1022] allow disabling last sign-in timestamp update

Add a new setting OCIS_LDAP_UPDATE_LAST_SIGNIN_DATE /
GRAPH_LDAP_UPDATE_LAST_SIGNIN_DATE (default true) to disable maintaining the
'oCLastSignInTimestamp' LDAP attribute on user sign-in. When set to false the
graph service no longer listens for UserSignedIn events and does not write the
attribute, without having to disable all LDAP writes or the events consumer.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(changelog): [OCISDEV-1022] fix PR link to 12522

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(graph): [OCISDEV-1022] cover last sign-in toggle; address review

- Add unit test covering both branches of StartListenForLogonEvents
  (subscribes when UpdateUserLastSignInDate is enabled, not when disabled).
- Set introductionVersion to 8.2.0.
- Reword the config description: the two settings are independent, the
  timestamp is only persisted when OCIS_LDAP_SERVER_WRITE_ENABLED is enabled
  rather than the toggle requiring it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Martin <github@diemattels.at>
(cherry picked from commit 49c897e37a)

* chore: bump go-git

* chore: bump crypto

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Martin <github@diemattels.at>
Co-authored-by: Michal Klos <michal.klos@kiteworks.com>
2026-07-13 13:36:55 +02:00
kobergjandClaude Opus 4.7 b6dea02d1a fix(graph): [OCISDEV-964] education user delete uses wrong id (#12395)
* chore: bump high criticality dependencies

Bumps golang.org/x/net to v0.55.0 and golang.org/x/image to v0.41.0 to
clear 8 govulncheck advisories (HTML/IDNA/BMP/TIFF) that started failing
CI on stable-8.0 after the vulnerability database was updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>

* ci: pin node to 24.15.0 to unbreak e2e playwright install

Node 24.16.0 ships a yauzl regression that makes Playwright's post-download
zip extraction hang indefinitely, consuming the entire 6h job budget without
producing any output after the chromium download finishes.

Backported from master, see microsoft/playwright#40724.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>

* fix(graph): [OCISDEV-964] education user delete uses wrong id

DeleteEducationUser called the LDAP backend with user.GetExternalID(),
while the regular /users handler and the pre-v8.0 code path used
user.GetId(). With the default RequireExternalID=false, the LDAP backend
looked up the user by name-or-UUID, so the externalID never matched, the
LDAP entry was never removed, and the response was a 404.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>

---------

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-11 09:46:08 +02:00
Michal Klos e23737705e fix: [backport][OCISDEV-873] *WithoutTrashbin space editor roles render files read-only in Web frontend (#12351)
fix: [OCISDEV-873] *WithoutTrashbin space editor roles render files read-only in Web frontend (#12346)

* fix: [OCISDEV-873] *WithoutTrashbin space editor roles render files as read-only in Web frontend

* fix: ci after godata bump

ocis CI bumped github.com/CiscoM31/godata from v1.0.10 → v1.0.11 as a transitive dependency of the reva bump. The new godata version parses "mail add 10 (invalid operator) as a parse error → 400 instead of unsupported operation → 501.

* fix ci: more precise role

* fix: bump reva to pull fix merged into reva
2026-05-21 17:51:05 +02: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
Michal KlosandMartin Mattel 3e5a8683b9 feat: [OCISDEV-588] remove deprecated ocis env vars (#11942)
* feat: remove obsolete env var

* add comments for sonarcloud

---------

Co-authored-by: Martin Mattel <github@diemattels.at>
2026-01-22 17:46:42 +01:00
Julian Koberg f849084f69 feat: add permission to allow sharing between instances
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-21 15:21:28 +01:00
Roman Perekhod 0b6bd5ee68 fix: fix the error handling for empty name on space update 2026-01-20 20:24:44 +01:00
Julian Koberg 09c2dfbd11 feat: refine way of adding users to instances
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-16 12:01:33 +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
Juan Pablo Villafáñez 7003aa26c5 fix: adjust tests 2026-01-13 18:00:58 +01:00
Juan Pablo Villafáñez 73ce507c87 fix: return 403 if user can't disable the space due to permissions 2026-01-13 18:00:58 +01:00
Roman PerekhodandMartin fb95b57bb4 feat: [OCISDEV-518] Added the graph endpoint alias (#11871)
* feat: [OCISDEV-518] Added the graph endpointis alias

* Update changelog/unreleased/enhancement-add-graph-endpoint.md

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

---------

Co-authored-by: Martin <github@diemattels.at>
2025-12-22 13:01:14 +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
Michal Klos 8806cb0cea feat: CLI, clean orphaned grants 2025-12-02 13:39:57 +01:00
Julian Koberg 2fcfa325cd feat: use externalID for provisioning api
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-11-12 10:58:26 +01:00
Roman PerekhodandSaw-jan 304c3f1890 fix: [OCM] Specification Compliance (#11773)
* fix: [OCISDEV-450] fix ocm path

* fix: [OCM] Specification Compliance

* update the test

* fix: [OCISDEV-471] OCM: User can't change the federated share permission

* fix tests

* test: fix federated user regex

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: fix federated user regex

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: fix federated user regex

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* test: adjust test expectations

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>

* latest reva ocm changes

---------

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-11-10 12:38:10 +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
Lukas Hirt 38c1c82583 Merge pull request #11695 from owncloud/feat/user-search-attributes
feat: [OCISDEV-234] add configurable display attributes
2025-10-02 14:29:03 +02:00
Roman Perekhod c2e75a05a2 feat: [OCISDEV-285] Add Cli to delete personal spaces (#11701)
* Add Cli to delete personal spaces

* fix EnsurePersonalSpace

* Purge disabled spaces 'personal' or 'project'

* bump reva

* update the test
2025-10-02 09:25:26 +02:00
Lukas Hirt c9d308f232 feat: [OCISDEV-234] add configurable display attributes
Added new configuration options `UserSearchDisplayedAttributes` which
allows to configure the attributes that are displayed in the user search results.
Also deprecate the `ShowUserEmailInResults` configuration option.
2025-10-01 21:03:53 +02:00
Roman Perekhod 2c7f57865f feat: [OCISDEV-282] user type upgrade/downgrade (#11678)
* feat: [OCISDEV-282] user type upgrade/downgrade
* the storage utils pkg separated
* extended the test coverage
* the failures added to expected
2025-09-26 17:04:01 +02:00
Julian Koberg 04b829e8a7 feat: expand mfa checks also to queries
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-09-23 14:03:32 +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
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
Roman Perekhod 6363fc260a Merge pull request #11543 from 2403905/issues/OCISDEV-209
fix: [OCISDEV-209] fix graph create link endpoint
2025-07-18 09:31:49 +02:00
Roman Perekhod 240cd3e44e fix: [OCISDEV-209] fix graph create link endpoint 2025-07-17 22:41:54 +02:00
Roman Perekhod 1157aedf0e fix: [OCISDEV-198] Fix space root handling in a graph sharedByMe 2025-07-16 08:57:26 +02:00
Roman Perekhod 757fc04e55 Fix the expiration date response for links 2025-07-11 00:18:50 +02:00
Michal Klos 4b45d09fb2 feat: [OCISDEV-60] add GET /v1bea1/drives/<drive-id>/items/<item-id>/permissions support 2025-07-07 18:07:30 +02:00
Lukas Hirt 6c102b4c5e fix: return translated role definitions
Instead of always returning the role definitions in English,
we now return the role definitions in the language set in the  header if present.
2025-06-26 11:42:33 +02:00
Michal Klos ef0f1acef2 chore: cleanup make generate, go vet is now clean 2025-06-17 18:18:56 +02:00
Michal Klos 7150688853 fix: spaces, list available shares, avoid early 5XX 2025-05-09 15:18:14 +02:00
Julian Koberg b3df44deda feat(graph): allow setting spaceids through API
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local>
2025-04-23 13:52:52 +02:00
Roman Perekhod 74cf69b5ec limited the length of tags 2025-04-15 12:20:16 +02:00
Michal Klos 5e3fac4665 feat: graph, log all member space management errors with verbose info 2025-03-12 11:20:37 +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
Julian Koberg f2b8891fcf fix(graph): log errors when deleting personal spaces
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local>
2025-02-19 16:32:05 +01:00
Julian Koberg c14fd7a05c fix(graph): fix build after package bump
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local>
2025-02-17 15:44:30 +01:00
Roman Perekhod 6b3a4975c5 The graph drives invite response now includes the createdDateTime field 2024-12-17 19:25:24 +01:00
Ralf Haferkamp 565f58c68a fix(graph): Don't return OCM shares in the drives list
OCM shares don't have mountpoints currently. So they're no supposed
to show up in the drives list on the graph service.

Fixes: #10689
2024-12-04 14:48:56 +01:00
Jörn Friedrich Dreyer 9fea5c3002 graph concurrent share listing
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-11-28 16:52:54 +01:00
Michael Barz bac2256c5f fix: fix deny access to prevent a regression 2024-11-25 11:32:31 +01:00
Jörn Friedrich Dreyer ff9d11ad1a reuse go-micro service clients
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-11-15 17:18:39 +01:00
kobergj 0b26d45a9b Merge pull request #10510 from rhafer/issue/10488
fix(graph/ocm): Fix ocm share creation when user is in cache
2024-11-07 18:11:31 +01:00