Compare commits

..
Author SHA1 Message Date
Michael Barz 752f988faf chore: bump version, prepare changelog 2024-07-30 11:05:41 +02:00
Sawjan Gurung c5a3027119 Merge pull request #9434 from owncloud/internal-link-by-all-member-of-space
[tests-only][full-ci] adding test for creating internal link share by the member of a project drive
2024-07-30 13:57:26 +05:45
Michael Barz 4c50f6c59b Automated changelog update [skip ci] 2024-07-30 11:23:09 +05:45
Michael Barz 4b8acf7e4a Automated changelog update [skip ci] 2024-07-29 16:36:05 +00:00
Michael Barz 9e3dbb022a Merge pull request #9708 from owncloud/update-reva
[full-ci] chore: bump reva to v2.22.0
2024-07-29 18:35:31 +02:00
Michael Barz c82c331dad tests: adapt expected failures line numbers 2024-07-29 18:04:46 +02:00
Michael Barz b83f2b4d2d tests: adapt acceptance tests 2024-07-29 17:45:22 +02:00
Michael Barz d7adeacc37 chore: bump reva to v2.22.0 2024-07-29 16:44:23 +02:00
Michael Barz 4ff6e02d96 Automated changelog update [skip ci] 2024-07-29 14:39:55 +00:00
Michael Barz efb6fc09f2 Merge pull request #9707 from owncloud/chore/bump-web-10.0.0
[full-ci] chore: bump web to v10.0.0
2024-07-29 16:38:55 +02:00
Jannik Stehle 542165df47 chore: bump web to v10.0.0 2024-07-29 16:09:25 +02:00
Viktor Scharf 74a0c03246 Merge pull request #9703 from owncloud/unhideShareTest
[test-only] unhide share
2024-07-29 15:01:19 +02:00
Viktor Scharf eb4de64f33 fix after review 2024-07-29 12:30:05 +02:00
Viktor Scharf eac8fb8649 unhide share 2024-07-29 11:43:05 +02:00
Christian Richter 3bdf6183b9 Automated changelog update [skip ci] 2024-07-29 08:02:04 +00:00
Christian Richter 990ea4edd0 Merge pull request #9693 from dragonchaser/add-init-diff-mode
add diff mode to init
2024-07-29 10:01:26 +02:00
Viktor Scharf 09bd4b0023 Merge pull request #9694 from owncloud/tests/wait-for-share-sync
[tests-only][full-ci] ensure shares are ready before performing actions on them
2024-07-26 12:37:49 +02:00
Michael Barz 78d3bf9e72 Merge pull request #9695 from owncloud/generate_proofkeys_collabora_example
chore: generate proof keys for collabora
2024-07-26 12:29:36 +02:00
Saw-jan 878c5f4075 test: ensure share is available before performing actions
test: fix expected-failure lines
2024-07-26 15:19:33 +05:45
Christian Richter 201a7c6b01 reduce complexity
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-26 11:11:53 +02:00
Juan Pablo Villafáñez ced0f618bd chore: generate proof keys for collabora 2024-07-26 10:47:20 +02:00
Christian Richter a04cd2a132 sort structs
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-26 09:49:47 +02:00
Christian Richter 745d0d2838 add changelog
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-26 08:02:02 +02:00
Christian Richter b60065f308 unclutter init pkg
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-26 07:54:27 +02:00
Christian Richter e2c4586706 add diff mode to init
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-26 07:49:37 +02:00
Juan Pablo Villafañez 24b940dfcc Automated changelog update [skip ci] 2024-07-25 12:48:11 +00:00
Juan Pablo Villafañez a7d81241e6 Merge pull request #9366 from owncloud/collaboration_proofkeys
Collaboration proofkeys
2024-07-25 14:47:39 +02:00
kobergj b63cff9842 Automated changelog update [skip ci] 2024-07-25 11:23:03 +00:00
kobergj 6f39d08c9b Merge pull request #9690 from kobergj/BumpReva
[full-ci] Bump Reva
2024-07-25 13:20:25 +02:00
Juan Pablo Villafáñez d2f6679921 docs: add changelog 2024-07-25 13:16:07 +02:00
Juan Pablo Villafáñez 02aef4d308 fix: wrong return value in the verify 2024-07-25 13:16:07 +02:00
Juan Pablo Villafáñez 2133785838 fix: disable proofkeys in CI and don't skip validator tests
Proofkeys feature can't be tested with the wopi validator for now.
The "FakeOffice" doesn't provide the keys in the discovery endpoint, and
the wopi validator doesn't seem to send any header with the proof.
2024-07-25 13:16:07 +02:00
Juan Pablo Villafáñez 7134374a2e fix: use int64 instead of bigInt 2024-07-25 13:16:07 +02:00
Juan Pablo Villafáñez 36d9a8c425 feat: proof keys verification for the collaboration service 2024-07-25 13:16:07 +02:00
Juan Pablo Villafáñez d47364dedb feat: [WIP] use proof keys to ensure requests come from trusted source
Basic code handling is in the proofkeys package. The idea is to
implement it as a middleware and hook it after the wopicontext
middleware.
Note that we need a way to switch this middleware off in case there are
problems with the verification, even though it should be active by
default.
2024-07-25 13:15:02 +02:00
jkoberg b52b424191 feat(reva): bump reva
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-25 12:53:32 +02:00
Roman Perekhod f381054e53 Automated changelog update [skip ci] 2024-07-25 10:39:58 +00:00
Roman Perekhod e5ac143aea Merge pull request #9689 from 2403905/issue-9432
fixed the response code when DELETE and MOVE requests to the file that is still in post-processing
2024-07-25 12:39:24 +02:00
Michael Barz ab84479a9e Automated changelog update [skip ci] 2024-07-25 09:52:18 +00:00
Michael Barz f2c04c9b0a Merge pull request #9685 from owncloud/msoo-parser
[webOffice] Microsoft Office Online Server Lock support
2024-07-25 11:51:41 +02:00
Sawjan Gurung 65d1567a5b Merge pull request #9678 from owncloud/test-activities-api
[tests-only] [full-ci] Add test to check activity after uploading a file
2024-07-25 15:28:48 +05:45
Roman Perekhod 69b27dc1ee fixed the response code when DELETE and MOVE requests to the file that is still in post-processing 2024-07-25 11:31:42 +02:00
Roman Perekhod 26f962ef82 Automated changelog update [skip ci] 2024-07-25 09:27:15 +00:00
Roman Perekhod eaddfa7308 Merge pull request #9677 from 2403905/issue-9482
[full-ci][bump reva] return 403 when the copy forbidden
2024-07-25 11:26:45 +02:00
Christian Richter c2e093099e Merge pull request #9688 from dragonchaser/clean_docs
[docs-only] remove <br> from mermaid charts
2024-07-25 11:13:55 +02:00
Christian Richter 6282f77478 remove obsolete \n
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-25 11:07:09 +02:00
Salipa-Gurung 065c4fa027 add test coverage for activities api for a file 2024-07-25 14:51:18 +05:45
Roman Perekhod 0145af1378 bump-reva.md updated 2024-07-25 10:53:35 +02:00
Christian Richter 2ff49e3f61 remove <br> from mermaid charts
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-25 08:42:03 +02:00
Sawjan Gurung 3787092749 Merge pull request #9617 from owncloud/cli-test-cleanup-empty-trash
[tests-only][full-ci] cli test for delete empty trash bin directory
2024-07-25 10:37:01 +05:45
Sabin 381506ed86 cli test for delete empty trash bin directory 2024-07-25 09:36:00 +05:45
Michael Barz 8b70f6f288 docs: add changelog 2024-07-24 21:32:32 +02:00
Michael Barz 4c63ddc439 tests: add and adapt unit tests 2024-07-24 21:32:32 +02:00
Michael Barz 08cb228500 feat: add new locks parser for microsoft office online server 2024-07-24 21:16:32 +02:00
Roman Perekhod 83c8d32ce9 [full-ci] fixed the response code when copying the file from the shares to personal space 2024-07-24 12:39:13 +02:00
Alex e15c3c3a04 Automated changelog update [skip ci] 2024-07-24 09:27:56 +00:00
Alex 9867a93c49 Merge pull request #9679 from owncloud/purge-unavailable-config-options
[full-ci] Remove config options that ain't available in web anymore
2024-07-24 11:25:50 +02:00
Sawjan Gurung baa0c23c31 Merge pull request #9663 from owncloud/tests/wait-for-share-sync
[tests-only][full-ci] ensure share is available
2024-07-24 13:08:56 +05:45
Jan Ackermann 552f5c86c1 Remove config options that ain't available in web anymore 2024-07-24 08:39:02 +02:00
Sawjan Gurung ad0e8a6b40 Merge pull request #9675 from owncloud/tests/invitation_in_permission_responses
[test-ony][full-ci] adding tests for `invitation` property which was missing in permissions responses
2024-07-24 11:55:00 +05:45
Saw-jan 5fabf09451 test: fix MOVE within Shares tests 2024-07-24 11:35:45 +05:45
Saw-jan 15f320f708 test: fix tests 2024-07-24 11:35:45 +05:45
Saw-jan 3883e17b52 test: ensure share is available 2024-07-24 11:35:45 +05:45
ishabaral 009a4a5cf0 add tests for invitation property in permission responses 2024-07-24 10:46:21 +05:45
ownClouders 4a6b0f04f6 [tx] updated from transifex 2024-07-24 04:33:21 +00:00
kobergj 3ff6ac6562 Automated changelog update [skip ci] 2024-07-23 15:51:45 +00:00
kobergj 02dbcae170 Merge pull request #9674 from kobergj/FixPanicNatsjskv
Dont Panic
2024-07-23 17:50:54 +02:00
Sawjan Gurung 4cf8390bb9 Merge pull request #9616 from owncloud/test-location-metadata-shares
[tests-only][full-ci] adding test for listing drive items with new metadatas in share space
2024-07-23 17:16:40 +05:45
Niraj Acharya fcb33ed3dd adding test for listing drive items with new props in personal space 2024-07-23 14:55:05 +05:45
Benedikt Kulmann f28a9b8c2f Merge pull request #9667 from owncloud/fix-env-var-description-email-in-results
[docs-only] fix env var description showing emails in results
2024-07-23 10:40:37 +02:00
kobergj 192a00718a Automated changelog update [skip ci] 2024-07-23 08:38:09 +00:00
kobergj e7340f658e Merge pull request #9079 from owncloud/feat/reva-app-auth
feat: reva app auth
2024-07-23 10:37:35 +02:00
jkoberg f92c6ae511 fix(nats-js-kv): Fix panic
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-23 09:52:37 +02:00
Viktor Scharf 832417b7d1 Merge pull request #9670 from owncloud/checkPermittionsInReportResponse
[test-only] check secure view permissions in the Report response
2024-07-23 09:48:48 +02:00
jkoberg 91396f5aa2 feat(auth-app): add changelog
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-23 09:34:58 +02:00
Sawjan Gurung de98cca897 Merge pull request #9640 from owncloud/test/role-management-endpoint
[tests-only][full-ci] test: add test coverage for role mangement endpoints
2024-07-23 13:19:44 +05:45
Benedikt Kulmann 51d40c3f12 docs: fix env var description showing emails in results 2024-07-23 09:33:09 +02:00
Viktor Scharf 0330b7e48b check secure view permissions in the Report response 2024-07-23 09:27:00 +02:00
pradip 7b8b4faf05 test: add test coverage for roleMangement endpoints 2024-07-23 12:46:16 +05:45
jkoberg 83e6ba7d09 fix(proxy): fix pipeline
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-23 08:58:08 +02:00
kobergjandMartin 0b514ba715 docu(auth-app): Improve documentation
Co-authored-by: Martin <github@diemattels.at>
2024-07-23 08:58:08 +02:00
jkoberg 63c62d423c fix(auth-app): use correct env introduction version
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-23 08:58:08 +02:00
kobergjandMartin eeb4749985 feat(auth-app): improve documentation
Co-authored-by: Martin <github@diemattels.at>
2024-07-23 08:58:08 +02:00
jkoberg a58a0f83f6 feat(auth-app): polish create cli
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-23 08:58:07 +02:00
jkoberg 11103a4220 feat(auth-app): make service optional plus docu
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-23 08:58:07 +02:00
jkoberg 3b3d30159d fix(proxy): fix build after rebase
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-23 08:58:07 +02:00
Thomas Müller 7005cbc0fc feat: add unit test for app auth middleware 2024-07-23 08:58:07 +02:00
Thomas Müller 4fa7ea0b20 feat: add cli command to generate app token for user 2024-07-23 08:58:07 +02:00
Thomas Müller 1eb66eb18c feat: add REVA appauth as oCIS service 2024-07-23 08:58:07 +02:00
Thomas Müller 43403edfb8 feat: reva app auth 2024-07-23 08:58:07 +02:00
Jannik Stehle 9685d354d2 Merge pull request #9669 from owncloud/feat/remove-draw-io
[full-ci] feat: remove draw-io from default web config
2024-07-23 07:29:50 +02:00
ownClouders 747f0f3f9f [tx] updated from transifex 2024-07-23 03:41:36 +00:00
Jannik Stehle f7ad9fff6e ci: remove disablePreviews option
This option is not available in Web anymore, hence removes it.
2024-07-22 15:40:25 +02:00
Roman Perekhod 4874aea425 Automated changelog update [skip ci] 2024-07-22 13:36:12 +00:00
Roman Perekhod 0205fbd3b9 Merge pull request #9666 from 2403905/debug-full-docker
Added the debugging to full ocis docker example
2024-07-22 15:35:30 +02:00
Jannik Stehle 15332aaef3 ci: bump web commit id 2024-07-22 15:11:04 +02:00
Roman PerekhodandMartin 46ed2296b5 Update docs/ocis/development/debugging.md
Co-authored-by: Martin <github@diemattels.at>
2024-07-22 15:07:33 +02:00
Roman PerekhodandMartin 3cf39823f4 Update docs/ocis/development/debugging.md
Co-authored-by: Martin <github@diemattels.at>
2024-07-22 15:07:16 +02:00
Jannik Stehle 7e27899f9e feat: remove draw-io from default web config
The `draw-io` app has been removed from the Web default apps, hence this removes it here as well.

The app is now available via the [web-extensions repository](https://github.com/owncloud/web-extensions).
2024-07-22 14:41:27 +02:00
kobergj fc1bff6d6b Automated changelog update [skip ci] 2024-07-22 11:45:17 +00:00
kobergj 47412e7b47 Merge pull request #9665 from kobergj/AssimilateTrashCommand
Fix trash command
2024-07-22 13:44:24 +02:00
Roman Perekhod 54524567a5 Added the debugging to full ocis docker example 2024-07-22 13:26:30 +02:00
jkoberg be6b3a0017 fix(ocis): fix trash command
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-22 12:48:24 +02:00
kobergj 9059045b23 Automated changelog update [skip ci] 2024-07-22 10:18:17 +00:00
kobergj c7a3ec2ed0 Merge pull request #9662 from owncloud/pass-registration-config-to-micro-ocdav
pass registration cfg to micro ocdav
2024-07-22 12:17:42 +02:00
Jörn Friedrich Dreyer 199ef0563e pass registration cfg to micro ocdav
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-22 11:41:41 +02:00
Jörn Friedrich Dreyer 68c59b6252 bump reva to 1a6e7f6d0e4f
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-22 11:41:41 +02:00
Roman Perekhod 6cc257e734 Automated changelog update [skip ci] 2024-07-22 07:36:46 +00:00
Roman Perekhod b67d023f5b Merge pull request #9634 from 2403905/issue-9568
[full-ci] skip the file name validation if nodeid used
2024-07-22 09:36:09 +02:00
Michael Barz 3f8545d29a Merge pull request #9660 from owncloud/fix-production
fix: fix production deployment
2024-07-22 09:14:21 +02:00
Phil Davis 6bbda86eb5 Merge pull request #9645 from owncloud/tests/extend-non-admin-testcases
[tests-only][full-ci] extend test cases for non-admin actions to admin resources
2024-07-22 12:36:42 +05:45
Michael Barz b680937f9a fix: fix production deployment 2024-07-22 08:47:42 +02:00
ownClouders 6c82a6560b [tx] updated from transifex 2024-07-22 00:41:37 +00:00
ownClouders 81db8219e4 [tx] updated from transifex 2024-07-21 00:07:11 +00:00
kobergj e688ef38c6 Automated changelog update [skip ci] 2024-07-19 11:30:58 +00:00
kobergj 7cf939aca8 Merge pull request #9654 from kobergj/FixRegistryTTL
Fix issues with natsjskv registry
2024-07-19 13:30:18 +02:00
Jannik Stehle 4f5728dfe3 Automated changelog update [skip ci] 2024-07-19 11:28:15 +00:00
Jannik Stehle d61cc69346 Merge pull request #9652 from owncloud/fix/missing-invitation-in-permissions
fix: missing invitation in permission responses
2024-07-19 13:27:36 +02:00
Jörn Friedrich Dreyer c421507f1e reva services should respect same register ttl
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-19 12:56:59 +02:00
Jörn Friedrich Dreyer 0c6ca19602 naming is hard
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-19 12:37:08 +02:00
Martin b5918c6855 Merge pull request #9655 from owncloud/fix_adoc_templates
[docs-only] Fix ADOC.tmpl and ADOC_global.tmpl (missing entry)
2024-07-19 12:32:41 +02:00
mmattel dcec2e54e8 [docs-only] Fix ADOC.tmpl and ADOC_global.tmpl (missing entry) 2024-07-19 12:23:20 +02:00
Christian Richter 8e26dc82cd Merge pull request #9651 from dragonchaser/fix-docs-helpers
Fix docs helpers
2024-07-19 11:59:21 +02:00
jkoberg 0c0866711c fix(registry): Fix TTL and registration interval
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-19 11:52:59 +02:00
Jannik Stehle 752c0df4e9 fix: missing invitation in permission responses
Fixes a bug where the `invitation` property is missing in the response when creating, listing or updating graph permissions.
2024-07-19 11:52:35 +02:00
Michael Barz 525c7ea45d Automated changelog update [skip ci] 2024-07-19 09:37:42 +00:00
Michael Barz 2b742e3dd5 Merge pull request #9653 from owncloud/collaboration-logging
feat: add more logging to collaboration service
2024-07-19 11:37:00 +02:00
Roman Perekhod b5422d200c Automated changelog update [skip ci] 2024-07-19 09:30:33 +00:00
Roman Perekhod 0ceb463592 Merge pull request #9638 from 2403905/issue-9607
Fix a missing SecureView permission attribute in the REPORT response
2024-07-19 11:29:50 +02:00
Prashant Gurung cea6533446 Merge pull request #9639 from owncloud/cli-remove-file-versions-by-spaceid
[tests-only][full-ci] adding test to remove old versions of files from a space using space-id using CLI
2024-07-19 14:50:43 +05:45
Michael Barz 006c67a5db feat: add more logging to the collaboration service 2024-07-19 11:03:28 +02:00
prashant-gurung899 89ca45bc80 add test to remove versions of files from space using space id
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-19 14:07:29 +05:45
Christian Richter 57d59de6e2 fix intendation
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-19 09:54:18 +02:00
Christian Richter 51138a63ff fix intendation
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-19 09:47:25 +02:00
kobergj 6467a4797a Merge pull request #9649 from owncloud/bump-ipd-webpack
bump idp webpack to 5
2024-07-19 09:46:57 +02:00
kobergj 379649f495 Automated changelog update [skip ci] 2024-07-19 07:36:12 +00:00
kobergj 2206d4a184 Merge pull request #9548 from owncloud/dependabot/go_modules/github.com/rs/cors-1.11.0
[full-ci] Get rid of go-chi/cors and bump rs/cors to 1.11.0
2024-07-19 09:35:31 +02:00
kobergj 8070238f88 Merge pull request #9641 from kobergj/GetRidOfOIDCgo
[full-ci] Get rid of oidc-go lib
2024-07-19 09:35:21 +02:00
Christian Richter a9c34d3aab replace NEXT tokens
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-19 09:22:21 +02:00
Christian Richter 7fb29d1d65 add IntroductionVersion to global adoc output
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-19 09:14:00 +02:00
Christian Richter 8975d413ef add IntroductionVersion to adoc output
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-19 09:08:57 +02:00
Sawjan Gurung d48cae6fd3 Merge pull request #9630 from owncloud/tests/cli_search_re-index_cmd_for_spaces
[tests-only][full-ci] search: reindex command for spaces
2024-07-19 11:37:37 +05:45
Sawjan Gurung fb44bebddd Merge pull request #9614 from owncloud/test-location-metadata-project
[tests-only][full-ci] adding test for listing drive items with new metadata in project space
2024-07-19 11:35:53 +05:45
ishabaral a78d501fc0 search: reindex command for all spaces 2024-07-19 10:15:11 +05:45
Niraj Acharya b43601e15b adding test for listing drive items with new props in personal space 2024-07-19 09:45:32 +05:45
Jörn Friedrich Dreyer c0538b26eb bump idp webpack to 5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-18 21:36:32 +02:00
Roman Perekhod 9fc37e7b81 Automated changelog update [skip ci] 2024-07-18 19:18:40 +00:00
Roman Perekhod ffe1542205 Merge pull request #9647 from 2403905/issue-9642
Fixed the channel lock in a workers pool
2024-07-18 21:17:44 +02:00
Michael Barz da2e202b21 Merge pull request #9644 from owncloud/collaboration_infolog
feat: use info level for access log to the collaboration service
2024-07-18 16:02:30 +02:00
Roman Perekhod 7f9e018c7c Fixed the channel lock in a workers pool 2024-07-18 15:33:50 +02:00
kobergj 76c1ad662d Merge pull request #9646 from kobergj/FixSonarcloudImport
[docs-only] Fix Sonarcloud Import issue
2024-07-18 15:28:58 +02:00
jkoberg 4a47d353b7 fix(ocis): fix sonarcloud import issue
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-18 14:32:48 +02:00
Christian Richter 1b7f30a960 adapt test
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-18 14:29:54 +02:00
Saw-jan dd8a3eb3d2 tests: add test cases for non-admin actions to admin resources 2024-07-18 17:43:16 +05:45
Juan Pablo Villafáñez d69bc2c1c6 fix: explicitly set the HTTP status header for the access log 2024-07-18 12:40:20 +02:00
Jörn Friedrich Dreyer 81ef018b9f Merge pull request #9624 from owncloud/drop-sjson-dependency
drop sjson dependency
2024-07-18 12:35:19 +02:00
Jörn Friedrich Dreyer c3c6085f2b drop sjson dependency
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-18 12:06:25 +02:00
jkoberg fd1386dc4b feat(ocis): get rid of oidc-go dependency
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-18 11:40:47 +02:00
jkoberg 30a0f8a71b fix(ocis): get rid of go-chi/cors lib
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-18 11:34:49 +02:00
Juan Pablo Villafáñez 0a33b934c1 feat: use info level for access log to the collaboration service 2024-07-18 10:48:08 +02:00
kobergj 3e3fcf3729 Automated changelog update [skip ci] 2024-07-18 07:57:34 +00:00
kobergj d75abae594 Merge pull request #9620 from kobergj/FixNatsjsRegistry
Repair Natsjskv Registry
2024-07-18 09:57:00 +02:00
dependabot[bot] c4bebfdd78 chore(deps): bump github.com/rs/cors from 1.10.1 to 1.11.0
Bumps [github.com/rs/cors](https://github.com/rs/cors) from 1.10.1 to 1.11.0.
- [Commits](https://github.com/rs/cors/compare/v1.10.1...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/rs/cors
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-18 09:53:10 +02:00
Sawjan Gurung 775913c8b5 Merge pull request #9593 from owncloud/cli-test-reset-admin-credentials
[tests-only][full-ci] added test for updating admin password via cli
2024-07-18 12:56:36 +05:45
Phil Davis 9d533a8c85 Automated changelog update [skip ci] 2024-07-18 07:03:37 +00:00
Phil Davis 6486250cd2 Merge pull request #6945 from owncloud/fix/issue-5938-sajan
fix: return 403 when non-admin tries to do admin requests
2024-07-18 12:48:07 +05:45
Sabin 52a0c346c3 added test for updating admin password via cli 2024-07-18 12:07:54 +05:45
Sawjan Gurung 61f8b20ecd Merge pull request #9627 from owncloud/cli-remove-file-versions-by-fileid
[tests-only][full-ci] adding test to remove old versions of a file using file-id using cli command
2024-07-18 11:17:17 +05:45
prashant-gurung899 22be9de42c add test to remove versions of a file using file id
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-18 10:33:46 +05:45
Saw-jan 4fbef3c58a chore: add changelog entry 2024-07-18 10:08:15 +05:45
Saw-jan 244f2bc937 test: updated test expectation 2024-07-18 10:08:15 +05:45
Saw-jan a93a74f9d1 fix: return 403 when non-admin tries to do admin requests 2024-07-18 09:39:36 +05:45
Michael Barz 698d24c4e7 Merge pull request #9637 from owncloud/corrected-dates-of-6.0.0-and-5.0.6
corrected dates of 6.0.0 and 5.0.6
2024-07-17 20:15:11 +02:00
Roman Perekhod 3283b83937 Fix a missing SecureView permission attribute in the REPORT response 2024-07-17 19:52:58 +02:00
Tobias Baader bf3b9f70f0 corrected dates of 6.0.0 and 5.0.6
corrected dates of 6.0.0 and 5.0.6
2024-07-17 19:08:43 +02:00
Michael Barz 2985823dd5 Merge pull request #9636 from owncloud/added-release-5.0.6
added release 5.0.6
2024-07-17 18:50:29 +02:00
Tobias Baader c51aef0473 corrected date for 5.0.6
corrected date for 5.0.6
2024-07-17 18:42:43 +02:00
Tobias Baader 83e203efcc added release 5.0.6
added 5.0.6 to release table
2024-07-17 18:41:04 +02:00
Roman Perekhod 95de8f584b [full-ci] skip the file name validation if nodeid used 2024-07-17 18:19:05 +02:00
jkoberg 6d7d18adce feat(deps): bump plugins/store/nats-js-kv
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-17 15:26:49 +02:00
jkoberg 60d4305bab fix(natsjsregistry): spread load evenly among instances
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-17 15:26:49 +02:00
Sawjan Gurung 4c613776ec Merge pull request #9612 from owncloud/test-location-metadata
[tests-only][full-ci] adding test for listing drive items with new metadata in personal space
2024-07-17 17:22:05 +05:45
kobergj 2f369157d4 Automated changelog update [skip ci] 2024-07-17 09:31:41 +00:00
kobergj f31b91bc6b Merge pull request #9631 from kobergj/BumpWebCommitID
[full-ci] Bump Web CommitID
2024-07-17 11:31:03 +02:00
jkoberg d8a31dca91 feat(ocis): bump web commitID to current master
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-17 11:06:10 +02:00
kobergj 9ef16e373a Automated changelog update [skip ci] 2024-07-17 08:42:35 +00:00
kobergj de194c7076 Merge pull request #9621 from owncloud/bump-reva-af606e7f
[full-ci] bump reva
2024-07-17 10:42:00 +02:00
Niraj Acharya 740793ec18 adding test for listing drive items with new props in personal space 2024-07-17 14:09:40 +05:45
jkoberg 86c17e2b7e fix(tests): default archive format is now zip
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-07-17 10:13:16 +02:00
Jörn Friedrich Dreyer fae509ab94 bump reva to 11ee452e19a7
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-17 09:02:15 +02:00
Andre Duffeck 38bc0a50b5 Merge pull request #9590 from aduffeck/enable-xattrs-caching
Enable caching for the xattrs backend (posixfs)
2024-07-17 08:10:58 +02:00
Sawjan Gurung 4323c26cfb Merge pull request #9606 from owncloud/new-props-in-spaces
[tests-only] add test coverage for new props from personal space
2024-07-17 11:41:08 +05:45
ownClouders b7911997da [tx] updated from transifex 2024-07-17 04:08:21 +00:00
Christian Richter c4dfe3cd8a Automated changelog update [skip ci] 2024-07-16 14:17:50 +00:00
Christian Richter 6f10ef1ab4 Merge pull request #9622 from dragonchaser/fix-tracing-nil-pointer-issue
Fix tracing nil pointer issue
2024-07-16 14:17:12 +00:00
Christian RichterandJörn Friedrich Dreyer 784e9e9c37 Add changelog
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-16 14:50:33 +02:00
Christian RichterandJörn Friedrich Dreyer 505ed389b7 Fix nil-pointer issue with misconfigured tracing
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-16 14:46:49 +02:00
Salipa-Gurung c37b5baa3a add test coverage for new props by sharee from shares space 2024-07-16 17:20:15 +05:45
Salipa-Gurung dfee52bcd9 add test coverage for new props from personal space 2024-07-16 17:20:15 +05:45
Michael Barz 5b3dd4dcba Merge pull request #9586 from fschade/cleanup-removals
chore!: remove deprecated configuration values
2024-07-16 13:30:02 +02:00
Michael Barz a59cfa02e7 Automated changelog update [skip ci] 2024-07-16 11:24:48 +00:00
Michael Barz 7e9da8312f Merge pull request #9475 from owncloud/log-useragent-and-remoteaddr
Log user agent and remote addr on auth errors
2024-07-16 13:23:01 +02:00
Jörn Friedrich Dreyer b2255bb3d5 Log user agent and remote addr on auth errors
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-16 12:41:04 +02:00
Sawjan Gurung e258d360ea Merge pull request #9584 from owncloud/cli-remove-versions
[tests-only][full-ci] adding test to remove old versions of resources using cli command
2024-07-16 16:06:45 +05:45
prashant-gurung899 7b4a92c22a add test to remove versions using CLI command
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-16 15:31:38 +05:45
Sawjan Gurung d98a05d2df Merge pull request #9603 from owncloud/test/email-notification
[tests-only][full-ci] test: add test coverage for mail notification with comma(,) in display name of sender
2024-07-16 11:19:02 +05:45
Viktor Scharf 8e9ccf0260 Merge pull request #9597 from owncloud/listInvitationTest
[test-only] list Invitation
2024-07-15 13:08:46 +02:00
pradip 0145c1690b test: add test coverage for mail notification with comma(,) in display name of sender 2024-07-15 16:19:06 +05:45
Viktor Scharf 1b8b911b63 list Invitation 2024-07-15 12:24:59 +02:00
Martin ce199d56ab Merge pull request #9600 from owncloud/mmattel-patch-1
[docs-only] Update new-service-checklist.md
2024-07-12 18:06:39 +02:00
Martin 32f7652abc [docs-only] Update new-service-checklist.md
Add that some service names must not be used because these names are part of automated documentation process.
2024-07-12 17:29:18 +02:00
Martin 23b78aa46c Merge pull request #9598 from owncloud/render_template_fix_for_deprecations
[docs-only] Docs adoc template: make a space between deprecations and standard
2024-07-12 17:16:17 +02:00
MartinandPhil Davis 079fbfa850 Update docs/templates/ADOC.tmpl
Co-authored-by: Phil Davis <phil@jankaritech.com>
2024-07-12 16:18:09 +02:00
mmattel c493952ea2 adoc helper template fix 2024-07-12 16:09:45 +02:00
Christian Richter ca65278546 Automated changelog update [skip ci] 2024-07-12 11:33:52 +00:00
Christian Richter 7efff806ee Merge pull request #9580 from dragonchaser/disable_collabora_chat
Add more wopi features, language, disable chat
2024-07-12 11:32:56 +00:00
Christian Richter c99550984e change providerv1beta1.Reference to pointer
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-12 12:00:18 +02:00
Martin 76a3f59574 Merge pull request #9595 from owncloud/phil-davis-patch-2
Minor edit to added-services.md
2024-07-12 10:39:50 +02:00
Phil Davis 7603af04ba Minor edit to added-services.md 2024-07-12 14:19:12 +05:45
Florian Schade 31272dc168 chore!: remove deprecated configuration values 2024-07-12 10:15:38 +02:00
Martin 5c05b4b80d Merge pull request #9592 from owncloud/add_services_delta_to_dev_docs
[docs-only] Add page to dev docs with services per release
2024-07-12 10:00:45 +02:00
Martin 3b9cf3fabb Update docs/services/general-info/added-services.md 2024-07-12 09:56:08 +02:00
Christian Richter 58c3c66429 ignore empty language setting & adapt tests
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-12 09:30:54 +02:00
Christian Richter 174afe379e Merge branch 'disable_collabora_chat' of github.com:dragonchaser/ocis into disable_collabora_chat 2024-07-12 09:25:47 +02:00
Christian Richter 5359d6ddee adapt test
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-12 09:24:25 +02:00
Christian RichterandMichael Barz 010cccde91 Make disable chat configurable
Co-authored-by: Michael Barz <mbarz@owncloud.com>
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-12 09:24:25 +02:00
Christian RichterandMichael Barz 04529e18e9 Add missing language variables
Co-authored-by: Michael Barz <mbarz@owncloud.com>
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-12 09:24:25 +02:00
Christian Richter a0528d4dfb make sonarcloud happy
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-12 09:24:25 +02:00
Christian Richter 543f9ac08b adapt test
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-12 09:24:25 +02:00
Christian Richter cfb145f03c disable collabora chat
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-12 09:24:25 +02:00
mmattel 64b1d731d7 [docs-only] Add page with services per release 2024-07-12 09:21:46 +02:00
André Duffeck f5de0a09cf Enable caching for the xattrs backend 2024-07-12 08:39:30 +02:00
Michael Barz e93a132e17 docs: add changelog 2024-07-11 22:02:57 +02:00
Michael Barz d4fef06ef9 tests: add lang to opaque 2024-07-11 21:59:18 +02:00
Christian Richter 16ced06cad adapt test
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-11 21:19:25 +02:00
Christian RichterandMichael Barz 73c7a4a1a5 Make disable chat configurable
Co-authored-by: Michael Barz <mbarz@owncloud.com>
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-11 21:19:25 +02:00
Christian RichterandMichael Barz c3ae99dea2 Add missing language variables
Co-authored-by: Michael Barz <mbarz@owncloud.com>
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-11 21:19:25 +02:00
Christian Richter 0ce6a01874 make sonarcloud happy
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-11 21:19:25 +02:00
Christian Richter 7d6d57d997 adapt test
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-11 21:19:25 +02:00
Christian Richter 9d567e8efd disable collabora chat
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-07-11 21:19:25 +02:00
Michael Barz 4e0ecd1451 Merge pull request #9587 from rhafer/issue/9554
bump go-cs3apis and reva to latest master
2024-07-11 21:12:32 +02:00
Roman Perekhod e30be758bd the reva replacement has been removed 2024-07-11 20:13:20 +02:00
Ralf Haferkamp 26b4927ed8 Address go-vet reported issues
mainly "copylocks: return copies lock value" related things
2024-07-11 16:59:25 +02:00
Ralf Haferkamp 537bceb9d8 audit: workaround unstable prototext string representation
The prototext formater (used by '.String()') inserts spaces randomly
(see: https://protobuf.dev/reference/go/faq/#unstable-text).
2024-07-11 16:32:29 +02:00
Ralf Haferkamp ff6674f97b Fix fallout of reva bump
reva tries to avoid copying proto messages now. This changed some calls
to take pointers now (mainly e.g. FormatResourceId())
2024-07-11 15:21:56 +02:00
Ralf Haferkamp a33dd51581 Bump cs3apis to latest master
Also includes a reva bump

Closes: #9554
2024-07-11 15:14:47 +02:00
Michael Barz 10ce8db793 Automated changelog update [skip ci] 2024-07-11 11:15:43 +00:00
Michael Barz 11ce2a6df3 Merge pull request #9585 from owncloud/chore/bump-web-9.2.0-alpha.1
[full-ci] chore: bump web to v9.2.0-alpha.1
2024-07-11 13:15:11 +02:00
Jannik Stehle e665425cf4 chore: bump web to v9.2.0-alpha.1 2024-07-11 12:39:27 +02:00
Sawjan Gurung 4696417a1f Merge pull request #9578 from owncloud/backup-consistency-cli-test
[tests-only][full-ci]adding test for backup consistency cli command
2024-07-11 15:25:52 +05:45
Michael Barz 0b8559f91f Merge pull request #9574 from owncloud/dependabot/go_modules/google.golang.org/grpc-1.65.0
chore(deps): bump google.golang.org/grpc from 1.64.0 to 1.65.0
2024-07-11 10:04:58 +02:00
Martin d414f36c38 Merge pull request #9582 from owncloud/update_envars_yaml
[docs-only] Just an update of the envvars yaml file for the docs helper
2024-07-11 09:20:21 +02:00
mmattel 22c8b74921 [docs-only] Just an update of the envvars yaml file for the docs helper 2024-07-11 09:10:12 +02:00
Niraj Acharya 735b24fff5 adding test for backup consistency cli command 2024-07-11 12:28:52 +05:45
Sawjan Gurung f807c4ef13 Merge pull request #9569 from owncloud/tests/remote_item_id
[tests-only][full-ci] add remote item-id check in REPORT responses
2024-07-11 11:44:14 +05:45
Sawjan Gurung ea1e80ae9a Merge pull request #9575 from owncloud/ocis-cli-test-password-reset-non-user
[tests-only][full-ci] added cli test for changing password of non-existing user
2024-07-11 11:28:22 +05:45
ishabaral 5b566e2b43 add remote item id to search report tests scenario 2024-07-11 09:58:47 +05:45
Sabin 3095d843b8 added cli test for changing password of non-existing user 2024-07-11 09:39:57 +05:45
Michael Barz cc12fdc9c4 Update collabora to latest patch release
Seems like the locking issue is solved.
2024-07-10 19:04:38 +02:00
Martin d3515354c8 Merge pull request #9576 from owncloud/fix_bpwl_envvar_text
[docs-only] Make the envvar text for the banned pwd list more precise
2024-07-10 11:31:07 +02:00
Martin b161ae41e9 Apply suggestions from code review 2024-07-10 11:00:53 +02:00
Viktor Scharf 2fc47576ca Merge pull request #9566 from owncloud/findAcceptedUser
[test-only] Find accepted user
2024-07-10 10:36:49 +02:00
mmattel 6fabb94141 Make the envvar text for the banned pwd list more precise 2024-07-10 10:34:33 +02:00
Phil Davis 9b00f7bf94 Merge pull request #9523 from owncloud/test/split-apiSharingNg-suite-for-CI-time-check
[tests-only][full-ci] split apiSharingNg test features to different suites
2024-07-10 13:50:46 +05:45
pradip ff9a80f76c test:split apiSharingNg suite for checking if CI time gets reduced 2024-07-10 13:06:30 +05:45
dependabot[bot] 2145e0b7f5 chore(deps): bump google.golang.org/grpc from 1.64.0 to 1.65.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.64.0 to 1.65.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.64.0...v1.65.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-10 06:19:45 +00:00
ownClouders d57ff92ea6 [tx] updated from transifex 2024-07-10 00:08:35 +00:00
Viktor Scharf cac97c6067 find accepted users 2024-07-09 14:47:16 +02:00
Viktor Scharf 71ea5f186a Merge pull request #9570 from owncloud/ci/rename-pipeline-name
ci: remove storage name from pipeline names
2024-07-09 14:46:44 +02:00
Saw-jan d499415086 ci: remove storage name from pipeline names 2024-07-09 17:20:47 +05:45
Sawjan Gurung d677b27dbd Merge pull request #9563 from owncloud/extend-tests-sharer-profinds-for-file
[full-ci][tests-only] Extended the tests to cover profind by sharer to shared file
2024-07-09 16:37:40 +05:45
Sawjan Gurung 18048aaaeb Merge pull request #9564 from owncloud/webdav-remove-then-steps
[tests-only][full-ci] remove unused Then step definitions from WebDav.php
2024-07-09 16:20:42 +05:45
Sawjan Gurung 1759cac243 Merge pull request #9545 from owncloud/upload-to-public-link
[tests-only][full-ci]adding test for uploading file to a public link of a project space
2024-07-09 16:13:18 +05:45
Prarup Gurung 24c10b32d0 Fixed line numbers in expected failure 2024-07-09 16:06:18 +05:45
Prarup Gurung 9178be1b05 Extended the tests to cover file for profind resource by sharer 2024-07-09 16:06:17 +05:45
Michael Barz 14667c3e4e Merge pull request #9268 from owncloud/thumbnailer-cors-config
feat: thumbnail service CORS config
2024-07-09 11:56:03 +02:00
Michael Barz 2e89561a55 Merge pull request #9161 from owncloud/set-default-app-provider
set correct default external service address
2024-07-09 11:47:06 +02:00
prashant-gurung899 9c4e26ac85 remove unused Then test steps
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-09 15:24:10 +05:45
Benedikt Kulmann 6b697d77ba feat: thumbnail service CORS config 2024-07-09 11:33:56 +02:00
Sawjan Gurung 7b6b0633dd Merge pull request #9565 from owncloud/tests/tus-upload
[tests-only][full-ci] add TUS upload API test for invalid ".." path
2024-07-09 15:07:16 +05:45
Jörn Friedrich Dreyer 176a9afe27 set correct default external service address
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-07-09 11:22:05 +02:00
Saw-jan 79175b0f25 test: add TUS upload test for .. path 2024-07-09 14:10:50 +05:45
Sawjan Gurung bd7cd6235a Merge pull request #9546 from owncloud/ociswrapper/new-endpoints
[POC][tests-only] add endpoints to accept ocis commands
2024-07-09 14:02:00 +05:45
Saw-jan d8ab9c53a8 docs: add docs on new APIs 2024-07-09 13:16:01 +05:45
Martin 90e789a6ca Merge pull request #9466 from owncloud/fixes_docs_helper_output
[docs-only] update env_vars.yaml post Activitylog API merge
2024-07-09 09:17:28 +02:00
mmattel 91f5903c4c env_vars.yaml update to latest changes 2024-07-09 09:12:18 +02:00
mmattel b400901971 [docs-only] update env_vars.yaml post Activitylog API merge 2024-07-09 09:06:06 +02:00
dependabot[bot] f3f528e76e chore(deps): bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
Bumps [go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.52.0 to 0.53.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go-contrib/compare/zpages/v0.52.0...zpages/v0.53.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 08:37:39 +02:00
Niraj Acharya 5db84bdb12 adding test for uploading file to a public link of a project space 2024-07-09 12:04:48 +05:45
Saw-jan 9e6b6bc0f3 test: run cli test suites 2024-07-09 11:48:03 +05:45
Saw-jan 13b428ecae refactor: remove stdins from the command logs 2024-07-09 11:48:03 +05:45
Saw-jan 78ca9bacf9 test: add cli test for resetting user password 2024-07-09 11:48:03 +05:45
Saw-jan fd6e773b7e test: prepare cli test suite 2024-07-09 11:48:03 +05:45
Saw-jan 9baecdfd58 fix: return early if the ocis is not running 2024-07-09 11:48:03 +05:45
Saw-jan 86fd73e912 refactor: respond 409 conflict if server is already running 2024-07-09 11:48:03 +05:45
Saw-jan 2b88c194bc refactor: allow any commands and user inputs 2024-07-09 11:48:03 +05:45
Saw-jan d8dff89c1c feat: allow interactive command execution 2024-07-09 11:48:03 +05:45
Saw-jan 7f0a1b0cdd fix: cumulative env and clear command var 2024-07-09 11:48:03 +05:45
Saw-jan 733f1852ea feat: add start endpoint 2024-07-09 11:48:03 +05:45
Saw-jan 3306a1f277 timeout command execution 2024-07-09 11:48:03 +05:45
Saw-jan d1d25ae940 feat: add option to skip running ocis 2024-07-09 11:48:03 +05:45
Saw-jan 6e2ccefa51 feat: add command and stop endpoints 2024-07-09 11:48:03 +05:45
Phil Davis 6826e360f1 Merge pull request #9557 from owncloud/webdav-remove-when-steps
[tests-only][full-ci] remove unused When step definitions from WebDav.php
2024-07-09 10:58:22 +05:45
prashant-gurung899 0cc27da636 remove unused when test steps
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-09 10:06:23 +05:45
Michael Barz 73da706d52 Automated changelog update [skip ci] 2024-07-08 14:55:52 +00:00
Michael Barz 0272de2c5c Merge pull request #9559 from owncloud/release-6.1.0
[full-ci] chore: prepare changelog, bump version, update CD
2024-07-08 16:55:10 +02:00
Michael Barz c4b2e6a3c0 docs: add release to table 2024-07-08 15:58:26 +02:00
Michael Barz e586a71570 chore: prepare changelog, bump version, update CD 2024-07-08 15:58:26 +02:00
Michael Barz 31069b0d07 Automated changelog update [skip ci] 2024-07-08 15:57:48 +02:00
743 changed files with 68030 additions and 45977 deletions

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
# The test runner source for UI tests
WEB_COMMITID=b92e0c3d353ba72174e9941ed4ef1ff528a35862
WEB_COMMITID=9a262d0ef4bd5625e5eb702f094317000ab11a43
WEB_BRANCH=master
+22 -12
View File
@@ -85,9 +85,11 @@ config = {
"apiLocks",
"apiSearch1",
"apiSearch2",
"apiSharingNg",
"apiSharingNg1",
"apiSharingNg2",
"apiSharingNgShareInvitation",
"apiSharingNgLinkShare",
"apiSharingNgLinkSharePermission",
"apiSharingNgLinkShareRoot",
],
"skip": False,
},
@@ -151,6 +153,12 @@ config = {
"OCM_OCM_PROVIDER_AUTHORIZER_PROVIDERS_FILE": "%s" % dirs["ocmProviders"],
},
},
"cli": {
"suites": [
"cliCommands",
],
"skip": False,
},
},
"apiTests": {
"numberOfParts": 10,
@@ -859,7 +867,7 @@ def localApiTestPipeline(ctx):
pipeline = {
"kind": "pipeline",
"type": "docker",
"name": "localApiTests-%s-%s" % (suite, storage),
"name": "%s-Tests-%s" % ("CLI" if name.startswith("cli") else "API", suite),
"platform": {
"os": "linux",
"arch": "amd64",
@@ -905,7 +913,7 @@ def localApiTests(suite, storage, extra_environment = {}):
environment[item] = extra_environment[item]
return [{
"name": "localApiTests-%s-%s" % (suite, storage),
"name": "localApiTests-%s" % suite,
"image": OC_CI_PHP % DEFAULT_PHP_VERSION,
"environment": environment,
"commands": [
@@ -917,7 +925,7 @@ def cs3ApiTests(ctx, storage, accounts_hash_difficulty = 4):
return {
"kind": "pipeline",
"type": "docker",
"name": "cs3ApiTests-%s" % (storage),
"name": "cs3ApiTests",
"platform": {
"os": "linux",
"arch": "amd64",
@@ -927,7 +935,7 @@ def cs3ApiTests(ctx, storage, accounts_hash_difficulty = 4):
ocisServer(storage, accounts_hash_difficulty, [], [], "cs3api_validator") +
[
{
"name": "cs3ApiTests-%s" % (storage),
"name": "cs3ApiTests",
"image": OC_CS3_API_VALIDATOR,
"environment": {},
"commands": [
@@ -991,6 +999,8 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
"COLLABORATION_LOG_LEVEL": "debug",
"COLLABORATION_HTTP_ADDR": "0.0.0.0:9300",
"COLLABORATION_GRPC_ADDR": "0.0.0.0:9301",
# no proof keys available in the FakeOffice
"COLLABORATION_APP_PROOF_DISABLE": "true",
"COLLABORATION_APP_NAME": "FakeOffice",
"COLLABORATION_APP_ADDR": "http://fakeoffice:8080",
"COLLABORATION_APP_INSECURE": "true",
@@ -1007,7 +1017,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
for testgroup in testgroups:
validatorTests.append({
"name": "wopiValidatorTests-%s-%s" % (storage, testgroup),
"name": "wopiValidatorTests-%s" % testgroup,
"image": "owncloudci/wopi-validator",
"commands": [
"export WOPI_TOKEN=$(cat accesstoken)",
@@ -1017,14 +1027,14 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
"export WOPI_SRC=$(cat wopisrc)",
"echo $WOPI_SRC",
"cd /app",
"/app/Microsoft.Office.WopiValidator -s -t $WOPI_TOKEN -w $WOPI_SRC -l $WOPI_TTL --testgroup %s" % testgroup,
"/app/Microsoft.Office.WopiValidator -t $WOPI_TOKEN -w $WOPI_SRC -l $WOPI_TTL --testgroup %s" % testgroup,
],
})
return {
"kind": "pipeline",
"type": "docker",
"name": "wopiValidatorTests-%s-%s" % (wopiServerType, storage),
"name": "wopiValidatorTests-%s" % wopiServerType,
"platform": {
"os": "linux",
"arch": "amd64",
@@ -1060,7 +1070,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
],
},
{
"name": "prepare-test-file-%s" % (storage),
"name": "prepare-test-file",
"image": OC_CI_ALPINE,
"environment": {},
"commands": [
@@ -1095,7 +1105,7 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "ocis", ac
return {
"kind": "pipeline",
"type": "docker",
"name": "Core-API-Tests-%s-storage-%s" % (storage, part_number),
"name": "Core-API-Tests-%s" % part_number,
"platform": {
"os": "linux",
"arch": "amd64",
@@ -1105,7 +1115,7 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "ocis", ac
ocisServer(storage, accounts_hash_difficulty, with_wrapper = True) +
[
{
"name": "oC10ApiTests-%s-storage-%s" % (storage, part_number),
"name": "oC10ApiTests-%s" % part_number,
"image": OC_CI_PHP % DEFAULT_PHP_VERSION,
"environment": {
"PATH_TO_OCIS": "%s" % dirs["base"],
+1
View File
@@ -65,6 +65,7 @@ linters-settings:
- github.com/studio-b12/gowebdav
- github.com/egirna/icap-client
- github.com/unrolled/secure
- github.com/go-micro/plugins/v4/store/nats-js-kv
interfacebloat:
max: 15
+288 -22
View File
@@ -1,6 +1,7 @@
# Table of Contents
* [Changelog for unreleased](#changelog-for-unreleased-unreleased)
* [Changelog for 6.1.0](#changelog-for-610-2024-07-08)
* [Changelog for 6.0.0](#changelog-for-600-2024-06-19)
* [Changelog for 5.0.3](#changelog-for-503-2024-05-02)
* [Changelog for 5.0.2](#changelog-for-502-2024-04-17)
@@ -17,8 +18,8 @@
* [Changelog for 3.0.0](#changelog-for-300-2023-06-06)
* [Changelog for 2.0.0](#changelog-for-200-2022-11-30)
* [Changelog for 1.20.0](#changelog-for-1200-2022-04-13)
* [Changelog for 1.19.0](#changelog-for-1190-2022-03-29)
* [Changelog for 1.19.1](#changelog-for-1191-2022-03-29)
* [Changelog for 1.19.0](#changelog-for-1190-2022-03-29)
* [Changelog for 1.18.0](#changelog-for-1180-2022-03-03)
* [Changelog for 1.17.0](#changelog-for-1170-2022-02-16)
* [Changelog for 1.16.0](#changelog-for-1160-2021-12-10)
@@ -43,7 +44,272 @@
The following sections list the changes for unreleased.
[unreleased]: https://github.com/owncloud/ocis/compare/v6.0.0...master
[unreleased]: https://github.com/owncloud/ocis/compare/v6.1.0...master
## Summary
* Bugfix - Fix restarting of postprocessing: [#6945](https://github.com/owncloud/ocis/pull/6945)
* Bugfix - Fix crash on empty tracing provider: [#9622](https://github.com/owncloud/ocis/pull/9622)
* Bugfix - Fixed the file name validation if nodeid is used: [#9634](https://github.com/owncloud/ocis/pull/9634)
* Bugfix - Fix a missing SecureView permission attribute in the REPORT response: [#9638](https://github.com/owncloud/ocis/pull/9638)
* Bugfix - Fixed the channel lock in a workers pool: [#9647](https://github.com/owncloud/ocis/pull/9647)
* Bugfix - Missing invitation in permission responses: [#9652](https://github.com/owncloud/ocis/pull/9652)
* Bugfix - Repair nats-js-kv registry: [#9662](https://github.com/owncloud/ocis/pull/9662)
* Bugfix - Fix panic: [#9673](https://github.com/owncloud/ocis/pull/9673)
* Bugfix - Fixed the response code when copying the shared from to personal: [#9677](https://github.com/owncloud/ocis/pull/9677)
* Bugfix - Fixed response code for DELETE file that is in postprocessing: [#9689](https://github.com/owncloud/ocis/pull/9689)
* Change - Remove unavailable web config options: [#9679](https://github.com/owncloud/ocis/pull/9679)
* Enhancement - Introduce auth-app service: [#9079](https://github.com/owncloud/ocis/pull/9079)
* Enhancement - Add support for proof keys for the collaboration service: [#9366](https://github.com/owncloud/ocis/pull/9366)
* Enhancement - Log user agent and remote addr on auth errors: [#9475](https://github.com/owncloud/ocis/pull/9475)
* Enhancement - Add missing WOPI features: [#9580](https://github.com/owncloud/ocis/pull/9580)
* Enhancement - Bump commitID for web: [#9631](https://github.com/owncloud/ocis/pull/9631)
* Enhancement - Remove oidc-go dependency: [#9641](https://github.com/owncloud/ocis/pull/9641)
* Enhancement - Improve the collaboration service logging: [#9653](https://github.com/owncloud/ocis/pull/9653)
* Enhancement - Fix trash command: [#9665](https://github.com/owncloud/ocis/pull/9665)
* Enhancement - Added the debugging to full ocis docker example: [#9666](https://github.com/owncloud/ocis/pull/9666)
* Enhancement - Add locking support for MS Office Online Server: [#9685](https://github.com/owncloud/ocis/pull/9685)
* Enhancement - Bump reva to v.2.22.0: [#9690](https://github.com/owncloud/ocis/pull/9690)
* Enhancement - Add `--diff` to the `ocis init` command: [#9693](https://github.com/owncloud/ocis/pull/9693)
* Enhancement - Update web to v10.0.0: [#9707](https://github.com/owncloud/ocis/pull/9707)
## Details
* Bugfix - Fix restarting of postprocessing: [#6945](https://github.com/owncloud/ocis/pull/6945)
We fixed a bug where non-admin requests to admin resources would get 401
Unauthorized. Now, the server sends 403 Forbidden response.
https://github.com/owncloud/ocis/issues/5938
https://github.com/owncloud/ocis/pull/6945
* Bugfix - Fix crash on empty tracing provider: [#9622](https://github.com/owncloud/ocis/pull/9622)
We have fixed a bug that causes a crash when OCIS_TRACING_ENABLED is set to
true, but no tracing Endpoints or Collectors have been provided.a
https://github.com/owncloud/ocis/issues/7012
https://github.com/owncloud/ocis/pull/9622
* Bugfix - Fixed the file name validation if nodeid is used: [#9634](https://github.com/owncloud/ocis/pull/9634)
We have fixed the file name validation if nodeid is used
https://github.com/owncloud/ocis/issues/9568
https://github.com/owncloud/ocis/pull/9634
* Bugfix - Fix a missing SecureView permission attribute in the REPORT response: [#9638](https://github.com/owncloud/ocis/pull/9638)
We fixed a missing SecureView permission attribute in the REPORT response.
https://github.com/owncloud/ocis/issues/9607
https://github.com/owncloud/ocis/pull/9638
* Bugfix - Fixed the channel lock in a workers pool: [#9647](https://github.com/owncloud/ocis/pull/9647)
We fixed an error when the users can't see more than 10 shares
https://github.com/owncloud/ocis/issues/9642
https://github.com/owncloud/ocis/pull/9647
* Bugfix - Missing invitation in permission responses: [#9652](https://github.com/owncloud/ocis/pull/9652)
We have fixed a bug where the `invitation` property was missing in the response
when creating, listing or updating graph permissions.
https://github.com/owncloud/ocis/issues/9571
https://github.com/owncloud/ocis/pull/9652
* Bugfix - Repair nats-js-kv registry: [#9662](https://github.com/owncloud/ocis/pull/9662)
The registry would always send traffic to only one pod. This is now fixed and
load should be spread evenly. Also implements watcher method so the cache can
use it.
https://github.com/owncloud/ocis/pull/9662
https://github.com/owncloud/ocis/pull/9654
https://github.com/owncloud/ocis/pull/9620
* Bugfix - Fix panic: [#9673](https://github.com/owncloud/ocis/pull/9673)
Fixes panic occuring when the nats-js-kv is not properly initialized.
https://github.com/owncloud/ocis/pull/9673
* Bugfix - Fixed the response code when copying the shared from to personal: [#9677](https://github.com/owncloud/ocis/pull/9677)
We fixed the response code when copying the file from shares to personal space
with a secure view role.
https://github.com/owncloud/ocis/issues/9482
https://github.com/owncloud/ocis/pull/9677
* Bugfix - Fixed response code for DELETE file that is in postprocessing: [#9689](https://github.com/owncloud/ocis/pull/9689)
We fixed the response code when DELETE and MOVE requests to the file that is
still in post-processing.
https://github.com/owncloud/ocis/issues/9432
https://github.com/owncloud/ocis/pull/9689
* Change - Remove unavailable web config options: [#9679](https://github.com/owncloud/ocis/pull/9679)
We've removed config options from the web package, that are no longer available
in web. Check the web changelog for more details.
https://github.com/owncloud/ocis/pull/9679
https://github.com/owncloud/web/pull/11256
https://github.com/owncloud/web/pull/10122
https://github.com/owncloud/web/pull/11260
* Enhancement - Introduce auth-app service: [#9079](https://github.com/owncloud/ocis/pull/9079)
Introduce a new service, auth-app, that provides authentication and
authorization services for applications.
https://github.com/owncloud/ocis/pull/9079
* Enhancement - Add support for proof keys for the collaboration service: [#9366](https://github.com/owncloud/ocis/pull/9366)
Proof keys support will be enabled by default in order to ensure that all the
requests come from a trusted source. Since proof keys must be set in the WOPI
app (OnlyOffice, Collabora...), it's possible to disable the verification of the
proof keys via configuration.
https://github.com/owncloud/ocis/pull/9366
* Enhancement - Log user agent and remote addr on auth errors: [#9475](https://github.com/owncloud/ocis/pull/9475)
The proxy will now log `user_agent`, `client.address`, `network.peer.address`
and `network.peer.port` to help operations debug authentication errors. The
latter three follow the [Semantic Conventions 1.26.0 / General /
Attributes](https://opentelemetry.io/docs/specs/semconv/general/attributes/)
naming to better integrate with log aggregation tools.
https://github.com/owncloud/ocis/pull/9475
* Enhancement - Add missing WOPI features: [#9580](https://github.com/owncloud/ocis/pull/9580)
We added the feature to disable the chat for onlyoffice and added the missing
language parameters to the wopi app url.
https://github.com/owncloud/ocis/pull/9580
* Enhancement - Bump commitID for web: [#9631](https://github.com/owncloud/ocis/pull/9631)
Bump the web commitID to current master
https://github.com/owncloud/ocis/pull/9631
* Enhancement - Remove oidc-go dependency: [#9641](https://github.com/owncloud/ocis/pull/9641)
Removes the kgol/oidc-go dependency because it was flagged by dependabot.
Luckily us we only used it for importing the strings "profile" and "email".
https://github.com/owncloud/ocis/pull/9641
* Enhancement - Improve the collaboration service logging: [#9653](https://github.com/owncloud/ocis/pull/9653)
We added more debug log information to the collaboration service. This is vital
for scenarios when we need to debug in remote setups.
https://github.com/owncloud/ocis/pull/9653
* Enhancement - Fix trash command: [#9665](https://github.com/owncloud/ocis/pull/9665)
The `ocis trash purge-empty-dirs` command should work on any storage provider,
not just `storage/users`.
https://github.com/owncloud/ocis/pull/9665
* Enhancement - Added the debugging to full ocis docker example: [#9666](https://github.com/owncloud/ocis/pull/9666)
Added the debugging to full ocis docker example
https://github.com/owncloud/ocis/pull/9666
* Enhancement - Add locking support for MS Office Online Server: [#9685](https://github.com/owncloud/ocis/pull/9685)
We added support for the special kind of lock tokens that MS Office Online
Server uses to lock files via the Wopi protocol. It will only be active if you
set the `COLLABORATION_APP_NAME` environment variable to
`MicrosoftOfficeOnline`.
https://github.com/owncloud/ocis/pull/9685
* Enhancement - Bump reva to v.2.22.0: [#9690](https://github.com/owncloud/ocis/pull/9690)
* Bugfix [cs3org/reva#4741](https://github.com/cs3org/reva/pull/4741): Always find unique providers
* Bugfix [cs3org/reva#4762](https://github.com/cs3org/reva/pull/4762): Blanks in dav Content-Disposition header
* Bugfix [cs3org/reva#4775](https://github.com/cs3org/reva/pull/4775): Fixed the response code when copying the shared from to personal
* Bugfix [cs3org/reva#4633](https://github.com/cs3org/reva/pull/4633): Allow all users to create internal links
* Bugfix [cs3org/reva#4771](https://github.com/cs3org/reva/pull/4771): Deleting resources via their id
* Bugfix [cs3org/reva#4768](https://github.com/cs3org/reva/pull/4768): Fixed the file name validation if nodeid is used
* Bugfix [cs3org/reva#4758](https://github.com/cs3org/reva/pull/4758): Fix moving locked files, enable handling locked files via ocdav
* Bugfix [cs3org/reva#4774](https://github.com/cs3org/reva/pull/4774): Fix micro ocdav service init and registration
* Bugfix [cs3org/reva#4776](https://github.com/cs3org/reva/pull/4776): Fix response code for DEL file that in postprocessing
* Bugfix [cs3org/reva#4746](https://github.com/cs3org/reva/pull/4746): Uploading the same file multiple times leads to orphaned blobs
* Bugfix [cs3org/reva#4778](https://github.com/cs3org/reva/pull/4778): Zero byte uploads
* Change [cs3org/reva#4759](https://github.com/cs3org/reva/pull/4759): Updated to the latest version of the go-cs3apis
* Change [cs3org/reva#4773](https://github.com/cs3org/reva/pull/4773): Ocis bumped
* Enhancement [cs3org/reva#4766](https://github.com/cs3org/reva/pull/4766): Set archiver output format via query parameter
* Enhancement [cs3org/reva#4763](https://github.com/cs3org/reva/pull/4763): Improve posixfs storage driver
https://github.com/owncloud/ocis/pull/9690
https://github.com/owncloud/ocis/pull/9662
https://github.com/owncloud/ocis/pull/9621
https://github.com/owncloud/ocis/pull/9677
https://github.com/owncloud/ocis/pull/9689
* Enhancement - Add `--diff` to the `ocis init` command: [#9693](https://github.com/owncloud/ocis/pull/9693)
We have added a new flag `--diff` to the `ocis init` command to show the diff of
the configuration files. This is useful to see what has changed in the
configuration files when you run the `ocis init` command. The diff is stored to
the ocispath in the config folder as ocis.config.patch and can be applied using
the linux `patch` command.
https://github.com/owncloud/ocis/issues/3645
https://github.com/owncloud/ocis/pull/9693
* Enhancement - Update web to v10.0.0: [#9707](https://github.com/owncloud/ocis/pull/9707)
Tags: web
We updated ownCloud Web to v10.0.0. Please refer to the changelog (linked) for
details on the web release.
- Bugfix [owncloud/web#11174](https://github.com/owncloud/web/pull/11174)
Downloading files via the app top bar doesn't reflect the current state - Bugfix
[owncloud/web#11186](https://github.com/owncloud/web/pull/11186) Images
stretched in preview app in Safari browser - Bugfix
[owncloud/web#11194](https://github.com/owncloud/web/pull/11194) UI breaks when
tags are numbers - Bugfix
[owncloud/web#11253](https://github.com/owncloud/web/pull/11253) Open dropdown
menu does not deselect other items in admin settings app - Change
[owncloud/web#11251](https://github.com/owncloud/web/pull/11251) Removal of
Deprecated Config Options - Change
[owncloud/web#11252](https://github.com/owncloud/web/pull/11252) Remove draw-io
as default app - Change
[owncloud/web#11277](https://github.com/owncloud/web/pull/11277) Remove set as
description space action - Enhancement
[owncloud/web#11166](https://github.com/owncloud/web/pull/11166) Add share role
icon to shared with me table - Enhancement
[owncloud/web#11258](https://github.com/owncloud/web/pull/11258) Application
menu extension point - Enhancement
[owncloud/web#11279](https://github.com/owncloud/web/pull/11279) Move quota info
to general info in user menu - Enhancement
[owncloud/web#11280](https://github.com/owncloud/web/pull/11280) Add edit
description button to space info
https://github.com/owncloud/ocis/pull/9707
https://github.com/owncloud/web/releases/tag/v10.0.0
# Changelog for [6.1.0] (2024-07-08)
The following sections list the changes for 6.1.0.
[6.1.0]: https://github.com/owncloud/ocis/compare/v6.0.0...v6.1.0
## Summary
@@ -8538,7 +8804,7 @@ The following sections list the changes for 2.0.0.
The following sections list the changes for 1.20.0.
[1.20.0]: https://github.com/owncloud/ocis/compare/v1.19.0...v1.20.0
[1.20.0]: https://github.com/owncloud/ocis/compare/v1.19.1...v1.20.0
## Summary
@@ -8712,11 +8978,29 @@ The following sections list the changes for 1.20.0.
https://github.com/owncloud/ocis/pull/3509
https://github.com/owncloud/web/releases/tag/v5.4.0
# Changelog for [1.19.1] (2022-03-29)
The following sections list the changes for 1.19.1.
[1.19.1]: https://github.com/owncloud/ocis/compare/v1.19.0...v1.19.1
## Summary
* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419)
## Details
* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419)
URLs for Special items (space image, readme) were broken.
https://github.com/owncloud/ocis/pull/3419
# Changelog for [1.19.0] (2022-03-29)
The following sections list the changes for 1.19.0.
[1.19.0]: https://github.com/owncloud/ocis/compare/v1.19.1...v1.19.0
[1.19.0]: https://github.com/owncloud/ocis/compare/v1.18.0...v1.19.0
## Summary
@@ -8890,24 +9174,6 @@ The following sections list the changes for 1.19.0.
https://github.com/owncloud/ocis/pull/3375
https://github.com/owncloud/web/releases/tag/v5.3.0
# Changelog for [1.19.1] (2022-03-29)
The following sections list the changes for 1.19.1.
[1.19.1]: https://github.com/owncloud/ocis/compare/v1.18.0...v1.19.1
## Summary
* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419)
## Details
* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419)
URLs for Special items (space image, readme) were broken.
https://github.com/owncloud/ocis/pull/3419
# Changelog for [1.18.0] (2022-03-03)
The following sections list the changes for 1.18.0.
+1
View File
@@ -25,6 +25,7 @@ OCIS_MODULES = \
services/app-provider \
services/app-registry \
services/audit \
services/auth-app \
services/auth-basic \
services/auth-bearer \
services/auth-machine \
File renamed without changes.
@@ -0,0 +1,5 @@
Enhancement: Added the debugging to full ocis docker example
Added the debugging to full ocis docker example
https://github.com/owncloud/ocis/pull/9666
@@ -0,0 +1,5 @@
Enhancement: Introduce auth-app service
Introduce a new service, auth-app, that provides authentication and authorization services for applications.
https://github.com/owncloud/ocis/pull/9079
@@ -0,0 +1,7 @@
Bugfix: Fix crash on empty tracing provider
We have fixed a bug that causes a crash when OCIS_TRACING_ENABLED is set to true, but no
tracing Endpoints or Collectors have been provided.a
https://github.com/owncloud/ocis/pull/9622
https://github.com/owncloud/ocis/issues/7012
@@ -0,0 +1,6 @@
Bugfix: Missing invitation in permission responses
We have fixed a bug where the `invitation` property was missing in the response when creating, listing or updating graph permissions.
https://github.com/owncloud/ocis/pull/9652
https://github.com/owncloud/ocis/issues/9571
+23
View File
@@ -0,0 +1,23 @@
Enhancement: Bump reva to v.2.22.0
* Bugfix [cs3org/reva#4741](https://github.com/cs3org/reva/pull/4741): Always find unique providers
* Bugfix [cs3org/reva#4762](https://github.com/cs3org/reva/pull/4762): Blanks in dav Content-Disposition header
* Bugfix [cs3org/reva#4775](https://github.com/cs3org/reva/pull/4775): Fixed the response code when copying the shared from to personal
* Bugfix [cs3org/reva#4633](https://github.com/cs3org/reva/pull/4633): Allow all users to create internal links
* Bugfix [cs3org/reva#4771](https://github.com/cs3org/reva/pull/4771): Deleting resources via their id
* Bugfix [cs3org/reva#4768](https://github.com/cs3org/reva/pull/4768): Fixed the file name validation if nodeid is used
* Bugfix [cs3org/reva#4758](https://github.com/cs3org/reva/pull/4758): Fix moving locked files, enable handling locked files via ocdav
* Bugfix [cs3org/reva#4774](https://github.com/cs3org/reva/pull/4774): Fix micro ocdav service init and registration
* Bugfix [cs3org/reva#4776](https://github.com/cs3org/reva/pull/4776): Fix response code for DEL file that in postprocessing
* Bugfix [cs3org/reva#4746](https://github.com/cs3org/reva/pull/4746): Uploading the same file multiple times leads to orphaned blobs
* Bugfix [cs3org/reva#4778](https://github.com/cs3org/reva/pull/4778): Zero byte uploads
* Change [cs3org/reva#4759](https://github.com/cs3org/reva/pull/4759): Updated to the latest version of the go-cs3apis
* Change [cs3org/reva#4773](https://github.com/cs3org/reva/pull/4773): Ocis bumped
* Enhancement [cs3org/reva#4766](https://github.com/cs3org/reva/pull/4766): Set archiver output format via query parameter
* Enhancement [cs3org/reva#4763](https://github.com/cs3org/reva/pull/4763): Improve posixfs storage driver
https://github.com/owncloud/ocis/pull/9690
https://github.com/owncloud/ocis/pull/9662
https://github.com/owncloud/ocis/pull/9621
https://github.com/owncloud/ocis/pull/9677
https://github.com/owncloud/ocis/pull/9689
@@ -0,0 +1,5 @@
Enhancement: Bump commitID for web
Bump the web commitID to current master
https://github.com/owncloud/ocis/pull/9631
@@ -0,0 +1,5 @@
Enhancement: Improve the collaboration service logging
We added more debug log information to the collaboration service. This is vital for scenarios when we need to debug in remote setups.
https://github.com/owncloud/ocis/pull/9653
@@ -0,0 +1,6 @@
Enhancement: Add locking support for MS Office Online Server
We added support for the special kind of lock tokens that MS Office Online Server uses to lock files via the Wopi protocol.
It will only be active if you set the `COLLABORATION_APP_NAME` environment variable to `MicrosoftOfficeOnline`.
https://github.com/owncloud/ocis/pull/9685
@@ -0,0 +1,8 @@
Enhancement: Add support for proof keys for the collaboration service
Proof keys support will be enabled by default in order to ensure that all
the requests come from a trusted source.
Since proof keys must be set in the WOPI app (OnlyOffice, Collabora...), it's
possible to disable the verification of the proof keys via configuration.
https://github.com/owncloud/ocis/pull/9366
@@ -0,0 +1,7 @@
Bugfix: Fix restarting of postprocessing
We fixed a bug where non-admin requests to admin resources would get 401 Unauthorized.
Now, the server sends 403 Forbidden response.
https://github.com/owncloud/ocis/pull/6945
https://github.com/owncloud/ocis/issues/5938
@@ -0,0 +1,6 @@
Bugfix: Fixed the response code when copying the shared from to personal
We fixed the response code when copying the file from shares to personal space with a secure view role.
https://github.com/owncloud/ocis/pull/9677
https://github.com/owncloud/ocis/issues/9482
@@ -0,0 +1,6 @@
Bugfix: Fixed the file name validation if nodeid is used
We have fixed the file name validation if nodeid is used
https://github.com/owncloud/ocis/pull/9634
https://github.com/owncloud/ocis/issues/9568
@@ -0,0 +1,6 @@
Bugfix: Fix a missing SecureView permission attribute in the REPORT response
We fixed a missing SecureView permission attribute in the REPORT response.
https://github.com/owncloud/ocis/pull/9638
https://github.com/owncloud/ocis/issues/9607
@@ -0,0 +1,7 @@
Bugfix: Repair nats-js-kv registry
The registry would always send traffic to only one pod. This is now fixed and load should be spread evenly. Also implements watcher method so the cache can use it.
https://github.com/owncloud/ocis/pull/9662
https://github.com/owncloud/ocis/pull/9654
https://github.com/owncloud/ocis/pull/9620
+5
View File
@@ -0,0 +1,5 @@
Bugfix: Fix panic
Fixes panic occuring when the nats-js-kv is not properly initialized.
https://github.com/owncloud/ocis/pull/9673
@@ -0,0 +1,6 @@
Bugfix: Fixed response code for DELETE file that is in postprocessing
We fixed the response code when DELETE and MOVE requests to the file that is still in post-processing.
https://github.com/owncloud/ocis/pull/9689
https://github.com/owncloud/ocis/issues/9432
@@ -0,0 +1,5 @@
Enhancement: Fix trash command
The `ocis trash purge-empty-dirs` command should work on any storage provider, not just `storage/users`.
https://github.com/owncloud/ocis/pull/9665
@@ -0,0 +1,6 @@
Bugfix: Fixed the channel lock in a workers pool
We fixed an error when the users can't see more than 10 shares
https://github.com/owncloud/ocis/pull/9647
https://github.com/owncloud/ocis/issues/9642
@@ -0,0 +1,9 @@
Enhancement: Add `--diff` to the `ocis init` command
We have added a new flag `--diff` to the `ocis init` command to show the diff of the configuration files.
This is useful to see what has changed in the configuration files when you run the `ocis init` command.
The diff is stored to the ocispath in the config folder as ocis.config.patch and can be applied using the
linux `patch` command.
https://github.com/owncloud/ocis/pull/9693
https://github.com/owncloud/ocis/issues/3645
@@ -0,0 +1,5 @@
Enhancement: Log user agent and remote addr on auth errors
The proxy will now log `user_agent`, `client.address`, `network.peer.address` and `network.peer.port` to help operations debug authentication errors. The latter three follow the [Semantic Conventions 1.26.0 / General / Attributes](https://opentelemetry.io/docs/specs/semconv/general/attributes/) naming to better integrate with log aggregation tools.
https://github.com/owncloud/ocis/pull/9475
@@ -0,0 +1,5 @@
Enhancement: Add missing WOPI features
We added the feature to disable the chat for onlyoffice and added the missing language parameters to the wopi app url.
https://github.com/owncloud/ocis/pull/9580
@@ -0,0 +1,5 @@
Enhancement: Remove oidc-go dependency
Removes the kgol/oidc-go dependency because it was flagged by dependabot. Luckily us we only used it for importing the strings "profile" and "email".
https://github.com/owncloud/ocis/pull/9641
@@ -0,0 +1,9 @@
Change: remove unavailable web config options
We've removed config options from the web package, that are no longer available in web.
Check the web changelog for more details.
https://github.com/owncloud/ocis/pull/9679
https://github.com/owncloud/web/pull/11256
https://github.com/owncloud/web/pull/10122
https://github.com/owncloud/web/pull/11260
@@ -0,0 +1,20 @@
Enhancement: Update web to v10.0.0
Tags: web
We updated ownCloud Web to v10.0.0. Please refer to the changelog (linked) for details on the web release.
- Bugfix [owncloud/web#11174](https://github.com/owncloud/web/pull/11174) Downloading files via the app top bar doesn't reflect the current state
- Bugfix [owncloud/web#11186](https://github.com/owncloud/web/pull/11186) Images stretched in preview app in Safari browser
- Bugfix [owncloud/web#11194](https://github.com/owncloud/web/pull/11194) UI breaks when tags are numbers
- Bugfix [owncloud/web#11253](https://github.com/owncloud/web/pull/11253) Open dropdown menu does not deselect other items in admin settings app
- Change [owncloud/web#11251](https://github.com/owncloud/web/pull/11251) Removal of Deprecated Config Options
- Change [owncloud/web#11252](https://github.com/owncloud/web/pull/11252) Remove draw-io as default app
- Change [owncloud/web#11277](https://github.com/owncloud/web/pull/11277) Remove set as description space action
- Enhancement [owncloud/web#11166](https://github.com/owncloud/web/pull/11166) Add share role icon to shared with me table
- Enhancement [owncloud/web#11258](https://github.com/owncloud/web/pull/11258) Application menu extension point
- Enhancement [owncloud/web#11279](https://github.com/owncloud/web/pull/11279) Move quota info to general info in user menu
- Enhancement [owncloud/web#11280](https://github.com/owncloud/web/pull/11280) Add edit description button to space info
https://github.com/owncloud/ocis/pull/9707
https://github.com/owncloud/web/releases/tag/v10.0.0
@@ -32,7 +32,7 @@
env:
INSECURE: "false"
TRAEFIK_ACME_MAIL: mbarz@owncloud.com
OCIS_DOCKER_TAG: 6.1.0-alpha.1
OCIS_DOCKER_TAG: 6.1.0
OCIS_DOCKER_IMAGE: owncloud/ocis-rolling
OCIS_DOMAIN: ocis.ocis-onlyoffice.rolling.owncloud.works
COMPANION_DOMAIN: companion.ocis-onlyoffice.rolling.owncloud.works
@@ -32,7 +32,7 @@
env:
INSECURE: "false"
TRAEFIK_ACME_MAIL: mbarz@owncloud.com
OCIS_DOCKER_TAG: 5.0.5
OCIS_DOCKER_TAG: 5.0.6
OCIS_DOMAIN: ocis.ocis.production.owncloud.works
COMPANION_DOMAIN: companion.ocis.production.owncloud.works
COMPANION_IMAGE: owncloud/uppy-companion:3.12.13-owncloud
@@ -41,7 +41,7 @@
ONLYOFFICE_DOMAIN: onlyoffice.ocis.production.owncloud.works
INBUCKET_DOMAIN: mail.ocis.production.owncloud.works
DEMO_USERS: "true"
COMPOSE_FILE: docker-compose.yml:ocis.yml:tika.yml:collabora.yml:companion.yml:inbucket.yml:monitoring.yml
COMPOSE_FILE: docker-compose.yml:ocis.yml:tika.yml:collabora.yml:wopiserver.yml:companion.yml:inbucket.yml:monitoring.yml
- name: monitoring
git_url: https://github.com/owncloud-devops/monitoring-tracing-client.git
ref: master
@@ -32,7 +32,7 @@
env:
INSECURE: "false"
TRAEFIK_ACME_MAIL: mbarz@owncloud.com
OCIS_DOCKER_TAG: 6.1.0-alpha.1
OCIS_DOCKER_TAG: 6.1.0
OCIS_DOCKER_IMAGE: owncloud/ocis-rolling
OCIS_DOMAIN: ocis.ocis.rolling.owncloud.works
COMPANION_DOMAIN: companion.ocis.rolling.owncloud.works
@@ -32,7 +32,7 @@
env:
INSECURE: "false"
TRAEFIK_ACME_MAIL: mbarz@owncloud.com
OCIS_DOCKER_TAG: 6.1.0-alpha.1
OCIS_DOCKER_TAG: 6.1.0
OCIS_DOCKER_IMAGE: owncloud/ocis-rolling
OCIS_DOMAIN: ocis.ocis-s3.rolling.owncloud.works
COMPANION_DOMAIN: companion.ocis-s3.rolling.owncloud.works
@@ -32,7 +32,7 @@
env:
INSECURE: "false"
TRAEFIK_ACME_MAIL: mbarz@owncloud.com
OCIS_DOCKER_TAG: 6.1.0-alpha.1
OCIS_DOCKER_TAG: 6.1.0
OCIS_DOCKER_IMAGE: owncloud/ocis-rolling
OCIS_DOMAIN: ocis.ocis-keycloak.rolling.owncloud.works
KEYCLOAK_DOMAIN: keycloak.ocis-keycloak.rolling.owncloud.works
@@ -32,7 +32,7 @@
env:
INSECURE: "false"
TRAEFIK_ACME_MAIL: mbarz@owncloud.com
OCIS_DOCKER_TAG: 6.1.0-alpha.1
OCIS_DOCKER_TAG: 6.1.0
OCIS_DOCKER_IMAGE: owncloud/ocis-rolling
OCIS_DOMAIN: ocis.ocis-ldap.rolling.owncloud.works
LDAP_MANAGER_DOMAIN: ldap.ocis-ldap.rolling.owncloud.works
+2 -1
View File
@@ -49,7 +49,7 @@ services:
restart: always
collabora:
image: collabora/code:23.05.7.5.1
image: collabora/code:24.04.5.1.1
networks:
ocis-net:
environment:
@@ -70,5 +70,6 @@ services:
logging:
driver: ${LOG_DRIVER:-local}
restart: always
command: ["bash", "-c", "coolconfig generate-proof-key ; /start-collabora-online.sh"]
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9980/hosting/discovery" ]
@@ -0,0 +1,7 @@
---
services:
collaboration:
command: [ "-c", "dlv --listen=:40000 --headless=true --continue --check-go-version=false --api-version=2 --accept-multiclient exec /usr/bin/ocis collaboration server" ]
ports:
- 40001:40000
@@ -0,0 +1,7 @@
---
services:
collaboration-oo:
command: [ "-c", "dlv --listen=:40002 --headless=true --continue --check-go-version=false --api-version=2 --accept-multiclient exec /usr/bin/ocis collaboration server" ]
ports:
- 40002:40002
@@ -0,0 +1,7 @@
---
services:
ocis:
command: [ "-c", "ocis init || true; dlv --listen=:40000 --headless=true --continue --check-go-version=false --api-version=2 --accept-multiclient exec /usr/bin/ocis server" ]
ports:
- 40000:40000
+514 -150
View File
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -52,7 +52,7 @@ variables:
on supervision of ownCloud Support.'
do_ignore: false
- rawname: _registryAddressEnv
path: ocis-pkg/natsjsregistry/registry.go:166
path: ocis-pkg/natsjsregistry/registry.go:186
foundincode: true
name: MICRO_REGISTRY_ADDRESS
type: string
@@ -69,7 +69,7 @@ variables:
description: ""
do_ignore: true
- rawname: _registryPasswordEnv
path: ocis-pkg/natsjsregistry/registry.go:194
path: ocis-pkg/natsjsregistry/registry.go:214
foundincode: true
name: MICRO_REGISTRY_AUTH_PASSWORD
type: string
@@ -77,7 +77,7 @@ variables:
description: Optional when using nats to authenticate with the nats cluster.
do_ignore: false
- rawname: _registryUsernameEnv
path: ocis-pkg/natsjsregistry/registry.go:194
path: ocis-pkg/natsjsregistry/registry.go:214
foundincode: true
name: MICRO_REGISTRY_AUTH_USERNAME
type: string
+29 -14
View File
@@ -19,12 +19,13 @@ import (
// ConfigField is the representation of one configuration field
type ConfigField struct {
EnvVars []string
DefaultValue string
Type string
Description string
VersionInfo string
DeprecationLink string
EnvVars []string
DefaultValue string
IntroductionVersion string
Type string
Description string
VersionInfo string
DeprecationLink string
}
// DeprecationField holds information about deprecation
@@ -37,11 +38,12 @@ type DeprecationField struct {
// EnvVar holds information about one envvar
type EnvVar struct {
Name string
DefaultValue string
Type string
Description string
Services []string
Name string
IntroductionVersion string
DefaultValue string
Type string
Description string
Services []string
}
type templateData struct {
@@ -103,6 +105,7 @@ func main() {
} else {
all[e] = EnvVar{
Name: e,
IntroductionVersion: replaceEnvVarPlaceHolder(f.IntroductionVersion),
Description: f.Description,
Type: f.Type,
DefaultValue: f.DefaultValue,
@@ -149,11 +152,12 @@ func main() {
if len(env.Services) > 1 {
tmplValues = append(tmplValues, map[string]interface{}{
"Name": env.Name,
"IntroductionVersion": replaceEnvVarPlaceHolder(env.IntroductionVersion),
"Services": env.Services,
"Description": env.Description,
"DefaultValue": env.DefaultValue,
"Type": env.Type,
})
})
}
}
@@ -180,6 +184,15 @@ func main() {
fmt.Println("done")
}
func replaceEnvVarPlaceHolder(s string) string {
return strings.Replace(
strings.Replace(s, "%%NEXT%%", "next", -1),
"%%NEXT_PRODUCTION_VERSION%%",
"next-prod",
-1,
)
}
func GetAnnotatedVariables(s interface{}, timestamp string) ([]ConfigField, []DeprecationField) {
t := reflect.TypeOf(s)
v := reflect.ValueOf(s)
@@ -198,6 +211,7 @@ func GetAnnotatedVariables(s interface{}, timestamp string) ([]ConfigField, []De
if !ok {
continue
}
introductionVersion, _ := field.Tag.Lookup("introductionVersion")
deprecationVersion, _ := field.Tag.Lookup("deprecationVersion")
removalVersion, _ := field.Tag.Lookup("removalVersion")
deprecationInfo, _ := field.Tag.Lookup("deprecationInfo")
@@ -223,6 +237,7 @@ func GetAnnotatedVariables(s interface{}, timestamp string) ([]ConfigField, []De
fields = append(fields,
ConfigField{
EnvVars: td,
IntroductionVersion: replaceEnvVarPlaceHolder(introductionVersion),
DefaultValue: v,
Description: desc,
Type: typeName,
@@ -231,10 +246,10 @@ func GetAnnotatedVariables(s interface{}, timestamp string) ([]ConfigField, []De
if deprecationLink != "" {
deprecations = append(deprecations,
DeprecationField{
DeprecationVersion: deprecationVersion,
DeprecationVersion: replaceEnvVarPlaceHolder(deprecationVersion),
DeprecationInfo: deprecationInfo,
DeprecationReplacement: deprecationReplacement,
RemovalVersion: removalVersion,
RemovalVersion: replaceEnvVarPlaceHolder(removalVersion),
})
}
case reflect.Ptr:
+28 -19
View File
@@ -136,7 +136,7 @@ bin/ocis --log-level=$LOG_LEVEL proxy &
### Debugging the ocis in a docker container
Remote debugging is the debug mode commonly used to work with a debugger and target running on a remote machine or a container for example a wopi stack `deployments/examples/ocis_full/docker-compose.yml`.
Remote debugging is the debug mode commonly used to work with a debugger and target running on a remote machine or a container for example a wopi stack `deployments/examples/ocis_full/docker-compose.yml`. Docker compose lets us define a compose application model through multiple compose files. When doing so, compose follows certain rules to merge compose files. See [Merge and override](https://docs.docker.com/compose/compose-file/13-merge/) in the Compose Specification. Based on this rules, we added the extra files `deployments/examples/ocis_full/debug-ocis.yml`, `deployments/examples/ocis_full/debug-collaboration-collabora.yml`, `deployments/examples/ocis_full/debug-collaboration-onlyoffice.yml` that overwrites the `command` attribute and extends the `ports` attribute.
Below we describe the steps how to build the image, run the docker-compose and connect via remote debugger.
1. Build the image:
```bash
@@ -147,28 +147,16 @@ make debug-docker
```bash
export OCIS_DOCKER_TAG=debug
```
3. Change the docker-compose `ocis` or `collaboration` depends on what do you want to debug:
For example `deployments/examples/ocis_full/ocis.yml`
```yaml
ocis:
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG:-latest}
networks:
ocis-net:
entrypoint:
- /bin/sh
# Comment out command
# command: ["-c", "ocis init || true; ocis server"]
# Replace the command and expose the port
command: [ "-c", "ocis init || true; dlv --listen=:40000 --headless=true --api-version=2 --accept-multiclient exec /usr/bin/ocis server" ]
ports:
- 40000:40000
3. Run docker compose
Building the docker compose command depends on what you want to debug, for example `ocis` and `collaboration` with the `collabora` supports.
```bash
docker compose -f docker-compose.yml -f ocis.yml -f collabora.yml -f debug-ocis.yml -f debug-collaboration-collabora.yml up -d
```
4. Run the docker-compose
5. Connect to remote `delve`
4. Connect to remote `delve`
* For the VS Code add the configuration to the `.vscode/launch.json` [https://github.com/golang/vscode-go/wiki/debugging#remote-debugging](https://github.com/golang/vscode-go/wiki/debugging#remote-debugging)
```json
{
"name": "Debug remote :40000",
"name": "Debug remote ocis :40000",
"type": "go",
"request": "attach",
"mode": "remote",
@@ -177,7 +165,28 @@ For example `deployments/examples/ocis_full/ocis.yml`
"trace": "verbose", // optional
"showLog": true // optional
},
{
"name": "Debug remote collaboration collabora :40001",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 40001,
"host": "localhost", // optional
"trace": "verbose", // optional
"showLog": true // optional
},
{
"name": "Debug remote collaboration onlyoffice :40002",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 40002,
"host": "localhost", // optional
"trace": "verbose", // optional
"showLog": true // optional
},
```
* For the Jetbrains Goland add the configuration following the docs [https://www.jetbrains.com/help/go/go-remote.html](https://www.jetbrains.com/help/go/go-remote.html)
### Gather error messages
+2 -2
View File
@@ -561,7 +561,7 @@ OCM_OCM_INVITE_MANAGER_INSECURE=true \
OCM_OCM_SHARE_PROVIDER_INSECURE=true \
OCM_OCM_STORAGE_PROVIDER_INSECURE=true \
OCM_OCM_PROVIDER_AUTHORIZER_PROVIDERS_FILE="${workspaceFolder}/tests/config/drone/providers.json" \
OCIS_ADD_RUN_SERVICES="ocm"
OCIS_ADD_RUN_SERVICES="ocm" \
ocis/bin/ocis server
```
@@ -587,7 +587,7 @@ To enable ocm in the web interface, you need to set the following envs:
`FRONTEND_OCS_INCLUDE_OCM_SHAREES=true` \
`FRONTEND_OCS_LIST_OCM_SHARES=true` \
`FRONTEND_ENABLE_FEDERATED_SHARING_INCOMING=true` \
`FRONTEND_ENABLE_FEDERATED_SHARING_OUTGOING=true`
`FRONTEND_ENABLE_FEDERATED_SHARING_OUTGOING=true` \
and put `ocm` to apps https://github.com/owncloud/ocis/blob/master/services/web/pkg/config/defaults/defaultconfig.go#L101
{{< /hint>}}
+13 -13
View File
@@ -26,35 +26,35 @@ sequenceDiagram
participant ldap as External User Directory
user->>+client: What is the content of my home?
client->>+proxy: PROPFIND <br> no (or expired) auth
Note over client,proxy: ocis needs to know the IdP that is<br>used to authenticate users. The<br>proxy will redirect unauthenticated<br>requests to that IdP.
client->>+proxy: PROPFIND no (or expired) auth
Note over client,proxy: ocis needs to know the IdP that is used to authenticate users. The proxy will redirect unauthenticated requests to that IdP.
proxy-->>-client: 401 Unauthorized
client->>+proxy: 1. The client starts a new openIDConnect Flow
Note over client, proxy: GET /.well-known/openid-configuration
proxy-->>-client: Return openidConnect configuration for the IdP
client-->>client: 2. Client prepares an Authentication Request<br>containing the desired request parameters <br> and generates the code challenge (PKCE).
client-->>client: 2. Client prepares an Authentication Request containing the desired request parameters and generates the code challenge (PKCE).
client->>+idp: 3. Client sends the request and the code challenge to the Authorization Server.
Note over client, idp: GET /authorize?<br>flow=oidc&response_type=code<br>&scope=openid%20profile%20email<br>&code_challenge=Y2SGoq9vtAp7YAavTaO0B550H_Rsj9DypiL7xZuFjOE<br>&code_challenge_method=S25&client_id=s6BhdRkqt3<br>&state=af0ifjsldkj<br>&redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb HTTP/1.1<br>Host: server.example.com
Note over client, idp: GET /authorize? flow=oidc&response_type=code &scope=openid%20profile%20email &code_challenge=Y2SGoq9vtAp7YAavTaO0B550H_Rsj9DypiL7xZuFjOE &code_challenge_method=S25&client_id=s6BhdRkqt3 &state=af0ifjsldkj &redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb HTTP/1.1 Host: server.example.com
Note over user, idp: 3. Authorization Server Authenticates the End-User.
alt all users managed by idp/ocis idm
idp->>+idm: LDAP query/bind
idm-->>-idp: LDAP result
Note over idp,ldap: In case users are managed<br>in an external ldap they have to be<br> autoprovisioned in the ocis IdM<br> when they are loggin in.
Note over idp,ldap: In case users are managed in an external ldap they have to be autoprovisioned in the ocis IdM when they are loggin in.
else all users authenticated by an external idp
idp->>+ldap: Lookup of the user in the directory
ldap-->>-idp: Lookup result
end
idp-->>-user: Idp presents the user an authentication prompt.
user->>+idp: 5. User authenticates and gives consent.
idp-->>-client: 6. Authorization Server sends the End-User back<br>to the Client with an Authorization Code.
Note over client, idp: HTTP/1.1 302 Found<br>Location: https://client.example.org/cb?<br>code=SplxlOBeZQQYbYS6WxSbIA&state=af0ifjsldkj
client->>+idp: 7. Client requests a response using the<br>Authorization Code and the code verifier at the Token Endpoint.
Note over client, idp: POST /token HTTP/1.1<br>Host: server.example.com<br>Content-Type: application/x-www-form-urlencoded<br>grant_type=authorization_code&code=SplxlOBeZQQYbYS6WxSbIA<br>&redirect_uri=https%3A%2F%2Fclient.example.org<br>&code_verifier=a98ccbe253754259963e6e2b67b5a044929446d7a15046cc8e3194022ad061d9d667dce91876418d9e6fe9f54819332e
idp-->>-client: 6. Authorization Server sends the End-User back to the Client with an Authorization Code.
Note over client, idp: HTTP/1.1 302 Found Location: https://client.example.org/cb? code=SplxlOBeZQQYbYS6WxSbIA&state=af0ifjsldkj
client->>+idp: 7. Client requests a response using the Authorization Code and the code verifier at the Token Endpoint.
Note over client, idp: POST /token HTTP/1.1 Host: server.example.com Content-Type: application/x-www-form-urlencoded grant_type=authorization_code&code=SplxlOBeZQQYbYS6WxSbIA &redirect_uri=https%3A%2F%2Fclient.example.org &code_verifier=a98ccbe253754259963e6e2b67b5a044929446d7a15046cc8e3194022ad061d9d667dce91876418d9e6fe9f54819332e
idp->>+idp: 8. IdP checks the code verifier (PKCE)
idp-->>-client: 9. Client receives a response that contains an<br>ID Token and Access Token in the response body. <br>If offline access is requested, the client also receives a refresh token.
Note over client, idp: HTTP/1.1 200 OK<br>Content-Type: application/json<br>Cache-Control: no-store<br>Pragma: no-cache<br>{<br>"access_token": "SlAV32hkKG",<br>"token_type": "Bearer",<br>"refresh_token": "8xLOxBtZp8",<br>"expires_in": 3600,<br>"id_token": "a ... b.c ... d.e ... f" // must be a JWT<br>}
client-->>client: 10. Client validates the ID token and<br>retrieves the End-User's Subject Identifier.
client->>+proxy: PROPFIND <br> With access token
idp-->>-client: 9. Client receives a response that contains an ID Token and Access Token in the response body. If offline access is requested, the client also receives a refresh token.
Note over client, idp: HTTP/1.1 200 OK Content-Type: application/json Cache-Control: no-store Pragma: no-cache { "access_token": "SlAV32hkKG", "token_type": "Bearer", "refresh_token": "8xLOxBtZp8", "expires_in": 3600, "id_token": "a ... b.c ... d.e ... f" // must be a JWT }
client-->>client: 10. Client validates the ID token and retrieves the End-User's Subject Identifier.
client->>+proxy: PROPFIND With access token
proxy-->>-client: 207 Multi-Status
client-->>-user: List of Files X, Y, Z ...
{{< /mermaid >}}
+11 -11
View File
@@ -24,9 +24,9 @@ sequenceDiagram
user->>+client: What is the content of my home?
client->>+proxy: PROPFIND <br> Bearer auth using oidc auth token
Note over client,proxy: What is in a bearer token? <br> The spec recommends opaque tokens. <br> Treat it as random byte noise.
Note over client,proxy: the proxy MUST authenticate users <br> using ocis-accounts because it needs <br> to decide where to send the request
client->>+proxy: PROPFIND Bearer auth using oidc auth token
Note over client,proxy: What is in a bearer token? The spec recommends opaque tokens. Treat it as random byte noise.
Note over client,proxy: the proxy MUST authenticate users using ocis-accounts because it needs to decide where to send the request
%% Mention introspection endpoint for opaque tokens
%% idp uses jwt, so we can save a request
%% either way the token can be used to look up the sub and iss of the user
@@ -36,16 +36,16 @@ sequenceDiagram
alt userinfo succeeds
idp-->>proxy: 200 OK
Note over proxy,accounts: Content-Type: application/json<br>{<br>"sub": "248289761001",<br>"name": "Jane Doe",<br>"given_name": "Jane",<br>"family_name": "Doe",<br>"preferred_username": "j.doe",<br>"email": "janedoe@example.com",<br>"picture": "http://example.com/janedoe/me.jpg"<br>}
Note over proxy,accounts: Content-Type: application/json{"sub": "248289761001","name": "Jane Doe","given_name": "Jane","family_name": "Doe","preferred_username": "j.doe","email": "janedoe@example.com","picture": "http://example.com/janedoe/me.jpg"}
%% see: https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse
else userinfo fails
idp-->>-proxy: 401 Unauthorized
Note over proxy,accounts: WWW-Authenticate: error="invalid_token",<br>error_description="The Access Token expired"
Note over proxy,accounts: WWW-Authenticate: error="invalid_token",error_description="The Access Token expired"
proxy-->>client: 401 Unauthorized or <br>302 Found with redirect to idp
Note over client: start at login flow<br> or refresh the token
proxy-->>client: 401 Unauthorized or 302 Found with redirect to idp
Note over client: start at login flow or refresh the token
end
@@ -71,7 +71,7 @@ sequenceDiagram
end
end
Note over proxy,accounts: provision a new account including displayname, email and sub@iss <br> TODO only if the user is allowed to login, based on group <br> membership in the ldap server
Note over proxy,accounts: provision a new account including displayname, email and sub@iss TODO only if the user is allowed to login, based on group membership in the ldap server
proxy->>proxy: generate new uuid
proxy->>+accounts: TODO create account with new generated uuid
accounts-->>-proxy: OK / error
@@ -79,8 +79,8 @@ sequenceDiagram
else account has been disabled
accounts-->>-proxy: account is disabled
proxy-->>client: 401 Unauthorized or <br>302 Found with redirect to idp
Note over client: start at login flow<br> or refresh the token
proxy-->>client: 401 Unauthorized or 302 Found with redirect to idp
Note over client: start at login flow or refresh the token
end
proxy->>proxy: store uuid in context
@@ -88,7 +88,7 @@ sequenceDiagram
%% what if oc10 does not support a certain request / API
proxy->>proxy: mint an internal jwt that includes the UUID and username using revas `x-access-token` header
proxy->>+reva: PROPFIND <br>Token auth using internal JWT
proxy->>+reva: PROPFIND Token auth using internal JWT
reva-->>-proxy: Multistatus response
proxy-->>-client: Multistatus response
+5 -4
View File
@@ -15,7 +15,7 @@ This page is designed to provide clarity and transparency regarding the scheduli
| Release Date | Type | Version | Notes | Support |
| ------------ | ------------ |---------------------------------------------------------------------------------------| --------------------------------------------------------------------------------------------- | -------------- |
| ------------ | ------------ |---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------| -------------- |
| 23.12.2024 | Rolling | - | - | - |
| 02.12.2024 | Rolling | - | - | - |
| 11.11.2024 | Production | - | - | - |
@@ -24,9 +24,10 @@ This page is designed to provide clarity and transparency regarding the scheduli
| 09.09.2024 | Rolling | - | - | - |
| 19.08.2024 | Rolling | - | - | - |
| 29.07.2024 | Rolling | - | - | - |
| 08.07.2024 | Rolling | - | - | - |
| 17.06.2024 | Rolling | [Infinite Scale 6 (6.0.0)](https://download.owncloud.com/ocis/ocis/rolling/6.0.0/) | - | - |
| **22.05.2024** | **Production** | **[Infinite Scale 5 (5.0.5)](https://download.owncloud.com/ocis/ocis/stable/5.0.5/)** | **[Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-5)** | **Active Support** |
| 08.07.2024 | Rolling | [Infinite Scale 6 (6.1.0)](https://download.owncloud.com/ocis/ocis/rolling/6.1.0/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-6-1-0) | - |
| 19.06.2024 | Rolling | [Infinite Scale 6 (6.0.0)](https://download.owncloud.com/ocis/ocis/rolling/6.0.0/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-6-0-0) | - |
| **17.07.2024** | **Production** | **[Infinite Scale 5 (5.0.6)](https://download.owncloud.com/ocis/ocis/stable/5.0.6/)** | **[Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-6)** | **Active Support** |
| 22.05.2024 | Production | [Infinite Scale 5 (5.0.5)](https://download.owncloud.com/ocis/ocis/stable/5.0.5/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-5) | Active Support |
| 14.05.2024 | Production | [Infinite Scale 5 (5.0.4)](https://download.owncloud.com/ocis/ocis/stable/5.0.4/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-4) | Active Support |
| 02.05.2024 | Production | [Infinite Scale 5 (5.0.3)](https://download.owncloud.com/ocis/ocis/stable/5.0.3/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-3) | Active Support |
| 17.04.2024 | Production | [Infinite Scale 5 (5.0.2)](https://download.owncloud.com/ocis/ocis/stable/5.0.2/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-2) | Active Support |
@@ -0,0 +1,61 @@
---
title: Added Services per Release
date: 2024-07-12T00:00:00+00:00
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/services/general-info
geekdocFilePath: added-services.md
geekdocCollapseSection: true
---
Over time, services get added with new releases published. This page gives an overview of which services exist and which
have been added per release.
## Added Services
The following table gives an overview about releases and their services.
| 3.0 | 4.0 | 5.0 | Rolling |
| ------------------ | ------------------ | ------------------ | ------------------ |
| | | | activitylog |
| antivirus | antivirus | antivirus | antivirus |
| app-provider | app-provider | app-provider | app-provider |
| app-registry | app-registry | app-registry | app-registry |
| audit | audit | audit | audit |
| auth-basic | auth-basic | auth-basic | auth-basic |
| auth-bearer | auth-bearer | auth-bearer | auth-bearer |
| auth-machine | auth-machine | auth-machine | auth-machine |
| | | auth-service | auth-service |
| | | clientlog | clientlog |
| | | | collaboration |
| | | eventhistory | eventhistory |
| frontend | frontend | frontend | frontend |
| gateway | gateway | gateway | gateway |
| graph | graph | graph | graph |
| groups | groups | groups | groups |
| idm | idm | idm | idm |
| idp | idp | idp | idp |
| invitations | invitations | invitations | invitations |
| nats | nats | nats | nats |
| notifications | notifications | notifications | notifications |
| ocdav | ocdav | ocdav | ocdav |
| | | ocm | ocm |
| ocs | ocs | ocs | ocs |
| policies | policies | policies | policies |
| postprocessing | postprocessing | postprocessing | postprocessing |
| proxy | proxy | proxy | proxy |
| search | search | search | search |
| settings | settings | settings | settings |
| sharing | sharing | sharing | sharing |
| | | sse | sse |
| storage-publiclink | storage-publiclink | storage-publiclink | storage-publiclink |
| storage-shares | storage-shares | storage-shares | storage-shares |
| storage-system | storage-system | storage-system | storage-system |
| storage-users | storage-users | storage-users | storage-users |
| store | store | store | store |
| thumbnails | thumbnails | thumbnails | thumbnails |
| userlog | userlog | userlog | userlog |
| users | users | users | users |
| web | web | web | web |
| webdav | webdav | webdav | webdav |
| webfinger | webfinger | webfinger | webfinger |
@@ -15,6 +15,7 @@ When a new service gets introduced, this checklist is a good starting point for
Use this checklist with copy/paste in your PR - right from the beginning. It renders correctly in your PR.
```markdown
- [ ] Services MUST NOT be named `extended` or `global`. These are reserved names for the automated documentation process.
- [ ] Provide a README.md for that service in the root folder of that service.
- Use CamelCase for section headers.
- [ ] For images and example files used in README.md:
+1 -1
View File
@@ -60,7 +60,7 @@ We also suggest using the last port in your extensions' range as a debug/metrics
| 9230-9234 | [nats]({{< ref "../nats/_index.md" >}}) |
| 9235-9239 | [idm]({{< ref "../idm/_index.md" >}}) |
| 9240-9244 | [app-registry]({{< ref "../app-registry/_index.md" >}}) |
| 9245-9249 | FREE |
| 9245-9249 | [auth-app]({{< ref "../auth-app/_index.md" >}}) |
| 9250-9254 | [ocis server (runtime)](https://github.com/owncloud/ocis/tree/master/ocis/pkg/runtime) |
| 9255-9259 | [postprocessing]({{< ref "../postprocessing/_index.md" >}}) |
| 9260-9264 | [clientlog]({{< ref "../clientlog/_index.md" >}}) |
+8 -1
View File
@@ -1,4 +1,6 @@
// set the attribute to true or leave empty, true without any quotes.
// if the generated adoc file is used outside tabs, it renders correctly depending on the attribute set.
// if inside, you need to also use the xxx_deprecation.adoc file. attributes can't be defined inside tabs.
:show-deprecation: {{ .HasDeprecations }}
@@ -23,13 +25,16 @@ ifeval::[{show-deprecation} == true]
{{- end }}
|===
{empty} +
endif::[]
[caption=]
.Environment variables for the {{ .ExtensionName }} service
[width="100%",cols="~,~,~,~",options="header"]
[width="100%",cols="~,~,~,~,~",options="header"]
|===
| Name
| IV
| Type
| Default Value
| Description
@@ -42,6 +47,8 @@ a| {{- range $i, $value := .EnvVars }}{{- if $i }} +
{{- end }} +
{{ .DeprecationLink }}
a| [subs=-attributes]
++{{.IntroductionVersion}} ++
a| [subs=-attributes]
++{{.Type}} ++
a| [subs=-attributes]
++{{.DefaultValue}} ++
+5 -1
View File
@@ -3,9 +3,10 @@
[.landscape]
[caption=]
.Environment variables with global scope available in multiple services
[width="100%",cols="30%,25%,~,~,~",options="header"]
[width="100%",cols="30%,~,25%,~,~,~",options="header"]
|===
| Name
| IV
| Services
| Type
| Default Value
@@ -13,6 +14,9 @@
{{ range . }}
a| `{{ .Name }}`
a| [subs=-attributes]
++{{ .IntroductionVersion }} ++
a| [subs=attributes+]
{{- range .Services}}
* xref:{s-path}/{{ . }}.adoc[{{ . }}] +
+12 -14
View File
@@ -14,15 +14,14 @@ require (
github.com/blevesearch/bleve/v2 v2.4.0
github.com/cenkalti/backoff v2.2.1+incompatible
github.com/coreos/go-oidc/v3 v3.10.0
github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781
github.com/cs3org/reva/v2 v2.21.0
github.com/cs3org/go-cs3apis v0.0.0-20240724121416-062c4e3046cb
github.com/cs3org/reva/v2 v2.22.0
github.com/dhowden/tag v0.0.0-20230630033851-978a0926ee25
github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e
github.com/egirna/icap-client v0.1.1
github.com/gabriel-vasile/mimetype v1.4.4
github.com/ggwhite/go-masker v1.1.0
github.com/go-chi/chi/v5 v5.1.0
github.com/go-chi/cors v1.2.1
github.com/go-chi/render v1.0.3
github.com/go-jose/go-jose/v3 v3.0.3
github.com/go-ldap/ldap/v3 v3.4.8
@@ -79,6 +78,7 @@ require (
github.com/r3labs/sse/v2 v2.10.0
github.com/riandyrn/otelchi v0.8.0
github.com/rogpeppe/go-internal v1.12.0
github.com/rs/cors v1.11.0
github.com/rs/zerolog v1.33.0
github.com/shamaton/msgpack/v2 v2.2.0
github.com/sirupsen/logrus v1.9.3
@@ -88,14 +88,13 @@ require (
github.com/test-go/testify v1.1.4
github.com/thejerf/suture/v4 v4.0.5
github.com/tidwall/gjson v1.17.1
github.com/tidwall/sjson v1.2.5
github.com/tus/tusd v1.13.0
github.com/unrolled/secure v1.14.0
github.com/urfave/cli/v2 v2.27.2
github.com/xhit/go-simple-mail/v2 v2.16.0
go-micro.dev/v4 v4.11.0
go.etcd.io/bbolt v1.3.10
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0
go.opentelemetry.io/contrib/zpages v0.52.0
go.opentelemetry.io/otel v1.28.0
go.opentelemetry.io/otel/exporters/jaeger v1.17.0
@@ -110,12 +109,11 @@ require (
golang.org/x/sync v0.7.0
golang.org/x/term v0.21.0
golang.org/x/text v0.16.0
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5
google.golang.org/grpc v1.64.0
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157
google.golang.org/grpc v1.65.0
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v2 v2.4.0
gotest.tools/v3 v3.5.1
stash.kopano.io/kgol/oidc-go v0.3.4
stash.kopano.io/kgol/rndm v1.1.2
)
@@ -162,7 +160,7 @@ require (
github.com/bombsimon/logrusr/v3 v3.1.0 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/ceph/go-ceph v0.18.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cevaris/ordered_map v0.0.0-20190319150403-3adeae072e73 // indirect
github.com/cilium/ebpf v0.9.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
@@ -224,7 +222,7 @@ require (
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect
github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 // indirect
github.com/golang/glog v1.2.0 // indirect
github.com/golang/glog v1.2.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/gomodule/redigo v1.8.9 // indirect
@@ -290,7 +288,7 @@ require (
github.com/opencontainers/runtime-spec v1.1.0 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
github.com/pablodz/inotifywaitgo v0.0.6 // indirect
github.com/pablodz/inotifywaitgo v0.0.7 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
github.com/pierrec/lz4/v4 v4.1.15 // indirect
@@ -304,7 +302,6 @@ require (
github.com/prometheus/statsd_exporter v0.22.8 // indirect
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/rivo/uniseg v0.4.2 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/rs/xid v1.5.0 // indirect
github.com/russellhaering/goxmldsig v1.4.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
@@ -349,10 +346,9 @@ require (
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
@@ -365,6 +361,8 @@ replace github.com/egirna/icap-client => github.com/fschade/icap-client v0.0.0-2
replace github.com/unrolled/secure => github.com/DeepDiver1975/secure v0.0.0-20240611112133-abc838fb797c
replace github.com/go-micro/plugins/v4/store/nats-js-kv => github.com/kobergj/plugins/v4/store/nats-js-kv v0.0.0-20240723073728-b36ea3314b73
// exclude the v2 line of go-sqlite3 which was released accidentally and prevents pulling in newer versions of go-sqlite3
// see https://github.com/mattn/go-sqlite3/issues/965 for more details
exclude github.com/mattn/go-sqlite3 v2.0.3+incompatible
+25 -38
View File
@@ -212,7 +212,7 @@ cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IK
cloud.google.com/go/compute v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/JlizULFrI=
cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM=
cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM=
cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJdjU=
cloud.google.com/go/compute v1.24.0 h1:phWcR2eWzRJaL/kOiJwfFsPs4BaKq1j6vnpZrc1YlVg=
cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU=
cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM=
@@ -966,8 +966,9 @@ github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cevaris/ordered_map v0.0.0-20190319150403-3adeae072e73 h1:q1g9lSyo/nOIC3W5E3FK3Unrz8b9LdLXCyuC+ZcpPC0=
github.com/cevaris/ordered_map v0.0.0-20190319150403-3adeae072e73/go.mod h1:507vXsotcZop7NZfBWdhPmVeOse4ko2R7AagJYrpoEg=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
@@ -996,8 +997,8 @@ github.com/cncf/xds/go v0.0.0-20220314180256-7f1daf1720fc/go.mod h1:eXthEFrGJvWH
github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/cncf/xds/go v0.0.0-20240318125728-8a4994d93e50 h1:DBmgJDC9dTfkVyGgipamEh2BpGYxScCH1TOF1LL1cXc=
github.com/cncf/xds/go v0.0.0-20240318125728-8a4994d93e50/go.mod h1:5e1+Vvlzido69INQaVO6d87Qn543Xr6nooe9Kz7oBFM=
github.com/cncf/xds/go v0.0.0-20240423153145-555b57ec207b h1:ga8SEFjZ60pxLcmhnThWgvH2wg8376yUJmPhEH4H3kw=
github.com/cncf/xds/go v0.0.0-20240423153145-555b57ec207b/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8=
github.com/containerd/cgroups/v3 v3.0.2 h1:f5WFqIVSgo5IZmtTT3qVBo6TzI1ON6sycSBKkymb9L0=
github.com/containerd/cgroups/v3 v3.0.2/go.mod h1:JUgITrzdFqp42uI2ryGA+ge0ap/nxzYgkGmIcetmErE=
github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
@@ -1022,10 +1023,10 @@ github.com/crewjam/httperr v0.2.0 h1:b2BfXR8U3AlIHwNeFFvZ+BV1LFvKLlzMjzaTnZMybNo
github.com/crewjam/httperr v0.2.0/go.mod h1:Jlz+Sg/XqBQhyMjdDiC+GNNRzZTD7x39Gu3pglZ5oH4=
github.com/crewjam/saml v0.4.14 h1:g9FBNx62osKusnFzs3QTN5L9CVA/Egfgm+stJShzw/c=
github.com/crewjam/saml v0.4.14/go.mod h1:UVSZCf18jJkk6GpWNVqcyQJMD5HsRugBPf4I1nl2mME=
github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781 h1:BUdwkIlf8IS2FasrrPg8gGPHQPOrQ18MS1Oew2tmGtY=
github.com/cs3org/go-cs3apis v0.0.0-20231023073225-7748710e0781/go.mod h1:UXha4TguuB52H14EMoSsCqDj7k8a/t7g4gVP+bgY5LY=
github.com/cs3org/reva/v2 v2.21.0 h1:TLmWaU4BTIsi2FQtB8SxMKDT46ql28Do1Vc7IVWSAsE=
github.com/cs3org/reva/v2 v2.21.0/go.mod h1:Rb2XnhpGKnH7k6WBFZlMygbyBxW6ma09Z4Uk+ro0v+A=
github.com/cs3org/go-cs3apis v0.0.0-20240724121416-062c4e3046cb h1:KmYZDReplv/yfwc1LNYpDcVhVujC3Pasv6WjXx1haSU=
github.com/cs3org/go-cs3apis v0.0.0-20240724121416-062c4e3046cb/go.mod h1:yyP8PRo0EZou3nSH7H4qjlzQwaydPeIRNgX50npQHpE=
github.com/cs3org/reva/v2 v2.22.0 h1:dMZGJDdrTCYYyMlVSzchbEUyFrHgvFI2Md/aLLiez54=
github.com/cs3org/reva/v2 v2.22.0/go.mod h1:y9ujkcxepugOsv50baQSCtudfY5VY5S5eigNTvGfSZI=
github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4=
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
@@ -1142,8 +1143,6 @@ github.com/go-asn1-ber/asn1-ber v1.5.5/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkPro
github.com/go-chi/chi v4.0.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ=
github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw=
github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-chi/cors v1.2.1 h1:xEC8UT3Rlp2QuWNEr4Fs/c2EAGVKBwy/1vHx3bppil4=
github.com/go-chi/cors v1.2.1/go.mod h1:sSbTewc+6wYHBBCW7ytsFSn836hqM7JxpglAy2Vzc58=
github.com/go-chi/render v1.0.3 h1:AsXqd2a1/INaIfUSKq3G5uA8weYx20FOsM7uSoCyyt4=
github.com/go-chi/render v1.0.3/go.mod h1:/gr3hVkmYR0YlEy3LxCuVRFzEu9Ruok+gFqbIofjao0=
github.com/go-cmd/cmd v1.0.5/go.mod h1:y8q8qlK5wQibcw63djSl/ntiHUHXHGdCkPk0j4QeW4s=
@@ -1217,8 +1216,6 @@ github.com/go-micro/plugins/v4/server/http v1.2.2 h1:UK2/09AU0zV3wHELuR72TZzVU2v
github.com/go-micro/plugins/v4/server/http v1.2.2/go.mod h1:YuAjaSPxcn3LI8j2FUsqx0Rxunrj4YwDV41Ax76rLl0=
github.com/go-micro/plugins/v4/store/nats-js v1.2.1-0.20231129143103-d72facc652f0 h1:Qa1EBQ9UyCGecFAJQovl/MHGnvbcvDaM3qUoAG5Lnvk=
github.com/go-micro/plugins/v4/store/nats-js v1.2.1-0.20231129143103-d72facc652f0/go.mod h1:aCRl8JQmqIaonOl88nFPY/BOQnHPVHY9ngStzLkXnYk=
github.com/go-micro/plugins/v4/store/nats-js-kv v0.0.0-20231226212146-94a49ba3e06e h1:hwH0qXT0J3UFYRi0UD+e3ItL92oW+jdPFA+3o/j6ASg=
github.com/go-micro/plugins/v4/store/nats-js-kv v0.0.0-20231226212146-94a49ba3e06e/go.mod h1:Goi4eJ9SrKkxE6NsAVqBVNxfQFbwb7UbyII6743ldgM=
github.com/go-micro/plugins/v4/store/redis v1.2.1 h1:d9kwr9bSpoK9vkHkqcv+isQUbgBCHpfwCV57pcAPS6c=
github.com/go-micro/plugins/v4/store/redis v1.2.1/go.mod h1:MbCG0YiyPqETTtm7uHFmxQNCaW1o9hBoYtFwhbVjLUg=
github.com/go-micro/plugins/v4/transport/grpc v1.1.0 h1:mXfDYfFQLnVDzjGY3o84oe4prfux9h8txsnA19dKsj8=
@@ -1295,8 +1292,8 @@ github.com/golang/geo v0.0.0-20210211234256-740aa86cb551/go.mod h1:QZ0nwyI2jOfgR
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4=
github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ=
github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68=
github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4=
github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
@@ -1612,6 +1609,8 @@ github.com/klauspost/cpuid/v2 v2.0.1/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa02
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc=
github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
github.com/kobergj/plugins/v4/store/nats-js-kv v0.0.0-20240723073728-b36ea3314b73 h1:Cgg5BVWG99INUMX43nD5jhZgNzQJyFA0MvZkctNn0Lw=
github.com/kobergj/plugins/v4/store/nats-js-kv v0.0.0-20240723073728-b36ea3314b73/go.mod h1:pjcozWijkNPbEtX5SIQaxEW/h8VAVZYTLx+70bmB3LY=
github.com/kolo/xmlrpc v0.0.0-20200310150728-e0350524596b/go.mod h1:o03bZfuBwAXHetKXuInt4S7omeXUu62/A845kiycsSQ=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
@@ -1809,8 +1808,8 @@ github.com/owncloud/libre-graph-api-go v1.0.5-0.20240618162722-2298241331d1 h1:w
github.com/owncloud/libre-graph-api-go v1.0.5-0.20240618162722-2298241331d1/go.mod h1:yXI+rmE8yYx+ZsGVrnCpprw/gZMcxjwntnX2y2+VKxY=
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c h1:rp5dCmg/yLR3mgFuSOe4oEnDDmGLROTvMragMUXpTQw=
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c/go.mod h1:X07ZCGwUbLaax7L0S3Tw4hpejzu63ZrrQiUe6W0hcy0=
github.com/pablodz/inotifywaitgo v0.0.6 h1:BTjQfnixXwG7oYmlIiyhWA6iyO9BtxatB3YgiibOTFc=
github.com/pablodz/inotifywaitgo v0.0.6/go.mod h1:OtzRCsYTJlIr+vAzlOtauTkfQ1c25ebFuXq8tbbf8cw=
github.com/pablodz/inotifywaitgo v0.0.7 h1:1ii49dGBnRn0t1Sz7RGZS6/NberPEDQprwKHN49Bv6U=
github.com/pablodz/inotifywaitgo v0.0.7/go.mod h1:OtzRCsYTJlIr+vAzlOtauTkfQ1c25ebFuXq8tbbf8cw=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY=
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
@@ -1843,7 +1842,6 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA=
github.com/pquerna/cachecontrol v0.2.0 h1:vBXSNuE5MYP9IJ5kjsdo8uq+w41jSPgvba2DEnkRx9k=
github.com/pquerna/cachecontrol v0.2.0/go.mod h1:NrUG3Z7Rdu85UNR3vm7SOsl1nFIeSiQnrHV5K9mBcUI=
github.com/pquerna/otp v1.3.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg=
@@ -1928,8 +1926,8 @@ github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6po
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
github.com/rs/cors v1.10.1 h1:L0uuZVXIKlI1SShY2nhFfo44TYvDPQ1w4oFkUJNfhyo=
github.com/rs/cors v1.10.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
github.com/rs/cors v1.11.0 h1:0B9GE/r9Bc2UxRMMtymBkHTenPkHDv0CW4Y98GBY+po=
github.com/rs/cors v1.11.0/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
github.com/rs/xid v1.5.0 h1:mKX4bl4iPYJtEIxp6CYiUuLQ/8DYMoz0PUdtGgMFRVc=
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8=
@@ -2036,7 +2034,6 @@ github.com/thanhpk/randstr v1.0.6 h1:psAOktJFD4vV9NEVb3qkhRSMvYh4ORRaj1+w/hn4B+o
github.com/thanhpk/randstr v1.0.6/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U=
github.com/thejerf/suture/v4 v4.0.5 h1:F1E/4FZwXWqvlWDKEUo6/ndLtxGAUzMmNqkrMknZbAA=
github.com/thejerf/suture/v4 v4.0.5/go.mod h1:gu9Y4dXNUWFrByqRt30Rm9/UZ0wzRSt9AJS6xu/ZGxU=
github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/gjson v1.17.1 h1:wlYEnwqAHgzmhNUFfw7Xalt2JzQvsMx2Se4PcoFCT/U=
github.com/tidwall/gjson v1.17.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
@@ -2044,8 +2041,6 @@ github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JT
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4=
github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
github.com/tklauser/go-sysconf v0.3.14 h1:g5vzr9iPFFz24v2KZXs/pvpvh8/V9Fw6vQK5ZZb78yU=
github.com/tklauser/go-sysconf v0.3.14/go.mod h1:1ym4lWMLUOhuBOPGtRcJm7tEGX4SCYNEEEtghGG/8uY=
github.com/tklauser/numcpus v0.8.0 h1:Mx4Wwe/FjZLeQsK/6kt2EOepwwSl7SmJrK5bV/dXYgY=
@@ -2131,8 +2126,8 @@ go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0 h1:P+/g8GpuJGYbOp2tAdKrIPUX9JO02q8Q0YNlHolpibA=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0/go.mod h1:tIKj3DbO8N9Y2xo52og3irLsPI4GW02DSMtrVgNMgxg=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 h1:9l89oX4ba9kHbBol3Xin3leYJ+252h0zszDtBwyKe2A=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0/go.mod h1:XLZfZboOJWHNKUv7eH0inh0E9VV6eWDFB/9yJyTLPp0=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 h1:4K4tsIXefpVJtvA/8srF4V4y0akAoPHkIslgAkjixJA=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0/go.mod h1:jjdQuTGVsXV4vSs+CJ2qYDeDPf9yIJV23qlIzBm73Vg=
go.opentelemetry.io/contrib/zpages v0.52.0 h1:MPgkMy0Cp3O5EdfVXP0ss3ujhEibysTM4eszx7E7d+E=
go.opentelemetry.io/contrib/zpages v0.52.0/go.mod h1:fqG5AFdoYru3A3DnhibVuaaEfQV2WKxE7fYE1jgDRwk=
go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo=
@@ -2183,7 +2178,6 @@ golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191112222119-e1110fd1c708/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20191128160524-b544559bb6d1/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
@@ -2422,7 +2416,6 @@ golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190415081028-16da32be82c5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -2758,7 +2751,6 @@ google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
@@ -2908,8 +2900,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529/go.
google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:mPBs5jNgx2GuQGvFwUvVKqtn6HsUw9nP64BedgvqEsQ=
google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e/go.mod h1:rsr7RhLuwsDKL7RmgDDCUc6yaGr1iqceVb5Wv6f6YvQ=
google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5/go.mod h1:5DZzOUPCLYL3mNkQ0ms0F3EuUNZ7py1Bqeq6sxzI7/Q=
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 h1:P8OJ/WCl/Xo4E4zoe4/bifHpSmmKwARqyqE4nW6J2GQ=
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5/go.mod h1:RGnPtTG7r4i8sPlNyDeikXF99hMM+hN6QMm4ooG9g2g=
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 h1:7whR9kGa5LUwFtpLm2ArCEejtnxlGeLbAyjFY8sGNFw=
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157/go.mod h1:99sLkeliLXfdj2J75X3Ho+rrVCaJze0uwN7zDDkjPVU=
google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA=
google.golang.org/genproto/googleapis/bytestream v0.0.0-20230711160842-782d3b101e98/go.mod h1:3QoBVwTHkXbY1oRGzlhwhOykfcATQN43LJ6iT8Wy8kE=
google.golang.org/genproto/googleapis/bytestream v0.0.0-20230807174057-1744710a1577/go.mod h1:NjCQG/D8JandXxM57PZbAJL1DCNL6EypA0vPPwfsc7c=
@@ -2922,8 +2914,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230731190214-cbb8c96f2d6d/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230807174057-1744710a1577/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291 h1:AgADTJarZTBqgjiUzRgfaBchgYB3/WFTC80GPwsMcRI=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 h1:Zy9XzmMEflZ/MAaA7vNcoebnRAld7FsPW1EeBB7V0m8=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0=
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
@@ -2971,8 +2963,8 @@ google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGO
google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo=
google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY=
google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg=
google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc=
google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ=
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
google.golang.org/grpc/examples v0.0.0-20211102180624-670c133e568e h1:m7aQHHqd0q89mRwhwS9Bx2rjyl/hsFAeta+uGrHsQaU=
google.golang.org/grpc/examples v0.0.0-20211102180624-670c133e568e/go.mod h1:gID3PKrg7pWKntu9Ss6zTLJ0ttC0X9IHgREOCZwbCVU=
@@ -3018,10 +3010,7 @@ gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/ns1/ns1-go.v2 v2.4.4/go.mod h1:GMnKY+ZuoJ+lVLL+78uSTjwTz2jMazq6AfGKQOYhsPk=
gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
gopkg.in/square/go-jose.v2 v2.4.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI=
gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
@@ -3110,7 +3099,5 @@ rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=
sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY=
stash.kopano.io/kgol/oidc-go v0.3.4 h1:pWANXF8gCPn6w+bowuWrOtmUueCyS70xLd4I8DbnIYs=
stash.kopano.io/kgol/oidc-go v0.3.4/go.mod h1:roVKz8FVmPcdL4pUu+Gzk+GH2kOhz1UvnuMNTkjHyH8=
stash.kopano.io/kgol/rndm v1.1.2 h1:vriNehb5NuglfGqZPkgeFr2Y5AjXtQCF4vEl4kqc6nc=
stash.kopano.io/kgol/rndm v1.1.2/go.mod h1:CBvpAHlOwyu/XipxfLGk02UN3K3P6hQ8E2JoTbNWfJU=
+2
View File
@@ -7,6 +7,7 @@ import (
appProvider "github.com/owncloud/ocis/v2/services/app-provider/pkg/config"
appRegistry "github.com/owncloud/ocis/v2/services/app-registry/pkg/config"
audit "github.com/owncloud/ocis/v2/services/audit/pkg/config"
authapp "github.com/owncloud/ocis/v2/services/auth-app/pkg/config"
authbasic "github.com/owncloud/ocis/v2/services/auth-basic/pkg/config"
authbearer "github.com/owncloud/ocis/v2/services/auth-bearer/pkg/config"
authmachine "github.com/owncloud/ocis/v2/services/auth-machine/pkg/config"
@@ -86,6 +87,7 @@ type Config struct {
AppProvider *appProvider.Config `yaml:"app_provider"`
AppRegistry *appRegistry.Config `yaml:"app_registry"`
Audit *audit.Config `yaml:"audit"`
AuthApp *authapp.Config `yaml:"auth_app"`
AuthBasic *authbasic.Config `yaml:"auth_basic"`
AuthBearer *authbearer.Config `yaml:"auth_bearer"`
AuthMachine *authmachine.Config `yaml:"auth_machine"`
+2
View File
@@ -6,6 +6,7 @@ import (
appProvider "github.com/owncloud/ocis/v2/services/app-provider/pkg/config/defaults"
appRegistry "github.com/owncloud/ocis/v2/services/app-registry/pkg/config/defaults"
audit "github.com/owncloud/ocis/v2/services/audit/pkg/config/defaults"
authapp "github.com/owncloud/ocis/v2/services/auth-app/pkg/config/defaults"
authbasic "github.com/owncloud/ocis/v2/services/auth-basic/pkg/config/defaults"
authbearer "github.com/owncloud/ocis/v2/services/auth-bearer/pkg/config/defaults"
authmachine "github.com/owncloud/ocis/v2/services/auth-machine/pkg/config/defaults"
@@ -58,6 +59,7 @@ func DefaultConfig() *Config {
AppProvider: appProvider.DefaultConfig(),
AppRegistry: appRegistry.DefaultConfig(),
Audit: audit.DefaultConfig(),
AuthApp: authapp.DefaultConfig(),
AuthBasic: authbasic.DefaultConfig(),
AuthBearer: authbearer.DefaultConfig(),
AuthMachine: authmachine.DefaultConfig(),
+3 -2
View File
@@ -7,7 +7,7 @@ import (
"github.com/owncloud/ocis/v2/ocis-pkg/cors"
chicors "github.com/go-chi/cors"
rscors "github.com/rs/cors"
)
// NoCache writes required cache headers to all requests.
@@ -31,10 +31,11 @@ func Cors(opts ...cors.Option) func(http.Handler) http.Handler {
Str("allowed_headers", strings.Join(options.AllowedHeaders, ", ")).
Bool("allow_credentials", options.AllowCredentials).
Msg("setup cors middleware")
return chicors.Handler(chicors.Options{
c := rscors.New(rscors.Options{
AllowedOrigins: options.AllowedOrigins,
AllowedMethods: options.AllowedMethods,
AllowedHeaders: options.AllowedHeaders,
AllowCredentials: options.AllowCredentials,
})
return c.Handler
}
+4 -4
View File
@@ -9,7 +9,7 @@ import (
)
type storeOptionsKey struct{}
type expiryKey struct{}
type defaultTTLKey struct{}
// StoreOptions sets the options for the underlying store
func StoreOptions(opts []store.Option) registry.Option {
@@ -21,12 +21,12 @@ func StoreOptions(opts []store.Option) registry.Option {
}
}
// ServiceExpiry allows setting an expiry time for service registrations
func ServiceExpiry(t time.Duration) registry.Option {
// DefaultTTL allows setting a default register TTL for services
func DefaultTTL(t time.Duration) registry.Option {
return func(o *registry.Options) {
if o.Context == nil {
o.Context = context.Background()
}
o.Context = context.WithValue(o.Context, expiryKey{}, t)
o.Context = context.WithValue(o.Context, defaultTTLKey{}, t)
}
}
+80 -50
View File
@@ -12,6 +12,7 @@ import (
"time"
natsjskv "github.com/go-micro/plugins/v4/store/nats-js-kv"
"github.com/google/uuid"
"github.com/nats-io/nats.go"
"go-micro.dev/v4/registry"
"go-micro.dev/v4/store"
@@ -23,6 +24,8 @@ var (
_registryAddressEnv = "MICRO_REGISTRY_ADDRESS"
_registryUsernameEnv = "MICRO_REGISTRY_AUTH_USERNAME"
_registryPasswordEnv = "MICRO_REGISTRY_AUTH_PASSWORD"
_serviceDelimiter = "/"
)
func init() {
@@ -37,22 +40,22 @@ func NewRegistry(opts ...registry.Option) registry.Registry {
for _, o := range opts {
o(&options)
}
exp, _ := options.Context.Value(expiryKey{}).(time.Duration)
defaultTTL, _ := options.Context.Value(defaultTTLKey{}).(time.Duration)
n := &storeregistry{
opts: options,
typ: _registryName,
expiry: exp,
opts: options,
typ: _registryName,
defaultTTL: defaultTTL,
}
n.store = natsjskv.NewStore(n.storeOptions(options)...)
return n
}
type storeregistry struct {
opts registry.Options
store store.Store
typ string
expiry time.Duration
lock sync.RWMutex
opts registry.Options
store store.Store
typ string
defaultTTL time.Duration
lock sync.RWMutex
}
// Init inits the registry
@@ -73,78 +76,64 @@ func (n *storeregistry) Options() registry.Options {
}
// Register adds a service to the registry
func (n *storeregistry) Register(s *registry.Service, _ ...registry.RegisterOption) error {
func (n *storeregistry) Register(s *registry.Service, opts ...registry.RegisterOption) error {
n.lock.RLock()
defer n.lock.RUnlock()
if s == nil {
return errors.New("wont store nil service")
}
var options registry.RegisterOptions
options.TTL = n.defaultTTL
for _, o := range opts {
o(&options)
}
unique := uuid.New().String()
if s.Metadata == nil {
s.Metadata = make(map[string]string)
}
s.Metadata["uuid"] = unique
b, err := json.Marshal(s)
if err != nil {
return err
}
return n.store.Write(&store.Record{
Key: s.Name,
Key: s.Name + _serviceDelimiter + unique,
Value: b,
Expiry: n.expiry,
Expiry: options.TTL,
})
}
// Deregister removes a service from the registry
// Deregister removes a service from the registry.
func (n *storeregistry) Deregister(s *registry.Service, _ ...registry.DeregisterOption) error {
n.lock.RLock()
defer n.lock.RUnlock()
return n.store.Delete(s.Name)
var unique string
if s.Metadata != nil {
unique = s.Metadata["uuid"]
}
return n.store.Delete(s.Name + _serviceDelimiter + unique)
}
// GetService gets a specific service from the registry
func (n *storeregistry) GetService(s string, _ ...registry.GetOption) ([]*registry.Service, error) {
n.lock.RLock()
defer n.lock.RUnlock()
recs, err := n.store.Read(s)
if err != nil {
return nil, err
}
svcs := make([]*registry.Service, 0, len(recs))
for _, rec := range recs {
var s registry.Service
if err := json.Unmarshal(rec.Value, &s); err != nil {
return nil, err
}
svcs = append(svcs, &s)
}
return svcs, nil
// avoid listing e.g. `webfinger` when requesting `web` by adding the delimiter to the service name
return n.listServices(store.ListPrefix(s + _serviceDelimiter))
}
// ListServices lists all registered services
func (n *storeregistry) ListServices(...registry.ListOption) ([]*registry.Service, error) {
n.lock.RLock()
defer n.lock.RUnlock()
keys, err := n.store.List()
if err != nil {
return nil, err
}
var svcs []*registry.Service
for _, k := range keys {
s, err := n.GetService(k)
if err != nil {
// TODO: continue ?
return nil, err
}
svcs = append(svcs, s...)
}
return svcs, nil
return n.listServices()
}
// Watch allowes following the changes in the registry if it would be implemented
func (n *storeregistry) Watch(...registry.WatchOption) (registry.Watcher, error) {
return nil, errors.New("watcher not implemented")
return NewWatcher(n)
}
// String returns the name of the registry
@@ -152,6 +141,43 @@ func (n *storeregistry) String() string {
return n.typ
}
func (n *storeregistry) listServices(opts ...store.ListOption) ([]*registry.Service, error) {
n.lock.RLock()
defer n.lock.RUnlock()
keys, err := n.store.List(opts...)
if err != nil {
return nil, err
}
svcs := make([]*registry.Service, 0, len(keys))
for _, k := range keys {
s, err := n.getService(k)
if err != nil {
// TODO: continue ?
return nil, err
}
svcs = append(svcs, s)
}
return svcs, nil
}
func (n *storeregistry) getService(s string) (*registry.Service, error) {
recs, err := n.store.Read(s)
if err != nil {
return nil, err
}
if len(recs) == 0 {
return nil, registry.ErrNotFound
}
var svc registry.Service
if err := json.Unmarshal(recs[0].Value, &svc); err != nil {
return nil, err
}
return &svc, nil
}
func (n *storeregistry) storeOptions(opts registry.Options) []store.Option {
storeoptions := []store.Option{
store.Database("service-registry"),
@@ -160,6 +186,10 @@ func (n *storeregistry) storeOptions(opts registry.Options) []store.Option {
natsjskv.EncodeKeys(),
}
if defaultTTL, ok := opts.Context.Value(defaultTTLKey{}).(time.Duration); ok {
storeoptions = append(storeoptions, natsjskv.DefaultTTL(defaultTTL))
}
addr := []string{"127.0.0.1:9233"}
if len(opts.Addrs) > 0 {
addr = opts.Addrs
+74
View File
@@ -0,0 +1,74 @@
package natsjsregistry
import (
"errors"
"github.com/nats-io/nats.go"
"go-micro.dev/v4/registry"
)
// NatsWatcher is the watcher of the nats interface
type NatsWatcher interface {
WatchAll(bucket string, opts ...nats.WatchOpt) (nats.KeyWatcher, error)
}
// Watcher is used to keep track of changes in the registry
type Watcher struct {
watch nats.KeyWatcher
updates <-chan nats.KeyValueEntry
reg *storeregistry
}
// NewWatcher returns a new watcher
func NewWatcher(s *storeregistry) (*Watcher, error) {
w, ok := s.store.(NatsWatcher)
if !ok {
return nil, errors.New("store does not implement watcher interface")
}
watcher, err := w.WatchAll("service-registry")
if err != nil {
return nil, err
}
return &Watcher{
watch: watcher,
updates: watcher.Updates(),
reg: s,
}, nil
}
// Next returns the next result. It is a blocking call
func (w *Watcher) Next() (*registry.Result, error) {
kve := <-w.updates
if kve == nil {
return nil, errors.New("watcher stopped")
}
service, err := w.reg.getService(kve.Key())
if err != nil {
return nil, err
}
var action string
switch kve.Operation() {
default:
action = "create"
case nats.KeyValuePut:
action = "create"
case nats.KeyValueDelete:
action = "delete"
case nats.KeyValuePurge:
action = "delete"
}
return &registry.Result{
Service: service,
Action: action,
}, nil
}
// Stop stops the watcher
func (w *Watcher) Stop() {
_ = w.watch.Stop()
}
+33
View File
@@ -0,0 +1,33 @@
package registry
import (
"os"
"time"
)
const (
_registryRegisterIntervalEnv = "EXPERIMENTAL_REGISTER_INTERVAL"
_registryRegisterTTLEnv = "EXPERIMENTAL_REGISTER_TTL"
// Note: _defaultRegisterInterval should always be lower than _defaultRegisterTTL
_defaultRegisterInterval = time.Second * 25
_defaultRegisterTTL = time.Second * 30
)
// GetRegisterInterval returns the register interval from the environment.
func GetRegisterInterval() time.Duration {
d, err := time.ParseDuration(os.Getenv(_registryRegisterIntervalEnv))
if err != nil {
return _defaultRegisterInterval
}
return d
}
// GetRegisterTTL returns the register TTL from the environment.
func GetRegisterTTL() time.Duration {
d, err := time.ParseDuration(os.Getenv(_registryRegisterTTLEnv))
if err != nil {
return _defaultRegisterTTL
}
return d
}
+2 -2
View File
@@ -16,12 +16,12 @@ func RegisterService(ctx context.Context, service *mRegistry.Service, logger log
logger.Info().Msgf("registering external service %v@%v", node.Id, node.Address)
rOpts := []mRegistry.RegisterOption{mRegistry.RegisterTTL(time.Minute)}
rOpts := []mRegistry.RegisterOption{mRegistry.RegisterTTL(GetRegisterTTL())}
if err := registry.Register(service, rOpts...); err != nil {
logger.Fatal().Err(err).Msgf("Registration error for external service %v", service.Name)
}
t := time.NewTicker(time.Second * 30)
t := time.NewTicker(GetRegisterInterval())
go func() {
for {
+9 -5
View File
@@ -31,11 +31,12 @@ var (
// Config is the config for a registry
type Config struct {
Type string `mapstructure:"type"`
Addresses []string `mapstructure:"addresses"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
DisableCache bool `mapstructure:"disable_cache"`
Type string `mapstructure:"type"`
Addresses []string `mapstructure:"addresses"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
DisableCache bool `mapstructure:"disable_cache"`
RegisterTTL time.Duration `mapstructure:"register_ttl"`
}
// Option allows configuring the registry
@@ -62,6 +63,7 @@ func GetRegistry(opts ...Option) mRegistry.Registry {
case "natsjs", "nats-js", "nats-js-kv": // for backwards compatibility - we will stick with one of those
_reg = natsjsregistry.NewRegistry(
mRegistry.Addrs(cfg.Addresses...),
natsjsregistry.DefaultTTL(cfg.RegisterTTL),
)
case "memory":
_reg = memr.NewRegistry()
@@ -119,6 +121,8 @@ func getEnvs(opts ...Option) *Config {
cfg.Addresses = s
}
cfg.RegisterTTL = GetRegisterTTL()
for _, o := range opts {
o(cfg)
}
+2 -3
View File
@@ -4,7 +4,6 @@ import (
"crypto/tls"
"fmt"
"strings"
"time"
mgrpcs "github.com/go-micro/plugins/v4/server/grpc"
"github.com/go-micro/plugins/v4/wrapper/monitoring/prometheus"
@@ -59,8 +58,8 @@ func NewServiceWithClient(client client.Client, opts ...Option) (Service, error)
micro.Version(sopts.Version),
micro.Context(sopts.Context),
micro.Registry(registry.GetRegistry()),
micro.RegisterTTL(time.Second * 30),
micro.RegisterInterval(time.Second * 10),
micro.RegisterTTL(registry.GetRegisterTTL()),
micro.RegisterInterval(registry.GetRegisterInterval()),
micro.WrapHandler(prometheus.NewHandlerWrapper()),
micro.WrapClient(mtracer.NewClientWrapper(
mtracer.WithTraceProvider(sopts.TraceProvider),
+2 -3
View File
@@ -4,7 +4,6 @@ import (
"crypto/tls"
"fmt"
"strings"
"time"
"github.com/owncloud/ocis/v2/ocis-pkg/broker"
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
@@ -65,8 +64,8 @@ func NewService(opts ...Option) (Service, error) {
micro.Context(sopts.Context),
micro.Flags(sopts.Flags...),
micro.Registry(registry.GetRegistry()),
micro.RegisterTTL(time.Second * 30),
micro.RegisterInterval(time.Second * 10),
micro.RegisterTTL(registry.GetRegisterTTL()),
micro.RegisterInterval(registry.GetRegisterInterval()),
micro.WrapClient(mtracer.NewClientWrapper(
mtracer.WithTraceProvider(sopts.TraceProvider),
)),
+2
View File
@@ -86,6 +86,8 @@ func GetTraceProvider(endpoint, collector, serviceName, traceType string) (*sdkt
jaeger.WithEndpoint(collector),
),
)
} else {
return sdktrace.NewTracerProvider(sdktrace.WithSampler(sdktrace.NeverSample())), nil
}
if err != nil {
return nil, err
+1 -1
View File
@@ -16,7 +16,7 @@ var (
// LatestTag is the latest released version plus the dev meta version.
// Will be overwritten by the release pipeline
// Needs a manual change for every tagged release
LatestTag = "6.0.0+dev"
LatestTag = "6.2.0+dev"
// Date indicates the build date.
// This has been removed, it looks like you can only replace static strings with recent go versions
+1 -1
View File
@@ -3,7 +3,7 @@ FROM amd64/alpine:3.18
ARG VERSION=""
ARG REVISION=""
RUN apk add --no-cache ca-certificates mailcap tree attr curl inotify-tools bash && \
RUN apk add --no-cache ca-certificates mailcap tree attr curl inotify-tools bash libc6-compat && \
echo 'hosts: files dns' >| /etc/nsswitch.conf
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
+1 -1
View File
@@ -3,7 +3,7 @@ FROM arm64v8/alpine:3.18
ARG VERSION=""
ARG REVISION=""
RUN apk add --no-cache ca-certificates mailcap tree attr curl inotify-tools bash && \
RUN apk add --no-cache ca-certificates mailcap tree attr curl inotify-tools bash libc6-compat && \
echo 'hosts: files dns' >| /etc/nsswitch.conf
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
+1 -1
View File
@@ -310,7 +310,7 @@ func setCmd(cfg *config.Config) *cli.Command {
func backend(root, backend string) metadata.Backend {
switch backend {
case "xattrs":
return metadata.XattrsBackend{}
return metadata.NewXattrsBackend(root, cache.Config{})
case "mpk":
return metadata.NewMessagePackBackend(root, cache.Config{})
}
+7 -1
View File
@@ -26,6 +26,12 @@ func InitCommand(cfg *config.Config) *cli.Command {
Value: "ask",
Usage: "Allow insecure oCIS config",
},
&cli.BoolFlag{
Name: "diff",
Aliases: []string{"d"},
Usage: "Show the difference between the current config and the new one",
Value: false,
},
&cli.BoolFlag{
Name: "force-overwrite",
Aliases: []string{"f"},
@@ -57,7 +63,7 @@ func InitCommand(cfg *config.Config) *cli.Command {
} else if insecureFlag == strings.ToLower("true") || insecureFlag == strings.ToLower("yes") || insecureFlag == strings.ToLower("y") {
insecure = true
}
err := ocisinit.CreateConfig(insecure, c.Bool("force-overwrite"), c.String("config-path"), c.String("admin-password"))
err := ocisinit.CreateConfig(insecure, c.Bool("force-overwrite"), c.Bool("diff"), c.String("config-path"), c.String("admin-password"))
if err != nil {
log.Fatalf("Could not create config: %s", err)
}
+9 -3
View File
@@ -13,6 +13,7 @@ import (
appprovider "github.com/owncloud/ocis/v2/services/app-provider/pkg/command"
appregistry "github.com/owncloud/ocis/v2/services/app-registry/pkg/command"
audit "github.com/owncloud/ocis/v2/services/audit/pkg/command"
authapp "github.com/owncloud/ocis/v2/services/auth-app/pkg/command"
authbasic "github.com/owncloud/ocis/v2/services/auth-basic/pkg/command"
authbearer "github.com/owncloud/ocis/v2/services/auth-bearer/pkg/command"
authmachine "github.com/owncloud/ocis/v2/services/auth-machine/pkg/command"
@@ -78,6 +79,11 @@ var svccmds = []register.Command{
cfg.Audit.Commons = cfg.Commons
})
},
func(cfg *config.Config) *cli.Command {
return ServiceCommand(cfg, cfg.AuthApp.Service.Name, authapp.GetCommands(cfg.AuthApp), func(_ *config.Config) {
cfg.AuthApp.Commons = cfg.Commons
})
},
func(cfg *config.Config) *cli.Command {
return ServiceCommand(cfg, cfg.AuthBasic.Service.Name, authbasic.GetCommands(cfg.AuthBasic), func(c *config.Config) {
cfg.AuthBasic.Commons = cfg.Commons
@@ -266,10 +272,10 @@ var svccmds = []register.Command{
}
// ServiceCommand is the entry point for the all service commands.
func ServiceCommand(cfg *config.Config, servicename string, subcommands []*cli.Command, f func(*config.Config)) *cli.Command {
func ServiceCommand(cfg *config.Config, serviceName string, subcommands []*cli.Command, f func(*config.Config)) *cli.Command {
return &cli.Command{
Name: servicename,
Usage: helper.SubcommandDescription(servicename),
Name: serviceName,
Usage: helper.SubcommandDescription(serviceName),
Category: "services",
Before: func(c *cli.Context) error {
configlog.Error(parser.ParseConfig(cfg, true))
+104
View File
@@ -0,0 +1,104 @@
package init
import (
"fmt"
"io"
"log"
"os"
"os/exec"
"path"
"time"
)
func checkConfigPath(configPath string) error {
targetPath := path.Join(configPath, configFilename)
if _, err := os.Stat(targetPath); err == nil {
return fmt.Errorf("config in %s already exists", targetPath)
}
return nil
}
func configExists(configPath string) bool {
targetPath := path.Join(configPath, configFilename)
if _, err := os.Stat(targetPath); err == nil {
return true
}
return false
}
func backupOcisConfigFile(configPath string) (string, error) {
sourceConfig := path.Join(configPath, configFilename)
targetBackupConfig := path.Join(configPath, configFilename+"."+time.Now().Format("2006-01-02-15-04-05")+".backup")
source, err := os.Open(sourceConfig)
if err != nil {
log.Fatalf("Could not read %s (%s)", sourceConfig, err)
}
defer source.Close()
target, err := os.Create(targetBackupConfig)
if err != nil {
log.Fatalf("Could not generate backup %s (%s)", targetBackupConfig, err)
}
defer target.Close()
_, err = io.Copy(target, source)
if err != nil {
log.Fatalf("Could not write backup %s (%s)", targetBackupConfig, err)
}
return targetBackupConfig, nil
}
// printBanner prints the generated OCIS config banner.
func printBanner(targetPath, ocisAdminServicePassword, targetBackupConfig string) {
fmt.Printf(
"\n=========================================\n"+
" generated OCIS Config\n"+
"=========================================\n"+
" configpath : %s\n"+
" user : admin\n"+
" password : %s\n\n",
targetPath, ocisAdminServicePassword)
if targetBackupConfig != "" {
fmt.Printf("\n=========================================\n"+
"An older config file has been backuped to\n %s\n\n",
targetBackupConfig)
}
}
// writeConfig writes the config to the target path and prints a banner
func writeConfig(configPath, ocisAdminServicePassword, targetBackupConfig string, yamlOutput []byte) error {
targetPath := path.Join(configPath, configFilename)
err := os.WriteFile(targetPath, yamlOutput, 0600)
if err != nil {
return err
}
printBanner(targetPath, ocisAdminServicePassword, targetBackupConfig)
return nil
}
// writePatch writes the diff to a file
func writePatch(configPath string, yamlOutput []byte) error {
fmt.Println("running in diff mode")
tmpFile := path.Join(configPath, "ocis.yaml.tmp")
err := os.WriteFile(tmpFile, yamlOutput, 0600)
if err != nil {
return err
}
fmt.Println("diff -u " + path.Join(configPath, configFilename) + " " + tmpFile)
cmd := exec.Command("diff", "-u", path.Join(configPath, configFilename), tmpFile)
stdout, err := cmd.Output()
if err == nil {
fmt.Println("no changes, your config is up to date")
return nil
}
fmt.Println(string(stdout))
err = os.Remove(tmpFile)
if err != nil {
return err
}
patchPath := path.Join(configPath, "ocis.config.patch")
err = os.WriteFile(patchPath, stdout, 0600)
if err != nil {
return err
}
fmt.Printf("diff written to %s\n", patchPath)
return nil
}
+107 -313
View File
@@ -2,11 +2,8 @@ package init
import (
"fmt"
"io"
"log"
"os"
"path"
"time"
"github.com/gofrs/uuid"
"github.com/owncloud/ocis/v2/ocis-pkg/generators"
@@ -14,7 +11,7 @@ import (
)
const (
configFilename = "ocis.yaml" // TODO: use also a constant for reading this file
configFilename = "ocis.yaml"
passwordLength = 32
)
@@ -23,248 +20,22 @@ var (
_insecureEvents = Events{TLSInsecure: true}
)
type TokenManager struct {
JWTSecret string `yaml:"jwt_secret"`
}
type InsecureService struct {
Insecure bool
}
type ProxyService struct {
OIDC InsecureProxyOIDC `yaml:"oidc"`
InsecureBackends bool `yaml:"insecure_backends"`
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type InsecureProxyOIDC struct {
Insecure bool `yaml:"insecure"`
}
type LdapSettings struct {
BindPassword string `yaml:"bind_password"`
}
type LdapBasedService struct {
Ldap LdapSettings
}
type Events struct {
TLSInsecure bool `yaml:"tls_insecure"`
}
type GraphApplication struct {
ID string `yaml:"id"`
}
type GraphService struct {
Application GraphApplication
Events Events
Spaces InsecureService
Identity LdapBasedService
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type ServiceUserPasswordsSettings struct {
AdminPassword string `yaml:"admin_password"`
IdmPassword string `yaml:"idm_password"`
RevaPassword string `yaml:"reva_password"`
IdpPassword string `yaml:"idp_password"`
}
type IdmService struct {
ServiceUserPasswords ServiceUserPasswordsSettings `yaml:"service_user_passwords"`
}
type SettingsService struct {
ServiceAccountIDs []string `yaml:"service_account_ids"`
}
type FrontendService struct {
AppHandler InsecureService `yaml:"app_handler"`
Archiver InsecureService
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type OcmService struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type AuthbasicService struct {
AuthProviders LdapBasedService `yaml:"auth_providers"`
}
type AuthProviderSettings struct {
Oidc InsecureService
}
type AuthbearerService struct {
AuthProviders AuthProviderSettings `yaml:"auth_providers"`
}
type UsersAndGroupsService struct {
Drivers LdapBasedService
}
type ThumbnailSettings struct {
TransferSecret string `yaml:"transfer_secret"`
WebdavAllowInsecure bool `yaml:"webdav_allow_insecure"`
Cs3AllowInsecure bool `yaml:"cs3_allow_insecure"`
}
type ThumbnailService struct {
Thumbnail ThumbnailSettings
}
type Search struct {
Events Events
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type Audit struct {
Events Events
}
type Sharing struct {
Events Events
}
type StorageUsers struct {
Events Events
MountID string `yaml:"mount_id"`
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type Gateway struct {
StorageRegistry StorageRegistry `yaml:"storage_registry"`
}
type StorageRegistry struct {
StorageUsersMountID string `yaml:"storage_users_mount_id"`
}
type Notifications struct {
Notifications struct{ Events Events } // The notifications config has a field called notifications
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type Userlog struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type AuthService struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type Clientlog struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
type WopiApp struct {
Secret string `yaml:"secret"`
}
type App struct {
Insecure bool `yaml:"insecure"`
}
type Collaboration struct {
WopiApp WopiApp `yaml:"wopi"`
App App `yaml:"app"`
}
type Nats struct {
// The nats config has a field called nats
Nats struct {
TLSSkipVerifyClientCert bool `yaml:"tls_skip_verify_client_cert"`
}
}
// Activitylog is the configuration for the activitylog service
type Activitylog struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// ServiceAccount is the configuration for the used service account
type ServiceAccount struct {
ServiceAccountID string `yaml:"service_account_id"`
ServiceAccountSecret string `yaml:"service_account_secret"`
}
// TODO: use the oCIS config struct instead of this custom struct
// We can't use it right now, because it would need "omitempty" on
// all elements, in order to produce a slim config file with `ocis init`.
// We can't just add these "omitempty" tags, since we want to generate
// full example configuration files with that struct, too.
// Proposed solution to get rid of this temporary solution:
// - use the oCIS config struct
// - set the needed values like below
// - marshal it to yaml
// - unmarshal it into yaml.Node
// - recurse through the nodes and delete empty / default ones
// - marshal it to yaml
type OcisConfig struct {
TokenManager TokenManager `yaml:"token_manager"`
MachineAuthAPIKey string `yaml:"machine_auth_api_key"`
SystemUserAPIKey string `yaml:"system_user_api_key"`
TransferSecret string `yaml:"transfer_secret"`
SystemUserID string `yaml:"system_user_id"`
AdminUserID string `yaml:"admin_user_id"`
Graph GraphService
Idp LdapBasedService
Idm IdmService
Collaboration Collaboration
Proxy ProxyService
Frontend FrontendService
AuthBasic AuthbasicService `yaml:"auth_basic"`
AuthBearer AuthbearerService `yaml:"auth_bearer"`
Users UsersAndGroupsService
Groups UsersAndGroupsService
Ocdav InsecureService
Ocm OcmService
Thumbnails ThumbnailService
Search Search
Audit Audit
Settings SettingsService `yaml:"settings"`
Sharing Sharing
StorageUsers StorageUsers `yaml:"storage_users"`
Notifications Notifications
Nats Nats
Gateway Gateway
Userlog Userlog
AuthService AuthService `yaml:"auth_service"`
Clientlog Clientlog
Activitylog Activitylog
}
func checkConfigPath(configPath string) error {
targetPath := path.Join(configPath, configFilename)
if _, err := os.Stat(targetPath); err == nil {
return fmt.Errorf("config in %s already exists", targetPath)
}
return nil
}
func backupOcisConfigFile(configPath string) (string, error) {
sourceConfig := path.Join(configPath, configFilename)
targetBackupConfig := path.Join(configPath, configFilename+"."+time.Now().Format("2006-01-02-15-04-05")+".backup")
source, err := os.Open(sourceConfig)
if err != nil {
log.Fatalf("Could not read %s (%s)", sourceConfig, err)
}
defer source.Close()
target, err := os.Create(targetBackupConfig)
if err != nil {
log.Fatalf("Could not generate backup %s (%s)", targetBackupConfig, err)
}
defer target.Close()
_, err = io.Copy(target, source)
if err != nil {
log.Fatalf("Could not write backup %s (%s)", targetBackupConfig, err)
}
return targetBackupConfig, nil
}
// CreateConfig creates a config file with random passwords at configPath
func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword string) error {
func CreateConfig(insecure, forceOverwrite, diff bool, configPath, adminPassword string) error {
if diff && forceOverwrite {
return fmt.Errorf("diff and force-overwrite flags are mutually exclusive")
}
if diff && adminPassword != "" {
return fmt.Errorf("diff and admin-password flags are mutually exclusive")
}
if configExists(configPath) && !forceOverwrite && !diff {
return fmt.Errorf("config file already exists, use --force-overwrite to overwrite or --diff to show diff")
}
err := checkConfigPath(configPath)
if err != nil && !forceOverwrite {
if err != nil && (!forceOverwrite && !diff) {
fmt.Println("off")
return err
}
targetBackupConfig := ""
@@ -279,59 +50,99 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
return err
}
systemUserID := uuid.Must(uuid.NewV4()).String()
adminUserID := uuid.Must(uuid.NewV4()).String()
graphApplicationID := uuid.Must(uuid.NewV4()).String()
storageUsersMountID := uuid.Must(uuid.NewV4()).String()
serviceAccountID := uuid.Must(uuid.NewV4()).String()
idmServicePassword, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for idm: %s", err)
}
idpServicePassword, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for idp: %s", err)
}
ocisAdminServicePassword := adminPassword
if ocisAdminServicePassword == "" {
ocisAdminServicePassword, err = generators.GenerateRandomPassword(passwordLength)
// Load old config
var oldCfg OcisConfig
if diff {
fp, err := os.ReadFile(path.Join(configPath, configFilename))
if err != nil {
return fmt.Errorf("could not generate random password for ocis admin: %s", err)
return err
}
err = yaml.Unmarshal(fp, &oldCfg)
if err != nil {
return err
}
}
revaServicePassword, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for reva: %s", err)
}
tokenManagerJwtSecret, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for tokenmanager: %s", err)
}
collaborationWOPISecret, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random wopi secret for collaboration service: %s", err)
}
machineAuthAPIKey, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for machineauthsecret: %s", err)
}
systemUserAPIKey, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random system user API key: %s", err)
}
revaTransferSecret, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for revaTransferSecret: %s", err)
}
thumbnailsTransferSecret, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for thumbnailsTransferSecret: %s", err)
}
serviceAccountSecret, err := generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for thumbnailsTransferSecret: %s", err)
var (
systemUserID, adminUserID, graphApplicationID, storageUsersMountID, serviceAccountID string
idmServicePassword, idpServicePassword, ocisAdminServicePassword, revaServicePassword string
tokenManagerJwtSecret, collaborationWOPISecret, machineAuthAPIKey, systemUserAPIKey string
revaTransferSecret, thumbnailsTransferSecret, serviceAccountSecret string
)
if diff {
systemUserID = oldCfg.SystemUserID
adminUserID = oldCfg.AdminUserID
graphApplicationID = oldCfg.Graph.Application.ID
storageUsersMountID = oldCfg.Gateway.StorageRegistry.StorageUsersMountID
serviceAccountID = oldCfg.Graph.ServiceAccount.ServiceAccountID
idmServicePassword = oldCfg.Idm.ServiceUserPasswords.IdmPassword
idpServicePassword = oldCfg.Idm.ServiceUserPasswords.IdpPassword
ocisAdminServicePassword = oldCfg.Idm.ServiceUserPasswords.AdminPassword
revaServicePassword = oldCfg.Idm.ServiceUserPasswords.RevaPassword
tokenManagerJwtSecret = oldCfg.TokenManager.JWTSecret
collaborationWOPISecret = oldCfg.Collaboration.WopiApp.Secret
machineAuthAPIKey = oldCfg.MachineAuthAPIKey
systemUserAPIKey = oldCfg.SystemUserAPIKey
revaTransferSecret = oldCfg.TransferSecret
thumbnailsTransferSecret = oldCfg.Thumbnails.Thumbnail.TransferSecret
serviceAccountSecret = oldCfg.Graph.ServiceAccount.ServiceAccountSecret
} else {
systemUserID = uuid.Must(uuid.NewV4()).String()
adminUserID = uuid.Must(uuid.NewV4()).String()
graphApplicationID = uuid.Must(uuid.NewV4()).String()
storageUsersMountID = uuid.Must(uuid.NewV4()).String()
serviceAccountID = uuid.Must(uuid.NewV4()).String()
idmServicePassword, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for idm: %s", err)
}
idpServicePassword, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for idp: %s", err)
}
ocisAdminServicePassword = adminPassword
if ocisAdminServicePassword == "" {
ocisAdminServicePassword, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for ocis admin: %s", err)
}
}
revaServicePassword, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for reva: %s", err)
}
tokenManagerJwtSecret, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for tokenmanager: %s", err)
}
collaborationWOPISecret, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random wopi secret for collaboration service: %s", err)
}
machineAuthAPIKey, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for machineauthsecret: %s", err)
}
systemUserAPIKey, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random system user API key: %s", err)
}
revaTransferSecret, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for revaTransferSecret: %s", err)
}
thumbnailsTransferSecret, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for thumbnailsTransferSecret: %s", err)
}
serviceAccountSecret, err = generators.GenerateRandomPassword(passwordLength)
if err != nil {
return fmt.Errorf("could not generate random password for thumbnailsTransferSecret: %s", err)
}
}
serviceAccount := ServiceAccount{
@@ -445,7 +256,6 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
}
if insecure {
cfg.AuthBearer = AuthbearerService{
AuthProviders: AuthProviderSettings{Oidc: _insecureService},
}
@@ -472,28 +282,12 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
cfg.Thumbnails.Thumbnail.WebdavAllowInsecure = true
cfg.Thumbnails.Thumbnail.Cs3AllowInsecure = true
}
yamlOutput, err := yaml.Marshal(cfg)
if err != nil {
return fmt.Errorf("could not marshall config into yaml: %s", err)
}
targetPath := path.Join(configPath, configFilename)
err = os.WriteFile(targetPath, yamlOutput, 0600)
if err != nil {
return err
if diff {
return writePatch(configPath, yamlOutput)
}
fmt.Printf(
"\n=========================================\n"+
" generated OCIS Config\n"+
"=========================================\n"+
" configpath : %s\n"+
" user : admin\n"+
" password : %s\n\n",
targetPath, ocisAdminServicePassword)
if targetBackupConfig != "" {
fmt.Printf("\n=========================================\n"+
"An older config file has been backuped to\n %s\n\n",
targetBackupConfig)
}
return nil
return writeConfig(configPath, ocisAdminServicePassword, targetBackupConfig, yamlOutput)
}
+251
View File
@@ -0,0 +1,251 @@
package init
// TODO: use the oCIS config struct instead of this custom struct
// We can't use it right now, because it would need "omitempty" on
// all elements, in order to produce a slim config file with `ocis init`.
// We can't just add these "omitempty" tags, since we want to generate
// full example configuration files with that struct, too.
// Proposed solution to get rid of this temporary solution:
// - use the oCIS config struct
// - set the needed values like below
// - marshal it to yaml
// - unmarshal it into yaml.Node
// - recurse through the nodes and delete empty / default ones
// - marshal it to yaml
// OcisConfig is the configuration for the oCIS services
type OcisConfig struct {
TokenManager TokenManager `yaml:"token_manager"`
MachineAuthAPIKey string `yaml:"machine_auth_api_key"`
SystemUserAPIKey string `yaml:"system_user_api_key"`
TransferSecret string `yaml:"transfer_secret"`
SystemUserID string `yaml:"system_user_id"`
AdminUserID string `yaml:"admin_user_id"`
Graph GraphService `yaml:"graph"`
Idp LdapBasedService `yaml:"idp"`
Idm IdmService `yaml:"idm"`
Collaboration Collaboration `yaml:"collaboration"`
Proxy ProxyService `yaml:"proxy"`
Frontend FrontendService `yaml:"frontend"`
AuthBasic AuthbasicService `yaml:"auth_basic"`
AuthBearer AuthbearerService `yaml:"auth_bearer"`
Users UsersAndGroupsService `yaml:"users"`
Groups UsersAndGroupsService `yaml:"groups"`
Ocdav InsecureService `yaml:"ocdav"`
Ocm OcmService `yaml:"ocm"`
Thumbnails ThumbnailService `yaml:"thumbnails"`
Search Search `yaml:"search"`
Audit Audit `yaml:"audit"`
Settings SettingsService `yaml:"settings"`
Sharing Sharing `yaml:"sharing"`
StorageUsers StorageUsers `yaml:"storage_users"`
Notifications Notifications `yaml:"notifications"`
Nats Nats `yaml:"nats"`
Gateway Gateway `yaml:"gateway"`
Userlog Userlog `yaml:"userlog"`
AuthService AuthService `yaml:"auth_service"`
Clientlog Clientlog `yaml:"clientlog"`
Activitylog Activitylog `yaml:"activitylog"`
}
// Activitylog is the configuration for the activitylog service
type Activitylog struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// App is the configuration for the collaboration service
type App struct {
Insecure bool `yaml:"insecure"`
}
// Audit is the configuration for the audit service
type Audit struct {
Events Events
}
// AuthbasicService is the configuration for the authbasic service
type AuthbasicService struct {
AuthProviders LdapBasedService `yaml:"auth_providers"`
}
// AuthbearerService is the configuration for the authbearer service
type AuthbearerService struct {
AuthProviders AuthProviderSettings `yaml:"auth_providers"`
}
// AuthProviderSettings is the configuration for the auth provider settings
type AuthProviderSettings struct {
Oidc InsecureService
}
// AuthService is the configuration for the auth service
type AuthService struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// Clientlog is the configuration for the clientlog service
type Clientlog struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// Collaboration is the configuration for the collaboration service
type Collaboration struct {
WopiApp WopiApp `yaml:"wopi"`
App App `yaml:"app"`
}
// Events is the configuration for events
type Events struct {
TLSInsecure bool `yaml:"tls_insecure"`
}
// FrontendService is the configuration for the frontend service
type FrontendService struct {
AppHandler InsecureService `yaml:"app_handler"`
Archiver InsecureService
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// Gateway is the configuration for the gateway
type Gateway struct {
StorageRegistry StorageRegistry `yaml:"storage_registry"`
}
// GraphApplication is the configuration for the graph application
type GraphApplication struct {
ID string `yaml:"id"`
}
// GraphService is the configuration for the graph service
type GraphService struct {
Application GraphApplication
Events Events
Spaces InsecureService
Identity LdapBasedService
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// IdmService is the configuration for the IDM service
type IdmService struct {
ServiceUserPasswords ServiceUserPasswordsSettings `yaml:"service_user_passwords"`
}
// InsecureProxyOIDC is the configuration for the insecure proxy OIDC
type InsecureProxyOIDC struct {
Insecure bool `yaml:"insecure"`
}
// InsecureService is the configuration for services that can be insecure
type InsecureService struct {
Insecure bool
}
// LdapBasedService is the configuration for LDAP based services
type LdapBasedService struct {
Ldap LdapSettings
}
// LdapSettings is the configuration for LDAP settings
type LdapSettings struct {
BindPassword string `yaml:"bind_password"`
}
// Nats is the configuration for the nats service
type Nats struct {
// The nats config has a field called nats
Nats struct {
TLSSkipVerifyClientCert bool `yaml:"tls_skip_verify_client_cert"`
}
}
// Notifications is the configuration for the notifications service
type Notifications struct {
Notifications struct{ Events Events } // The notifications config has a field called notifications
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// OcmService is the configuration for the OCM service
type OcmService struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// ProxyService is the configuration for the proxy service
type ProxyService struct {
OIDC InsecureProxyOIDC `yaml:"oidc"`
InsecureBackends bool `yaml:"insecure_backends"`
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// Search is the configuration for the search service
type Search struct {
Events Events
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// ServiceAccount is the configuration for the used service account
type ServiceAccount struct {
ServiceAccountID string `yaml:"service_account_id"`
ServiceAccountSecret string `yaml:"service_account_secret"`
}
// ServiceUserPasswordsSettings is the configuration for service user passwords
type ServiceUserPasswordsSettings struct {
AdminPassword string `yaml:"admin_password"`
IdmPassword string `yaml:"idm_password"`
RevaPassword string `yaml:"reva_password"`
IdpPassword string `yaml:"idp_password"`
}
// SettingsService is the configuration for the settings service
type SettingsService struct {
ServiceAccountIDs []string `yaml:"service_account_ids"`
}
// Sharing is the configuration for the sharing service
type Sharing struct {
Events Events
}
// StorageRegistry is the configuration for the storage registry
type StorageRegistry struct {
StorageUsersMountID string `yaml:"storage_users_mount_id"`
}
// StorageUsers is the configuration for the storage users
type StorageUsers struct {
Events Events
MountID string `yaml:"mount_id"`
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// ThumbnailSettings is the configuration for the thumbnail settings
type ThumbnailSettings struct {
TransferSecret string `yaml:"transfer_secret"`
WebdavAllowInsecure bool `yaml:"webdav_allow_insecure"`
Cs3AllowInsecure bool `yaml:"cs3_allow_insecure"`
}
// ThumbnailService is the configuration for the thumbnail service
type ThumbnailService struct {
Thumbnail ThumbnailSettings
}
// TokenManager is the configuration for the token manager
type TokenManager struct {
JWTSecret string `yaml:"jwt_secret"`
}
// UsersAndGroupsService is the configuration for the users and groups service
type UsersAndGroupsService struct {
Drivers LdapBasedService
}
// Userlog is the configuration for the userlog service
type Userlog struct {
ServiceAccount ServiceAccount `yaml:"service_account"`
}
// WopiApp is the configuration for the WOPI app
type WopiApp struct {
Secret string `yaml:"secret"`
}
+7
View File
@@ -13,6 +13,8 @@ import (
"syscall"
"time"
authapp "github.com/owncloud/ocis/v2/services/auth-app/pkg/command"
"github.com/cenkalti/backoff"
"github.com/cs3org/reva/v2/pkg/events/stream"
"github.com/cs3org/reva/v2/pkg/logger"
@@ -324,6 +326,11 @@ func NewService(options ...Option) (*Service, error) {
cfg.Audit.Commons = cfg.Commons
return audit.Execute(cfg.Audit)
})
areg(opts.Config.AuthApp.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
cfg.AuthApp.Context = ctx
cfg.AuthApp.Commons = cfg.Commons
return authapp.Execute(cfg.AuthApp)
})
areg(opts.Config.Policies.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
cfg.Policies.Context = ctx
cfg.Policies.Commons = cfg.Commons
+1 -1
View File
@@ -9,7 +9,7 @@ import (
const (
// _trashGlobPattern is the glob pattern to find all trash items
_trashGlobPattern = "storage/users/spaces/*/*/trash/*/*/*/*"
_trashGlobPattern = "spaces/*/*/trash/*/*/*/*"
)
// PurgeTrashEmptyPaths purges empty paths in the trash
+2 -2
View File
@@ -64,7 +64,7 @@ func WithResource(ref *provider.Reference, addSpace bool) ActivityOption {
}
vars["resource"] = Resource{
ID: storagespace.FormatResourceID(*info.GetId()),
ID: storagespace.FormatResourceID(info.GetId()),
Name: info.GetName(),
}
@@ -111,7 +111,7 @@ func WithTrashedResource(ref *provider.Reference, rid *provider.ResourceId) Acti
if item.GetKey() == rid.GetOpaqueId() {
vars["resource"] = Resource{
ID: storagespace.FormatResourceID(*rid),
ID: storagespace.FormatResourceID(rid),
Name: filepath.Base(item.GetRef().GetPath()),
}
+6 -6
View File
@@ -158,7 +158,7 @@ func (a *ActivitylogService) AddActivityTrashed(resourceID *provider.ResourceId,
}
// store activity on trashed item
if err := a.storeActivity(storagespace.FormatResourceID(*resourceID), eventID, 0, timestamp); err != nil {
if err := a.storeActivity(storagespace.FormatResourceID(resourceID), eventID, 0, timestamp); err != nil {
return fmt.Errorf("could not store activity: %w", err)
}
@@ -183,7 +183,7 @@ func (a *ActivitylogService) AddSpaceActivity(spaceID *provider.StorageSpaceId,
return fmt.Errorf("could not parse space id: %w", err)
}
rid.OpaqueId = rid.GetSpaceId()
return a.storeActivity(storagespace.FormatResourceID(rid), eventID, 0, timestamp)
return a.storeActivity(storagespace.FormatResourceID(&rid), eventID, 0, timestamp)
}
@@ -218,7 +218,7 @@ func (a *ActivitylogService) RemoveActivities(rid *provider.ResourceId, toDelete
}
return a.store.Write(&microstore.Record{
Key: storagespace.FormatResourceID(*rid),
Key: storagespace.FormatResourceID(rid),
Value: b,
})
}
@@ -232,11 +232,11 @@ func (a *ActivitylogService) RemoveResource(rid *provider.ResourceId) error {
a.lock.Lock()
defer a.lock.Unlock()
return a.store.Delete(storagespace.FormatResourceID(*rid))
return a.store.Delete(storagespace.FormatResourceID(rid))
}
func (a *ActivitylogService) activities(rid *provider.ResourceId) ([]RawActivity, error) {
resourceID := storagespace.FormatResourceID(*rid)
resourceID := storagespace.FormatResourceID(rid)
records, err := a.store.Read(resourceID)
if err != nil && err != microstore.ErrNotFound {
@@ -269,7 +269,7 @@ func (a *ActivitylogService) addActivity(initRef *provider.Reference, eventID st
return fmt.Errorf("could not get resource info: %w", err)
}
if err := a.storeActivity(storagespace.FormatResourceID(*info.GetId()), eventID, depth, timestamp); err != nil {
if err := a.storeActivity(storagespace.FormatResourceID(info.GetId()), eventID, depth, timestamp); err != nil {
return fmt.Errorf("could not store activity: %w", err)
}
Loaded 100 of 743 files, more files were not shown because too many files have changed in this diff. Show more