Compare commits

...
394 Commits
Author SHA1 Message Date
Alex Unger 441bded50f Automated changelog update [skip ci] 2020-11-30 08:55:56 +00:00
Alex Unger 178eac9724 Merge pull request #981 from owncloud/fix-changelog-links
fix changelog links
2020-11-30 09:22:49 +01:00
Artur Neumann fd71062671 Merge pull request #977 from owncloud/bump-core-commit-id-20201128
[tests-only] Bump core commit for API tests
2020-11-30 14:07:28 +05:45
Jörn Friedrich Dreyer 127441fcf5 Automated changelog update [skip ci] 2020-11-30 07:48:56 +00:00
Phil Davis 693585c9b2 Bump core commit for API tests 2020-11-30 13:27:39 +05:45
Jörn Friedrich Dreyer 11467f8c20 Merge pull request #980 from owncloud/reva-update-202011-30
Update reva to ac85e68
2020-11-30 08:14:21 +01:00
Jörn Friedrich Dreyer e85291367e fix changelog links 2020-11-30 08:11:55 +01:00
Benedikt Kulmann 040c24606f Update reva to ac85e68 2020-11-30 07:37:31 +01:00
Florian Schade e39cd16617 add LastPasswordChangeDateTime to cache key 2020-11-27 16:18:22 +01:00
Florian Schade 2bc7f2175c straight out code because staticcheck error 2020-11-27 16:18:22 +01:00
Florian Schade 2a259dd3b1 add Unset to cache.go
harden accounts cache security
2020-11-27 16:18:22 +01:00
Alex Unger edde760f79 Automated changelog update [skip ci] 2020-11-27 13:01:40 +00:00
Alex Unger d470d5c200 Merge pull request #971 from owncloud/reva-update-2020-11-27
Reva update v1.4.1-0.20201127111856-e6a6212c1b7b
2020-11-27 13:33:41 +01:00
A.Unger ca98d8287c update reva to v1.4.1-0.20201127111856-e6a6212c1b7b 2020-11-27 12:36:19 +01:00
Artur Neumann cda74f417e Merge pull request #970 from owncloud/bumpCoreTestsCommitId20201127
[tests-only] Bump core commit id for API tests
2020-11-27 17:00:49 +05:45
Artur Neumann 94443994ca Bump core commit id for API tests 2020-11-27 16:27:34 +05:45
Phil Davis d37701e899 Merge pull request #964 from owncloud/Ci_optimize_dependency_generation
[tests-only] optimize dependency generation
2020-11-27 15:13:42 +05:45
Willy Kloucek deeb9a8392 optimize dependency generation 2020-11-27 08:59:17 +01:00
David Christofas 6d3dc1cf4a Automated changelog update [skip ci] 2020-11-26 17:24:35 +00:00
David Christofas 0798f406ec Merge pull request #910 from owncloud/thumbnails-rewrite
change image library and refactor thumbnails service
2020-11-26 17:55:07 +01:00
Jörn Friedrich Dreyer dbb52f29ad Merge pull request #958 from owncloud/basic-auth-cache
implement basic auth cache
2020-11-26 17:33:47 +01:00
Phil Davis cda8aadf50 Merge pull request #956 from owncloud/fix_gopath_volume_caching
[tests-only] fix gopath volume for ocis modules testing
2020-11-26 22:01:52 +05:45
David Christofas c46a5598d4 change image library and refactor thumbnails service 2020-11-26 16:36:51 +01:00
Willy Kloucek da20db18bc fix gopath volume for ocis modules testing 2020-11-26 14:57:20 +01:00
Florian Schade cb2e2a3896 add changelog
remove unused mux
cleanup k6 test
2020-11-26 14:46:44 +01:00
Florian Schade 11ba46eb88 remove accounts cache from basic auth middleware
move cache to ocis-pkg
add password validation cache to accounts service
2020-11-26 13:52:24 +01:00
Benedikt Kulmann c5a75291f9 Merge pull request #957 from owncloud/reva-update-2020-11-26
Update reva to v1.4.1-0.20201125144025-57da0c27434c
2020-11-26 11:55:05 +01:00
Florian Schade e72328d738 fix typo 2020-11-26 11:00:10 +01:00
A.Unger a92703188a update expected failures on ocis + owncloud storage 2020-11-26 10:58:54 +01:00
Florian Schade 7cbbcadbdf add changelog 2020-11-26 10:51:09 +01:00
Florian Schade e334759874 implement basic auth cache 2020-11-26 10:33:46 +01:00
Benedikt Kulmann 63d1fca0ce Merge pull request #953 from owncloud/oidc-mw-provider
fix oidc middleware provider lazy initialization
2020-11-26 10:27:26 +01:00
A.Unger 5ef4025c29 update reva to v1.4.1-0.20201125144025-57da0c27434c 2020-11-26 10:23:29 +01:00
Phil Davis f16deed415 Merge pull request #937 from owncloud/update-testrunner
[Tests-Only] update testrunner commitid
2020-11-26 11:28:21 +05:45
Phil Davis 7cfdbcee60 Bump core commit id for API tests 2020-11-26 10:20:14 +05:45
Dipak Acharya 39bda3a109 [Tests-Only] update testrunner commitid 2020-11-26 10:16:31 +05:45
Florian Schade ab85245093 fix oidc middleware provider lazy initialization 2020-11-25 22:50:11 +01:00
Alex Unger d28f5ce7db Automated changelog update [skip ci] 2020-11-25 21:08:58 +00:00
Alex Unger c742389ebb Update reva to v1.4.1-0.20201125144025-57da0c27434c (#951)
* update ocis-reva

* add changelog

* remove passing scenario
2020-11-25 21:13:36 +01:00
Florian Schade 072042efaa make rollup externals accept globs 2020-11-25 12:42:16 +01:00
Phil Davis d744896a63 Merge pull request #946 from owncloud/bump-api-test-commit-id-20201125
[tests-only] Bump commit id for API tests
2020-11-25 17:03:00 +05:45
Phil Davis c2393a707d Automated changelog update [skip ci] 2020-11-25 09:32:36 +00:00
Phil Davis 68d093932e Bump commit id for API tests 2020-11-25 14:44:40 +05:45
Phil Davis 4294d6b364 Merge pull request #945 from owncloud/tests-at-top-level
[tests-only] move ocis/tests/acceptance up to tests/acceptance
2020-11-25 14:25:25 +05:45
Phil Davis d394e0d03c Merge pull request #943 from owncloud/update-phoenix-0.27.0
Update phoenix to 0.27.0
2020-11-25 14:04:57 +05:45
Phil Davis 1e772d176e Fixup tests/config references 2020-11-25 13:23:10 +05:45
Phil Davis 1cf5cf16e3 Adjust testing.md for the move of API test code to the root folder 2020-11-25 12:54:26 +05:45
Phil Davis 515f5a56fe Adjust location of EXPECTED_FAILURES_FILE 2020-11-25 12:51:04 +05:45
Phil Davis e35c37dd08 Adjust infrastructure for move of acceptance tests 2020-11-25 12:47:41 +05:45
Phil Davis d57f7a810c Move ocis/tests folder into root tests folder 2020-11-25 12:24:14 +05:45
Phil Davis 3c66e9a9af Rename test to tests and remove space from tsconfig.json file name 2020-11-25 12:21:49 +05:45
Benedikt Kulmann 3b36c79a28 Update phoenix to 0.27.0 2020-11-24 23:51:08 +01:00
Florian Schade fdee244bef Automated changelog update [skip ci] 2020-11-24 18:34:56 +00:00
Florian Schade 4452d165ca K6 Testing (#941)
* first k6 tests
2020-11-24 18:39:27 +01:00
Phil Davis a32c700cea Automated changelog update [skip ci] 2020-11-24 12:21:04 +00:00
Phil Davis 09181cbd64 Merge pull request #935 from owncloud/update-phoenix-0.2.6
Update ocis-web to 0.2.6
2020-11-24 17:10:56 +05:45
Benedikt Kulmann ee016ad991 Automated changelog update [skip ci] 2020-11-24 11:11:22 +00:00
Benedikt Kulmann 559f777ea7 Update assets again 2020-11-24 11:12:38 +01:00
Benedikt Kulmann 049b35768a Merge pull request #934 from owncloud/set-expires-headers
Set expires headers and force asset revalidation
2020-11-24 11:09:16 +01:00
Dipak Acharya 398325d569 Merge pull request #936 from owncloud/fix-nightly
[CI] fix pipelines names in ci
2020-11-24 14:53:11 +05:45
Lukas Hirt df9e809181 Update ocis-web to 0.2.6 2020-11-24 10:03:07 +01:00
Dipak Acharya 1a32be2b94 [CI] fix pipelines names in ci 2020-11-24 13:37:27 +05:45
Phil Davis edcb61f957 Merge pull request #923 from owncloud/fix-nightly
[tests-only] [CI] fix the nightly builds pipelines
2020-11-23 21:47:45 +05:45
Phil Davis bdb04a34e8 Merge pull request #928 from owncloud/singleSuitePipeline
[tests-only] allow single suite pipeline to be defined without a list
2020-11-23 21:11:53 +05:45
Dipak Acharya 6002398e6b [CI] fix the nightly builds pipelines 2020-11-23 20:18:20 +05:45
Phil Davis f42031a4f4 Automated changelog update [skip ci] 2020-11-23 13:57:59 +00:00
Artur Neumann d77db16062 allow single suite pipeline to be defined without a list 2020-11-23 18:43:13 +05:45
Phil Davis 6b07aeda85 Merge pull request #823 from butonic/update-reva-to-v1.3.1-0.20201109104617-f47d01b73dec
Update reva to v1.4.1-0.20201118150422-667197a6b674
2020-11-23 18:42:32 +05:45
Benedikt Kulmann 48169de239 Changelog 2020-11-23 13:18:24 +01:00
Benedikt Kulmann 5de15f4d12 Force web asset re-validation (on last modification date) 2020-11-23 13:16:49 +01:00
Benedikt Kulmann 005825bbc9 Set proper expires header 2020-11-23 13:06:05 +01:00
Benedikt Kulmann 1621a0d3ab Fix changelog 2020-11-23 12:56:18 +01:00
Benedikt Kulmann a9a2bbf7c6 Pin phoenix in drone to a32cdff6ba76ec3438bd348715aeed0ae593d6ed 2020-11-23 12:56:18 +01:00
Benedikt Kulmann ffa21a3165 Update reva to v1.4.1-0.20201123062044-b2c4af4e897d 2020-11-23 12:56:18 +01:00
David Christofas e5369a4470 update reva to v1.4.1-0.20201120104232-f5afafc04c3b 2020-11-23 12:56:18 +01:00
Jörn Friedrich Dreyer f211bda1b6 update to reva 1.4.1-0.20201118150422-667197a6b674
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-23 12:56:18 +01:00
Jörn Friedrich Dreyer a433db46c4 document different behaviour in tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-23 12:56:18 +01:00
Jörn Friedrich Dreyer 52ea234fa9 update test failures
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-23 12:56:18 +01:00
Jörn Friedrich Dreyer a17248f747 configure user share json file for drone
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-23 12:56:17 +01:00
Jörn Friedrich Dreyer 2ba57ac887 update reva to 20201112131316-1c425035c8a2
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-23 12:56:17 +01:00
Willy Kloucek b614ad1670 Merge pull request #852 from owncloud/remove_root_makefile
remove root Makefile and get rid of cd in drone ci
2020-11-23 11:06:06 +01:00
Willy Kloucek 0e1840a03c fix coverage upload 2020-11-23 09:14:35 +01:00
Willy Kloucek 29c3974ccd add hints about directory context 2020-11-23 09:14:32 +01:00
Willy Kloucek 90e2651e06 remove acceptance tests from storage 2020-11-23 09:12:45 +01:00
Willy Kloucek cbcf82136d remove root Makefile and get rid of cd in drone ci 2020-11-23 09:12:45 +01:00
Phil Davis bdb7433926 Merge pull request #926 from owncloud/resharingCommentDrone
delete comment about resharing in drone
2020-11-23 13:38:17 +05:45
Artur Neumann 49d5a3ee4f delete comment about webUIResharing suite 2020-11-23 13:33:49 +05:45
Phil Davis b58dc7cf33 Merge pull request #922 from owncloud/bumpPhoenixCommit20201123
[tests-only] bump phoenix commit id for tests and add new suites
2020-11-23 13:26:01 +05:45
Artur Neumann 55bd68d217 bump phoenix commit id for tests 2020-11-23 12:07:54 +05:45
Phil Davis d1543f76a2 Merge pull request #906 from owncloud/enable-nightly-test
[CI] enable nightly test runs
2020-11-23 11:15:49 +05:45
Michael Barz d5e889e9cf Merge pull request #920 from owncloud/fix-downloads-in-bridge
Add option to disable signing keys in the proxy
2020-11-21 20:08:51 +01:00
Benedikt Kulmann bc6227e8fd Fix test 2020-11-21 07:58:19 +01:00
Benedikt Kulmann 90ffb54251 Automated changelog update [skip ci] 2020-11-20 20:04:04 +00:00
Benedikt Kulmann b8fee3f37d Merge pull request #912 from owncloud/serve-index-html
Serve index html
2020-11-20 20:00:57 +01:00
Benedikt Kulmann edc252e1a0 Add option to disable signing keys in the proxy 2020-11-20 16:04:22 +01:00
David Christofas 206980238c Merge pull request #915 from owncloud/ocis-version-command
add version command to ocis
2020-11-20 15:17:34 +01:00
Benedikt Kulmann c362ff2736 Merge pull request #813 from owncloud/bugfix/811
Enable dynamic client registration
2020-11-20 14:54:07 +01:00
David Christofas a979b66129 add version command to ocis 2020-11-20 14:13:30 +01:00
Phil Davis f02d80d7aa Merge pull request #907 from owncloud/bump-core-commit-20201120
[tests-only] Bump core commit id for API tests
2020-11-20 18:31:59 +05:45
Lukas Hirt b345413b88 Automated changelog update [skip ci] 2020-11-20 12:23:23 +00:00
Lukas Hirt 4bf0faf00c Merge pull request #909 from owncloud/fix-accounts-scroll 2020-11-20 12:28:47 +01:00
Benedikt Kulmann 40449ac875 Regenerate assets 2020-11-20 11:13:55 +01:00
Thomas Müller 0859316571 Fixes #811 - enable dynamic client registration
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-20 10:54:45 +01:00
Benedikt Kulmann 54f9505787 Add changelog 2020-11-20 10:51:41 +01:00
Benedikt Kulmann d91008c3c2 Serve index.html in static middleware 2020-11-20 10:47:17 +01:00
Lukas Hirt 7f7b0e5421 Fix accounts list scroll 2020-11-20 10:03:55 +01:00
Phil Davis 0a8c19a30a Bump core commit for API tests to imclude cor PR 38131 2020-11-20 14:05:43 +05:45
Phil Davis 9ccba00fa8 Use phpunit9 in acceptance tests 2020-11-20 11:58:10 +05:45
Phil Davis 0c7a3fc08d Bump core commit to include core PR 38130 2020-11-20 11:56:22 +05:45
Dipak Acharya 8d5b52121d [CI] enable nightly test runs 2020-11-20 10:56:55 +05:45
Phil Davis e26578b038 Adjust behat composer.json for API tests to be like oC10 core 2020-11-20 10:03:04 +05:45
Phil Davis dfd6a86fe7 Bump core commit id for API tests 2020-11-20 10:01:29 +05:45
Felix Böhm 0ea04c02f9 Merge pull request #874 from owncloud/improve_docs
[docs-only] improve docs
2020-11-19 14:27:05 +01:00
Willy Kloucek e91d67e29a [docs-only] work on getting started and deployment examples docs 2020-11-19 14:22:59 +01:00
David Christofas 2dcaae3aaa Merge pull request #899 from owncloud/logout-fix-bridge
[docs-only] fix logout from OC10
2020-11-19 13:05:06 +01:00
David Christofas 5dbe8ef8d6 fix logout from OC10
add redirect uris for logout from oc10
2020-11-19 13:00:47 +01:00
Phil Davis b4b4574935 Merge pull request #889 from owncloud/add-access-log
Add access-log
2020-11-19 11:51:30 +05:45
Jörn Friedrich DreyerandPhil Davis 5196a2edcd Update changelog/unreleased/proxy-access-log.md
Co-authored-by: Phil Davis <phil@jankaritech.com>
2020-11-19 09:05:24 +05:45
Ilja Neumann c2aa4b02de Add access-log 2020-11-19 09:05:24 +05:45
David Christofas fe8586643f Automated changelog update [skip ci] 2020-11-18 17:27:12 +00:00
David Christofas f51890c788 Merge pull request #894 from owncloud/check-role-management-permissions
add permission check to role management
2020-11-18 17:34:00 +01:00
Benedikt Kulmann 731e2f79b4 Automated changelog update [skip ci] 2020-11-18 15:41:30 +00:00
David Christofas 2f69265a66 add permission check to role management 2020-11-18 16:30:51 +01:00
Benedikt Kulmann 49ac58815d Merge pull request #868 from owncloud/update-phoenix-0.25.0
Update phoenix 0.25.0
2020-11-18 15:48:44 +01:00
Lukas Hirt c267de48b7 Merge pull request #887 from owncloud/choose-account-page-branding
Theme welcome and choose your account pages
2020-11-18 15:18:41 +01:00
Phil Davis a643ad4acd Merge pull request #886 from owncloud/show-basic-auth-warning-on-startup-only
Show basic_auth warning only on startup
2020-11-18 19:25:33 +05:45
Lukas Hirt 5e4e89d26a Theme welcome and choose your account pages 2020-11-18 14:10:55 +01:00
Benedikt Kulmann fdd28993b0 Changelog 2020-11-18 13:54:39 +01:00
Benedikt Kulmann aa6f1c0ca5 Update phoenix assets to 0.25.0 2020-11-18 13:54:39 +01:00
Benedikt Kulmann 38e2f89218 Update phoenix commit id 2020-11-18 13:54:39 +01:00
Benedikt Kulmann bd6b335da0 Merge pull request #877 from owncloud/proxy-caching
Caching in Proxy
2020-11-18 13:13:25 +01:00
Ilja Neumann 79e7f85a57 Show basic_auth warning only on startup 2020-11-18 12:51:41 +01:00
Phil Davis 37b8f3a303 Merge pull request #853 from owncloud/enable-more-test
[tests-only] Add group tests on expected failure file
2020-11-18 17:01:42 +05:45
Benedikt Kulmann f3b10816c0 Changelog 2020-11-18 12:11:17 +01:00
Benedikt Kulmann 08e218aa3e Use expiration from access token if available 2020-11-18 12:08:23 +01:00
Dipak Acharya 358cf12403 [Tests-Only] Update issue tags for failing tests 2020-11-18 16:06:18 +05:45
Benedikt Kulmann a410d40166 Make userinfo cache configurable 2020-11-18 11:15:51 +01:00
Benedikt Kulmann f2c653aeec Remove default application_type values from identifier registration 2020-11-18 11:13:52 +01:00
Dipak Acharya 4bb64c81bb [Tests-Only] Enable group tests in CI 2020-11-18 14:41:28 +05:45
Michael Barz 94ceea6f6c Merge pull request #878 from owncloud/fix-yml-for-rc5
introduce OCIS_EOS_TAG and BRANCH into docker-compose-eos-test.yml
2020-11-18 09:20:46 +01:00
Benedikt Kulmann f1082ca033 Fix comments 2020-11-18 08:48:38 +01:00
Artur Neumann ca785ec57c Merge pull request #882 from owncloud/individual-it-patch-1
fix redis address variable name
2020-11-18 13:31:07 +05:45
Artur Neumann a233f5474c fix redis address variable name 2020-11-18 12:28:25 +05:45
Jürgen Weigert 1ac6cf5489 Usage comments added to docker-compose-eos-test.yml 2020-11-17 21:31:05 +01:00
Juergen Weigert fe2ca059e6 introduce OCIS_EOS_TAG and BRANCH to better pin a version build from source or a build with an image from docker hub. 2020-11-17 21:16:27 +01:00
Benedikt Kulmann b136966b51 Move claim retrieval (from endpoint or cache) into function 2020-11-17 17:25:48 +01:00
Benedikt Kulmann a5c09453b9 First implementation for userinfo cache without config 2020-11-17 17:10:14 +01:00
Benedikt Kulmann 1034548ecd Merge pull request #859 from owncloud/refactor-middlewares
reduce middleware complexity
2020-11-17 15:34:05 +01:00
Benedikt Kulmann e0f4c69ea6 Remove tests from expected failures 2020-11-17 14:30:39 +01:00
Benedikt Kulmann 3600d17eba Fix basic auth middleware for public links context 2020-11-17 12:39:56 +01:00
Benedikt Kulmann 1bcdf15bde Remove already implemented TODO 2020-11-17 12:23:40 +01:00
Benedikt Kulmann f721caac90 Fix logs messages 2020-11-17 12:19:59 +01:00
Florian Schade 9798b49a7e use ocis DefaultClient instead of micros DefaultClient 2020-11-17 11:32:12 +01:00
Florian Schade 982223c7be fix signedURL expiry validation 2020-11-17 11:32:12 +01:00
Florian Schade 8be5323276 linting and other cleanups 2020-11-17 11:32:12 +01:00
Florian Schade f8aa1a5e08 refactor middlewares and reduce technical complexity
restructure server command and remove cfg.OIDC.Issuer switch, oidc middleware detects now if it should used or not
fix #761
2020-11-17 11:32:12 +01:00
Willy Kloucek f2a1c06145 fix typos, force oCIS and add links 2020-11-17 11:05:14 +01:00
Benedikt Kulmann 2d5401d9db Merge pull request #869 from owncloud/fix-bridge-oc10-links
[docs-only] Fix link urls to oc10 in web config
2020-11-17 10:51:35 +01:00
Benedikt Kulmann 2c40aa8f5a Fix link urls to oc10 in web config 2020-11-17 08:22:02 +01:00
Willy Kloucek 20eae462b3 fix exit path for commands templates 2020-11-17 07:59:48 +01:00
Benedikt Kulmann d84d7bb4d1 Automated changelog update [skip ci] 2020-11-17 02:51:25 +00:00
Benedikt Kulmann 0e86bd858a Merge pull request #866 from owncloud/asset-caching
Asset caching
2020-11-17 02:52:06 +01:00
Michael Barz 1700f22f8b Automated changelog update [skip ci] 2020-11-16 23:39:16 +00:00
Michael Barz 104821d190 Merge pull request #861 from owncloud/fix_notification_on_failing_pipeline
fix status trigger for missing notification on failing pipelines
2020-11-16 23:39:59 +01:00
Benedikt Kulmann 4ca7382104 Changelog 2020-11-16 23:27:35 +01:00
Benedikt Kulmann 9c6dac8328 Add caching for static web assets 2020-11-16 23:22:56 +01:00
Benedikt Kulmann aaf9029a3e Rename "Cache" middleware to "NoCache" 2020-11-16 22:13:26 +01:00
Willy Kloucek 5c3b0ee697 fix status trigger for missing notification on failing pipelines 2020-11-16 15:02:20 +01:00
Lukas Hirt 31401cdbae Merge pull request #846 from owncloud/fix-dispatch-on-choose-account 2020-11-13 11:56:39 +01:00
Lukas Hirt 51b532804b Create static folder first 2020-11-13 10:48:35 +01:00
Lukas Hirt b9d416b93b Define dispatch 2020-11-13 10:43:55 +01:00
Michael Barz b09072be64 Merge pull request #851 from owncloud/cleanup_repository_and_docs
cleanup repository and docs
2020-11-13 09:18:32 +01:00
Willy Kloucek b47099349f Merge pull request #850 from owncloud/fix_fileupload_in_examples
fix file upload in examples
2020-11-13 09:12:09 +01:00
Willy Kloucek 00835efd44 remove accidentally added Makefile 2020-11-13 08:09:45 +01:00
Willy Kloucek f7bcbc8737 fix whitespaces 2020-11-13 08:09:45 +01:00
Willy Kloucek f8fc280bd3 enable makefiles for autogenerated doc 2020-11-13 08:09:45 +01:00
Willy Kloucek 026969bc25 remove auto generated config doc 2020-11-13 08:09:45 +01:00
Willy Kloucek f1fed2de81 add / edit templates for configuration docs 2020-11-13 08:09:45 +01:00
Willy Kloucek 48a519d0e4 add gitignore files for configuration.md 2020-11-13 08:09:45 +01:00
Willy Kloucek 8df6d2dc90 remove autogenerated files and add to gitignore 2020-11-13 08:09:45 +01:00
Willy Kloucek 32ca22a2ac fix STORAGE_DATAGATEWAY_PUBLIC_URL and STORAGE_DATAGATEWAY_PUBLIC_URL 2020-11-13 08:05:17 +01:00
Dipak Acharya b90a6b9a48 Merge pull request #839 from owncloud/add-tests-for-default-ACCOUNTS_HASH_DIFFICULTY
[tests-only] Add tests using the default ACCOUNTS_HASH_DIFFICULTY
2020-11-13 12:00:19 +05:45
Phil Davis d9b7372f79 Add apiBasic suite with default accounts_hash_difficulty 2020-11-13 09:11:14 +05:45
Phil Davis b10f0359fc Make ACCOUNTS_HASH_DIFFICULTY optional in .drone.star 2020-11-13 09:11:14 +05:45
Jörn Friedrich Dreyer 2381fab7be Merge pull request #826 from owncloud/eos-ocis-fix-config
remove usage of missing config folder
2020-11-12 23:05:03 +01:00
Alex Unger 63d98d0776 Merge pull request #845 from owncloud/run-tidy-globally 2020-11-12 20:39:13 +01:00
A.Unger cefbaa67d2 rerun 2020-11-12 19:42:35 +01:00
A.Unger c116e2a025 Merge branch 'master' into run-tidy-globally 2020-11-12 19:42:02 +01:00
Alex Unger d4f2442f75 Automated changelog update [skip ci] 2020-11-12 13:59:22 +00:00
Alex Unger f90d0d610e Merge pull request #840 from owncloud/ocis-1018
Tweak go-micro behavior
2020-11-12 13:59:12 +01:00
Benedikt Kulmann 5a49241f26 Merge pull request #843 from owncloud/fix-tracing-service-names
Fix tracing service names
2020-11-12 13:32:39 +01:00
A.Unger 641fd2703a make version command registry aware 2020-11-12 11:53:37 +01:00
A.Unger 411ad41f2b add changelog 2020-11-12 11:34:19 +01:00
A.Unger f2546c6191 run go mod tidy globally 2020-11-12 11:31:49 +01:00
A.Unger 092723bfb9 add changelog 2020-11-12 11:24:30 +01:00
Jörn Friedrich Dreyer 9fd9e57df7 Merge pull request #800 from owncloud/bridge-deployment-fixes
using special powers to merge as requested by @IljaN
2020-11-12 11:09:57 +01:00
A.Unger 634c06571c go mod tidy, recommended to run go mod vendor on your machine. Fix linter 2020-11-12 10:33:03 +01:00
A.Unger bdfea8ee2e refactor registry awareness logic 2020-11-12 09:50:59 +01:00
d311d415b1 Example on how to deploy ocis-web in front of ownCloud10
This deployment scenario shows how to use ocis as frontend for an existing ownCloud 10 production installation. It enables
ownCloud 10 users to log in and work with their files using the new ocis-web UI. While the scenario includes
an ownCloud 10 instance, it only exists to show the necessary configuration for your already existing ownCloud 10
installation.

The setup can be used for:
- Trying out the new UI on ownCloud 10. Users can switch dynamically
- It is a prequisite for future zero-downtime migrations.

Co-authored-by: Ilja Neumann <ineumann@owncloud.com>
Co-authored-by: Jan Müller <jan.mueller@catdev.io>
Co-authored-by: Phil Davis <phil@jankaritech.com>
2020-11-12 09:48:33 +01:00
A.Unger 89ccb8110d external service registration aware of different registries 2020-11-12 09:30:14 +01:00
Benedikt Kulmann 31dd0f0d6e Add to existing changelog 2020-11-11 21:09:50 +01:00
Benedikt Kulmann 4059b8e0a0 Fix service name tracing config 2020-11-11 21:08:46 +01:00
A.Unger 9104aaa3f7 Merge branch 'master' into ocis-1018 2020-11-11 20:17:40 +01:00
Benedikt Kulmann f19acadd1b Merge pull request #842 from owncloud/ocis-root-config
Ocis root config
2020-11-11 19:44:35 +01:00
Benedikt Kulmann 295b945123 Changelog 2020-11-11 17:14:54 +01:00
Benedikt Kulmann 15df700b27 Move default configs to root level 2020-11-11 17:12:14 +01:00
A.Unger c3ab3e7985 fix linter 2020-11-11 16:12:41 +01:00
A.Unger 951a441f65 cleanup old comments 2020-11-11 15:52:13 +01:00
A.Unger 83d9b0c97d Merge branch 'master' into ocis-1018 2020-11-11 15:38:46 +01:00
A.Unger 39deac6e74 parse address from MICRO_REGISTRY_ADDRESS 2020-11-11 15:36:53 +01:00
A.Unger d0e28b6345 rely on MICRO_REGISTRY to swap registries 2020-11-11 15:28:22 +01:00
A.Unger 4c1f14fc47 use etcd as registry on rpc client 2020-11-11 14:08:58 +01:00
Phil Davis dc61b11850 Merge pull request #798 from owncloud/remove_toImplementOnOcis_tags
[Tests-Only] Bump latest core commit after toImplementOnOcis tags is removed
2020-11-11 16:37:17 +05:45
A.Unger 76c633e650 wip 2020-11-11 11:50:53 +01:00
David Christofas c9c3f5c8fa Automated changelog update [skip ci] 2020-11-11 10:15:01 +00:00
Phil Davis 0bf60e07a5 Split core API tests into 10 pipelines 2020-11-11 15:45:03 +05:45
jasson99 62b51fb75e bump latest core commit to run tests previously tagged with toImplementOnOcis tags 2020-11-11 15:44:51 +05:45
David Christofas efe3702cea Merge pull request #638 from owncloud/accounts-change-hashing-algorithm
change hashing algorithm from SHA-512 to bcrypt
2020-11-11 10:14:36 +01:00
David Christofas 14063508bb make hash difficulty configurable 2020-11-11 10:26:33 +05:45
David Christofas 7115b6f661 change hashing algorithm from SHA-512 to bcrypt
Even though SHA-512 is currently considered a secure algorithm it is not the best choice for password hashing. As this change introduces a breaking change it is beast to introduce it as early as possible to prevent us from having to implement a migration strategy

Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-11-11 10:26:33 +05:45
Phil Davis ec8a45a508 Merge pull request #836 from owncloud/bump-ui-test-commit-id-20201111
[tests-only] Bump phoenix commit id used for UI tests
2020-11-11 10:24:57 +05:45
Phil Davis f7e6974d13 Bump phoenix commit id used for UI tests 2020-11-11 09:44:15 +05:45
Phil Davis 6807676dc9 Automated changelog update [skip ci] 2020-11-11 03:16:09 +00:00
Phil Davis 7f1eef36d8 Merge pull request #808 from owncloud/fix-672
Use copy of config instead of modifying the original configuration
2020-11-11 08:19:39 +05:45
Alex Unger da25289ccc Update fix-672.md 2020-11-10 19:20:20 +01:00
Benedikt Kulmann 2ddc10286d Automated changelog update [skip ci] 2020-11-10 15:30:25 +00:00
A.Unger d6e25798f7 Merge branch 'master' into fix-672 2020-11-10 15:49:24 +01:00
Benedikt Kulmann ad3ecbde46 Merge pull request #835 from butonic/fix-820
fix 820 - race condition
2020-11-10 15:48:27 +01:00
Benedikt Kulmann f16c6ea38f Merge pull request #834 from owncloud/update-glauth
Update glauth
2020-11-10 15:47:34 +01:00
Jörn Friedrich Dreyer 0c6e8881c3 fix 820 - race condition
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-10 15:07:27 +01:00
Benedikt Kulmann 945f2ee5a9 Update glauth 2020-11-10 13:52:25 +01:00
Dipak Acharya 6a49e1f1af Merge pull request #822 from owncloud/bump-core-commit-id-20201109
[tests-only] Bump core commit for tests 2020-11-09
2020-11-10 14:53:18 +05:45
Phil Davis a26914e5aa Bump core commit for tests 2020-11-10 2020-11-10 13:14:30 +05:45
Felix Böhm abbdf80457 remove usage of missing config folder
fix #812
2020-11-09 15:53:16 +01:00
Benedikt Kulmann a627a405bd Automated changelog update [skip ci] 2020-11-07 07:48:58 +00:00
Benedikt Kulmann 869454fe39 Merge pull request #817 from owncloud/update-phoenix
update phoenix to version 0.24.0
2020-11-06 23:11:03 +01:00
Jörn Friedrich Dreyer c0268372d1 Automated changelog update [skip ci] 2020-11-06 22:04:47 +00:00
Jörn Friedrich Dreyer 66fd583a83 Merge pull request #816 from butonic/return-username-in-ocs-api
hide account.id in ocs api, use username
2020-11-06 21:53:35 +01:00
David Christofas 76b94bc885 update phoenix to version 0.24.0 2020-11-06 18:48:08 +01:00
Jörn Friedrich Dreyer 145671512a hide account.id in ocs api, use username
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-06 17:33:43 +01:00
Michael Barz 17198620ac [docs-only] Fix broken link 2020-11-06 13:56:37 +01:00
Phil Davis a45b5b7bd4 Merge pull request #802 from owncloud/update-core-commit-7a32acb
[Tests-Only] update core commitid for test runner
2020-11-06 18:32:44 +05:45
Dipak Acharya 5d9809e812 [Tests-Only] update core commitid for test runner 2020-11-06 17:49:06 +05:45
A.Unger ecd2b8474d ditto for seettings & webdav 2020-11-06 08:25:31 +05:45
A.Unger dbbe58e440 add changelog file 2020-11-06 08:25:31 +05:45
A.Unger bf2fa91690 do not override config, use shallow copy instead 2020-11-06 08:25:31 +05:45
Jörn Friedrich Dreyer d3820b8c8d Automated changelog update [skip ci] 2020-11-05 23:08:21 +00:00
Jörn Friedrich Dreyer 47a877c013 Merge pull request #809 from butonic/fix-konnectd
update assets with new default config
2020-11-05 23:27:20 +01:00
Jörn Friedrich Dreyer 3d1fa00948 add TODO to makefile
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 21:54:47 +01:00
Jörn Friedrich Dreyer be10ccfb49 add changelog
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 17:22:54 +01:00
Jörn Friedrich Dreyer 908fd41797 update Makefile with generate steps for yarn
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 17:20:31 +01:00
Jörn Friedrich Dreyer 03dc337bc6 include updated web assets
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 17:14:09 +01:00
Jörn Friedrich Dreyer 13e6d21b81 update assets with new default config
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 17:05:33 +01:00
Jörn Friedrich Dreyer c124102df2 Merge pull request #627 from butonic/add-basic-auth-option
add enable basic auth option and check permissions
2020-11-05 16:36:16 +01:00
Alex Unger 681885d06e Merge pull request #790 from butonic/add-scripts-folder 2020-11-05 16:03:16 +01:00
Alex Unger ca75ce7cfb Automated changelog update [skip ci] 2020-11-05 13:55:13 +00:00
Alex Unger 2d1d2d0c47 Merge pull request #675 from owncloud/config-housekeeping-proxy 2020-11-05 14:13:28 +01:00
Alex Unger 6b05e9296c Merge pull request #806 from owncloud/normalize-changelog-extensions
Normalize Changelog File Extensions
2020-11-05 14:10:32 +01:00
A.Unger 246969e376 normalize changelog extensions 2020-11-05 13:15:47 +01:00
Jörn Friedrich Dreyer fdfd4040b7 skip accounts web ui tests, as users can list themselves
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer cce074c1c1 also expect tests to fail on owncloud storage
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 470743cbd2 document deviation from core in ocis specific test
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer e184f330ff update expected failures
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 54c78adcb3 pass on basic auth for public links
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer d2719b176a groups can be managed using ocs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer e2b5d64618 fix recursive json marshaling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 2dcb38acf7 normal users cannot list all groups at the ocs endpoint
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 76c63ef696 close request bodies
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer fbe3470ef3 /cloud/groups now returns a proper result body
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 46a11d42ca update proxy rules
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 99ecc4ea2a fix staticcheck
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer f1d970145b implement add group
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer aac932b6e0 fix tons of ocs tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer fc9cdf3bc8 fix nil reference
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 8157ac241e put back the role hole
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 481743a6ab glauth: send manage account role bundleid
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Benedikt Kulmann 117959e4ac update go.mod/sum from running ocis 2020-11-05 13:06:05 +01:00
Benedikt Kulmann b622e18f9a Fix role service mock 2020-11-05 13:06:05 +01:00
Benedikt Kulmann c954bcb49c Apply admin role to reva and konnectd users 2020-11-05 13:06:05 +01:00
Benedikt Kulmann 59be0d02c6 Use roleIDs instead of permissionIDs in tests 2020-11-05 13:06:05 +01:00
Benedikt Kulmann 3e0eb3edc2 Fix staticcheck 2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 7c7cefef9e mock roles and settings, mint token
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 494f9aca88 enforce permissions
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Phil Davis bb0878a3eb Remove passing scenarios from expected-failures 2020-11-05 13:06:05 +01:00
Phil Davis 17f93b6b1c Use current expected-failures from master 2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer b2072c83c9 update expected tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer f4116b2318 ocs v2 appframework quirks
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer c3d8a5bf51 ocs: allow users to look up other users
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer abce279355 allow self updating
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 1e02105101 ocs: enable/disable users
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich DreyerandPhil Davis b16f0d4d2c fix typo
Co-authored-by: Phil Davis <phil@jankaritech.com>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer cac8f2ef04 distinguish badrequest and conflict / already exists errors
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 6382cdae3a provide issuer to account_uuid middleware to mint complete token
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 538e2df026 partly fix unit tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 9adbc3b5c7 fix tests, one more account present
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 0dc6c8c3c0 reflect unauthenticated deviation in tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 6f46e1bccb use the account.id as ocis userid, tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 8af7d0979e adjust tests, add stubs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 8bedd0cf37 adjust test
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer b288fae10a update tests, forward failed basic auth to render correct error body
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 8e39d8b873 actually check permissions to fix tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Benedikt Kulmann 0574fbd738 Introduce admin:admin. webUI tests are hardcoded to that. 2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 4577f62b89 use correct password
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer ad531839a9 rebase and tidy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer fbfa05e9b6 always return 401 when auth fails
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer 2465b757f8 use moss as the admin account when running tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer cbbf31a7ce end requesrt when basic auth fails
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
Jörn Friedrich Dreyer d75d626695 add enable basic auth option
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-05 13:06:05 +01:00
A.Unger d9962eec76 add changelog 2020-11-05 13:03:22 +01:00
A.Unger fa7f137c04 parse ocis root config down to subcommands 2020-11-05 11:29:13 +01:00
A.Unger 5f1373b9ed Merge branch 'master' into config-housekeeping-proxy 2020-11-05 10:43:14 +01:00
Phil Davis 6598dfcaa3 Merge pull request #803 from owncloud/refactor-ocis-OCBugApi
[Tests-Only] Removed scenarios that were demonstrating Oc10 issue and already exists in core
2020-11-05 13:39:15 +05:45
swoichha 19d0c1e94f removed scenario from apiShareUpdate-updateShare.feature 2020-11-05 12:41:11 +05:45
A.Unger 90232153a0 update webdav dependencies 2020-11-04 16:01:45 +01:00
A.Unger 157e460945 normalize log messages to use lowercase 2020-11-04 16:00:09 +01:00
A.Unger a36c9cc3e6 adjust webdav 2020-11-04 15:42:12 +01:00
A.Unger 78d5f21587 adjust thumbnails 2020-11-04 15:38:36 +01:00
A.Unger 04cccd7651 adjust storage 2020-11-04 15:37:49 +01:00
A.Unger dae374b31a adjust settings 2020-11-04 15:35:33 +01:00
A.Unger cfa913e936 adjust ocs 2020-11-04 15:34:44 +01:00
A.Unger 1c6ff61c53 adjust phoenix 2020-11-04 15:33:14 +01:00
A.Unger 8bef86ca31 adjust konnectd 2020-11-04 15:24:46 +01:00
A.Unger 412a02b13f adjust glauth 2020-11-04 15:23:11 +01:00
A.Unger 0c39d74a30 Merge branch 'master' into config-housekeeping-proxy 2020-11-04 15:11:46 +01:00
Phil Davis 961b45669e Merge pull request #799 from owncloud/bump-core-commit-20201104
[tests-only] Bump core commit id to include test code of PR 38077
2020-11-04 17:53:12 +05:45
Benedikt Kulmann b13d665f45 Merge pull request #795 from owncloud/IljaN-patch-1
Add letsencrypt as named volume
2020-11-04 12:46:43 +01:00
Benedikt Kulmann 8deb5a6555 Merge pull request #793 from owncloud/improve_deployment_scenarios
Improve deployment scenarios
2020-11-04 12:46:03 +01:00
Phil Davis 28c6c480c8 Bump core commit id to include test code of PR 38077 2020-11-04 17:06:57 +05:45
Phil Davis 0ec1f1ce24 Merge pull request #781 from SamuAlfageme/fix_index_table
Fix md table on doc's index: use '|' as column delimiter
2020-11-04 14:19:05 +05:45
Alex Unger 510bfa3fc3 Automated changelog update [skip ci] 2020-11-03 20:41:54 +00:00
Alex Unger 10a55d78ee Merge pull request #794 from owncloud/ocis-715 2020-11-03 21:00:41 +01:00
A.Unger 35161f7833 Merge branch 'master' into ocis-715 2020-11-03 20:15:26 +01:00
Ilja Neumann 9499c8eb2d Add letsencrypt as named volume 2020-11-03 16:16:17 +01:00
A.Unger a4a69b714b add a changelog 2020-11-03 16:13:39 +01:00
A.Unger f17b153557 update test reflect hardcoded values 2020-11-03 16:10:05 +01:00
A.Unger 81b5615b6b the address of a variable cannot be nil... 2020-11-03 15:57:54 +01:00
Jan Müller 62ca4cd9d2 Fix webentrypoint for idpnode 2020-11-03 16:38:49 +02:00
A.Unger 430f4852e2 add replace on github.com/owncloud/ocis/storage 2020-11-03 15:36:30 +01:00
A.Unger 1168bdbb5d add recover branch 2020-11-03 15:33:41 +01:00
A.Unger 11dee33e3c update github.com/mennanov/fieldmask-utils@v0.3.3
slim down cofig
2020-11-03 15:33:27 +01:00
Jan Müller 94a9776828 Exclude deployments from codacy scan 2020-11-03 16:20:40 +02:00
Jan Müller 7e4e4b0514 Add http to https redirect to external idp setup 2020-11-03 15:57:15 +02:00
Jan Müller 224739cb5d Add redirect http to https to traefik 2020-11-03 15:51:56 +02:00
Jan Müller 155e4b45e9 Update env variables for ocis 2020-11-03 15:18:54 +02:00
Jan Müller 79dfa9a10d Add web client config for ocis 2020-11-03 15:16:28 +02:00
Jan Müller 7c2bcdf449 Fix allow cors redirectx 2020-11-03 15:15:54 +02:00
Jan Müller ea8a2dec56 Updates proxy.json 2020-11-03 15:11:16 +02:00
Jan Müller c307e762fe Fix oidc login for oc10, adds frontend switching tool 2020-11-03 15:09:38 +02:00
Jan Müller ff72a3dcf9 Updates oc10 from 10.5 to 10.6-beta1 2020-11-03 15:06:11 +02:00
Jan Müller a3b0336b16 Adds traefik http to https redirecting 2020-11-03 15:04:44 +02:00
Phil Davis 1478724a6d Merge pull request #792 from owncloud/bump-core-commit-id-20201103
[tests-only] Bump core commit for API tests
2020-11-03 16:45:32 +05:45
Phil Davis 7aaa76e847 Adjust expected-failures for core PR 38071 2020-11-03 16:01:17 +05:45
Phil Davis 681d0bc209 Bump core commit id to include core PR 38071 2020-11-03 15:32:09 +05:45
Phil Davis edcb44ba15 Adjust line numbers in expected-failures 2020-11-03 15:23:55 +05:45
Phil Davis 4eedb928e9 Bump core commit for API tests 2020-11-03 13:53:51 +05:45
Lukas Hirt 9791a8d28f Merge pull request #791 from owncloud/regenerate-assets
Regenerate assets
2020-11-02 21:00:50 +01:00
Simon Eisenmann e4279e910b Automated changelog update [skip ci] 2020-11-02 15:22:48 +00:00
Ilja Neumann 2599640f35 regenerate assets 2020-11-02 16:13:17 +01:00
Jörn Friedrich Dreyer e4a6aeb453 comment unused DIR
only needed for the ocis cli command
2020-11-02 15:40:37 +01:00
Simon Eisenmann f063d2f9a3 Fix processing for prompt select_account with consent
Multiple prompt values are allowed and this change fixes the check for
select_account if it was used together with other prompt values. Where
select_account previously was ignored, it is now processed as required,
fixing the use case when a RP wants to trigger select_account first
while at the same time wants also to request interactive consent.
2020-11-02 15:38:59 +01:00
Jörn Friedrich Dreyer a54076f61b add zombie script
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-11-02 15:12:59 +01:00
Jörn Friedrich Dreyer 3cab05aa88 Merge pull request #767 from owncloud/ocis-697
Support OData for search queries on the Indexer
2020-11-02 14:30:24 +01:00
A.Unger d378f072c2 Merge branch 'master' into ocis-697 2020-11-02 12:24:06 +01:00
Phil Davis e13b2efa42 Merge pull request #787 from owncloud/php-dependencies-for-composer-2.0
[tests-only] Adjust PHP dependencies for composer 2.0
2020-11-02 17:04:36 +05:45
Phil Davis c7071e72da Adjust PHP dependencies for composer 2.0 2020-11-02 16:19:37 +05:45
Phil Davis 37c711380c Merge pull request #784 from owncloud/expectedFailuresreShareAsPublicLinkToShares
[tests-only] adjust expected failures list after owncloud/core/pull/38056
2020-10-31 10:02:31 +05:45
Phil Davis afcc0fdfea Adjust apiWebdavPreviews/previews.feature line numbers 2020-10-31 08:53:46 +05:45
Artur Neumann 07cc1c7e70 bump core commit id 2020-10-31 08:47:15 +05:45
Artur Neumann aee21e096f adjust expected failures list after owncloud/core/pull/38056 2020-10-31 08:47:15 +05:45
Michael Barz 9b1f35f984 Automated changelog update [skip ci] 2020-10-30 16:26:22 +00:00
Michael Barz dac5410fcc Merge pull request #779 from butonic/introduce-docker-compose-eos-test
introduce docker-compose eos setup
2020-10-30 16:44:20 +01:00
Michael Barz 657ba76e78 Merge pull request #786 from owncloud/update-glauth
update glauth to 4f029234b2308
2020-10-30 16:41:18 +01:00
Benedikt Kulmann bb65534cd6 Automated changelog update [skip ci] 2020-10-30 15:07:52 +00:00
Benedikt Kulmann ba79843497 Merge pull request #785 from owncloud/update-phoenix-0.23.0
Update phoenix to 0.23.0
2020-10-30 15:26:07 +01:00
Michael Barz 10e2a289ab update glauth to 4f029234b2308 2020-10-30 15:24:53 +01:00
Michael Barz a20b882965 update glauth to 4f029234b2308 2020-10-30 14:33:57 +01:00
Benedikt Kulmann 13c6416c13 Update phoenix to 0.23.0 2020-10-30 14:16:18 +01:00
Michael Barz 72491b4dcc Merge pull request #770 from owncloud/document-version-cmd
[Docs-only] add version command to docs
2020-10-30 09:47:27 +01:00
Alex Unger 07be4c92d5 Merge branch 'master' into ocis-697 2020-10-29 17:50:29 +01:00
Samuel Alfageme d01b0170ed Fix md table on doc's index: use '|' as column delimiter 2020-10-29 17:03:08 +01:00
Alex Unger 6761f70959 try non unique? 2020-10-29 16:09:20 +01:00
Alex Unger 636caea217 add index on account.Id due to a rogue query 2020-10-29 15:24:26 +01:00
Phil Davis d34b5dcf92 Merge pull request #778 from owncloud/expectedFailuresTestsFavorites
[tests-only] expected failures of favourites tests
2020-10-29 17:27:41 +05:45
Artur Neumann 698328b140 expected failures of favorites tests 2020-10-29 16:24:23 +05:45
Jörn Friedrich Dreyer 6db6b22aaf introduce docker-compose eos setup
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-10-29 11:23:30 +01:00
Artur Neumann 6b75bb1f2d Merge pull request #753 from owncloud/bump-core-commit-20201026
[tests-only] Bump core commit for tests
2020-10-29 13:47:49 +05:45
Phil Davis b0e009d1b3 Bump core commit again as at 20201029 2020-10-29 13:00:08 +05:45
Artur Neumann afd9bc2281 Bump core commit for tests 20201028 2020-10-29 13:00:08 +05:45
Phil Davis 819681e76d Bump core commit for tests 2020-10-29 13:00:08 +05:45
David Christofas 788b18f3a7 [Docs-only] add version command to docs
Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-10-28 17:43:46 +01:00
A.Unger c72e212c91 first implementation of our own query tree and tree resolution
added godata dep

use correct godata dependency, enhance tests

refactor around indexer search tree

tests reflecting currently used queries

fix static checker

fix linter

replace old regexp with a calll to indexer.Query

fix linter

remove offenses
2020-10-28 16:02:44 +01:00
Alex Unger 19b9cc412f Merge branch 'master' into config-housekeeping-proxy 2020-10-09 12:29:21 +02:00
A.Unger cd94018460 Merge branch 'master' into config-housekeeping-proxy 2020-10-09 11:45:24 +02:00
A.Unger 8fe3ac9b33 wip correctly parse config 2020-10-09 11:24:04 +02:00
429 changed files with 17938 additions and 8024 deletions

No files matched your search

+1
View File
@@ -13,5 +13,6 @@ exclude_paths:
- 'accounts/rollup.config.js'
- 'ocis/docker/eos-ocis/Dockerfile'
- 'ocis/docker/eos-ocis-dev/Dockerfile'
- 'deployments/**'
...
+216 -164
View File
@@ -15,96 +15,113 @@ config = {
},
'apiTests': {
'coreBranch': 'master',
'coreCommit': '6806e327048fa107678536f9eded5166eb781ba3',
'numberOfParts': 6
'coreCommit': '8ff1bda2f3c09500b92775c666c1b2236876edd3',
'numberOfParts': 10
},
'uiTests': {
'phoenixBranch': 'master',
'phoenixCommit': 'f427a438e12a23e7a32f7864763787e756287461',
'suites': {
'phoenixWebUI1': [
'webUICreateFilesFolders',
'webUIDeleteFilesFolders',
'webUIFavorites',
],
'phoenixWebUI2' : [
'webUIFiles',
'webUILogin',
'webUINotifications',
'webUIPrivateLinks',
],
'phoenixWebUI3': [
'webUIAccount',
'webUIRenameFiles',
'webUIRenameFolders',
],
'phoenixWebUI4': [
'webUITrashbin',
'webUIUpload',
'webUIRestrictSharing',
'phoenixCommit': 'fd281418cc30af9c9795e627692caf45c0d3bf30',
'suites': {
'webUIBasic': [
'webUILogin',
'webUINotifications',
'webUIPrivateLinks',
'webUIPreview',
'webUIAccount',
],
'phoenixWebUI5': [
'webUISharingAutocompletion',
'webUISharingInternalGroups',
'webUISharingInternalUsers',
'webUISharingPermissionsUsers',
'webUISharingFilePermissionsGroups',
'webUISharingFolderPermissionsGroups',
'webUISharingFolderAdvancedPermissionsGroups',
'webUICreateFilesFolders': 'webUICreateFilesFolders',
'webUIDeleteFilesFolders': 'webUIDeleteFilesFolders',
'webUIRename': [
'webUIRenameFiles',
'webUIRenameFolders',
],
'phoenixWebUI6': [
'webUIResharing',
'webUISharingPublic',
'webUISharingPublicDifferentRoles',
'webUISharingAcceptShares',
'webUISharingNotifications',
],
'phoenixWebUI7': [
'webUISharingFilePermissionMultipleUsers',
],
'phoenixWebUI8': [
'webUISharingFolderPermissionMultipleUsers',
'webUISharingFolderAdvancedPermissionMultipleUsers',
],
}
'webUISharingBasic': [
'webUISharingAcceptShares',
'webUISharingAcceptSharesToRoot',
],
'webUIRestrictSharing': 'webUIRestrictSharing',
'webUISharingNotifications': [
'webUISharingNotifications',
'webUISharingNotificationsToRoot',
],
'webUIFavorites': 'webUIFavorites',
'webUIFiles': 'webUIFiles',
'webUISharingAutocompletion': 'webUISharingAutocompletion',
'webUISharingInternalGroups': [
'webUISharingInternalGroups',
'webUISharingInternalGroupsEdgeCases',
'webUISharingInternalGroupsSharingIndicator',
'webUISharingInternalGroupsToRoot',
'webUISharingInternalGroupsToRootEdgeCases',
'webUISharingInternalGroupsToRootSharingIndicator',
],
'webUISharingInternalUsers': [
'webUISharingInternalUsers',
'webUISharingInternalUsersBlacklisted',
'webUISharingInternalUsersSharingIndicator',
'webUISharingInternalUsersToRoot',
'webUISharingInternalUsersToRootBlacklisted',
'webUISharingInternalUsersToRootSharingIndicator',
],
'webUISharingInternalUsersExpire': 'webUISharingInternalUsersExpire',
'webUISharingInternalUsersExpireToRoot': 'webUISharingInternalUsersExpireToRoot',
'webUISharingPermissionsUsers': 'webUISharingPermissionsUsers',
'webUISharingFilePermissionsGroups': 'webUISharingFilePermissionsGroups',
'webUISharingFolderPermissionsGroups': 'webUISharingFolderPermissionsGroups',
'webUISharingFolderAdvancedPermissionsGroups': 'webUISharingFolderAdvPermissionsGrp',
'webUISharingPermissionToRoot': 'webUISharingPermissionToRoot',
'webUIResharing': 'webUIResharing',
'webUIResharingToRoot': 'webUIResharingToRoot',
'webUISharingPublic': 'webUISharingPublic',
'webUISharingPublicExpire': 'webUISharingPublicExpire',
'webUISharingPublicDifferentRoles': 'webUISharingPublicDifferentRoles',
'webUITrashbin': 'webUITrashbin',
'webUITrashbinFilesFolders': 'webUITrashbinFilesFolders',
'webUITrashbinRestore': 'webUITrashbinRestore',
'webUIUpload': 'webUIUpload',
'webUISharingFilePermissionMultipleUsers': 'webUISharingFilePermissionMultipleUsers',
'webUISharingFolderPermissionMultipleUsers': 'webUISharingFolderPermissionMultipleUsers',
'webUISharingFolderAdvancedPermissionMultipleUsers': [
'webUISharingFolderAdvancedPermissionMU',
],
'webUIMoveFilesFolders': 'webUIMoveFilesFolders',
},
},
'rocketchat': {
'channel': 'ocis-internal',
'from_secret': 'private_rocketchat',
},
}
def getTestSuiteNames():
keys = config['modules'].keys()
def getPipelineNames(pipelines=[]):
"""getPipelineNames returns names of pipelines as a string array
Args:
pipelines: array of drone pipelines
Returns:
names of the given pipelines as string array
"""
names = []
for key in keys:
names.append('linting&unitTests-%s' % (key))
for pipeline in pipelines:
names.append(pipeline['name'])
return names
def getUITestSuiteNames():
return config['uiTests']['suites'].keys()
def getUITestSuites():
return config['uiTests']['suites']
def getCoreApiTestPipelineNames():
names = []
for runPart in range(1, config['apiTests']['numberOfParts'] + 1):
names.append('Core-API-Tests-owncloud-storage-%s' % runPart)
names.append('Core-API-Tests-ocis-storage-%s' % runPart)
return names
def getDependsOnAllTestPipelines(ctx):
dependencies = getTestSuiteNames() + [
'upload-coverage',
'localApiTests-owncloud-storage',
'localApiTests-ocis-storage',
] + getCoreApiTestPipelineNames() + getUITestSuiteNames() + ['accountsUITests']
return dependencies
def main(ctx):
"""main is the entrypoint for drone
Args:
ctx: drone passes a context with information which the pipeline can be adapted to
Returns:
none
"""
pipelines = []
before = testPipelines(ctx)
before = \
testOcisModules(ctx) + \
testPipelines(ctx)
stages = [
docker(ctx, 'amd64'),
@@ -124,32 +141,54 @@ def main(ctx):
badges(ctx),
docs(ctx),
updateDeployment(ctx),
notify(ctx),
]
if '[docs-only]' in (ctx.build.title + ctx.build.message):
doc_pipelines = docs(ctx)
doc_pipelines['depends_on'] = []
if ctx.build.event == "cron":
notify_pipeline = notify(ctx)
notify_pipeline['depends_on'] = \
getPipelineNames(before)
notify_pipelines = notify(ctx)
notify_pipelines['depends_on'] = ['docs']
pipelines = before + [ notify_pipeline ]
elif '[docs-only]' in (ctx.build.title + ctx.build.message):
docs_pipeline = docs(ctx)
docs_pipeline['depends_on'] = []
docs_pipelines = [ docs_pipeline ]
notify_pipeline = notify(ctx)
notify_pipeline['depends_on'] = \
getPipelineNames(docs_pipelines)
pipelines = docs_pipelines + [ notify_pipeline ]
pipelines = [ doc_pipelines, notify_pipelines ]
else:
pipelines = before + stages + after
notify_pipeline = notify(ctx)
notify_pipeline['depends_on'] = \
getPipelineNames(pipelines)
pipelines = pipelines + [ notify_pipeline ]
return pipelines
def testPipelines(ctx):
def testOcisModules(ctx):
pipelines = []
for module in config['modules']:
pipelines.append(testing(ctx, module))
pipelines.append(testOcisModule(ctx, module))
pipelines += [
uploadCoverage(ctx),
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'owncloud'),
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'ocis')
coverage_upload = uploadCoverage(ctx)
coverage_upload['depends_on'] = getPipelineNames(pipelines)
return pipelines + [coverage_upload]
def testPipelines(ctx):
pipelines = [
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'owncloud', 'apiOcisSpecific'),
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'ocis', 'apiOcisSpecific'),
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'owncloud', 'apiBasic', 'default'),
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'ocis', 'apiBasic', 'default')
]
for runPart in range(1, config['apiTests']['numberOfParts'] + 1):
@@ -160,15 +199,14 @@ def testPipelines(ctx):
pipelines.append(accountsUITests(ctx, config['uiTests']['phoenixBranch'], config['uiTests']['phoenixCommit']))
return pipelines
def testing(ctx, module):
def testOcisModule(ctx, module):
steps = generate(module) + [
{
'name': 'vet',
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'cd %s' % (module),
'make vet',
'make -C %s vet' % (module),
],
'volumes': [
{
@@ -182,8 +220,7 @@ def testing(ctx, module):
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'cd %s' % (module),
'make staticcheck',
'make -C %s staticcheck' % (module),
],
'volumes': [
{
@@ -197,8 +234,7 @@ def testing(ctx, module):
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'cd %s' % (module),
'make lint',
'make -C %s lint' % (module),
],
'volumes': [
{
@@ -212,9 +248,8 @@ def testing(ctx, module):
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'cd %s' % (module),
'make test',
'mv coverage.out %s_coverage.out' % (module),
'make -C %s test' % (module),
'mv %s/coverage.out %s_coverage.out' % (module, module),
],
'volumes': [
{
@@ -231,10 +266,9 @@ def testing(ctx, module):
'from_secret': 'cache_s3_endpoint'
},
'bucket': 'cache',
'source': '%s/%s_coverage.out' % (module, module),
'source': '%s_coverage.out' % (module),
'target': '%s/%s/coverage' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
'path_style': True,
'strip_prefix': module,
'access_key': {
'from_secret': 'cache_s3_access_key'
},
@@ -265,6 +299,12 @@ def testing(ctx, module):
'refs/pull/**',
],
},
'volumes': [
{
'name': 'gopath',
'temp': {},
},
],
}
def uploadCoverage(ctx):
@@ -333,14 +373,13 @@ def uploadCoverage(ctx):
'refs/pull/**',
],
},
'depends_on': getTestSuiteNames(),
}
def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'owncloud'):
def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'owncloud', suite = 'apiOcisSpecific', accounts_hash_difficulty = 4):
return {
'kind': 'pipeline',
'type': 'docker',
'name': 'localApiTests-%s-storage' % (storage),
'name': 'localApiTests-%s-%s' % (suite, storage),
'platform': {
'os': 'linux',
'arch': 'amd64',
@@ -348,11 +387,11 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
'steps':
generate('ocis') +
build() +
ocisServer(storage) +
ocisServer(storage, accounts_hash_difficulty) +
cloneCoreRepos(coreBranch, coreCommit) + [
{
'name': 'localApiTests-%s-storage' % (storage),
'image': 'owncloudci/php:7.2',
'name': 'localApiTests-%s-%s' % (suite, storage),
'image': 'owncloudci/php:7.4',
'pull': 'always',
'environment' : {
'TEST_SERVER_URL': 'https://ocis-server:9200',
@@ -361,11 +400,11 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
'SKELETON_DIR': '/srv/app/tmp/testing/data/apiSkeleton',
'OCIS_SKELETON_STRATEGY': '%s' % ('copy' if storage == 'owncloud' else 'upload'),
'TEST_OCIS':'true',
'BEHAT_SUITE': suite,
'BEHAT_FILTER_TAGS': '~@skipOnOcis-%s-Storage' % ('OC' if storage == 'owncloud' else 'OCIS'),
'PATH_TO_CORE': '/srv/app/testrunner'
'PATH_TO_CORE': '/srv/app/testrunner',
},
'commands': [
'cd ocis',
'make test-acceptance-api',
],
'volumes': [{
@@ -391,7 +430,7 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
},
}
def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, number_of_parts = 1, storage = 'owncloud'):
def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, number_of_parts = 1, storage = 'owncloud', accounts_hash_difficulty = 4):
return {
'kind': 'pipeline',
'type': 'docker',
@@ -403,11 +442,11 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
'steps':
generate('ocis') +
build() +
ocisServer(storage) +
ocisServer(storage, accounts_hash_difficulty) +
cloneCoreRepos(coreBranch, coreCommit) + [
{
'name': 'oC10ApiTests-%s-storage-%s' % (storage, part_number),
'image': 'owncloudci/php:7.2',
'image': 'owncloudci/php:7.4',
'pull': 'always',
'environment' : {
'TEST_SERVER_URL': 'https://ocis-server:9200',
@@ -419,11 +458,10 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
'BEHAT_FILTER_TAGS': '~@notToImplementOnOCIS&&~@toImplementOnOCIS&&~comments-app-required&&~@federation-app-required&&~@notifications-app-required&&~systemtags-app-required&&~@local_storage&&~@skipOnOcis-%s-Storage' % ('OC' if storage == 'owncloud' else 'OCIS'),
'DIVIDE_INTO_NUM_PARTS': number_of_parts,
'RUN_PART': part_number,
'EXPECTED_FAILURES_FILE': '/drone/src/ocis/tests/acceptance/expected-failures-on-%s-storage.txt' % (storage.upper())
'EXPECTED_FAILURES_FILE': '/drone/src/tests/acceptance/expected-failures-on-%s-storage.txt' % (storage.upper()),
},
'commands': [
'cd /srv/app/testrunner',
'make test-acceptance-api',
'make -C /srv/app/testrunner test-acceptance-api',
],
'volumes': [{
'name': 'gopath',
@@ -449,14 +487,18 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
}
def uiTests(ctx, phoenixBranch, phoenixCommit):
suiteNames = getUITestSuiteNames()
return [uiTestPipeline(suiteName, phoenixBranch, phoenixCommit) for suiteName in suiteNames]
suiteNames = config['uiTests']['suites'].keys()
return [uiTestPipeline(ctx, suiteName, phoenixBranch, phoenixCommit) for suiteName in suiteNames]
def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', storage = 'owncloud'):
suites = getUITestSuites()
def uiTestPipeline(ctx, suiteName, phoenixBranch = 'master', phoenixCommit = '', storage = 'owncloud', accounts_hash_difficulty = 4):
suites = config['uiTests']['suites']
paths = ""
for path in suites[suiteName]:
paths = paths + "tests/acceptance/features/" + path + " "
suite = suites[suiteName]
if type(suite) == "list":
for path in suite:
paths = paths + "tests/acceptance/features/" + path + " "
else:
paths = paths + "tests/acceptance/features/" + suite + " "
return {
'kind': 'pipeline',
@@ -469,7 +511,7 @@ def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', stor
'steps':
generate('ocis') +
build() +
ocisServer(storage) + [
ocisServer(storage, accounts_hash_difficulty) + [
{
'name': 'webUITests',
'image': 'owncloudci/nodejs:11',
@@ -480,7 +522,7 @@ def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', stor
'RUN_ON_OCIS': 'true',
'OCIS_REVA_DATA_ROOT': '/srv/app/tmp/ocis/owncloud/data',
'OCIS_SKELETON_DIR': '/srv/app/testing/data/webUISkeleton',
'PHOENIX_CONFIG': '/drone/src/ocis/tests/config/drone/ocis-config.json',
'PHOENIX_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
'TEST_TAGS': 'not @skipOnOCIS and not @skip',
'LOCAL_UPLOAD_DIR': '/uploads',
'NODE_TLS_REJECT_UNAUTHORIZED': 0,
@@ -529,7 +571,7 @@ def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', stor
},
}
def accountsUITests(ctx, phoenixBranch, phoenixCommit, storage = 'owncloud'):
def accountsUITests(ctx, phoenixBranch, phoenixCommit, storage = 'owncloud', accounts_hash_difficulty = 4):
return {
'kind': 'pipeline',
'type': 'docker',
@@ -541,7 +583,7 @@ def accountsUITests(ctx, phoenixBranch, phoenixCommit, storage = 'owncloud'):
'steps':
generate('ocis') +
build() +
ocisServer(storage) + [
ocisServer(storage, accounts_hash_difficulty) + [
{
'name': 'WebUIAcceptanceTests',
'image': 'owncloudci/nodejs:11',
@@ -552,7 +594,7 @@ def accountsUITests(ctx, phoenixBranch, phoenixCommit, storage = 'owncloud'):
'RUN_ON_OCIS': 'true',
'OCIS_REVA_DATA_ROOT': '/srv/app/tmp/ocis/owncloud/data',
'OCIS_SKELETON_DIR': '/srv/app/testing/data/webUISkeleton',
'PHOENIX_CONFIG': '/drone/src/ocis/tests/config/drone/ocis-config.json',
'PHOENIX_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
'TEST_TAGS': 'not @skipOnOCIS and not @skip',
'LOCAL_UPLOAD_DIR': '/uploads',
'NODE_TLS_REJECT_UNAUTHORIZED': 0,
@@ -685,7 +727,7 @@ def docker(ctx, arch):
'temp': {},
},
],
'depends_on': getDependsOnAllTestPipelines(ctx),
'depends_on': getPipelineNames(testOcisModules(ctx) + testPipelines(ctx)),
'trigger': {
'ref': [
'refs/heads/master',
@@ -757,7 +799,7 @@ def dockerEos(ctx):
'temp': {},
},
],
'depends_on': getDependsOnAllTestPipelines(ctx),
'depends_on': getPipelineNames(testOcisModules(ctx) + testPipelines(ctx)),
'trigger': {
'ref': [
'refs/heads/master',
@@ -822,8 +864,7 @@ def binary(ctx, name):
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'cd ocis',
'make release-%s' % (name),
'make -C ocis release-%s' % (name),
],
'volumes': [
{
@@ -837,8 +878,7 @@ def binary(ctx, name):
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'cd ocis',
'make release-finish',
'make -C ocis release-finish',
],
'volumes': [
{
@@ -907,7 +947,7 @@ def binary(ctx, name):
'temp': {},
},
],
'depends_on': getDependsOnAllTestPipelines(ctx),
'depends_on': getPipelineNames(testOcisModules(ctx) + testPipelines(ctx)),
'trigger': {
'ref': [
'refs/heads/master',
@@ -1027,8 +1067,7 @@ def changelog(ctx):
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'cd ocis',
'make changelog',
'make -C ocis changelog',
],
},
{
@@ -1168,7 +1207,7 @@ def docs(ctx):
generateConfigDocs = []
for module in config['modules']:
generateConfigDocs += ['cd /drone/src/%s' % (module), 'make config-docs-generate']
generateConfigDocs.append('make -C %s config-docs-generate' % (module))
return {
'kind': 'pipeline',
@@ -1183,7 +1222,7 @@ def docs(ctx):
'name': 'prepare',
'image': 'owncloudci/alpine:latest',
'commands': [
'make docs-copy'
'make -C docs docs-copy'
],
},
{
@@ -1201,15 +1240,16 @@ def docs(ctx):
'name': 'test',
'image': 'owncloudci/hugo:0.71.0',
'commands': [
'cd hugo',
'cd docs/hugo',
'hugo',
],
},
{
'name': 'list',
'name': 'list and remove temporary files',
'image': 'owncloudci/alpine:latest',
'commands': [
'tree hugo/public',
'rm -rf docs/hugo',
],
},
{
@@ -1279,8 +1319,7 @@ def generate(module):
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'cd %s' % (module),
'make generate',
'make -C %s generate' % (module),
],
'volumes': [
{
@@ -1364,6 +1403,9 @@ def notify(ctx):
'refs/heads/release*',
'refs/tags/**',
],
'status': [
'failure'
]
}
}
@@ -1383,34 +1425,45 @@ def frontend(module):
}
]
def ocisServer(storage):
def ocisServer(storage, accounts_hash_difficulty = 4):
environment = {
#'OCIS_LOG_LEVEL': 'debug',
'STORAGE_HOME_DRIVER': '%s' % (storage),
'STORAGE_USERS_DRIVER': '%s' % (storage),
'STORAGE_DRIVER_OCIS_ROOT': '/srv/app/tmp/ocis/storage/users',
'STORAGE_DRIVER_LOCAL_ROOT': '/srv/app/tmp/ocis/local/root',
'STORAGE_METADATA_ROOT': '/srv/app/tmp/ocis/metadata',
'STORAGE_DRIVER_OWNCLOUD_DATADIR': '/srv/app/tmp/ocis/owncloud/data',
'STORAGE_DRIVER_OWNCLOUD_REDIS_ADDR': 'redis:6379',
'STORAGE_LDAP_IDP': 'https://ocis-server:9200',
'STORAGE_OIDC_ISSUER': 'https://ocis-server:9200',
'PROXY_OIDC_ISSUER': 'https://ocis-server:9200',
'STORAGE_HOME_DATA_SERVER_URL': 'http://ocis-server:9155/data',
'STORAGE_DATAGATEWAY_PUBLIC_URL': 'https://ocis-server:9200/data',
'STORAGE_USERS_DATA_SERVER_URL': 'http://ocis-server:9158/data',
'STORAGE_FRONTEND_PUBLIC_URL': 'https://ocis-server:9200',
'STORAGE_SHARING_USER_JSON_FILE': '/srv/app/tmp/ocis/shares.json',
'PROXY_ENABLE_BASIC_AUTH': True,
'PHOENIX_WEB_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
'KONNECTD_IDENTIFIER_REGISTRATION_CONF': '/drone/src/tests/config/drone/identifier-registration.yml',
'KONNECTD_ISS': 'https://ocis-server:9200',
'KONNECTD_TLS': 'true',
}
# Pass in "default" accounts_hash_difficulty to not set this environment variable.
# That will allow OCIS to use whatever its built-in default is.
# Otherwise pass in a value from 4 to about 11 or 12 (default 4, for making regular tests fast)
# The high values cause lots of CPU to be used when hashing passwords, and really slow down the tests.
if (accounts_hash_difficulty != 'default'):
environment['ACCOUNTS_HASH_DIFFICULTY'] = accounts_hash_difficulty
return [
{
'name': 'ocis-server',
'image': 'webhippie/golang:1.14',
'pull': 'always',
'detach': True,
'environment' : {
#'OCIS_LOG_LEVEL': 'debug',
'STORAGE_HOME_DRIVER': '%s' % (storage),
'STORAGE_USERS_DRIVER': '%s' % (storage),
'STORAGE_DRIVER_OCIS_ROOT': '/srv/app/tmp/ocis/storage/users',
'STORAGE_DRIVER_LOCAL_ROOT': '/srv/app/tmp/ocis/local/root',
'STORAGE_METADATA_ROOT': '/srv/app/tmp/ocis/metadata',
'STORAGE_DRIVER_OWNCLOUD_DATADIR': '/srv/app/tmp/ocis/owncloud/data',
'STORAGE_DRIVER_OWNCLOUD_REDIS_ADDR': 'redis:6379',
'STORAGE_LDAP_IDP': 'https://ocis-server:9200',
'STORAGE_OIDC_ISSUER': 'https://ocis-server:9200',
'PROXY_OIDC_ISSUER': 'https://ocis-server:9200',
'STORAGE_HOME_DATA_SERVER_URL': 'http://ocis-server:9155/data',
'STORAGE_DATAGATEWAY_PUBLIC_URL': 'https://ocis-server:9200/data',
'STORAGE_USERS_DATA_SERVER_URL': 'http://ocis-server:9158/data',
'STORAGE_FRONTEND_PUBLIC_URL': 'https://ocis-server:9200',
'PHOENIX_WEB_CONFIG': '/drone/src/ocis/tests/config/drone/ocis-config.json',
'KONNECTD_IDENTIFIER_REGISTRATION_CONF': '/drone/src/ocis/tests/config/drone/identifier-registration.yml',
'KONNECTD_ISS': 'https://ocis-server:9200',
'KONNECTD_TLS': 'true',
},
'environment' : environment,
'commands': [
'apk add mailcap', # install /etc/mime.types
'mkdir -p /srv/app/tmp/ocis/owncloud/data/',
@@ -1430,7 +1483,7 @@ def cloneCoreRepos(coreBranch, coreCommit):
return [
{
'name': 'clone-core-repos',
'image': 'owncloudci/php:7.2',
'image': 'owncloudci/php:7.4',
'pull': 'always',
'commands': [
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/tmp/testing',
@@ -1478,8 +1531,7 @@ def build():
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'cd ocis',
'make build',
'make -C ocis build',
],
'volumes': [
{
+8 -2
View File
@@ -2,7 +2,7 @@
ocis/config/identifier-registration.yaml
*/bin
*/dist
dist/
/hugo
*.key
*crt
@@ -14,4 +14,10 @@ node_modules/
*/yarn-error.log
# Konnectd
konnectd/assets/identifier
konnectd/assets/identifier
# Composer - used for API acceptance tests
composer.lock
vendor
vendor-bin/**/vendor
vendor-bin/**/composer.lock
+371
View File
@@ -2,42 +2,65 @@
## Summary
* Bugfix - Enable scrolling in accounts list: [#909](https://github.com/owncloud/ocis/pull/909)
* Bugfix - Add missing env vars to docker compose: [#392](https://github.com/owncloud/ocis/pull/392)
* Bugfix - Don't enforce empty external apps slice: [#473](https://github.com/owncloud/ocis/pull/473)
* Bugfix - Lower Bound was not working for the cs3 api index implementation: [#741](https://github.com/owncloud/ocis/pull/741)
* Bugfix - Accounts config sometimes being overwritten: [#808](https://github.com/owncloud/ocis/pull/808)
* Bugfix - Make settings service start without go coroutines: [#835](https://github.com/owncloud/ocis/pull/835)
* Bugfix - Fix button layout after phoenix update: [#625](https://github.com/owncloud/ocis/pull/625)
* Bugfix - Fix choose account dialogue: [#846](https://github.com/owncloud/ocis/pull/846)
* Bugfix - Fix id or username query handling: [#745](https://github.com/owncloud/ocis/pull/745)
* Bugfix - Fix konnectd build: [#809](https://github.com/owncloud/ocis/pull/809)
* Bugfix - Use micro default client: [#718](https://github.com/owncloud/ocis/pull/718)
* Bugfix - Allow consent-prompt with switch-account: [#788](https://github.com/owncloud/ocis/pull/788)
* Bugfix - Mint token with uid and gid: [#737](https://github.com/owncloud/ocis/pull/737)
* Bugfix - Serve index.html for directories: [#912](https://github.com/owncloud/ocis/pull/912)
* Bugfix - Don't create account if id/mail/username already taken: [#709](https://github.com/owncloud/ocis/pull/709)
* Bugfix - Fix director selection in proxy: [#521](https://github.com/owncloud/ocis/pull/521)
* Bugfix - Build docker images with alpine:latest instead of alpine:edge: [#416](https://github.com/owncloud/ocis/pull/416)
* Change - Accounts UI shows message when no permissions: [#656](https://github.com/owncloud/ocis/pull/656)
* Change - Cache password validation: [#958](https://github.com/owncloud/ocis/pull/958)
* Change - Filesystem based index: [#709](https://github.com/owncloud/ocis/pull/709)
* Change - Rebuild index command for accounts: [#748](https://github.com/owncloud/ocis/pull/748)
* Change - Add k6: [#941](https://github.com/owncloud/ocis/pull/941)
* Change - Add the thumbnails command: [#156](https://github.com/owncloud/ocis/issues/156)
* Change - Use bcrypt to hash the user passwords: [#510](https://github.com/owncloud/ocis/issues/510)
* Change - Replace the library which scales the images: [#910](https://github.com/owncloud/ocis/pull/910)
* Change - Choose disk or cs3 storage for accounts and groups: [#623](https://github.com/owncloud/ocis/pull/623)
* Change - Enable OpenID dynamic client registration: [#811](https://github.com/owncloud/ocis/issues/811)
* Change - Integrate import command from ocis-migration: [#249](https://github.com/owncloud/ocis/pull/249)
* Change - Improve reva service descriptions: [#536](https://github.com/owncloud/ocis/pull/536)
* Change - Initial release of basic version: [#2](https://github.com/owncloud/ocis/issues/2)
* Change - Add cli-commands to manage accounts: [#115](https://github.com/owncloud/product/issues/115)
* Change - Start ocis-accounts with the ocis server command: [#25](https://github.com/owncloud/product/issues/25)
* Change - Properly style konnectd consent page: [#754](https://github.com/owncloud/ocis/pull/754)
* Change - Move the indexer package from ocis/accounts to ocis/ocis-pkg: [#794](https://github.com/owncloud/ocis/pull/794)
* Change - Switch over to a new custom-built runtime: [#287](https://github.com/owncloud/ocis/pull/287)
* Change - Move ocis default config to root level: [#842](https://github.com/owncloud/ocis/pull/842)
* Change - Remove username field in OCS: [#709](https://github.com/owncloud/ocis/pull/709)
* Change - Account management permissions for Admin role: [#124](https://github.com/owncloud/product/issues/124)
* Change - Update phoenix to v0.18.0: [#651](https://github.com/owncloud/ocis/pull/651)
* Change - Default apps in ownCloud Web: [#688](https://github.com/owncloud/ocis/pull/688)
* Change - Make ocis-settings available: [#287](https://github.com/owncloud/ocis/pull/287)
* Change - Start ocis-proxy with the ocis server command: [#119](https://github.com/owncloud/ocis/issues/119)
* Change - Theme welcome and choose account pages: [#887](https://github.com/owncloud/ocis/pull/887)
* Change - Bring oC theme: [#698](https://github.com/owncloud/ocis/pull/698)
* Change - Unify Configuration Parsing: [#675](https://github.com/owncloud/ocis/pull/675)
* Change - Update phoenix to v0.20.0: [#674](https://github.com/owncloud/ocis/pull/674)
* Change - Update phoenix to v0.21.0: [#728](https://github.com/owncloud/ocis/pull/728)
* Change - Update phoenix to v0.22.0: [#757](https://github.com/owncloud/ocis/pull/757)
* Change - Update phoenix to v0.23.0: [#785](https://github.com/owncloud/ocis/pull/785)
* Change - Update phoenix to v0.24.0: [#817](https://github.com/owncloud/ocis/pull/817)
* Change - Update phoenix to v0.25.0: [#868](https://github.com/owncloud/ocis/pull/868)
* Change - Update phoenix to v0.26.0: [#935](https://github.com/owncloud/ocis/pull/935)
* Change - Update phoenix to v0.27.0: [#943](https://github.com/owncloud/ocis/pull/943)
* Change - Update reva config: [#336](https://github.com/owncloud/ocis/pull/336)
* Change - Clarify storage driver env vars: [#729](https://github.com/owncloud/ocis/pull/729)
* Change - Settings and accounts appear in the user menu: [#656](https://github.com/owncloud/ocis/pull/656)
* Change - Caching for static web assets: [#866](https://github.com/owncloud/ocis/pull/866)
* Enhancement - Add the accounts service: [#244](https://github.com/owncloud/product/issues/244)
* Enhancement - Add basic auth option: [#627](https://github.com/owncloud/ocis/pull/627)
* Enhancement - Document how to run OCIS on top of EOS: [#172](https://github.com/owncloud/ocis/pull/172)
* Enhancement - Add the glauth service: [#244](https://github.com/owncloud/product/issues/244)
* Enhancement - Add the konnectd service: [#244](https://github.com/owncloud/product/issues/244)
@@ -51,15 +74,36 @@
* Enhancement - Add the thumbnails service: [#244](https://github.com/owncloud/product/issues/244)
* Enhancement - Add a command to list the versions of running instances: [#226](https://github.com/owncloud/product/issues/226)
* Enhancement - Add the webdav service: [#244](https://github.com/owncloud/product/issues/244)
* Enhancement - Better adopt Go-Micro: [#840](https://github.com/owncloud/ocis/pull/840)
* Enhancement - Add permission check when assigning and removing roles: [#879](https://github.com/owncloud/ocis/issues/879)
* Enhancement - Show basic-auth warning only once: [#886](https://github.com/owncloud/ocis/pull/886)
* Enhancement - Add glauth fallback backend: [#649](https://github.com/owncloud/ocis/pull/649)
* Enhancement - Tidy dependencies: [#845](https://github.com/owncloud/ocis/pull/845)
* Enhancement - Launch a storage to store ocis-metadata: [#602](https://github.com/owncloud/ocis/pull/602)
* Enhancement - Add a version command to ocis: [#915](https://github.com/owncloud/ocis/pull/915)
* Enhancement - Create a proxy access-log: [#889](https://github.com/owncloud/ocis/pull/889)
* Enhancement - Cache userinfo in proxy: [#877](https://github.com/owncloud/ocis/pull/877)
* Enhancement - Update reva to v1.4.1-0.20201125144025-57da0c27434c: [#1320](https://github.com/cs3org/reva/pull/1320)
* Enhancement - Simplify tracing config: [#92](https://github.com/owncloud/product/issues/92)
* Enhancement - Update glauth to dev fd3ac7e4bbdc93578655d9a08d8e23f105aaa5b2: [#834](https://github.com/owncloud/ocis/pull/834)
* Enhancement - Update glauth to dev 4f029234b2308: [#786](https://github.com/owncloud/ocis/pull/786)
* Enhancement - Update konnectd to v0.33.8: [#744](https://github.com/owncloud/ocis/pull/744)
* Enhancement - Update reva to v1.4.1-0.20201123062044-b2c4af4e897d: [#823](https://github.com/owncloud/ocis/pull/823)
* Enhancement - Update reva to v1.4.1-0.20201130061320-ac85e68e0600: [#980](https://github.com/owncloud/ocis/pull/980)
* Enhancement - Update reva to cdb3d6688da5: [#748](https://github.com/owncloud/ocis/pull/748)
* Enhancement - Update reva to dd3a8c0f38: [#725](https://github.com/owncloud/ocis/pull/725)
* Enhancement - Update reva to v1.4.1-0.20201127111856-e6a6212c1b7b: [#971](https://github.com/owncloud/ocis/pull/971)
## Details
* Bugfix - Enable scrolling in accounts list: [#909](https://github.com/owncloud/ocis/pull/909)
Tags: accounts
We've fixed the accounts list to enable scrolling.
https://github.com/owncloud/ocis/pull/909
* Bugfix - Add missing env vars to docker compose: [#392](https://github.com/owncloud/ocis/pull/392)
Tags: docker
@@ -86,6 +130,22 @@
https://github.com/owncloud/ocis/pull/741
* Bugfix - Accounts config sometimes being overwritten: [#808](https://github.com/owncloud/ocis/pull/808)
Tags: accounts
Sometimes when running the accounts extensions flags were not being taken into
consideration.
https://github.com/owncloud/ocis/pull/808
* Bugfix - Make settings service start without go coroutines: [#835](https://github.com/owncloud/ocis/pull/835)
The go routines cause a race condition that sometimes causes the tests to fail. The ListRoles
request would not return all permissions.
https://github.com/owncloud/ocis/pull/835
* Bugfix - Fix button layout after phoenix update: [#625](https://github.com/owncloud/ocis/pull/625)
Tags: accounts
@@ -96,6 +156,15 @@
https://github.com/owncloud/ocis/pull/625
* Bugfix - Fix choose account dialogue: [#846](https://github.com/owncloud/ocis/pull/846)
Tags: konnectd
We've fixed the choose account dialogue in konnectd bug that the user hasn't been logged in
after selecting account.
https://github.com/owncloud/ocis/pull/846
* Bugfix - Fix id or username query handling: [#745](https://github.com/owncloud/ocis/pull/745)
Tags: accounts
@@ -105,6 +174,15 @@
https://github.com/owncloud/ocis/pull/745
* Bugfix - Fix konnectd build: [#809](https://github.com/owncloud/ocis/pull/809)
Tags: konnectd
We fixed the default config for konnectd and updated the Makefile to include the `yarn
install`and `yarn build` steps if the static assets are missing.
https://github.com/owncloud/ocis/pull/809
* Bugfix - Use micro default client: [#718](https://github.com/owncloud/ocis/pull/718)
Tags: glauth
@@ -114,6 +192,15 @@
https://github.com/owncloud/ocis/pull/718
* Bugfix - Allow consent-prompt with switch-account: [#788](https://github.com/owncloud/ocis/pull/788)
Multiple prompt values are allowed and this change fixes the check for select_account if it was
used together with other prompt values. Where select_account previously was ignored, it is
now processed as required, fixing the use case when a RP wants to trigger select_account first
while at the same time wants also to request interactive consent.
https://github.com/owncloud/ocis/pull/788
* Bugfix - Mint token with uid and gid: [#737](https://github.com/owncloud/ocis/pull/737)
Tags: accounts
@@ -123,6 +210,14 @@
https://github.com/owncloud/ocis/pull/737
* Bugfix - Serve index.html for directories: [#912](https://github.com/owncloud/ocis/pull/912)
The static middleware in ocis-pkg now serves index.html instead of returning 404 on paths with
a trailing `/`.
https://github.com/owncloud/ocis-pkg/issues/63
https://github.com/owncloud/ocis/pull/912
* Bugfix - Don't create account if id/mail/username already taken: [#709](https://github.com/owncloud/ocis/pull/709)
Tags: accounts
@@ -158,6 +253,15 @@
https://github.com/owncloud/ocis/pull/656
* Change - Cache password validation: [#958](https://github.com/owncloud/ocis/pull/958)
Tags: accounts
The password validity check for requests like `login eq '%s' and password eq '%s'` is now cached
for 10 minutes. This improves the performance for basic auth requests.
https://github.com/owncloud/ocis/pull/958
* Change - Filesystem based index: [#709](https://github.com/owncloud/ocis/pull/709)
Tags: accounts, storage
@@ -187,6 +291,12 @@
https://github.com/owncloud/ocis/pull/748
* Change - Add k6: [#941](https://github.com/owncloud/ocis/pull/941)
Add k6 as a load testing framework
https://github.com/owncloud/ocis/pull/941
* Change - Add the thumbnails command: [#156](https://github.com/owncloud/ocis/issues/156)
Tags: thumbnails
@@ -195,6 +305,20 @@
https://github.com/owncloud/ocis/issues/156
* Change - Use bcrypt to hash the user passwords: [#510](https://github.com/owncloud/ocis/issues/510)
Change the hashing algorithm from SHA-512 to bcrypt since the latter is better suitable for
password hashing. This is a breaking change. Existing deployments need to regenerate the
accounts folder.
https://github.com/owncloud/ocis/issues/510
* Change - Replace the library which scales the images: [#910](https://github.com/owncloud/ocis/pull/910)
The library went out of support. Also did some refactoring of the thumbnails service code.
https://github.com/owncloud/ocis/pull/910
* Change - Choose disk or cs3 storage for accounts and groups: [#623](https://github.com/owncloud/ocis/pull/623)
Tags: accounts
@@ -205,6 +329,13 @@
https://github.com/owncloud/ocis/pull/623
* Change - Enable OpenID dynamic client registration: [#811](https://github.com/owncloud/ocis/issues/811)
Enable OpenID dynamic client registration
https://github.com/owncloud/ocis/issues/811
https://github.com/owncloud/ocis/pull/813
* Change - Integrate import command from ocis-migration: [#249](https://github.com/owncloud/ocis/pull/249)
Tags: migration
@@ -262,6 +393,13 @@
https://github.com/owncloud/ocis/pull/754
* Change - Move the indexer package from ocis/accounts to ocis/ocis-pkg: [#794](https://github.com/owncloud/ocis/pull/794)
We are making that change for semantic reasons. So consumers of any index don't necessarily
need to know of the accounts service.
https://github.com/owncloud/ocis/pull/794
* Change - Switch over to a new custom-built runtime: [#287](https://github.com/owncloud/ocis/pull/287)
We moved away from using the go-micro runtime and are now using [our own
@@ -271,6 +409,17 @@
https://github.com/owncloud/ocis/pull/287
* Change - Move ocis default config to root level: [#842](https://github.com/owncloud/ocis/pull/842)
Tags: ocis
We moved the tracing config to the `root` flagset so that they are parsed on all commands. We also
introduced a `JWTSecret` flag in the root flagset, in order to apply a common default JWTSecret
to all services that have one.
https://github.com/owncloud/ocis/pull/842
https://github.com/owncloud/ocis/pull/843
* Change - Remove username field in OCS: [#709](https://github.com/owncloud/ocis/pull/709)
Tags: ocs
@@ -281,6 +430,7 @@
the account id is part of various `path` formats.
https://github.com/owncloud/ocis/pull/709
https://github.com/owncloud/ocis/pull/816
* Change - Account management permissions for Admin role: [#124](https://github.com/owncloud/product/issues/124)
@@ -348,6 +498,15 @@
https://github.com/owncloud/ocis/issues/119
https://github.com/owncloud/ocis/issues/136
* Change - Theme welcome and choose account pages: [#887](https://github.com/owncloud/ocis/pull/887)
Tags: konnectd
We've themed the konnectd pages Welcome and Choose account. All text has a white color now to be
easily readable on the dark background.
https://github.com/owncloud/ocis/pull/887
* Change - Bring oC theme: [#698](https://github.com/owncloud/ocis/pull/698)
Tags: konnectd
@@ -356,6 +515,17 @@
https://github.com/owncloud/ocis/pull/698
* Change - Unify Configuration Parsing: [#675](https://github.com/owncloud/ocis/pull/675)
Tags: ocis
- responsibility for config parsing should be on the subcommand - if there is a config file in the
environment location, env var should take precedence - general rule of thumb: the more
explicit the config file is that would be picked up. Order from less to more explicit: - config
location (/etc/ocis) - environment variable - cli flag
https://github.com/owncloud/ocis/pull/675
* Change - Update phoenix to v0.20.0: [#674](https://github.com/owncloud/ocis/pull/674)
Tags: web
@@ -386,6 +556,56 @@
https://github.com/owncloud/ocis/pull/757
https://github.com/owncloud/phoenix/releases/tag/v0.22.0
* Change - Update phoenix to v0.23.0: [#785](https://github.com/owncloud/ocis/pull/785)
Tags: web
We updated phoenix to v0.23.0. Please refer to the changelog (linked) for details on the
phoenix release.
https://github.com/owncloud/ocis/pull/785
https://github.com/owncloud/phoenix/releases/tag/v0.23.0
* Change - Update phoenix to v0.24.0: [#817](https://github.com/owncloud/ocis/pull/817)
Tags: web
We updated phoenix to v0.24.0. Please refer to the changelog (linked) for details on the
phoenix release.
https://github.com/owncloud/ocis/pull/817
https://github.com/owncloud/phoenix/releases/tag/v0.24.0
* Change - Update phoenix to v0.25.0: [#868](https://github.com/owncloud/ocis/pull/868)
Tags: web
We updated phoenix to v0.25.0. Please refer to the changelog (linked) for details on the
phoenix release.
https://github.com/owncloud/ocis/pull/868
https://github.com/owncloud/phoenix/releases/tag/v0.25.0
* Change - Update phoenix to v0.26.0: [#935](https://github.com/owncloud/ocis/pull/935)
Tags: web
We updated phoenix to v0.26.0. Please refer to the changelog (linked) for details on the
phoenix release.
https://github.com/owncloud/ocis/pull/935
https://github.com/owncloud/phoenix/releases/tag/v0.26.0
* Change - Update phoenix to v0.27.0: [#943](https://github.com/owncloud/ocis/pull/943)
Tags: web
We updated phoenix to v0.27.0. Please refer to the changelog (linked) for details on the
phoenix release.
https://github.com/owncloud/ocis/pull/943
https://github.com/owncloud/phoenix/releases/tag/v0.27.0
* Change - Update reva config: [#336](https://github.com/owncloud/ocis/pull/336)
* EOS homes are not configured with an enable-flag anymore, but with a dedicated storage driver.
@@ -412,6 +632,18 @@
https://github.com/owncloud/ocis/pull/656
* Change - Caching for static web assets: [#866](https://github.com/owncloud/ocis/pull/866)
Tags: accounts, settings, web
We now set http caching headers for static web assets, so that they don't get force-reloaded on
each request. The max-age for the caching is configurable and defaults to 7 days. The last
modified date of the assets is set to the service start date, so that a service restart results in
cache invalidation.
https://github.com/owncloud/ocis/pull/866
https://github.com/owncloud/ocis/pull/934
* Enhancement - Add the accounts service: [#244](https://github.com/owncloud/product/issues/244)
Tags: accounts
@@ -456,6 +688,16 @@
https://github.com/owncloud/product/issues/244
* Enhancement - Add basic auth option: [#627](https://github.com/owncloud/ocis/pull/627)
We added a new `enable-basic-auth` option and `PROXY_ENABLE_BASIC_AUTH` environment
variable that can be set to `true` to make the proxy verify the basic auth header with the
accounts service. This should only be used for testing and development and is disabled by
default.
https://github.com/owncloud/product/issues/198
https://github.com/owncloud/ocis/pull/627
* Enhancement - Document how to run OCIS on top of EOS: [#172](https://github.com/owncloud/ocis/pull/172)
Tags: eos
@@ -1376,6 +1618,39 @@
https://github.com/owncloud/product/issues/244
* Enhancement - Better adopt Go-Micro: [#840](https://github.com/owncloud/ocis/pull/840)
Tags: ocis
There are a few building blocks that we were relying on default behavior, such as
`micro.Registry` and the go-micro client. In order for oCIS to work in any environment and not
relying in black magic configuration or running daemons we need to be able to:
- Provide with a configurable go-micro registry. - Use our own go-micro client adjusted to our
own needs (i.e: custom timeout, custom dial timeout, custom transport...)
This PR is relying on 2 env variables from Micro: `MICRO_REGISTRY` and
`MICRO_REGISTRY_ADDRESS`. The latter does not make sense to provide if the registry is not
`etcd`.
The current implementation only accounts for `mdns` and `etcd` registries, defaulting to
`mdns` when not explicitly defined to use `etcd`.
https://github.com/owncloud/ocis/pull/840
* Enhancement - Add permission check when assigning and removing roles: [#879](https://github.com/owncloud/ocis/issues/879)
Everyone could add and remove roles from users. Added a new permission and a check so that only
users with the role management permissions can assign and unassign roles.
https://github.com/owncloud/ocis/issues/879
* Enhancement - Show basic-auth warning only once: [#886](https://github.com/owncloud/ocis/pull/886)
Show basic-auth warning only on startup instead on every request.
https://github.com/owncloud/ocis/pull/886
* Enhancement - Add glauth fallback backend: [#649](https://github.com/owncloud/ocis/pull/649)
We introduced the `fallback-datastore` config option and the corresponding options to allow
@@ -1390,6 +1665,17 @@
https://github.com/owncloud/ocis-glauth/issues/18
https://github.com/owncloud/ocis/pull/649
* Enhancement - Tidy dependencies: [#845](https://github.com/owncloud/ocis/pull/845)
Methodology:
``` go-modules() { find . \( -name vendor -o -name '[._].*' -o -name node_modules \) -prune -o
-name go.mod -print | sed 's:/go.mod$::' } ```
``` for m in $(go-modules); do (cd $m && go mod tidy); done ```
https://github.com/owncloud/ocis/pull/845
* Enhancement - Launch a storage to store ocis-metadata: [#602](https://github.com/owncloud/ocis/pull/602)
Tags: metadata, accounts, settings
@@ -1399,6 +1685,36 @@
https://github.com/owncloud/ocis/pull/602
* Enhancement - Add a version command to ocis: [#915](https://github.com/owncloud/ocis/pull/915)
The version command was only implemented in the extensions. This adds the version command to
ocis to list all services in the ocis namespace.
https://github.com/owncloud/ocis/pull/915
* Enhancement - Create a proxy access-log: [#889](https://github.com/owncloud/ocis/pull/889)
Logs client access at the proxy
https://github.com/owncloud/ocis/pull/889
* Enhancement - Cache userinfo in proxy: [#877](https://github.com/owncloud/ocis/pull/877)
Tags: proxy
We introduced caching for the userinfo response. The token expiration is used for cache
invalidation if available. Otherwise we fall back to a preconfigured TTL (default 10
seconds).
https://github.com/owncloud/ocis/pull/877
* Enhancement - Update reva to v1.4.1-0.20201125144025-57da0c27434c: [#1320](https://github.com/cs3org/reva/pull/1320)
Mostly to bring fixes to pressing changes.
https://github.com/cs3org/reva/pull/1320
https://github.com/cs3org/reva/pull/1338
* Enhancement - Simplify tracing config: [#92](https://github.com/owncloud/product/issues/92)
We now apply the oCIS tracing config to all services which have tracing. With this it is possible
@@ -1408,6 +1724,19 @@
https://github.com/owncloud/ocis/pull/329
https://github.com/owncloud/ocis/pull/409
* Enhancement - Update glauth to dev fd3ac7e4bbdc93578655d9a08d8e23f105aaa5b2: [#834](https://github.com/owncloud/ocis/pull/834)
We updated glauth to dev commit fd3ac7e4bbdc93578655d9a08d8e23f105aaa5b2, which allows to
skip certificate checks for the owncloud backend.
https://github.com/owncloud/ocis/pull/834
* Enhancement - Update glauth to dev 4f029234b2308: [#786](https://github.com/owncloud/ocis/pull/786)
Includes a bugfix, don't mix graph and provisioning api.
https://github.com/owncloud/ocis/pull/786
* Enhancement - Update konnectd to v0.33.8: [#744](https://github.com/owncloud/ocis/pull/744)
This update adds options which allow the configuration of oidc-token expiration parameters:
@@ -1430,6 +1759,37 @@
https://github.com/owncloud/ocis/pull/744
* Enhancement - Update reva to v1.4.1-0.20201123062044-b2c4af4e897d: [#823](https://github.com/owncloud/ocis/pull/823)
* Refactor the uploading files workflow from various clients [cs3org/reva#1285](https://github.com/cs3org/reva/pull/1285), [cs3org/reva#1314](https://github.com/cs3org/reva/pull/1314)
* [OCS] filter share with me requests [cs3org/reva#1302](https://github.com/cs3org/reva/pull/1302)
* Fix listing shares for nonexisting path [cs3org/reva#1316](https://github.com/cs3org/reva/pull/1316)
* prevent nil pointer when listing shares [cs3org/reva#1317](https://github.com/cs3org/reva/pull/1317)
* Sharee retrieves the information about a share -but gets response containing all the shares [owncloud/ocis-reva#260](https://github.com/owncloud/ocis-reva/issues/260)
* Deleting a public link after renaming a file [owncloud/ocis-reva#311](https://github.com/owncloud/ocis-reva/issues/311)
* Avoid log spam [cs3org/reva#1323](https://github.com/cs3org/reva/pull/1323), [cs3org/reva#1324](https://github.com/cs3org/reva/pull/1324)
* Fix trashbin [cs3org/reva#1326](https://github.com/cs3org/reva/pull/1326)
https://github.com/owncloud/ocis-reva/issues/260
https://github.com/owncloud/ocis-reva/issues/311
https://github.com/owncloud/ocis/pull/823
https://github.com/cs3org/reva/pull/1285
https://github.com/cs3org/reva/pull/1302
https://github.com/cs3org/reva/pull/1314
https://github.com/cs3org/reva/pull/1316
https://github.com/cs3org/reva/pull/1317
https://github.com/cs3org/reva/pull/1323
https://github.com/cs3org/reva/pull/1324
https://github.com/cs3org/reva/pull/1326
* Enhancement - Update reva to v1.4.1-0.20201130061320-ac85e68e0600: [#980](https://github.com/owncloud/ocis/pull/980)
* Fix move operation in ocis storage driver [csorg/reva#1343](https://github.com/cs3org/reva/pull/1343)
https://github.com/owncloud/ocis/issues/975
https://github.com/owncloud/ocis/pull/980
https://github.com/cs3org/reva/pull/1343
* Enhancement - Update reva to cdb3d6688da5: [#748](https://github.com/owncloud/ocis/pull/748)
* let the gateway filter invalid references
@@ -1443,3 +1803,14 @@
https://github.com/owncloud/ocis/pull/725
https://github.com/cs3org/reva/pull/1264
* Enhancement - Update reva to v1.4.1-0.20201127111856-e6a6212c1b7b: [#971](https://github.com/owncloud/ocis/pull/971)
Tags: reva
* Fix capabilities response for multiple client versions #1331 [cs3org/reva#1331](https://github.com/cs3org/reva/pull/1331)
* Fix home storage redirect for remote.php/dav/files [cs3org/reva#1342](https://github.com/cs3org/reva/pull/1342)
https://github.com/owncloud/ocis/pull/971
https://github.com/cs3org/reva/pull/1331
https://github.com/cs3org/reva/pull/1342
+12 -35
View File
@@ -1,41 +1,18 @@
SHELL := bash
NAME := ocis
IMPORT := github.com/owncloud/$(NAME)
HUGO := hugo
.PHONY: all
all: build
.PHONY: help
help:
@echo "Please use 'make <target>' where <target> is one of the following:"
@echo
@echo -e "Testing:\n"
@echo -e "make test-acceptance-api\trun API acceptance tests"
@echo -e "make clean-tests\t\tdelete API tests framework dependencies"
@echo
@echo -e "See the Makefile in the ocis folder for other build and test targets"
.PHONY: sync
sync:
go mod download
.PHONY: clean
clean:
rm -rf $(HUGO)
.PHONY: docs-copy
docs-copy:
mkdir -p $(HUGO); \
mkdir -p $(HUGO)/content/; \
cd $(HUGO); \
git init; \
git remote rm origin; \
git remote add origin https://github.com/owncloud/owncloud.github.io; \
git fetch --depth=1; \
git checkout origin/source -f; \
rsync -ax --delete ../docs/ content/; \
.PHONY: config-docs-generate
config-docs-generate:
go run github.com/owncloud/flaex >| docs/configuration.md
.PHONY: docs-build
docs-build:
cd $(HUGO); hugo
.PHONY: docs
docs: docs-copy docs-build
.PHONY: clean-tests
clean-tests:
rm -Rf vendor-bin/**/vendor vendor-bin/**/composer.lock
BEHAT_BIN=vendor-bin/behat/vendor/bin/behat
+1 -1
View File
@@ -137,7 +137,7 @@ release-finish: release-copy release-check
.PHONY: config-docs-generate
config-docs-generate:
# go run github.com/owncloud/flaex >| ../docs/extensions/$(NAME)/configuration.md
go run github.com/owncloud/flaex >| ../docs/extensions/$(NAME)/configuration.md
.PHONY: test-acceptance-webui
test-acceptance-webui:
+8 -10
View File
@@ -3,36 +3,34 @@ module github.com/owncloud/ocis/accounts
go 1.13
require (
github.com/cs3org/go-cs3apis v0.0.0-20200810113633-b00aca449666
github.com/cs3org/reva v1.2.2-0.20200924071957-e6676516e61e
github.com/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21
github.com/cs3org/reva v1.4.1-0.20201130061320-ac85e68e0600
github.com/go-chi/chi v4.1.2+incompatible
github.com/go-chi/render v1.0.1
github.com/gofrs/uuid v3.3.0+incompatible
github.com/golang/protobuf v1.4.2
github.com/gopherjs/gopherjs v0.0.0-20190910122728-9d188e94fb99 // indirect
github.com/iancoleman/strcase v0.1.2
github.com/mennanov/fieldmask-utils v0.3.2
github.com/golang/protobuf v1.4.3
github.com/mennanov/fieldmask-utils v0.3.3
github.com/micro/cli/v2 v2.1.2
github.com/micro/go-micro/v2 v2.9.1
github.com/oklog/run v1.1.0
github.com/olekukonko/tablewriter v0.0.4
github.com/owncloud/ocis/ocis-pkg v0.0.0-20200918114005-1a0ddd2190ee
github.com/owncloud/ocis/ocis-pkg v0.0.0-20201103111659-46bf133a3c63
github.com/owncloud/ocis/settings v0.0.0-20200918114005-1a0ddd2190ee
github.com/owncloud/ocis/storage v0.0.0-20201015120921-38358ba4d4df
github.com/prometheus/client_golang v1.7.1
github.com/restic/calens v0.2.0
github.com/rs/zerolog v1.20.0
github.com/spf13/viper v1.7.0
github.com/stretchr/testify v1.6.1
github.com/tredoe/osutil v1.0.5
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
golang.org/x/net v0.0.0-20200822124328-c89045814202
google.golang.org/genproto v0.0.0-20200624020401-64a14ca9d1ad
google.golang.org/grpc v1.32.0
google.golang.org/grpc v1.33.2
google.golang.org/protobuf v1.25.0
)
replace (
github.com/owncloud/ocis/ocis-pkg => ../ocis-pkg
github.com/owncloud/ocis/settings => ../settings
github.com/owncloud/ocis/storage => ../storage
google.golang.org/grpc => google.golang.org/grpc v1.26.0
)
+56 -409
View File
File diff suppressed because it is too large. Load diff
+3 -32
View File
@@ -1,5 +1,5 @@
// Code generated by fileb0x at "2020-10-12 17:37:33.659807 +0200 CEST m=+0.054958104" from config file "embed.yml" DO NOT EDIT.
// modification hash(0bc16594fa769da5cdbe7e9cbdefb626.8058aec596c5fb73022d09bb97af796e)
// Code generated by fileb0x at "2020-11-20 11:12:19.055864 +0100 CET m=+0.009268058" from config file "embed.yml" DO NOT EDIT.
// modification hash(aa63d3a7859474115b12e1e93af346a5.8058aec596c5fb73022d09bb97af796e)
package assets
@@ -36,10 +36,7 @@ type HTTPFS struct {
}
// FileAccountsJs is "accounts.js"
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\xe9\x76\x1b\xb7\xb2\x30\xfa\xfb\x7e\x4f\x41\xf6\xf1\xee\x03\x6c\x96\x68\xd2\x19\xf6\x4e\xd3\x08\xb7\x2d\xcb\x8e\x13\x4f\x91\x6c\x27\x0e\xc3\xa3\xd5\x22\x41\x09\x16\x09\xd0\x68\x50\x83\xc9\xbe\xef\x73\x5f\xe3\x3e\xd9\x5d\x28\x00\x3d\xb1\x65\x67\x9f\x6f\x58\xeb\xfe\x21\xbb\xd1\x18\x0b\x40\x4d\xa8\x2a\xcc\xf9\x42\x48\x4e\xc8\x62\x23\x67\x46\x28\x49\xe8\x36\xda\x64\xbc\x93\x19\x2d\x66\x26\x1a\x5d\xa5\xba\x63\x58\xb4\x91\x2e\xe3\x3c\xea\x32\x73\xbb\xe6\x6a\xd1\x39\x5f\xaa\xb3\x74\xf9\xf6\x42\x64\xe3\xf2\x31\x69\xcb\x79\x2d\xe4\x5c\x5d\x8f\xdd\x5f\x6b\x0e\x57\x81\xaf\xa7\x35\x47\xc6\x97\x8b\xb1\xfd\x49\xb6\xf9\x28\x74\xb6\xc3\x89\x01\x4e\xb7\x9a\x9b\x8d\x96\x1d\x43\x38\xdb\xf2\x9b\xb5\xd2\x26\x4b\xb6\x79\x0e\xbc\xef\xdf\x68\xf9\x98\xdb\x11\x49\x56\x1d\xb2\xa1\x5b\x9b\xc8\xd9\x7e\xca\xeb\xb3\x8f\x7c\x66\xfa\x6b\xad\x8c\xb2\x3d\x01\xc9\x78\xff\x22\xcd\x5e\x5f\xcb\x37\x5a\xad\xb9\x36\xb7\xa0\x59\x14\x0a\x46\x2c\xf4\xf7\xe4\x76\x75\xa6\x96\x63\xf7\x97\x6c\x73\x50\x4c\xf7\x85\xe1\x3a\x35\x4a\xef\x76\xd1\xbf\xfe\x15\x5e\x22\x10\x4c\xf7\xd3\xec\x56\xce\x9e\x57\xbf\xd7\x52\x22\x48\x99\xee\x1b\x75\x62\xb4\x90\xe7\x6f\xd3\x73\xcc\x52\x79\x8f\x4a\xa0\xcc\x2c\x50\x40\x82\x76\x83\x50\x8c\xc7\x31\x2f\x87\xd0\x11\x32\x33\xa9\x9c\xd9\x5e\x2e\xc7\x3c\x59\x82\x08\xc3\x9c\x69\x9e\x1a\x4e\x54\x99\x99\x42\xca\x24\xbf\xee\xdc\x10\xbd\xdb\x4d\xa6\x74\xe4\x41\x2d\xfa\xa7\x42\x5e\xa9\xcb\x2a\xcc\x6c\xa3\xae\x49\xcd\xa2\x6c\x93\xad\xb9\x9c\xf3\xf9\x89\x49\xb5\x89\x42\xb9\x22\xb7\x02\x41\xb7\x62\x41\x22\x7e\xc3\x67\x1b\x23\xe4\x79\xc4\x18\xd3\xd4\x5c\x68\x75\xdd\xb1\x4d\x1e\x69\xad\x34\x89\x9e\x71\xe9\x40\xd0\x11\x59\x27\x5d\x6a\x9e\xce\x6f\x3b\x7a\x23\xa5\x2d\x42\x47\xb6\x8a\x99\x5a\xad\x97\xdc\xf0\xb9\xab\x02\xab\xc5\x7a\xec\xbb\xf2\x55\x8a\xd0\x85\xd7\x84\xe6\x0b\xa5\x89\xec\xaf\xb8\xb9\x50\x73\xa6\x40\xf6\x53\x7d\xce\xc4\x68\xe4\xba\x9f\x32\xd9\x9f\xf3\x25\x3f\x4f\x0d\xb7\x0d\xa4\x2e\x79\xc6\xce\x48\x0a\x12\xdb\x9c\x61\x2b\x33\xc6\xd8\x86\xce\x94\x34\x42\x6e\x78\x68\x60\x96\xe7\xb6\x07\x92\xdf\x18\xdb\x81\xd0\x0e\x95\xfd\x8c\x4b\xc3\x64\xff\xd4\xff\xa7\xfa\x7c\xc4\x97\x19\xef\xd4\x3a\x5c\xe4\xc7\x71\x34\xe0\x58\x81\x91\x66\x95\x81\xbb\x21\x8c\x64\x7f\x2e\xb2\x75\x6a\x66\x17\x47\x37\x33\xbe\x46\x48\xe3\x17\x9a\xdb\x86\x22\xd7\xc3\x6a\x2b\x71\x2c\xfb\xe9\x99\xde\xac\x0d\x09\x5f\x5d\x5d\x74\xa4\x59\x65\x72\x10\x11\x2c\x59\xe6\xa7\x19\xe1\x2e\x95\x5e\xa5\x4b\x5b\xdb\xb2\x8f\x8b\xc5\xf6\x58\x5b\xe0\x29\xc9\xc7\x95\xde\x25\xe5\x30\x3e\x08\xbe\x9c\x47\xb0\x44\x88\xb7\x40\x6f\x7b\x95\x2e\x37\x3c\xc1\xef\x60\xeb\x49\x5c\x75\x79\x5e\x42\xc8\xb5\x16\xc7\xa4\x09\x02\x3f\xa1\x3e\xa7\x9f\xd6\xa5\x1b\x7f\x9e\x13\x03\x12\x52\x0a\x22\x2f\xb6\x4a\x18\xce\xd6\xe8\x5b\x8f\x45\xb6\xb6\xee\x24\x8c\x0d\x52\x7d\x9e\x98\xfe\x2c\x5d\x2e\x89\xcd\x98\xe7\x33\x0b\x5d\x8b\x20\x6a\xd9\x7d\x8b\x98\x3b\xcf\x73\xd3\xbf\xd6\xe9\x9a\xcd\x10\x6a\x1b\x56\x45\x59\x4b\x42\xb7\x65\x07\x16\xb5\xb7\xb9\x7d\xb3\x45\xd6\xb6\xc8\x7a\xa2\xa6\xac\x82\x97\x03\x96\xbb\x10\x59\x8e\x15\x5f\x84\x7d\x7b\xce\xcd\x9b\xb0\x63\x5f\x2f\x60\xc5\x2e\xe2\xf8\x82\x5c\x90\x23\x32\x99\x52\x4a\x47\xab\x38\x5e\x75\x99\xc5\x03\xd2\x0d\x65\x05\x8a\xc6\x31\x59\xb3\x15\xc5\x9a\xae\xd8\xbc\xdc\xf3\x6c\x59\x79\xae\x63\x86\x35\x2d\x07\x72\x6e\x81\x30\x71\xcb\x1c\x02\x00\xc2\x1a\x9a\xf6\x17\x4a\x1f\xa5\xb3\x8b\x0a\x9a\xe5\x74\x6b\x26\x7c\x5a\xc3\xb2\x95\x31\x05\x8c\x42\x38\x18\x9a\xe7\x94\x96\x70\xb9\x75\x68\x1e\x51\xcb\xa8\x9a\x97\xd5\xf1\x49\x51\x20\x2d\xc1\x65\x51\x49\x15\xd9\x6b\x48\xe9\xb6\x5b\xe4\xd4\xb6\x24\xa4\x30\x73\xd5\x6f\xec\x0a\x9f\xa8\x29\x18\x10\x6e\x91\xbb\x81\x75\x19\xdb\xf8\x35\xee\x36\xc2\x06\x17\xe8\x82\x2d\xfb\xb8\x60\x0b\xfc\x16\xc7\x91\x42\x90\x95\xa4\x60\x51\x80\x7d\x01\xd1\xe9\x69\x7a\x9d\x0a\x13\xd1\x31\xef\x6b\x9e\xa9\xe5\x15\x27\x8b\xbe\x4f\xa5\x7d\x73\xc1\x65\x9d\x32\x69\x8f\x49\xc0\x60\x2f\x73\x0a\xcd\xcf\x1e\xf4\xe1\x3b\x4d\x2a\x35\xb7\xd5\xe8\xbb\xcc\x0c\xa4\x64\xb9\x5f\xa1\x1b\x48\x4b\xbd\xf9\x8c\x6c\xdc\x5e\x42\x98\x59\x40\xda\xd4\x50\x80\xe9\xb1\x76\xad\xa5\x90\xd2\x24\x25\x34\x2f\x67\xf0\xac\x9c\x41\xc9\x4c\x41\x08\x27\xdc\xef\xd9\xa9\x85\xf5\x95\x12\xf3\xce\xc0\x22\x27\xc4\x24\xbc\x40\xc2\x4c\x6e\x96\x4b\x28\x11\x00\xaf\xa2\xc8\xb2\xb6\xbe\xeb\x4a\x1c\x13\x5e\xa0\x82\x80\xd3\x38\xe2\x02\xd7\x02\xb8\xde\xb4\x55\x48\xfd\x68\x36\x23\xde\xc4\x26\xae\x06\xbb\x9c\xde\xde\xae\xb9\xa7\x4e\x6f\x2f\x78\x27\x34\xdf\x99\x2b\x9e\x75\xa4\x32\x9d\xb5\x56\x57\x62\xce\x3b\x69\xe7\x3f\xb1\xf0\x7f\x76\x5c\x5d\x51\x01\xad\x4d\xee\xe8\x64\x46\x24\x94\x03\x70\x6d\x54\xd7\x9d\xc5\xf7\x6e\xdd\xf9\x82\x77\x74\x4b\xe3\x72\x6c\x42\x6c\x33\x72\x0c\x00\x7e\x0d\x4b\x54\x8d\x95\x43\xd0\x84\x4f\x8c\x5d\x29\x9b\xa5\x79\x95\xae\xf8\x94\x29\xb7\x30\x80\xf7\xed\x8a\x63\x06\xff\x5e\xa8\x59\xb1\xab\xbb\x25\xa4\x6a\x40\x76\x0b\xb4\x0a\x62\xba\xdf\x17\x9a\xa8\x84\xfc\x35\xa8\x16\x10\x75\xbd\xb3\x94\xdf\x82\x35\x95\x1d\xbf\xb7\xda\xaa\x2f\x17\xdb\x75\xc9\xbf\x59\xc4\xfe\x42\xcd\x12\x33\x19\x4c\xf3\xd1\xb0\x23\x64\xc7\x60\xd7\x11\x8d\xLine truncated
// FileAccountsJsMap is "accounts.js.map"
var FileAccountsJsMap = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\x8b\x76\x1b\xb9\xb1\x28\xfa\x2b\xb0\x32\xc7\x24\x6d\x3e\xac\xf1\xbc\x42\x45\xa3\x78\x64\xd9\xa3\xc4\xb6\xbc\x2d\x8d\x73\x72\x25\x2d\x19\x64\x83\x24\x46\xcd\x6e\xa6\xd1\x2d\x99\xb1\x75\xfe\xe7\xfe\xc6\xfd\xb2\xbb\x50\x55\x78\xf5\x83\x0f\xd9\xb3\xb3\x8f\xb3\x56\x46\x44\x03\x05\xa0\x50\x28\xd4\x0b\x85\x4f\x3b\x37\x22\x53\x32\x4d\x76\x86\x4f\xbb\x3b\x13\x19\x8b\x9d\xe1\x0e\x1f\x8f\xd3\x22\xc9\x55\xff\x77\xb5\xd3\xdd\x51\x69\x91\x8d\x85\xda\x19\x9e\xef\xf4\xfb\x83\x24\x8d\xc4\xd5\x3c\x8d\x8a\x58\xa8\x41\x26\xa6\x22\x11\x19\xcf\xd3\xac\x97\x15\x49\x2e\xe7\x62\x40\xff\xc5\xb6\xe5\x06\xe3\x34\x13\xbd\xdf\xd5\x40\x26\xb9\xc8\x12\x1e\xab\xc1\x34\x4e\x47\x3c\xde\xb4\xf6\x84\xcb\x58\x6d\x5a\x39\x12\x6a\x9c\xc9\x45\x9e\x66\x1b\x37\x49\x47\xbf\x8b\x71\xde\x5b\x64\xe9\x42\x64\xf9\xb2\x27\x55\x4f\x24\xc5\x5c\x64\x7c\x14\x6f\x3c\xa5\x71\x26\x78\x2e\x1c\x10\x37\x8e\x8d\x21\xc4\x5c\xa9\x74\xd2\xcb\xf8\xed\xa6\x4d\x64\x12\x89\x8f\x22\xea\xe1\x0c\x36\x6d\x95\x89\x7f\x15\x32\x13\xd4\xaa\x37\x4e\x45\x36\x96\x5b\x4c\x35\x4f\x7b\xf7\xeb\x58\xaa\x2d\x1b\xe4\x69\x6f\x91\xc9\xb9\xcc\xe5\xcd\xc6\xa3\x9b\xf1\xcd\x69\x25\x1d\x17\x73\x91\xe4\x3d\x5a\x3c\x11\x0b\xfd\x73\xe3\xe9\x88\x9f\x7a\x51\x3a\xef\x45\x62\x22\x93\x8d\xc7\x47\x58\x9f\x8a\xbc\x97\xde\x26\x5f\x42\x30\x3c\xd9\x12\x9d\xd4\x35\x8e\xd7\xf6\xbc\x25\x85\x27\x69\xe2\x6d\x8f\xad\xa1\x28\x91\xf7\xb6\xdb\xfe\x6a\xc6\x33\x11\xf5\x54\x9e\x66\x1b\x23\x59\x26\x6a\xa1\xa7\x8a\x6c\x6c\xd3\x56\x09\xd7\x84\xd6\xbb\x15\xfc\xba\x37\xe7\x8b\x2d\xc8\x7a\x51\x6c\x3e\x36\x9c\xcf\xa6\xb5\x0b\xb9\x71\x55\x42\xd4\xb5\xd8\x78\x31\x66\x32\x8a\x44\xa2\x5b\x6c\xbc\x67\xcc\x5f\x3d\x95\xf3\x7c\xe3\x39\x67\x62\xbb\x4d\xb2\xe0\xf9\x6c\xe3\xc3\x44\xe4\xbd\x51\x21\xe3\xbc\x27\x93\xad\x58\x58\x2e\xa6\x62\xe3\xcd\x96\xa7\xbd\x58\x24\xd3\xcd\x87\x95\xa7\x3d\x3e\x52\x69\x5c\xe4\x02\xd9\xe5\xc6\xdb\x3a\xcb\xf8\xb2\x27\x93\x71\x5c\x44\x62\xdb\x43\x4c\x2f\x65\xcf\x94\x6e\xda\x56\x6f\xe7\xde\xa8\x98\x6e\x45\x08\x4d\x7c\x2c\xe1\xf3\xad\x47\x5d\x01\xa2\x96\xf3\x51\xba\xf9\xa1\xaf\xdb\x6e\x33\xf6\x71\xba\x58\xf6\xc6\x69\xa2\xf2\xac\x18\x6b\x39\x86\x3a\x96\x9b\x8f\x5c\xaa\xde\x24\xcd\xc6\x9b\x6f\x64\xf1\x71\x91\x66\x1b\xb3\x6a\x62\x45\x88\x87\x8d\x79\x85\x32\x2d\x7a\x5c\xf5\xb6\xe0\x1c\x52\xf5\x80\xea\xb6\xa0\xed\x7b\x9d\x3c\xf7\xa0\xaf\xf0\xb0\xda\x62\x81\x66\xf9\x7c\x63\xc4\x19\x49\x08\x4e\xb8\xaf\xb2\x01\x7a\xe2\xe3\x76\x7b\xf0\x56\xc4\x71\xef\x3a\xd1\x90\xb6\x5b\xf4\x4a\xc3\xde\x6d\xc6\x17\x8b\xcd\x09\x93\x30\x7c\xef\x01\xe8\x13\x3d\x4f\x7b\x2a\xcf\x64\x32\xed\xe5\x7c\xba\x31\xa3\xeb\x4d\x8a\x64\x9c\xcb\x74\x63\xb6\x6d\xea\xf7\x46\x32\x89\xf4\x06\xce\xc5\xc7\x8d\x69\x10\xf9\xaa\x96\x0b\xa4\x50\x5b\xae\x35\xf1\xe4\x5c\xab\x3d\x6b\xc7\x6b\x7e\x0b\xd5\xdf\x0e\x93\x22\x99\xea\x95\x28\x94\xc8\x7a\x7c\xba\x85\x24\x4a\x0d\x6f\x7e\xea\x91\x62\xb7\xdd\xbc\xe6\x22\x9f\xa5\x51\x6f\xc6\x95\x45\x8f\x2a\x16\xdb\xb0\xab\x00\x4e\xa1\x84\xea\x6d\x78\x5e\x7a\xb8\x42\x0e\x34\x91\x71\xbe\xf9\xa9\x1c\xf4\x2b\x15\x10\xe1\xe6\x5c\x09\x5b\x4f\xd2\xac\x27\xf8\x78\xeb\x81\x6e\xdb\x8c\x38\xe6\x57\x10\xfc\x4b\xba\xe6\x57\x1c\xc1\x1a\xee\x5a\x85\xb5\x0d\x47\xd7\xba\x12\x6c\xa1\x51\xbc\x8e\x8d\x9b\xdf\xb7\x62\xd4\xd7\xcd\xc6\x69\x1c\x0b\xd8\xfa\x6a\x0d\xe2\xff\x3a\xe2\x23\x11\x1b\x83\xc4\x60\x26\xe2\x85\xc8\x0c\x93\x7b\xbb\x12\x63\x59\x1a\xc7\xc5\xa2\xb7\x88\x8b\xa9\x4c\x7a\xfa\x13\x69\x2a\x6a\xa0\xb2\xf1\x4a\xa3\xc5\x4d\x21\x3e\x0e\x22\xa9\x72\xf8\xab\x2f\xd4\x7c\x63\x1a\x8c\x22\xbd\x57\x8a\x44\x8d\xd3\xc5\x16\x98\xf1\x36\x4c\xb2\x86\xd5\x57\x9a\x80\x38\xda\x4b\x27\x1b\x61\xd0\x33\xf7\x0c\x56\xc8\xb1\x0d\x78\xe7\x6a\x99\x8c\xcf\xd2\x97\x06\x84\x6d\x5c\x48\x5b\xa7\xc8\x1b\xed\x3b\xfc\xa3\x4c\xd5\x20\x96\x23\x5b\x79\xd4\x38\x5d\x57\x77\x3b\x80\x85\x8c\xa3\xdf\xde\xbd\x5a\x57\x5f\x63\x73\x70\xac\xd7\x6d\x2c\xf4\x56\x79\xcd\x13\xde\xa8\x3f\x94\x9a\xe5\x19\x4f\xd4\x24\xcd\xe6\xcf\x79\xce\xd7\xb6\xe0\xc9\x58\xc4\x03\xa9\x0e\xe1\x8f\xfa\xea\x8b\x2c\x1d\x0b\xa5\x7a\x42\xfd\x30\x18\x65\xe9\xad\x5a\x3f\x12\x33\xe1\x24\xcd\xe6\x3c\x96\xff\x16\xbf\x0a\x1e\x89\xec\x0d\x6f\xb2\xdb\x95\x26\x21\x92\x99\x1e\xd0\x51\x96\x35\x71\xaa\x52\x03\x64\x53\x9b\xd7\x57\x22\xcf\x9b\xac\x50\xd5\x69\x48\xf5\x8c\xd4\xab\x0d\x16\xcf\x34\x1a\xa7\xf3\x91\x4c\x74\x8b\xb5\xf4\x01\x43\x02\xe2\x78\x51\xc4\xf1\xdb\x46\x85\xb4\xda\xc9\x82\x67\x8a\x90\xbb\x31\x15\x4a\xf5\xdb\xbb\x57\xa7\x7c\x2e\x4e\x32\x39\x6d\xd2\x63\xeb\xe6\x93\x5e\x37\xca\xc4\xae\x3a\x8f\xf8\x22\xd7\xf5\x3f\xce\xd6\x2e\x45\x24\x26\xbc\x88\xf3\xcd\xf0\x13\x49\xb5\xe0\xf9\x78\xf6\x4e\xfc\xab\x10\xaa\xe1\xe0\x2d\xb5\x99\x8b\x6c\x2a\x0e\xd3\x64\x22\x1b\x24\xc5\x52\xfd\x67\xfa\xe7\x86\x9b\x66\xd5\x96\x69\xa8\x7c\x96\x5e\x8b\x8d\xf1\xad\x16\x99\xe0\x6b\xf9\x0f\x5f\x37\xe2\x90\x8f\x7a\xac\x90\x17\x5b\x0b\x4c\xbf\xa7\xeb\xcc\x1e\x95\x26\x5b\xd8\xb6\x02\xc1\x7e\x5b\xa9\x90\x2c\xda\x5b\x2a\x54\xb6\xcb\x6d\x65\x91\x0d\x1b\x56\x94\xec\x45\x96\xce\xa5\x12\xbe\x41\x60\x5b\xbb\x56\x8f\xc7\x5b\xe9\x4b\x24\x66\x6f\x61\xe9\x95\x89\xca\x35\xbd\x6e\xac\xdLine truncated
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\xe9\x76\x1b\xb7\xb2\x30\xfa\xfb\x7e\x4f\x41\xf6\xf1\xee\x03\x6c\x96\x68\xd2\x19\xf6\x4e\xd3\x08\xb7\x2d\xcb\x8e\x13\x4f\x91\x6c\x27\x0e\xc3\xa3\xd5\x22\x41\x09\x16\x09\xd0\x68\x50\x83\xc9\xbe\xef\x73\x5f\xe3\x3e\xd9\x5d\x28\x00\x3d\xb1\x65\x67\x9f\x6f\x58\xeb\xfe\x21\xbb\xd1\x18\x0b\x40\x4d\xa8\x2a\xcc\xf9\x42\x48\x4e\xc8\x62\x23\x67\x46\x28\x49\xe8\x36\xda\x64\xbc\x93\x19\x2d\x66\x26\x1a\x5d\xa5\xba\x63\x58\xb4\x91\x2e\xe3\x3c\xea\x32\x73\xbb\xe6\x6a\xd1\x39\x5f\xaa\xb3\x74\xf9\xf6\x42\x64\xe3\xf2\x31\x69\xcb\x79\x2d\xe4\x5c\x5d\x8f\xdd\x5f\x6b\x0e\x57\x81\xaf\xa7\x35\x47\xc6\x97\x8b\xb1\xfd\x49\xb6\xf9\x28\x74\xb6\xc3\x89\x01\x4e\xb7\x9a\x9b\x8d\x96\x1d\x43\x38\xdb\xf2\x9b\xb5\xd2\x26\x4b\xb6\x79\x0e\xbc\xef\xdf\x68\xf9\x98\xdb\x11\x49\x56\x1d\xb2\xa1\x5b\x9b\xc8\xd9\x7e\xca\xeb\xb3\x8f\x7c\x66\xfa\x6b\xad\x8c\xb2\x3d\x01\xc9\x78\xff\x22\xcd\x5e\x5f\xcb\x37\x5a\xad\xb9\x36\xb7\xa0\x59\x14\x0a\x46\x2c\xf4\xf7\xe4\x76\x75\xa6\x96\x63\xf7\x97\x6c\x73\x50\x4c\xf7\x85\xe1\x3a\x35\x4a\xef\x76\xd1\xbf\xfe\x15\x5e\x22\x10\x4c\xf7\xd3\xec\x56\xce\x9e\x57\xbf\xd7\x52\x22\x48\x99\xee\x1b\x75\x62\xb4\x90\xe7\x6f\xd3\x73\xcc\x52\x79\x8f\x4a\xa0\xcc\x2c\x50\x40\x82\x76\x83\x50\x8c\xc7\x31\x2f\x87\xd0\x11\x32\x33\xa9\x9c\xd9\x5e\x2e\xc7\x3c\x59\x82\x08\xc3\x9c\x69\x9e\x1a\x4e\x54\x99\x99\x42\xca\x24\xbf\xee\xdc\x10\xbd\xdb\x4d\xa6\x74\xe4\x41\x2d\xfa\xa7\x42\x5e\xa9\xcb\x2a\xcc\x6c\xa3\xae\x49\xcd\xa2\x6c\x93\xad\xb9\x9c\xf3\xf9\x89\x49\xb5\x89\x42\xb9\x22\xb7\x02\x41\xb7\x62\x41\x22\x7e\xc3\x67\x1b\x23\xe4\x79\xc4\x18\xd3\xd4\x5c\x68\x75\xdd\xb1\x4d\x1e\x69\xad\x34\x89\x9e\x71\xe9\x40\xd0\x11\x59\x27\x5d\x6a\x9e\xce\x6f\x3b\x7a\x23\xa5\x2d\x42\x47\xb6\x8a\x99\x5a\xad\x97\xdc\xf0\xb9\xab\x02\xab\xc5\x7a\xec\xbb\xf2\x55\x8a\xd0\x85\xd7\x84\xe6\x0b\xa5\x89\xec\xaf\xb8\xb9\x50\x73\xa6\x40\xf6\x53\x7d\xce\xc4\x68\xe4\xba\x9f\x32\xd9\x9f\xf3\x25\x3f\x4f\x0d\xb7\x0d\xa4\x2e\x79\xc6\xce\x48\x0a\x12\xdb\x9c\x61\x2b\x33\xc6\xd8\x86\xce\x94\x34\x42\x6e\x78\x68\x60\x96\xe7\xb6\x07\x92\xdf\x18\xdb\x81\xd0\x0e\x95\xfd\x8c\x4b\xc3\x64\xff\xd4\xff\xa7\xfa\x7c\xc4\x97\x19\xef\xd4\x3a\x5c\xe4\xc7\x71\x34\xe0\x58\x81\x91\x66\x95\x81\xbb\x21\x8c\x64\x7f\x2e\xb2\x75\x6a\x66\x17\x47\x37\x33\xbe\x46\x48\xe3\x17\x9a\xdb\x86\x22\xd7\xc3\x6a\x2b\x71\x2c\xfb\xe9\x99\xde\xac\x0d\x09\x5f\x5d\x5d\x74\xa4\x59\x65\x72\x10\x11\x2c\x59\xe6\xa7\x19\xe1\x2e\x95\x5e\xa5\x4b\x5b\xdb\xb2\x8f\x8b\xc5\xf6\x58\x5b\xe0\x29\xc9\xc7\x95\xde\x25\xe5\x30\x3e\x08\xbe\x9c\x47\xb0\x44\x88\xb7\x40\x6f\x7b\x95\x2e\x37\x3c\xc1\xef\x60\xeb\x49\x5c\x75\x79\x5e\x42\xc8\xb5\x16\xc7\xa4\x09\x02\x3f\xa1\x3e\xa7\x9f\xd6\xa5\x1b\x7f\x9e\x13\x03\x12\x52\x0a\x22\x2f\xb6\x4a\x18\xce\xd6\xe8\x5b\x8f\x45\xb6\xb6\xee\x24\x8c\x0d\x52\x7d\x9e\x98\xfe\x2c\x5d\x2e\x89\xcd\x98\xe7\x33\x0b\x5d\x8b\x20\x6a\xd9\x7d\x8b\x98\x3b\xcf\x73\xd3\xbf\xd6\xe9\x9a\xcd\x10\x6a\x1b\x56\x45\x59\x4b\x42\xb7\x65\x07\x16\xb5\xb7\xb9\x7d\xb3\x45\xd6\xb6\xc8\x7a\xa2\xa6\xac\x82\x97\x03\x96\xbb\x10\x59\x8e\x15\x5f\x84\x7d\x7b\xce\xcd\x9b\xb0\x63\x5f\x2f\x60\xc5\x2e\xe2\xf8\x82\x5c\x90\x23\x32\x99\x52\x4a\x47\xab\x38\x5e\x75\x99\xc5\x03\xd2\x0d\x65\x05\x8a\xc6\x31\x59\xb3\x15\xc5\x9a\xae\xd8\xbc\xdc\xf3\x6c\x59\x79\xae\x63\x86\x35\x2d\x07\x72\x6e\x81\x30\x71\xcb\x1c\x02\x00\xc2\x1a\x9a\xf6\x17\x4a\x1f\xa5\xb3\x8b\x0a\x9a\xe5\x74\x6b\x26\x7c\x5a\xc3\xb2\x95\x31\x05\x8c\x42\x38\x18\x9a\xe7\x94\x96\x70\xb9\x75\x68\x1e\x51\xcb\xa8\x9a\x97\xd5\xf1\x49\x51\x20\x2d\xc1\x65\x51\x49\x15\xd9\x6b\x48\xe9\xb6\x5b\xe4\xd4\xb6\x24\xa4\x30\x73\xd5\x6f\xec\x0a\x9f\xa8\x29\x18\x10\x6e\x91\xbb\x81\x75\x19\xdb\xf8\x35\xee\x36\xc2\x06\x17\xe8\x82\x2d\xfb\xb8\x60\x0b\xfc\x16\xc7\x91\x42\x90\x95\xa4\x60\x51\x80\x7d\x01\xd1\xe9\x69\x7a\x9d\x0a\x13\xd1\x31\xef\x6b\x9e\xa9\xe5\x15\x27\x8b\xbe\x4f\xa5\x7d\x73\xc1\x65\x9d\x32\x69\x8f\x49\xc0\x60\x2f\x73\x0a\xcd\xcf\x1e\xf4\xe1\x3b\x4d\x2a\x35\xb7\xd5\xe8\xbb\xcc\x0c\xa4\x64\xb9\x5f\xa1\x1b\x48\x4b\xbd\xf9\x8c\x6c\xdc\x5e\x42\x98\x59\x40\xda\xd4\x50\x80\xe9\xb1\x76\xad\xa5\x90\xd2\x24\x25\x34\x2f\x67\xf0\xac\x9c\x41\xc9\x4c\x41\x08\x27\xdc\xef\xd9\xa9\x85\xf5\x95\x12\xf3\xce\xc0\x22\x27\xc4\x24\xbc\x40\xc2\x4c\x6e\x96\x4b\x28\x11\x00\xaf\xa2\xc8\xb2\xb6\xbe\xeb\x4a\x1c\x13\x5e\xa0\x82\x80\xd3\x38\xe2\x02\xd7\x02\xb8\xde\xb4\x55\x48\xfd\x68\x36\x23\xde\xc4\x26\xae\x06\xbb\x9c\xde\xde\xae\xb9\xa7\x4e\x6f\x2f\x78\x27\x34\xdf\x99\x2b\x9e\x75\xa4\x32\x9d\xb5\x56\x57\x62\xce\x3b\x69\xe7\x3f\xb1\xf0\x7f\x76\x5c\x5d\x51\x01\xad\x4d\xee\xe8\x64\x46\x24\x94\x03\x70\x6d\x54\xd7\x9d\xc5\xf7\x6e\xdd\xf9\x82\x77\x74\x4b\xe3\x72\x6c\x42\x6c\x33\x72\x0c\x00\x7e\x0d\x4b\x54\x8d\x95\x43\xd0\x84\x4f\x8c\x5d\x29\x9b\xa5\x79\x95\xae\xf8\x94\x29\xb7\x30\x80\xf7\xed\x8a\x63\x06\xff\x5e\xa8\x59\xb1\xab\xbb\x25\xa4\x6a\x40\x76\x0b\xb4\x0a\x62\xba\xdf\x17\x9a\xa8\x84\xfc\x35\xa8\x16\x10\x75\xbd\xb3\x94\xdf\x82\x35\x95\x1d\xbf\xb7\xda\xaa\x2f\x17\xdb\x75\xc9\xbf\x59\xc4\xfe\x42\xcd\x12\x33\x19\x4c\xf3\xd1\xb0\x23\x64\xc7\x60\xd7\x11\x8d\xLine truncated
func init() {
err := CTX.Err()
@@ -78,32 +75,6 @@ func init() {
panic(err)
}
rb = bytes.NewReader(FileAccountsJsMap)
r, err = gzip.NewReader(rb)
if err != nil {
panic(err)
}
err = r.Close()
if err != nil {
panic(err)
}
f, err = FS.OpenFile(CTX, "accounts.js.map", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
if err != nil {
panic(err)
}
_, err = io.Copy(f, r)
if err != nil {
panic(err)
}
err = f.Close()
if err != nil {
panic(err)
}
Handler = &webdav.Handler{
FileSystem: FS,
LockSystem: webdav.NewMemLS(),
+1
View File
@@ -2,6 +2,7 @@ package command
import (
"fmt"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/client/grpc"
"github.com/owncloud/ocis/accounts/pkg/config"
+1 -1
View File
@@ -98,7 +98,7 @@ func ParseConfig(c *cli.Context, cfg *config.Config) error {
switch err.(type) {
case viper.ConfigFileNotFoundError:
logger.Info().
Msg("Continue without config")
Msg("no config found on preconfigured location")
case viper.UnsupportedConfigError:
logger.Fatal().
Err(err).
+4 -4
View File
@@ -57,8 +57,8 @@ func Server(cfg *config.Config) *cli.Command {
http.Context(ctx),
http.Config(cfg),
http.Metrics(mtrcs),
http.Flags(flagset.RootWithConfig(cfg)),
http.Flags(flagset.ServerWithConfig(cfg)),
http.Flags(flagset.RootWithConfig(config.New())),
http.Flags(flagset.ServerWithConfig(config.New())),
http.Handler(handler),
)
@@ -83,8 +83,8 @@ func Server(cfg *config.Config) *cli.Command {
gr.Add(func() error {
logger.Info().Str("service", server.Name()).Msg("Reporting settings bundles to settings service")
go svc.RegisterSettingsBundles(&logger)
go svc.RegisterPermissions(&logger)
svc.RegisterSettingsBundles(&logger)
svc.RegisterPermissions(&logger)
return server.Run()
}, func(_ error) {
logger.Info().
+3 -2
View File
@@ -4,8 +4,9 @@ import (
"fmt"
"os"
"github.com/owncloud/ocis/ocis-pkg/registry"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/registry/mdns"
tw "github.com/olekukonko/tablewriter"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
@@ -18,7 +19,7 @@ func PrintVersion(cfg *config.Config) *cli.Command {
Usage: "Print the versions of the running instances",
Flags: flagset.ListAccountsWithConfig(cfg),
Action: func(c *cli.Context) error {
reg := mdns.NewRegistry()
reg := *registry.GetRegistry()
services, err := reg.GetService(cfg.GRPC.Namespace + "." + cfg.Server.Name)
if err != nil {
fmt.Println(fmt.Errorf("could not get accounts services from the registry: %v", err))
+2
View File
@@ -29,6 +29,7 @@ type HTTP struct {
Addr string
Namespace string
Root string
CacheTTL int
}
// GRPC defines the available grpc configuration.
@@ -42,6 +43,7 @@ type Server struct {
Version string
Name string
AccountsDataPath string
HashDifficulty int
}
// Asset defines the available asset configuration.
+14
View File
@@ -57,6 +57,13 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"ACCOUNTS_HTTP_ROOT"},
Destination: &cfg.HTTP.Root,
},
&cli.IntFlag{
Name: "http-cache-ttl",
Value: 604800, // 7 days
Usage: "Set the static assets caching duration in seconds",
EnvVars: []string{"ACCOUNTS_CACHE_TTL"},
Destination: &cfg.HTTP.CacheTTL,
},
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
@@ -85,6 +92,13 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"ACCOUNTS_DATA_PATH"},
Destination: &cfg.Server.AccountsDataPath,
},
&cli.IntFlag{
Name: "accounts-hash-difficulty",
Value: 11,
Usage: "accounts password hash difficulty",
EnvVars: []string{"ACCOUNTS_HASH_DIFFICULTY"},
Destination: &cfg.Server.HashDifficulty,
},
&cli.StringFlag{
Name: "asset-path",
Value: "",
@@ -630,7 +630,7 @@ func TestListAccounts(t *testing.T) {
assert.NoError(t, err)
assert.IsType(t, &proto.ListAccountsResponse{}, resp)
assert.Equal(t, 8, len(resp.Accounts))
assert.Equal(t, 9, len(resp.Accounts))
assertResponseContainsUser(t, resp, getAccount("user1"))
assertResponseContainsUser(t, resp, getAccount("user2"))
@@ -642,8 +642,8 @@ func TestListWithoutUserCreation(t *testing.T) {
resp, err := listAccounts(t)
assert.NoError(t, err)
// Only 5 default users
assert.Equal(t, 6, len(resp.Accounts))
// Only 7 default users
assert.Equal(t, 7, len(resp.Accounts))
cleanUp(t)
}
+2 -1
View File
@@ -29,7 +29,7 @@ func Server(opts ...Option) http.Service {
mux.Use(middleware.RealIP)
mux.Use(middleware.RequestID)
mux.Use(middleware.Cache)
mux.Use(middleware.NoCache)
mux.Use(middleware.Cors)
mux.Use(middleware.Secure)
mux.Use(middleware.ExtractAccountUUID(
@@ -52,6 +52,7 @@ func Server(opts ...Option) http.Service {
assets.Logger(options.Logger),
assets.Config(options.Config),
),
options.Config.HTTP.CacheTTL,
))
mux.Route(options.Config.HTTP.Root, func(r chi.Router) {
+147 -118
View File
@@ -1,8 +1,13 @@
package service
import (
"bytes"
"context"
"crypto/sha256"
"encoding/hex"
"fmt"
"github.com/owncloud/ocis/ocis-pkg/cache"
"golang.org/x/crypto/bcrypt"
"path"
"regexp"
"strconv"
@@ -16,26 +21,27 @@ import (
"github.com/golang/protobuf/ptypes/empty"
fieldmask_utils "github.com/mennanov/fieldmask-utils"
merrors "github.com/micro/go-micro/v2/errors"
"github.com/micro/go-micro/v2/metadata"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/accounts/pkg/storage"
"github.com/owncloud/ocis/ocis-pkg/middleware"
"github.com/owncloud/ocis/ocis-pkg/roles"
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
settings_svc "github.com/owncloud/ocis/settings/pkg/service/v0"
"github.com/rs/zerolog"
"github.com/tredoe/osutil/user/crypt"
"google.golang.org/genproto/protobuf/field_mask"
"google.golang.org/protobuf/types/known/timestamppb"
// register crypt functions
_ "github.com/tredoe/osutil/user/crypt/apr1_crypt"
_ "github.com/tredoe/osutil/user/crypt/md5_crypt"
_ "github.com/tredoe/osutil/user/crypt/sha256_crypt"
_ "github.com/tredoe/osutil/user/crypt/sha512_crypt"
)
// accLock mutually exclude readers from writers on account files
var accLock sync.Mutex
// passwordValidCache caches basic auth password validations
var passwordValidCache = cache.NewCache(cache.Size(1024))
// passwordValidCacheExpiration defines the entry lifetime
const passwordValidCacheExpiration = 10 * time.Minute
// an auth request is currently hardcoded and has to match this regex
// login eq \"teddy\" and password eq \"F&1!b90t111!\"
var authQuery = regexp.MustCompile(`^login eq '(.*)' and password eq '(.*)'$`) // TODO how is ' escaped in the password?
@@ -64,10 +70,14 @@ func (s Service) hasAccountManagementPermissions(ctx context.Context) bool {
roleIDs, ok := roles.ReadRoleIDsFromContext(ctx)
if !ok {
/**
* FIXME: with this we are skipping permission checks on all requests that are coming in without roleIDs in the
* metadata context. This is a huge security impairment, as that's the case not only for grpc requests but also
* for unauthenticated http requests and http requests coming in without hitting the ocis-proxy first.
* FIXME: with this we are skipping permission checks on all requests that are coming in without roleIDs in the
* metadata context. This is a huge security impairment, as that's the case not only for grpc requests but also
* for unauthenticated http requests and http requests coming in without hitting the ocis-proxy first.
*/
// TODO add system role for internal requests.
// - at least the proxy needs to look up account info
// - glauth needs to make bind requests
// tracked as OCIS-454
return true
}
@@ -75,6 +85,17 @@ func (s Service) hasAccountManagementPermissions(ctx context.Context) bool {
return s.RoleManager.FindPermissionByID(ctx, roleIDs, AccountManagementPermissionID) != nil
}
func (s Service) hasSelfManagementPermissions(ctx context.Context) bool {
// get roles from context
roleIDs, ok := roles.ReadRoleIDsFromContext(ctx)
if !ok {
return false
}
// check if permission is present in roles of the authenticated account
return s.RoleManager.FindPermissionByID(ctx, roleIDs, SelfManagementPermissionID) != nil
}
// serviceUserToIndex temporarily adds a service user to the index, which is supposed to be removed before the lock on the handler function is released
func (s Service) serviceUserToIndex() (teardownServiceUser func()) {
if s.Config.ServiceUser.Username != "" && s.Config.ServiceUser.UUID != "" {
@@ -105,16 +126,18 @@ func (s Service) getInMemoryServiceUser() proto.Account {
// ListAccounts implements the AccountsServiceHandler interface
// the query contains account properties
func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest, out *proto.ListAccountsResponse) (err error) {
if !s.hasAccountManagementPermissions(ctx) {
hasSelf := s.hasSelfManagementPermissions(ctx)
hasManagement := s.hasAccountManagementPermissions(ctx)
if !hasSelf && !hasManagement {
return merrors.Forbidden(s.id, "no permission for ListAccounts")
}
onlySelf := hasSelf && !hasManagement
accLock.Lock()
defer accLock.Unlock()
teardownServiceUser := s.serviceUserToIndex()
defer teardownServiceUser()
match, authRequest := getAuthQueryMatch(in.Query)
if authRequest {
password := match[2]
@@ -138,14 +161,66 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
if err != nil || a.PasswordProfile == nil || len(a.PasswordProfile.Password) == 0 {
return merrors.Unauthorized(s.id, "account not found or invalid credentials")
}
if !isPasswordValid(s.log, a.PasswordProfile.Password, password) {
return merrors.Unauthorized(s.id, "account not found or invalid credentials")
// isPasswordValid uses bcrypt.CompareHashAndPassword which is slow by design.
// if every request that matches authQuery regex needs to do this step over and over again,
// this is secure but also slow. In this implementation we keep it same secure but increase the speed.
//
// flow:
// - request comes in
// - it creates a sha256 based on found account PasswordProfile.LastPasswordChangeDateTime and requested password (v)
// - it checks if the cache already contains an entry that matches found account Id // account PasswordProfile.LastPasswordChangeDateTime (k)
// - if no entry exists it runs the bcrypt.CompareHashAndPassword as before and if everything is ok it stores the
// result by the (k) as key and (v) as value. If not it errors
// - if a entry is found it checks if the given value matches (v). If it doesnt match the cache entry gets removed
// and it errors.
//
// if many concurrent requests from the same user come in within a short period of time, it's possible that e is still nil.
// This is why all this needs to be wrapped within a sync.Mutex locking to prevent calling bcrypt.CompareHashAndPassword unnecessarily too often.
{
var suspicious bool
kh := sha256.New()
kh.Write([]byte(a.Id))
k := hex.EncodeToString(kh.Sum([]byte(a.PasswordProfile.LastPasswordChangeDateTime.String())))
vh := sha256.New()
vh.Write([]byte(a.PasswordProfile.Password))
v := vh.Sum([]byte(password))
e := passwordValidCache.Get(k)
if e == nil {
suspicious = !isPasswordValid(s.log, a.PasswordProfile.Password, password)
} else if !bytes.Equal(e.V.([]byte), v) {
suspicious = true
}
if suspicious {
passwordValidCache.Unset(k)
return merrors.Unauthorized(s.id, "account not found or invalid credentials")
}
if e == nil {
passwordValidCache.Set(k, v, time.Now().Add(passwordValidCacheExpiration))
}
}
a.PasswordProfile.Password = ""
out.Accounts = []*proto.Account{a}
return nil
}
if onlySelf {
// limit list to own account id
if aid, ok := metadata.Get(ctx, middleware.AccountID); ok {
in.Query = "id eq '" + aid + "'"
} else {
return merrors.InternalServerError(s.id, "account id not in context")
}
}
if in.Query == "" {
err = s.repo.LoadAccounts(ctx, &out.Accounts)
if err != nil {
@@ -197,90 +272,17 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
}
func (s Service) findAccountsByQuery(ctx context.Context, query string) ([]string, error) {
var searchResults []string
var err error
// TODO: more explicit queries have to be on top
var onPremOrMailQuery = regexp.MustCompile(`^on_premises_sam_account_name eq '(.*)' or mail eq '(.*)'$`)
match := onPremOrMailQuery.FindStringSubmatch(query)
if len(match) == 3 {
resSam, err := s.index.FindByPartial(&proto.Account{}, "OnPremisesSamAccountName", match[1]+"*")
if err != nil {
return nil, err
}
resMail, err := s.index.FindByPartial(&proto.Account{}, "Mail", match[2]+"*")
if err != nil {
return nil, err
}
searchResults = append(resSam, resMail...)
return unique(searchResults), nil
}
// startswith(on_premises_sam_account_name,'mar') or startswith(display_name,'mar') or startswith(mail,'mar')
var searchQuery = regexp.MustCompile(`^startswith\(on_premises_sam_account_name,'(.*)'\) or startswith\(display_name,'(.*)'\) or startswith\(mail,'(.*)'\)$`)
match = searchQuery.FindStringSubmatch(query)
if len(match) == 4 {
resSam, err := s.index.FindByPartial(&proto.Account{}, "OnPremisesSamAccountName", match[1]+"*")
if err != nil {
return nil, err
}
resDisp, err := s.index.FindByPartial(&proto.Account{}, "DisplayName", match[2]+"*")
if err != nil {
return nil, err
}
resMail, err := s.index.FindByPartial(&proto.Account{}, "Mail", match[3]+"*")
if err != nil {
return nil, err
}
searchResults = append(resSam, append(resDisp, resMail...)...)
return unique(searchResults), nil
}
// id eq 'marie' or on_premises_sam_account_name eq 'marie'
// id eq 'f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c' or on_premises_sam_account_name eq 'f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c'
var idOrQuery = regexp.MustCompile(`^id eq '(.*)' or on_premises_sam_account_name eq '(.*)'$`)
match = idOrQuery.FindStringSubmatch(query)
if len(match) == 3 {
qID, qSam := match[1], match[2]
tmp := &proto.Account{}
err = s.repo.LoadAccount(ctx, qID, tmp)
if err != nil && !storage.IsNotFoundErr(err) {
return nil, err
}
searchResults, err = s.index.FindBy(&proto.Account{}, "OnPremisesSamAccountName", qSam)
if err != nil {
return nil, err
}
if tmp.Id != "" {
searchResults = append(searchResults, tmp.Id)
}
return unique(searchResults), nil
}
var onPremQuery = regexp.MustCompile(`^on_premises_sam_account_name eq '(.*)'$`) // TODO how is ' escaped in the password?
match = onPremQuery.FindStringSubmatch(query)
if len(match) == 2 {
return s.index.FindBy(&proto.Account{}, "OnPremisesSamAccountName", match[1])
}
var mailQuery = regexp.MustCompile(`^mail eq '(.*)'$`)
match = mailQuery.FindStringSubmatch(query)
if len(match) == 2 {
return s.index.FindBy(&proto.Account{}, "Mail", match[1])
}
return nil, merrors.BadRequest(s.id, "unsupported query %s", query)
return s.index.Query(&proto.Account{}, query)
}
// GetAccount implements the AccountsServiceHandler interface
func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, out *proto.Account) (err error) {
if !s.hasAccountManagementPermissions(ctx) {
hasSelf := s.hasSelfManagementPermissions(ctx)
hasManagement := s.hasAccountManagementPermissions(ctx)
if !hasSelf && !hasManagement {
return merrors.Forbidden(s.id, "no permission for GetAccount")
}
onlySelf := hasSelf && !hasManagement
accLock.Lock()
defer accLock.Unlock()
@@ -289,6 +291,17 @@ func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, ou
return merrors.InternalServerError(s.id, "could not clean up account id: %v", err.Error())
}
if onlySelf {
// limit get to own account id
if aid, ok := metadata.Get(ctx, middleware.AccountID); ok {
if id != aid {
return merrors.Forbidden(s.id, "no permission for GetAccount of another user")
}
} else {
return merrors.InternalServerError(s.id, "account id not in context")
}
}
if err = s.repo.LoadAccount(ctx, id, out); err != nil {
if storage.IsNotFoundErr(err) {
return merrors.NotFound(s.id, "account not found: %v", err.Error())
@@ -344,17 +357,19 @@ func (s Service) CreateAccount(ctx context.Context, in *proto.CreateAccountReque
return merrors.InternalServerError(s.id, "could not check if account exists: %v", err.Error())
}
if exists {
return merrors.BadRequest(s.id, "account already exists")
return merrors.Conflict(s.id, "account already exists")
}
if out.PasswordProfile != nil {
if out.PasswordProfile.Password != "" {
// encrypt password
c := crypt.New(crypt.SHA512)
if out.PasswordProfile.Password, err = c.Generate([]byte(out.PasswordProfile.Password), nil); err != nil {
hashed, err := bcrypt.GenerateFromPassword([]byte(in.Account.PasswordProfile.Password), s.Config.Server.HashDifficulty)
if err != nil {
s.log.Error().Err(err).Str("id", id).Msg("could not hash password")
return merrors.InternalServerError(s.id, "could not hash password: %v", err.Error())
}
out.PasswordProfile.Password = string(hashed)
in.Account.PasswordProfile.Password = ""
}
if err := passwordPoliciesValid(out.PasswordProfile.PasswordPolicies); err != nil {
@@ -374,7 +389,7 @@ func (s Service) CreateAccount(ctx context.Context, in *proto.CreateAccountReque
indexResults, err := s.index.Add(out)
if err != nil {
s.rollbackCreateAccount(ctx, out)
return merrors.BadRequest(s.id, "Account already exists %v", err.Error())
return merrors.Conflict(s.id, "Account already exists %v", err.Error())
}
s.log.Debug().Interface("account", out).Msg("account after indexing")
@@ -446,9 +461,12 @@ func (s Service) rollbackCreateAccount(ctx context.Context, acc *proto.Account)
// read only fields are ignored
// TODO how can we unset specific values? using the update mask
func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountRequest, out *proto.Account) (err error) {
if !s.hasAccountManagementPermissions(ctx) {
hasSelf := s.hasSelfManagementPermissions(ctx)
hasManagement := s.hasAccountManagementPermissions(ctx)
if !hasSelf && !hasManagement {
return merrors.Forbidden(s.id, "no permission for UpdateAccount")
}
onlySelf := hasSelf && !hasManagement
accLock.Lock()
defer accLock.Unlock()
@@ -464,6 +482,17 @@ func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountReque
return merrors.InternalServerError(s.id, "could not clean up account id: %v", err.Error())
}
if onlySelf {
// limit update to own account id
if aid, ok := metadata.Get(ctx, middleware.AccountID); ok {
if id != aid {
return merrors.Forbidden(s.id, "no permission to UpdateAccount of another user")
}
} else {
return merrors.InternalServerError(s.id, "account id not in context")
}
}
if err = s.repo.LoadAccount(ctx, id, out); err != nil {
if storage.IsNotFoundErr(err) {
return merrors.NotFound(s.id, "account not found: %v", err.Error())
@@ -471,7 +500,6 @@ func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountReque
s.log.Error().Err(err).Str("id", id).Msg("could not load account")
return merrors.InternalServerError(s.id, "could not load account: %v", err.Error())
}
t := time.Now()
@@ -480,9 +508,15 @@ func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountReque
Nanos: int32(t.Nanosecond()),
}
validMask, err := validateUpdate(in.UpdateMask, updatableAccountPaths)
if err != nil {
return merrors.BadRequest(s.id, "%s", err)
var validMask fieldmask_utils.FieldFilterContainer
if onlySelf {
if validMask, err = validateUpdate(in.UpdateMask, selfUpdatableAccountPaths); err != nil {
return merrors.BadRequest(s.id, "%s", err)
}
} else {
if validMask, err = validateUpdate(in.UpdateMask, updatableAccountPaths); err != nil {
return merrors.BadRequest(s.id, "%s", err)
}
}
if _, exists := validMask.Filter("PreferredName"); exists {
@@ -513,13 +547,13 @@ func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountReque
}
if in.Account.PasswordProfile.Password != "" {
// encrypt password
c := crypt.New(crypt.SHA512)
if out.PasswordProfile.Password, err = c.Generate([]byte(in.Account.PasswordProfile.Password), nil); err != nil {
hashed, err := bcrypt.GenerateFromPassword([]byte(in.Account.PasswordProfile.Password), s.Config.Server.HashDifficulty)
if err != nil {
in.Account.PasswordProfile.Password = ""
s.log.Error().Err(err).Str("id", id).Msg("could not hash password")
return merrors.InternalServerError(s.id, "could not hash password: %v", err.Error())
}
out.PasswordProfile.Password = string(hashed)
in.Account.PasswordProfile.Password = ""
}
@@ -566,6 +600,14 @@ func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountReque
return
}
// whitelist of all paths/fields which can be updated by users themself
var selfUpdatableAccountPaths = map[string]struct{}{
"DisplayName": {},
"Description": {},
"Mail": {}, // read only?,
"PasswordProfile.Password": {},
}
// whitelist of all paths/fields which can be updated by clients
var updatableAccountPaths = map[string]struct{}{
"AccountEnabled": {},
@@ -762,18 +804,6 @@ func (s Service) debugLogAccount(a *proto.Account) *zerolog.Event {
})
}
func unique(strSlice []string) []string {
keys := make(map[string]bool)
list := []string{}
for _, entry := range strSlice {
if _, value := keys[entry]; !value {
keys[entry] = true
list = append(list, entry)
}
}
return list
}
func (s Service) accountExists(ctx context.Context, username, mail, id string) (exists bool, err error) {
var ids []string
ids, err = s.index.FindBy(&proto.Account{}, "preferred_name", username)
@@ -823,6 +853,5 @@ func isPasswordValid(logger log.Logger, hash string, pwd string) (ok bool) {
}
}()
c := crypt.NewFromHash(hash)
return c.Verify(hash, []byte(pwd)) == nil
return bcrypt.CompareHashAndPassword([]byte(hash), []byte(pwd)) == nil
}
+30 -15
View File
@@ -50,25 +50,30 @@ func (s Service) deflateMembers(g *proto.Group) {
}
// ListGroups implements the GroupsServiceHandler interface
func (s Service) ListGroups(c context.Context, in *proto.ListGroupsRequest, out *proto.ListGroupsResponse) (err error) {
var searchResults []string
out.Groups = make([]*proto.Group, 0)
func (s Service) ListGroups(ctx context.Context, in *proto.ListGroupsRequest, out *proto.ListGroupsResponse) (err error) {
if in.Query == "" {
searchResults, _ = s.index.FindByPartial(&proto.Group{}, "DisplayName", "*")
err = s.repo.LoadGroups(ctx, &out.Groups)
if err != nil {
s.log.Err(err).Msg("failed to load all groups from storage")
return merrors.InternalServerError(s.id, "failed to load all groups")
}
for i := range out.Groups {
a := out.Groups[i]
// TODO add accounts only if requested
// if in.FieldMask ...
s.expandMembers(a)
}
return nil
}
/*
var startsWithIDQuery = regexp.MustCompile(`^startswith\(id,'(.*)'\)$`)
match := startsWithIDQuery.FindStringSubmatch(in.Query)
if len(match) == 2 {
searchResults = []string{match[1]}
}
*/
searchResults, err := s.findGroupsByQuery(ctx, in.Query)
out.Groups = make([]*proto.Group, 0, len(searchResults))
for _, hit := range searchResults {
g := &proto.Group{}
if err = s.repo.LoadGroup(c, hit, g); err != nil {
if err = s.repo.LoadGroup(ctx, hit, g); err != nil {
s.log.Error().Err(err).Str("group", hit).Msg("could not load group, skipping")
continue
}
@@ -83,6 +88,9 @@ func (s Service) ListGroups(c context.Context, in *proto.ListGroupsRequest, out
return
}
func (s Service) findGroupsByQuery(ctx context.Context, query string) ([]string, error) {
return s.index.Query(&proto.Group{}, query)
}
// GetGroup implements the GroupsServiceHandler interface
func (s Service) GetGroup(c context.Context, in *proto.GetGroupRequest, out *proto.Group) (err error) {
@@ -249,8 +257,11 @@ func (s Service) AddMember(c context.Context, in *proto.AddMemberRequest, out *p
alreadyRelated = true
}
}
aref := &proto.Account{
Id: a.Id,
}
if !alreadyRelated {
g.Members = append(g.Members, a)
g.Members = append(g.Members, aref)
}
// check if we need to add the group to the account
@@ -261,8 +272,12 @@ func (s Service) AddMember(c context.Context, in *proto.AddMemberRequest, out *p
break
}
}
// only store the reference to prevent recurision when marshaling json
gref := &proto.Group{
Id: g.Id,
}
if !alreadyRelated {
a.MemberOf = append(a.MemberOf, g)
a.MemberOf = append(a.MemberOf, gref)
}
if err = s.repo.WriteAccount(c, a); err != nil {
+12 -4
View File
@@ -6,10 +6,10 @@ import (
"github.com/owncloud/ocis/accounts/pkg/storage"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/indexer"
"github.com/owncloud/ocis/accounts/pkg/indexer/option"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/ocis-pkg/indexer"
"github.com/owncloud/ocis/ocis-pkg/indexer/config"
"github.com/owncloud/ocis/ocis-pkg/indexer/option"
)
// RebuildIndex deletes all indices (in memory and on storage) and rebuilds them from scratch.
@@ -18,7 +18,11 @@ func (s Service) RebuildIndex(ctx context.Context, request *proto.RebuildIndexRe
return fmt.Errorf("failed to delete index containers: %w", err)
}
if err := recreateContainers(s.index, s.Config); err != nil {
c, err := configFromSvc(s.Config)
if err != nil {
return err
}
if err := recreateContainers(s.index, c); err != nil {
return fmt.Errorf("failed to recreate index containers: %w", err)
}
@@ -32,6 +36,10 @@ func (s Service) RebuildIndex(ctx context.Context, request *proto.RebuildIndexRe
// recreateContainers adds all indices to the indexer that we have for this service.
func recreateContainers(idx *indexer.Indexer, cfg *config.Config) error {
// Accounts
if err := idx.AddIndex(&proto.Account{}, "Id", "Id", "accounts", "non_unique", nil, true); err != nil {
return err
}
if err := idx.AddIndex(&proto.Account{}, "DisplayName", "Id", "accounts", "non_unique", nil, true); err != nil {
return err
}
+31 -9
View File
@@ -3,7 +3,8 @@ package service
import (
"context"
mclient "github.com/micro/go-micro/v2/client"
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
olog "github.com/owncloud/ocis/ocis-pkg/log"
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
ssvc "github.com/owncloud/ocis/settings/pkg/service/v0"
@@ -11,29 +12,31 @@ import (
const (
// AccountManagementPermissionID is the hardcoded setting UUID for the account management permission
AccountManagementPermissionID string = "8e587774-d929-4215-910b-a317b1e80f73"
AccountManagementPermissionID string = "8e587774-d929-4215-910b-a317b1e80f73"
// AccountManagementPermissionName is the hardcoded setting name for the account management permission
AccountManagementPermissionName string = "account-management"
// GroupManagementPermissionID is the hardcoded setting UUID for the group management permission
GroupManagementPermissionID string = "522adfbe-5908-45b4-b135-41979de73245"
GroupManagementPermissionID string = "522adfbe-5908-45b4-b135-41979de73245"
// GroupManagementPermissionName is the hardcoded setting name for the group management permission
GroupManagementPermissionName string = "group-management"
GroupManagementPermissionName string = "group-management"
// SelfManagementPermissionID is the hardcoded setting UUID for the self management permission
SelfManagementPermissionID string = "e03070e9-4362-4cc6-a872-1c7cb2eb2b8e"
// SelfManagementPermissionName is the hardcoded setting name for the self management permission
SelfManagementPermissionName string = "self-management"
)
// RegisterPermissions registers permissions for account management and group management with the settings service.
func RegisterPermissions(l *olog.Logger) {
// TODO this won't work with a registry other than mdns. Look into Micro's client initialization.
// https://github.com/owncloud/ocis-proxy/issues/38
service := settings.NewBundleService("com.owncloud.api.settings", mclient.DefaultClient)
service := settings.NewBundleService("com.owncloud.api.settings", grpc.DefaultClient)
permissionRequests := generateAccountManagementPermissionsRequests()
for i := range permissionRequests {
res, err := service.AddSettingToBundle(context.Background(), &permissionRequests[i])
bundleID := permissionRequests[i].BundleId
if err != nil {
l.Err(err).Str("bundle", bundleID).Str("setting", permissionRequests[i].Setting.Id).Msg("error adding setting to bundle")
l.Err(err).Str("bundle", bundleID).Str("setting", permissionRequests[i].Setting.Id).Msg("error adding permission to bundle")
} else {
l.Info().Str("bundle", bundleID).Str("setting", res.Setting.Id).Msg("successfully added setting to bundle")
l.Info().Str("bundle", bundleID).Str("setting", res.Setting.Id).Msg("successfully added permission to bundle")
}
}
}
@@ -78,5 +81,24 @@ func generateAccountManagementPermissionsRequests() []settings.AddSettingToBundl
},
},
},
{
BundleId: ssvc.BundleUUIDRoleUser,
Setting: &settings.Setting{
Id: SelfManagementPermissionID,
Name: SelfManagementPermissionName,
DisplayName: "Self Management",
Description: "This permission gives access to self management.",
Resource: &settings.Resource{
Type: settings.Resource_TYPE_USER,
Id: "me",
},
Value: &settings.Setting_PermissionValue{
PermissionValue: &settings.Permission{
Operation: settings.Permission_OPERATION_READWRITE,
Constraint: settings.Permission_CONSTRAINT_OWN,
},
},
},
},
}
}
+93 -15
View File
@@ -9,12 +9,14 @@ import (
"strings"
"time"
"github.com/owncloud/ocis/accounts/pkg/indexer"
"github.com/owncloud/ocis/accounts/pkg/storage"
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
"github.com/owncloud/ocis/accounts/pkg/storage"
"github.com/owncloud/ocis/ocis-pkg/indexer"
idxcfg "github.com/owncloud/ocis/ocis-pkg/indexer/config"
idxerrs "github.com/owncloud/ocis/ocis-pkg/indexer/errors"
mclient "github.com/micro/go-micro/v2/client"
"github.com/owncloud/ocis/accounts/pkg/config"
idxerrs "github.com/owncloud/ocis/accounts/pkg/indexer/errors"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/owncloud/ocis/ocis-pkg/roles"
@@ -33,9 +35,7 @@ func New(opts ...Option) (s *Service, err error) {
roleService := options.RoleService
if roleService == nil {
// https://github.com/owncloud/ocis-proxy/issues/38
// TODO this won't work with a registry other than mdns. Look into Micro's client initialization.
roleService = settings.NewRoleService("com.owncloud.api.settings", mclient.DefaultClient)
roleService = settings.NewRoleService("com.owncloud.api.settings", grpc.DefaultClient)
}
roleManager := options.RoleManager
if roleManager == nil {
@@ -73,13 +73,72 @@ func New(opts ...Option) (s *Service, err error) {
}
func (s Service) buildIndex() (*indexer.Indexer, error) {
idx := indexer.CreateIndexer(s.Config)
var indexcfg *idxcfg.Config
if err := recreateContainers(idx, s.Config); err != nil {
indexcfg, err := configFromSvc(s.Config)
if err != nil {
return nil, err
}
idx := indexer.CreateIndexer(indexcfg)
if err := recreateContainers(idx, indexcfg); err != nil {
return nil, err
}
return idx, nil
}
// configFromSvc creates an index config out of a service configuration. This intermediate step exists
// because the index config was mapped after the service config.
func configFromSvc(cfg *config.Config) (*idxcfg.Config, error) {
c := idxcfg.New()
defer func(cfg *config.Config) {
l := log.NewLogger(log.Color(cfg.Log.Color), log.Pretty(cfg.Log.Pretty), log.Level(cfg.Log.Level))
if r := recover(); r != nil {
l.Error().
Str("panic", "recovered from panic while parsing index config from service configuration").
Interface("svc_config", cfg).
Msg("recovered from panic")
}
}(cfg)
if (config.Repo{}) != cfg.Repo {
if (config.Disk{}) != cfg.Repo.Disk {
c.Repo = idxcfg.Repo{
Disk: idxcfg.Disk{
Path: cfg.Repo.Disk.Path,
},
}
}
if (config.CS3{}) != cfg.Repo.CS3 {
c.Repo = idxcfg.Repo{
CS3: idxcfg.CS3{
ProviderAddr: cfg.Repo.CS3.ProviderAddr,
DataURL: cfg.Repo.CS3.DataURL,
DataPrefix: cfg.Repo.CS3.DataPrefix,
JWTSecret: cfg.Repo.CS3.JWTSecret,
},
}
}
if (config.Index{}) != cfg.Index {
c.Index = idxcfg.Index{
UID: idxcfg.Bound{
Lower: cfg.Index.UID.Lower,
},
GID: idxcfg.Bound{
Lower: cfg.Index.GID.Lower,
},
}
}
if (config.ServiceUser{}) != cfg.ServiceUser {
c.ServiceUser = cfg.ServiceUser
}
}
return c, nil
}
func (s Service) createDefaultAccounts() (err error) {
@@ -93,7 +152,7 @@ func (s Service) createDefaultAccounts() (err error) {
UidNumber: 20000,
GidNumber: 30000,
PasswordProfile: &proto.PasswordProfile{
Password: "$6$rounds=35210$sa1u5Pmfo4cr23Vw$RJNGElaDB1D3xorWkfTEGm2Ko.o2QL3E0cimKx23MNxVWVFSkUUeRoC7FqC4RzYDNQBD6cKzovTEaDD.8TDkD.",
Password: "$2a$11$4WNffzgU/WrIRiDnwu8OnOwgOIIUqR/2Ptvp7WJAQCTSgSrylyuvC",
},
AccountEnabled: true,
MemberOf: []*proto.Group{
@@ -112,7 +171,7 @@ func (s Service) createDefaultAccounts() (err error) {
UidNumber: 20001,
GidNumber: 30000,
PasswordProfile: &proto.PasswordProfile{
Password: "$6$rounds=81434$sa1u5Pmfo4cr23Vw$W78cyL884GmuvDpxYPvSRBVzEj02T5QhTTcI8Dv4IKvMooDFGv4bwaWMkH9HfJ0wgpEBW7Lp.4Cad0xE/MYSg1",
Password: "$2a$11$Wu2XcDnE6G2No8C88FVWluNHyXuQQi0cHzSe82Vni8AdwIO12fphC",
},
AccountEnabled: true,
MemberOf: []*proto.Group{
@@ -131,7 +190,7 @@ func (s Service) createDefaultAccounts() (err error) {
UidNumber: 20002,
GidNumber: 30000,
PasswordProfile: &proto.PasswordProfile{
Password: "$6$rounds=5524$sa1u5Pmfo4cr23Vw$58bQVL/JeUlwM0RY21YKAFMvKvwKLLysGllYXox.vwKT5dHMwdzJjCxwTDMnB2o2pwexC8o/iOXyP2zrhALS40",
Password: "$2a$11$6Lak4zh1xUkpObg2rrOotOTdQYGj2Uu/sowcVLhub.8qYIr.CxzEW",
},
AccountEnabled: true,
MemberOf: []*proto.Group{
@@ -151,7 +210,23 @@ func (s Service) createDefaultAccounts() (err error) {
UidNumber: 20003,
GidNumber: 30000,
PasswordProfile: &proto.PasswordProfile{
Password: "$6$rounds=47068$lhw6odzXW0LTk/ao$GgxS.pIgP8jawLJBAiyNor2FrWzrULF95PwspRkli2W3VF.4HEwTYlQfRXbNQBMjNCEcEYlgZo3a.kRz2k2N0/",
Password: "$2a$11$jvI6PHuvrimpcCHzL2Q2WOqfm1FGdYAuSYZBDahr/B48fpiFxyDy2",
},
AccountEnabled: true,
MemberOf: []*proto.Group{
{Id: "509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"}, // users
},
},
{
Id: "ddc2004c-0977-11eb-9d3f-a793888cd0f8",
PreferredName: "admin",
OnPremisesSamAccountName: "admin",
Mail: "admin@example.org",
DisplayName: "Admin",
UidNumber: 20004,
GidNumber: 30000,
PasswordProfile: &proto.PasswordProfile{
Password: "$2a$11$En9VIUtqOdDyUl.LuUq2KeuBb5A2n8zE0lkJ2v6IDRSaOamhNq6Uu",
},
AccountEnabled: true,
MemberOf: []*proto.Group{
@@ -168,7 +243,7 @@ func (s Service) createDefaultAccounts() (err error) {
UidNumber: 10000,
GidNumber: 15000,
PasswordProfile: &proto.PasswordProfile{
Password: "$6$rounds=9746$sa1u5Pmfo4cr23Vw$2hnwpkTvUkWX0v6mh8Aw1pbzEXa9EUJzmrey4g2W/8arwWCwhteqU//3aWnA3S0d5T21fOKYteoqlsN1IbTcN.",
Password: "$2a$11$ntoTP2W/kyQIuoYpH5mRBuNzaEERYWSwn/zCsY5rtffen4d41y9.6",
},
AccountEnabled: true,
MemberOf: []*proto.Group{
@@ -184,7 +259,7 @@ func (s Service) createDefaultAccounts() (err error) {
UidNumber: 10001,
GidNumber: 15000,
PasswordProfile: &proto.PasswordProfile{
Password: "$6$rounds=91087$sa1u5Pmfo4cr23Vw$wPC3BbMTbP/ytlo0p.f99zJifyO70AUCdKIK9hkhwutBKGCirLmZs/MsWAG6xHjVvmnmHN5NoON7FUGv5pPaN.",
Password: "$2a$11$40xzy3rO8Tq4j2VkFbKz8Ow19BRaqaixEjAR0IbvQXxtOvMtkjwzy",
},
AccountEnabled: true,
MemberOf: []*proto.Group{
@@ -233,6 +308,9 @@ func (s Service) createDefaultAccounts() (err error) {
assignRoleToUser("058bff95-6708-4fe5-91e4-9ea3d377588b", settings_svc.BundleUUIDRoleAdmin, s.RoleService, s.log)
for _, accountID := range []string{
"058bff95-6708-4fe5-91e4-9ea3d377588b", //moss
"ddc2004c-0977-11eb-9d3f-a793888cd0f8", //admin
"820ba2a1-3f54-4538-80a4-2d73007e30bf", //konnectd
"bc596f3c-c955-4328-80a0-60d018b4ad57", //reva
} {
assignRoleToUser(accountID, settings_svc.BundleUUIDRoleAdmin, s.RoleService, s.log)
}
+2 -4
View File
@@ -3,8 +3,8 @@ package service
import (
"context"
mclient "github.com/micro/go-micro/v2/client"
olog "github.com/owncloud/ocis/ocis-pkg/log"
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
ssvc "github.com/owncloud/ocis/settings/pkg/service/v0"
)
@@ -15,9 +15,7 @@ const (
// RegisterSettingsBundles pushes the settings bundle definitions for this extension to the ocis-settings service.
func RegisterSettingsBundles(l *olog.Logger) {
// TODO this won't work with a registry other than mdns. Look into Micro's client initialization.
// https://github.com/owncloud/ocis-proxy/issues/38
service := settings.NewBundleService("com.owncloud.api.settings", mclient.DefaultClient)
service := settings.NewBundleService("com.owncloud.api.settings", grpc.DefaultClient)
bundleRequests := []settings.SaveBundleRequest{
generateBundleProfileRequest(),
+18 -10
View File
@@ -73,15 +73,19 @@ func (r DiskRepo) LoadAccount(ctx context.Context, id string, a *proto.Account)
// LoadAccounts loads all the accounts from the local filesystem
func (r DiskRepo) LoadAccounts(ctx context.Context, a *[]*proto.Account) (err error) {
root := filepath.Join(r.cfg.Repo.Disk.Path, accountsFolder)
return filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
infos, err := ioutil.ReadDir(root)
if err != nil {
return err
}
for i := range infos {
acc := &proto.Account{}
if e := r.LoadAccount(ctx, filepath.Base(path), acc); e != nil {
if e := r.LoadAccount(ctx, infos[i].Name(), acc); e != nil {
r.log.Err(e).Msg("could not load account")
return nil
continue
}
*a = append(*a, acc)
return nil
})
}
return nil
}
// DeleteAccount from the local filesystem
@@ -135,15 +139,19 @@ func (r DiskRepo) LoadGroup(ctx context.Context, id string, g *proto.Group) (err
// LoadGroups loads all the groups from the local filesystem
func (r DiskRepo) LoadGroups(ctx context.Context, g *[]*proto.Group) (err error) {
root := filepath.Join(r.cfg.Repo.Disk.Path, groupsFolder)
return filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
infos, err := ioutil.ReadDir(root)
if err != nil {
return err
}
for i := range infos {
grp := &proto.Group{}
if e := r.LoadGroup(ctx, filepath.Base(path), grp); e != nil {
if e := r.LoadGroup(ctx, infos[i].Name(), grp); e != nil {
r.log.Err(e).Msg("could not load group")
return nil
continue
}
*g = append(*g, grp)
return nil
})
}
return nil
}
// DeleteGroup from the local filesystem
+78
View File
@@ -0,0 +1,78 @@
---
title: "Configuration"
date: "{{ date "2006-01-02T15:04:05-0700" now }}"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/accounts/templates
geekdocFilePath: CONFIGURATION.tmpl
---
{{- define "options"}}
{{ $fnName := (last . ).Flags -}}
{{ range $opt := first . }}{{ with list $fnName $opt -}}
{{ $o := last . -}}
{{ if eq $o.FnName $fnName -}}
--{{ $o.Name }} | ${{ index $o.Env 0 }}
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end }}
{{`{{< toc >}}`}}
## Configuration
oCIS Single Binary is not responsible for configuring extensions. Instead, each extension could either be configured by environment variables, cli flags or config files.
Each extension has its dedicated documentation page (e.g. https://owncloud.github.io/extensions/ocis_accounts/configuration) which lists all possible configurations. Config files and environment variables are picked up if you use the `./bin/ocis server` command within the oCIS single binary. Command line flags must be set explicitly on the extensions subcommands.
### Configuration using config files
Out of the box extensions will attempt to read configuration details from:
```console
/etc/ocis
$HOME/.ocis
./config
```
For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-accounts reads `accounts.json | yaml | toml ...`*.
So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`.
### Environment variables
If you prefer to configure the service with environment variables you can see the available variables below.
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
{{ $options := .Options -}}
{{ range $com := .Commands }}{{ with (list $options $com) -}}
{{ $c := last . -}}
{{ if eq $c.Name "accounts" -}}
## Root Command
{{ $c.Usage }}
Usage: `accounts [global options] command [command options] [arguments...]`
{{ template "options" . -}}
## Sub Commands
{{ end -}}
{{ end -}}
{{ end -}}
{{- range $com := .Commands }}{{ with (list $options $com) -}}
{{- $c := last . }}
{{- if ne $c.Name "accounts" -}}
### accounts {{ $c.Name }}
{{ $c.Usage }}
Usage: `accounts {{ $c.Name }} [command options] [arguments...]`
{{ template "options" . }}
{{- end -}}
{{- end -}}
{{- end -}}
+2 -2
View File
@@ -1,6 +1,6 @@
<template>
<div>
<div class="uk-flex uk-flex-column" id="accounts-app">
<div class="uk-flex uk-flex-column uk-height-1-1" id="accounts-app">
<template v-if="isInitialized">
<div class="oc-app-bar">
<accounts-batch-actions
@@ -10,7 +10,7 @@
/>
<accounts-create v-else />
</div>
<oc-grid class="uk-height-1-1 uk-flex-1 uk-overflow-auto">
<oc-grid class="uk-flex-1 uk-overflow-auto">
<div class="uk-width-expand">
<accounts-list :accounts="accounts" />
</div>
@@ -18,11 +18,13 @@ Feature: Accounts
When the user reloads the current page of the webUI
Then the displayed role of user "einstein" should be "Admin" on the WebUI
@skip @issue-product-167
Scenario: regular user should not be able to see accounts list
Given user "Marie" has logged in using the webUI
When the user browses to the accounts page
Then the user should not be able to see the accounts list on the WebUI
@skip @issue-product-167
Scenario: guest user should not be able to see accounts list
Given user "Moss" has logged in using the webUI
When the user browses to the accounts page
+6
View File
@@ -0,0 +1,6 @@
Enhancement: Update reva to v1.4.1-0.20201125172625-a5ab834a565d
Mostly to bring fixes to pressing changes.
https://github.com/cs3org/reva/pull/1320
https://github.com/cs3org/reva/pull/1338
@@ -0,0 +1,8 @@
Change: Cache password validation
Tags: accounts
The password validity check for requests like `login eq '%s' and password eq '%s'` is now cached for 10 minutes.
This improves the performance for basic auth requests.
https://github.com/owncloud/ocis/pull/958
@@ -0,0 +1,7 @@
Bugfix: Enable scrolling in accounts list
Tags: accounts
We've fixed the accounts list to enable scrolling.
https://github.com/owncloud/ocis/pull/909
@@ -0,0 +1,6 @@
Enhancement: Add basic auth option
We added a new `enable-basic-auth` option and `PROXY_ENABLE_BASIC_AUTH` environment variable that can be set to `true` to make the proxy verify the basic auth header with the accounts service. This should only be used for testing and development and is disabled by default.
https://github.com/owncloud/ocis/pull/627
https://github.com/owncloud/product/issues/198
+5
View File
@@ -0,0 +1,5 @@
Change: Add k6
add k6 as a load testing framework
https://github.com/owncloud/ocis/pull/941
@@ -0,0 +1,14 @@
Enhancement: Better adopt Go-Micro
Tags: ocis
There are a few building blocks that we were relying on default behavior, such as `micro.Registry` and the go-micro client. In order for oCIS to work in any environment and not relying in black magic configuration or running daemons we need to be able to:
- Provide with a configurable go-micro registry.
- Use our own go-micro client adjusted to our own needs (i.e: custom timeout, custom dial timeout, custom transport...)
This PR is relying on 2 env variables from Micro: `MICRO_REGISTRY` and `MICRO_REGISTRY_ADDRESS`. The latter does not make sense to provide if the registry is not `etcd`.
The current implementation only accounts for `mdns` and `etcd` registries, defaulting to `mdns` when not explicitly defined to use `etcd`.
https://github.com/owncloud/ocis/pull/840
@@ -0,0 +1,7 @@
Change: Use bcrypt to hash the user passwords
Change the hashing algorithm from SHA-512 to bcrypt since the latter is better suitable for password hashing.
This is a breaking change. Existing deployments need to regenerate the accounts folder.
https://github.com/owncloud/ocis/issues/510
@@ -0,0 +1,6 @@
Change: replace the library which scales the images
The library went out of support.
Also did some refactoring of the thumbnails service code.
https://github.com/owncloud/ocis/pull/910
@@ -0,0 +1,7 @@
Enhancement: add permission check when assigning and removing roles
Everyone could add and remove roles from users.
Added a new permission and a check so that only users with the role management permissions can assign and unassign roles.
https://github.com/owncloud/ocis/issues/879
@@ -0,0 +1,6 @@
Enhancement: Show basic-auth warning only once
Show basic-auth warning only on startup instead on every request.
https://github.com/owncloud/ocis/pull/886
@@ -0,0 +1,6 @@
Change: Enable OpenID dynamic client registration
Enable OpenID dynamic client registration
https://github.com/owncloud/ocis/issues/811
https://github.com/owncloud/ocis/pull/813
+7
View File
@@ -0,0 +1,7 @@
Bugfix: Accounts config sometimes being overwritten
Tags: accounts
Sometimes when running the accounts extensions flags were not being taken into consideration.
https://github.com/owncloud/ocis/pull/808
+5
View File
@@ -0,0 +1,5 @@
Bugfix: Make settings service start without go coroutines
The go routines cause a race condition that sometimes causes the tests to fail. The ListRoles request would not return all permissions.
https://github.com/owncloud/ocis/pull/835
@@ -0,0 +1,8 @@
Bugfix: Fix choose account dialogue
Tags: konnectd
We've fixed the choose account dialogue in konnectd bug that the user hasn't been logged in after selecting account.
https://github.com/owncloud/ocis/pull/846
@@ -0,0 +1,8 @@
Bugfix: Fix konnectd build
Tags: konnectd
We fixed the default config for konnectd and updated the Makefile to include the `yarn install`and `yarn build` steps if the static assets are missing.
https://github.com/owncloud/ocis/pull/809
+15
View File
@@ -0,0 +1,15 @@
Enhancement: Tidy dependencies
Methodology:
```
go-modules() {
find . \( -name vendor -o -name '[._].*' -o -name node_modules \) -prune -o -name go.mod -print | sed 's:/go.mod$::'
}
```
```
for m in $(go-modules); do (cd $m && go mod tidy); done
```
https://github.com/owncloud/ocis/pull/845
@@ -0,0 +1,9 @@
Bugfix: Allow consent-prompt with switch-account
Multiple prompt values are allowed and this change fixes the check for
select_account if it was used together with other prompt values. Where
select_account previously was ignored, it is now processed as required,
fixing the use case when a RP wants to trigger select_account first
while at the same time wants also to request interactive consent.
https://github.com/owncloud/ocis/pull/788
@@ -0,0 +1,5 @@
Change: Move the indexer package from ocis/accounts to ocis/ocis-pkg
We are making that change for semantic reasons. So consumers of any index don't necessarily need to know of the accounts service.
https://github.com/owncloud/ocis/pull/794
+8
View File
@@ -0,0 +1,8 @@
Change: Move ocis default config to root level
Tags: ocis
We moved the tracing config to the `root` flagset so that they are parsed on all commands. We also introduced a `JWTSecret` flag in the root flagset, in order to apply a common default JWTSecret to all services that have one.
https://github.com/owncloud/ocis/pull/842
https://github.com/owncloud/ocis/pull/843
@@ -0,0 +1,6 @@
Enhancement: add a version command to ocis
The version command was only implemented in the extensions.
This adds the version command to ocis to list all services in the ocis namespace.
https://github.com/owncloud/ocis/pull/915
@@ -7,3 +7,4 @@ service. The userid in OCS requests is in fact the username, not our internal ac
as our internal account id though, because the account id is part of various `path` formats.
https://github.com/owncloud/ocis/pull/709
https://github.com/owncloud/ocis/pull/816
@@ -0,0 +1,6 @@
Bugfix: Serve index.html for directories
The static middleware in ocis-pkg now serves index.html instead of returning 404 on paths with a trailing `/`.
https://github.com/owncloud/ocis/pull/912
https://github.com/owncloud/ocis-pkg/issues/63
+5
View File
@@ -0,0 +1,5 @@
Enhancement: Create a proxy access-log
Logs client access at the proxy
https://github.com/owncloud/ocis/pull/889
@@ -0,0 +1,7 @@
Enhancement: Cache userinfo in proxy
Tags: proxy
We introduced caching for the userinfo response. The token expiration is used for cache invalidation if available. Otherwise we fall back to a preconfigured TTL (default 10 seconds).
https://github.com/owncloud/ocis/pull/877
@@ -0,0 +1,6 @@
Enhancement: Update reva to v1.4.1-0.20201125144025-57da0c27434c
Mostly to bring fixes to pressing changes.
https://github.com/cs3org/reva/pull/1320
https://github.com/cs3org/reva/pull/1338
@@ -0,0 +1,8 @@
Change: Theme welcome and choose account pages
Tags: konnectd
We've themed the konnectd pages Welcome and Choose account.
All text has a white color now to be easily readable on the dark background.
https://github.com/owncloud/ocis/pull/887
File renamed without changes.
@@ -0,0 +1,12 @@
Change: Unify Configuration Parsing
Tags: ocis
- responsibility for config parsing should be on the subcommand
- if there is a config file in the environment location, env var should take precedence
- general rule of thumb: the more explicit the config file is that would be picked up. Order from less to more explicit:
- config location (/etc/ocis)
- environment variable
- cli flag
https://github.com/owncloud/ocis/pull/675
@@ -0,0 +1,6 @@
Enhancement: Update glauth to dev fd3ac7e4bbdc93578655d9a08d8e23f105aaa5b2
We updated glauth to dev commit fd3ac7e4bbdc93578655d9a08d8e23f105aaa5b2, which allows to
skip certificate checks for the owncloud backend.
https://github.com/owncloud/ocis/pull/834
+5
View File
@@ -0,0 +1,5 @@
Enhancement: Update glauth to dev 4f029234b2308
Includes a bugfix, don't mix graph and provisioning api.
https://github.com/owncloud/ocis/pull/786
@@ -0,0 +1,8 @@
Change: Update phoenix to v0.23.0
Tags: web
We updated phoenix to v0.23.0. Please refer to the changelog (linked) for details on the phoenix release.
https://github.com/owncloud/ocis/pull/785
https://github.com/owncloud/phoenix/releases/tag/v0.23.0
@@ -0,0 +1,8 @@
Change: Update phoenix to v0.24.0
Tags: web
We updated phoenix to v0.24.0. Please refer to the changelog (linked) for details on the phoenix release.
https://github.com/owncloud/ocis/pull/817
https://github.com/owncloud/phoenix/releases/tag/v0.24.0
@@ -0,0 +1,8 @@
Change: Update phoenix to v0.25.0
Tags: web
We updated phoenix to v0.25.0. Please refer to the changelog (linked) for details on the phoenix release.
https://github.com/owncloud/ocis/pull/868
https://github.com/owncloud/phoenix/releases/tag/v0.25.0
@@ -0,0 +1,8 @@
Change: Update phoenix to v0.26.0
Tags: web
We updated phoenix to v0.26.0. Please refer to the changelog (linked) for details on the phoenix release.
https://github.com/owncloud/phoenix/releases/tag/v0.26.0
https://github.com/owncloud/ocis/pull/935
@@ -0,0 +1,8 @@
Change: Update phoenix to v0.27.0
Tags: web
We updated phoenix to v0.27.0. Please refer to the changelog (linked) for details on the phoenix release.
https://github.com/owncloud/ocis/pull/943
https://github.com/owncloud/phoenix/releases/tag/v0.27.0
@@ -0,0 +1,22 @@
Enhancement: Update reva to v1.4.1-0.20201123062044-b2c4af4e897d
* Refactor the uploading files workflow from various clients [cs3org/reva#1285](https://github.com/cs3org/reva/pull/1285), [cs3org/reva#1314](https://github.com/cs3org/reva/pull/1314)
* [OCS] filter share with me requests [cs3org/reva#1302](https://github.com/cs3org/reva/pull/1302)
* Fix listing shares for nonexisting path [cs3org/reva#1316](https://github.com/cs3org/reva/pull/1316)
* prevent nil pointer when listing shares [cs3org/reva#1317](https://github.com/cs3org/reva/pull/1317)
* Sharee retrieves the information about a share -but gets response containing all the shares [owncloud/ocis-reva#260](https://github.com/owncloud/ocis-reva/issues/260)
* Deleting a public link after renaming a file [owncloud/ocis-reva#311](https://github.com/owncloud/ocis-reva/issues/311)
* Avoid log spam [cs3org/reva#1323](https://github.com/cs3org/reva/pull/1323), [cs3org/reva#1324](https://github.com/cs3org/reva/pull/1324)
* Fix trashbin [cs3org/reva#1326](https://github.com/cs3org/reva/pull/1326)
https://github.com/owncloud/ocis/pull/823
https://github.com/cs3org/reva/pull/1285
https://github.com/cs3org/reva/pull/1302
https://github.com/cs3org/reva/pull/1314
https://github.com/cs3org/reva/pull/1316
https://github.com/cs3org/reva/pull/1317
https://github.com/cs3org/reva/pull/1323
https://github.com/cs3org/reva/pull/1324
https://github.com/cs3org/reva/pull/1326
https://github.com/owncloud/ocis-reva/issues/260
https://github.com/owncloud/ocis-reva/issues/311
@@ -0,0 +1,7 @@
Enhancement: Update reva to v1.4.1-0.20201130061320-ac85e68e0600
* Fix move operation in ocis storage driver [csorg/reva#1343](https://github.com/cs3org/reva/pull/1343)
https://github.com/owncloud/ocis/pull/980
https://github.com/owncloud/ocis/issues/975
https://github.com/cs3org/reva/pull/1343
@@ -0,0 +1,10 @@
Enhancement: Update reva to v1.4.1-0.20201127111856-e6a6212c1b7b
Tags: reva
* Fix capabilities response for multiple client versions #1331 [cs3org/reva#1331](https://github.com/cs3org/reva/pull/1331)
* Fix home storage redirect for remote.php/dav/files [cs3org/reva#1342](https://github.com/cs3org/reva/pull/1342)
https://github.com/owncloud/ocis/pull/971
https://github.com/cs3org/reva/pull/1331
https://github.com/cs3org/reva/pull/1342
@@ -0,0 +1,8 @@
Change: Caching for static web assets
Tags: accounts, settings, web
We now set http caching headers for static web assets, so that they don't get force-reloaded on each request. The max-age for the caching is configurable and defaults to 7 days. The last modified date of the assets is set to the service start date, so that a service restart results in cache invalidation.
https://github.com/owncloud/ocis/pull/866
https://github.com/owncloud/ocis/pull/934
File renamed without changes.
@@ -1,53 +1,2 @@
# Deployment scenario ocis with external konnectd service on separate node and traefik as reverse proxy
## Setup on ocis server
* Clone ocis repository
`git clone https://github.com/owncloud/ocis.git`
* Copy example sub folder for ocisnode to /opt
`cp deployment/examples/ocis_external_konnectd/ocisnode /opt/`
* Overwrite OCIS_DOMAIN and IDP_DOMAIN in .env with your-ocis.domain.com and your-idp.domain.com
`sed -i 's/ocis.domain.com/your-ocis.domain.com/g' /opt/ocisnode/.env`
`sed -i 's/idp.domain.com/your-idp.domain.com/g' /opt/ocisnode/.env`
* Change into deployment folder
`cd /opt/ocisnode`
* Start application stack
`docker-compose up -d`
## Setup on idp server
* Clone ocis repository
`git clone https://github.com/owncloud/ocis.git`
* Copy example sub folder for idpnode to /opt
`cp deployment/examples/ocis_external_konnectd/idpnode /opt/`
* Overwrite OCIS_DOMAIN and IDP_DOMAIN in .env with your-ocis.domain.com and your-idp.domain.com
`sed -i 's/ocis.domain.com/your-ocis.domain.com/g' /opt/idpnode/.env`
`sed -i 's/idp.domain.com/your-idp.domain.com/g' /opt/idpnode/.env`
* Overwrite redirect uri with your-ocis.domain.com in identifier-registration.yml
`sed -i 's/ocis.domain.com/your-ocis.domain.com/g' /opt/idpnode/config/identifier-registration.yml`
* Change into deployment folder
`cd /opt/idpnode`
* Start application stack
`docker-compose up -d`
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/ocis_external_konnectd/)
for instructions on how to deploy this scenario.
@@ -8,15 +8,16 @@ services:
networks:
- idpnet
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.idp.acme.tlschallenge=true"
- "--certificatesresolvers.idp.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.idp.acme.email=postmaster@${IDP_DOMAIN}"
- "--certificatesresolvers.idp.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
@@ -51,9 +52,16 @@ services:
LDAP_FILTER: (objectClass=posixaccount)
labels:
- "traefik.enable=true"
- "traefik.http.routers.idp.rule=Host(`${IDP_DOMAIN}`)"
- "traefik.http.routers.idp.entrypoints=websecure"
- "traefik.http.routers.idp.tls.certresolver=idp"
- "traefik.http.services.idp.loadbalancer.server.port=9200"
- "traefik.docker.network=idpnet"
- "traefik.port=9130"
- "traefik.protocol=https"
# ssl config
- "traefik.http.routers.idp.rule=Host(`${IDP_DOMAIN}`)"
- "traefik.http.routers.idp.entrypoints=websecure"
- "traefik.http.routers.idp.tls.certresolver=idp"
# http -> https forwarding
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.idp-redirs.rule=Host(`${IDP_DOMAIN}`)"
- "traefik.http.routers.idp-redirs.entrypoints=web"
- "traefik.http.routers.idp-redirs.middlewares=redirect-to-https"
@@ -11,12 +11,14 @@ services:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.ocis.acme.tlschallenge=true"
- "--certificatesresolvers.ocis.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.ocis.acme.email=postmaster@${OCIS_DOMAIN}"
- "--certificatesresolvers.ocis.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
@@ -52,10 +54,15 @@ services:
REVA_DATAGATEWAY_URL: https://${OCIS_DOMAIN}/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)"
- "traefik.http.routers.ocis.entrypoints=websecure"
- "traefik.http.routers.ocis.tls.certresolver=ocis"
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
- "traefik.docker.network=ocisnet"
- "traefik.port=9200"
- "traefik.protocol=https"
# ssl config
- "traefik.http.routers.idp.rule=Host(`${OCIS_DOMAIN}`)"
- "traefik.http.routers.ocis.entrypoints=websecure"
- "traefik.http.routers.ocis.tls.certresolver=idp"
# http -> https forwarding
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.ocis-redirs.rule=Host(`${OCIS_DOMAIN}`)"
- "traefik.http.routers.ocis-redirs.entrypoints=web"
- "traefik.http.routers.ocis-redirs.middlewares=redirect-to-https"
+3 -2
View File
@@ -1,3 +1,4 @@
COMPOSE_PROJECT_NAME=bridge
OCIS_DOMAIN=ocis.domain.com
OC10_DOMAIN=oc10.domain.com
OCIS_DOMAIN=ocis.example.org
OC10_DOMAIN=oc10.example.org
INSECURE=false
@@ -1,30 +1,2 @@
# Deployment scenario ocis with oc10 backend and traefik as reverse proxy
## Setup on server
* Clone ocis repository
`git clone https://github.com/owncloud/ocis.git`
* Copy example folder to /opt
`cp deployment/examples/ocis_oc10_backend /opt/`
* Overwrite OCIS_DOMAIN and OC10_DOMAIN in .env with your-ocis.domain.com and your-oc10.domain.com
`sed -i 's/ocis.domain.com/your-ocis.domain.com/g' /opt/ocis_oc10_backend/.env`
`sed -i 's/oc10.domain.com/your-oc10.domain.com/g' /opt/ocis_oc10_backend/.env`
* Overwrite redirect uris with your-ocis.domain.com and your-oc10.domain.com in identifier-registration.yml
`sed -i 's/ocis.domain.com/your-ocis.domain.com/g' /opt/ocis_oc10_backend/ocis/identifier-registration.yml`
`sed -i 's/oc10.domain.com/your-oc10.domain.com/g' /opt/ocis_oc10_backend/ocis/identifier-registration.yml`
* Change into deployment folder
`cd /opt/ocis_oc10_backend`
* Start application stack
`docker-compose up -d`
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/ocis_oc10_backend/)
for instructions on how to deploy this scenario.
@@ -11,16 +11,19 @@ volumes:
driver: local
tmp:
driver: local
letsencrypt:
driver: local
services:
traefik:
image: "traefik:v2.2"
container_name: "traefik"
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--serverstransport.insecureskipverify=true"
# Ocis certificate resolver
- "--certificatesresolvers.ocis.acme.tlschallenge=true"
- "--certificatesresolvers.ocis.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
@@ -38,6 +41,11 @@ services:
volumes:
- "letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
default:
aliases:
- ${OC10_DOMAIN}
- ${OCIS_DOMAIN}
owncloud:
build:
@@ -49,6 +57,8 @@ services:
- db
- redis
environment:
OCIS_DOMAIN: ${OCIS_DOMAIN}
PROXY_LOG_LEVEL: debug
OWNCLOUD_DOMAIN: ${OC10_DOMAIN}
OWNCLOUD_DB_TYPE: mysql
OWNCLOUD_DB_NAME: owncloud
@@ -60,7 +70,6 @@ services:
OWNCLOUD_MYSQL_UTF8MB4: "true"
OWNCLOUD_REDIS_ENABLED: "true"
OWNCLOUD_REDIS_HOST: redis
OWNCLOUD_DEBUG: "true"
OWNCLOUD_TRUSTED_PROXIES: ${OC10_DOMAIN}
OWNCLOUD_OVERWRITE_PROTOCOL: https
OWNCLOUD_OVERWRITE_HOST: ${OC10_DOMAIN}
@@ -71,44 +80,43 @@ services:
- tmp:/tmp/shared
labels:
- "traefik.enable=true"
- "traefik.http.routers.oc10.rule=Host(`${OC10_DOMAIN}`)"
- "traefik.http.routers.oc10.entrypoints=websecure"
- "traefik.http.routers.oc10.tls.certresolver=oc10"
- "traefik.http.services.oc10.loadbalancer.server.port=8080"
- "traefik.docker.network=ocisnet"
- "traefik.protocol=https"
# ssl config
- "traefik.http.routers.oc10.rule=Host(`${OC10_DOMAIN}`)"
- "traefik.http.routers.oc10.entrypoints=websecure"
- "traefik.http.routers.oc10.tls.certresolver=oc10"
# http -> https forwarding
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.oc10-redirs.rule=Host(`${OC10_DOMAIN}`)"
- "traefik.http.routers.oc10-redirs.entrypoints=web"
- "traefik.http.routers.oc10-redirs.middlewares=redirect-to-https"
ocis:
image: owncloud/ocis:latest
build:
context: ./ocis
dockerfile: Dockerfile
args:
OCIS_DOMAIN: ${OCIS_DOMAIN}
OC10_DOMAIN: ${OC10_DOMAIN}
ports:
- 9200:9200
environment:
OCIS_DOMAIN: ${OCIS_DOMAIN}
PROXY_CONFIG_FILE: "/etc/ocis/proxy.json"
OCIS_LOG_LEVEL: debug
# proxy
PROXY_CONFIG_FILE: "/config/proxy-config.json"
PROXY_TLS: "false"
PROXY_OIDC_ISSUER: https://${OCIS_DOMAIN}
PROXY_OIDC_INSECURE: "true"
PROXY_AUTOPROVISION_ACCOUNTS: "true"
PROXY_OIDC_INSECURE: "${INSECURE}"
PROXY_ENABLE_PRESIGNEDURLS: "false"
# konnectd - binddn must exist as oc10 admin user
KONNECTD_ISS: https://${OCIS_DOMAIN}
KONNECTD_IDENTIFIER_REGISTRATION_CONF: "/config/identifier-registration.yml"
KONNECTD_IDENTIFIER_REGISTRATION_CONF: "/config/identifier-registration.yaml"
KONNECTD_TLS: 0
KONNECTD_SIGNING_KID: super
GRAPH_OIDC_ENDPOINT: https://${OC10_DOMAIN}/apps/graphapi/v1.0
PHOENIX_OIDC_AUTHORITY: https://${OCIS_DOMAIN}
PHOENIX_OIDC_METADATA_URL: https://${OCIS_DOMAIN}/.well-known/openid-configuration
PHOENIX_WEB_CONFIG_SERVER: https://${OCIS_DOMAIN}
STORAGE_OIDC_ISSUER: https://${OCIS_DOMAIN}
STORAGE_TRANSFER_EXPIRES: 86400
STORAGE_FRONTEND_URL: https://${OCIS_DOMAIN}
STORAGE_DATAGATEWAY_URL: https://${OCIS_DOMAIN}/data
STORAGE_LDAP_IDP: https://${OCIS_DOMAIN}
STORAGE_STORAGE_METADATA_PROVIDER_DRIVER: owncloud # Storage fails start up if backend owncloud is selected and this env vars isn't set
STORAGE_STORAGE_METADATA_DATA_PROVIDER_DRIVER: owncloud # Storage fails start up if backend owncloud is selected and this env vars isn't set
GLAUTH_BACKEND_DATASTORE: owncloud
GLAUTH_BACKEND_SERVERS: https://${OC10_DOMAIN}/apps/graphapi/v1.0
GLAUTH_BACKEND_BASEDN: dc=example,dc=org
ACCOUNTS_STORAGE_DISK_PATH: /var/tmp/ocis-accounts # Accounts fails to start when cs3 backend is used atm
# Konnectd ldap setup
KONNECTD_INSECURE: "${INSECURE}"
LDAP_URI: ldap://localhost:9125
LDAP_BINDDN: "cn=admin,dc=example,dc=org"
LDAP_BINDPW: "admin"
@@ -120,18 +128,37 @@ services:
LDAP_UUID_ATTRIBUTE: uid
LDAP_UUID_ATTRIBUTE_TYPE: text
LDAP_FILTER: "(objectClass=posixaccount)"
# glauth
GLAUTH_BACKEND_DATASTORE: owncloud
GLAUTH_BACKEND_SERVERS: https://${OC10_DOMAIN}/apps/graphapi/v1.0
GLAUTH_BACKEND_INSECURE: "${INSECURE}"
# graph
GRAPH_OIDC_ENDPOINT: https://${OC10_DOMAIN}/apps/graphapi/v1.0
# web ui
PHOENIX_WEB_CONFIG: "/config/web/config.json"
# storage - although not used, yet
STORAGE_OIDC_ISSUER: https://${OCIS_DOMAIN}
STORAGE_OIDC_INSECURE: "${INSECURE}"
STORAGE_TRANSFER_EXPIRES: 86400
STORAGE_FRONTEND_PUBLIC_URL: https://${OCIS_DOMAIN}
STORAGE_DATAGATEWAY_PUBLIC_URL: https://${OCIS_DOMAIN}/data
STORAGE_LDAP_IDP: https://${OCIS_DOMAIN}
volumes:
- ./ocis:/config
- ./ocis/proxy-config.json:/etc/ocis/proxy.json
- ./ocis/config/proxy-config.json:/etc/ocis/proxy.json
labels:
- "traefik.enable=true"
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)"
- "traefik.http.routers.ocis.entrypoints=websecure"
- "traefik.http.routers.ocis.tls.certresolver=ocis"
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
- "traefik.docker.network=ocisnet"
- "traefik.protocol=https"
# ssl config
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)"
- "traefik.http.routers.ocis.entrypoints=websecure"
- "traefik.http.routers.ocis.tls.certresolver=ocis"
# http -> https forwarding
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.ocis-redirs.rule=Host(`${OCIS_DOMAIN}`)"
- "traefik.http.routers.ocis-redirs.entrypoints=web"
- "traefik.http.routers.ocis-redirs.middlewares=redirect-to-https"
db:
image: webhippie/mariadb:latest
restart: always
@@ -1,3 +1,3 @@
FROM owncloud/server:10
FROM owncloud/server:10.6.0-beta1
ADD apps/graphapi-0.1.0.tar.gz /var/www/owncloud/apps/
COPY overlay /
@@ -0,0 +1,558 @@
<?php
function getConfigFromEnv() {
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$domain = trim(
explode(
",",
$_SERVER['HTTP_X_FORWARDED_HOST']
)[0]
);
} else if (isset($_SERVER['SERVER_NAME'])) {
$domain = $_SERVER['SERVER_NAME'];
} else {
$domain = 'localhost';
}
$config = [
'apps_paths' => [
0 => [
"path" => OC::$SERVERROOT . "/apps",
"url" => "/apps",
"writable" => false
],
1 => [
"path" => OC::$SERVERROOT . "/custom",
"url" => "/custom",
"writable" => true
]
],
'trusted_domains' => [
0 => $domain
],
'openid-connect' => [
'provider-url' => 'https://' . getenv('OCIS_DOMAIN'),
'client-id' => 'oc10',
'client-secret' => 'super',
'loginButtonName' => 'OpenId Connect',
'search-attribute' => 'preferred_username',
'mode' => 'userid',
'autoRedirectOnLoginPage' => true,
'insecure' => true,
'post_logout_redirect_uri' => 'https://' . getenv('OWNCLOUD_DOMAIN') . '/',
],
'datadirectory' => getenv('OWNCLOUD_VOLUME_FILES'),
'dbtype' => getenv('OWNCLOUD_DB_TYPE'),
'dbhost' => getenv('OWNCLOUD_DB_HOST'),
'dbname' => getenv('OWNCLOUD_DB_NAME'),
'dbuser' => getenv('OWNCLOUD_DB_USERNAME'),
'dbpassword' => getenv('OWNCLOUD_DB_PASSWORD'),
'dbtableprefix' => getenv('OWNCLOUD_DB_PREFIX'),
'phoenix.baseUrl' => 'https://'. getenv('OCIS_DOMAIN'),
'cors.allowed-domains' => ['https://'. getenv('OCIS_DOMAIN')],
'log_type' => 'owncloud',
'supportedDatabases' => [
'sqlite',
'mysql',
'pgsql',
],
'upgrade.disable-web' => true,
];
if (getenv('OWNCLOUD_CORS_ALLOWED_DOMAINS') != '') {
$config['cors.allowed-domains'] = explode(',', getenv('OWNCLOUD_CORS_ALLOWED_DOMAINS'));
}
if (getenv('OWNCLOUD_VERSION_HIDE') != '') {
$config['version.hide'] = getenv('OWNCLOUD_VERSION_HIDE') == 'true';
}
if (getenv('OWNCLOUD_SHOW_SERVER_HOSTNAME') != '') {
$config['show_server_hostname'] = getenv('OWNCLOUD_SHOW_SERVER_HOSTNAME') == 'true';
}
if (getenv('OWNCLOUD_DEFAULT_LANGUAGE') != '') {
$config['default_language'] = getenv('OWNCLOUD_DEFAULT_LANGUAGE');
}
if (getenv('OWNCLOUD_DEFAULT_APP') != '') {
$config['defaultapp'] = getenv('OWNCLOUD_DEFAULT_APP');
}
if (getenv('OWNCLOUD_KNOWLEDGEBASE_ENABLED') != '') {
$config['knowledgebaseenabled'] = getenv('OWNCLOUD_KNOWLEDGEBASE_ENABLED') == 'true';
}
if (getenv('OWNCLOUD_ENABLE_AVATARS') != '') {
$config['enable_avatars'] = getenv('OWNCLOUD_ENABLE_AVATARS') == 'true';
}
if (getenv('OWNCLOUD_ALLOW_USER_TO_CHANGE_DISPLAY_NAME') != '') {
$config['allow_user_to_change_display_name'] = getenv('OWNCLOUD_ALLOW_USER_TO_CHANGE_DISPLAY_NAME') == 'true';
}
if (getenv('OWNCLOUD_REMEMBER_LOGIN_COOKIE_LIFETIME') != '') {
$config['remember_login_cookie_lifetime'] = (int) getenv('OWNCLOUD_REMEMBER_LOGIN_COOKIE_LIFETIME');
}
if (getenv('OWNCLOUD_SESSION_LIFETIME') != '') {
$config['session_lifetime'] = (int) getenv('OWNCLOUD_SESSION_LIFETIME');
}
if (getenv('OWNCLOUD_SESSION_KEEPALIVE') != '') {
$config['session_keepalive'] = getenv('OWNCLOUD_SESSION_KEEPALIVE') == 'true';
}
if (getenv('OWNCLOUD_TOKEN_AUTH_ENFORCED') != '') {
$config['token_auth_enforced'] = getenv('OWNCLOUD_TOKEN_AUTH_ENFORCED') == 'true';
}
if (getenv('OWNCLOUD_CSRF_DISABLED') != '') {
$config['csrf.disabled'] = getenv('OWNCLOUD_CSRF_DISABLED') == 'true';
}
if (getenv('OWNCLOUD_SKELETON_DIRECTORY') != '') {
$config['skeletondirectory'] = getenv('OWNCLOUD_SKELETON_DIRECTORY');
}
if (getenv('OWNCLOUD_LOST_PASSWORD_LINK') != '') {
$config['lost_password_link'] = getenv('OWNCLOUD_LOST_PASSWORD_LINK');
}
if (getenv('OWNCLOUD_ACCOUNTS_ENABLE_MEDIAL_SEARCH') != '') {
$config['accounts.enable_medial_search'] = getenv('OWNCLOUD_ACCOUNTS_ENABLE_MEDIAL_SEARCH') == 'true';
}
if (getenv('OWNCLOUD_USER_SEARCH_MIN_LENGTH') != '') {
$config['user.search_min_length'] = (int) getenv('OWNCLOUD_USER_SEARCH_MIN_LENGTH');
}
if (getenv('OWNCLOUD_MAIL_DOMAIN') != '') {
$config['mail_domain'] = getenv('OWNCLOUD_MAIL_DOMAIN');
}
if (getenv('OWNCLOUD_MAIL_FROM_ADDRESS') != '') {
$config['mail_from_address'] = getenv('OWNCLOUD_MAIL_FROM_ADDRESS');
}
if (getenv('OWNCLOUD_MAIL_SMTP_DEBUG') != '') {
$config['mail_smtpdebug'] = getenv('OWNCLOUD_MAIL_SMTP_DEBUG') == 'true';
}
if (getenv('OWNCLOUD_MAIL_SMTP_MODE') != '') {
$config['mail_smtpmode'] = getenv('OWNCLOUD_MAIL_SMTP_MODE');
}
if (getenv('OWNCLOUD_MAIL_SMTP_HOST') != '') {
$config['mail_smtphost'] = getenv('OWNCLOUD_MAIL_SMTP_HOST');
}
if (getenv('OWNCLOUD_MAIL_SMTP_PORT') != '') {
$config['mail_smtpport'] = (int) getenv('OWNCLOUD_MAIL_SMTP_PORT');
}
if (getenv('OWNCLOUD_MAIL_SMTP_TIMEOUT') != '') {
$config['mail_smtptimeout'] = (int) getenv('OWNCLOUD_MAIL_SMTP_TIMEOUT');
}
if (getenv('OWNCLOUD_MAIL_SMTP_SECURE') != '') {
$config['mail_smtpsecure'] = getenv('OWNCLOUD_MAIL_SMTP_SECURE');
}
if (getenv('OWNCLOUD_MAIL_SMTP_AUTH') != '') {
$config['mail_smtpauth'] = getenv('OWNCLOUD_MAIL_SMTP_AUTH') == 'true';
}
if (getenv('OWNCLOUD_MAIL_SMTP_AUTH_TYPE') != '') {
$config['mail_smtpauthtype'] = getenv('OWNCLOUD_MAIL_SMTP_AUTH_TYPE');
}
if (getenv('OWNCLOUD_MAIL_SMTP_NAME') != '') {
$config['mail_smtpname'] = getenv('OWNCLOUD_MAIL_SMTP_NAME');
}
if (getenv('OWNCLOUD_MAIL_SMTP_PASSWORD') != '') {
$config['mail_smtppassword'] = getenv('OWNCLOUD_MAIL_SMTP_PASSWORD');
}
if (getenv('OWNCLOUD_OVERWRITE_HOST') != '') {
$config['overwritehost'] = getenv('OWNCLOUD_OVERWRITE_HOST');
}
if (getenv('OWNCLOUD_OVERWRITE_PROTOCOL') != '') {
$config['overwriteprotocol'] = getenv('OWNCLOUD_OVERWRITE_PROTOCOL');
}
if (getenv('OWNCLOUD_OVERWRITE_WEBROOT') != '') {
$config['overwritewebroot'] = getenv('OWNCLOUD_OVERWRITE_WEBROOT');
}
if (getenv('OWNCLOUD_OVERWRITE_COND_ADDR') != '') {
$config['overwritecondaddr'] = getenv('OWNCLOUD_OVERWRITE_COND_ADDR');
}
if (getenv('OWNCLOUD_OVERWRITE_CLI_URL') != '') {
$config['overwrite.cli.url'] = getenv('OWNCLOUD_OVERWRITE_CLI_URL');
}
if (getenv('OWNCLOUD_HTACCESS_REWRITE_BASE') != '') {
$config['htaccess.RewriteBase'] = getenv('OWNCLOUD_HTACCESS_REWRITE_BASE');
}
if (getenv('OWNCLOUD_PROXY') != '') {
$config['proxy'] = getenv('OWNCLOUD_PROXY');
}
if (getenv('OWNCLOUD_PROXY_USERPWD') != '') {
$config['proxyuserpwd'] = getenv('OWNCLOUD_PROXY_USERPWD');
}
if (getenv('OWNCLOUD_TRASHBIN_RETENTION_OBLIGATION') != '') {
$config['trashbin_retention_obligation'] = getenv('OWNCLOUD_TRASHBIN_RETENTION_OBLIGATION');
}
if (getenv('OWNCLOUD_TRASHBIN_PURGE_LIMIT') != '') {
$config['trashbin_purge_limit'] = (int) getenv('OWNCLOUD_TRASHBIN_PURGE_LIMIT');
}
if (getenv('OWNCLOUD_VERSIONS_RETENTION_OBLIGATION') != '') {
$config['versions_retention_obligation'] = getenv('OWNCLOUD_VERSIONS_RETENTION_OBLIGATION');
}
if (getenv('OWNCLOUD_UPDATE_CHECKER') != '') {
$config['updatechecker'] = getenv('OWNCLOUD_UPDATE_CHECKER') == 'true';
}
if (getenv('OWNCLOUD_UPDATER_SERVER_URL') != '') {
$config['updater.server.url'] = getenv('OWNCLOUD_UPDATER_SERVER_URL');
}
if (getenv('OWNCLOUD_HAS_INTERNET_CONNECTION') != '') {
$config['has_internet_connection'] = getenv('OWNCLOUD_HAS_INTERNET_CONNECTION') == 'true';
}
if (getenv('OWNCLOUD_CHECK_FOR_WORKING_WELLKNOWN_SETUP') != '') {
$config['check_for_working_wellknown_setup'] = getenv('OWNCLOUD_CHECK_FOR_WORKING_WELLKNOWN_SETUP') == 'true';
}
if (getenv('OWNCLOUD_OPERATION_MODE') != '') {
$config['operation.mode'] = getenv('OWNCLOUD_OPERATION_MODE');
}
if (getenv('OWNCLOUD_LOG_FILE') != '') {
$config['logfile'] = getenv('OWNCLOUD_LOG_FILE');
}
if (getenv('OWNCLOUD_LOG_LEVEL') != '') {
$config['loglevel'] = (int) getenv('OWNCLOUD_LOG_LEVEL');
}
if (getenv('OWNCLOUD_LOG_DATE_FORMAT') != '') {
$config['logdateformat'] = getenv('OWNCLOUD_LOG_DATE_FORMAT');
}
if (getenv('OWNCLOUD_LOG_TIMEZONE') != '') {
$config['logtimezone'] = getenv('OWNCLOUD_LOG_TIMEZONE');
}
if (getenv('OWNCLOUD_CRON_LOG') != '') {
$config['cron_log'] = getenv('OWNCLOUD_CRON_LOG') == 'true';
}
if (getenv('OWNCLOUD_LOG_ROTATE_SIZE') != '') {
$config['log_rotate_size'] = (int) getenv('OWNCLOUD_LOG_ROTATE_SIZE');
}
if (getenv('OWNCLOUD_ENABLE_PREVIEWS') != '') {
$config['enable_previews'] = getenv('OWNCLOUD_ENABLE_PREVIEWS') == 'true';
}
if (getenv('OWNCLOUD_PREVIEW_MAX_X') != '') {
$config['preview_max_x'] = (int) getenv('OWNCLOUD_PREVIEW_MAX_X');
}
if (getenv('OWNCLOUD_PREVIEW_MAX_Y') != '') {
$config['preview_max_y'] = (int) getenv('OWNCLOUD_PREVIEW_MAX_Y');
}
if (getenv('OWNCLOUD_PREVIEW_MAX_SCALE_FACTOR') != '') {
$config['preview_max_scale_factor'] = (int) getenv('OWNCLOUD_PREVIEW_MAX_SCALE_FACTOR');
}
if (getenv('OWNCLOUD_PREVIEW_MAX_FILESIZE_IMAGE') != '') {
$config['preview_max_filesize_image'] = getenv('OWNCLOUD_PREVIEW_MAX_FILESIZE_IMAGE');
}
if (getenv('OWNCLOUD_PREVIEW_LIBREOFFICE_PATH') != '') {
$config['preview_libreoffice_path'] = getenv('OWNCLOUD_PREVIEW_LIBREOFFICE_PATH');
}
if (getenv('OWNCLOUD_PREVIEW_OFFICE_CL_PARAMETERS') != '') {
$config['preview_office_cl_parameters'] = getenv('OWNCLOUD_PREVIEW_OFFICE_CL_PARAMETERS');
}
if (getenv('OWNCLOUD_ENABLED_PREVIEW_PROVIDERS') != '') {
$config['enabledPreviewProviders'] = explode(',', getenv('OWNCLOUD_ENABLED_PREVIEW_PROVIDERS'));
}
if (getenv('OWNCLOUD_COMMENTS_MANAGER_FACTORY') != '') {
$config['comments.managerFactory'] = getenv('OWNCLOUD_COMMENTS_MANAGER_FACTORY');
}
if (getenv('OWNCLOUD_SYSTEMTAGS_MANAGER_FACTORY') != '') {
$config['systemtags.managerFactory'] = getenv('OWNCLOUD_SYSTEMTAGS_MANAGER_FACTORY');
}
if (getenv('OWNCLOUD_MAINTENANCE') != '') {
$config['maintenance'] = getenv('OWNCLOUD_MAINTENANCE') == 'true';
}
if (getenv('OWNCLOUD_SINGLEUSER') != '') {
$config['singleuser'] = getenv('OWNCLOUD_SINGLEUSER');
}
if (getenv('OWNCLOUD_ENABLE_CERTIFICATE_MANAGEMENT') != '') {
$config['enable_certificate_management'] = getenv('OWNCLOUD_ENABLE_CERTIFICATE_MANAGEMENT');
}
if (getenv('OWNCLOUD_MEMCACHE_LOCAL') != '') {
$config['memcache.local'] = getenv('OWNCLOUD_MEMCACHE_LOCAL');
}
if (getenv('OWNCLOUD_CACHE_PATH') != '') {
$config['cache_path'] = getenv('OWNCLOUD_CACHE_PATH');
}
if (getenv('OWNCLOUD_CACHE_CHUNK_GC_TTL') != '') {
$config['cache_chunk_gc_ttl'] = (int) getenv('OWNCLOUD_CACHE_CHUNK_GC_TTL');
}
if (getenv('OWNCLOUD_DAV_CHUNK_BASE_DIR') != '') {
$config['dav.chunk_base_dir'] = getenv('OWNCLOUD_DAV_CHUNK_BASE_DIR');
}
if (getenv('OWNCLOUD_SHARING_MANAGER_FACTORY') != '') {
$config['sharing.managerFactory'] = getenv('OWNCLOUD_SHARING_MANAGER_FACTORY');
}
if (getenv('OWNCLOUD_SHARING_FEDERATION_ALLOW_HTTP_FALLBACK') != '') {
$config['sharing.federation.allowHttpFallback'] = getenv('OWNCLOUD_SHARING_FEDERATION_ALLOW_HTTP_FALLBACK') == 'true';
}
if (getenv('OWNCLOUD_SQLITE_JOURNAL_MODE') != '') {
$config['sqlite.journal_mode'] = getenv('OWNCLOUD_SQLITE_JOURNAL_MODE');
}
if (getenv('OWNCLOUD_MYSQL_UTF8MB4') != '') {
$config['mysql.utf8mb4'] = getenv('OWNCLOUD_MYSQL_UTF8MB4') == 'true';
}
if (getenv('OWNCLOUD_TEMP_DIRECTORY') != '') {
$config['tempdirectory'] = getenv('OWNCLOUD_TEMP_DIRECTORY');
}
if (getenv('OWNCLOUD_HASHING_COST') != '') {
$config['hashingCost'] = (int) getenv('OWNCLOUD_HASHING_COST');
}
if (getenv('OWNCLOUD_BLACKLISTED_FILES') != '') {
$config['blacklisted_files'] = explode(',', getenv('OWNCLOUD_BLACKLISTED_FILES'));
}
if (getenv('OWNCLOUD_EXCLUDED_DIRECTORIES') != '') {
$config['excluded_directories'] = explode(',', getenv('OWNCLOUD_EXCLUDED_DIRECTORIES'));
}
if (getenv('OWNCLOUD_INTEGRITY_EXCLUDED_FILES') != '') {
$config['integrity.excluded.files'] = explode(',', getenv('OWNCLOUD_INTEGRITY_EXCLUDED_FILES'));
}
if (getenv('OWNCLOUD_INTEGRITY_IGNORE_MISSING_APP_SIGNATURE') != '') {
$config['integrity.ignore.missing.app.signature'] = explode(',', getenv('OWNCLOUD_INTEGRITY_IGNORE_MISSING_APP_SIGNATURE'));
}
if (getenv('OWNCLOUD_SHARE_FOLDER') != '') {
$config['share_folder'] = getenv('OWNCLOUD_SHARE_FOLDER');
}
if (getenv('OWNCLOUD_CIPHER') != '') {
$config['cipher'] = getenv('OWNCLOUD_CIPHER');
}
if (getenv('OWNCLOUD_MINIMUM_SUPPORTED_DESKTOP_VERSION') != '') {
$config['minimum.supported.desktop.version'] = getenv('OWNCLOUD_MINIMUM_SUPPORTED_DESKTOP_VERSION');
}
if (getenv('OWNCLOUD_QUOTA_INCLUDE_EXTERNAL_STORAGE') != '') {
$config['quota_include_external_storage'] = getenv('OWNCLOUD_QUOTA_INCLUDE_EXTERNAL_STORAGE') == 'true';
}
if (getenv('OWNCLOUD_FILESYSTEM_CHECK_CHANGES') != '') {
$config['filesystem_check_changes'] = (int) getenv('OWNCLOUD_FILESYSTEM_CHECK_CHANGES');
}
if (getenv('OWNCLOUD_PART_FILE_IN_STORAGE') != '') {
$config['part_file_in_storage'] = getenv('OWNCLOUD_PART_FILE_IN_STORAGE') == 'true';
}
if (getenv('OWNCLOUD_MOUNT_FILE') != '') {
$config['mount_file'] = getenv('OWNCLOUD_MOUNT_FILE');
}
if (getenv('OWNCLOUD_FILESYSTEM_CACHE_READONLY') != '') {
$config['filesystem_cache_readonly'] = getenv('OWNCLOUD_FILESYSTEM_CACHE_READONLY') == 'true';
}
if (getenv('OWNCLOUD_SECRET') != '') {
$config['secret'] = getenv('OWNCLOUD_SECRET');
}
if (getenv('OWNCLOUD_TRUSTED_PROXIES') != '') {
$config['trusted_proxies'] = explode(',', getenv('OWNCLOUD_TRUSTED_PROXIES'));
}
if (getenv('OWNCLOUD_FORWARDED_FOR_HEADERS') != '') {
$config['forwarded_for_headers'] = explode(',', getenv('OWNCLOUD_FORWARDED_FOR_HEADERS'));
}
if (getenv('OWNCLOUD_MAX_FILESIZE_ANIMATED_GIFS_PUBLIC_SHARING') != '') {
$config['max_filesize_animated_gifs_public_sharing'] = (int) getenv('OWNCLOUD_MAX_FILESIZE_ANIMATED_GIFS_PUBLIC_SHARING');
}
if (getenv('OWNCLOUD_FILELOCKING_ENABLED') != '') {
$config['filelocking.enabled'] = getenv('OWNCLOUD_FILELOCKING_ENABLED') == 'true';
}
if (getenv('OWNCLOUD_FILELOCKING_TTL') != '') {
$config['filelocking.ttl'] = getenv('OWNCLOUD_FILELOCKING_TTL');
}
if (getenv('OWNCLOUD_MEMCACHE_LOCKING') != '') {
$config['memcache.locking'] = getenv('OWNCLOUD_MEMCACHE_LOCKING');
}
if (getenv('OWNCLOUD_UPGRADE_AUTOMATIC_APP_UPDATES') != '') {
$config['upgrade.automatic-app-update'] = getenv('OWNCLOUD_UPGRADE_AUTOMATIC_APP_UPDATES') == 'true';
}
if (getenv('OWNCLOUD_DEBUG') != '') {
$config['debug'] = getenv('OWNCLOUD_DEBUG') == 'true';
}
if (getenv('OWNCLOUD_FILES_EXTERNAL_ALLOW_NEW_LOCAL') != '') {
$config['files_external_allow_create_new_local'] = getenv('OWNCLOUD_FILES_EXTERNAL_ALLOW_NEW_LOCAL') == 'true';
}
if (getenv('OWNCLOUD_SMB_LOGGING_ENABLE') != '') {
$config['smb.logging.enable'] = getenv('OWNCLOUD_SMB_LOGGING_ENABLE');
}
if (getenv('OWNCLOUD_DAV_ENABLE_ASYNC') != '') {
$config['dav.enable.async'] = getenv('OWNCLOUD_DAV_ENABLE_ASYNC');
}
if (getenv('OWNCLOUD_LICENSE_KEY') != '') {
$config['license-key'] = getenv('OWNCLOUD_LICENSE_KEY');
}
if (getenv('OWNCLOUD_MARKETPLACE_KEY') != '') {
$config['marketplace.key'] = getenv('OWNCLOUD_MARKETPLACE_KEY');
}
if (getenv('OWNCLOUD_MARKETPLACE_CA') != '') {
$config['marketplace.ca'] = getenv('OWNCLOUD_MARKETPLACE_CA');
}
if (getenv('OWNCLOUD_APPSTORE_URL') != '') {
$config['appstoreurl'] = getenv('OWNCLOUD_APPSTORE_URL');
}
if (getenv('OWNCLOUD_LOGIN_ALTERNATIVES') != '') {
$rows = explode(',', getenv('OWNCLOUD_LOGIN_ALTERNATIVES'));
foreach ($rows as $key => $value) {
parse_str($value, $opts);
$config['login.alternatives'][$key] = $opts;
}
}
switch (true) {
case getenv('OWNCLOUD_REDIS_ENABLED') && getenv('OWNCLOUD_REDIS_ENABLED') == 'true':
$config = array_merge_recursive($config, [
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
]);
switch (true) {
case getenv('OWNCLOUD_REDIS_SEEDS') != '':
$config['redis.cluster']['seeds'] = explode(',', getenv('OWNCLOUD_REDIS_SEEDS'));
if (getenv('OWNCLOUD_REDIS_TIMEOUT') != '') {
$config['redis.cluster']['timeout'] = (float) getenv('OWNCLOUD_REDIS_TIMEOUT');
}
if (getenv('OWNCLOUD_REDIS_READ_TIMEOUT') != '') {
$config['redis.cluster']['read_timeout'] = (float) getenv('OWNCLOUD_REDIS_READ_TIMEOUT');
}
if (getenv('OWNCLOUD_REDIS_FAILOVER_MODE') != '') {
switch (getenv('OWNCLOUD_REDIS_FAILOVER_MODE')) {
case 'FAILOVER_NONE':
$config['redis.cluster']['failover_mode'] = \RedisCluster::FAILOVER_NONE;
case 'FAILOVER_ERROR':
$config['redis.cluster']['failover_mode'] = \RedisCluster::FAILOVER_ERROR;
case 'FAILOVER_DISTRIBUTE':
$config['redis.cluster']['failover_mode'] = \RedisCluster::FAILOVER_DISTRIBUTE;
}
}
case getenv('OWNCLOUD_REDIS_HOST') != '':
$config['redis']['host'] = getenv('OWNCLOUD_REDIS_HOST');
$config['redis']['port'] = getenv('OWNCLOUD_REDIS_PORT');
if (getenv('OWNCLOUD_REDIS_DB') != '') {
$config['redis']['dbindex'] = getenv('OWNCLOUD_REDIS_DB');
}
if (getenv('OWNCLOUD_REDIS_PASSWORD') != '') {
$config['redis']['password'] = getenv('OWNCLOUD_REDIS_PASSWORD');
}
if (getenv('OWNCLOUD_REDIS_TIMEOUT') != '') {
$config['redis']['timeout'] = (float) getenv('OWNCLOUD_REDIS_TIMEOUT');
}
}
break;
case getenv('OWNCLOUD_MEMCACHED_ENABLED') && getenv('OWNCLOUD_MEMCACHED_ENABLED') == 'true':
$config = array_merge_recursive($config, [
'memcache.distributed' => '\OC\Memcache\Memcached',
'memcache.locking' => '\OC\Memcache\Memcached',
'memcached_servers' => [
[
getenv('OWNCLOUD_MEMCACHED_HOST'),
getenv('OWNCLOUD_MEMCACHED_PORT'),
],
],
]);
if (getenv('OWNCLOUD_MEMCACHED_OPTIONS') != '') {
parse_str(getenv('OWNCLOUD_MEMCACHED_OPTIONS'), $opts);
foreach($opts as $key => $value) {
$config['memcached_options'][constant($key)] = $value;
}
}
break;
}
return $config;
}
$CONFIG = getConfigFromEnv();
@@ -0,0 +1,11 @@
FROM owncloud/ocis:latest
ARG OCIS_DOMAIN
ENV OCIS_DOMAIN $OCIS_DOMAIN
ARG OC10_DOMAIN
ENV OC10_DOMAIN $OC10_DOMAIN
ADD config /config
RUN sed -i "s/ocis.example.org/${OCIS_DOMAIN}/g" /config/web/config.json \
&& sed -i "s/ocis.example.org/${OCIS_DOMAIN}/g" /config/identifier-registration.yaml \
&& sed -i "s/oc10.example.org/${OC10_DOMAIN}/g" /config/identifier-registration.yaml \
@@ -7,15 +7,11 @@ clients:
insecure: yes
trusted: yes
redirect_uris:
- http://ocis.domain.com/oidc-callback.html
- http://ocis.domain.com/
- https://ocis.domain.com/
- https://ocis.domain.com/oidc-callback.html
- http://ocis.domain.com/oidc-silent-redirect.html
- https://ocis.domain.com/oidc-silent-redirect.html
- https://ocis.example.org/
- https://ocis.example.org/oidc-callback.html
- https://ocis.example.org/oidc-silent-redirect.html
origins:
- http://ocis.domain.com
- https://ocis.domain.com
- https://ocis.example.org
- id: oc10
name: OC10
@@ -24,11 +20,10 @@ clients:
insecure: yes
trusted: yes
redirect_uris:
- https://oc10.domain.com/apps/openidconnect/redirect/
- https://oc10.domain.com/apps/openidconnect/redirect
- https://oc10.example.org/
- https://oc10.example.org/apps/openidconnect/redirect
origins:
- http://oc10.domain.com
- https://oc10.domain.com
- https://oc10.example.org
- id: ocis-explorer.js
name: OCIS Graph Explorer
@@ -1,60 +1,13 @@
{
"HTTP": {
"Namespace": "com.owncloud"
"Namespace": "works.owncloud"
},
"policy_selector": {
"migration": {
"acc_found_policy" : "reva",
"acc_not_found_policy": "oc10",
"unauthenticated_policy": "oc10"
}
},
"static": {
"policy": "oc10"
}
},
"policies": [
{
"name": "reva",
"routes": [
{
"endpoint": "/",
"backend": "http://localhost:9100"
},
{
"endpoint": "/.well-known/",
"backend": "http://konnectd:9130"
},
{
"endpoint": "/konnect/",
"backend": "http://konnectd:9130"
},
{
"endpoint": "/signin/",
"backend": "http://konnectd:9130"
},
{
"endpoint": "/ocs/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/remote.php/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/dav/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/webdav/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/status.php",
"backend": "http://localhost:9140"
},
{
"endpoint": "/index.php/",
"backend": "http://localhost:9140"
}
]
},
{
"name": "oc10",
"routes": [
@@ -105,4 +58,4 @@
]
}
]
}
}
@@ -0,0 +1,39 @@
{
"server": "https://ocis.example.org",
"theme": "owncloud",
"version": "0.1.0",
"openIdConnect": {
"metadata_url": "https://ocis.example.org/.well-known/openid-configuration",
"authority": "https://ocis.example.org",
"client_id": "phoenix",
"response_type": "code",
"scope": "openid profile email"
},
"applications": [
{
"title": {
"en": "Classic Design",
"de": "Klassisches ownCloud"
},
"icon": "switch_ui",
"url": "https://oc10.example.org",
"target": "_self"
},
{
"title": {
"en": "Settings",
"de": "Einstellungen"
},
"icon": "application",
"url": "https://oc10.example.org/index.php/settings/personal",
"target": "_self",
"menu": "user"
}
],
"apps": [
"files",
"draw-io",
"markdown-editor",
"media-viewer"
]
}
+2 -27
View File
@@ -1,27 +1,2 @@
# Deployment scenario ocis with traefik
## Setup on server
* Clone ocis repository
`git clone https://github.com/owncloud/ocis.git`
* Copy example folder to /opt
`cp deployment/examples/ocis_traefik /opt/`
* Overwrite OCIS_DOMAIN in .env with your.domain.com
`sed -i 's/ocis.domain.com/your.domain.com/g' /opt/ocis_traefik/.env`
* Overwrite redirect uri with your.domain.com in identifier-registration.yml
`sed -i 's/ocis.domain.com/your.domain.com/g' /opt/ocis_traefik/config/identifier-registration.yml`
* Change into deployment folder
`cd /opt/ocis_traefik`
* Start application stack
`docker-compose up -d`
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/ocis_traefik/)
for instructions on how to deploy this scenario.
@@ -8,15 +8,18 @@ services:
networks:
- ocisnet
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--serverstransport.insecureskipverify=true"
# Ocis certificate resolver
- "--certificatesresolvers.ocis.acme.tlschallenge=true"
- "--certificatesresolvers.ocis.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.ocis.acme.email=user@${OCIS_DOMAIN}"
- "--certificatesresolvers.ocis.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.ocis.acme.storage=/letsencrypt/acme-ocis.json"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
@@ -48,17 +51,23 @@ services:
PHOENIX_WEB_CONFIG_SERVER: https://${OCIS_DOMAIN}
STORAGE_OIDC_ISSUER: https://${OCIS_DOMAIN}
STORAGE_TRANSFER_EXPIRES: 86400
STORAGE_FRONTEND_URL: https://${OCIS_DOMAIN}
STORAGE_DATAGATEWAY_URL: https://${OCIS_DOMAIN}/data
STORAGE_FRONTEND_PUBLIC_URL: https://${OCIS_DOMAIN}
STORAGE_DATAGATEWAY_PUBLIC_URL: https://${OCIS_DOMAIN}/data
STORAGE_LDAP_IDP: https://${OCIS_DOMAIN}
labels:
- "traefik.enable=true"
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)"
- "traefik.http.routers.ocis.entrypoints=websecure"
- "traefik.http.routers.ocis.tls.certresolver=ocis"
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
- "traefik.docker.network=ocisnet"
- "traefik.protocol=https"
# ssl config
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)"
- "traefik.http.routers.ocis.entrypoints=websecure"
- "traefik.http.routers.ocis.tls.certresolver=ocis"
# http -> https forwarding
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.ocis-redirs.rule=Host(`${OCIS_DOMAIN}`)"
- "traefik.http.routers.ocis-redirs.entrypoints=web"
- "traefik.http.routers.ocis-redirs.middlewares=redirect-to-https"
networks:
ocisnet:
+11
View File
@@ -0,0 +1,11 @@
.PHONY: docs-copy
docs-copy:
mkdir -p hugo/content/; \
cd hugo; \
git init; \
git remote rm origin; \
git remote add origin https://github.com/owncloud/owncloud.github.io; \
git fetch --depth=1; \
git checkout origin/source -f; \
rsync -ax --delete --exclude hugo/ --exclude Makefile ../. content/; \
Loaded 100 of 429 files, more files were not shown because too many files have changed in this diff. Show more