Compare commits

..
590 Commits
Author SHA1 Message Date
Michael Barz 4967543130 prepare release 1.5.0 2021-04-21 17:30:44 +02:00
Pascal Wengerter 8f40ee80f2 Automated changelog update [skip ci] 2021-04-21 14:33:03 +00:00
Pascal Wengerter 7ff08a5cce Merge pull request #1938 from owncloud/release-web-3.0.0
Release web 3.0.0
2021-04-21 15:32:33 +01:00
Pascal Wengerter 38863a4745 Update from 3.0.0rc-2 to official 3.0.0 2021-04-21 14:45:36 +01:00
Benedikt Kulmann 9721f81087 switch from OCIS_SKELETON_DIR to TESTING_DATA_DIR env 2021-04-21 14:45:36 +01:00
Benedikt Kulmann f6befe0532 Update role selector of accounts ui tests 2021-04-21 14:45:36 +01:00
Benedikt Kulmann cc790205ce Update web commit id and ocis expected failures for web 2021-04-21 14:45:36 +01:00
Pascal Wengerter ae25f6f61d Update ODS in settings extension 2021-04-21 14:45:36 +01:00
Pascal Wengerter 378c37b935 Update ODS in accounts extension 2021-04-21 14:45:36 +01:00
Benedikt Kulmann f8f9cbe051 Update web to 3.0.0-rc2 2021-04-21 14:45:36 +01:00
Alex Unger a95cf437de Merge pull request #1941 from owncloud/fix_arm64_builds_docker
use binaries from make release for docker builds
2021-04-21 11:40:05 +02:00
Willy Kloucek 0e36f04a62 use binaries from make release 2021-04-20 17:00:15 +02:00
Alex Unger dff3f0afd1 Automated changelog update [skip ci] 2021-04-20 14:11:38 +00:00
Alex Unger cff1325b7f Merge pull request #1931 from owncloud/parse-config-when-run 2021-04-20 16:10:56 +02:00
A.Unger 60280a3f28 refactor and cleanup a bit 2021-04-20 14:55:48 +02:00
Willy Kloucek c073329e17 Merge pull request #1937 from owncloud/switch_to_official_redis_image
Switch to official redis image
2021-04-20 12:57:31 +02:00
A.Unger 7446c4de12 Merge branch 'master' into parse-config-when-run 2021-04-20 12:52:56 +02:00
Willy Kloucek 734e5564b6 Merge pull request #1850 from owncloud/read_docs
[docs-only] fix migration docs
2021-04-20 09:03:04 +02:00
Willy Kloucek 8610b2560d cleanup uneeded boilerplate code 2021-04-20 08:56:22 +02:00
Willy Kloucek 63c6a438b6 use official redis 2021-04-20 08:56:12 +02:00
Pascal Wengerter f28ee8ac6e Merge pull request #1932 from owncloud/19042021_fix-broken-docs-links
[docs-only] Fix a bunch of broken links within the docs
2021-04-19 15:11:34 +01:00
Pascal Wengerter 81c57ee70c Fix a bunch of broken links within the docs 2021-04-19 14:34:04 +01:00
A.Unger 610c6fcbec add changelog 2021-04-19 14:55:41 +02:00
Alex Unger 32674c2e4f Merge pull request #1929 from owncloud/remove_ocis_hello_references
remove ocis-hello references
2021-04-19 14:03:27 +02:00
A.Unger 6e4de0abd3 config parsing on run command 2021-04-19 13:32:38 +02:00
Willy Kloucek 771f85ce2b remove ocis-hello references 2021-04-19 13:05:41 +02:00
Willy Kloucek a349bc3477 Merge pull request #1904 from owncloud/dependabot/npm_and_yarn/accounts/eslint-7.24.0
Bump eslint from 7.22.0 to 7.24.0 in /accounts
2021-04-19 09:21:36 +02:00
Willy Kloucek 6c3ad8cb45 Merge pull request #1924 from owncloud/owncloudci_wait_for
switch to owncloudci/wait-for
2021-04-19 09:11:51 +02:00
Alex Unger 13bb862645 Automated changelog update [skip ci] 2021-04-16 12:47:37 +00:00
Alex Unger 7266fb5f7a Merge pull request #1923 from owncloud/cleanup-dead-code 2021-04-16 14:47:07 +02:00
Willy Kloucek e4b9461ccc switch to owncloudci/wait-for 2021-04-16 14:10:57 +02:00
A.Unger ad006496ef remove unused reference 2021-04-16 13:53:38 +02:00
A.Unger 6bcade2e21 add changelog 2021-04-16 13:27:06 +02:00
A.Unger af64e288e9 remove dead runtime code 2021-04-16 13:22:49 +02:00
Willy Kloucek fb30483d6f Merge pull request #1627 from owncloud/make_reva_ocis_service_user_uuid_configurable
make reva ocis storage driver uuid configurable
2021-04-16 11:57:37 +02:00
Willy Kloucek c3b3c8b5fd make reva ocis storage driver uuid configurable 2021-04-16 10:25:33 +02:00
Artur Neumann 8af42a8d87 Merge pull request #1921 from owncloud/bumpCoreCommitId-2020-04-15
[tests-only] updated core commit to the latest upto 2021/04/15
2021-04-16 11:09:18 +05:45
Parajuli Kiran b9a1f4ee98 updated core commit to the latest upto 2021/04/15 2021-04-15 16:32:44 +05:45
Artur Neumann 9926c1cc70 Merge pull request #1918 from owncloud/bumnp-core-commit-id-20210414
[tests-only] Bump core commit id
2021-04-15 08:32:37 +05:45
Phil Davis b26b03165f [tests-only] Bump core commit id 2021-04-14 20:06:05 +05:45
Phil Davis 7ff66dd65b Automated changelog update [skip ci] 2021-04-14 14:20:16 +00:00
Phil Davis 642454f7cc Merge pull request #1919 from owncloud/update-reva
update reva to v1.6.1-0.20210414111318-a4b5148cbfb2
2021-04-14 20:04:46 +05:45
David Christofas 94ec263d89 update reva to v1.6.1-0.20210414111318-a4b5148cbfb2 2021-04-14 15:24:04 +02:00
Alex Unger b34d8253e0 Automated changelog update [skip ci] 2021-04-14 12:26:56 +00:00
Alex Unger 85550a3a35 Merge pull request #1917 from ishank011/registry-json 2021-04-14 14:26:30 +02:00
Alex Unger 20bc2a2b8c Automated changelog update [skip ci] 2021-04-14 12:10:51 +00:00
Alex Unger 58f5e69229 Merge pull request #1916 from ishank011/publicshares 2021-04-14 14:10:20 +02:00
Ishank Arora 0241467958 Add error log for failing to read from json file 2021-04-14 13:34:47 +02:00
Ishank Arora f926b60b1d Add janitor options to json driver 2021-04-14 13:05:14 +02:00
Ishank Arora 3a6fb0e0fc Add changelog 2021-04-14 13:00:02 +02:00
Ishank Arora 8ee5aac82b Add option to read registry rules from json file 2021-04-14 12:57:55 +02:00
Ishank Arora 7ca9e12116 Public share SQL driver config 2021-04-14 12:48:35 +02:00
Willy Kloucek 4100541baf Merge pull request #1915 from owncloud/remove_microbadger
remove microbadger update
2021-04-14 11:12:52 +02:00
Willy Kloucek a6559c8289 remove microbadger update 2021-04-14 09:53:35 +02:00
Alex Unger f98347d841 Merge pull request #1912 from owncloud/add_logtostderr=true
add logtostderr=true to protobuf generation
2021-04-14 09:51:00 +02:00
Willy Kloucek 28679c48ca Merge pull request #1914 from owncloud/replace_legacy_dockerhub_readme
replace legacy sheogorath/readme-to-dockerhub with chko/docker-pushrm
2021-04-14 09:44:36 +02:00
Alex Unger d63a79a0ba Merge pull request #1910 from owncloud/gh-ocis-1825 2021-04-13 19:59:26 +02:00
A.Unger ca0cc93252 update mods yet again 2021-04-13 16:19:11 +02:00
A.Unger 12ef07244c Merge branch 'master' into gh-ocis-1825 2021-04-13 16:15:17 +02:00
A.Unger c170e96b5f update modules? 2021-04-13 16:10:01 +02:00
Alex Unger b4e2c338ec Merge pull request #1911 from ishank011/gh-ocis-1825 2021-04-13 15:57:40 +02:00
Ishank Arora ded4abbd55 Set default user backend to accounts 2021-04-13 15:02:07 +02:00
Willy Kloucek 2bd67c2328 readd description 2021-04-13 14:45:56 +02:00
Willy Kloucek 475b2d14d8 replace legacy sheogorath/readme-to-dockerhub with chko/docker-pushrm 2021-04-13 14:41:44 +02:00
A.Unger 985b83a282 guard against returning admin user groups instead the requested user groups 2021-04-13 14:28:09 +02:00
Ishank Arora ffe3a17b73 Add proxy to go.mod 2021-04-13 14:25:00 +02:00
Ishank Arora 8b3a18ac8c Log if reva client cannot be generated 2021-04-13 14:14:51 +02:00
Ishank Arora 52f9d15b2b Minor fixes 2021-04-13 13:54:15 +02:00
Ishank Arora 9a590b37dc Revert to using user in context 2021-04-13 13:48:01 +02:00
Ishank Arora fff0c7499a Fixes 2021-04-13 13:35:40 +02:00
Ishank Arora 9a2a3bf229 Make accounts backend configurable in ocs 2021-04-13 13:28:19 +02:00
Ishank Arora 1b0b14512c Read UID and GID from the opaque object for CS3 proxy backend 2021-04-13 11:52:22 +02:00
A.Unger c6951d2e05 guard against possible empty groups 2021-04-13 11:48:11 +02:00
Willy Kloucek a4f5e223fa add logtostderr=true 2021-04-13 11:08:03 +02:00
A.Unger f23cf92153 interpret user from the IDP 2021-04-13 10:48:06 +02:00
Willy Kloucek 158015112d Merge pull request #1908 from owncloud/remove_go_micro_smaller_than_v2
remove micro smaller than v2
2021-04-13 10:28:36 +02:00
Willy Kloucek 708133ab08 fixes #1475 2021-04-13 09:29:24 +02:00
Willy Kloucek 955bd60edf Merge pull request #1907 from owncloud/highlight_demo_users
[docs-only] highlight demo users
2021-04-13 08:35:22 +02:00
Willy Kloucek 8a34f2550d unify links 2021-04-13 08:32:48 +02:00
Willy Kloucek a05b463069 highlight demo users 2021-04-12 18:41:16 +02:00
Willy Kloucek 9b95e9b119 Merge pull request #1902 from owncloud/update_ci_deps
update ci deps
2021-04-12 12:57:47 +02:00
Willy Kloucek b789c02166 revert to nodejs:14 2021-04-12 09:23:34 +02:00
Willy Kloucek df6cd1cb16 replace source 2021-04-12 09:11:48 +02:00
Willy Kloucek 5e8d477036 use bash 2021-04-12 08:40:54 +02:00
dependabot[bot] 8c25b5d517 Bump eslint from 7.22.0 to 7.24.0 in /accounts
Bumps [eslint](https://github.com/eslint/eslint) from 7.22.0 to 7.24.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.22.0...v7.24.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-12 06:01:05 +00:00
A.Unger ed99fb8292 assign user role if user exists but there are no role assignments 2021-04-09 14:15:47 +02:00
Willy Kloucek e41db209de update ci deps 2021-04-09 12:38:24 +02:00
Alex Unger 09f0ba44d4 Merge pull request #1894 from owncloud/add_vscode_debug 2021-04-07 17:26:42 +02:00
Willy Kloucek a0d9f63098 Merge pull request #1897 from owncloud/owncloud.dev
adapt to owncloud.dev
2021-04-07 15:06:28 +02:00
Willy Kloucek e3c7555211 remove json comments 2021-04-07 13:45:09 +02:00
Willy Kloucek 4581e9cdd1 add gitignore 2021-04-07 13:44:20 +02:00
Willy Kloucek 6020a37640 adapt to owncloud.dev 2021-04-07 13:40:12 +02:00
Phil Davis 588509b8e4 Merge pull request #1890 from owncloud/bumpCoreCommitId-2020-03-30
[tests-only] updated core commit to the latest upto 2021/04/06
2021-04-07 13:07:23 +05:45
Phil Davis b13914b022 Merge pull request #1896 from owncloud/dirkstascheit-patch-1
[docs-only] Update getting-started.md
2021-04-07 08:13:56 +05:45
Dirk Stascheit 481f9c045a Update getting-started.md
updated package links from 1.2 to 1.4
2021-04-06 17:06:57 +02:00
Willy Kloucek b2bc4421a1 add vscode debug config 2021-04-06 13:41:31 +02:00
Willy Kloucek d78dcd1986 Automated changelog update [skip ci] 2021-04-06 11:37:19 +00:00
Willy Kloucek 1fdffedc4f Merge pull request #1892 from owncloud/change_default_thumbnails_path
change default path for thumbnails
2021-04-06 13:36:48 +02:00
Willy Kloucek 076d8c0661 Merge pull request #1884 from owncloud/update_1.3_to_1.4
[docs-only] add breaking change to changelog and update strategy
2021-04-06 13:31:02 +02:00
Willy Kloucek 80a158ba4a change default path for thumbnails 2021-04-06 11:20:48 +02:00
Parajuli Kiran b598eb7caa updated line numbers in expected failures file 2021-04-06 11:33:12 +05:45
Parajuli Kiran 9add66609d updated core commit to the latest upto 2021/03/30 2021-04-06 10:15:06 +05:45
Phil Davis 024b5f2283 Automated changelog update [skip ci] 2021-04-03 07:07:32 +00:00
Phil Davis afe16be7d9 Merge pull request #1888 from wnienhaus/fix-unaligned-atomic-operation-on-arm32
move uint64s to beginning of struct to ensure they are 64-bit aligned
2021-04-03 12:48:14 +05:45
Wilko Nienhaus 011c6b76ee move uint64s to beginning of struct to ensure they are 64-bit aligned
See https://golang.org/pkg/sync/atomic/#pkg-note-BUG for reference:
"The first word in (...) an allocated struct (...) can be relied up to
be 64-bit aligned"

This fixes an "unaligned 64-bit atomic operation" panic on 32-bit ARM,
(in my case a Raspberry Pi 4, running 32-bit Raspbian). The panic
happens (at least) during the first login after a service (re)start.
2021-04-02 10:35:29 +03:00
Willy Kloucek f6ad814332 Merge pull request #1882 from labkode/fix-env-var
fix case for envar
2021-04-01 10:57:29 +02:00
Willy Kloucek 1de4d8b271 add breaking change to changelog and update strategy 2021-04-01 10:40:22 +02:00
Hugo Gonzalez Labrador 5982e9fe56 fix case for envar 2021-03-31 16:55:55 +02:00
Willy Kloucek 399c33fe2f Automated changelog update [skip ci] 2021-03-31 10:56:47 +00:00
Willy Kloucek 3f37ddb5a2 Merge pull request #1875 from owncloud/fix_proto
unique proto package names
2021-03-31 12:56:16 +02:00
Alex Unger 0dadf6f6a9 Automated changelog update [skip ci] 2021-03-31 10:38:10 +00:00
Alex Unger c5d9afdc58 Merge pull request #1872 from owncloud/enforce_quota
enforce quota
2021-03-31 12:37:34 +02:00
Florian Schade 29c4a34093 Automated changelog update [skip ci] 2021-03-31 10:26:31 +00:00
Florian Schade 89da2b0ed1 Merge pull request #1880 from owncloud/release-1.4.0
merge back release 1.4.0
2021-03-31 12:26:01 +02:00
Willy Kloucek 9bc0cb49c1 fix go import and makefiles, version bump of build tools 2021-03-31 12:03:42 +02:00
Willy Kloucek 2f831c4fca fix proto package names 2021-03-31 08:02:43 +02:00
Florian Schade 1ba10d97e8 create release changelog folder 2021-03-30 16:32:34 +02:00
Florian Schade fbe825bedc link pr 2021-03-30 16:29:52 +02:00
Florian Schade e26243ddf3 use web 2.1.0 changelog for release notes 2021-03-30 16:29:52 +02:00
Patrick Maier eeafcf8cfd [docs-only] 1.4.0 Release Notes 2021-03-30 16:29:52 +02:00
Florian Schade 14c0371f94 link pr 2021-03-30 16:24:48 +02:00
Florian Schade 686df71eeb use web 2.1.0 changelog for release notes 2021-03-30 16:24:48 +02:00
Patrick Maier 06e2154265 [docs-only] 1.4.0 Release Notes 2021-03-30 16:24:48 +02:00
Florian Schade aa1c03aae2 fix unreleased changelog for jpeg 2021-03-30 11:44:58 +02:00
Willy Kloucek 31a0389fbc enforce quota 2021-03-30 10:55:58 +02:00
Pascal Wengerter 169962b4cf Automated changelog update [skip ci] 2021-03-29 14:01:12 +00:00
Pascal Wengerter 320679ca91 Merge pull request #1870 from owncloud/update-web-2.1.0
Update web to 2.1.0
2021-03-29 14:57:39 +01:00
Pascal Wengerter e27c320fa1 Update web to 2.1.0 2021-03-29 09:32:06 +01:00
Phil Davis 697b7cae27 Automated changelog update [skip ci] 2021-03-29 08:11:19 +00:00
Phil Davis c4cbe32c29 Merge pull request #1861 from owncloud/update-reva
update reva to v1.6.1-0.20210326165326-e8a00d9b2368
2021-03-29 13:55:21 +05:45
Artur Neumann 523e611b7e Merge pull request #1863 from owncloud/dependabot/npm_and_yarn/settings/nightwatch-1.6.0
Bump nightwatch from 1.5.1 to 1.6.0 in /settings
2021-03-29 13:37:11 +05:45
Phil Davis 5723bd28e2 Adjust trashbin expected failures on OCIS 2021-03-29 12:57:36 +05:45
dependabot[bot] dabff59d27 Bump nightwatch from 1.5.1 to 1.6.0 in /settings
Bumps [nightwatch](https://github.com/nightwatchjs/nightwatch) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/nightwatchjs/nightwatch/releases)
- [Commits](https://github.com/nightwatchjs/nightwatch/compare/v1.5.1...v1.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 05:56:47 +00:00
David Christofas bcffed2e00 update reva to v1.6.1-0.20210326165326-e8a00d9b2368 2021-03-29 05:11:23 +05:45
Phil Davis b25ef84017 Merge pull request #1862 from owncloud/bumpCoreCommitId-2020-03-27
[tests-only] bumped core commit id for API tests
2021-03-27 18:07:30 +05:45
Parajuli Kiran 808e93ff4c updated line numbers in expected failures file 2021-03-27 15:11:30 +05:45
Parajuli Kiran dbfb17788c bumped core commit id for api tests 2021-03-27 13:49:52 +05:45
Alex Unger eab96d59a8 Automated changelog update [skip ci] 2021-03-26 12:02:06 +00:00
Alex Unger 95b69a5e5d Merge pull request #1819 from owncloud/refactor-extensions 2021-03-26 13:01:35 +01:00
Alex Unger ed8d85077c Merge pull request #1852 from owncloud/onlyoffice-update-npm-dependencies
update npm dependencies
2021-03-26 11:47:34 +01:00
Alex Unger e829ac8f88 Merge pull request #1849 from owncloud/settings-update-npm-dependencies
update npm dependencies
2021-03-26 11:47:11 +01:00
Alex Unger 8c00a0cf8c Merge pull request #1851 from owncloud/accounts-update-npm-deps
update npm dependencies
2021-03-26 11:47:04 +01:00
A.Unger c5bef3609b add changelog 2021-03-26 11:44:36 +01:00
A.Unger d95d58c66a Merge branch 'master' into refactor-extensions 2021-03-26 11:40:10 +01:00
Phil Davis 00dd4460ae Merge pull request #1855 from owncloud/bumpCoreCommitId-2020-03-25
[tests-only] Bump core commit id 2020 03 25
2021-03-26 08:57:29 +05:45
Phil Davis c208b12eb1 Adjust expected-failures in apiWebdavLocksUnlock suite 2021-03-26 08:07:41 +05:45
Parajuli Kiran c32e342487 updated core commit id with expected failures line numbers 2021-03-26 06:51:16 +05:45
Parajuli Kiran 5fe83f62c7 updated core commit id with expected failures line numbers 2021-03-26 06:51:16 +05:45
David Christofas 4511ca9770 update npm dependencies 2021-03-25 21:34:26 +01:00
David Christofas f39e51e57b update npm dependencies 2021-03-25 21:33:11 +01:00
Jan Ackermann e28bdca121 Merge pull request #1857 from owncloud/l10n-improvements-accounts-settings
Adden l10n to accounts and settings
2021-03-25 19:33:11 +01:00
JanAckermann 316d838f90 Adden l10n to accounts and settings 2021-03-25 17:24:06 +01:00
Jan Ackermann 7a72f52067 [tx] updated from transifex 2021-03-25 15:52:43 +00:00
Jan Ackermann 4bfdd604d1 Merge pull request #1854 from owncloud/ocis-l10n-fix2
fix clean deletes translations.js
2021-03-25 16:48:42 +01:00
JanAckermann fd2668a163 fix clean deletes translations.js 2021-03-25 15:57:10 +01:00
Jan Ackermann df8fb3097b [tx] updated from transifex 2021-03-25 14:39:07 +00:00
Jan Ackermann 0a5c0383c7 Merge pull request #1853 from owncloud/ocis-l10n-fix
added missing push command
2021-03-25 15:35:34 +01:00
JanAckermann 68bf78dc5b added missing push command 2021-03-25 14:43:45 +01:00
David Christofas 8f45adbcf8 update npm dependencies 2021-03-25 14:40:49 +01:00
Jan Ackermann 3017b02219 Merge pull request #1842 from owncloud/ocis-l10n
added l10n
2021-03-25 13:52:55 +01:00
Willy Kloucek 0b3db9a9d9 fix PATH 2021-03-25 12:58:49 +01:00
Willy Kloucek 79ca3116c9 wip 2021-03-25 12:10:52 +01:00
JanAckermann 35463646e4 added l10n 2021-03-25 12:01:37 +01:00
Phil Davis bbcea23e85 Merge pull request #1841 from owncloud/bumpCoreCommitId
[tests-only] updated latest core commit id
2021-03-25 05:22:16 +05:45
Phil Davis abd657e644 Merge pull request #1844 from owncloud/update_alpine_base_image
update alpine base image to 3.13
2021-03-25 05:20:49 +05:45
Phil Davis 26f7464bfb Merge pull request #1843 from owncloud/update_bingo
update bingo to go 1.16 compatible release
2021-03-25 05:20:08 +05:45
Willy Kloucek 5ae42173bb Merge pull request #1835 from owncloud/allow_dynamic_client_registration
[deployment examples]  Keycloak: allow dynamic client registration from any host
2021-03-24 18:17:44 +01:00
Parajuli Kiran c705ca9d21 Updated scenarios line numbers in expected failure files 2021-03-24 21:57:20 +05:45
Parajuli Kiran 31eee73cdf updated latest core commit id 2021-03-24 21:57:20 +05:45
Willy Kloucek edb733baf3 allow dynamic client registration from any host 2021-03-24 16:45:28 +01:00
Willy Kloucek 4e224e6304 properly set up .dockerignore 2021-03-24 16:44:31 +01:00
Willy Kloucek a7f0bac2a0 fix to alpine:3.13 2021-03-24 16:44:31 +01:00
Willy Kloucek 4c769e0d33 update alpine base image to 3.14 2021-03-24 16:44:31 +01:00
Willy Kloucek 0e71d8c8a7 update bingo to go 1.16 compatible release 2021-03-24 16:43:27 +01:00
Willy Kloucek dbe2a2a61e Merge pull request #1845 from owncloud/fix_eos_test
bump go version for eos test
2021-03-24 16:38:52 +01:00
Willy Kloucek be8441aa9a bump go version for eos test 2021-03-24 15:32:41 +01:00
Willy Kloucek 90f5eeaca4 Automated changelog update [skip ci] 2021-03-24 12:24:16 +00:00
Willy Kloucek d18b6d71d6 Merge pull request #1833 from owncloud/update_reva
update Reva and Go
2021-03-24 13:23:33 +01:00
Willy Kloucek 1314aacece switch to owncloudci/golang:1.16 2021-03-24 11:17:25 +01:00
Willy Kloucek bd49b1d5c7 change volume 2021-03-24 10:28:40 +01:00
Willy Kloucek daf18e486c try golang 2021-03-24 10:07:50 +01:00
Willy Kloucek a6da51c43b fix expected failures and add changelog 2021-03-23 14:43:25 +01:00
Willy Kloucek 8f058b5867 edit expected failures 2021-03-23 13:57:53 +01:00
Willy Kloucek 5a5d3af8f2 update go 2021-03-23 13:41:16 +01:00
Willy Kloucek fa040cf56f update reva 2021-03-23 13:41:11 +01:00
Alex Unger 39937cec1b Merge pull request #1817 from owncloud/migration-adr-docs 2021-03-23 12:19:23 +01:00
Phil Davis 3ba9005992 Merge pull request #1832 from owncloud/bump-core-commit-id
[tests-only] bump commit id for api tests
2021-03-23 13:29:54 +05:45
Parajuli Kiran 54164e7491 Updated expected failures for owncloud & ocis storage 2021-03-23 12:30:52 +05:45
Parajuli Kiran 958895a96b Bump commit id for api tests 2021-03-23 12:16:15 +05:45
Pascal Wengerter e9c09cce43 Merge pull request #1834 from owncloud/22032021_fix_extension_ports
[docs-only] Fix typo and update http->https, port numbers
2021-03-22 16:19:09 +00:00
Pascal Wengerter 356aa6b523 Fix further URL and small wording improvements 2021-03-22 16:10:29 +00:00
Pascal Wengerter 3be69e45bd Fix typo and update http->https, port numbers 2021-03-22 14:40:57 +00:00
Willy Kloucek 3b2ce2f12d Automated changelog update [skip ci] 2021-03-22 07:41:49 +00:00
Willy Kloucek 1fa2c5f3a0 Merge pull request #1824 from owncloud/update-build-target
Update Build Targets
2021-03-22 08:41:20 +01:00
Jörn Friedrich Dreyer 63abba7e6a more data details, readd adr
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 15:35:30 +00:00
A.Unger 48fe247a03 add changelog 2021-03-19 10:50:30 +01:00
A.Unger 45256a4988 add build-all target 2021-03-19 10:47:11 +01:00
A.Unger 5582519b1e make build-debug as its own target 2021-03-19 10:44:45 +01:00
Jörn Friedrich Dreyer 7a295da3ff add tables, move adr
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 09:29:48 +00:00
Jörn Friedrich Dreyer ec0e962c7b Merge pull request #1621 from owncloud/refine-adr
[docs-only] Refine adrs
2021-03-19 10:13:25 +01:00
Jörn Friedrich Dreyer f8d3e514c5 cosmetics
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 08:49:12 +00:00
Jörn Friedrich Dreyer 291710deb9 incorporate comments
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 08:49:12 +00:00
Jörn Friedrich DreyerandAlex Unger 6c66c755f4 Apply suggestions from code review
Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com>
2021-03-19 08:49:12 +00:00
Jörn Friedrich Dreyer cd28ac3fbd initial migration docs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-19 08:49:12 +00:00
Alex Unger ebba4f1bd6 Merge pull request #1821 from owncloud/doc-warn-firewall 2021-03-19 09:31:50 +01:00
Klaas Freitag 6692c63517 Reworded based on review feedback. 2021-03-19 08:56:13 +01:00
Artur Neumann 617e5a9039 Merge pull request #1823 from owncloud/bump-commit-id-20210318
[tests-only] Bump commit id for tests
2021-03-19 08:54:37 +05:45
Phil Davis 7440c2284b Bump commit id for tests 2021-03-19 03:46:59 +05:45
Alex Unger dc03cce6aa Automated changelog update [skip ci] 2021-03-18 16:39:24 +00:00
Alex Unger d183cdb742 Merge pull request #1822 from owncloud/runtime-hostname-port-configurable 2021-03-18 17:36:33 +01:00
A.Unger 61a15be7a8 update default port to 9250 2021-03-18 15:38:36 +01:00
A.Unger 25ea46324f add changelog + rename OCIS_RUNTIME_HOSTNAME -> OCIS_RUNTIME_HOST 2021-03-18 15:27:45 +01:00
A.Unger 385d6ecc48 make runtime port and host configurable 2021-03-18 15:23:36 +01:00
Klaas Freitag fbfc10b65e Add warning about firewall configuration. 2021-03-18 13:16:28 +01:00
A.Unger 61bd6be0ad refactor webdav tracing config 2021-03-18 12:30:02 +01:00
A.Unger 3ec71d0da2 refactor web tracing config 2021-03-18 12:29:06 +01:00
A.Unger 6af43cc150 refactor thumbnails tracing config 2021-03-18 12:28:01 +01:00
A.Unger 338c8c6942 refactor store tracing config 2021-03-18 12:26:49 +01:00
A.Unger 02bfa9509b refactor proxy tracing config 2021-03-18 12:25:23 +01:00
A.Unger 192e3fbd00 refactor onlyoffice tracing config 2021-03-18 12:24:07 +01:00
A.Unger 8b48a3223f refactor ocs tracing config 2021-03-18 12:23:07 +01:00
A.Unger 3872cb07ed refactor idp tracing config 2021-03-18 12:11:52 +01:00
A.Unger cd41f1c8dc refactor graph-explorer tracing config 2021-03-18 12:10:36 +01:00
A.Unger 1d49a267f2 handle error + refactor graph tracing config 2021-03-18 12:09:00 +01:00
A.Unger 9a53c41552 refactor glauth tracing config 2021-03-18 12:05:08 +01:00
A.Unger f53d00b4ff refactor users tracing config 2021-03-18 11:51:56 +01:00
A.Unger 43675c4f14 refactor storage-users tracing config 2021-03-18 11:50:16 +01:00
A.Unger 938f6e8d73 refactor storage-public-link tracing config 2021-03-18 11:49:09 +01:00
A.Unger 07ecf3199c refactor storage-metadata tracing config 2021-03-18 11:47:51 +01:00
A.Unger 0e3b97ac03 refactor storage-home tracing config 2021-03-18 11:45:23 +01:00
A.Unger c8e7a75d54 refactor sharing tracing config 2021-03-18 11:43:50 +01:00
A.Unger 604cab3e63 refactor groups tracing config 2021-03-18 11:38:43 +01:00
A.Unger 44fe360ef5 refactor gateway tracing config 2021-03-18 11:36:54 +01:00
A.Unger f407686404 refactor a authbasic storage tracing config 2021-03-18 11:04:12 +01:00
A.Unger 9dd2cfa2e9 refactor a authbearer storage tracing config 2021-03-18 10:57:15 +01:00
A.Unger cd1e4419c8 Merge branch 'master' into refactor-extensions 2021-03-18 10:51:23 +01:00
A.Unger 0092c74959 refactor a reva storage tracing config 2021-03-18 10:50:54 +01:00
Phil Davis 29897cafaf Merge pull request #1818 from owncloud/bump-commit-ids-20210318
[tests-only] Bump core and web commit ids
2021-03-18 15:32:43 +05:45
A.Unger 0b448f6e02 refactor accounts tracing and server method 2021-03-18 10:31:30 +01:00
Phil Davis cee8794101 Bump core and web commit ids 2021-03-18 14:30:42 +05:45
Alex Unger 2e37c42d57 Automated changelog update [skip ci] 2021-03-17 21:52:29 +00:00
Alex Unger 4d021ae9bc Merge pull request #1816 from owncloud/file-logging-ocis-1666 2021-03-17 22:51:30 +01:00
A.Unger 192fa11d59 add changelog 2021-03-17 16:57:44 +01:00
A.Unger 8a64b190a2 fix debug lines 2021-03-17 16:05:48 +01:00
A.Unger 9c6e8d7bf3 defensive code 2021-03-17 15:59:05 +01:00
A.Unger fa27def950 suport for proxy 2021-03-17 15:42:24 +01:00
A.Unger c04abb9f47 suport for accounts 2021-03-17 15:41:36 +01:00
A.Unger 094af97b95 suport for webdav 2021-03-17 15:40:23 +01:00
A.Unger 9daf14e124 suport for web 2021-03-17 15:39:24 +01:00
A.Unger ed6bdc77b8 suport for thumbnails 2021-03-17 15:38:37 +01:00
A.Unger 314014ae21 suport for store 2021-03-17 15:37:35 +01:00
A.Unger bf63bc8c7c suport for onlyoffice 2021-03-17 15:36:37 +01:00
A.Unger e15e33d873 suport for ocs 2021-03-17 15:35:32 +01:00
A.Unger 1c7b97ab88 suport for graph-explorer 2021-03-17 15:33:21 +01:00
A.Unger 4f3ebb710c suport for graph 2021-03-17 15:31:51 +01:00
A.Unger abd18e3101 Merge branch 'master' into file-logging-ocis-1666 2021-03-17 15:28:16 +01:00
Alex Unger 05f60af349 Merge pull request #1815 from owncloud/cleanup-runtime
Cleanup from Runtime
2021-03-17 15:27:55 +01:00
A.Unger 8a3e280d83 initial support for file logging 2021-03-17 15:26:43 +01:00
A.Unger 41f4a633f5 add config-file flag to ocis, propagate log config to graph & graph-explorer 2021-03-17 10:58:28 +01:00
Jannik Stehle 732db59bcf Automated changelog update [skip ci] 2021-03-17 08:47:31 +00:00
Jannik Stehle 2fe3ffb637 Merge pull request #1813 from owncloud/issues/login-page-title
Replace special character in login page title with a regular minus
2021-03-17 09:46:34 +01:00
Jannik Stehle bfcab42fc2 Replace special character in login page title with a regular minus 2021-03-17 08:44:44 +01:00
Artur Neumann 0d5ac2e5da Merge pull request #1814 from owncloud/bump-commit-id-20210316
[tests-only] Bump commit ids for tests
2021-03-17 09:04:43 +05:45
Phil Davis 1f27ea4aa2 Bump commit ids for tests 2021-03-17 08:00:40 +05:45
Artur Neumann 14493d958e Merge pull request #1786 from owncloud/bumpCommitId
[Tests-Only] Bump core and web commit id
2021-03-16 09:03:02 +05:45
Jörn Friedrich Dreyer 208f19ce4b Merge pull request #1762 from owncloud/ocis-1715-lighter-runtime
Lighter Runtime
2021-03-15 17:28:51 +01:00
Jörn Friedrich Dreyer 9fa77a27ba fix graph and graph-explorer
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-15 15:17:29 +00:00
Benedikt Kulmann fa7cce9e98 Automated changelog update [skip ci] 2021-03-15 15:13:06 +00:00
Benedikt Kulmann 39a7a6a500 Merge pull request #1811 from owncloud/improve-idp-login-accessibility
Improve idp login acessibility
2021-03-15 16:10:43 +01:00
JanAckermann 2c41d99587 updated changelog item 2021-03-15 15:01:12 +01:00
JanAckermann 808282864f Improve idp login acessibility 2021-03-15 14:39:55 +01:00
HariBhandari07 d5316a61a3 [Tests-Only] Bump core and web commit id 2021-03-15 18:38:04 +05:45
Willy Kloucek f3df994c2d Merge pull request #1805 from owncloud/idp-update-npm-deps
update npm dependencies
2021-03-15 08:30:53 +01:00
A.Unger 5594c142dd fix offense 2021-03-13 21:52:00 +01:00
A.Unger 837b1ba96d upper case share 2021-03-13 14:22:52 +01:00
A.Unger 4af261d6ed Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-13 13:35:46 +01:00
Phil Davis c804ed6065 Merge pull request #1801 from owncloud/fix_build_docs
[docs-only] fix build instructions
2021-03-13 11:26:22 +05:45
Phil Davis 5d15b0c86d Apply suggestions from code review of build.md 2021-03-13 11:15:14 +05:45
A.Unger 04fa140c76 Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-12 22:59:44 +01:00
A.Unger 3fafbc88bd fix typos 2021-03-12 21:26:56 +01:00
David Christofas eeba03c727 update npm dependencies 2021-03-12 17:49:54 +01:00
A.Unger 2d5107fda3 add webdav to new config scheme 2021-03-12 17:14:59 +01:00
A.Unger 26f333dece add web to new config scheme 2021-03-12 17:12:29 +01:00
A.Unger 96447d50b9 add thumbnails to new config scheme 2021-03-12 17:07:57 +01:00
A.Unger dff486a737 add store to new config scheme 2021-03-12 17:03:43 +01:00
A.Unger f77d4eb67a add settings to new config scheme 2021-03-12 17:00:36 +01:00
A.Unger df3d563aac add onlyoffice to new config scheme 2021-03-12 16:54:41 +01:00
A.Unger e132be0db6 add ocs to new config scheme 2021-03-12 16:51:28 +01:00
Benedikt Kulmann fbfa38c484 Automated changelog update [skip ci] 2021-03-12 15:47:08 +00:00
Benedikt Kulmann ee9457c645 Merge pull request #1794 from owncloud/issues/WEB-105
Added labels for username and password input in idp service
2021-03-12 16:46:27 +01:00
A.Unger 49f7266d6e add all storages to new config scheme 2021-03-12 16:45:23 +01:00
Willy Kloucek d922c1266e Merge pull request #1778 from owncloud/fix_ci_go_warnings
[CI-only] suppress `bash: go: command not found` warnings
2021-03-12 15:57:55 +01:00
Jan Ackermann de9b43ed7c Update add-labels-and-aria-labelled-by-on-login.md 2021-03-12 15:23:51 +01:00
A.Unger fb460f794f add storage-metadata to new config scheme 2021-03-12 15:17:06 +01:00
David Christofas 77bf0d4cee Merge pull request #1803 from owncloud/settings-update-npm-dependencies
update npm dependencies
2021-03-12 14:40:34 +01:00
A.Unger eb44997e43 add graph to new config scheme 2021-03-12 14:19:40 +01:00
A.Unger db1b09c873 add glauth to new config scheme 2021-03-12 14:13:06 +01:00
Willy Kloucek 43038e8c4b Merge pull request #1802 from mrkara/fixBrokenLink
[docs-only] Fix broken link on _index.md
2021-03-12 14:11:45 +01:00
A.Unger f0c1d59672 add idp to new config scheme 2021-03-12 14:03:52 +01:00
A.Unger c1f489a258 update config parsing for accounts and proxy 2021-03-12 13:47:52 +01:00
JanAckermann c586443609 Added labels and aria properties for username and password input in idp service 2021-03-12 11:33:43 +01:00
A.Unger 3901680fba example of refactoring settings tracing away 2021-03-12 10:56:20 +01:00
David Christofas f04af83858 update npm dependencies 2021-03-12 10:49:13 +01:00
Muhammet Kara 13b4c871cf Fix broken link on _index.md
Signed-off-by: Muhammet Kara <muhammet.kara@collabora.com>
2021-03-12 12:31:59 +03:00
Willy Kloucek 42acd46b3a fix build instructions 2021-03-12 09:45:28 +01:00
A.Unger b52fe95762 run ParseConfig only when running unsupervised 2021-03-11 20:09:05 +01:00
A.Unger dc4b4b7e46 correctly implement suture v4 interfaces 2021-03-11 15:50:01 +01:00
A.Unger 99ad1cdd25 return ocis log level to warning 2021-03-11 13:05:17 +01:00
A.Unger 1df0d2d95f Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-11 13:00:22 +01:00
Phil Davis b892b5e501 Merge pull request #1795 from mrkara/updateDocsRunCommand
[docs-only] Update development build.md
2021-03-11 16:41:00 +05:45
Muhammet Kara a72059e50b Update development build.md
To fix incorrect usage of the 'help requested' flag

Signed-off-by: Muhammet Kara <muhammet.kara@collabora.com>
2021-03-11 13:38:25 +03:00
David Christofas f2dcc93e31 Automated changelog update [skip ci] 2021-03-11 09:19:36 +00:00
David Christofas 11dd0ae2d8 Merge pull request #1791 from owncloud/thumbnails-support-gifs
add support for gifs to the thumbnails service
2021-03-11 10:18:39 +01:00
A.Unger 8f67dd3b08 fix sonar smells 2021-03-11 09:38:10 +01:00
Jannik Stehle 84911d12a3 Automated changelog update [skip ci] 2021-03-11 07:38:45 +00:00
Jannik Stehle 8f9e1dd5d8 Merge pull request #1792 from owncloud/issues/web-4322
Add focus to input elements on login page
2021-03-11 08:37:20 +01:00
David Christofas b490e32d7d add support for gifs to the thumbnails service 2021-03-10 17:29:26 +01:00
Jannik Stehle cdeda5c012 Include updated embed.go file for the idp app 2021-03-10 17:23:37 +01:00
A.Unger d3af1eacfb kill and start correctly 2021-03-10 17:02:06 +01:00
A.Unger 4ee52cc9cd copy config, since it is shared 2021-03-10 16:35:11 +01:00
Jannik Stehle 83a7103620 Add focus to input elements on login page 2021-03-10 16:23:05 +01:00
Jörn Friedrich Dreyer 9424caede8 list running services
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-10 15:12:50 +00:00
A.Unger b19e739137 increase logging 2021-03-10 16:03:59 +01:00
A.Unger 117829515b supervisor logging 2021-03-10 15:40:43 +01:00
A.Unger a145ddf2b2 Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-10 14:46:13 +01:00
Willy Kloucek 6f9df9830b Automated changelog update [skip ci] 2021-03-10 13:34:27 +00:00
Willy Kloucek a9a02c2ea6 Merge pull request #1788 from owncloud/release-1.3.0
merge back release 1.3.0
2021-03-10 14:31:39 +01:00
Phil Davis a8ea9cc94e Automated changelog update [skip ci] 2021-03-10 13:16:51 +00:00
Phil Davis bcfd6acd87 Merge pull request #1790 from owncloud/clarify-expected-failures
clarify expected failures
2021-03-10 19:00:25 +05:45
Jörn Friedrich Dreyer 40eec3460b clarify expected failures
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-10 12:15:54 +00:00
A.Unger a473780c9d add accounts to delayed 2021-03-10 12:34:23 +01:00
A.Unger 6054e6b4a1 sequential access to viper config (still broken) + add delayed execution to storage-sharing 2021-03-10 12:26:14 +01:00
David Christofas f4c1c063fa Automated changelog update [skip ci] 2021-03-10 11:20:51 +00:00
David Christofas 17a700f0a2 Merge pull request #1785 from owncloud/fix-jpeg-thumbnails
fix jpeg thumbnails
2021-03-10 12:05:54 +01:00
A.Unger 0d3350497a Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-10 11:45:43 +01:00
A.Unger e8c57394d8 fix debug services shutdown 2021-03-10 11:38:21 +01:00
A.Unger 4e37d4a2f6 update commands when running in supervised mode 2021-03-10 11:10:46 +01:00
David Christofas ff618c076a fix jpeg thumbnails 2021-03-10 10:06:19 +01:00
Michael Barz 097cc1548a Merge pull request #1783 from owncloud/relnotes_1.3
[docs-only] Add Release Notes for oCIS release 1.3.0
2021-03-10 09:53:15 +01:00
Phil Davis 457ff589be Apply suggestions from 1.3.0 release notes review 2021-03-10 05:35:15 +05:45
Phil Davis 4e62350696 Merge pull request #1784 from owncloud/09032021_update_docs
[docs-only] Fix broken sample user password, improve readability
2021-03-10 05:34:28 +05:45
Pascal Wengerter ec8177d75e Fix sample user password & improve readability 2021-03-10 05:29:38 +05:45
A.Unger 25909d5923 fix duplicated key 2021-03-09 23:16:13 +01:00
A.Unger 90aea4f58d tweak proxy scalability 2021-03-09 22:58:18 +01:00
Klaas Freitag 27e3fbcf91 Add changelog for oCIS release 1.3.0 2021-03-09 20:01:44 +01:00
A.Unger 5f9133386d fix run / kill 2021-03-09 19:15:59 +01:00
A.Unger 60a1e3ce19 runtime/service cleanup 2021-03-09 17:36:47 +01:00
A.Unger 9c1a51be01 dead code 2021-03-09 17:33:18 +01:00
A.Unger f8a651bad2 propagate logging config to storages 2021-03-09 17:16:12 +01:00
Jörn Friedrich Dreyer 2bfdab8735 add remaining services
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-09 16:03:47 +00:00
Michael Barz 1ca18f4cd2 prepare release 1.3.0
Signed-off-by: Michael Barz <mbarz@owncloud.com>
2021-03-09 16:27:44 +01:00
Pascal Wengerter 98709a8dfc Automated changelog update [skip ci] 2021-03-09 15:17:29 +00:00
Pascal Wengerter ebd863e73e Merge pull request #1776 from owncloud/update-web-2.0.2
Update web version to 2.0.2
2021-03-09 15:17:00 +00:00
A.Unger 29910838c1 rework config 2021-03-09 15:55:45 +01:00
Pascal Wengerter 255b872b30 Update web release docs && re-run CI 2021-03-09 13:55:10 +00:00
Pascal Wengerter dc5496e16c Update web version to 2.0.2 2021-03-09 13:54:38 +00:00
Phil Davis e0eff6ee41 Merge pull request #1760 from owncloud/bumpCommitId
[Tests-only] bump web and core commit id
2021-03-09 19:02:27 +05:45
Swikriti Tripathi c939d6042b bump web and core commit id and adjust expected to fail file 2021-03-09 18:02:11 +05:45
A.Unger 757cb9abe9 wip 2021-03-09 13:10:05 +01:00
Phil Davis 253e180355 Merge pull request #1781 from owncloud/fix_ci_docs
[docs-only] fix ci docs
2021-03-09 17:42:53 +05:45
Willy Kloucek 84888ebce1 fix ci docs 2021-03-09 11:27:21 +01:00
Willy Kloucek d1701b3035 conditionally include bingo 2021-03-09 11:01:46 +01:00
A.Unger 9284c232b8 undo log lines 2021-03-09 10:31:58 +01:00
Jörn Friedrich Dreyer 463aa76833 disable tls for the idp
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-08 20:26:40 +00:00
A.Unger 34257672d3 log request path instead 2021-03-08 17:18:09 +01:00
Jörn Friedrich Dreyer bb7cfb5a87 obnoxious proxy logging
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-08 16:13:19 +00:00
Jörn Friedrich Dreyer 97754be003 wait for 5 sec after the proxy is available
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-08 15:41:36 +00:00
Alex Unger 58c5ad2e2f increase logging to debug on CI 2021-03-08 13:54:39 +01:00
A.Unger 8b29f096e8 tweak drone star 2 2021-03-05 16:14:32 +01:00
A.Unger bdff8b84f8 tweak drone star 2021-03-05 16:13:49 +01:00
A.Unger 3b83e9dc93 Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-05 15:41:02 +01:00
A.Unger 6d410e596c drop dead code 2021-03-05 14:50:56 +01:00
David Christofas 0eda3b882b Merge pull request #1763 from owncloud/accounts-update-npm-deps
update npm dependencies
2021-03-05 14:33:43 +01:00
David Christofas fb6b83a8cc Merge pull request #1765 from owncloud/idp-update-npm-deps
update npm dependencies
2021-03-05 14:33:36 +01:00
A.Unger 074eb8d982 propagate logging using config options 2021-03-05 14:28:38 +01:00
A.Unger 277ccc8b82 patch config parsing 2021-03-05 14:08:40 +01:00
David Christofas 9da10fc14e Merge pull request #1764 from owncloud/onlyoffice-update-npm-dependencies
update npm dependencies
2021-03-05 08:56:25 +01:00
A.Unger bb2431839d prepend storage- 2021-03-04 22:39:21 +01:00
David Christofas 9c6fbedfd5 update npm dependencies 2021-03-04 21:20:56 +01:00
David Christofas 400cd5e3e5 update npm dependencies 2021-03-04 20:49:13 +01:00
David Christofas 5a434d6deb update npm dependencies 2021-03-04 20:42:44 +01:00
Jörn Friedrich Dreyer e4c5043ef3 make linter happy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-04 15:37:33 +00:00
Jörn Friedrich Dreyer 9669ae3ade precreate folders to json files
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-04 15:26:03 +00:00
A.Unger 2a565b80fa Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-04 15:28:42 +01:00
A.Unger f2660dd608 add storage-sharing 2021-03-04 15:28:21 +01:00
A.Unger 01b507c4dc add storage-public-link 2021-03-04 15:25:21 +01:00
A.Unger f62c6577c4 add storage-users 2021-03-04 15:23:11 +01:00
A.Unger 59b76bc5a6 add storage-home 2021-03-04 15:20:59 +01:00
A.Unger 7e834c11d6 add storage-auth-bearer 2021-03-04 15:18:35 +01:00
A.Unger 308467b134 panic? 2021-03-04 15:14:25 +01:00
A.Unger 40ff29403f add storage-groupsprovider 2021-03-04 15:00:02 +01:00
A.Unger 255fc4bc92 leftover comment 2021-03-04 14:58:19 +01:00
A.Unger cea043c2ac add storage-gateway 2021-03-04 14:54:27 +01:00
A.Unger 30ed4233b2 add storage-frontend 2021-03-04 14:45:18 +01:00
A.Unger 66c1498ffa goimports 2021-03-04 14:39:06 +01:00
A.Unger 8aed339867 add webdav 2021-03-04 14:37:37 +01:00
A.Unger e8b1665f63 fix flag parsing 2021-03-04 14:33:16 +01:00
A.Unger 96521d23a9 add thumbnails 2021-03-04 14:08:44 +01:00
A.Unger 3c770dd118 add store 2021-03-04 14:03:06 +01:00
A.Unger e25f5b1c98 add proxy 2021-03-04 13:56:49 +01:00
A.Unger f7917bf760 add onlyoffice 2021-03-04 13:26:49 +01:00
A.Unger d0b71bf560 fix ocs 2021-03-04 13:22:32 +01:00
A.Unger 7eea714633 add idp 2021-03-04 13:10:18 +01:00
A.Unger 08e3eea6b7 add glauth 2021-03-04 13:04:37 +01:00
A.Unger 742b571a5b refactor token db away 2021-03-04 13:00:16 +01:00
A.Unger 81576c029a do not panic 2021-03-04 12:46:47 +01:00
A.Unger 58543a1415 correct usage of suture 2021-03-04 11:51:36 +01:00
Jörn Friedrich Dreyer f9de747ef3 Merge pull request #1759 from owncloud/update-ocis-index-docs
[docs-only] update ocis index
2021-03-04 11:38:17 +01:00
Jörn Friedrich Dreyer 90e7c53187 Merge pull request #1757 from owncloud/update-development-getting-started
[docs-only] Update development getting-started.md
2021-03-04 11:37:14 +01:00
Jörn Friedrich Dreyer 0bbee16e88 add ldap / glauth, add review
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-04 10:34:19 +00:00
A.Unger a2a921454b add accounts 2021-03-04 10:50:06 +01:00
Jörn Friedrich Dreyer 6df001524e Update development getting-started.md
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-04 09:48:14 +00:00
A.Unger b806e4b902 Merge branch 'master' into ocis-1715-lighter-runtime 2021-03-04 10:06:51 +01:00
A.Unger a385dd2011 add more todos 2021-03-03 17:37:04 +01:00
A.Unger 59de8198c6 add storage metadata to the runtime and fix its config parsing when running on supervised mode 2021-03-03 17:36:03 +01:00
David Christofas ee4073256f Merge pull request #1756 from owncloud/settings-update-npm-dependencies
update npm dependencies
2021-03-03 16:51:58 +01:00
Jörn Friedrich Dreyer bdbeb967c6 update ocis index
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-03-03 15:34:03 +00:00
David Christofas d007164a53 Automated changelog update [skip ci] 2021-03-03 15:30:53 +00:00
David Christofas 57b337546d Merge pull request #1758 from owncloud/remove-log-secrets
remove JWT from logs
2021-03-03 16:28:45 +01:00
David Christofas c532073dd1 remove JWT from logs
secrets should not be exposed in the logs
2021-03-03 15:30:11 +01:00
A.Unger 22e3d2fd35 fix log config priority 2021-03-03 15:12:26 +01:00
A.Unger 98dd9a970f suture runtime v1 2021-03-03 15:05:21 +01:00
A.Unger a31dd155fd pull suture 2021-03-03 13:51:06 +01:00
David Christofas 12e6eb1395 update npm dependencies 2021-03-03 12:08:39 +01:00
Phil Davis 0719d18586 Merge pull request #1746 from owncloud/bumpCommitIdAPI
[tests-only] Bump commit id for API tests
2021-03-02 14:15:49 +03:00
David Christofas 4943fed2fe Merge pull request #1742 from owncloud/dependabot/go_modules/ocis/go.opencensus.io-0.23.0
Bump go.opencensus.io from 0.22.6 to 0.23.0 in /ocis
2021-03-02 11:46:52 +01:00
dependabot[bot] 0f40e3896b Bump go.opencensus.io from 0.22.6 to 0.23.0 in /ocis
Bumps [go.opencensus.io](https://github.com/census-instrumentation/opencensus-go) from 0.22.6 to 0.23.0.
- [Release notes](https://github.com/census-instrumentation/opencensus-go/releases)
- [Commits](https://github.com/census-instrumentation/opencensus-go/compare/v0.22.6...v0.23.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-02 07:33:18 +00:00
Willy Kloucek 6e17117800 Merge pull request #1714 from owncloud/bingo_and_rework_makefiles
introduce bingo and golangci-lint and rework makefiles
2021-03-02 07:15:56 +01:00
Swikriti Tripathi b841cd7874 Bump API tests commit id 2021-03-02 10:23:32 +05:45
Phil Davis 80e6600275 Merge pull request #1669 from owncloud/bump-web-commit-id-20210217
[tests-only] Bump web commit id
2021-03-01 23:02:30 +03:00
Willy Kloucek 92145eeab9 fix readme 2021-03-01 17:21:25 +01:00
Parajuli Kiran 271d27592f Added ldapjs as dev dependency 2021-03-01 20:33:54 +05:45
Parajuli Kiran e2d8b90ecc Fixed expected failures md 2021-03-01 20:33:53 +05:45
Phil Davis f3d3ef1c3d Bump web commit id 2021-03-01 20:33:51 +05:45
Willy Kloucek 58c3acb525 run "make go-mod-tidy" and "make generate" 2021-03-01 15:33:14 +01:00
Willy Kloucek 1aac5a09d2 cleanup 2021-03-01 15:23:47 +01:00
Willy Kloucek 82f75a2164 switch to golangci-lint 2021-03-01 15:06:11 +01:00
Willy Kloucek 083b39ef17 introduce hot reload for docs 2021-03-01 15:06:00 +01:00
Willy Kloucek 387b2f3272 introduce bingo and rework makefiles 2021-03-01 15:05:48 +01:00
Phil Davis 2cec8d757d Merge pull request #1732 from owncloud/bump-commit-id-20210226
[tests-only] Bump commit id for API tests
2021-02-27 00:16:43 +03:00
Phil Davis 53e64d4b4a Adjust expected-failures 2021-02-27 01:48:19 +05:45
Phil Davis 305b7d7acc Bump API tests commit id for fix to run.sh 2021-02-27 01:48:19 +05:45
Phil Davis 4bc6d1759f Bump commit id for API tests 2021-02-27 01:48:19 +05:45
Artur Neumann 1469afb432 Automated changelog update [skip ci] 2021-02-26 16:53:31 +00:00
Artur Neumann 3c0730c170 Merge pull request #1734 from owncloud/delay-accounts-execution
Delay accounts service startup
2021-02-26 22:37:27 +05:45
Jörn Friedrich Dreyer a2e1e9f28e Merge pull request #1735 from owncloud/proxy-resolve-linter
resolve linter issues
2021-02-26 16:38:38 +01:00
David Christofas cfcd4b5992 resolve linter issues 2021-02-26 14:24:25 +01:00
Phil Davis 4ec4dd5f77 Merge pull request #1722 from owncloud/onlyoffice-resolve-linter
resolve linter issues
2021-02-26 12:57:54 +03:00
A.Unger c71fbf297a add changelog 2021-02-26 10:29:59 +01:00
A.Unger d6b2973697 delay accounts service startup 2021-02-26 10:25:18 +01:00
David Christofas 1f5f99996b resolve linter issues 2021-02-26 09:20:28 +01:00
Phil Davis 690399008d Merge pull request #1723 from owncloud/ocs-resolve-linter
resolve linter issues
2021-02-26 07:37:32 +03:00
Phil Davis 75116a3f12 Merge pull request #1720 from owncloud/storage-resolve-linter
resolve linter issues
2021-02-26 07:37:14 +03:00
David Christofas dfbc6759da resolve linter issues 2021-02-26 09:14:27 +05:45
David Christofas bb9c3db982 resolve linter issues 2021-02-26 09:13:50 +05:45
Jörn Friedrich Dreyer 17711526e5 Merge pull request #1727 from owncloud/ocis-resolve-linter
resolve linter issues
2021-02-25 23:30:18 +01:00
Jörn Friedrich Dreyer ab2fb958a3 Merge pull request #1724 from owncloud/ocis-pkg-resolve-linter
resolve linter issues
2021-02-25 22:17:03 +01:00
Jörn Friedrich Dreyer d33ff007fd Merge pull request #1719 from owncloud/thumbnails-resolve-linter
resolve linter issues
2021-02-25 22:00:34 +01:00
Jörn Friedrich Dreyer 696fdecf42 Merge pull request #1721 from owncloud/proxy-resolve-linter
resolve linter issues
2021-02-25 21:59:56 +01:00
Jörn Friedrich Dreyer 071cb6a78a Merge pull request #1717 from owncloud/webdav-resolve-linter
resolve linter issues
2021-02-25 21:59:36 +01:00
Jörn Friedrich Dreyer 0c7874630b Automated changelog update [skip ci] 2021-02-25 19:52:31 +00:00
Jörn Friedrich Dreyer 00659b6323 Merge pull request #1716 from owncloud/add-missing-gatewaysvc-config
add missing gatewaysvc config
2021-02-25 20:50:50 +01:00
Jörn Friedrich Dreyer a7b2f4df2a Merge pull request #1726 from owncloud/graph-linter
Graph linter
2021-02-25 17:55:37 +01:00
Jörn Friedrich Dreyer b01a549579 Merge pull request #1718 from owncloud/web-resolve-linter
resolve linter issues
2021-02-25 17:19:35 +01:00
Jörn Friedrich Dreyer a8660e27ed Merge pull request #1725 from owncloud/idp-resolve-linter
resolve linter issues
2021-02-25 17:18:30 +01:00
David Christofas ad4da605d7 Merge pull request #1681 from owncloud/onlyoffice-update-npm-dependencies
update npm dependencies
2021-02-25 16:30:20 +01:00
David Christofas 3f30ea134b resolve linter issues 2021-02-25 15:53:46 +01:00
David Christofas 902977cb60 resolve linter issues 2021-02-25 14:53:56 +01:00
David Christofas ee161b2359 resolve linter issues 2021-02-25 14:45:19 +01:00
David Christofas eda3997211 resolve linter issues 2021-02-25 14:37:05 +01:00
David Christofas 0802e8aac3 Merge pull request #1711 from owncloud/accounts-linter
resolve linter issues
2021-02-25 14:00:44 +01:00
David Christofas 0fd7580301 resolve linter issues 2021-02-25 10:48:40 +01:00
David Christofas c861d27aae resolve linter issues 2021-02-25 10:30:28 +01:00
Jörn Friedrich Dreyer 52f13fe778 Merge pull request #1712 from owncloud/glauth-linter
resolve linter issues
2021-02-25 09:43:40 +01:00
Jörn Friedrich Dreyer 9bb88c848e Merge pull request #1713 from owncloud/graph-explorer-linter
resolve linter issues
2021-02-25 09:42:48 +01:00
Jörn Friedrich Dreyer 059bec1a7a add missing gatewaysvc config
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-25 08:41:19 +00:00
David Christofas a22b7d6844 resolve linter issues 2021-02-24 16:24:36 +01:00
David Christofas 20dbf299d0 resolve linter issues 2021-02-24 16:06:24 +01:00
David Christofas c8fa6af54b update npm dependencies 2021-02-24 15:04:01 +01:00
David Christofas cc417c6ee8 resolve linter issues 2021-02-24 14:48:22 +01:00
Alex Unger b8ac8f1ddd Automated changelog update [skip ci] 2021-02-24 13:16:27 +00:00
Alex Unger 71ec5b2106 Merge pull request #1696 from owncloud/initialization-responsibility 2021-02-24 14:10:57 +01:00
David Christofas 878e465c52 resolve linter issues 2021-02-24 14:04:05 +01:00
David Christofas 226ffbb3f3 resolve linter issues 2021-02-24 11:35:09 +01:00
A.Unger 7b4ed397b3 add circuit breakers to the changelog 2021-02-24 09:56:45 +01:00
David Christofas 3328f9acb7 Merge pull request #1707 from owncloud/dependabot/go_modules/ocis/github.com/olekukonko/tablewriter-0.0.5
Bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5 in /ocis
2021-02-24 09:36:26 +01:00
Phil Davis 4a107673ad Merge pull request #1709 from owncloud/docsRefactor
[docs-only] Expected-failures files changed to .md from .txt in documentation
2021-02-24 11:07:34 +03:00
Swikriti Tripathi 1ecf95b896 expected-failures files changed to .md from .txt in documentation 2021-02-24 13:34:01 +05:45
A.Unger 9cb417bf6c Merge branch 'master' into initialization-responsibility 2021-02-23 16:52:36 +01:00
dependabot[bot] 80214cb2c7 Bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5 in /ocis
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/olekukonko/tablewriter/releases)
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.4...v0.0.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-23 15:52:22 +00:00
David Christofas 9d5c82f61f Merge pull request #1706 from owncloud/dependabot/go_modules/ocis/github.com/spf13/cobra-1.1.3
Bump github.com/spf13/cobra from 1.0.0 to 1.1.3 in /ocis
2021-02-23 16:40:51 +01:00
A.Unger 8596afcfee bring back dependants 2021-02-23 15:50:29 +01:00
dependabot[bot] 262632e0ae Bump github.com/spf13/cobra from 1.0.0 to 1.1.3 in /ocis
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.0.0 to 1.1.3.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.0.0...v1.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-23 14:29:18 +00:00
A.Unger 71d63a69e6 update dependencies 2021-02-23 14:58:09 +01:00
A.Unger 89fc088239 Merge branch 'master' into initialization-responsibility 2021-02-23 14:56:36 +01:00
Willy Kloucek b6dac5e36c Merge pull request #1704 from owncloud/native_hugo_serve
[docs-only] Native hugo serve
2021-02-23 14:42:20 +01:00
Jörn Friedrich Dreyer f3468e1070 Merge pull request #1701 from owncloud/missing-dependencies
fix missing registry dependencies
2021-02-23 14:29:38 +01:00
David Christofas deb7417145 Automated changelog update [skip ci] 2021-02-23 13:27:19 +00:00
David Christofas 1ed27939cc Merge pull request #1684 from owncloud/update-reva
update reva to v1.6.1-0.20210218130854-a954e7242e7a
2021-02-23 14:26:42 +01:00
A.Unger 9342b5abbd go around circuit breaker 2021-02-23 14:25:16 +01:00
A.Unger 9a507a4450 add readme 2021-02-23 13:41:51 +01:00
A.Unger 78eabd2437 rework settings tests 2021-02-23 13:35:57 +01:00
A.Unger a361c12e2a defensive code around accounts init 2021-02-23 12:45:21 +01:00
Willy Kloucek 6d397c79f5 only generate config 2021-02-23 12:38:18 +01:00
Willy Kloucek 19cfa326fd add native hugo serve target 2021-02-23 12:28:03 +01:00
A.Unger 7609b11dc1 fix empty branch 2021-02-23 12:04:44 +01:00
A.Unger 97271d51bc add circuit breakers 2021-02-23 11:56:03 +01:00
David Christofas 3a46bd2f94 update reva to v1.6.1-0.20210223065028-53f39499762e
Update reva and also set a replace for github.com/oleiade/reflections.
The replace should resolve the dependabot issue. See oleiade/reflections#14. Once https://github.com/ory/fosite has updated to reflections 1.0.1 or higher we can remove the replace.
2021-02-23 11:36:07 +01:00
A.Unger f280e98897 no race condition 2021-02-23 11:16:55 +01:00
A.Unger 5d98dbac4a Merge branch 'master' into initialization-responsibility 2021-02-23 10:40:22 +01:00
Jörn Friedrich Dreyer 368d32becb run make go-mod-tidy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-23 09:16:58 +00:00
Jörn Friedrich Dreyer 52ebb7c611 Merge pull request #1700 from owncloud/preallocate-slices
pre allocate slices
2021-02-23 09:55:52 +01:00
Florian Schade 377eecc66e add missing dependencies 2021-02-23 03:43:17 +01:00
Jörn Friedrich Dreyer cf531154fb Automated changelog update [skip ci] 2021-02-22 19:37:04 +00:00
Jörn Friedrich Dreyer 4fffec0749 Merge pull request #1699 from owncloud/fix-token-ttl
fix token cache TTL
2021-02-22 20:36:05 +01:00
Jörn Friedrich Dreyer bbb94c40da Merge pull request #1697 from owncloud/use-registry-interface
Use registry interface value
2021-02-22 20:35:23 +01:00
David Christofas 1088faf95d pre allocate slices
Pre allocating slices with a target size reduces the number of allocations because we already know how big the slice will be and therefore need to allocate only once
2021-02-22 19:41:48 +01:00
David Christofas 7ad38d7757 fix token cache TTL
The TTL was supplied to the middleware as a duration and then in that middleware multiplied by `time.Second` again. Durations should not be multiplied because they result in unintended values.
```go
	time.Second * 1 = 1s
	time.Second * time.Second = 277777h46m40s
```
2021-02-22 18:40:15 +01:00
David Christofas 24cb9dcf70 Merge pull request #1698 from owncloud/settings-fix-dependencies
downgrade rollup-plugin-vue to 5.1.9
2021-02-22 18:22:19 +01:00
Jörn Friedrich Dreyer e535975718 Merge pull request #1693 from owncloud/fix_keycloak_example_sharing
[docs-only] fix sharing in Keycloak deployment example
2021-02-22 17:40:36 +01:00
David Christofas 22ed643be8 downgrade rollup-plugin-vue to 5.1.9
The rollup-plugin-vue in version 6.0.0 was breaking the build of the settings ui.
2021-02-22 17:13:08 +01:00
Artur Neumann b4713a4b49 Merge pull request #1695 from owncloud/updateIssueLinks
[tests-only] update issue links in gRPC tests
2021-02-22 21:41:51 +05:45
Jörn Friedrich Dreyer deb20ffa90 add changelog
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-22 15:26:36 +00:00
Jörn Friedrich Dreyer fd703ec740 add initial nats and kubernetes registry support
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-22 15:20:22 +00:00
Jörn Friedrich Dreyer 8a8aa2dc52 use micre v3 registry interface
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-22 15:08:50 +00:00
Jörn Friedrich Dreyer f89128a2d9 use registry interface
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-22 13:42:00 +00:00
A.Unger 2004942a3a shift role initialization from accounts to settings 2021-02-22 12:19:50 +01:00
Artur Neumann 26d7842cfe update issue links in gRPC tests 2021-02-22 16:58:28 +05:45
Willy Kloucek cae068fe73 fix sharing in keycloak deployment example 2021-02-22 11:30:20 +01:00
Jörn Friedrich Dreyer f15c40d52e Automated changelog update [skip ci] 2021-02-22 09:21:48 +00:00
Jörn Friedrich Dreyer aea505805c Merge pull request #1670 from owncloud/update-go-micro-v3
Update go micro v3
2021-02-22 10:20:34 +01:00
Artur Neumann 64dd0baa02 Merge pull request #1689 from owncloud/bump-core-commit-id-20210221
[tests-only] Bump core commit for tests
2021-02-22 09:21:27 +05:45
Phil Davis f75d2c1b32 Bump core commit for tests 2021-02-22 04:05:52 +05:45
Phil Davis 14fdbb9788 Merge pull request #1687 from owncloud/dirkstascheit-patch-1
[docs-only] Update getting-started.md
2021-02-19 15:47:02 +03:00
Dirk Stascheit 2575c29051 Update getting-started.md
updated the tech preview version from 1.1 to 1.2
2021-02-19 18:28:54 +05:45
Phil Davis d9894560d7 Merge pull request #1682 from owncloud/bump-core-commit-id-20210219
[tests-only] Bump core commit id for tests
2021-02-19 15:24:56 +03:00
Phil Davis c9515ecb35 Bump core commit id for tests 2021-02-19 17:01:42 +05:45
Benedikt Kulmann 6fad231246 Automated changelog update [skip ci] 2021-02-19 10:51:49 +00:00
Benedikt Kulmann 3bb76bfad6 Merge pull request #1683 from owncloud/update-web-2.0.1
Update web to 2.0.1
2021-02-19 11:51:14 +01:00
Benedikt Kulmann 6374fb4568 Update web to 2.0.1 2021-02-19 09:57:56 +01:00
Phil Davis 1762458e4d Merge pull request #1642 from EParzefall/patch-1
[docs-only] Update _index.md
2021-02-19 06:02:25 +03:00
EParzefall 0bc9f71353 Update _index.md
Just some minor punctuation and language fixes.
2021-02-19 08:42:06 +05:45
Jörn Friedrich Dreyer 89b06defa5 use ocis grpc client for thumbnails
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 21:26:36 +00:00
Jörn Friedrich Dreyer ec882bc22e Merge pull request #1680 from ishank011/separate-user-group-schema
Separate LDAP schemas for users and groups
2021-02-18 21:23:21 +01:00
Jörn Friedrich Dreyer d4585933ac reuse the default client
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 13:07:04 +00:00
A.Unger 7736d26e0c update readme 2021-02-18 12:51:31 +01:00
Ishank Arora f11d8a2718 Separate LDAP schemas for users and groups 2021-02-18 12:46:30 +01:00
A.Unger 1daad022c3 set MICRO_LOG_LEVEL to error if not defined 2021-02-18 12:45:44 +01:00
Phil Davis 74c883b85b Merge pull request #1679 from owncloud/add_breaking_changes_changelog
[docs-only] add breaking changes and migration
2021-02-18 14:35:37 +03:00
Jörn Friedrich Dreyer d9f4a4c524 always pass in a client
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 10:58:56 +00:00
Willy Kloucek 977f590954 add breaking changes and migration 2021-02-18 11:07:23 +01:00
Jörn Friedrich Dreyer 11ed5e49d8 same order of options in grpc and http service
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 10:00:16 +00:00
Jörn Friedrich Dreyer 13f6defb7a use upstream prometheus logger
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 09:10:00 +00:00
Jörn Friedrich Dreyer 8d3562dc62 add missing files
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 08:59:35 +00:00
David Christofas ebc51c6dff Merge pull request #1674 from owncloud/settings-update-npm-dependencies
update npm dependencies
2021-02-18 09:56:25 +01:00
Patrick Maier 14feb0f4a6 Merge pull request #1676 from owncloud/rn_correction
[docs-only] Correct WCAG version in 1.2.0 release notes
2021-02-18 09:44:04 +01:00
Patrick Maier cb45a4bb37 [docs-only] Correct WCAG version in 1.2.0 release notes 2021-02-18 09:40:41 +01:00
Jörn Friedrich Dreyer 2ece67fd0b changelog
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 08:28:21 +00:00
Jörn Friedrich Dreyer c2939551e5 rebase and tidy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 08:17:57 +00:00
Jörn Friedrich Dreyer 34a9fb2dc8 remove unneeded getTranstport
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 08:03:22 +00:00
Jörn Friedrich Dreyer 63416c3cac update proto-gen-micro, regenerate protobuf, mod tidy all
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 08:03:22 +00:00
Jörn Friedrich Dreyer 57aec02410 tidy everything
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 08:03:22 +00:00
Jörn Friedrich Dreyer 588ac4a2a6 get rid of http server option.Hander
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 08:01:53 +00:00
Jörn Friedrich Dreyer 603dad3533 bring back etcd registry
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 08:01:53 +00:00
A.Unger b89deea796 remove redundant transport 2021-02-18 08:01:53 +00:00
A.Unger 448bdde79c use http replace 2021-02-18 08:01:53 +00:00
A.Unger 072d0704df wip 2021-02-18 08:01:53 +00:00
A.Unger 7e505fbd9f remove any micro v2 occurences from the project 2021-02-18 08:01:53 +00:00
A.Unger 54c4331479 update web to use go-micro v3 2021-02-18 08:01:53 +00:00
A.Unger 6644f5b679 update thumbnails to use go-micro v3 2021-02-18 08:01:53 +00:00
A.Unger d19cc340ea update settings to use go-micro v3 2021-02-18 08:01:53 +00:00
A.Unger b4115bbee4 update settings to use go-micro v3 2021-02-18 08:01:53 +00:00
A.Unger a1d5e34f41 update proxy to use go-micro v3 2021-02-18 08:01:53 +00:00
A.Unger 75c3b7d81b update store to use go-micro v3 2021-02-18 08:01:53 +00:00
A.Unger b167dc8b21 update ocs + store to use go-micro v3 2021-02-18 08:01:53 +00:00
A.Unger f851b91489 update idp to use go-micro v3 2021-02-18 08:01:52 +00:00
A.Unger 656d034dd3 update graph-explorer to use go-micro v3 2021-02-18 08:01:52 +00:00
A.Unger 9b9f4703af update graph to use go-micro v3 2021-02-18 08:01:52 +00:00
A.Unger af33d62a9a update glauth to use go-micro v3 2021-02-18 08:00:02 +00:00
A.Unger 005f47d436 update accounts, settings, storage-metadata and ocis-pkg to use asim go-micro v3 2021-02-18 08:00:02 +00:00
Jörn Friedrich Dreyer 83851ca2bb return micro.Service()
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-18 08:00:02 +00:00
A.Unger 88f670b45c initial commit 2021-02-18 08:00:02 +00:00
Phil Davis 530ee622db Merge pull request #1673 from owncloud/graph-update-reva
update reva
2021-02-18 03:03:33 +03:00
David Christofas 8560368f47 update npm dependencies 2021-02-17 23:35:43 +01:00
Michael Barz 4e130ac406 Automated changelog update [skip ci] 2021-02-17 21:47:45 +00:00
Michael Barz 8b1571aa26 Merge pull request #1672 from owncloud/release-1.2.0
Merge back 1.2.0 Release
2021-02-17 22:43:19 +01:00
David Christofas 5e76dfdecd update reva 2021-02-17 22:31:41 +01:00
Michael Barz d7fedc7046 Merge pull request #1671 from owncloud/1.2.0_release_notes
[docs-only] 1.2.0 Release Notes
2021-02-17 18:38:57 +01:00
Patrick Maier a5e55ef5e6 [docs-only] 1.2.0 Release Notes 2021-02-17 18:27:48 +01:00
Jörn Friedrich Dreyer 93c8a2a04d Refine adrs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-16 09:49:31 +00:00
541 changed files with 31629 additions and 25202 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
docs/ocis/adr
+12
View File
@@ -0,0 +1,12 @@
# Ignore everything
*
# But not these files:
!.gitignore
!*.mod
!README.md
!Variables.mk
!variables.env
*tmp.mod
+14
View File
@@ -0,0 +1,14 @@
# Project Development Dependencies.
This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo.
* Run `bingo get` to install all tools having each own module file in this directory.
* Run `bingo get <tool>` to install <tool> that have own module file in this directory.
* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $(<upper case tool name>) variable where <tool> is the .bingo/<tool>.mod.
* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool.
* For go: Import `.bingo/variables.go` to for variable names.
* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies.
## Requirements
* Go 1.14+
+115
View File
@@ -0,0 +1,115 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.0. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
GOPATH ?= $(shell go env GOPATH)
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
GO ?= $(shell which go)
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
# will be used; reinstalling only if needed.
# For example for bingo variable:
#
# In your main Makefile (for non array binaries):
#
#include .bingo/Variables.mk # Assuming -dir was set to .bingo .
#
#command: $(BINGO)
# @echo "Running bingo"
# @$(BINGO) <flags/args..>
#
BINGO := $(GOBIN)/bingo-v0.4.0
$(BINGO): $(BINGO_DIR)/bingo.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/bingo-v0.4.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.4.0 "github.com/bwplotka/bingo"
BUF := $(GOBIN)/buf-v0.40.0
$(BUF): $(BINGO_DIR)/buf.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/buf-v0.40.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v0.40.0 "github.com/bufbuild/buf/cmd/buf"
CALENS := $(GOBIN)/calens-v0.2.0
$(CALENS): $(BINGO_DIR)/calens.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/calens-v0.2.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=calens.mod -o=$(GOBIN)/calens-v0.2.0 "github.com/restic/calens"
FILEB0X := $(GOBIN)/fileb0x-v1.1.4
$(FILEB0X): $(BINGO_DIR)/fileb0x.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/fileb0x-v1.1.4"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=fileb0x.mod -o=$(GOBIN)/fileb0x-v1.1.4 "github.com/UnnoTed/fileb0x"
FLAEX := $(GOBIN)/flaex-v0.2.0
$(FLAEX): $(BINGO_DIR)/flaex.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/flaex-v0.2.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=flaex.mod -o=$(GOBIN)/flaex-v0.2.0 "github.com/owncloud/flaex"
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.37.1
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/golangci-lint-v1.37.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.37.1 "github.com/golangci/golangci-lint/cmd/golangci-lint"
GOVERAGE := $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5
$(GOVERAGE): $(BINGO_DIR)/goverage.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=goverage.mod -o=$(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5 "github.com/haya14busa/goverage"
GOX := $(GOBIN)/gox-v1.0.1
$(GOX): $(BINGO_DIR)/gox.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/gox-v1.0.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=gox.mod -o=$(GOBIN)/gox-v1.0.1 "github.com/mitchellh/gox"
HUGO := $(GOBIN)/hugo-v0.80.0
$(HUGO): $(BINGO_DIR)/hugo.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/hugo-v0.80.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=hugo.mod -o=$(GOBIN)/hugo-v0.80.0 "github.com/gohugoio/hugo"
MUTAGEN := $(GOBIN)/mutagen-v0.11.8
$(MUTAGEN): $(BINGO_DIR)/mutagen.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/mutagen-v0.11.8"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=mutagen.mod -o=$(GOBIN)/mutagen-v0.11.8 "github.com/mutagen-io/mutagen/cmd/mutagen"
PROTOC_GEN_DOC := $(GOBIN)/protoc-gen-doc-v1.4.1
$(PROTOC_GEN_DOC): $(BINGO_DIR)/protoc-gen-doc.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-doc-v1.4.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-doc.mod -o=$(GOBIN)/protoc-gen-doc-v1.4.1 "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc"
PROTOC_GEN_GO := $(GOBIN)/protoc-gen-go-v1.26.0
$(PROTOC_GEN_GO): $(BINGO_DIR)/protoc-gen-go.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-go-v1.26.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.26.0 "google.golang.org/protobuf/cmd/protoc-gen-go"
PROTOC_GEN_MICRO := $(GOBIN)/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888
$(PROTOC_GEN_MICRO): $(BINGO_DIR)/protoc-gen-micro.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888 "github.com/asim/go-micro/cmd/protoc-gen-micro/v3"
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4
$(PROTOC_GEN_MICROWEB): $(BINGO_DIR)/protoc-gen-microweb.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4 "github.com/owncloud/protoc-gen-microweb"
PROTOC_GEN_OPENAPIV2 := $(GOBIN)/protoc-gen-openapiv2-v2.3.0
$(PROTOC_GEN_OPENAPIV2): $(BINGO_DIR)/protoc-gen-openapiv2.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/protoc-gen-openapiv2-v2.3.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-openapiv2.mod -o=$(GOBIN)/protoc-gen-openapiv2-v2.3.0 "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"
REFLEX := $(GOBIN)/reflex-v0.3.0
$(REFLEX): $(BINGO_DIR)/reflex.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/reflex-v0.3.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=reflex.mod -o=$(GOBIN)/reflex-v0.3.0 "github.com/cespare/reflex"
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/bwplotka/bingo v0.4.0
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/bufbuild/buf v0.40.0 // cmd/buf
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/restic/calens v0.2.0
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/UnnoTed/fileb0x v1.1.4
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/owncloud/flaex v0.2.0
Executable
+1
View File
@@ -0,0 +1 @@
module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files.
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/golangci/golangci-lint v1.37.1 // cmd/golangci-lint
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/haya14busa/goverage v0.0.0-20180129164344-eec3514a20b5
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/mitchellh/gox v1.0.1
+7
View File
@@ -0,0 +1,7 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
replace github.com/markbates/inflect => github.com/markbates/inflect v0.0.0-20171215194931-a12c3aec81a6
require github.com/gohugoio/hugo v0.80.0
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/mutagen-io/mutagen v0.11.8 // cmd/mutagen
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/pseudomuto/protoc-gen-doc v1.4.1 // cmd/protoc-gen-doc
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require google.golang.org/protobuf v1.26.0 // cmd/protoc-gen-go
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/asim/go-micro/cmd/protoc-gen-micro/v3 v3.0.0-20210329103359-9b41d1bf0888
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/owncloud/protoc-gen-microweb v0.0.0-20210224131655-d9b1137a84d4
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/grpc-ecosystem/grpc-gateway/v2 v2.3.0 // protoc-gen-openapiv2
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/cespare/reflex v0.3.0
+42
View File
@@ -0,0 +1,42 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.0. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk.
GOBIN=${GOBIN:=$(go env GOBIN)}
if [ -z "$GOBIN" ]; then
GOBIN="$(go env GOPATH)/bin"
fi
BINGO="${GOBIN}/bingo-v0.4.0"
BUF="${GOBIN}/buf-v0.40.0"
CALENS="${GOBIN}/calens-v0.2.0"
FILEB0X="${GOBIN}/fileb0x-v1.1.4"
FLAEX="${GOBIN}/flaex-v0.2.0"
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.37.1"
GOVERAGE="${GOBIN}/goverage-v0.0.0-20180129164344-eec3514a20b5"
GOX="${GOBIN}/gox-v1.0.1"
HUGO="${GOBIN}/hugo-v0.80.0"
MUTAGEN="${GOBIN}/mutagen-v0.11.8"
PROTOC_GEN_DOC="${GOBIN}/protoc-gen-doc-v1.4.1"
PROTOC_GEN_GO="${GOBIN}/protoc-gen-go-v1.26.0"
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888"
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
PROTOC_GEN_OPENAPIV2="${GOBIN}/protoc-gen-openapiv2-v2.3.0"
REFLEX="${GOBIN}/reflex-v0.3.0"
+7
View File
@@ -0,0 +1,7 @@
.bingo
!.bingo/*.mod
!.bingo/Variables.mk
**/.git
**/bin
docs
**/node_modules
+2 -2
View File
@@ -1,7 +1,7 @@
# The test runner source for API tests
CORE_COMMITID=2056240d53091ea69336d25ad57e3f4afc0c37d3
CORE_COMMITID=0fd7346bfb7de34ed9c9b6ca22bf1f90ac50eb1d
CORE_BRANCH=master
# The test runner source for UI tests
WEB_COMMITID=f1c70eb67fbe86f6f32f851ec6199f0b25bb5393
WEB_COMMITID=8062d6324081a3cfaafd0a4ad780cfbd905e5c94
WEB_BRANCH=master
+102 -131
View File
@@ -1,5 +1,6 @@
config = {
'modules': [
# if you add a module here please also add it to the root level Makefile
'accounts',
'glauth',
'graph-explorer',
@@ -107,16 +108,16 @@ config = {
# volume for steps to cache Go dependencies between steps of a pipeline
# GOPATH must be set to /srv/app inside the image, which is the case for webhippie/golang
stepVolumeGoWebhippie = \
# GOPATH must be set to /go inside the image, which is the case
stepVolumeGo = \
{
'name': 'gopath',
'path': '/srv/app',
'path': '/go',
}
# volume for pipeline to cache Go dependencies between steps of a pipeline
# to be used in combination with stepVolumeGoWebhippie
pipelineVolumeGoWebhippie = \
# to be used in combination with stepVolumeGo
pipelineVolumeGo = \
{
'name': 'gopath',
'temp': {},
@@ -187,7 +188,6 @@ def main(ctx):
build_release_helpers = [
changelog(ctx),
docs(ctx),
refreshDockerBadges(ctx)
]
if ctx.build.event == "cron":
@@ -239,10 +239,10 @@ def testOcisModules(ctx):
for module in config['modules']:
pipelines.append(testOcisModule(ctx, module))
coverage_upload = uploadCoverage(ctx)
coverage_upload['depends_on'] = getPipelineNames(pipelines)
scan_result_upload = uploadScanResults(ctx)
scan_result_upload['depends_on'] = getPipelineNames(pipelines)
return pipelines + [coverage_upload]
return pipelines + [scan_result_upload]
def testPipelines(ctx):
pipelines = [
@@ -263,52 +263,37 @@ def testPipelines(ctx):
def testOcisModule(ctx, module):
steps = makeGenerate(module) + [
{
'name': 'vet',
'image': 'webhippie/golang:1.15',
'name': 'golangci-lint',
'image': 'owncloudci/golang:1.16',
'pull': 'always',
'commands': [
'make -C %s vet' % (module),
'mkdir -p cache/checkstyle',
'make -C %s ci-golangci-lint' % (module),
'mv %s/checkstyle.xml cache/checkstyle/%s_checkstyle.xml' % (module, module),
],
'volumes': [stepVolumeGoWebhippie,],
},
{
'name': 'staticcheck',
'image': 'webhippie/golang:1.15',
'pull': 'always',
'commands': [
'make -C %s staticcheck' % (module),
],
'volumes': [stepVolumeGoWebhippie,],
},
{
'name': 'lint',
'image': 'webhippie/golang:1.15',
'pull': 'always',
'commands': [
'make -C %s lint' % (module),
],
'volumes': [stepVolumeGoWebhippie,],
'volumes': [stepVolumeGo,],
},
{
'name': 'test',
'image': 'webhippie/golang:1.15',
'image': 'owncloudci/golang:1.16',
'pull': 'always',
'commands': [
'mkdir -p cache/coverage',
'make -C %s test' % (module),
'mv %s/coverage.out %s_coverage.out' % (module, module),
'mv %s/coverage.out cache/coverage/%s_coverage.out' % (module, module),
],
'volumes': [stepVolumeGoWebhippie,],
'volumes': [stepVolumeGo,],
},
{
'name': 'coverage-cache',
'image': 'plugins/s3',
'name': 'scan-result-cache',
'image': 'plugins/s3:1',
'settings': {
'endpoint': {
'from_secret': 'cache_s3_endpoint'
},
'bucket': 'cache',
'source': '%s_coverage.out' % (module),
'target': '%s/%s/coverage' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
'source': 'cache/**/*',
'target': '%s/%s' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
'path_style': True,
'access_key': {
'from_secret': 'cache_s3_access_key'
@@ -337,7 +322,7 @@ def testOcisModule(ctx, module):
'refs/pull/**',
],
},
'volumes': [pipelineVolumeGoWebhippie],
'volumes': [pipelineVolumeGo],
}
def buildOcisBinaryForTesting(ctx):
@@ -360,10 +345,10 @@ def buildOcisBinaryForTesting(ctx):
'refs/pull/**',
],
},
'volumes': [pipelineVolumeGoWebhippie],
'volumes': [pipelineVolumeGo],
}
def uploadCoverage(ctx):
def uploadScanResults(ctx):
sonar_env = {
'SONAR_TOKEN': {
'from_secret': 'sonar_token',
@@ -376,26 +361,39 @@ def uploadCoverage(ctx):
'SONAR_PULL_REQUEST_KEY': '%s' % (ctx.build.ref.replace("refs/pull/", "").split("/")[0]),
})
repo_slug = ctx.build.source_repo if ctx.build.source_repo else ctx.repo.slug
return {
'kind': 'pipeline',
'type': 'docker',
'name': 'upload-coverage',
'name': 'upload-scan-results',
'platform': {
'os': 'linux',
'arch': 'amd64',
},
'clone': {
'disable': True, # Sonarcloud does not apply issues on already merged branch
},
'steps': [
{
'name': 'clone',
'image': 'alpine/git:latest',
'commands': [
'git clone https://github.com/%s.git .' % (repo_slug),
'git checkout $DRONE_COMMIT',
],
},
{
'name': 'sync-from-cache',
'image': 'minio/mc:RELEASE.2020-12-10T01-26-17Z',
'image': 'minio/mc:RELEASE.2021-03-23T05-46-11Z',
'environment': {
'MC_HOST_cache': {
'MC_HOST_cachebucket': {
'from_secret': 'cache_s3_connection_url'
}
},
'commands': [
'mkdir -p coverage',
'mc mirror cache/cache/%s/%s/coverage coverage/' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
'mkdir -p cache',
'mc mirror cachebucket/cache/%s/%s/cache cache/' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
]
},
{
@@ -410,20 +408,20 @@ def uploadCoverage(ctx):
},
{
'name': 'sonarcloud',
'image': 'sonarsource/sonar-scanner-cli',
'image': 'sonarsource/sonar-scanner-cli:latest',
'pull': 'always',
'environment': sonar_env,
},
{
'name': 'purge-cache',
'image': 'minio/mc:RELEASE.2020-12-10T01-26-17Z',
'image': 'minio/mc:RELEASE.2021-03-23T05-46-11Z',
'environment': {
'MC_HOST_cache': {
'MC_HOST_cachebucket': {
'from_secret': 'cache_s3_connection_url'
}
},
'commands': [
'mc rm --recursive --force cache/cache/%s/%s/coverage' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
'mc rm --recursive --force cachebucket/cache/%s/%s/cache' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
]
},
],
@@ -558,14 +556,14 @@ def uiTestPipeline(ctx, suiteName, storage = 'owncloud', accounts_hash_difficult
ocisServer(storage, accounts_hash_difficulty, [stepVolumeOC10Tests]) + [
{
'name': 'webUITests',
'image': 'webhippie/nodejs:latest',
'image': 'owncloudci/nodejs:14',
'pull': 'always',
'environment': {
'SERVER_HOST': 'https://ocis-server:9200',
'BACKEND_HOST': 'https://ocis-server:9200',
'RUN_ON_OCIS': 'true',
'OCIS_REVA_DATA_ROOT': '/srv/app/tmp/ocis/owncloud/data',
'OCIS_SKELETON_DIR': '/srv/app/testing/data/webUISkeleton',
'TESTING_DATA_DIR': '/srv/app/testing/data',
'WEB_UI_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
'TEST_TAGS': 'not @skipOnOCIS and not @skip and not @notToImplementOnOCIS',
'LOCAL_UPLOAD_DIR': '/uploads',
@@ -574,13 +572,14 @@ def uiTestPipeline(ctx, suiteName, storage = 'owncloud', accounts_hash_difficult
'EXPECTED_FAILURES_FILE': '/drone/src/tests/acceptance/expected-failures-webUI-on-%s-storage.md' % (storage.upper()),
},
'commands': [
'source /drone/src/.drone.env',
'. /drone/src/.drone.env',
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/testing',
'git clone -b $WEB_BRANCH --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web',
'cd /srv/app/web',
'git checkout $WEB_COMMITID',
'cp -r tests/acceptance/filesForUpload/* /uploads',
'yarn install-all',
'yarn install --all',
'yarn build',
'./tests/acceptance/run.sh'
],
'volumes':
@@ -624,7 +623,7 @@ def accountsUITests(ctx, storage = 'owncloud', accounts_hash_difficulty = 4):
ocisServer(storage, accounts_hash_difficulty, [stepVolumeOC10Tests]) + [
{
'name': 'WebUIAcceptanceTests',
'image': 'webhippie/nodejs:latest',
'image': 'owncloudci/nodejs:14',
'pull': 'always',
'environment': {
'SERVER_HOST': 'https://ocis-server:9200',
@@ -640,13 +639,14 @@ def accountsUITests(ctx, storage = 'owncloud', accounts_hash_difficulty = 4):
'FEATURE_PATH': '/drone/src/accounts/ui/tests/acceptance/features',
},
'commands': [
'source /drone/src/.drone.env',
'. /drone/src/.drone.env',
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/testing',
'git clone -b $WEB_BRANCH --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web',
'cd /srv/app/web',
'git checkout $WEB_COMMITID',
'cp -r tests/acceptance/filesForUpload/* /uploads',
'yarn install-all',
'yarn install --all',
'yarn build',
'cd /drone/src/accounts',
'yarn install --all',
'make test-acceptance-webui'
@@ -708,11 +708,18 @@ def dockerRelease(ctx, arch):
'arch': arch,
},
'steps':
makeGenerate('') +
build() + [
makeGenerate('') + [
{
'name': 'build',
'image': 'owncloudci/golang:1.16',
'pull': 'always',
'commands': [
'make -C ocis release-linux',
],
},
{
'name': 'dryrun',
'image': 'plugins/docker:18.09',
'image': 'plugins/docker:latest',
'pull': 'always',
'settings': {
'dry_run': True,
@@ -732,7 +739,7 @@ def dockerRelease(ctx, arch):
},
{
'name': 'docker',
'image': 'plugins/docker:18.09',
'image': 'plugins/docker:latest',
'pull': 'always',
'settings': {
'username': {
@@ -765,7 +772,7 @@ def dockerRelease(ctx, arch):
'refs/pull/**',
],
},
'volumes': [pipelineVolumeGoWebhippie],
'volumes': [pipelineVolumeGo],
}
def dockerEos(ctx):
@@ -782,7 +789,7 @@ def dockerEos(ctx):
build() + [
{
'name': 'dryrun-eos-ocis',
'image': 'plugins/docker:18.09',
'image': 'plugins/docker:latest',
'pull': 'always',
'settings': {
'dry_run': True,
@@ -801,7 +808,7 @@ def dockerEos(ctx):
},
{
'name': 'docker-eos-ocis',
'image': 'plugins/docker:18.09',
'image': 'plugins/docker:latest',
'pull': 'always',
'settings': {
'username': {
@@ -832,7 +839,7 @@ def dockerEos(ctx):
'refs/pull/**',
],
},
'volumes': [pipelineVolumeGoWebhippie],
'volumes': [pipelineVolumeGo],
}
def binaryReleases(ctx):
@@ -880,7 +887,7 @@ def binaryRelease(ctx, name):
makeGenerate('') + [
{
'name': 'build',
'image': 'webhippie/golang:1.15',
'image': 'owncloudci/golang:1.16',
'pull': 'always',
'commands': [
'make -C ocis release-%s' % (name),
@@ -888,7 +895,7 @@ def binaryRelease(ctx, name):
},
{
'name': 'finish',
'image': 'webhippie/golang:1.15',
'image': 'owncloudci/golang:1.16',
'pull': 'always',
'commands': [
'make -C ocis release-finish',
@@ -914,10 +921,10 @@ def binaryRelease(ctx, name):
},
{
'name': 'changelog',
'image': 'toolhippie/calens:latest',
'image': 'owncloudci/golang:1.16',
'pull': 'always',
'commands': [
'calens --version %s -o ocis/dist/CHANGELOG.md' % ctx.build.ref.replace("refs/tags/v", "").split("-")[0],
'make changelog CHANGELOG_VERSION=%s' % ctx.build.ref.replace("refs/tags/v", "").split("-")[0],
],
'when': {
'ref': [
@@ -956,7 +963,7 @@ def binaryRelease(ctx, name):
'refs/pull/**',
],
},
'volumes': [pipelineVolumeGoWebhippie],
'volumes': [pipelineVolumeGo],
}
def releaseSubmodule(ctx):
@@ -1051,7 +1058,7 @@ def changelog(ctx):
'steps': [
{
'name': 'generate',
'image': 'webhippie/golang:1.15',
'image': 'owncloudci/golang:1.16',
'pull': 'always',
'commands': [
'make -C ocis changelog',
@@ -1123,19 +1130,18 @@ def releaseDockerReadme(ctx):
'steps': [
{
'name': 'execute',
'image': 'sheogorath/readme-to-dockerhub:latest',
'image': 'chko/docker-pushrm:1',
'pull': 'always',
'environment': {
'DOCKERHUB_USERNAME': {
'DOCKER_USER': {
'from_secret': 'docker_username',
},
'DOCKERHUB_PASSWORD': {
'DOCKER_PASS': {
'from_secret': 'docker_password',
},
'DOCKERHUB_REPO_PREFIX': ctx.repo.namespace,
'DOCKERHUB_REPO_NAME': ctx.repo.name,
'SHORT_DESCRIPTION': 'Docker images for %s' % (ctx.repo.name),
'README_PATH': 'README.md',
'PUSHRM_TARGET': 'owncloud/${DRONE_REPO_NAME}',
'PUSHRM_SHORT': 'Docker images for %s' % (ctx.repo.name),
'PUSHRM_FILE': 'README.md',
},
},
],
@@ -1147,36 +1153,6 @@ def releaseDockerReadme(ctx):
},
}
def refreshDockerBadges(ctx):
return {
'kind': 'pipeline',
'type': 'docker',
'name': 'badges',
'platform': {
'os': 'linux',
'arch': 'amd64',
},
'steps': [
{
'name': 'execute',
'image': 'plugins/webhook:1',
'pull': 'always',
'settings': {
'urls': {
'from_secret': 'microbadger_url',
},
},
},
],
'trigger': {
'ref': [
'refs/heads/master',
'refs/tags/v*',
],
},
'depends_on': getPipelineNames(dockerReleases(ctx)),
}
def docs(ctx):
return {
'kind': 'pipeline',
@@ -1189,22 +1165,21 @@ def docs(ctx):
'steps': [
{
'name': 'docs-generate',
'image': 'webhippie/golang:1.15',
'image': 'owncloudci/golang:1.16',
'commands': ['make -C %s docs-generate' % (module) for module in config['modules']],
},
{
'name': 'prepare',
'image': 'owncloudci/alpine:latest',
'image': 'owncloudci/golang:1.16',
'commands': [
'make -C docs docs-copy'
],
},
{
'name': 'test',
'image': 'owncloudci/hugo:0.71.0',
'image': 'owncloudci/golang:1.16',
'commands': [
'cd docs/hugo',
'hugo',
'make -C docs test'
],
},
{
@@ -1233,13 +1208,13 @@ def docs(ctx):
'name': 'list and remove temporary files',
'image': 'owncloudci/alpine:latest',
'commands': [
'tree hugo/public',
'tree docs/hugo/public',
'rm -rf docs/hugo',
],
},
{
'name': 'downstream',
'image': 'plugins/downstream',
'image': 'plugins/downstream:latest',
'settings': {
'server': 'https://drone.owncloud.com/',
'token': {
@@ -1274,21 +1249,21 @@ def makeGenerate(module):
return [
{
'name': 'generate nodejs',
'image': 'owncloudci/nodejs:12',
'image': 'owncloudci/nodejs:14',
'pull': 'always',
'commands': [
'%s ci-node-generate' % (make),
],
'volumes': [stepVolumeGoWebhippie,],
'volumes': [stepVolumeGo,],
},
{
'name': 'generate go',
'image': 'webhippie/golang:1.15',
'image': 'owncloudci/golang:1.16',
'pull': 'always',
'commands': [
'%s ci-go-generate' % (make),
],
'volumes': [stepVolumeGoWebhippie,],
'volumes': [stepVolumeGo,],
}
]
@@ -1348,7 +1323,6 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes=[]):
'PROXY_ENABLE_BASIC_AUTH': True,
'WEB_UI_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
'IDP_IDENTIFIER_REGISTRATION_CONF': '/drone/src/tests/config/drone/identifier-registration.yml',
'IDP_TLS': 'true',
'OCIS_LOG_LEVEL': 'warn',
}
@@ -1374,10 +1348,10 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes=[]):
},
{
'name': 'wait-for-ocis-server',
'image': 'thegeeklab/wait-for:latest',
'image': 'owncloudci/wait-for:latest',
'pull': 'always',
'commands': [
'wait-for ocis-server:9200 -t 300',
'wait-for -it ocis-server:9200 -t 300',
],
},
]
@@ -1403,11 +1377,8 @@ def redis():
return [
{
'name': 'redis',
'image': 'webhippie/redis',
'image': 'redis:6-alpine',
'pull': 'always',
'environment': {
'REDIS_DATABASES': 1
},
}
]
@@ -1428,12 +1399,12 @@ def build():
return [
{
'name': 'build',
'image': 'webhippie/golang:1.15',
'image': 'owncloudci/golang:1.16',
'pull': 'always',
'commands': [
'make -C ocis build',
],
'volumes': [stepVolumeGoWebhippie,],
'volumes': [stepVolumeGo,],
},
]
@@ -1479,7 +1450,7 @@ def deploy(ctx, config, rebuild):
'steps': [
{
'name': 'clone continuous deployment playbook',
'image': 'alpine/git',
'image': 'alpine/git:latest',
'commands': [
'cd deployments/continuous-deployment-config',
'git clone https://github.com/owncloud-devops/continuous-deployment.git',
@@ -1487,7 +1458,7 @@ def deploy(ctx, config, rebuild):
},
{
'name': 'deploy',
'image': 'owncloudci/drone-ansible',
'image': 'owncloudci/drone-ansible:latest',
'failure': 'ignore',
'environment': {
'CONTINUOUS_DEPLOY_SERVERS_CONFIG': '../%s' % (config),
@@ -1567,7 +1538,7 @@ def genericCachePurge(ctx, name, cache_key):
'steps': [
{
'name': 'purge-cache',
'image': 'minio/mc:RELEASE.2020-12-10T01-26-17Z',
'image': 'minio/mc:RELEASE.2021-03-23T05-46-11Z',
'failure': 'ignore',
'environment': {
'MC_HOST_cache': {
+1 -1
View File
@@ -4,7 +4,7 @@ _extends: gh-labels
repository:
name: ocis
description: ':atom_symbol: ownCloud Infinite Scale Stack'
homepage: https://owncloud.github.io/ocis/
homepage: https://owncloud.dev/ocis/
topics: reva, ocis
private: false
+7
View File
@@ -1,4 +1,5 @@
*/coverage.out
*/checkstyle.xml
ocis/config/identifier-registration.yaml
*/bin
@@ -8,6 +9,9 @@ dist/
*crt
node_modules/
*/assets
ocis/ocis
ocis/cmd/ocis/__debug_bin
ocis/cmd/ocis/config/
.idea
@@ -24,3 +28,6 @@ vendor-bin/**/composer.lock
# drone CI is in .drone.star, do not let someone accidentally commit a local .drone.yml
.drone.yml
**/l10n/locale
**/l10n/template.pot
+7
View File
@@ -0,0 +1,7 @@
.PHONY: config-docs-generate
config-docs-generate: $(FLAEX)
@echo "$(NAME): generating config docs"
@$(FLAEX) >| ../docs/extensions/$(NAME)/configuration.md
.PHONY: grpc-docs-generate
grpc-docs-generate: ../docs/extensions/${NAME}/grpc.md
+6
View File
@@ -0,0 +1,6 @@
.PHONY: generate
generate: ci-node-generate ci-go-generate
.PHONY: embed.yml
embed.yml: $(FILEB0X)
@cd pkg/assets/ && echo -n "$(NAME): embed.go - " && $(FILEB0X) embed.yml
+114
View File
@@ -0,0 +1,114 @@
IMPORT := github.com/owncloud/ocis/$(NAME)
BIN := bin
DIST := dist
ifeq ($(OS), Windows_NT)
EXECUTABLE := $(NAME).exe
UNAME := Windows
else
EXECUTABLE := $(NAME)
UNAME := $(shell uname -s)
endif
ifeq ($(UNAME), Darwin)
GOBUILD ?= go build -i
else
GOBUILD ?= go build
endif
PACKAGES ?= $(shell go list ./...)
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
GENERATE ?= $(PACKAGES)
TAGS ?=
ifndef OUTPUT
ifneq ($(DRONE_TAG),)
OUTPUT ?= $(subst v,,$(DRONE_TAG))
else
OUTPUT ?= testing
endif
endif
ifndef VERSION
ifneq ($(DRONE_TAG),)
VERSION ?= $(subst v,,$(DRONE_TAG))
else
VERSION ?= $(shell git rev-parse --short HEAD)
endif
endif
ifndef DATE
DATE := $(shell date -u '+%Y%m%d')
endif
LDFLAGS += -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
DEBUG_LDFLAGS += -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
GCFLAGS += all=-N -l
.PHONY: all
all: build
.PHONY: sync
sync:
go mod download
.PHONY: clean
clean:
@echo "$(NAME): clean"
go clean -i ./...
rm -rf $(BIN) $(DIST)
.PHONY: go-mod-tidy
go-mod-tidy:
@echo "$(NAME): go-mod-tidy"
@go mod tidy
.PHONY: fmt
fmt:
gofmt -s -w $(SOURCES)
.PHONY: golangci-lint
golangci-lint: $(GOLANGCI_LINT)
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME)
.PHONY: ci-golangci-lint
ci-golangci-lint: $(GOLANGCI_LINT)
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME) --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
.PHONY: test
test: $(GOVERAGE)
@echo
@echo
@echo "$(NAME): test"
@echo
@$(GOVERAGE) -v -coverprofile coverage.out $(PACKAGES)
.PHONY: go-coverage
go-coverage:
@echo "$(NAME): go-coverage"
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
@go tool cover -func coverage.out | tail -1 | grep -Eo "[0-9]+\.[0-9]+"
.PHONY: install
install: $(SOURCES)
go install -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/$(NAME)
.PHONY: build-all
build-all: build build-debug
.PHONY: build
build: $(BIN)/$(EXECUTABLE)
.PHONY: build-debug
build-debug: $(BIN)/$(EXECUTABLE)-debug
$(BIN)/$(EXECUTABLE): $(SOURCES)
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $@ ./cmd/$(NAME)
$(BIN)/$(EXECUTABLE)-debug: $(SOURCES)
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(DEBUG_LDFLAGS)' -gcflags '$(GCFLAGS)' -o $@ ./cmd/$(NAME)
.PHONY: watch
watch: $(REFLEX)
$(REFLEX) -c reflex.conf
+49
View File
@@ -0,0 +1,49 @@
# On OSX the PATH variable isn't exported unless "SHELL" is also set, see: http://stackoverflow.com/a/25506676
SHELL = /bin/bash
NODE_BINDIR = ./node_modules/.bin
export PATH := $(PATH):$(NODE_BINDIR)
INPUT_FILES = ./ui
# Where to write the files generated by this makefile.
OUTPUT_DIR = ./l10n
# Template file
TEMPLATE_FILE = ./l10n/template.pot
# Name of the generated .po files for each available locale.
LOCALE_FILES = $(shell find l10n/locale -name '*.po')
.PHONY: l10n-push
l10n-push:
cd $(OUTPUT_DIR) && tx -d push -s --skip --no-interactive
.PHONY: l10n-pull
l10n-pull:
cd $(OUTPUT_DIR) && tx -d pull -a --skip --minimum-perc=75
.PHONY: l10n-clean
l10n-clean:
rm -f $(TEMPLATE_FILE)
rm -rf $(OUTPUT_DIR)/locale
.PHONY: l10n-read
l10n-read: node_modules $(TEMPLATE_FILE)
.PHONY: l10n-write
l10n-write: node_modules $(OUTPUT_DIR)/translations.json
# Create a main .pot template, then generate .po files for each available language.
# Thanks to Systematic: https://github.com/Polyconseil/systematic/blob/866d5a/mk/main.mk#L167-L183
$(TEMPLATE_FILE):
# Extract gettext strings from each template file and create a POT dictionary template.
# Generate .po files for each available language.
export GETTEXT_SOURCES=`find $(INPUT_FILES) -name '*.vue' -o -name '*.js'`; \
node ./node_modules/easygettext/src/extract-cli.js --attribute v-translate --output $(OUTPUT_DIR)/template.pot $$GETTEXT_SOURCES;
# Generate translations.json file from .pot template.
$(OUTPUT_DIR)/translations.json:
rm -rf $(OUTPUT_DIR)/translations.json
gettext-compile --output $(OUTPUT_DIR)/translations.json $(LOCALE_FILES);
+63
View File
@@ -0,0 +1,63 @@
.PHONY: protoc-gen-openapiv2
protoc-gen-openapiv2:
GO111MODULE=off go get -v github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2
.PHONY: $(PROTO_SRC)/${NAME}.pb.go
$(PROTO_SRC)/${NAME}.pb.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_GO)
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.go"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-go=$(PROTOC_GEN_GO) \
--go_out=$(PROTO_SRC) \
--go_opt=paths=source_relative \
$(PROTO_SRC)/${NAME}.proto
.PHONY: $(PROTO_SRC)/${NAME}.pb.micro.go
$(PROTO_SRC)/${NAME}.pb.micro.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_MICRO)
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.micro.go"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-micro=$(PROTOC_GEN_MICRO) \
--micro_out=logtostderr=true:$(PROTO_SRC) \
--micro_opt=paths=source_relative \
$(PROTO_SRC)/${NAME}.proto
.PHONY: $(PROTO_SRC)/${NAME}.pb.web.go
$(PROTO_SRC)/${NAME}.pb.web.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_MICROWEB)
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.web.go"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-microweb=$(PROTOC_GEN_MICROWEB) \
--microweb_out=logtostderr=true:$(PROTO_SRC) \
--microweb_opt=paths=source_relative \
$(PROTO_SRC)/${NAME}.proto
.PHONY: $(PROTO_SRC)/${NAME}.swagger.json
$(PROTO_SRC)/${NAME}.swagger.json: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_OPENAPIV2)
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.swagger.json"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-openapiv2=$(PROTOC_GEN_OPENAPIV2) \
--openapiv2_out=logtostderr=true:$(PROTO_SRC)/ \
$(PROTO_SRC)/${NAME}.proto
.PHONY: ../docs/extensions/${NAME}/grpc.md
../docs/extensions/${NAME}/grpc.md: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_DOC)
@echo "$(NAME): generating ../docs/extensions/${NAME}/grpc.md"
@$(BUF) protoc \
-I=$(PROTO_SRC)/ \
-I=../third_party/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
--plugin protoc-gen-doc=$(PROTOC_GEN_DOC) \
--doc_opt=./templates/GRPC.tmpl,grpc.md \
--doc_out=../docs/extensions/${NAME} \
$(PROTO_SRC)/${NAME}.proto
+33
View File
@@ -0,0 +1,33 @@
.PHONY: changelog
changelog: $(CALENS) ## generate changelog
$(CALENS) -i ../changelog -t ../changelog/CHANGELOG.tmpl >| ../CHANGELOG.md
.PHONY: release
release: release-dirs release-linux release-windows release-darwin release-copy release-check
.PHONY: release-dirs
release-dirs:
mkdir -p $(DIST)/binaries $(DIST)/release
.PHONY: release-linux
release-linux: $(GOX) release-dirs
$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-windows
release-windows: $(GOX) release-dirs
$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'windows' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-darwin
release-darwin: $(GOX) release-dirs
$(GOX) -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -os 'darwin' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-copy
release-copy:
$(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)
.PHONY: release-check
release-check:
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
.PHONY: release-finish
release-finish: release-copy release-check
+19
View File
@@ -0,0 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "oCIS server",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/ocis/cmd/ocis",
"args": ["server"],
"env": {
"OCIS_LOG_LEVEL": "debug",
"OCIS_LOG_PRETTY": "true",
"OCIS_LOG_COLOR": "true",
"PROXY_ENABLE_BASIC_AUTH": "true"
}
},
]
}
+343 -1
View File
@@ -2,7 +2,349 @@
The following sections list the changes for unreleased.
[unreleased]: https://github.com/owncloud/ocis/compare/v1.1.0...master
[unreleased]: https://github.com/owncloud/ocis/compare/v1.4.0...master
## Summary
* Bugfix - Fixes "unaligned 64-bit atomic operation" panic on 32-bit ARM: [#1888](https://github.com/owncloud/ocis/pull/1888)
* Change - Make Protobuf package names unique: [#1875](https://github.com/owncloud/ocis/pull/1875)
* Change - Update ownCloud Web to v3.0.0: [#1938](https://github.com/owncloud/ocis/pull/1938)
* Enhancement - Change default path for thumbnails: [#1892](https://github.com/owncloud/ocis/pull/1892)
* Enhancement - Parse config on supervised mode with run subcommand: [#1931](https://github.com/owncloud/ocis/pull/1931)
* Enhancement - Update ODS in accounts & settings extension: [#1934](https://github.com/owncloud/ocis/pull/1934)
* Enhancement - Add config for public share SQL driver: [#1916](https://github.com/owncloud/ocis/pull/1916)
* Enhancement - Remove dead runtime code: [#1923](https://github.com/owncloud/ocis/pull/1923)
* Enhancement - Add option to reading registry rules from json file: [#1917](https://github.com/owncloud/ocis/pull/1917)
* Enhancement - Update reva to v1.6.1-0.20210414111318-a4b5148cbfb2: [#1872](https://github.com/owncloud/ocis/pull/1872)
## Details
* Bugfix - Fixes "unaligned 64-bit atomic operation" panic on 32-bit ARM: [#1888](https://github.com/owncloud/ocis/pull/1888)
Sync/cache had uint64s that were not 64-bit aligned causing panics on 32-bit systems during
atomic access
https://github.com/owncloud/ocis/issues/1887
https://github.com/owncloud/ocis/pull/1888
* Change - Make Protobuf package names unique: [#1875](https://github.com/owncloud/ocis/pull/1875)
Introduce unique `package` and `go_package` names for our Protobuf definitions
https://github.com/owncloud/ocis/pull/1875
* Change - Update ownCloud Web to v3.0.0: [#1938](https://github.com/owncloud/ocis/pull/1938)
Tags: web
We updated ownCloud Web to v3.0.0. Please refer to the changelog (linked) for details on the web
release.
https://github.com/owncloud/ocis/pull/1938
https://github.com/owncloud/web/releases/tag/v3.0.0
* Enhancement - Change default path for thumbnails: [#1892](https://github.com/owncloud/ocis/pull/1892)
Changes the default path for thumbnails from `<os tmp dir>/ocis-thumbnails` to
`/var/tmp/ocis/thumbnails`
https://github.com/owncloud/ocis/issues/1891
https://github.com/owncloud/ocis/pull/1892
* Enhancement - Parse config on supervised mode with run subcommand: [#1931](https://github.com/owncloud/ocis/pull/1931)
Currenntly it is not possible to parse a single config file from an extension when running on
supervised mode.
https://github.com/owncloud/ocis/pull/1931
* Enhancement - Update ODS in accounts & settings extension: [#1934](https://github.com/owncloud/ocis/pull/1934)
The accounts and settings extensions were updated to reflect the latest changes in the
ownCloud design system. In addition, a couple of quick wins in terms of accessibility are
included.
https://github.com/owncloud/ocis/pull/1934
* Enhancement - Add config for public share SQL driver: [#1916](https://github.com/owncloud/ocis/pull/1916)
https://github.com/owncloud/ocis/pull/1916
* Enhancement - Remove dead runtime code: [#1923](https://github.com/owncloud/ocis/pull/1923)
When moving from the old runtime to the new one there were lots of files left behind that are
essentially dead code and should be removed. The original code lives here
github.com/refs/pman/ if someone finds it interesting to read.
https://github.com/owncloud/ocis/pull/1923
* Enhancement - Add option to reading registry rules from json file: [#1917](https://github.com/owncloud/ocis/pull/1917)
https://github.com/owncloud/ocis/pull/1917
* Enhancement - Update reva to v1.6.1-0.20210414111318-a4b5148cbfb2: [#1872](https://github.com/owncloud/ocis/pull/1872)
* enforce quota (https://github.com/cs3org/reva/pull/1557)
* Make additional info attribute configureable (https://github.com/cs3org/reva/pull/1588)
* check ENOTDIR for readlink (https://github.com/cs3org/reva/pull/1597)
* Add wrappers for EOS and EOS Home storage drivers (https://github.com/cs3org/reva/pull/1624)
* eos: fixes for enabling file sharing (https://github.com/cs3org/reva/pull/1619)
* implement checksums in the owncloud storage driver (https://github.com/cs3org/reva/pull/1629)
https://github.com/owncloud/ocis/pull/1872
# Changelog for [1.4.0] (2021-03-30)
The following sections list the changes for 1.4.0.
[1.4.0]: https://github.com/owncloud/ocis/compare/v1.3.0...v1.4.0
## Summary
* Bugfix - Fix thumbnail generation for jpegs: [#1785](https://github.com/owncloud/ocis/pull/1785)
* Change - Update ownCloud Web to v2.1.0: [#1870](https://github.com/owncloud/ocis/pull/1870)
* Enhancement - Add focus to input elements on login page: [#1792](https://github.com/owncloud/ocis/pull/1792)
* Enhancement - Improve accessibility to input elements on login page: [#1794](https://github.com/owncloud/ocis/pull/1794)
* Enhancement - Add new build targets: [#1824](https://github.com/owncloud/ocis/pull/1824)
* Enhancement - Clarify expected failures: [#1790](https://github.com/owncloud/ocis/pull/1790)
* Enhancement - Replace special character in login page title with a regular minus: [#1813](https://github.com/owncloud/ocis/pull/1813)
* Enhancement - File Logging: [#1816](https://github.com/owncloud/ocis/pull/1816)
* Enhancement - Runtime Hostname and Port are now configurable: [#1822](https://github.com/owncloud/ocis/pull/1822)
* Enhancement - Generate thumbnails for .gif files: [#1791](https://github.com/owncloud/ocis/pull/1791)
* Enhancement - Tracing Refactor: [#1819](https://github.com/owncloud/ocis/pull/1819)
* Enhancement - Update reva to v1.6.1-0.20210326165326-e8a00d9b2368: [#1683](https://github.com/owncloud/ocis/pull/1683)
## Details
* Bugfix - Fix thumbnail generation for jpegs: [#1785](https://github.com/owncloud/ocis/pull/1785)
Images with the extension `.jpeg` were not properly supported.
https://github.com/owncloud/ocis/issues/1490
https://github.com/owncloud/ocis/pull/1785
* Change - Update ownCloud Web to v2.1.0: [#1870](https://github.com/owncloud/ocis/pull/1870)
Tags: web
We updated ownCloud Web to v2.1.0. Please refer to the changelog (linked) for details on the web
release.
https://github.com/owncloud/ocis/pull/1870
https://github.com/owncloud/web/releases/tag/v2.1.0
* Enhancement - Add focus to input elements on login page: [#1792](https://github.com/owncloud/ocis/pull/1792)
https://github.com/owncloud/web/issues/4322
https://github.com/owncloud/ocis/pull/1792
* Enhancement - Improve accessibility to input elements on login page: [#1794](https://github.com/owncloud/ocis/pull/1794)
https://github.com/owncloud/web/issues/4319
https://github.com/owncloud/ocis/pull/1794
https://github.com/owncloud/ocis/pull/1811
* Enhancement - Add new build targets: [#1824](https://github.com/owncloud/ocis/pull/1824)
Make build target `build` used to build a binary twice, the second occurrence having symbols
for debugging. We split this step in two and added `build-all` and `build-debug` targets.
- `build-all` now behaves as the previous `build` target, it will generate 2 binaries, one for
debug. - `build-debug` will build a single binary for debugging.
https://github.com/owncloud/ocis/pull/1824
* Enhancement - Clarify expected failures: [#1790](https://github.com/owncloud/ocis/pull/1790)
Some features, while covered by the ownCloud 10 acceptance tests, will not be implmented for
now: - blacklisted / ignored files, because ocis does not need to blacklist `.htaccess` files -
`OC-LazyOps` support was [removed from the
clients](https://github.com/owncloud/client/pull/8398). We are thinking about [a state
machine for uploads to properly solve that scenario and also list the state of files in progress
in the web ui](https://github.com/owncloud/ocis/issues/214). The expected failures
files now have a dedicated _Won't fix_ section for these items.
https://github.com/owncloud/ocis/issues/214
https://github.com/owncloud/ocis/pull/1790
https://github.com/owncloud/client/pull/8398
* Enhancement - Replace special character in login page title with a regular minus: [#1813](https://github.com/owncloud/ocis/pull/1813)
https://github.com/owncloud/ocis/pull/1813
* Enhancement - File Logging: [#1816](https://github.com/owncloud/ocis/pull/1816)
When running supervised, support for configuring all logs to a single log file:
`OCIS_LOG_FILE=/Users/foo/bar/ocis.log MICRO_REGISTRY=etcd bin/ocis server`
Supports directing log from single extensions to a log file:
`PROXY_LOG_FILE=/Users/foo/bar/proxy.log MICRO_REGISTRY=etcd bin/ocis proxy`
https://github.com/owncloud/ocis/pull/1816
* Enhancement - Runtime Hostname and Port are now configurable: [#1822](https://github.com/owncloud/ocis/pull/1822)
Without any configuration the ocis runtime will start on `localhost:9250` unless specified
otherwise. Usage:
- `OCIS_RUNTIME_PORT=6061 bin/ocis server` - overrides the oCIS runtime and starts on port
6061 - `OCIS_RUNTIME_PORT=6061 bin/ocis list` - lists running extensions for the runtime on
`localhost:6061`
All subcommands are updated and expected to work with the following environment variables:
``` OCIS_RUNTIME_HOST OCIS_RUNTIME_PORT ```
https://github.com/owncloud/ocis/pull/1822
* Enhancement - Generate thumbnails for .gif files: [#1791](https://github.com/owncloud/ocis/pull/1791)
Added support for gifs to the thumbnails service.
https://github.com/owncloud/ocis/pull/1791
* Enhancement - Tracing Refactor: [#1819](https://github.com/owncloud/ocis/pull/1819)
Centralize tracing handling per extension.
https://github.com/owncloud/ocis/pull/1819
* Enhancement - Update reva to v1.6.1-0.20210326165326-e8a00d9b2368: [#1683](https://github.com/owncloud/ocis/pull/1683)
* quota querying and tree accounting [cs3org/reva#1405](https://github.com/cs3org/reva/pull/1405)
* Fix webdav file versions endpoint bugs [cs3org/reva#1526](https://github.com/cs3org/reva/pull/1526)
* Fix etag changing only once a second [cs3org/reva#1576](https://github.com/cs3org/reva/pull/1576)
* Trashbin API parity [cs3org/reva#1552](https://github.com/cs3org/reva/pull/1552)
* Signature authentication for public links [cs3org/reva#1590](https://github.com/cs3org/reva/pull/1590)
https://github.com/owncloud/ocis/pull/1683
https://github.com/cs3org/reva/pull/1405
https://github.com/owncloud/ocis/pull/1861
# Changelog for [1.3.0] (2021-03-09)
The following sections list the changes for 1.3.0.
[1.3.0]: https://github.com/owncloud/ocis/compare/v1.2.0...v1.3.0
## Summary
* Bugfix - Purposely delay accounts service startup: [#1734](https://github.com/owncloud/ocis/pull/1734)
* Bugfix - Add missing gateway config: [#1716](https://github.com/owncloud/ocis/pull/1716)
* Bugfix - Fix accounts initialization: [#1696](https://github.com/owncloud/ocis/pull/1696)
* Bugfix - Fix the ttl of the authentication middleware cache: [#1699](https://github.com/owncloud/ocis/pull/1699)
* Change - Update ownCloud Web to v2.0.1: [#1683](https://github.com/owncloud/ocis/pull/1683)
* Change - Update ownCloud Web to v2.0.2: [#1776](https://github.com/owncloud/ocis/pull/1776)
* Enhancement - Remove the JWT from the log: [#1758](https://github.com/owncloud/ocis/pull/1758)
* Enhancement - Update go-micro to v3.5.1-0.20210217182006-0f0ace1a44a9: [#1670](https://github.com/owncloud/ocis/pull/1670)
* Enhancement - Update reva to v1.6.1-0.20210223065028-53f39499762e: [#1683](https://github.com/owncloud/ocis/pull/1683)
* Enhancement - Add initial nats and kubernetes registry support: [#1697](https://github.com/owncloud/ocis/pull/1697)
## Details
* Bugfix - Purposely delay accounts service startup: [#1734](https://github.com/owncloud/ocis/pull/1734)
As it turns out the race condition between `accounts <-> storage-metadata` still remains.
This PR is a hotfix, and it should be followed up with a proper fix. Either:
- block the accounts' initialization until the storage metadata is ready (using the registry)
or - allow the accounts service to initialize and use a message broker to signal the accounts the
metadata storage is ready to receive requests.
https://github.com/owncloud/ocis/pull/1734
* Bugfix - Add missing gateway config: [#1716](https://github.com/owncloud/ocis/pull/1716)
The auth provider `ldap` and `oidc` drivers now need to be able talk to the reva gateway. We added
the `gatewayscv` to the config that is passed to reva.
https://github.com/owncloud/ocis/pull/1716
* Bugfix - Fix accounts initialization: [#1696](https://github.com/owncloud/ocis/pull/1696)
Originally the accounts service relies on both the `settings` and `storage-metadata` to be up
and running at the moment it starts. This is an antipattern as it will cause the entire service to
panic if the dependants are not present.
We inverted this dependency and moved the default initialization data (i.e: creating roles,
permissions, settings bundles) and instead of notifying the settings service that the
account has to provide with such options, the settings is instead initialized with the options
the accounts rely on. Essentially saving bandwith as there is no longer a gRPC call to the
settings service.
For the `storage-metadata` a retry mechanism was added that retries by default 20 times to
fetch the `com.owncloud.storage.metadata` from the service registry every `500`
miliseconds. If this retry expires the accounts panics, as its dependency on the
`storage-metadata` service cannot be resolved.
We also introduced a client wrapper that acts as middleware between a client and a server. For
more information on how it works further read [here](https://github.com/sony/gobreaker)
https://github.com/owncloud/ocis/pull/1696
* Bugfix - Fix the ttl of the authentication middleware cache: [#1699](https://github.com/owncloud/ocis/pull/1699)
The authentication cache ttl was multiplied with `time.Second` multiple times. This
resulted in a ttl that was not intended.
https://github.com/owncloud/ocis/pull/1699
* Change - Update ownCloud Web to v2.0.1: [#1683](https://github.com/owncloud/ocis/pull/1683)
Tags: web
We updated ownCloud Web to v2.0.1. Please refer to the changelog (linked) for details on the web
release.
https://github.com/owncloud/ocis/pull/1683
https://github.com/owncloud/web/releases/tag/v2.0.1
* Change - Update ownCloud Web to v2.0.2: [#1776](https://github.com/owncloud/ocis/pull/1776)
Tags: web
We updated ownCloud Web to v2.0.2. Please refer to the changelog (linked) for details on the web
release.
https://github.com/owncloud/ocis/pull/1776
https://github.com/owncloud/web/releases/tag/v2.0.2
* Enhancement - Remove the JWT from the log: [#1758](https://github.com/owncloud/ocis/pull/1758)
We were logging the JWT in some places. Secrets should not be exposed in logs so it got removed.
https://github.com/owncloud/ocis/pull/1758
* Enhancement - Update go-micro to v3.5.1-0.20210217182006-0f0ace1a44a9: [#1670](https://github.com/owncloud/ocis/pull/1670)
- We updated from go micro v2 (v2.9.1) go-micro v3 (v3.5.1 edge). - oCIS runtime is now aware of
`MICRO_LOG_LEVEL` and is set to `error` by default. This decision was made because ownCloud,
as framework builders, want to log everything oCIS related and hide everything unrelated by
default. It can be re-enabled by setting it to a log level other than `error`. i.e:
`MICRO_LOG_LEVEL=info`. - Updated `protoc-gen-micro` to the [latest
version](https://github.com/asim/go-micro/tree/master/cmd/protoc-gen-micro). -
We're using Prometheus wrappers from go-micro.
https://github.com/owncloud/ocis/pull/1670
https://github.com/asim/go-micro/pull/2126
* Enhancement - Update reva to v1.6.1-0.20210223065028-53f39499762e: [#1683](https://github.com/owncloud/ocis/pull/1683)
* quota querying and tree accounting [cs3org/reva#1405](https://github.com/cs3org/reva/pull/1405)
https://github.com/owncloud/ocis/pull/1683
https://github.com/cs3org/reva/pull/1405
* Enhancement - Add initial nats and kubernetes registry support: [#1697](https://github.com/owncloud/ocis/pull/1697)
We added initial support to use nats and kubernetes as a service registry using
`MICRO_REGISTRY=nats` and `MICRO_REGISTRY=kubernetes` respectively. Multiple nodes can
be given with `MICRO_REGISTRY_ADDRESS=1.2.3.4,5.6.7.8,9.10.11.12`.
https://github.com/owncloud/ocis/pull/1697
# Changelog for [1.2.0] (2021-02-17)
The following sections list the changes for 1.2.0.
[1.2.0]: https://github.com/owncloud/ocis/compare/v1.1.0...v1.2.0
## Summary
+2 -9
View File
@@ -1,19 +1,12 @@
FROM webhippie/golang:1.15 as build
FROM owncloudci/golang:1.16 as build
COPY ./ /ocis/
ENV CGO_ENABLED=0
ENV GOOS=linux
RUN apk update && \
apk upgrade --ignore musl-dev && \
apk add make gcc bash && \
rm -rf /var/cache/apk/*
WORKDIR /ocis/ocis
RUN make clean generate build
FROM alpine:3
FROM alpine:3.13
RUN apk update && \
apk upgrade && \
+60 -4
View File
@@ -12,6 +12,9 @@ WHITE := $(shell tput -Txterm setaf 7)
RESET := $(shell tput -Txterm sgr0)
L10N_MODULES := $(shell find . -path '*.tx*' -name 'config' | sed 's|/[^/]*$$||' | sed 's|/[^/]*$$||' | sed 's|/[^/]*$$||')
# if you add a module here please also add it to the .drone.star file
OCIS_MODULES = \
accounts \
glauth \
@@ -30,12 +33,16 @@ OCIS_MODULES = \
web \
webdav
ifneq (, $(shell which go 2> /dev/null)) # supress `command not found warnings` for non go targets in CI
include .bingo/Variables.mk
endif
.PHONY: help
help:
@echo "Please use 'make <target>' where <target> is one of the following:"
@echo
@echo -e "${GREEN}Testing with test suite natively installed:${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.github.io/ocis/development/testing/#testing-with-test-suite-natively-installed${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/testing/#testing-with-test-suite-natively-installed${RESET}\n"
@echo -e "\tmake test-acceptance-api\t${BLUE}run API acceptance tests${RESET}"
@echo -e "\tmake clean-tests\t\t${BLUE}delete API tests framework dependencies${RESET}"
@echo
@@ -44,17 +51,17 @@ help:
@echo -e "${RED}You also should have a look at other available Makefiles:${RESET}"
@echo
@echo -e "${GREEN}oCIS:${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.github.io/ocis/development/building/${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/build/${RESET}\n"
@echo -e "\tsee ./ocis/Makefile"
@echo -e "\tor run ${YELLOW}make -C ocis help${RESET}"
@echo
@echo -e "${GREEN}Documentation:${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.github.io/ocis/development/building-docs/${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/build-docs/${RESET}\n"
@echo -e "\tsee ./docs/Makefile"
@echo -e "\tor run ${YELLOW}make -C docs help${RESET}"
@echo
@echo -e "${GREEN}Testing with test suite in docker:${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.github.io/ocis/development/testing/#testing-with-test-suite-in-docker${RESET}\n"
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/testing/#testing-with-test-suite-in-docker${RESET}\n"
@echo -e "\tsee ./tests/acceptance/docker/Makefile"
@echo -e "\tor run ${YELLOW}make -C tests/acceptance/docker help${RESET}"
@echo
@@ -135,3 +142,52 @@ go-coverage:
@for mod in $(OCIS_MODULES); do \
echo -n "% coverage $$mod: "; $(MAKE) --no-print-directory -C $$mod go-coverage; \
done
.PHONY: protobuf
protobuf:
@for mod in $(OCIS_MODULES); do \
echo -n "% protobuf $$mod: "; $(MAKE) --no-print-directory -C $$mod protobuf; \
done
.PHONY: bingo-update
bingo-update: $(BINGO)
$(BINGO) get -u
CHANGELOG_VERSION =
.PHONY: changelog
changelog: $(CALENS)
ifndef CHANGELOG_VERSION
$(error CHANGELOG_VERSION is undefined)
endif
$(CALENS) --version $(CHANGELOG_VERSION) -o ocis/dist/CHANGELOG.md
.PHONY: l10n-push
l10n-push:
@for extension in $(L10N_MODULES); do \
make -C $$extension l10n-push; \
done
.PHONY: l10n-pull
l10n-pull:
@for extension in $(L10N_MODULES); do \
make -C $$extension l10n-pull; \
done
.PHONY: l10n-clean
l10n-clean:
@for extension in $(L10N_MODULES); do \
make -C $$extension l10n-clean; \
done
.PHONY: l10n-read
l10n-read:
@for extension in $(L10N_MODULES); do \
make -C $$extension l10n-read; \
done
.PHONY: l10n-write
l10n-write:
@for extension in $(L10N_MODULES); do \
make -C $$extension l10n-write; \
done
+2 -2
View File
@@ -12,11 +12,11 @@
## Run ownCloud Infinite Scale
Please see [Getting Started](https://owncloud.github.io/ocis/getting-started/)
Please see [Getting Started](https://owncloud.dev/ocis/getting-started/)
## Development
Please see [Development - Getting Started](https://owncloud.github.io/ocis/development/getting-started/)
Please see [Development - Getting Started](https://owncloud.dev/ocis/development/getting-started/)
## Security
+20 -211
View File
@@ -1,178 +1,38 @@
SHELL := bash
NAME := accounts
IMPORT := github.com/owncloud/ocis/$(NAME)
BIN := bin
DIST := dist
HUGO := hugo
PROTO_VERSION := v0
PROTO_SRC := pkg/proto/$(PROTO_VERSION)
ifeq ($(OS), Windows_NT)
EXECUTABLE := $(NAME).exe
UNAME := Windows
else
EXECUTABLE := $(NAME)
UNAME := $(shell uname -s)
endif
ifeq ($(UNAME), Darwin)
GOBUILD ?= go build -i
else
GOBUILD ?= go build
endif
PACKAGES ?= $(shell go list ./...)
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
GENERATE ?= $(IMPORT)/pkg/assets
FEATURE_PATH ?= "ui/tests/acceptance/features"
TAGS ?=
ifndef GOPATH
export GOPATH := $(shell go env GOPATH)
endif
export PATH := $(PATH):$(GOPATH)/bin
ifndef OUTPUT
ifneq ($(DRONE_TAG),)
OUTPUT ?= $(subst v,,$(DRONE_TAG))
else
OUTPUT ?= testing
endif
endif
ifndef VERSION
ifneq ($(DRONE_TAG),)
VERSION ?= $(subst v,,$(DRONE_TAG))
else
VERSION ?= $(shell git rev-parse --short HEAD)
endif
endif
ifndef DATE
DATE := $(shell date -u '+%Y%m%d')
endif
LDFLAGS += -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
GCFLAGS += all=-N -l
.PHONY: all
all: build
.PHONY: sync
sync:
go mod download
.PHONY: clean
clean:
go clean -i ./...
rm -rf $(BIN) $(DIST) $(HUGO)
.PHONY: go-mod-tidy
go-mod-tidy:
@go mod tidy
.PHONY: fmt
fmt:
gofmt -s -w $(SOURCES)
.PHONY: vet
vet:
go vet $(PACKAGES)
.PHONY: staticcheck
staticcheck:
go run honnef.co/go/tools/cmd/staticcheck -tags '$(TAGS)' $(PACKAGES)
.PHONY: lint
lint:
for PKG in $(PACKAGES); do go run golang.org/x/lint/golint -set_exit_status $$PKG || exit 1; done;
.PHONY: changelog
changelog:
go run github.com/restic/calens >| CHANGELOG.md
.PHONY: test
test:
go run github.com/haya14busa/goverage -v -coverprofile coverage.out $(PACKAGES)
.PHONY: go-coverage
go-coverage:
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
@go tool cover -func coverage.out | tail -1 | grep -Eo "[0-9]+\.[0-9]+"
.PHONY: install
install: $(SOURCES)
go install -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/$(NAME)
.PHONY: build
build: $(BIN)/$(EXECUTABLE) $(BIN)/$(EXECUTABLE)-debug
$(BIN)/$(EXECUTABLE): $(SOURCES)
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $@ ./cmd/$(NAME)
$(BIN)/$(EXECUTABLE)-debug: $(SOURCES)
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -gcflags '$(GCFLAGS)' -o $@ ./cmd/$(NAME)
.PHONY: release
release: release-dirs release-linux release-windows release-darwin release-copy release-check
.PHONY: release-dirs
release-dirs:
mkdir -p $(DIST)/binaries $(DIST)/release
.PHONY: release-linux
release-linux: release-dirs
go run github.com/mitchellh/gox -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-windows
release-windows: release-dirs
go run github.com/mitchellh/gox -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'windows' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-darwin
release-darwin: release-dirs
go run github.com/mitchellh/gox -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -os 'darwin' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
.PHONY: release-copy
release-copy:
$(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)
.PHONY: release-check
release-check:
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
.PHONY: release-finish
release-finish: release-copy release-check
.PHONY: test-acceptance-webui
test-acceptance-webui:
./ui/tests/run-acceptance-test.sh $(FEATURE_PATH)
.PHONY: watch
watch:
go run github.com/cespare/reflex -c reflex.conf
############ tooling ############
ifneq (, $(shell which go 2> /dev/null)) # supress `command not found warnings` for non go targets in CI
include ../.bingo/Variables.mk
endif
############ go tooling ############
include ../.make/go.mk
############ release ############
include ../.make/release.mk
############ docs generate ############
include ../.make/docs.mk
############ l10n ############
include ../.make/l10n.mk
.PHONY: docs-generate
docs-generate: config-docs-generate \
grpc-docs-generate
.PHONY: config-docs-generate
config-docs-generate:
go run github.com/owncloud/flaex >| ../docs/extensions/$(NAME)/configuration.md
.PHONY: grpc-docs-generate
grpc-docs-generate: ../docs/extensions/${NAME}/grpc.md
############ generate ############
.PHONY: generate
generate: ci-node-generate ci-go-generate
include ../.make/generate.mk
.PHONY: ci-go-generate
ci-go-generate: protobuf # CI runs ci-node-generate automatically before this target
go generate $(GENERATE)
@go generate $(GENERATE)
.PHONY: ci-node-generate
ci-node-generate: yarn-build
@@ -188,61 +48,10 @@ node_modules:
yarn install --frozen-lockfile
############ protobuf ############
$(GOPATH)/bin/protoc-gen-go:
go get -v google.golang.org/protobuf/cmd/protoc-gen-go@v1.25.0
PROTO_VERSION := v0
PROTO_SRC := pkg/proto/$(PROTO_VERSION)
$(GOPATH)/bin/protoc-gen-micro:
GO111MODULE=on go get -v github.com/micro/protoc-gen-micro/v2
$(GOPATH)/bin/protoc-gen-microweb:
GO111MODULE=off go get -v github.com/owncloud/protoc-gen-microweb
$(GOPATH)/bin/protoc-gen-openapiv2:
GO111MODULE=off go get -v github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2
$(GOPATH)/bin/protoc-gen-doc:
GO111MODULE=off go get -v github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
.PHONY: $(PROTO_SRC)/${NAME}.pb.go
$(PROTO_SRC)/${NAME}.pb.go: $(GOPATH)/bin/protoc-gen-openapiv2 $(GOPATH)/bin/protoc-gen-go
protoc \
-I=../third_party/ \
-I=$(PROTO_SRC)/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/ \
--go_out=. ${NAME}.proto
.PHONY: $(PROTO_SRC)/${NAME}.pb.micro.go
$(PROTO_SRC)/${NAME}.pb.micro.go: $(GOPATH)/bin/protoc-gen-openapiv2 $(GOPATH)/bin/protoc-gen-micro
protoc \
-I=../third_party/ \
-I=$(PROTO_SRC)/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/ \
--micro_out=. ${NAME}.proto
.PHONY: $(PROTO_SRC)/${NAME}.pb.web.go
$(PROTO_SRC)/${NAME}.pb.web.go: $(GOPATH)/bin/protoc-gen-openapiv2 $(GOPATH)/bin/protoc-gen-microweb
protoc \
-I=../third_party/ \
-I=$(PROTO_SRC)/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/ \
--microweb_out=. ${NAME}.proto
.PHONY: $(PROTO_SRC)/${NAME}.swagger.json
$(PROTO_SRC)/${NAME}.swagger.json: $(GOPATH)/bin/protoc-gen-openapiv2
protoc \
-I=../third_party/ \
-I=$(PROTO_SRC)/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/ \
--openapiv2_out=$(PROTO_SRC)/ ${NAME}.proto
.PHONY: ../docs/extensions/${NAME}/grpc.md
../docs/extensions/${NAME}/grpc.md: $(GOPATH)/bin/protoc-gen-openapiv2 $(GOPATH)/bin/protoc-gen-doc
protoc \
-I=../third_party/ \
-I=$(PROTO_SRC)/ \
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/ \
--doc_opt=./templates/GRPC.tmpl,grpc.md \
--doc_out=../docs/extensions/${NAME} $(PROTO_SRC)/${NAME}.proto
include ../.make/protobuf.mk
.PHONY: protobuf
protobuf: $(PROTO_SRC)/${NAME}.pb.go \
+2 -1
View File
@@ -4,10 +4,11 @@ import (
"os"
"github.com/owncloud/ocis/accounts/pkg/command"
"github.com/owncloud/ocis/accounts/pkg/config"
)
func main() {
if err := command.Execute(); err != nil {
if err := command.Execute(config.New()); err != nil {
os.Exit(1)
}
}
+26 -30
View File
@@ -1,51 +1,47 @@
module github.com/owncloud/ocis/accounts
go 1.15
go 1.16
require (
contrib.go.opencensus.io/exporter/jaeger v0.2.1
contrib.go.opencensus.io/exporter/ocagent v0.6.0
contrib.go.opencensus.io/exporter/zipkin v0.1.1
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/cs3org/go-cs3apis v0.0.0-20210209082852-35ace33082f5
github.com/cs3org/reva v1.6.0
contrib.go.opencensus.io/exporter/ocagent v0.7.0
contrib.go.opencensus.io/exporter/zipkin v0.1.2
github.com/asim/go-micro/plugins/client/grpc/v3 v3.0.0-20210408173139-0d57213d3f5c
github.com/asim/go-micro/v3 v3.5.1-0.20210217182006-0f0ace1a44a9
github.com/cs3org/go-cs3apis v0.0.0-20210325133324-32b03d75a535
github.com/cs3org/reva v1.6.1-0.20210414111318-a4b5148cbfb2
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.3
github.com/huandu/xstrings v1.3.2 // indirect
github.com/mattn/go-runewidth v0.0.10 // indirect
github.com/golang/protobuf v1.5.2
github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0
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/micro/protoc-gen-micro/v2 v2.1.1 // indirect
github.com/mitchellh/copystructure v1.1.1 // indirect
github.com/oklog/run v1.1.0
github.com/olekukonko/tablewriter v0.0.4
github.com/openzipkin/zipkin-go v0.2.2
github.com/olekukonko/tablewriter v0.0.5
github.com/openzipkin/zipkin-go v0.2.5
github.com/owncloud/ocis/ocis-pkg v0.0.0-20210216094451-dc73176dc62d
github.com/owncloud/ocis/settings v0.0.0-20210216094451-dc73176dc62d
github.com/prometheus/client_golang v1.7.1
github.com/restic/calens v0.2.0
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rs/zerolog v1.20.0
github.com/spf13/viper v1.7.0
github.com/owncloud/ocis/settings v0.0.0-20210413063522-955bd60edf33
github.com/prometheus/client_golang v1.10.0
github.com/rs/zerolog v1.21.0
github.com/spf13/viper v1.7.1
github.com/stretchr/testify v1.7.0
go.opencensus.io v0.22.6
github.com/thejerf/suture/v4 v4.0.0
go.opencensus.io v0.23.0
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
golang.org/x/mod v0.4.1 // indirect
golang.org/x/net v0.0.0-20210119194325-5f4716e94777
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect
golang.org/x/text v0.3.5 // indirect
google.golang.org/genproto v0.0.0-20200624020401-64a14ca9d1ad
google.golang.org/grpc v1.35.0
google.golang.org/protobuf v1.25.0
gopkg.in/yaml.v2 v2.4.0 // indirect
honnef.co/go/tools v0.1.1 // indirect
google.golang.org/genproto v0.0.0-20210207032614-bba0dbe2a9ea
google.golang.org/grpc v1.37.0
google.golang.org/protobuf v1.26.0
)
replace (
github.com/owncloud/ocis/ocis-pkg => ../ocis-pkg
github.com/owncloud/ocis/settings => ../settings
google.golang.org/grpc => google.golang.org/grpc v1.26.0
github.com/owncloud/ocis/store => ../store
// taken from https://github.com/asim/go-micro/blob/master/plugins/registry/etcd/go.mod#L14-L16
go.etcd.io/etcd/api/v3 => go.etcd.io/etcd/api/v3 v3.0.0-20210204162551-dae29bb719dd
go.etcd.io/etcd/pkg/v3 => go.etcd.io/etcd/pkg/v3 v3.0.0-20210204162551-dae29bb719dd
// latest version compatible with etcd
google.golang.org/grpc => google.golang.org/grpc v1.29.1
)
+505 -197
View File
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
[main]
host = https://www.transifex.com
[owncloud.ocis-accounts]
file_filter = locale/<lang>/LC_MESSAGES/app.po
minimum_perc = 0
source_file = template.pot
source_lang = en
type = PO
+1
View File
@@ -0,0 +1 @@
{"de":{"Account is activated":"Konto ist aktiviert","Account is blocked":"Konto ist geblockt","Activate":"Aktivieren","Activated":"Aktiviert","Block":"Blockieren","Cancel":"Abbrechen","Clear selection":"Auswahl aufheben","Confirm":"Bestätigen","Create":"Erstellen","Create new account":"Neues Konto erstellen","Creating":"Erstelle","Delete":"Löschen","Display name":"Anzeigename","Email":"E-Mail","Email cannot be empty":"E-Mail darf nicht leer sein","Failed to change role.":"Ändern der Rolle fehlgeschlagen.","Invalid email address":"Ungültige E-Mail-Adresse","Invalid username":"Ungültiger Benutzername","Loading":"Lade","Password":"Passwort","Password cannot be empty":"Das Passwort darf nicht leer sein","Role":"Rolle","Select %{ account }":" %{ account } auswählen","Select all users":"Alle Benutzer auswählen","Select role":"Rolle auswählen","Username":"Benutzername","Username cannot be empty":"Benutzername darf nicht leer sein","You don't have permissions to manage accounts.":"Keine Berechtigungen um Konten zu verwalten"},"fr":{"%{ amount } selected user":["%{ amount } utilisateur sélectionné","%{ amount } utilisateurs sélectionnés"],"Account is activated":"Le compte est activé","Account is blocked":"Le compte est verrouillé","Activate":"Activer","Activated":"Activé","Block":"Bloquer","Cancel":"Annuler","Clear selection":"Vider la sélection","Confirm":"Confirmer","Create":"Créer","Create new account":"Créer un compte","Delete":"Supprimer","Delete the selected account?":["Supprimer le compte sélectionné ?","Supprimer les comptes sélectionnés ?"],"Display name":"Nom affiché","Email":"Adresse courriel","Email cannot be empty":"L'email ne peut pas être vide.","Invalid email address":"Adresse mail invalide","Invalid username":"Noms d'utilisateur non valide","Loading":"Chargement","Password":"Mot de passe","Password cannot be empty":"Le mot de passe ne peut être vide","Role":"Rôle ","Select %{ account }":"%{ account } sélectionné","Select all users":"Sélectionner tous les utilisateurs","Select role":"Sélectionnez un rôle","Username":"Nom d'utilisateur","Username cannot be empty":"Le nom d'utilisateur ne peut pas être vide"},"pt_BR":{"%{ amount } selected user":["%{ amount } usuário selecionado","%{ amount } usuários selecionados"],"Account is activated":"Conta está ativada ","Account is blocked":"A conta está bloqueada ","Activate":"Ativar","Activated":"Ativada","Block":"Bloco","Cancel":"Cancelar","Clear selection":"Limpar seleção","Confirm":"Confirmar","Create":"Criar","Create new account":"Criar uma nova conta","Creating":"Criando","Delete":"Excluir","Delete the selected account?":["Excluir a conta selecionada?","Excluir as contas selecionadas? "],"Display name":"Nome de exibição","Email":"E-mail","Email cannot be empty":"Email não pode estar vazio ","Failed to change role.":"Falha ao alterar a função. ","Invalid email address":"Endereço de email inválido","Invalid username":"Nome de usuário Inválido","Loading":"Carregando","Password":"Senha","Password cannot be empty":"A senha não pode estar vazia","Role":"Função","Select %{ account }":"Selecione %{ account }","Select all users":"Selecione todos os usuários ","Select role":"Seleciona função","Username":"Nome do Usuário","Username cannot be empty":"O nome de usuário não pode estar vazio ","You don't have permissions to manage accounts.":"Você não tem permissão para gerenciar contas. "},"ru":{"Account is activated":"Учётная запись активирована","Account is blocked":"Учётная запись заблокирована","Activate":"Активировать","Activated":"Активирован","Block":"Заблокировать","Cancel":"Отмена","Clear selection":"Очистить выбор","Confirm":"Подтвердите","Create":"Создать","Create new account":"Создать новую учётную запись","Creating":"Создание","Delete":"Удалить","Delete the selected account?":["Удалить выбранную учётную запись?","Удалить выбранные учётные записи?","Удалить выбранные учётные записи?","Удалить выбранные учётные записи?"],"Display name":"Отображаемое имя","Email":"Почта","Email cannot be empty":"Поле email не может быть пустым","Invalid email address":"Недопустимый адрес почты","Invalid username":"Недопустимое имя пользователя","Loading":"Загрузка","Password":"Пароль","Password cannot be empty":"Пароль не может быть пустым","Role":"Роль","Select all users":"Выбрать всех пользователей","Username":"Имя пользователя","Username cannot be empty":"Поле \"Имя пользователя\" не может быть пустым","You don't have permissions to manaLine truncated
+17 -17
View File
@@ -8,7 +8,7 @@
"author": "ownCloud GmbH <devops@owncloud.com>",
"repository": "https://github.com/owncloud/ocis-accounts.git",
"bugs": {
"url": "https://github.com/owncloud/ocis/accounts/issues",
"url": "https://github.com/owncloud/ocis/issues",
"email": "support@owncloud.com"
},
"scripts": {
@@ -20,50 +20,50 @@
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format node_modules/cucumber-pretty -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\""
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/core": "^7.13.10",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-export-default-from": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.7.7",
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.8.0",
"@babel/plugin-transform-runtime": "^7.13.10",
"@babel/polyfill": "^7.10.1",
"@babel/preset-env": "^7.7.7",
"@babel/register": "7.12.13",
"@babel/preset-env": "^7.13.12",
"@babel/register": "7.13.8",
"@erquhart/rollup-plugin-node-builtins": "^2.1.5",
"@rollup/plugin-commonjs": "^11.0.1",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^4.0.1",
"@rollup/plugin-replace": "^2.3.0",
"archiver": "^4.0.1",
"archiver": "^5.3.0",
"axios": "^0.21.1",
"core-js": "3",
"cross-env": "^7.0.3",
"cucumber": "^6.0.5",
"cucumber-pretty": ">=6.0.0",
"debounce": "^1.2.0",
"debounce": "^1.2.1",
"easygettext": "^2.7.0",
"eslint": "6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint": "7.24.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-vue": "^7.6.0",
"eslint-plugin-vue": "^7.8.0",
"fs-extra": "^9.0.1",
"join-path": "^1.1.1",
"ldap": "^0.7.1",
"ldapjs": "^2.2.3",
"nightwatch": "^1.3.6",
"nightwatch-api": "^3.0.1",
"nightwatch-vrt": "^0.2.10",
"node-fetch": "^2.6.1",
"qs": "^6.9.1",
"qs": "^6.10.1",
"rimraf": "^3.0.0",
"rollup": "^2.39.0",
"rollup": "^2.42.4",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-filesize": "^9.1.0",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.1.3",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^5.1.4",
"swagger-vue-generator": "^1.0.6",
"url-search-params-polyfill": "^8.1.0",
@@ -76,7 +76,7 @@
"not dead"
],
"peerDependencies": {
"owncloud-design-system": "^1.7.0"
"owncloud-design-system": "^6.0.1"
},
"dependencies": {
"validator": "^13.1.1"
+1 -1
View File
@@ -15,7 +15,7 @@ import (
_ "golang.org/x/net/webdav"
)
//go:generate go run github.com/UnnoTed/fileb0x embed.yml
//go:generate make -C ../.. embed.yml
// assets gets initialized by New and provides the handler.
type assets struct {
+3 -3
View File
@@ -1,5 +1,5 @@
// Code generated by fileb0x at "2021-02-17 10:35:52.837501 +0100 CET m=+0.010639355" from config file "embed.yml" DO NOT EDIT.
// modification hash(c9d4111ae741bf537598ab0856324f72.8058aec596c5fb73022d09bb97af796e)
// Code generated by fileb0x at "2021-03-25 21:34:13.877130643 +0100 CET m=+0.009386778" from config file "embed.yml" DO NOT EDIT.
// modification hash(870f78ca33b25bbbe460723a3f383fc4.8058aec596c5fb73022d09bb97af796e)
package assets
@@ -36,7 +36,7 @@ type HTTPFS struct {
}
// FileAccountsJs is "accounts.js"
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\xe9\x76\xdb\x38\xb7\x28\xf8\xbb\xcf\x53\x48\x3c\xf5\xf1\x00\xa5\x6d\x45\x4a\x6a\xa4\x82\xd2\xe7\x24\xce\x50\x99\x5c\xb6\x93\x4a\x95\x4a\xc7\x8b\xa6\x20\x1b\x89\x04\xa8\x40\xc8\x43\x24\xf6\xfb\xf4\x6b\xf4\x93\xf5\xc2\x44\x82\x14\x95\xaa\xef\xdc\x73\x7b\xdd\x5e\x7d\xd7\xf2\xb2\x48\x10\xe3\xc6\xc6\x9e\xb0\xb1\x31\xa3\x73\xc6\x29\x42\xf3\x35\xcf\x14\x13\x1c\xe1\x4d\xb4\xce\x69\x27\x57\x92\x65\x2a\x1a\x5d\xa7\xb2\xa3\x48\xb4\xe6\x36\xe3\x2c\xea\x12\x75\xb7\xa2\x62\xde\xb9\x5c\x88\x8b\x74\x71\x76\xc5\xf2\x71\xf5\x98\xb4\xe5\xbc\x61\x7c\x26\x6e\xc6\xf6\xa7\x35\x87\xad\xc0\xd5\xd3\x9a\x23\xa7\x8b\xf9\x58\xff\x4b\x36\xc5\xc8\x77\xb6\x43\x91\x02\x8a\x37\x92\xaa\xb5\xe4\x1d\x85\x28\xd9\xd0\xdb\x95\x90\x2a\x4f\x36\x45\x01\xb4\xef\xde\x70\xf5\x58\xe8\x11\x71\x12\x0e\x59\xe1\x8d\x4e\xa4\x64\x37\xe5\xed\xc5\x47\x9a\xa9\xfe\x4a\x0a\x25\x74\x4f\x80\x13\xda\xbf\x4a\xf3\xb7\x37\xfc\x58\x8a\x15\x95\xea\x0e\x24\x89\x7c\xc1\x88\xf8\xfe\x9e\xde\x2d\x2f\xc4\x62\x6c\x7f\x92\x4d\x01\x82\xc8\x3e\x53\x54\xa6\x4a\xc8\xed\x36\xfa\xe7\x3f\xfd\x4b\x04\x8c\xc8\x7e\x9a\xdf\xf1\xec\x45\xf8\xbd\x96\x12\x41\x4a\x64\x5f\x89\x53\x25\x19\xbf\x3c\x4b\x2f\x4d\x96\xe0\x3d\xaa\x80\x92\x69\xa0\x00\x2f\xc1\xe2\xc6\x60\x41\xea\x7b\x6d\xf2\x6c\xae\xd3\xc5\x9a\x26\x1c\x28\x5f\x2f\xa9\x4c\x2f\x16\x34\xe9\x0e\x20\x13\x7c\xce\x2e\xd7\xe5\xfb\x8d\x64\xca\x3d\x17\x18\xd4\x84\x4e\x0b\x25\xef\x36\x19\xda\x14\x10\x45\xb8\xc8\x52\x95\x5d\x69\x98\x65\x01\x04\x6b\x5d\xd0\x65\x08\x2f\x8a\xb2\x8f\xb9\xcd\x00\xd2\x02\x5a\x10\x1a\xc7\xb4\x02\x73\x87\xf1\x5c\xa5\x3c\xd3\x90\x9c\x8f\x69\x32\x07\xe6\xa7\x22\x93\x34\x55\x14\x89\x2a\x33\x86\x94\x70\x7a\xd3\x39\x42\x72\xbb\x9d\x4c\xf1\xc8\x35\xca\xfa\xe7\x8c\x5f\x8b\x4f\x74\xa7\x57\xba\x49\x49\xa2\x7c\x9d\xaf\x28\x9f\xd1\xd9\xa9\x4a\xa5\x8a\x7c\xb9\x32\xb7\x00\x86\x37\x6c\x8e\x22\x7a\x4b\xb3\xb5\x62\xfc\x32\x22\x84\x48\xac\xae\xa4\xb8\xe9\x98\x26\xa5\x14\x12\x45\xcf\x28\xb7\xd3\xd4\x61\x79\x27\x5d\x48\x9a\xce\xee\x3a\x72\xcd\xb9\x2e\x82\x47\xba\x8a\x4c\x2c\x57\x0b\xaa\xe8\xcc\x56\x61\xaa\x35\xf5\xe8\x77\xe1\xaa\x64\xbe\x0b\xa7\x08\x17\x73\x21\x11\xef\x2f\xa9\xba\x12\x33\x22\x80\xf7\x53\x79\x49\xd8\x68\x64\xbb\x9f\x12\xde\x9f\xd1\x05\xbd\x4c\x15\xd5\x0d\xa4\x36\x39\x23\x37\x28\x05\x6e\xda\xcc\x4c\x2b\x19\x21\x64\x81\x33\xc1\x15\xe3\x6b\xea\x1b\xc8\x8a\x42\xf7\x80\xd3\x5b\xa5\x3b\xe0\xdb\xc1\xbc\x9f\x53\xae\x08\xef\x9f\xbb\xdf\x54\x5e\x8e\xe8\x22\xa7\x9d\x5a\x87\xcb\xfc\x66\x1c\x0d\x38\x06\x30\x92\x24\x18\xb8\x1d\xc2\x88\xf7\x67\x2c\x5f\x69\x94\x39\xba\xcd\xe8\xca\x40\xda\x7c\xc1\x85\x6e\x28\xb2\x3d\x0c\x5b\x89\x63\xde\x4f\x2f\xe4\x7a\xa5\x90\xff\x6a\xeb\xc2\x23\x49\x82\xc9\x31\xc4\x2a\x27\x6b\x37\xcd\x06\xee\x5c\xc8\x65\xba\xd0\xb5\xe5\x7d\x83\x2c\xba\xc7\x52\x03\x4f\x70\x3a\x0e\x7a\x97\x54\xc3\xf8\x8d\xd1\xc5\x2c\x82\xdc\x40\xbc\x05\x7a\x6e\xd9\x98\xef\xa0\xeb\x49\x6c\x75\x45\x51\x41\xc8\xb6\x16\xc7\xa8\x09\x02\x37\xa1\x2e\xa7\x9b\xd6\xdc\x8e\xbf\x28\x90\x02\x0e\x29\x06\x56\x2d\x15\x3f\x9c\x8d\x5e\x73\xae\x03\xba\xee\xc4\x8f\x0d\x52\x79\x99\xa8\x7e\x96\x2e\x16\x48\x67\x2c\xaa\x05\x59\xcb\xee\x5a\x34\xb9\x8b\xa2\x50\xfd\x1b\x99\xae\x48\x6e\xa0\xb6\x20\x21\x59\x9d\x23\xbc\xa9\x3a\x30\xab\xbd\xad\xf4\x9b\x2e\x72\xa5\x8b\x5c\x4d\xc4\x94\x04\xbc\xc3\xaf\xf7\x2b\x96\x17\xa6\xe2\xa5\x5f\xb7\x97\x54\x1d\xfb\x15\xfb\x76\x0e\xd7\x64\x19\xc7\x4b\xb4\x44\x6f\xd1\x64\x8a\x31\x1e\x5d\xc7\xf1\x75\x97\x68\x3a\xc0\xed\x50\xae\x41\xe0\x38\x46\x57\xe4\x1a\x9b\x9a\x2e\xc9\xaa\x5a\xf3\x64\x1e\x3c\xd7\x29\xc3\x15\xae\x06\x72\xa7\x81\x30\xb1\x68\x0e\x1e\x00\x1e\x87\xa6\xfd\xb9\x90\x47\x69\x76\x15\xb0\x02\x8a\x37\x96\x7c\xd6\xb8\x43\x30\x2a\x4f\x53\x10\x05\x85\x0b\x6c\xfe\xca\xe6\x2e\x2c\x3b\x32\xe4\x65\x14\xe6\x26\x75\x9a\x52\x16\x48\x2b\x90\x69\x72\x12\x32\x25\x09\x29\xde\x74\xcb\x9c\x52\x97\x84\x14\x32\x5b\xbd\xc1\xf2\x89\x98\x82\x02\x66\x11\xdd\x0e\xae\x5b\xe1\xb9\x9d\x56\x8b\xa4\x73\xb2\xe8\x1b\xa4\x2d\x69\x5c\x1c\x47\xc2\x80\xad\x62\x59\xf3\x12\xf4\x73\x88\xce\xcf\xd3\x9b\x94\xa9\x08\x8f\x69\x5f\xd2\x5c\x2c\xae\x29\x9a\xf7\x5d\x2a\xee\xab\x2b\xca\xeb\x1c\x54\x3a\x6a\x02\xca\xf4\xb2\xc0\xd0\xfc\xec\xc0\xef\xbf\xe3\x24\xa8\xb9\xad\x46\xd7\x65\xa2\x20\x45\x8b\xdd\x0a\xed\x40\x5a\xea\x2d\x32\xe4\xd6\x93\x81\x99\x06\xa4\x4e\xf5\x05\x88\x1c\x4b\xdb\x5a\x0a\x29\x4e\x52\x84\x03\xbe\x74\x53\xcd\x20\x27\xaa\x64\xd8\x13\xea\xd6\xed\x54\xc3\xfa\x5a\xb0\x59\x67\xa0\x09\x94\xa1\x26\xb4\x24\xc4\x84\xaf\x17\x0b\xa8\x88\x00\x0d\xc9\x64\x55\x5b\xdf\x76\x25\x8e\x11\x2d\xc9\x81\xa7\x6b\xd4\xd0\x03\xdb\x02\xd8\xde\xb4\x55\x88\xdd\x68\x16\x23\xda\xa4\x28\xb6\x06\x8d\x4e\x67\x77\x2b\xea\x38\xd4\xd9\x15\xed\xf8\xe6\x3b\x33\x41\xf3\x0e\x17\xaa\xb3\x92\xe2\x9a\xcd\x68\x27\xed\xfc\x87\x29\xfc\x1f\x1d\x5b\x57\x54\x42\x6b\x51\x58\x5e\xb9\x46\x1c\xaa\x01\xd8\x36\x42\xbc\xd3\x34\xdf\xe2\x9d\x2b\xb8\xa7\x5b\xd2\xa0\x63\x13\x62\x8b\x91\x15\x02\xcc\x57\x8f\xa2\x62\x2c\x2c\x91\x46\x74\xa2\x34\xa6\xac\x17\xea\x4d\xba\xa4\x53\x22\x2c\x62\x00\xed\x6b\x8c\x23\xca\xfc\xbc\x12\x59\xb9\xb2\xbb\x15\xa4\x6a\xLine truncated
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xfd\xfb\x76\x1b\xb7\x92\x38\x0a\xff\xfd\xcd\x53\x90\x18\xbb\x03\x84\x10\x4d\xda\xb9\x36\x0d\x73\x14\x5b\x8e\x9d\xd8\x96\x63\xd9\x4e\xb2\x29\x6e\xed\x56\x13\xa4\xda\x22\x01\x06\x0d\xea\x12\xb2\xbf\xf7\x39\xaf\x71\x9e\xec\x2c\x5c\x1b\x7d\xa1\xec\x3d\x33\xbf\xb3\xd6\x59\x4b\x4b\x6c\x00\x85\xc2\xbd\x50\x55\x28\x14\x66\x74\x9e\x31\x0a\xe1\x7c\xc3\x52\x99\x71\x06\xd1\x16\x6c\x72\xda\xc9\xa5\xc8\x52\x09\x46\x57\x89\xe8\x48\x02\x36\xcc\x00\xce\x40\x97\xc8\xdb\x35\xe5\xf3\xce\x62\xc9\xcf\x93\xe5\xfb\x8b\x2c\x1f\x97\x9f\x71\x1b\xe4\x75\xc6\x66\xfc\x7a\x6c\x7e\x5a\x21\x0c\x02\x8b\xa7\x15\x22\xa7\xcb\xf9\x58\xfd\x8b\xb7\xc5\xc8\x55\xb6\x43\xa1\x44\x5b\x41\xe5\x46\xb0\x8e\x8c\x22\xd9\x3f\x3b\xa3\xf9\x6b\x3e\xdb\x2c\x69\x14\x1d\x9f\x7f\xa2\xa9\xec\xaf\x05\x97\x5c\x61\xe9\x5f\x24\xf9\xf1\x35\x7b\x2b\xf8\x9a\x0a\x79\xdb\x4f\x93\xe5\x12\x4a\x0c\x66\x74\x9e\x6c\x96\x12\xa0\xb1\xec\xdb\xef\x58\x16\xbe\x0c\xa6\xca\xc8\xe6\x30\x44\x8e\x5c\x99\xba\x7f\x28\xb1\x45\x99\x5a\xbb\x02\xe0\xb6\xc0\xa0\xcc\x03\xf0\xf6\x2a\x59\x6e\x68\xdc\x1d\x14\x68\x64\x11\xd8\x8c\x97\xf4\x36\x87\x12\xf5\xe7\x5c\x1c\x25\xe9\x45\x30\x1c\x0c\x6d\x55\x11\xc2\x15\xb1\xa0\x32\x68\xc3\x33\x9a\xa7\x22\x5b\x4b\x2e\xa0\xc4\x0c\x8d\xda\xeb\x41\x31\xc3\x42\xe5\x1c\x8b\x78\x4b\xd9\x66\x45\x45\x72\xbe\x54\x15\xc1\x0b\x2a\xe3\x60\xe8\x5d\xb3\x26\x6c\x5a\x14\xa8\x40\x08\xd3\xb2\x23\x84\xea\x08\xd3\xde\x2d\xbd\x59\x73\x21\xf3\x78\x5b\x14\xae\x29\x12\x52\x4c\xfb\x36\x01\x95\x9f\x85\x08\x9a\xe3\x31\x34\x62\x30\x23\xf5\x01\xc3\x82\xb0\xda\xa0\x61\x4e\x80\xcb\x0a\x88\x9b\x1c\x27\xb7\xab\x73\xbe\x1c\x9b\x9f\x78\x5b\xe0\x8c\xf0\x7e\x26\xa9\x48\x24\x17\xbb\x1d\xf8\xaf\xff\x72\x01\x80\x13\xc2\xfb\x49\x7e\xcb\xd2\x97\x61\x7a\x25\x06\xe0\x9c\xf0\xbe\xe4\x27\x52\x64\x6c\xf1\x3e\x59\x68\x90\x20\x0c\xca\x19\x98\x42\x89\x29\x66\xbe\xeb\xda\x47\x40\xc1\xd8\xd1\x67\xb8\x3a\x02\x29\x67\xf3\x6c\xb1\xf1\xe1\x6b\x91\x49\xfb\x5d\x20\x2c\x27\x74\x5a\x48\x71\xbb\x4d\xf5\x6c\x02\xa8\x48\x13\x99\x5e\xa8\x5e\x4b\x83\x3e\xac\x54\x41\xe5\x21\xac\x28\x07\x6e\x63\x00\xb0\x30\x5d\xcd\x09\x8d\x22\x5a\x76\x73\x27\x63\xb9\x4c\x58\xaa\x7a\xf2\x76\x4c\xe3\x5b\x9c\xb9\xa1\x48\x05\x4d\x24\x85\xbc\x04\x46\x38\x21\x8c\x5e\x77\x9e\x42\xb1\xdb\x4d\xa6\x7e\x22\x67\xfd\xb3\x8c\x5d\xf1\x4b\xda\xa8\x95\x99\xbe\x73\x07\xe8\x93\x39\xce\xf4\xba\x12\x84\x90\x19\x92\x17\x82\x5f\x77\x14\xe6\x23\x21\xb8\x80\xe0\x67\xca\xcc\x68\x74\xb2\xbc\x93\x2c\x05\x4d\x66\xb7\x1d\xb1\x61\x2c\x63\x0b\x80\x46\x36\xe3\x85\x46\x01\x74\x6e\x40\x08\xe1\x16\x51\xe6\x8a\xbb\x84\xa8\x98\x73\x01\x59\x7f\x45\xe5\x05\x9f\x11\x8e\x59\x3f\x11\x0b\x92\x8d\x46\xa6\x6e\x09\x61\xfd\x19\x5d\xd2\x45\x22\xa9\x42\x9b\x98\xe8\x9c\xdc\xc0\x44\xad\xa9\x6c\x0e\x73\x5d\x4a\x4e\x08\x59\xa1\x94\x33\x99\xb1\x0d\x75\x05\xe4\x45\xa1\x6a\xc0\xe8\x8d\x54\x15\x70\xe5\x20\xd6\xcf\x29\x93\x84\xf5\xcf\xec\x6f\x22\x16\x23\xba\xcc\x69\xa7\x52\x61\x0f\xef\xba\x62\x6e\x5b\x20\xc8\x85\xa9\xe9\x88\xf5\x67\x59\xbe\x56\xc3\x7e\x74\x93\xd2\xb5\x21\x0b\x2a\x05\x15\x0a\x1f\x30\x15\x09\x91\x45\x11\xeb\x27\xe7\x62\xb3\x96\xd0\xa5\x1a\x5c\x68\x24\xc8\x4c\xd3\xac\x94\x2c\xed\x00\x8d\x74\xf5\xb9\x58\x25\x4b\x85\x23\xed\xeb\x61\x36\xd5\x61\xfd\x19\x67\x74\x7c\x11\xaf\x71\xaa\x7b\xad\xa5\x07\xec\xbc\xd6\xe9\x58\x81\xc7\x26\x57\x51\x94\xad\x34\x48\xa3\x08\x9a\x56\xd9\xa1\xb0\xe9\x76\x40\x52\xd3\xa4\xa2\x50\xa4\x0c\x27\x08\x67\xe5\x0c\x76\x75\xdd\xaa\xa5\x60\x8b\x55\x18\x63\x57\x71\x9c\x88\x45\x2c\x0d\x49\x57\x80\x45\xb9\x4e\x2a\xe0\xb6\x44\x0d\x5d\x14\x85\xec\x5f\x8b\x64\x4d\x36\xba\x4b\xe6\x04\xe4\x9b\x7c\x4d\xd9\x8c\xce\x4e\x64\x22\x24\xc0\xeb\x20\xea\xcf\x8c\x2e\x67\x00\xcf\x08\xa0\x37\x34\xdd\x48\x35\x0f\xf1\x05\x01\x29\x5f\xad\x97\x54\xd2\x19\xc0\x2b\x12\x6e\x4e\xb7\x10\x6d\xcb\x26\x2c\x2a\xa1\x2b\x15\x52\x85\x9e\xab\x2c\xe7\x93\x6c\x4a\x5a\xc8\xf0\x45\x96\x17\xba\x6a\x87\x01\xf9\x7f\xeb\x96\xe2\xf1\x1c\x5f\x93\xc3\x28\x3a\x84\x87\xf0\x13\x9c\x4c\x11\x42\xa3\xeb\x28\xba\xee\x12\xc2\xa2\x48\x98\xce\xb8\xc6\x19\x8a\x22\x78\x4e\xae\x91\xc6\x74\x44\xae\xca\xc5\x4c\x6e\x83\xef\xea\x92\x3f\x47\x65\x43\x8e\x55\x37\x4e\xcc\x14\xc7\xae\x0b\xdd\xc4\x9a\xb6\x6c\x5a\x14\x6d\x0d\x5d\xac\x10\xfe\xa0\x55\x8e\x58\x40\x8a\xa5\xda\x66\xd4\x9f\x2f\xee\x44\x65\x45\xdb\x60\x03\xe6\x38\xc3\x09\xce\xcd\xc2\xd4\x33\x77\xc2\xa7\x58\xe2\xcc\x4c\x5e\x53\xa3\x6e\x39\x77\x15\xd8\xc6\x4c\x28\x3c\x27\x9b\xbe\x9e\xa1\x9e\x00\x45\x11\xe0\xba\xad\xe5\x06\x32\xf7\xfd\x35\x57\x5b\x76\x72\x9d\x64\x8a\x1f\xa0\x7d\x41\x73\xbe\xbc\xa2\x70\xde\xb7\xb1\xa8\x2f\x2f\x28\xab\xee\x68\xcc\x2e\x7f\x2c\x75\x2d\x0b\x84\xeb\xc9\xb6\xcf\x5c\x3a\x8a\x03\xcc\x6d\x18\x6d\x95\x89\xc4\x09\xdc\x34\x10\xda\x86\xb4\xe0\x2d\x72\x68\x97\x91\x26\xf4\xa3\xb0\xaf\x43\xc2\x2c\x82\xee\xcd\xca\x09\xa7\xc8\x6f\xc8\x0b\x52\xcc\x55\xf5\x25\x16\x58\x7d\xaa\x02\x2c\x24\x27\x7c\xcc\x4d\xc5\x33\x9c\xa1\x38\x83\x28\xd8\x70\x6e\x34\x37\x62\x29\xbf\xf4\x3b\xf1\xc4\xad\xfc\xa9\x23\xdf\x86\xce\x94\xf4\x97\xb0\xcd\x72\x89\xf7\x50\xc7\x12\x51\xdf\xd4\x22\x8a\x4a\xb2\x5e\xa5\x73\x84\x62\x53\xLine truncated
func init() {
err := CTX.Err()
+1 -1
View File
@@ -3,8 +3,8 @@ package command
import (
"fmt"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/client/grpc"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
+4 -3
View File
@@ -2,14 +2,15 @@ package command
import (
"fmt"
"os"
"strconv"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/client/grpc"
tw "github.com/olekukonko/tablewriter"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"os"
"strconv"
)
// InspectAccount command shows detailed information about a specific account.
+4 -3
View File
@@ -2,14 +2,15 @@ package command
import (
"fmt"
"os"
"strconv"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/client/grpc"
tw "github.com/olekukonko/tablewriter"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"os"
"strconv"
)
// ListAccounts command lists all accounts
+2 -2
View File
@@ -4,9 +4,9 @@ import (
"context"
"fmt"
"github.com/asim/go-micro/plugins/client/grpc/v3"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/client/grpc"
merrors "github.com/micro/go-micro/v2/errors"
"github.com/owncloud/ocis/accounts/pkg/config"
index "github.com/owncloud/ocis/accounts/pkg/proto/v0"
)
+3 -2
View File
@@ -2,12 +2,13 @@ package command
import (
"fmt"
"os"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/client/grpc"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"os"
)
// RemoveAccount command deletes an existing account.
+34 -4
View File
@@ -1,16 +1,19 @@
package command
import (
"context"
"os"
"strings"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/owncloud/ocis/accounts/pkg/version"
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
"github.com/owncloud/ocis/ocis-pkg/log"
"github.com/owncloud/ocis/ocis-pkg/sync"
"github.com/spf13/viper"
"github.com/thejerf/suture/v4"
)
var (
@@ -19,8 +22,7 @@ var (
)
// Execute is the entry point for the ocis-accounts command.
func Execute() error {
cfg := config.New()
func Execute(cfg *config.Config) error {
app := &cli.App{
Name: "ocis-accounts",
Version: version.String,
@@ -73,11 +75,14 @@ func NewLogger(cfg *config.Config) log.Logger {
log.Level(cfg.Log.Level),
log.Pretty(cfg.Log.Pretty),
log.Color(cfg.Log.Color),
log.File(cfg.Log.File),
)
}
// ParseConfig loads accounts configuration from Viper known paths.
func ParseConfig(c *cli.Context, cfg *config.Config) error {
sync.ParsingViperConfig.Lock()
defer sync.ParsingViperConfig.Unlock()
logger := NewLogger(cfg)
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
@@ -118,3 +123,28 @@ func ParseConfig(c *cli.Context, cfg *config.Config) error {
return nil
}
// SutureService allows for the accounts command to be embedded and supervised by a suture supervisor tree.
type SutureService struct {
cfg *config.Config
}
// NewSutureService creates a new accounts.SutureService
func NewSutureService(cfg *ociscfg.Config) suture.Service {
if cfg.Mode == 0 {
cfg.Accounts.Supervised = true
}
cfg.Accounts.Log.File = cfg.Log.File
return SutureService{
cfg: cfg.Accounts,
}
}
func (s SutureService) Serve(ctx context.Context) error {
s.cfg.Context = ctx
if err := Execute(s.cfg); err != nil {
return err
}
return nil
}
+54 -141
View File
@@ -2,26 +2,19 @@ package command
import (
"context"
"os"
"os/signal"
"strings"
"time"
"contrib.go.opencensus.io/exporter/jaeger"
"contrib.go.opencensus.io/exporter/ocagent"
"contrib.go.opencensus.io/exporter/zipkin"
"github.com/owncloud/ocis/ocis-pkg/sync"
"github.com/micro/cli/v2"
"github.com/oklog/run"
openzipkin "github.com/openzipkin/zipkin-go"
zipkinhttp "github.com/openzipkin/zipkin-go/reporter/http"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/owncloud/ocis/accounts/pkg/metrics"
"github.com/owncloud/ocis/accounts/pkg/server/grpc"
"github.com/owncloud/ocis/accounts/pkg/server/http"
svc "github.com/owncloud/ocis/accounts/pkg/service/v0"
"go.opencensus.io/stats/view"
"go.opencensus.io/trace"
"github.com/owncloud/ocis/accounts/pkg/tracing"
)
// Server is the entry point for the server command.
@@ -32,92 +25,28 @@ func Server(cfg *config.Config) *cli.Command {
Description: "uses an LDAP server as the storage backend",
Flags: flagset.ServerWithConfig(cfg),
Before: func(ctx *cli.Context) error {
logger := NewLogger(cfg)
if cfg.HTTP.Root != "/" {
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
}
// When running on single binary mode the before hook from the root command won't get called. We manually
// call this before hook from ocis command, so the configuration can be loaded.
return ParseConfig(ctx, cfg)
if !cfg.Supervised {
return ParseConfig(ctx, cfg)
}
logger.Debug().Str("service", "accounts").Msg("ignoring config file parsing when running supervised")
return nil
},
Action: func(c *cli.Context) error {
logger := NewLogger(cfg)
if cfg.Tracing.Enabled {
switch t := cfg.Tracing.Type; t {
case "agent":
exporter, err := ocagent.NewExporter(
ocagent.WithReconnectionPeriod(5*time.Second),
ocagent.WithAddress(cfg.Tracing.Endpoint),
ocagent.WithServiceName(cfg.Tracing.Service),
)
if err != nil {
logger.Error().
Err(err).
Str("endpoint", cfg.Tracing.Endpoint).
Str("collector", cfg.Tracing.Collector).
Msg("Failed to create agent tracing")
return err
}
trace.RegisterExporter(exporter)
view.RegisterExporter(exporter)
case "jaeger":
exporter, err := jaeger.NewExporter(
jaeger.Options{
AgentEndpoint: cfg.Tracing.Endpoint,
CollectorEndpoint: cfg.Tracing.Collector,
Process: jaeger.Process{
ServiceName: cfg.Tracing.Service,
},
},
)
if err != nil {
logger.Error().
Err(err).
Str("endpoint", cfg.Tracing.Endpoint).
Str("collector", cfg.Tracing.Collector).
Msg("Failed to create jaeger tracing")
return err
}
trace.RegisterExporter(exporter)
case "zipkin":
endpoint, err := openzipkin.NewEndpoint(
cfg.Tracing.Service,
cfg.Tracing.Endpoint,
)
if err != nil {
logger.Error().
Err(err).
Str("endpoint", cfg.Tracing.Endpoint).
Str("collector", cfg.Tracing.Collector).
Msg("Failed to create zipkin tracing")
return err
}
exporter := zipkin.NewExporter(
zipkinhttp.NewReporter(
cfg.Tracing.Collector,
),
endpoint,
)
trace.RegisterExporter(exporter)
default:
logger.Warn().
Str("type", t).
Msg("Unknown tracing backend")
}
trace.ApplyConfig(
trace.Config{
DefaultSampler: trace.AlwaysSample(),
},
)
} else {
logger.Debug().
Msg("Tracing is not enabled")
err := tracing.Configure(cfg, logger)
if err != nil {
return err
}
var (
gr = run.Group{}
ctx, cancel = context.WithCancel(context.Background())
mtrcs = metrics.New()
)
gr := run.Group{}
ctx, cancel := defineContext(cfg)
mtrcs := metrics.New()
defer cancel()
@@ -125,70 +54,54 @@ func Server(cfg *config.Config) *cli.Command {
handler, err := svc.New(svc.Logger(logger), svc.Config(cfg))
if err != nil {
logger.Fatal().Err(err).Msg("could not initialize service handler")
logger.Error().Err(err).Msg("handler init")
return err
}
{
server := http.Server(
http.Logger(logger),
http.Name(cfg.Server.Name),
http.Context(ctx),
http.Config(cfg),
http.Metrics(mtrcs),
http.Flags(flagset.RootWithConfig(config.New())),
http.Flags(flagset.ServerWithConfig(config.New())),
http.Handler(handler),
)
httpServer := http.Server(
http.Config(cfg),
http.Logger(logger),
http.Name(cfg.Server.Name),
http.Context(ctx),
http.Metrics(mtrcs),
http.Handler(handler),
)
gr.Add(server.Run, func(_ error) {
logger.Info().
Str("server", "http").
Msg("Shutting down server")
gr.Add(httpServer.Run, func(_ error) {
logger.Info().Str("server", "http").Msg("shutting down server")
cancel()
})
cancel()
})
}
grpcServer := grpc.Server(
grpc.Config(cfg),
grpc.Logger(logger),
grpc.Name(cfg.Server.Name),
grpc.Context(ctx),
grpc.Metrics(mtrcs),
grpc.Handler(handler),
)
{
server := grpc.Server(
grpc.Logger(logger),
grpc.Name(cfg.Server.Name),
grpc.Context(ctx),
grpc.Config(cfg),
grpc.Metrics(mtrcs),
grpc.Handler(handler),
)
gr.Add(grpcServer.Run, func(_ error) {
logger.Info().Str("server", "grpc").Msg("shutting down server")
cancel()
})
gr.Add(func() error {
logger.Info().Str("service", server.Name()).Msg("Reporting settings bundles to settings service")
svc.RegisterSettingsBundles(&logger)
svc.RegisterPermissions(&logger)
return server.Run()
}, func(_ error) {
logger.Info().
Str("server", "grpc").
Msg("Shutting down server")
cancel()
})
}
{
stop := make(chan os.Signal, 1)
gr.Add(func() error {
signal.Notify(stop, os.Interrupt)
<-stop
return nil
}, func(err error) {
close(stop)
cancel()
})
if !cfg.Supervised {
sync.Trap(&gr, cancel)
}
return gr.Run()
},
}
}
// defineContext sets the context for the extension. If there is a context configured it will create a new child from it,
// if not, it will create a root context that can be cancelled.
func defineContext(cfg *config.Config) (context.Context, context.CancelFunc) {
return func() (context.Context, context.CancelFunc) {
if cfg.Context == nil {
return context.WithCancel(context.Background())
}
return context.WithCancel(cfg.Context)
}()
}
+2 -1
View File
@@ -3,8 +3,9 @@ package command
import (
"errors"
"fmt"
"github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/client/grpc"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/flagset"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
+1 -1
View File
@@ -19,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 := *registry.GetRegistry()
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))
+6
View File
@@ -1,6 +1,8 @@
// Package config should be moved to internal
package config
import "context"
// LDAP defines the available ldap configuration.
type LDAP struct {
Hostname string
@@ -60,6 +62,7 @@ type Log struct {
Level string
Pretty bool
Color bool
File string
}
// Repo defines which storage implementation is to be used.
@@ -121,6 +124,9 @@ type Config struct {
Index Index
ServiceUser ServiceUser
Tracing Tracing
Context context.Context
Supervised bool
}
// New returns a new config.
+47 -43
View File
@@ -4,6 +4,7 @@ import (
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/config"
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/ocis-pkg/flags"
)
// RootWithConfig applies cfg to the root flagset
@@ -11,23 +12,20 @@ func RootWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "log-level",
Value: "info",
Usage: "Set logging level",
EnvVars: []string{"ACCOUNTS_LOG_LEVEL"},
EnvVars: []string{"ACCOUNTS_LOG_LEVEL", "OCIS_LOG_LEVEL"},
Destination: &cfg.Log.Level,
},
&cli.BoolFlag{
Value: true,
Name: "log-pretty",
Usage: "Enable pretty logging",
EnvVars: []string{"ACCOUNTS_LOG_PRETTY"},
EnvVars: []string{"ACCOUNTS_LOG_PRETTY", "OCIS_LOG_PRETTY"},
Destination: &cfg.Log.Pretty,
},
&cli.BoolFlag{
Value: true,
Name: "log-color",
Usage: "Enable colored logging",
EnvVars: []string{"ACCOUNTS_LOG_COLOR"},
EnvVars: []string{"ACCOUNTS_LOG_COLOR", "OCIS_LOG_COLOR"},
Destination: &cfg.Log.Color,
},
}
@@ -36,6 +34,12 @@ func RootWithConfig(cfg *config.Config) []cli.Flag {
// ServerWithConfig applies cfg to the root flagset
func ServerWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "log-file",
Usage: "Enable log to file",
EnvVars: []string{"ACCOUNTS_LOG_FILE", "OCIS_LOG_FILE"},
Destination: &cfg.Log.File,
},
&cli.BoolFlag{
Name: "tracing-enabled",
Usage: "Enable sending traces",
@@ -44,189 +48,189 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.StringFlag{
Name: "tracing-type",
Value: "jaeger",
Value: flags.OverrideDefaultString(cfg.Tracing.Type, "jaeger"),
Usage: "Tracing backend type",
EnvVars: []string{"ACCOUNTS_TRACING_TYPE"},
Destination: &cfg.Tracing.Type,
},
&cli.StringFlag{
Name: "tracing-endpoint",
Value: "",
Value: flags.OverrideDefaultString(cfg.Tracing.Endpoint, ""),
Usage: "Endpoint for the agent",
EnvVars: []string{"ACCOUNTS_TRACING_ENDPOINT"},
Destination: &cfg.Tracing.Endpoint,
},
&cli.StringFlag{
Name: "tracing-collector",
Value: "",
Value: flags.OverrideDefaultString(cfg.Tracing.Collector, ""),
Usage: "Endpoint for the collector",
EnvVars: []string{"ACCOUNTS_TRACING_COLLECTOR"},
Destination: &cfg.Tracing.Collector,
},
&cli.StringFlag{
Name: "tracing-service",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Tracing.Service, "accounts"),
Usage: "Service name for tracing",
EnvVars: []string{"ACCOUNTS_TRACING_SERVICE"},
Destination: &cfg.Tracing.Service,
},
&cli.StringFlag{
Name: "http-namespace",
Value: "com.owncloud.web",
Value: flags.OverrideDefaultString(cfg.HTTP.Namespace, "com.owncloud.web"),
Usage: "Set the base namespace for the http namespace",
EnvVars: []string{"ACCOUNTS_HTTP_NAMESPACE"},
Destination: &cfg.HTTP.Namespace,
},
&cli.StringFlag{
Name: "http-addr",
Value: "0.0.0.0:9181",
Value: flags.OverrideDefaultString(cfg.HTTP.Addr, "0.0.0.0:9181"),
Usage: "Address to bind http server",
EnvVars: []string{"ACCOUNTS_HTTP_ADDR"},
Destination: &cfg.HTTP.Addr,
},
&cli.StringFlag{
Name: "http-root",
Value: "/",
Value: flags.OverrideDefaultString(cfg.HTTP.Root, "/"),
Usage: "Root path of http server",
EnvVars: []string{"ACCOUNTS_HTTP_ROOT"},
Destination: &cfg.HTTP.Root,
},
&cli.IntFlag{
Name: "http-cache-ttl",
Value: 604800, // 7 days
Value: flags.OverrideDefaultInt(cfg.HTTP.CacheTTL, 604800),
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",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "grpc-addr",
Value: "0.0.0.0:9180",
Value: flags.OverrideDefaultString(cfg.GRPC.Addr, "0.0.0.0:9180"),
Usage: "Address to bind grpc server",
EnvVars: []string{"ACCOUNTS_GRPC_ADDR"},
Destination: &cfg.GRPC.Addr,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
},
&cli.IntFlag{
Name: "accounts-hash-difficulty",
Value: 11,
Value: flags.OverrideDefaultInt(cfg.Server.HashDifficulty, 11),
Usage: "accounts password hash difficulty",
EnvVars: []string{"ACCOUNTS_HASH_DIFFICULTY"},
Destination: &cfg.Server.HashDifficulty,
},
&cli.StringFlag{
Name: "asset-path",
Value: "",
Value: flags.OverrideDefaultString(cfg.Asset.Path, ""),
Usage: "Path to custom assets",
EnvVars: []string{"ACCOUNTS_ASSET_PATH"},
Destination: &cfg.Asset.Path,
},
&cli.StringFlag{
Name: "jwt-secret",
Value: "Pive-Fumkiu4",
Value: flags.OverrideDefaultString(cfg.TokenManager.JWTSecret, "Pive-Fumkiu4"),
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
EnvVars: []string{"ACCOUNTS_JWT_SECRET", "OCIS_JWT_SECRET"},
Destination: &cfg.TokenManager.JWTSecret,
},
&cli.StringFlag{
Name: "storage-disk-path",
Value: "",
Value: flags.OverrideDefaultString(cfg.Repo.Disk.Path, ""),
Usage: "Path on the local disk, e.g. /var/tmp/ocis/accounts",
EnvVars: []string{"ACCOUNTS_STORAGE_DISK_PATH"},
Destination: &cfg.Repo.Disk.Path,
},
&cli.StringFlag{
Name: "storage-cs3-provider-addr",
Value: "localhost:9215",
Value: flags.OverrideDefaultString(cfg.Repo.CS3.ProviderAddr, "localhost:9215"),
Usage: "bind address for the metadata storage provider",
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_PROVIDER_ADDR"},
Destination: &cfg.Repo.CS3.ProviderAddr,
},
&cli.StringFlag{
Name: "storage-cs3-data-url",
Value: "http://localhost:9216",
Value: flags.OverrideDefaultString(cfg.Repo.CS3.DataURL, "http://localhost:9216"),
Usage: "http endpoint of the metadata storage",
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_DATA_URL"},
Destination: &cfg.Repo.CS3.DataURL,
},
&cli.StringFlag{
Name: "storage-cs3-data-prefix",
Value: "data",
Value: flags.OverrideDefaultString(cfg.Repo.CS3.DataPrefix, "data"),
Usage: "path prefix for the http endpoint of the metadata storage, without leading slash",
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_DATA_PREFIX"},
Destination: &cfg.Repo.CS3.DataPrefix,
},
&cli.StringFlag{
Name: "storage-cs3-jwt-secret",
Value: "Pive-Fumkiu4",
Value: flags.OverrideDefaultString(cfg.Repo.CS3.JWTSecret, "Pive-Fumkiu4"),
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_JWT_SECRET", "OCIS_JWT_SECRET"},
Destination: &cfg.Repo.CS3.JWTSecret,
},
&cli.StringFlag{
Name: "service-user-uuid",
Value: "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad",
Value: flags.OverrideDefaultString(cfg.ServiceUser.UUID, "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad"),
Usage: "uuid of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_UUID"},
Destination: &cfg.ServiceUser.UUID,
},
&cli.StringFlag{
Name: "service-user-username",
Value: "",
Value: flags.OverrideDefaultString(cfg.ServiceUser.Username, ""),
Usage: "username of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_USERNAME"},
Destination: &cfg.ServiceUser.Username,
},
&cli.Int64Flag{
Name: "service-user-uid",
Value: 0,
Value: flags.OverrideDefaultInt64(cfg.ServiceUser.UID, 0),
Usage: "uid of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_UID"},
Destination: &cfg.ServiceUser.UID,
},
&cli.Int64Flag{
Name: "service-user-gid",
Value: 0,
Value: flags.OverrideDefaultInt64(cfg.ServiceUser.GID, 0),
Usage: "gid of the internal service user (required on EOS)",
EnvVars: []string{"ACCOUNTS_SERVICE_USER_GID"},
Destination: &cfg.ServiceUser.GID,
},
&cli.Int64Flag{
Name: "uid-index-lower-bound",
Value: 0,
Value: flags.OverrideDefaultInt64(cfg.Index.UID.Lower, 0),
Usage: "define a starting point for the account UID",
EnvVars: []string{"ACCOUNTS_UID_INDEX_LOWER_BOUND"},
Destination: &cfg.Index.UID.Lower,
},
&cli.Int64Flag{
Name: "gid-index-lower-bound",
Value: 1000,
Value: flags.OverrideDefaultInt64(cfg.Index.GID.Lower, 1000),
Usage: "define a starting point for the account GID",
EnvVars: []string{"ACCOUNTS_GID_INDEX_LOWER_BOUND"},
Destination: &cfg.Index.GID.Lower,
},
&cli.Int64Flag{
Name: "uid-index-upper-bound",
Value: 0,
Value: flags.OverrideDefaultInt64(cfg.Index.UID.Upper, 0),
Usage: "define an ending point for the account UID",
EnvVars: []string{"ACCOUNTS_UID_INDEX_UPPER_BOUND"},
Destination: &cfg.Index.UID.Upper,
},
&cli.Int64Flag{
Name: "gid-index-upper-bound",
Value: 1000,
Value: flags.OverrideDefaultInt64(cfg.Index.GID.Upper, 1000),
Usage: "define an ending point for the account GID",
EnvVars: []string{"ACCOUNTS_GID_INDEX_UPPER_BOUND"},
Destination: &cfg.Index.GID.Upper,
@@ -243,14 +247,14 @@ func UpdateAccountWithConfig(cfg *config.Config, a *accounts.Account) []cli.Flag
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
@@ -327,14 +331,14 @@ func AddAccountWithConfig(cfg *config.Config, a *accounts.Account) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
@@ -411,14 +415,14 @@ func ListAccountsWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
@@ -431,14 +435,14 @@ func RemoveAccountWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
@@ -451,14 +455,14 @@ func InspectAccountWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "grpc-namespace",
Value: "com.owncloud.api",
Value: flags.OverrideDefaultString(cfg.GRPC.Namespace, "com.owncloud.api"),
Usage: "Set the base namespace for the grpc namespace",
EnvVars: []string{"ACCOUNTS_GRPC_NAMESPACE"},
Destination: &cfg.GRPC.Namespace,
},
&cli.StringFlag{
Name: "name",
Value: "accounts",
Value: flags.OverrideDefaultString(cfg.Server.Name, "accounts"),
Usage: "service name",
EnvVars: []string{"ACCOUNTS_NAME"},
Destination: &cfg.Server.Name,
+1 -1
View File
@@ -3,8 +3,8 @@ package proto
import (
context "context"
client "github.com/asim/go-micro/v3/client"
empty "github.com/golang/protobuf/ptypes/empty"
client "github.com/micro/go-micro/v2/client"
)
// MockAccountsService can be used to write tests
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -16,9 +16,9 @@ import (
import (
context "context"
api "github.com/micro/go-micro/v2/api"
client "github.com/micro/go-micro/v2/client"
server "github.com/micro/go-micro/v2/server"
api "github.com/asim/go-micro/v3/api"
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
)
// Reference imports to suppress errors if they are not otherwise used.
+86 -58
View File
@@ -10,9 +10,11 @@ import (
"path/filepath"
"testing"
mgrpcc "github.com/asim/go-micro/plugins/client/grpc/v3"
"github.com/asim/go-micro/v3/client"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/golang/protobuf/ptypes/empty"
"github.com/micro/go-micro/v2/client"
merrors "github.com/micro/go-micro/v2/errors"
"github.com/owncloud/ocis/accounts/pkg/command"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
@@ -24,7 +26,7 @@ import (
"google.golang.org/protobuf/types/known/timestamppb"
)
var service = grpc.Service{}
var service = grpc.NewService()
var dataPath = createTmpDir()
@@ -302,18 +304,18 @@ func assertGroupsSame(t *testing.T, grp1, grp2 *proto.Group) {
}
}
func assertGroupHasMember(t *testing.T, grp *proto.Group, memberId string) {
func assertGroupHasMember(t *testing.T, grp *proto.Group, memberID string) {
for _, m := range grp.Members {
if m.Id == memberId {
if m.Id == memberID {
return
}
}
t.Fatalf("Member with id %s expected to be in group '%s', but not found", memberId, grp.DisplayName)
t.Fatalf("Member with id %s expected to be in group '%s', but not found", memberID, grp.DisplayName)
}
func createAccount(t *testing.T, user string) (*proto.Account, error) {
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
account := getAccount(user)
@@ -326,7 +328,7 @@ func createAccount(t *testing.T, user string) (*proto.Account, error) {
}
func createGroup(t *testing.T, group *proto.Group) (*proto.Group, error) {
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
request := &proto.CreateGroupRequest{Group: group}
@@ -338,7 +340,7 @@ func createGroup(t *testing.T, group *proto.Group) (*proto.Group, error) {
}
func updateAccount(t *testing.T, account *proto.Account, updateArray []string) (*proto.Account, error) {
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
updateMask := &field_mask.FieldMask{
@@ -352,7 +354,7 @@ func updateAccount(t *testing.T, account *proto.Account, updateArray []string) (
func listAccounts(t *testing.T) (*proto.ListAccountsResponse, error) {
request := &proto.ListAccountsRequest{}
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
response, err := cl.ListAccounts(context.Background(), request)
@@ -361,7 +363,7 @@ func listAccounts(t *testing.T) (*proto.ListAccountsResponse, error) {
func listGroups(t *testing.T) *proto.ListGroupsResponse {
request := &proto.ListGroupsRequest{}
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
response, err := cl.ListGroups(context.Background(), request)
@@ -370,7 +372,7 @@ func listGroups(t *testing.T) *proto.ListGroupsResponse {
}
func deleteAccount(t *testing.T, id string) (*empty.Empty, error) {
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
req := &proto.DeleteAccountRequest{Id: id}
@@ -379,7 +381,7 @@ func deleteAccount(t *testing.T, id string) (*empty.Empty, error) {
}
func deleteGroup(t *testing.T, id string) (*empty.Empty, error) {
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
req := &proto.DeleteGroupRequest{Id: id}
@@ -554,7 +556,8 @@ func TestUpdateAccount(t *testing.T) {
}
func TestUpdateNonUpdatableFieldsInAccount(t *testing.T) {
_, _ = createAccount(t, "user1")
_, err := createAccount(t, "user1")
assert.NoError(t, err)
tests := []struct {
name string
@@ -622,8 +625,10 @@ func TestUpdateNonUpdatableFieldsInAccount(t *testing.T) {
}
func TestListAccounts(t *testing.T) {
createAccount(t, "user1")
createAccount(t, "user2")
_, err := createAccount(t, "user1")
assert.NoError(t, err)
_, err = createAccount(t, "user2")
assert.NoError(t, err)
resp, err := listAccounts(t)
assert.NoError(t, err)
@@ -744,7 +749,8 @@ func TestListAccountsWithFilterQuery(t *testing.T) {
}
func TestGetAccount(t *testing.T) {
createAccount(t, "user1")
_, err := createAccount(t, "user1")
assert.NoError(t, err)
req := &proto.GetAccountRequest{Id: getAccount("user1").Id}
@@ -762,12 +768,14 @@ func TestGetAccount(t *testing.T) {
//TODO: This segfaults! WIP
func TestDeleteAccount(t *testing.T) {
createAccount(t, "user1")
createAccount(t, "user2")
_, err := createAccount(t, "user1")
assert.NoError(t, err)
_, err = createAccount(t, "user2")
assert.NoError(t, err)
req := &proto.DeleteAccountRequest{Id: getAccount("user1").Id}
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
resp, err := cl.DeleteAccount(context.Background(), req)
@@ -785,7 +793,7 @@ func TestDeleteAccount(t *testing.T) {
func TestListGroups(t *testing.T) {
req := &proto.ListGroupsRequest{}
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
resp, err := cl.ListGroups(context.Background(), req)
@@ -812,7 +820,7 @@ func TestListGroups(t *testing.T) {
}
func TestGetGroups(t *testing.T) {
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
groups := []string{
@@ -860,7 +868,7 @@ func TestCreateGroup(t *testing.T) {
}
func TestGetGroupInvalidID(t *testing.T) {
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
req := &proto.GetGroupRequest{Id: "42"}
@@ -876,11 +884,14 @@ func TestDeleteGroup(t *testing.T) {
grp1 := getTestGroups("grp1")
grp2 := getTestGroups("grp2")
grp3 := getTestGroups("grp3")
createGroup(t, grp1)
createGroup(t, grp2)
createGroup(t, grp3)
_, err := createGroup(t, grp1)
assert.NoError(t, err)
_, err = createGroup(t, grp2)
assert.NoError(t, err)
_, err = createGroup(t, grp3)
assert.NoError(t, err)
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
req := &proto.DeleteGroupRequest{Id: grp1.Id}
@@ -909,7 +920,7 @@ func TestDeleteGroupNotExisting(t *testing.T) {
" ",
}
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
for _, id := range invalidIds {
@@ -932,7 +943,7 @@ func TestDeleteGroupInvalidId(t *testing.T) {
"": ".",
}
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
for id := range invalidIds {
@@ -947,9 +958,10 @@ func TestDeleteGroupInvalidId(t *testing.T) {
func TestUpdateGroup(t *testing.T) {
grp1 := getTestGroups("grp1")
createGroup(t, grp1)
_, err := createGroup(t, grp1)
assert.NoError(t, err)
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
updateGrp := &proto.Group{
@@ -975,10 +987,12 @@ func TestAddMember(t *testing.T) {
updatedGroup := grp1
updatedGroup.Members = append(updatedGroup.Members, &proto.Account{Id: account.Id})
createGroup(t, grp1)
createAccount(t, account.PreferredName)
_, err := createGroup(t, grp1)
assert.NoError(t, err)
_, err = createAccount(t, account.PreferredName)
assert.NoError(t, err)
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
req := &proto.AddMemberRequest{GroupId: grp1.Id, AccountId: account.Id}
@@ -1005,12 +1019,15 @@ func TestAddMemberAlreadyInGroup(t *testing.T) {
updatedGroup := grp1
updatedGroup.Members = append(updatedGroup.Members, &proto.Account{Id: account.Id})
createGroup(t, grp1)
createAccount(t, account.PreferredName)
_, err := createGroup(t, grp1)
assert.NoError(t, err)
_, err = createAccount(t, account.PreferredName)
assert.NoError(t, err)
addMemberToGroup(t, grp1.Id, account.Id)
_, err = addMemberToGroup(t, grp1.Id, account.Id)
assert.NoError(t, err)
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
req := &proto.AddMemberRequest{GroupId: grp1.Id, AccountId: account.Id}
@@ -1033,9 +1050,10 @@ func TestAddMemberAlreadyInGroup(t *testing.T) {
func TestAddMemberNonExisting(t *testing.T) {
grp1 := getTestGroups("grp1")
createGroup(t, grp1)
_, err := createGroup(t, grp1)
assert.NoError(t, err)
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
invalidIds := []string{
@@ -1062,11 +1080,11 @@ func TestAddMemberNonExisting(t *testing.T) {
cleanUp(t)
}
func addMemberToGroup(t *testing.T, groupId, memberId string) (*proto.Group, error) {
client := service.Client()
func addMemberToGroup(t *testing.T, groupID, memberID string) (*proto.Group, error) {
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
req := &proto.AddMemberRequest{GroupId: groupId, AccountId: memberId}
req := &proto.AddMemberRequest{GroupId: groupID, AccountId: memberID}
res, err := cl.AddMember(context.Background(), req)
@@ -1078,12 +1096,15 @@ func TestRemoveMember(t *testing.T) {
grp1 := getTestGroups("grp1")
account := getAccount("user1")
createGroup(t, grp1)
createAccount(t, account.PreferredName)
_, err := createGroup(t, grp1)
assert.NoError(t, err)
_, err = createAccount(t, account.PreferredName)
assert.NoError(t, err)
addMemberToGroup(t, grp1.Id, account.Id)
_, err = addMemberToGroup(t, grp1.Id, account.Id)
assert.NoError(t, err)
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
req := &proto.RemoveMemberRequest{GroupId: grp1.Id, AccountId: account.Id}
@@ -1104,9 +1125,10 @@ func TestRemoveMember(t *testing.T) {
func TestRemoveMemberNonExistingUser(t *testing.T) {
grp1 := getTestGroups("grp1")
createGroup(t, grp1)
_, err := createGroup(t, grp1)
assert.NoError(t, err)
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
invalidIds := []string{
@@ -1137,10 +1159,12 @@ func TestRemoveMemberNotInGroup(t *testing.T) {
grp1 := getTestGroups("grp1")
account := getAccount("user1")
createGroup(t, grp1)
createAccount(t, account.PreferredName)
_, err := createGroup(t, grp1)
assert.NoError(t, err)
_, err = createAccount(t, account.PreferredName)
assert.NoError(t, err)
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
req := &proto.RemoveMemberRequest{GroupId: grp1.Id, AccountId: account.Id}
@@ -1177,7 +1201,7 @@ func TestListMembers(t *testing.T) {
"physics-lovers",
}
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
for _, group := range groups {
@@ -1209,7 +1233,7 @@ func TestListMembers(t *testing.T) {
func TestListMembersEmptyGroup(t *testing.T) {
group := &proto.Group{Id: "5d58e5ec-842e-498b-8800-61f2ec6f911c", GidNumber: 60000, OnPremisesSamAccountName: "quantum-group", DisplayName: "Quantum Group", Members: []*proto.Account{}}
client := service.Client()
client := mgrpcc.NewClient()
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
request := &proto.CreateGroupRequest{Group: group}
@@ -1229,9 +1253,11 @@ func TestListMembersEmptyGroup(t *testing.T) {
}
func TestAccountUpdateMask(t *testing.T) {
createAccount(t, "user1")
_, err := createAccount(t, "user1")
assert.NoError(t, err)
user1 := getAccount("user1")
client := service.Client()
client := mgrpcc.NewClient()
req := &proto.UpdateAccountRequest{
// We only want to update the display-name, rest should be ignored
UpdateMask: &field_mask.FieldMask{Paths: []string{"DisplayName"}},
@@ -1252,9 +1278,11 @@ func TestAccountUpdateMask(t *testing.T) {
}
func TestAccountUpdateReadOnlyField(t *testing.T) {
createAccount(t, "user1")
_, err := createAccount(t, "user1")
assert.NoError(t, err)
user1 := getAccount("user1")
client := service.Client()
client := mgrpcc.NewClient()
req := &proto.UpdateAccountRequest{
// We only want to update the display-name, rest should be ignored
UpdateMask: &field_mask.FieldMask{Paths: []string{"CreatedDateTime"}},
+23 -23
View File
@@ -1,8 +1,8 @@
syntax = "proto3";
option go_package = "pkg/proto/v0;proto";
package com.owncloud.ocis.accounts.v0;
package accounts;
option go_package = "github.com/owncloud/ocis/accounts/pkg/proto/v0;proto";
import "google/api/field_behavior.proto";
import "google/api/annotations.proto";
@@ -13,27 +13,27 @@ import "google/protobuf/timestamp.proto";
import "protoc-gen-openapiv2/options/annotations.proto";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "ownCloud Infinite Scale accounts";
version: "1.0.0";
contact: {
name: "ownCloud GmbH";
url: "https://github.com/owncloud/ocis";
email: "support@owncloud.com";
};
license: {
name: "Apache-2.0";
url: "https://github.com/owncloud/ocis/blob/master/LICENSE";
};
};
schemes: HTTP;
schemes: HTTPS;
consumes: "application/json";
produces: "application/json";
external_docs: {
description: "Developer Manual";
url: "https://owncloud.github.io/extensions/accounts/";
};
info: {
title: "ownCloud Infinite Scale accounts";
version: "1.0.0";
contact: {
name: "ownCloud GmbH";
url: "https://github.com/owncloud/ocis";
email: "support@owncloud.com";
};
license: {
name: "Apache-2.0";
url: "https://github.com/owncloud/ocis/blob/master/LICENSE";
};
};
schemes: HTTP;
schemes: HTTPS;
consumes: "application/json";
produces: "application/json";
external_docs: {
description: "Developer Manual";
url: "https://owncloud.dev/extensions/accounts/";
};
};
// Follow recommended Methods for rpc APIs https://cloud.google.com/apis/design/resources?hl=de#methods
+105 -94
View File
@@ -13,6 +13,17 @@
"url": "https://github.com/owncloud/ocis/blob/master/LICENSE"
}
},
"tags": [
{
"name": "AccountsService"
},
{
"name": "GroupsService"
},
{
"name": "IndexService"
}
],
"schemes": [
"http",
"https"
@@ -32,7 +43,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
}
},
"default": {
@@ -48,7 +59,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsCreateAccountRequest"
"$ref": "#/definitions/v0CreateAccountRequest"
}
}
],
@@ -81,7 +92,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsDeleteAccountRequest"
"$ref": "#/definitions/v0DeleteAccountRequest"
}
}
],
@@ -98,7 +109,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
}
},
"default": {
@@ -114,7 +125,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsGetAccountRequest"
"$ref": "#/definitions/v0GetAccountRequest"
}
}
],
@@ -131,7 +142,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsListAccountsResponse"
"$ref": "#/definitions/v0ListAccountsResponse"
}
},
"default": {
@@ -147,7 +158,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsListAccountsRequest"
"$ref": "#/definitions/v0ListAccountsRequest"
}
}
],
@@ -164,7 +175,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
}
},
"default": {
@@ -180,7 +191,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsUpdateAccountRequest"
"$ref": "#/definitions/v0UpdateAccountRequest"
}
}
],
@@ -197,7 +208,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -213,7 +224,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsCreateGroupRequest"
"$ref": "#/definitions/v0CreateGroupRequest"
}
}
],
@@ -246,7 +257,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsDeleteGroupRequest"
"$ref": "#/definitions/v0DeleteGroupRequest"
}
}
],
@@ -263,7 +274,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -279,7 +290,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsGetGroupRequest"
"$ref": "#/definitions/v0GetGroupRequest"
}
}
],
@@ -296,7 +307,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsListGroupsResponse"
"$ref": "#/definitions/v0ListGroupsResponse"
}
},
"default": {
@@ -312,7 +323,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsListGroupsRequest"
"$ref": "#/definitions/v0ListGroupsRequest"
}
}
],
@@ -329,7 +340,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -345,7 +356,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsUpdateGroupRequest"
"$ref": "#/definitions/v0UpdateGroupRequest"
}
}
],
@@ -362,7 +373,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -385,7 +396,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsAddMemberRequest"
"$ref": "#/definitions/v0AddMemberRequest"
}
}
],
@@ -402,7 +413,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
}
},
"default": {
@@ -432,7 +443,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsRemoveMemberRequest"
"$ref": "#/definitions/v0RemoveMemberRequest"
}
}
],
@@ -449,7 +460,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsListMembersResponse"
"$ref": "#/definitions/v0ListMembersResponse"
}
},
"default": {
@@ -472,7 +483,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsListMembersRequest"
"$ref": "#/definitions/v0ListMembersRequest"
}
}
],
@@ -488,7 +499,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/accountsRebuildIndexResponse"
"$ref": "#/definitions/v0RebuildIndexResponse"
}
},
"default": {
@@ -504,7 +515,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/accountsRebuildIndexRequest"
"$ref": "#/definitions/v0RebuildIndexRequest"
}
}
],
@@ -515,7 +526,37 @@
}
},
"definitions": {
"accountsAccount": {
"protobufAny": {
"type": "object",
"properties": {
"typeUrl": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v0Account": {
"type": "object",
"properties": {
"id": {
@@ -537,7 +578,7 @@
"identities": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsIdentities"
"$ref": "#/definitions/v0Identities"
},
"description": "Represents the identities that can be used to sign in to this account.\nAn identity can be provided by oCIS (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and is tied to an account.\nMay contain multiple items with the same signInType value. Supports $filter."
},
@@ -568,13 +609,13 @@
"title": "A description, useful for resource accounts\nposixaccount MAY description"
},
"passwordProfile": {
"$ref": "#/definitions/accountsPasswordProfile",
"$ref": "#/definitions/v0PasswordProfile",
"title": "Specifies the password profile for the user.\nThe profile contains the user’s password. This property is required when a user is created.\nThe password in the profile must satisfy minimum requirements as specified by the passwordPolicies property.\nBy default, a strong password is required.\nposixaccount MAY authPassword"
},
"memberOf": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
},
"title": "The groups, directory roles and administrative units that the user is a member of. Read-only. Nullable.\nshould we only respond with repeated strings of ids? no clients should a proper filter mask!"
},
@@ -624,7 +665,7 @@
"onPremisesProvisioningErrors": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsOnPremisesProvisioningError"
"$ref": "#/definitions/v0OnPremisesProvisioningError"
},
"description": "Errors when using synchronization during provisioning."
},
@@ -650,7 +691,7 @@
},
"title": "Account follows the properties of the ms graph api user resuorce.\nSee https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties"
},
"accountsAddMemberRequest": {
"v0AddMemberRequest": {
"type": "object",
"properties": {
"groupId": {
@@ -663,25 +704,25 @@
}
}
},
"accountsCreateAccountRequest": {
"v0CreateAccountRequest": {
"type": "object",
"properties": {
"account": {
"$ref": "#/definitions/accountsAccount",
"$ref": "#/definitions/v0Account",
"title": "The account resource to create"
}
}
},
"accountsCreateGroupRequest": {
"v0CreateGroupRequest": {
"type": "object",
"properties": {
"group": {
"$ref": "#/definitions/accountsGroup",
"$ref": "#/definitions/v0Group",
"title": "The account resource to create"
}
}
},
"accountsDeleteAccountRequest": {
"v0DeleteAccountRequest": {
"type": "object",
"properties": {
"id": {
@@ -689,7 +730,7 @@
}
}
},
"accountsDeleteGroupRequest": {
"v0DeleteGroupRequest": {
"type": "object",
"properties": {
"id": {
@@ -697,7 +738,7 @@
}
}
},
"accountsGetAccountRequest": {
"v0GetAccountRequest": {
"type": "object",
"properties": {
"id": {
@@ -705,7 +746,7 @@
}
}
},
"accountsGetGroupRequest": {
"v0GetGroupRequest": {
"type": "object",
"properties": {
"id": {
@@ -713,7 +754,7 @@
}
}
},
"accountsGroup": {
"v0Group": {
"type": "object",
"properties": {
"id": {
@@ -727,14 +768,14 @@
"members": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
},
"title": "Users, contacts, and groups that are members of this group. HTTP Methods: GET (supported for all groups), POST (supported for security groups and mail-enabled security groups), DELETE (supported only for security groups) Read-only. Nullable.\nTODO accounts (users) only for now, we can add groups with the dedicated message using oneof construct later"
},
"owners": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
},
"title": "groupofnames MAY businessCategory\ngroupofnames MAY o\ngroupofnames MAY ou\ngroupofnames MAY owner, SINGLE-VALUE but there might be multiple owners"
},
@@ -805,13 +846,13 @@
"onPremisesProvisioningErrors": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsOnPremisesProvisioningError"
"$ref": "#/definitions/v0OnPremisesProvisioningError"
},
"description": "Errors when using synchronization during provisioning."
}
}
},
"accountsIdentities": {
"v0Identities": {
"type": "object",
"properties": {
"signInType": {
@@ -829,7 +870,7 @@
},
"description": "Identities Represents an identity used to sign in to a user account.\nAn identity can be provided by oCIS, by organizations, or by social identity providers such as Facebook, Google, or Microsoft, that are tied to a user account.\nThis enables the user to sign in to the user account with any of those associated identities.\nThey are also used to keep a history of old usernames."
},
"accountsListAccountsRequest": {
"v0ListAccountsRequest": {
"type": "object",
"properties": {
"pageSize": {
@@ -852,13 +893,13 @@
}
}
},
"accountsListAccountsResponse": {
"v0ListAccountsResponse": {
"type": "object",
"properties": {
"accounts": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
},
"title": "The field name should match the noun \"accounts\" in the method name. There\nwill be a maximum number of items returned based on the page_size field\nin the request"
},
@@ -868,7 +909,7 @@
}
}
},
"accountsListGroupsRequest": {
"v0ListGroupsRequest": {
"type": "object",
"properties": {
"pageSize": {
@@ -891,13 +932,13 @@
}
}
},
"accountsListGroupsResponse": {
"v0ListGroupsResponse": {
"type": "object",
"properties": {
"groups": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsGroup"
"$ref": "#/definitions/v0Group"
},
"title": "The field name should match the noun \"group\" in the method name. There\nwill be a maximum number of items returned based on the page_size field\nin the request"
},
@@ -907,7 +948,7 @@
}
}
},
"accountsListMembersRequest": {
"v0ListMembersRequest": {
"type": "object",
"properties": {
"pageSize": {
@@ -933,13 +974,13 @@
}
}
},
"accountsListMembersResponse": {
"v0ListMembersResponse": {
"type": "object",
"properties": {
"members": {
"type": "array",
"items": {
"$ref": "#/definitions/accountsAccount"
"$ref": "#/definitions/v0Account"
},
"title": "The field name should match the noun \"members\" in the method name. There\nwill be a maximum number of items returned based on the page_size field\nin the request"
},
@@ -949,7 +990,7 @@
}
}
},
"accountsOnPremisesProvisioningError": {
"v0OnPremisesProvisioningError": {
"type": "object",
"properties": {
"category": {
@@ -971,7 +1012,7 @@
}
}
},
"accountsPasswordProfile": {
"v0PasswordProfile": {
"type": "object",
"properties": {
"password": {
@@ -1000,13 +1041,13 @@
}
}
},
"accountsRebuildIndexRequest": {
"v0RebuildIndexRequest": {
"type": "object"
},
"accountsRebuildIndexResponse": {
"v0RebuildIndexResponse": {
"type": "object"
},
"accountsRemoveMemberRequest": {
"v0RemoveMemberRequest": {
"type": "object",
"properties": {
"groupId": {
@@ -1019,11 +1060,11 @@
}
}
},
"accountsUpdateAccountRequest": {
"v0UpdateAccountRequest": {
"type": "object",
"properties": {
"account": {
"$ref": "#/definitions/accountsAccount",
"$ref": "#/definitions/v0Account",
"title": "The account resource which replaces the resource on the server"
},
"updateMask": {
@@ -1032,11 +1073,11 @@
}
}
},
"accountsUpdateGroupRequest": {
"v0UpdateGroupRequest": {
"type": "object",
"properties": {
"group": {
"$ref": "#/definitions/accountsGroup",
"$ref": "#/definitions/v0Group",
"title": "The group resource which replaces the resource on the server"
},
"updateMask": {
@@ -1044,40 +1085,10 @@
"title": "The update mask applies to the resource. For the `FieldMask` definition,\nsee https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"typeUrl": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
},
"externalDocs": {
"description": "Developer Manual",
"url": "https://owncloud.github.io/extensions/accounts/"
"url": "https://owncloud.dev/extensions/accounts/"
}
}
+6 -7
View File
@@ -1,6 +1,7 @@
package http
import (
"github.com/asim/go-micro/v3"
"github.com/go-chi/chi"
"github.com/owncloud/ocis/accounts/pkg/assets"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
@@ -60,13 +61,11 @@ func Server(opts ...Option) http.Service {
proto.RegisterGroupsServiceWeb(r, handler)
})
service.Handle(
"/",
mux,
)
if err := service.Init(); err != nil {
panic(err)
err := micro.RegisterHandler(service.Server(), mux)
if err != nil {
options.Logger.Fatal().Err(err).Msg("failed to register the handler")
}
service.Init()
return service
}
+15 -7
View File
@@ -6,21 +6,22 @@ import (
"crypto/sha256"
"encoding/hex"
"fmt"
"github.com/owncloud/ocis/ocis-pkg/sync"
"golang.org/x/crypto/bcrypt"
"io"
"path"
"regexp"
"strconv"
"time"
"github.com/owncloud/ocis/ocis-pkg/sync"
"golang.org/x/crypto/bcrypt"
"github.com/owncloud/ocis/ocis-pkg/log"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/metadata"
"github.com/gofrs/uuid"
p "github.com/golang/protobuf/proto"
"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"
@@ -29,6 +30,7 @@ import (
settings_svc "github.com/owncloud/ocis/settings/pkg/service/v0"
"github.com/rs/zerolog"
"google.golang.org/genproto/protobuf/field_mask"
p "google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/timestamppb"
)
@@ -171,11 +173,11 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
var suspicious bool
kh := sha256.New()
kh.Write([]byte(a.Id))
mustWrite(kh, []byte(a.Id))
k := hex.EncodeToString(kh.Sum([]byte(a.PasswordProfile.LastPasswordChangeDateTime.String())))
vh := sha256.New()
vh.Write([]byte(a.PasswordProfile.Password))
mustWrite(vh, []byte(a.PasswordProfile.Password))
v := vh.Sum([]byte(password))
e := passwordValidCache.Load(k)
@@ -837,3 +839,9 @@ func isPasswordValid(logger log.Logger, hash string, pwd string) (ok bool) {
return bcrypt.CompareHashAndPassword([]byte(hash), []byte(pwd)) == nil
}
func mustWrite(w io.Writer, val []byte) {
if _, err := w.Write(val); err != nil {
panic(err)
}
}
@@ -9,10 +9,10 @@ import (
"testing"
"time"
"github.com/asim/go-micro/v3/client"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/asim/go-micro/v3/metadata"
"github.com/golang/protobuf/ptypes/empty"
"github.com/micro/go-micro/v2/client"
merrors "github.com/micro/go-micro/v2/errors"
"github.com/micro/go-micro/v2/metadata"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
olog "github.com/owncloud/ocis/ocis-pkg/log"
+2 -2
View File
@@ -5,12 +5,12 @@ import (
"path"
"strconv"
merrors "github.com/asim/go-micro/v3/errors"
"github.com/gofrs/uuid"
p "github.com/golang/protobuf/proto"
"github.com/golang/protobuf/ptypes/empty"
merrors "github.com/micro/go-micro/v2/errors"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/accounts/pkg/storage"
p "google.golang.org/protobuf/proto"
)
func (s Service) expandMembers(g *proto.Group) {
+14 -33
View File
@@ -19,9 +19,9 @@ import (
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/ocis-pkg/log"
oreg "github.com/owncloud/ocis/ocis-pkg/registry"
"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"
)
// userDefaultGID is the default integer representing the "users" group.
@@ -57,6 +57,18 @@ func New(opts ...Option) (s *Service, err error) {
repo: createMetadataStorage(cfg, logger),
}
r := oreg.GetRegistry()
if cfg.Repo.Disk.Path == "" {
if _, err := r.GetService("com.owncloud.storage.metadata"); err != nil {
logger.Error().Err(err).Msg("index: storage-metadata service not present")
return nil, err
}
}
// we want to wait anyway. If it depends on a reva service it could be the case that the entry on the registry
// happens prior to the reva service being up and running
time.Sleep(500 * time.Millisecond)
if s.index, err = s.buildIndex(); err != nil {
return nil, err
}
@@ -68,7 +80,6 @@ func New(opts ...Option) (s *Service, err error) {
if err = s.createDefaultGroups(); err != nil {
return nil, err
}
// TODO watch folders for new records
return
}
@@ -267,6 +278,7 @@ func (s Service) createDefaultAccounts() (err error) {
},
},
}
// this only deals with the metadata service.
for i := range accounts {
a := &proto.Account{}
err := s.repo.LoadAccount(context.Background(), accounts[i].Id, a)
@@ -287,7 +299,6 @@ func (s Service) createDefaultAccounts() (err error) {
}
}
// TODO: can be removed again as soon as we respect the predefined UIDs and GIDs from the account. Then no autoincrement is happening, therefore we don't need to update accounts.
changed := false
for _, r := range results {
if r.Field == "UidNumber" || r.Field == "GidNumber" {
@@ -309,24 +320,6 @@ func (s Service) createDefaultAccounts() (err error) {
}
}
}
// set role for admin users and regular users
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", //idp
"bc596f3c-c955-4328-80a0-60d018b4ad57", //reva
} {
assignRoleToUser(accountID, settings_svc.BundleUUIDRoleAdmin, s.RoleService, s.log)
}
for _, accountID := range []string{
"4c510ada-c86b-4815-8820-42cdf82c3d51", //einstein
"f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c", //marie
"932b4540-8d16-481e-8ef4-588e4b6b151c", //richard
} {
assignRoleToUser(accountID, settings_svc.BundleUUIDRoleUser, s.RoleService, s.log)
}
return nil
}
@@ -403,18 +396,6 @@ func (s Service) createDefaultGroups() (err error) {
return nil
}
func assignRoleToUser(accountID, roleID string, rs settings.RoleService, logger log.Logger) (ok bool) {
_, err := rs.AssignRoleToUser(context.Background(), &settings.AssignRoleToUserRequest{
AccountUuid: accountID,
RoleId: roleID,
})
if err != nil {
logger.Error().Err(err).Str("accountID", accountID).Str("roleID", roleID).Msg("could not set role for account")
return false
}
return true
}
func createMetadataStorage(cfg *config.Config, logger log.Logger) storage.Repo {
// for now we detect the used storage implementation based on which storage is configured
// the config with defaults needs to be checked last
-194
View File
@@ -1,194 +0,0 @@
package service
import (
"context"
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"
)
const (
settingUUIDProfileLanguage = "aa8cfbe5-95d4-4f7e-a032-c3c01f5f062f"
)
// RegisterSettingsBundles pushes the settings bundle definitions for this extension to the ocis-settings service.
func RegisterSettingsBundles(l *olog.Logger) {
service := settings.NewBundleService("com.owncloud.api.settings", grpc.DefaultClient)
bundleRequests := []settings.SaveBundleRequest{
generateBundleProfileRequest(),
}
for i := range bundleRequests {
res, err := service.SaveBundle(context.Background(), &bundleRequests[i])
if err != nil {
l.Err(err).Str("bundle", bundleRequests[i].Bundle.Id).Msg("Error registering bundle")
} else {
l.Info().Str("bundle", res.Bundle.Id).Msg("Successfully registered bundle")
}
}
permissionRequests := generateProfilePermissionsRequests()
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")
} else {
l.Info().Str("bundle", bundleID).Str("setting", res.Setting.Id).Msg("Successfully added setting to bundle")
}
}
}
var languageSetting = settings.Setting_SingleChoiceValue{
SingleChoiceValue: &settings.SingleChoiceList{
Options: []*settings.ListOption{
{
Value: &settings.ListOptionValue{
Option: &settings.ListOptionValue_StringValue{
StringValue: "cs",
},
},
DisplayValue: "Czech",
},
{
Value: &settings.ListOptionValue{
Option: &settings.ListOptionValue_StringValue{
StringValue: "de",
},
},
DisplayValue: "Deutsch",
},
{
Value: &settings.ListOptionValue{
Option: &settings.ListOptionValue_StringValue{
StringValue: "en",
},
},
DisplayValue: "English",
},
{
Value: &settings.ListOptionValue{
Option: &settings.ListOptionValue_StringValue{
StringValue: "es",
},
},
DisplayValue: "Español",
},
{
Value: &settings.ListOptionValue{
Option: &settings.ListOptionValue_StringValue{
StringValue: "fr",
},
},
DisplayValue: "Français",
},
{
Value: &settings.ListOptionValue{
Option: &settings.ListOptionValue_StringValue{
StringValue: "gl",
},
},
DisplayValue: "Galego",
},
{
Value: &settings.ListOptionValue{
Option: &settings.ListOptionValue_StringValue{
StringValue: "it",
},
},
DisplayValue: "Italiano",
},
},
},
}
func generateBundleProfileRequest() settings.SaveBundleRequest {
return settings.SaveBundleRequest{
Bundle: &settings.Bundle{
Id: "2a506de7-99bd-4f0d-994e-c38e72c28fd9",
Name: "profile",
Extension: "ocis-accounts",
Type: settings.Bundle_TYPE_DEFAULT,
Resource: &settings.Resource{
Type: settings.Resource_TYPE_SYSTEM,
},
DisplayName: "Profile",
Settings: []*settings.Setting{
{
Id: settingUUIDProfileLanguage,
Name: "language",
DisplayName: "Language",
Description: "User language",
Resource: &settings.Resource{
Type: settings.Resource_TYPE_USER,
},
Value: &languageSetting,
},
},
},
}
}
func generateProfilePermissionsRequests() []settings.AddSettingToBundleRequest {
// TODO: we don't want to set up permissions for settings manually in the future. Instead each setting should come with
// a set of default permissions for the default roles (guest, user, admin).
return []settings.AddSettingToBundleRequest{
{
BundleId: ssvc.BundleUUIDRoleAdmin,
Setting: &settings.Setting{
Id: "7d81f103-0488-4853-bce5-98dcce36d649",
Name: "language-readwrite",
DisplayName: "Permission to read and set the language (anyone)",
Resource: &settings.Resource{
Type: settings.Resource_TYPE_SETTING,
Id: settingUUIDProfileLanguage,
},
Value: &settings.Setting_PermissionValue{
PermissionValue: &settings.Permission{
Operation: settings.Permission_OPERATION_READWRITE,
Constraint: settings.Permission_CONSTRAINT_ALL,
},
},
},
},
{
BundleId: ssvc.BundleUUIDRoleUser,
Setting: &settings.Setting{
Id: "640e00d2-4df8-41bd-b1c2-9f30a01e0e99",
Name: "language-readwrite",
DisplayName: "Permission to read and set the language (self)",
Resource: &settings.Resource{
Type: settings.Resource_TYPE_SETTING,
Id: settingUUIDProfileLanguage,
},
Value: &settings.Setting_PermissionValue{
PermissionValue: &settings.Permission{
Operation: settings.Permission_OPERATION_READWRITE,
Constraint: settings.Permission_CONSTRAINT_OWN,
},
},
},
},
{
BundleId: ssvc.BundleUUIDRoleGuest,
Setting: &settings.Setting{
Id: "ca878636-8b1a-4fae-8282-8617a4c13597",
Name: "language-readwrite",
DisplayName: "Permission to read and set the language (self)",
Resource: &settings.Resource{
Type: settings.Resource_TYPE_SETTING,
Id: settingUUIDProfileLanguage,
},
Value: &settings.Setting_PermissionValue{
PermissionValue: &settings.Permission{
Operation: settings.Permission_OPERATION_READWRITE,
Constraint: settings.Permission_CONSTRAINT_OWN,
},
},
},
},
}
}
+90
View File
@@ -0,0 +1,90 @@
package tracing
import (
"time"
"contrib.go.opencensus.io/exporter/jaeger"
"contrib.go.opencensus.io/exporter/ocagent"
"contrib.go.opencensus.io/exporter/zipkin"
openzipkin "github.com/openzipkin/zipkin-go"
zipkinhttp "github.com/openzipkin/zipkin-go/reporter/http"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/ocis-pkg/log"
"go.opencensus.io/stats/view"
"go.opencensus.io/trace"
)
func Configure(cfg *config.Config, logger log.Logger) error {
if cfg.Tracing.Enabled {
switch t := cfg.Tracing.Type; t {
case "agent":
exporter, err := ocagent.NewExporter(
ocagent.WithReconnectionPeriod(5*time.Second),
ocagent.WithAddress(cfg.Tracing.Endpoint),
ocagent.WithServiceName(cfg.Tracing.Service),
)
if err != nil {
logger.Error().
Err(err).
Str("endpoint", cfg.Tracing.Endpoint).
Str("collector", cfg.Tracing.Collector).
Msg("Failed to create agent tracing")
return err
}
trace.RegisterExporter(exporter)
view.RegisterExporter(exporter)
case "jaeger":
exporter, err := jaeger.NewExporter(
jaeger.Options{
AgentEndpoint: cfg.Tracing.Endpoint,
CollectorEndpoint: cfg.Tracing.Collector,
Process: jaeger.Process{
ServiceName: cfg.Tracing.Service,
},
},
)
if err != nil {
logger.Error().
Err(err).
Str("endpoint", cfg.Tracing.Endpoint).
Str("collector", cfg.Tracing.Collector).
Msg("Failed to create jaeger tracing")
return err
}
trace.RegisterExporter(exporter)
case "zipkin":
endpoint, err := openzipkin.NewEndpoint(
cfg.Tracing.Service,
cfg.Tracing.Endpoint,
)
if err != nil {
logger.Error().
Err(err).
Str("endpoint", cfg.Tracing.Endpoint).
Str("collector", cfg.Tracing.Collector).
Msg("Failed to create zipkin tracing")
return err
}
exporter := zipkin.NewExporter(
zipkinhttp.NewReporter(
cfg.Tracing.Collector,
),
endpoint,
)
trace.RegisterExporter(exporter)
default:
logger.Warn().
Str("type", t).
Msg("Unknown tracing backend")
}
trace.ApplyConfig(
trace.Config{
DefaultSampler: trace.AlwaysSample(),
},
)
} else {
logger.Debug().
Msg("Tracing is not enabled")
}
return nil
}
-7
View File
@@ -1,7 +0,0 @@
// +build tools
package main
import (
_ "github.com/restic/calens"
)
+10 -3
View File
@@ -1,9 +1,15 @@
import 'regenerator-runtime/runtime'
import App from './components/App.vue'
import store from './store'
import translations from './../l10n/translations.json'
// just a dummy function to trick gettext tools
function $gettext (msg) {
return msg
}
const appInfo = {
name: 'Accounts',
name: $gettext('Accounts'),
id: 'accounts',
icon: 'text-vcard',
isFileEditor: false,
@@ -22,7 +28,7 @@ const routes = [
const navItems = [
{
name: 'Accounts',
name: $gettext('Accounts'),
iconMaterial: appInfo.icon,
route: {
name: 'accounts',
@@ -36,5 +42,6 @@ export default {
appInfo,
routes,
navItems,
store
store,
translations
}
+5 -16
View File
@@ -1,7 +1,10 @@
<template>
<div>
<div class="uk-flex uk-flex-column uk-height-1-1" id="accounts-app">
<main class="uk-flex uk-flex-column uk-height-1-1" id="accounts-app">
<template v-if="isInitialized">
<h1 class="oc-invisible-sr">
<translate>Accounts</translate>
</h1>
<div class="oc-app-bar">
<accounts-batch-actions
v-if="isAnyAccountSelected"
@@ -23,7 +26,7 @@
</oc-alert>
</template>
<oc-loader id="accounts-list-loader" v-else />
</div>
</main>
</div>
</template>
@@ -55,17 +58,3 @@ export default {
}
}
</script>
<style>
/* TODO: After https://github.com/owncloud/owncloud-design-system/pull/418 gets merged
there won't be an extra span and this won't be needed anymore */
.accounts-selection-actions-btn > span {
display: flex;
align-items: center;
}
/* TODO: Adjust in ODS */
.oc-dropdown-menu {
width: 150px;
}
</style>
@@ -3,20 +3,20 @@
<span v-text="selectionInfoText" />
<span>|</span>
<div>
<oc-button v-text="$gettext('Clear selection')" variation="raw" @click="RESET_ACCOUNTS_SELECTION" />
<oc-button v-text="$gettext('Clear selection')" appearance="raw" @click="RESET_ACCOUNTS_SELECTION" />
</div>
<oc-grid gutter="small" id="accounts-batch-actions">
<div v-for="action in actions" :key="action.label">
<oc-alert v-if="isConfirmationInProgress[action.id]" :variation="action.confirmation.variation || 'default'" noClose class="uk-flex uk-flex-middle tmp-alert-fixes">
<div v-if="isConfirmationInProgress[action.id]" :variation="action.confirmation.variation || 'primary'" noClose class="uk-flex uk-flex-middle tmp-alert-fixes">
<span>{{ action.confirmation.message }}</span>
<oc-button size="small" :id="action.confirmation.cancel.id" @click="action.confirmation.cancel.handler" :variation="action.confirmation.cancel.variation || 'default'">
<oc-button :id="action.confirmation.cancel.id" @click="action.confirmation.cancel.handler" :variation="action.confirmation.cancel.variation || 'passive'">
{{ action.confirmation.cancel.label }}
</oc-button>
<oc-button size="small" :id="action.confirmation.confirm.id" @click="action.confirmation.confirm.handler" :variation="action.confirmation.confirm.variation || 'default'">
<oc-button :id="action.confirmation.confirm.id" @click="action.confirmation.confirm.handler" :variation="action.confirmation.confirm.variation || 'primary'">
{{ action.confirmation.confirm.label }}
</oc-button>
</oc-alert>
<oc-button v-else :id="action.id" @click="action.handler" :variation="action.variation || 'default'" :icon="action.icon">
</div>
<oc-button v-else :id="action.id" @click="action.handler" :variation="action.variation || 'primary'" :icon="action.icon">
{{ action.label }}
</oc-button>
</div>
@@ -78,6 +78,7 @@ export default {
id: idDeleteAction,
label: this.$gettext('Delete'),
icon: 'delete',
variation: 'danger',
handler: () => this.showConfirmationRequest(idDeleteAction),
confirmation: {
variation: 'danger',
@@ -89,7 +90,6 @@ export default {
cancel: {
id: 'accounts-batch-action-delete-cancel',
label: this.$gettext('Cancel'),
variation: 'secondary',
handler: () => this.hideConfirmationRequest(idDeleteAction)
},
confirm: {
@@ -119,13 +119,9 @@ export default {
<style lang="scss" scoped>
.tmp-alert-fixes {
padding: 4px 11px 5px !important;
border-radius: 3px !important;
background-color: #fff !important;
border: 1px solid rgb(224, 0, 0) !important;
color: rgb(224, 0, 0) !important;
font-size: 1.1rem !important;
font-size: 1.125rem !important;
font-weight: 600 !important;
line-height: 1.4 !important;
}
@@ -1,50 +1,45 @@
<template>
<div>
<oc-grid v-if="isFormInProgress" gutter="small">
<label>
<oc-text-input
id="accounts-new-account-input-username"
type="text"
v-model="formData.username"
:error-message="formValidation.usernameError"
:placeholder="$gettext('Username')"
:disabled="isRequestInProgress"
@keydown.enter="createAccount"
/>
</label>
<label>
<oc-text-input
id="accounts-new-account-input-email"
type="email"
v-model="formData.email"
:error-message="formValidation.emailError"
:placeholder="$gettext('Email')"
:disabled="isRequestInProgress"
@keydown.enter="createAccount"
/>
</label>
<label>
<oc-text-input
id="accounts-new-account-input-password"
type="password"
v-model="formData.password"
:error-message="formValidation.passwordError"
:placeholder="$gettext('Password')"
:disabled="isRequestInProgress"
@keydown.enter="createAccount"
/>
</label>
<div>
<oc-text-input
id="accounts-new-account-input-username"
type="text"
v-model="formData.username"
:error-message="formValidation.usernameError"
:label="$gettext('Username')"
:disabled="isRequestInProgress"
@keydown.enter="createAccount"
/>
<oc-text-input
id="accounts-new-account-input-email"
type="email"
v-model="formData.email"
:error-message="formValidation.emailError"
:label="$gettext('Email')"
:disabled="isRequestInProgress"
@keydown.enter="createAccount"
/>
<oc-text-input
id="accounts-new-account-input-password"
type="password"
v-model="formData.password"
:error-message="formValidation.passwordError"
:label="$gettext('Password')"
:disabled="isRequestInProgress"
@keydown.enter="createAccount"
/>
<div class="uk-flex">
<oc-button
class="oc-mr-s oc-mb-s"
v-text="$gettext('Cancel')"
@click="cancelForm"
:disabled="isRequestInProgress"
/>
</div>
<div>
<oc-button
id="accounts-new-account-button-confirm"
class="oc-mr-s oc-mb-s"
variation="primary"
appearance="filled"
:disabled="isRequestInProgress"
@click="createAccount"
gap-size="small"
@@ -66,6 +61,7 @@
id="accounts-new-account-trigger"
key="create-accounts-button"
variation="primary"
appearance="filled"
gap-size="small"
@click="setFormInProgress(true)"
>
@@ -194,9 +190,3 @@ export default {
align-items: center;
}
</style>
<style scoped>
.border-ods-tmp-fix {
/* TODO: somehow the primary button receives a 2px border-width. remove it until we fix it in ODS. */
border-width: 0 !important;
}
</style>
@@ -2,7 +2,7 @@
<div>
<oc-table-simple id="accounts-user-list">
<oc-thead>
<oc-tr class="fix-table-header">
<oc-tr>
<oc-th shrink type="head" align-h="center">
<oc-checkbox
class="oc-ml-s"
@@ -58,9 +58,3 @@ export default {
}
}
</script>
<style scoped>
.fix-table-header > th {
text-transform: none;
}
</style>
@@ -18,7 +18,7 @@
<oc-td v-text="account.displayName || '-'" />
<oc-td v-text="account.mail" />
<oc-td>
<oc-button :id="`accounts-roles-select-trigger-${account.id}`" class="accounts-roles-select-trigger" variation="raw">
<oc-button :id="`accounts-roles-select-trigger-${account.id}`" class="accounts-roles-select-trigger" appearance="outline">
<span class="uk-flex uk-flex-middle accounts-roles-current-role">
{{ currentRole ? currentRole.displayName : $gettext('Select role') }}
<oc-icon name="expand_more" aria-hidden="true" />
@@ -119,7 +119,7 @@ module.exports = {
locateStrategy: 'xpath'
},
roleInRolesDropdown: {
selector: '//label[contains(@class, "accounts-roles-dropdown-role")]/span[normalize-space()="%s"]',
selector: '//span[contains(@class, "accounts-roles-dropdown-role")]/label[normalize-space()="%s"]',
locateStrategy: 'xpath'
},
rolesDropdownTrigger: {
+1472 -1186
View File
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,8 @@
Bugfix: Purposely delay accounts service startup
As it turns out the race condition between `accounts <-> storage-metadata` still remains. This PR is a hotfix, and it should be followed up with a proper fix. Either:
- block the accounts' initialization until the storage metadata is ready (using the registry) or
- allow the accounts service to initialize and use a message broker to signal the accounts the metadata storage is ready to receive requests.
https://github.com/owncloud/ocis/pull/1734
@@ -0,0 +1,5 @@
Bugfix: Add missing gateway config
The auth provider `ldap` and `oidc` drivers now need to be able talk to the reva gateway. We added the `gatewayscv` to the config that is passed to reva.
https://github.com/owncloud/ocis/pull/1716
@@ -0,0 +1,11 @@
Bugfix: Fix accounts initialization
Originally the accounts service relies on both the `settings` and `storage-metadata` to be up and running at the moment it starts. This is an antipattern as it will cause the entire service to panic if the dependants are not present.
We inverted this dependency and moved the default initialization data (i.e: creating roles, permissions, settings bundles) and instead of notifying the settings service that the account has to provide with such options, the settings is instead initialized with the options the accounts rely on. Essentially saving bandwith as there is no longer a gRPC call to the settings service.
For the `storage-metadata` a retry mechanism was added that retries by default 20 times to fetch the `com.owncloud.storage.metadata` from the service registry every `500` miliseconds. If this retry expires the accounts panics, as its dependency on the `storage-metadata` service cannot be resolved.
We also introduced a client wrapper that acts as middleware between a client and a server. For more information on how it works further read [here](https://github.com/sony/gobreaker)
https://github.com/owncloud/ocis/pull/1696
@@ -0,0 +1,5 @@
Bugfix: Fix the ttl of the authentication middleware cache
The authentication cache ttl was multiplied with `time.Second` multiple times. This resulted in a ttl that was not intended.
https://github.com/owncloud/ocis/pull/1699
@@ -0,0 +1,5 @@
Enhancement: Remove the JWT from the log
We were logging the JWT in some places. Secrets should not be exposed in logs so it got removed.
https://github.com/owncloud/ocis/pull/1758
@@ -0,0 +1,9 @@
Enhancement: Update go-micro to v3.5.1-0.20210217182006-0f0ace1a44a9
- We updated from go micro v2 (v2.9.1) go-micro v3 (v3.5.1 edge).
- oCIS runtime is now aware of `MICRO_LOG_LEVEL` and is set to `error` by default. This decision was made because ownCloud, as framework builders, want to log everything oCIS related and hide everything unrelated by default. It can be re-enabled by setting it to a log level other than `error`. i.e: `MICRO_LOG_LEVEL=info`.
- Updated `protoc-gen-micro` to the [latest version](https://github.com/asim/go-micro/tree/master/cmd/protoc-gen-micro).
- We're using Prometheus wrappers from go-micro.
https://github.com/owncloud/ocis/pull/1670
https://github.com/asim/go-micro/pull/2126
@@ -0,0 +1,6 @@
Enhancement: Update reva to v1.6.1-0.20210223065028-53f39499762e
* quota querying and tree accounting [cs3org/reva#1405](https://github.com/cs3org/reva/pull/1405)
https://github.com/owncloud/ocis/pull/1683
https://github.com/cs3org/reva/pull/1405
@@ -0,0 +1,8 @@
Change: Update ownCloud Web to v2.0.1
Tags: web
We updated ownCloud Web to v2.0.1. Please refer to the changelog (linked) for details on the web release.
https://github.com/owncloud/ocis/pull/1683
https://github.com/owncloud/web/releases/tag/v2.0.1
@@ -0,0 +1,8 @@
Change: Update ownCloud Web to v2.0.2
Tags: web
We updated ownCloud Web to v2.0.2. Please refer to the changelog (linked) for details on the web release.
https://github.com/owncloud/ocis/pull/1776
https://github.com/owncloud/web/releases/tag/v2.0.2
@@ -0,0 +1,6 @@
Enhancement: Add initial nats and kubernetes registry support
We added initial support to use nats and kubernetes as a service registry using `MICRO_REGISTRY=nats` and `MICRO_REGISTRY=kubernetes` respectively.
Multiple nodes can be given with `MICRO_REGISTRY_ADDRESS=1.2.3.4,5.6.7.8,9.10.11.12`.
https://github.com/owncloud/ocis/pull/1697
@@ -0,0 +1,4 @@
Enhancement: Add focus to input elements on login page
https://github.com/owncloud/ocis/pull/1792
https://github.com/owncloud/web/issues/4322
@@ -0,0 +1,5 @@
Enhancement: Improve accessibility to input elements on login page
https://github.com/owncloud/ocis/pull/1794
https://github.com/owncloud/ocis/pull/1811
https://github.com/owncloud/web/issues/4319
@@ -0,0 +1,8 @@
Enhancement: Add new build targets
Make build target `build` used to build a binary twice, the second occurrence having symbols for debugging. We split this step in two and added `build-all` and `build-debug` targets.
- `build-all` now behaves as the previous `build` target, it will generate 2 binaries, one for debug.
- `build-debug` will build a single binary for debugging.
https://github.com/owncloud/ocis/pull/1824
@@ -0,0 +1,10 @@
Enhancement: clarify expected failures
Some features, while covered by the ownCloud 10 acceptance tests, will not be implmented for now:
- blacklisted / ignored files, because ocis does not need to blacklist `.htaccess` files
- `OC-LazyOps` support was [removed from the clients](https://github.com/owncloud/client/pull/8398). We are thinking about [a state machine for uploads to properly solve that scenario and also list the state of files in progress in the web ui](https://github.com/owncloud/ocis/issues/214).
The expected failures files now have a dedicated _Won't fix_ section for these items.
https://github.com/owncloud/ocis/pull/1790
https://github.com/owncloud/client/pull/8398
https://github.com/owncloud/ocis/issues/214
@@ -0,0 +1,3 @@
Enhancement: Replace special character in login page title with a regular minus
https://github.com/owncloud/ocis/pull/1813
@@ -0,0 +1,6 @@
Bugfix: Fix thumbnail generation for jpegs
Images with the extension `.jpeg` were not properly supported.
https://github.com/owncloud/ocis/pull/1785
https://github.com/owncloud/ocis/issues/1490
@@ -0,0 +1,9 @@
Enhancement: File Logging
When running supervised, support for configuring all logs to a single log file:
`OCIS_LOG_FILE=/Users/foo/bar/ocis.log MICRO_REGISTRY=etcd bin/ocis server`
Supports directing log from single extensions to a log file:
`PROXY_LOG_FILE=/Users/foo/bar/proxy.log MICRO_REGISTRY=etcd bin/ocis proxy`
https://github.com/owncloud/ocis/pull/1816
@@ -0,0 +1,17 @@
Enhancement: Runtime Hostname and Port are now configurable
Without any configuration the ocis runtime will start on `localhost:9250` unless specified otherwise. Usage:
- `OCIS_RUNTIME_PORT=6061 bin/ocis server`
- overrides the oCIS runtime and starts on port 6061
- `OCIS_RUNTIME_PORT=6061 bin/ocis list`
- lists running extensions for the runtime on `localhost:6061`
All subcommands are updated and expected to work with the following environment variables:
```
OCIS_RUNTIME_HOST
OCIS_RUNTIME_PORT
```
https://github.com/owncloud/ocis/pull/1822
@@ -0,0 +1,5 @@
Enhancement: Generate thumbnails for .gif files
Added support for gifs to the thumbnails service.
https://github.com/owncloud/ocis/pull/1791
@@ -0,0 +1,5 @@
Enhancement: Tracing Refactor
Centralize tracing handling per extension.
https://github.com/owncloud/ocis/pull/1819
Loaded 100 of 541 files, more files were not shown because too many files have changed in this diff. Show more