Commit Graph
51 Commits
Author SHA1 Message Date
kobergj 1d70560428 feat(storage-users): add recalculate-treesize command (#12746)
feat(storage-users): [OCISDEV-1203] add recalculate-treesize command

The treesize of a directory is maintained as a running counter that is updated
on every change, so a failed or incomplete update leaves the counter wrong and
the reported quota usage of a space drifts from the data on disk. Removing a node
without propagating the size change leaves its size counted against the quota
with no way to reclaim it.

Add a command that walks a space bottom up, recalculates the treesize of every
directory from the actual size of its children and corrects the stored values:

    ocis storage-users spaces recalculate-treesize --space-id <id>

As with the other maintenance commands --dry-run defaults to true, so the
command reports what it would change until explicitly told to write.

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-08-07 15:16:12 +02:00
kobergj 003e8cddb8 fix(storage-users): add --orphaned upload session filter (#12739)
Bump reva to pick up the fix for upload sessions whose node metadata can no
longer be read. Such sessions can never finish postprocessing, stay in
processing state indefinitely and keep consuming the quota of their space.
Cleaning them previously removed the uploaded bytes without releasing the quota.

Wire up the new Orphaned session filter so operators can list the affected
sessions and remove them with --clean:

    ocis storage-users uploads sessions --orphaned
    ocis storage-users uploads sessions --orphaned --clean

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-08-06 15:00:09 +02:00
Matteo 2f2c3d5b3a chore(docs): document how to check vault mode in the frontend (#12379) 2026-06-05 16:15:23 +00:00
Martin 60875d57a7 docs: small improvements for the vault readme (#12333) 2026-05-20 09:41:53 +00:00
Roman PerekhodandMartin 39e3d33820 [full-ci] feat: ocisdev-533 graph (#12108)
* feat: Implemet the vault-storage

feat: Separate the storage-users and graph to handle

feat: move the space create cache

configurate the vault srorage Postprocessing

hide the assignment of the MountID to VaultStorageProviderID behind a flag to avoid the ID mismatch

configurate the proxy to create the vault home space

update the filter

Make the graph able to handle vault prefix. no extra service needed

apply the vault filter to sharedbyme and sharedwithme

added vault-storage docker

use squashed reva

fix the finishUpload event

restict webdav copy/move from the vault

feat: provide the mfa to webdav and grpc

feat: refactoring: provide the mfa to webdav and grpc

mfa collaboration

fix GetRootDriveChildren and more

fix: send the MFA header in HTTP clients from the collaboration service

provide the default storage user vault configuration

update create_home middleware

Update deployments/examples/ocis_full/vault-storage.yml

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

Update services/gateway/pkg/config/config.go

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

Update services/graph/pkg/config/config.go

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

Update services/graph/pkg/config/config.go

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

Update services/storage-users/pkg/config/config.go

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

Update services/proxy/pkg/config/config.go

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

Update services/storage-users/pkg/config/config.go

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

Update deployments/examples/ocis_full/vault-storage.yml

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

bump reva

deduplicate the requireMFA middeware on vault routes. fix AppendPlainToOpaque.

added the changlog and comments

* feat: add the vault mode search

* Update changelog/unreleased/enhancement-vault-storage.md

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

* update the readme. the reva vault storage provider configuration disabled by default

* feat: [OCISDEV-531] add vault capabilities to the OCS capabilities endpoint

* the port range allocated. the configuration updated.

---------

Co-authored-by: Martin <github@diemattels.at>
2026-05-15 16:53:05 +02:00
Julian Koberg 15b1c38e38 fix: adjust to comments from CR
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-03-11 08:55:54 +01:00
Julian Koberg 1d2c329e66 feat: add cli command to test the blobstore
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-03-10 16:40:00 +01:00
Julian Koberg e55e125cb3 feat: docu for the delete-stale-nodes command
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-10-02 10:31:18 +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
Julian Koberg a08919f1cf fix: logic error in storage-user docs
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-08-01 11:25:07 +02:00
Martin Mattel bc3762bc08 [docs-only] Update service readme's 2024-11-04 16:45:11 +01:00
jkoberg c80254c4f1 feat(ocis): remove ocm store
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-10-15 17:24:51 +02:00
jkoberg 4a911ac047 feat(storage-users): remove metadata backend envvar
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-09-19 12:29:41 +02:00
Martin 5a2e3abbba Update services/storage-users/README.md 2024-06-03 14:53:12 +02:00
mmattel c1c0037a75 [docs-only] fix two service readme's 2024-06-03 11:55:46 +02:00
Martin 38a699839a [docs-only] Update storage-users README.md
Aligning `Example cases for expired uploads` to the admin docs. The original sentence was not clear.
2024-06-03 10:33:20 +02:00
Roman Perekhod beca8cdf2a export example 2024-05-22 10:40:09 +02:00
Roman PerekhodandMartin d83256e606 Update services/storage-users/README.md
Co-authored-by: Martin <github@diemattels.at>
2024-05-22 09:22:28 +02:00
Roman PerekhodandMartin 177f2c0c71 Update services/storage-users/README.md
Co-authored-by: Martin <github@diemattels.at>
2024-05-22 09:20:39 +02:00
Roman PerekhodandMartin e36ceea5f1 Update services/storage-users/README.md
Co-authored-by: Martin <github@diemattels.at>
2024-05-22 09:20:31 +02:00
Roman PerekhodandMartin d4a42b9911 Update services/storage-users/README.md
Co-authored-by: Martin <github@diemattels.at>
2024-05-22 09:20:23 +02:00
Roman PerekhodandMartin a9ce0f76e8 Update services/storage-users/README.md
Co-authored-by: Martin <github@diemattels.at>
2024-05-22 09:19:29 +02:00
Roman PerekhodandPhil Davis 505c598d17 Update services/storage-users/README.md
Co-authored-by: Phil Davis <phil@jankaritech.com>
2024-05-22 09:19:17 +02:00
Roman PerekhodandPhil Davis 38379646b1 Update services/storage-users/README.md
Co-authored-by: Phil Davis <phil@jankaritech.com>
2024-05-22 09:19:04 +02:00
Roman PerekhodandPhil Davis 3a01ff8060 Update services/storage-users/README.md
Co-authored-by: Phil Davis <phil@jankaritech.com>
2024-05-22 09:18:48 +02:00
Roman Perekhod 0cc79f0f80 added the details to the 'Restore Trash-Bins Items' doc section' 2024-05-21 17:19:07 +02:00
jkoberg e84c72b911 tiny docs fix
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-05-07 08:17:22 +02:00
Martin bc23b685b2 [docs-only] Typo in storage-users README.md
IMPOTANT --> IMPORTANT
2024-05-03 16:57:03 +02:00
jkoberg 62b128624d feat(storage-users): document sessions command
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-05-03 10:31:41 +02:00
mmattel 31d13f06a2 [docs-only] fix two services readme to be inline with admin docs 2024-04-10 11:29:08 +02:00
mmattel a2526bcf66 [docs-only] Update storage-users readme 2024-03-15 12:12:01 +01:00
Jörn Friedrich Dreyer 3ed0424735 add more upload session filters (#7933)
* add more upload session filters

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* default descriptions

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* update readme

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* use tablewriter, --json flag

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* update readme

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-01-26 09:21:32 +01:00
Roman PerekhodandRoman Perekhod 367f1ff9e8 trash-bin cli has been exteneded by the list and restore commands (#7917)
* trash-bin cli has been exteneded by the list and restore commands

* v4 to v5 changes

---------

Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
2023-12-19 15:44:28 +01:00
kobergjandMartin 423c28b298 improve store readmes
Co-authored-by: Martin <github@diemattels.at>
2023-12-15 13:25:10 +01:00
MartinandEdith Parzefall 6be90847b7 Update services/storage-users/README.md
Co-authored-by: Edith Parzefall <edith_parzefall@gmx.de>
2023-07-19 14:35:52 +02:00
mmattel 6c33d945f3 update readme 2023-07-19 13:27:30 +02:00
MartinandEdith Parzefall 35dd1fa173 Update services/storage-users/README.md
Co-authored-by: Edith Parzefall <edith_parzefall@gmx.de>
2023-07-19 13:02:48 +02:00
MartinandEdith Parzefall 1ec451d3d5 Apply suggestions from code review
Co-authored-by: Edith Parzefall <edith_parzefall@gmx.de>
2023-07-19 13:02:25 +02:00
mmattel 5f72c61089 envvar text fix and readme addon 2023-07-19 11:06:29 +02:00
mmattel 14153f86be [docs-only] Add new caching envvar to storage-users service 2023-05-22 17:10:54 +02:00
Martin 62a93bc9c4 Apply suggestions from code review 2023-05-04 09:06:46 +02:00
mmattel e89ea96470 [docs-only] Add readme.md note to not use xattrs anymore 2023-05-04 08:58:56 +02:00
EParzefall e2686f90b9 spelling fixes 2023-04-24 13:55:10 +02:00
Edith Parzefall 6d7b13c7a5 Apply suggestions from code review
language review
2023-04-24 12:33:37 +02:00
mmattel 3d12979dd1 Add caching/storing info to services where missing 2023-04-24 12:13:44 +02:00
mmattel 84d2d8dae9 [docs-only] Fix texts and typos in README.md files 2023-04-23 10:02:27 +02:00
mmattel b2504035e0 fix readme service names 2023-04-12 18:40:41 +02:00
8b68830201 [full-ci] Improve ini backend, support redis sentinel caches (#5737)
* Configure the file metadata cache for storage-users

* Also configure the cache for the system storage

* Update services/storage-system/pkg/config/config.go

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

* Improve documentation

* Bump reva to pull in the latest ini backend changes

* Fix missing comment

* Update services/storage-users/README.md

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

* Update services/storage-system/README.md

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

* Tweak docs

* Apply suggestions from code review

Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Martin <github@diemattels.at>

---------

Co-authored-by: Martin <github@diemattels.at>
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-03-06 15:04:19 +01:00
MartinandJan 21a0c0a90b Apply suggestions from code review
Co-authored-by: Jan <j.ackermann91@gmail.com>
2023-02-22 10:26:00 +01:00
kobergjandMartin 68835fa697 Update services/storage-users/README.md
Co-authored-by: Martin <github@diemattels.at>
2023-02-22 10:22:04 +01:00