Compare commits

..
682 Commits
Author SHA1 Message Date
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
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
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
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
David Christofas 9da10fc14e Merge pull request #1764 from owncloud/onlyoffice-update-npm-dependencies
update npm dependencies
2021-03-05 08:56:25 +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 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
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
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
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
Michael Barz dc9cf9e8f1 prepare changelog 2021-02-17 11:48:58 +01:00
Benedikt Kulmann d856506738 Automated changelog update [skip ci] 2021-02-17 10:42:30 +00:00
Benedikt Kulmann 22ef448fa4 Merge pull request #1661 from owncloud/web-2.0.0
Update web to 2.0.0
2021-02-17 11:41:57 +01:00
Benedikt Kulmann ca46b1a779 Update generated code 2021-02-17 10:36:54 +01:00
Willy Kloucek b4fe7de242 Automated changelog update [skip ci] 2021-02-17 09:34:59 +00:00
Willy Kloucek 888481a64a Merge pull request #1626 from ishank011/group-provider
storage: add group provider service and sharing SQL driver
2021-02-17 10:34:25 +01:00
Benedikt Kulmann e498ad69f9 Fix syntax for component param 2021-02-17 10:08:37 +01:00
Benedikt Kulmann 84ca589a16 Fix accounts table reference, especially for tests 2021-02-17 09:59:50 +01:00
Florian Schade 47a2ef8797 update accounts ui to use new table-component 2021-02-17 09:59:49 +01:00
Benedikt Kulmann 50d869697b Fix PR link in changelog 2021-02-17 09:59:09 +01:00
Benedikt Kulmann ef109c872f Update web to 2.0.0 2021-02-17 09:59:09 +01:00
Phil Davis f4161385d4 Merge pull request #1663 from owncloud/bump-core-commit-id-20210217am
[tests-only] Bump core commit id
2021-02-17 11:52:02 +03:00
Phil Davis 35eed83326 Bump core commit id 2021-02-17 12:49:24 +05:45
Phil Davis 184216419d Merge pull request #1662 from owncloud/idp-update-npm-deps
update npm dependencies
2021-02-17 03:05:35 +03:00
Phil Davis 87a06b5e39 Merge pull request #1660 from owncloud/accounts-update-npm-deps
update npm dependencies
2021-02-17 03:04:38 +03:00
Willy Kloucek 6ee83baf0b Merge pull request #1580 from owncloud/build_idp_embed_ci
generate all protobuf and embed.go files in CI
2021-02-16 18:38:47 +01:00
Willy Kloucek 67eb5ce63e Merge pull request #1657 from owncloud/continuous_deplyoment_carry_paths
[docs-only] fix certificate issuing limit for continuously deployed examples
2021-02-16 17:27:34 +01:00
Willy Kloucek b0ca23fbd7 pin protoc-gen-go 2021-02-16 17:12:38 +01:00
David Christofas 1618dbfa0b update npm dependencies 2021-02-16 16:26:48 +01:00
David Christofas cf8d8aef92 update npm dependencies 2021-02-16 16:14:40 +01:00
Ishank Arora 07843042a5 Separation of concerns 2021-02-16 16:01:57 +01:00
Ishank Arora bafa6b9c81 Upgrade reva version 2021-02-16 16:01:57 +01:00
Ishank Arora 089325d30e Update expected failures 2021-02-16 16:01:34 +01:00
Ishank Arora 69cc4d83ad Add changelog 2021-02-16 16:01:34 +01:00
root 4813b06ed5 Upgrade reva and CS3APIs versions 2021-02-16 16:00:51 +01:00
Ishank Arora d8ade4a917 storage: add group provider service and sharing SQL driver 2021-02-16 15:55:42 +01:00
Willy Kloucek e7afcd7c49 fix docs 2021-02-16 15:44:07 +01:00
Willy Kloucek ee20ccd474 collapse storage backends and web 2021-02-16 15:44:07 +01:00
Willy Kloucek e401145235 update lockfile 2021-02-16 15:44:07 +01:00
Willy Kloucek 86f27ca766 hook up graph and graph-explorer 2021-02-16 15:44:07 +01:00
Willy Kloucek aed03b5bf5 generate all protobuf and embed.go files in CI 2021-02-16 15:44:06 +01:00
David Christofas 0726156f1b Merge pull request #1658 from owncloud/cleanup-gomod
Cleanup gomod
2021-02-16 15:39:17 +01:00
Willy Kloucek ee596b4faa Merge pull request #1631 from owncloud/keycloak_example_remove_demo_users
[docs-only] keycloak example: remove demo users from accounts
2021-02-16 15:14:32 +01:00
David Christofas 9d1341d1eb update ocis dependencies 2021-02-16 14:32:46 +01:00
David Christofas ee34fc5c89 fix imports of graph and graph-explorer 2021-02-16 14:32:41 +01:00
David Christofas 9e5858ccab fix ocis dependencies in graph 2021-02-16 14:32:35 +01:00
David Christofas 8aa06cc3f9 fix ocis dependencies in graph-explorer 2021-02-16 14:32:25 +01:00
Willy Kloucek 826c70b3d2 introduce carry paths for continuous deployments 2021-02-16 14:13:13 +01:00
David Christofas dc73176dc6 Automated changelog update [skip ci] 2021-02-16 09:44:51 +00:00
David Christofas 0d3d0bebf3 Merge pull request #1594 from owncloud/ocis-1643-migrate-ocis-graph
Add ocis-graph
2021-02-16 10:43:43 +01:00
David Christofas d1183fb2a2 add flaex template to graph-explorer 2021-02-15 18:33:10 +01:00
David Christofas 4147434a33 add flaex template 2021-02-15 18:29:28 +01:00
David Christofas 8395d55fc5 fix makefile
The makefile was missing the assets step before generate. Re-added the assets step which downloads the graph-explorer lib
2021-02-15 17:58:53 +01:00
Benedikt Kulmann 7af5b8249c Add graph and graph-explorer pipelines to drone config 2021-02-15 11:22:28 +01:00
Benedikt Kulmann 3f362283d0 Move docs to top level folder 2021-02-15 11:08:25 +01:00
Benedikt Kulmann 6d7e9c8851 Merge remote-tracking branch 'origin/master' into ocis-1643-migrate-ocis-graph 2021-02-15 10:24:19 +01:00
Artur Neumann 8026bcb691 Merge pull request #1641 from owncloud/bump-core-commikt-id-20210213
[tests-only] Bump commit id for core API tests
2021-02-14 07:01:16 +05:45
Phil Davis 536ae99fe8 Merge pull request #1643 from EParzefall/patch-2
Update _index.md
2021-02-14 00:51:38 +03:00
EParzefall 7303704f36 Update _index.md
grammar fixed.
2021-02-13 14:48:01 +01:00
Phil Davis e78ebe4c05 Bump commit id for core API tests 2021-02-13 14:38:55 +05:45
Phil Davis 1348b07958 Merge pull request #1638 from owncloud/cleanup-gomod
clean up go dependencies
2021-02-13 06:16:20 +03:00
David Christofas 10d4bad26d clean up go dependencies 2021-02-12 16:38:34 +01:00
Ilja NeumannandDavid Christofas 0c6c18f818 Update reva to master@0c10b333ee69
Co-authored-by: David Christofas <dchristofas@owncloud.com>
2021-02-12 16:14:03 +01:00
Jörn Friedrich Dreyer a19708e067 Merge pull request #1632 from owncloud/update-npm-deps
update npm dependencies
2021-02-12 15:06:30 +01:00
Jörn Friedrich Dreyer 9c34677889 Automated changelog update [skip ci] 2021-02-12 14:06:20 +00:00
Jörn Friedrich Dreyer 7317c35387 Merge pull request #1636 from owncloud/remove_ocis_config_file_option
remove ocis config file option
2021-02-12 15:05:33 +01:00
Jörn Friedrich Dreyer 959225e2bf Merge pull request #1630 from owncloud/update-architecture-overview
update architecture overview docs
2021-02-12 15:03:49 +01:00
David Christofas dd26937d69 Automated changelog update [skip ci] 2021-02-12 13:31:04 +00:00
David Christofas eefd6a517f Merge pull request #1628 from owncloud/thumbnail-refactor
quickfix for thumbnail generation when using different idp
2021-02-12 14:30:06 +01:00
Willy Kloucek 29eda7f644 add changelog 2021-02-12 12:21:56 +01:00
Willy Kloucek 6c7934ee80 remove ocis config file option 2021-02-12 12:13:53 +01:00
Willy Kloucek 33d004a92e use wait also for ocis_traefik 2021-02-12 10:28:01 +01:00
Willy Kloucek c88e544281 do not restart ocis after removing users, since they then will be readded 2021-02-12 10:21:32 +01:00
David Christofas 1544dffabd update npm dependencies 2021-02-12 00:18:31 +01:00
Jörn Friedrich Dreyer 67f9f1f2db Automated changelog update [skip ci] 2021-02-11 19:35:29 +00:00
Jörn Friedrich Dreyer 3f8245e042 Merge pull request #1596 from owncloud/ocis-1644-migrate-ocis-graph-explorer
Add ocis-graph-explorer
2021-02-11 20:27:49 +01:00
Jörn Friedrich Dreyer 6d598af782 update architecture overview docs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-11 16:00:32 +00:00
Willy Kloucek 249af958ff remove demo users from accounts 2021-02-11 16:54:01 +01:00
David Christofas 8c9a1712fb delete unnecessary protobuf tests 2021-02-11 16:43:01 +01:00
David Christofas d7604d8608 update thumbnail tests to quickfix 2021-02-11 16:24:02 +01:00
David Christofas 9027864b68 quickfix for thumbnail generation when using different idp 2021-02-11 15:53:33 +01:00
Willy Kloucek dea1fa87a9 Merge pull request #1614 from owncloud/change_secrets_upon_deploy
change default secrets on deploy
2021-02-11 11:49:23 +01:00
Willy Kloucek 9bfe930978 add feedback from review 2021-02-11 10:53:07 +01:00
Willy Kloucek 9c648f93cc add review feedback 2021-02-11 10:24:01 +01:00
Klaas Freitag b8e18a8aa3 Automated changelog update [skip ci] 2021-02-10 17:06:59 +00:00
Klaas Freitag 6ef57945f7 Merge pull request #1042 from owncloud/introduce-adr
Introduce ADR
2021-02-10 18:05:51 +01:00
Willy Kloucek f2e90149ae add docs 2021-02-10 16:31:26 +01:00
Willy Kloucek 2efbb13e66 change secrets on deploy 2021-02-10 14:20:38 +01:00
Jörn Friedrich DreyerandBenedikt Kulmann 1ddfb7c6c5 Apply suggestions from code review
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2021-02-10 13:12:50 +01:00
Phil Davis 182f8953d7 Merge pull request #1610 from owncloud/update_traefik
[docs-only] bump traefik version
2021-02-10 10:30:01 +03:00
Phil Davis d0244d6c74 Merge pull request #1592 from owncloud/href-url-encoding
[Tests-Only] Bump core commit id for API tests
2021-02-10 10:28:50 +03:00
swoichha ecc0a4d5fd added failing tests to expected failure file 2021-02-10 12:01:05 +05:45
Jörn Friedrich Dreyer e864db8a2f incorporate feedback
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-02-09 21:44:22 +00:00
swoichha 344ab4a821 bump core commit id 2021-02-09 08:58:41 +05:45
swoichha 43e257f05d [Tests-Only]remove tests from expected failure file 2021-02-09 08:56:01 +05:45
Willy Kloucek 77f2f4f0ba bump traefik version 2021-02-08 14:26:49 +01:00
Willy Kloucek c32dd3d362 Merge pull request #1209 from owncloud/work_on_basic_remote_setup
[docs-only] work on basic remote setup scenario
2021-02-08 08:45:22 +01:00
Willy Kloucek cf4f84708a include feedback from PR 2021-02-08 08:41:53 +01:00
Willy Kloucek cabe57e74b Merge pull request #1600 from owncloud/fix_ci_after_PR_1381
fix CI: push images to Dockerhub fails since PR 1381
2021-02-05 13:35:20 +01:00
Willy Kloucek 249e98bee5 fix ci after PR 1381 2021-02-05 12:42:12 +01:00
Willy Kloucek d7215deb89 Merge pull request #1598 from owncloud/fix_idp_logo
fix idp logo
2021-02-05 11:39:33 +01:00
Willy Kloucek 79c2907c40 fix idp logo 2021-02-05 10:22:03 +01:00
A.Unger cf3779bb73 fix changelog PR 2021-02-04 12:27:10 +01:00
A.Unger 5700585b33 leftover rename 2021-02-04 12:24:11 +01:00
A.Unger 68957acc0d renames 2021-02-04 12:23:11 +01:00
A.Unger 6cfbec91e2 Add 'ocis-graph-explorer/' from commit '85a7df32eafb7b6c76f81155cbda054233d8b5a7'
git-subtree-dir: ocis-graph-explorer
git-subtree-mainline: 8146241777
git-subtree-split: 85a7df32ea
2021-02-04 12:06:48 +01:00
A.Unger c0651479f4 fix makefiles 2021-02-04 12:04:40 +01:00
A.Unger 937a07f2c6 add changelog 2021-02-04 11:58:50 +01:00
A.Unger a7c9414be9 adjustments around dependencies and runtime 2021-02-04 11:54:27 +01:00
A.Unger f55a8092cb adjust imports 2021-02-04 11:46:32 +01:00
A.Unger 13dbfc6e6c update deps 2021-02-04 11:38:26 +01:00
A.Unger c981f513c8 Add 'ocis-graph/' from commit 'f1efaddc27c74c9de4509cd864fc673ffdf52e19'
git-subtree-dir: ocis-graph
git-subtree-mainline: 8146241777
git-subtree-split: f1efaddc27
2021-02-04 11:31:18 +01:00
Willy Kloucek 8146241777 Merge pull request #1591 from owncloud/fix_continuous_deployment_docs
[docs-only] fix continuous deployment docs
2021-02-03 10:19:00 +01:00
Willy Kloucek 6e0efcbe04 fix continuous deployment docs 2021-02-03 09:02:17 +01:00
Willy Kloucek f9c48e1f98 Automated changelog update [skip ci] 2021-02-02 13:55:03 +00:00
Willy Kloucek 77533a94a3 Merge pull request #1381 from owncloud/switch_to_opencontainer_annotation
switch to opencontainers annotation for docker images
2021-02-02 14:54:33 +01:00
Willy Kloucek 8e22270608 rework basic remot setup 2021-02-02 14:45:39 +01:00
Phil Davis df43388e88 Merge pull request #1582 from owncloud/docs_and_fix_cd
[docs-only] document and fix continuous deployment
2021-02-02 18:05:53 +05:45
Phil Davis 7fd1fef3f3 Update docs/ocis/deployment/continuous_deployment.md 2021-02-02 18:02:45 +05:45
Phil Davis 158f68f80f Merge pull request #1579 from owncloud/fix_keycloak_realm_import
[docs-only] fix keycloak realm import domain
2021-02-02 17:56:42 +05:45
David Christofas 98c90e9deb Merge pull request #1583 from owncloud/dependabot_tweak
lower the open pull request limit for dependabot
2021-02-02 12:45:10 +01:00
David Christofas 018f5dc32a lower the open pull request limit for dependabot 2021-02-02 11:16:59 +01:00
Willy Kloucek 370cd1c8f6 fix image.documentation link 2021-02-02 11:10:56 +01:00
Willy Kloucek 46a2282e47 add changelog 2021-02-02 11:01:37 +01:00
Willy Kloucek 2af8d92b42 Merge branch 'master' into switch_to_opencontainer_annotation 2021-02-02 10:57:49 +01:00
Willy Kloucek f6763be9f0 remove CREATED label 2021-02-02 10:56:35 +01:00
Willy Kloucek d01e629c0e document and fix continuous deployment 2021-02-02 10:36:07 +01:00
Phil Davis 2c793fb1d9 Merge pull request #1581 from owncloud/bump-commit-ids-20210201
[tests-only] Bump core and web commit ids for testing
2021-02-02 12:22:51 +05:45
Phil Davis c059a2d41e Bump core and web commit ids for testing 2021-02-02 08:50:13 +05:45
Willy Kloucek bb05da0bf1 Merge pull request #1568 from owncloud/bring_back_identifier-registration.yaml
bring back identifier-registration.yaml, strip commented stuff, rebuild embed.go
2021-02-01 17:04:48 +01:00
Willy Kloucek 686f496c31 bring back config file, strip commented stuff, fix makefile and rebuild 2021-02-01 14:33:55 +01:00
Phil Davis 35f7cd52b8 Merge pull request #1575 from owncloud/bump-commit-ids-20210130
[tests-only] Bump commit ids for tests
2021-02-01 18:39:54 +05:45
Willy Kloucek 9e3995ecc9 fix keycloak realm import domain 2021-02-01 13:33:01 +01:00
Phil Davis 01d5020b5a Adjust web expected-failures 2021-02-01 17:45:01 +05:45
Phil Davis 55b3464c49 Adjust API expected-failures 2021-02-01 17:45:01 +05:45
Phil Davis 10629889f2 Fix links in expected-failures 2021-02-01 17:45:01 +05:45
Phil Davis 5b8f5eb16d Bump web commit id for tests 2021-02-01 17:45:01 +05:45
Phil Davis 9bfc8693f2 Bump core commit id for tests 2021-02-01 17:45:01 +05:45
Jörn Friedrich Dreyer 10b5611167 Automated changelog update [skip ci] 2021-02-01 11:30:34 +00:00
Jörn Friedrich Dreyer 4ce67a48e7 Merge pull request #1374 from ishank011/upload-capabilities
Use a default protocol parameter instead of explicitly disabling tus
2021-02-01 12:29:24 +01:00
Willy Kloucek 17c4e9b1c5 Merge pull request #1489 from owncloud/continuous_deployment
continuous deployment
2021-02-01 10:56:03 +01:00
Willy Kloucek f3404ab202 fix typo 2021-02-01 09:21:03 +01:00
Phil Davis 85ee5def6e Merge pull request #1574 from owncloud/remove_misplaced_changelog_item
[docs-only] remove misplaced changelog item
2021-01-30 14:28:00 +05:45
Jörn Friedrich Dreyer 45bb22863e Automated changelog update [skip ci] 2021-01-29 19:18:26 +00:00
Jörn Friedrich Dreyer 91b41586b8 Merge pull request #1186 from ishank011/home_mapping
Functionality to map home directory to different storage providers
2021-01-29 20:16:34 +01:00
Willy Kloucek b7f02b0d1c Automated changelog update [skip ci] 2021-01-29 18:08:28 +00:00
Willy Kloucek 916746c719 remove misplaced changelog item 2021-01-29 19:06:09 +01:00
Willy Kloucek eb72c5d96a Merge pull request #1546 from ybr-nx/master
Use MICRO_REGISTRY_ADDRESS env var for etcd address
2021-01-29 19:03:12 +01:00
Phil Davis fb8a744dcb Merge pull request #1565 from owncloud/update-js-deps
Update JS dependencies
2021-01-29 23:42:36 +05:45
Willy Kloucek 6d78b361f8 Merge pull request #1567 from owncloud/disable_out-of-date-check
disable strict status check (set it to loose)
2021-01-29 17:42:28 +01:00
Willy Kloucek cfb6bf3ffc Merge branch 'master' into master 2021-01-29 17:42:01 +01:00
Benedikt Kulmann 8cfbbf77b3 Update JS dependencies 2021-01-29 22:02:04 +05:45
Jörn Friedrich Dreyer 14aa851ae0 Merge branch 'master' into upload-capabilities 2021-01-29 17:04:59 +01:00
Jörn Friedrich Dreyer a4480ed16e Merge branch 'master' into home_mapping 2021-01-29 17:04:51 +01:00
Willy Kloucek e69e2213e4 Merge branch 'master' into disable_out-of-date-check 2021-01-29 16:46:40 +01:00
Benedikt Kulmann b3062d1bd9 Merge pull request #1566 from owncloud/rename-cmd-to-idp
Rename konnectd to idp
2021-01-29 16:46:26 +01:00
Willy Kloucek ce9177e21c disable strict status check (set it to loose) 2021-01-29 16:30:29 +01:00
Willy Kloucek 1d5a116e3c add continuous deployments 2021-01-29 16:14:24 +01:00
Ilja Neumann 085f6f0f4a Rename konnectd to idp 2021-01-29 20:39:41 +05:45
Phil Davis 92fbc158aa Merge pull request #1393 from owncloud/add_release_info
[docs-only] add release roadmap
2021-01-29 20:31:44 +05:45
Phil Davis 975737d5e6 Merge branch 'master' into add_release_info 2021-01-29 20:30:03 +05:45
Phil Davis e1394172db Merge pull request #1174 from owncloud/keycloak_oC_client_config
[docs-only] fix Keycloak deployment example
2021-01-29 20:28:53 +05:45
Willy Kloucek 5265ec4a06 Merge branch 'master' into add_release_info 2021-01-29 14:57:07 +01:00
Willy Kloucek 18a05e5fbc fix typo 2021-01-29 14:45:00 +01:00
Jörn Friedrich Dreyer f90e49ad6a Merge branch 'master' into home_mapping 2021-01-29 14:39:14 +01:00
Willy Kloucek 282a1c81c4 Merge branch 'master' into master 2021-01-29 14:32:13 +01:00
Phil Davis d60604366c Adjust expected-failures for differences between cs3org/reva and OCIS 2021-01-29 15:21:31 +02:00
Phil Davis 4855f6b6a4 Copy categorized expected-failures files from cs3org/reva 2021-01-29 15:21:31 +02:00
Ilja Neumann 6d8f551b02 Rename konnectd to idp 2021-01-29 15:21:31 +02:00
Ilja Neumann 304b8a9846 Fix IDP title 2021-01-29 15:21:31 +02:00
Ilja Neumann 7732949e3c Rename konnectd to IDP 2021-01-29 15:21:31 +02:00
Willy Kloucek 9186448344 fix config links 2021-01-29 15:21:31 +02:00
Jörn Friedrich Dreyer 94299861c1 Automated changelog update [skip ci] 2021-01-29 15:21:31 +02:00
Ishank Arora 823e99efa9 Check if roles are present in user object before looking those up 2021-01-29 15:21:31 +02:00
Erwin Palma fb2fe1dd19 Update CONFIGURATION.tmpl
The following link does no exist

[our repository](https://github.com/owncloud/ocis/tree/master/config),
2021-01-29 15:21:31 +02:00
Willy Kloucek 2e09c80855 Merge branch 'master' into keycloak_oC_client_config 2021-01-29 14:05:04 +01:00
Phil Davis 34d53304df Merge pull request #1548 from owncloud/categorize-expected-failures
[tests-only] Categorize expected-failures files
2021-01-29 18:42:08 +05:45
Jörn Friedrich Dreyer a7c153cb6f Merge branch 'master' into upload-capabilities 2021-01-29 13:55:54 +01:00
Jörn Friedrich Dreyer b36a52189a Merge branch 'master' into home_mapping 2021-01-29 13:55:48 +01:00
Phil Davis 2f73400328 Adjust expected-failures for differences between cs3org/reva and OCIS 2021-01-29 17:38:39 +05:45
Phil Davis 9ae6704d60 Copy categorized expected-failures files from cs3org/reva 2021-01-29 17:38:39 +05:45
Ilja Neumann 4aea7a997d Rename konnectd to idp 2021-01-29 12:31:16 +01:00
Ilja Neumann 9751387b1b Fix IDP title 2021-01-29 12:31:16 +01:00
Ilja Neumann 03cadf304c Rename konnectd to IDP 2021-01-29 12:31:16 +01:00
Ingmar Aasoja aca22cab42 Add changelog 2021-01-29 13:01:55 +02:00
Willy Kloucek a93caad947 Merge branch 'master' into add_release_info 2021-01-29 11:59:04 +01:00
Jörn Friedrich Dreyer 5b2c2d2485 Merge branch 'master' into upload-capabilities 2021-01-29 11:36:38 +01:00
Ishank Arora 5f818c6bae Add example 2021-01-29 11:36:31 +01:00
Ishank Arora 417defdbb9 Functionality to map home directory to different storage providers 2021-01-29 11:36:31 +01:00
Willy Kloucek a378f259eb Merge pull request #1545 from owncloud/erwinpalma-patch-1
[docs-only] Update CONFIGURATION.tmpl
2021-01-29 11:17:35 +01:00
Willy Kloucek ffdc10cebe Merge branch 'master' into erwinpalma-patch-1 2021-01-29 11:14:37 +01:00
Willy Kloucek 29129cdb9d fix config links 2021-01-29 11:14:03 +01:00
Ishank Arora c1839ce48e Use a default protocol parameter instead of explicitly disabling tus 2021-01-29 10:56:45 +01:00
Ingmar Aasoja f9954bb022 Remove duplicated code and use existant getRegistry() instead 2021-01-29 11:54:44 +02:00
Willy Kloucek 080d348d19 automatic realm import on startup 2021-01-29 10:49:33 +01:00
Willy Kloucek 5a74c1f49f add import and export 2021-01-29 10:49:33 +01:00
Willy Kloucek aaac06da5b let keycloak serve the well-known/openidconnect 2021-01-29 10:49:33 +01:00
Willy Kloucek 8ed2dedf4c fix ocis-net 2021-01-29 10:49:33 +01:00
Willy Kloucek b5d586fd89 add clients 2021-01-29 10:49:33 +01:00
Jörn Friedrich Dreyer 414b635433 Automated changelog update [skip ci] 2021-01-29 09:46:37 +00:00
Jörn Friedrich Dreyer 1b9126ad48 Merge pull request #1388 from ishank011/roles-fix
Check if roles are present in user object before looking those up
2021-01-29 10:44:36 +01:00
Ishank Arora 30c80b0923 Check if roles are present in user object before looking those up 2021-01-28 17:25:59 +01:00
Ingmar Aasoja 5c235be89b Use MICRO_REGISTRY_ADDRESS env var for etcd address 2021-01-28 16:12:08 +02:00
Erwin Palma 18426be9a2 Update CONFIGURATION.tmpl
The following link does no exist

[our repository](https://github.com/owncloud/ocis/tree/master/config),
2021-01-28 15:05:01 +01:00
Artur Neumann 4fa73662ed Merge pull request #1535 from owncloud/bump-commit-id-20210126
[tests-only] Bump commit ids for tests
2021-01-28 14:11:56 +05:45
Phil Davis 6f27c726ce Adjust expected-failures 2021-01-28 13:13:47 +05:45
Phil Davis 5751b08266 Bump commit ids for tests 2021-01-28 13:08:36 +05:45
Phil Davis 235a79ff12 Merge pull request #1543 from owncloud/restore-tests
[tests-only] Restore test files removed in PR #1488
2021-01-28 12:54:16 +05:45
Phil Davis dfb4eb11cb Rename apiOcisSpecific to apiBugDemonstration 2021-01-28 12:03:01 +05:45
Phil Davis 924246c0a6 Rename apiBasic to apiAccountsHashDifficulty 2021-01-28 11:56:07 +05:45
saw-jan 5a44f83bbf restore test files removed in PR #1488 2021-01-28 11:40:12 +05:45
Phil Davis 5dac7ae5c4 Automated changelog update [skip ci] 2021-01-28 05:52:15 +00:00
Phil Davis 54c4a73c8e Merge pull request #1540 from owncloud/bump-gherkin-4.7.1
[tests-only] Bump behat/gherkin to 4.7.1
2021-01-28 11:36:23 +05:45
Phil Davis 498a21cf0a [tests-only] Bump behat/gherkin to 4.7.1 2021-01-28 10:19:30 +05:45
Phil Davis 3c78241b98 Merge pull request #1539 from pascalwengerter/fix-ocis-github-cases
[docs-only] Change (ocis,OCIS) to oCIS, unify GitHub branding
2021-01-28 09:08:06 +05:45
Phil Davis ae07429eea Apply suggestions from code review 2021-01-28 09:02:27 +05:45
Pascal Wengerter d7b1ecb3dc Change (ocis,OCIS) to oCIS, unify GitHub branding 2021-01-28 00:32:47 +00:00
Willy Kloucek 5dd3612ae1 Merge branch 'master' into add_release_info 2021-01-27 09:00:03 +01:00
Phil Davis 8dd28582cc Merge pull request #1536 from owncloud/update-ocis-install-doc
update docs to use latest ocis
2021-01-27 08:18:15 +05:45
Florian Schade 157fbb6143 update docs to use latest ocis 2021-01-26 18:42:32 +01:00
Patrick Maier c2bdf7878e Automated changelog update [skip ci] 2021-01-26 14:44:21 +00:00
Patrick Maier a90cf56246 Update release_notes.md 2021-01-26 15:43:50 +01:00
Patrick Maier e5c78eca3f 1.1.0 release notes 2021-01-26 15:43:50 +01:00
Benedikt Kulmann 5c3300b083 Move changelog to version specific folder 2021-01-26 15:43:50 +01:00
Artur Neumann bec3290cb9 Merge pull request #1534 from owncloud/adjust-expected-failures-20210126
[tests-only] Adjust some text in expected-failures to match cs3org/reva
2021-01-26 19:06:18 +05:45
Phil Davis 4b53a1713b Adjust some text in expected-failures to match cs3org/reva 2021-01-26 18:05:21 +05:45
David Christofas daceb0279a Merge pull request #1491 from owncloud/setup-dependabot
add GitHub native dependabot config
2021-01-26 12:56:57 +01:00
David Christofas 8c73d16d2b add GitHub native dependabot config
See the documentation: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
2021-01-26 12:45:22 +01:00
Artur Neumann 8878aeeb6b Merge pull request #1488 from owncloud/delete-fixed-tests
[Tests-Only] Remove test scenarios that now have correct behavior
2021-01-26 17:17:28 +05:45
saw-jan 655ceab413 remove tests that show correct behavior 2021-01-26 16:20:21 +05:45
Alex Unger 02693de015 Automated changelog update [skip ci] 2021-01-26 10:14:25 +00:00
Alex Unger 6de9b60aa9 Merge pull request #1483 from owncloud/ocis-1485 2021-01-26 11:13:53 +01:00
Alex Unger 0b14422901 Merge branch 'master' into ocis-1485 2021-01-26 10:10:56 +01:00
Phil Davis 8fe2e7234d Merge pull request #1485 from owncloud/fix-links
[Tests-Only] Adjust the links in the expected-failures file
2021-01-26 14:35:47 +05:45
A.Unger 4877cb0d9c apply review comments 2021-01-26 09:18:45 +01:00
HariBhandari07 bf3fff31c2 [Tests-Only] Adjust the links in the expected-failures file 2021-01-26 13:30:53 +05:45
Jörn Friedrich Dreyer 65bc3f1f7f Automated changelog update [skip ci] 2021-01-25 19:51:25 +00:00
Jörn Friedrich Dreyer 706a58c58e Merge pull request #1482 from owncloud/update-reva-for-checksums
update reva to 0c10b333ee69
2021-01-25 20:43:50 +01:00
Phil Davis 4611cc2db4 Adjust expected-failures 2021-01-25 21:58:21 +05:45
A.Unger 70206b7c2f fix staticcheck 2021-01-25 16:06:22 +01:00
A.Unger 49b19418d2 added changelog 2021-01-25 16:06:22 +01:00
A.Unger 1a38554d32 port README.md 2021-01-25 16:06:22 +01:00
A.Unger e50ee6e002 move refs/pman over to owncloud/ocis/ocis/pkg/runtime 2021-01-25 16:06:22 +01:00
Jörn Friedrich Dreyer 75984383d6 update reva to 0c10b333ee69
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-01-25 15:05:48 +00:00
Phil Davis 1404a8beaa Merge pull request #1480 from owncloud/pin-behat-gherkin
[tests-only] Pin behat/gherkin because of Gherkin issue 187
2021-01-25 20:48:45 +05:45
Phil Davis b3636eed8b Adjust expected-failures 2021-01-25 19:55:34 +05:45
Phil Davis b8ea851fa9 Bump CORE_COMMITID to pin Behat/Gherkin v4.6.2 2021-01-25 18:53:47 +05:45
Phil Davis 0ec1bd7782 Pin behat/gherkin because of Gherkin issue 187 2021-01-25 18:00:53 +05:45
Willy Kloucek 47d73572d0 add review changes from phil-davis 2021-01-25 09:13:33 +01:00
Phil Davis 1c83fa033a Merge pull request #1398 from owncloud/docs_tls_go_default
[docs-only] Make cert handling in the docs more clear.
2021-01-25 12:26:41 +05:45
Klaas Freitag 71dfb4e3ae Make cert handling in the docs more clear. 2021-01-24 14:38:48 +01:00
Willy Kloucek 9e68275730 Merge pull request #1380 from owncloud/disable_traefik_dashboard_for_deployment_examples
[docs-only] disable Traefik dasboard as default for deployment examples
2021-01-23 10:26:40 +01:00
Willy Kloucek eac9e11063 Merge branch 'master' into disable_traefik_dashboard_for_deployment_examples 2021-01-23 10:25:50 +01:00
Willy Kloucek eb634d2d76 Merge pull request #1377 from owncloud/add_log_rotation_deploy_examples
[docs-only] add log rotation to deploy examples
2021-01-23 10:25:42 +01:00
Willy Kloucek 2575465591 Merge branch 'master' into disable_traefik_dashboard_for_deployment_examples 2021-01-23 10:21:03 +01:00
Willy Kloucek 94c65c6945 Merge branch 'master' into add_log_rotation_deploy_examples 2021-01-23 10:20:47 +01:00
Willy Kloucek 36441c864a add release roadmap 2021-01-22 20:17:21 +01:00
Phil Davis c2f154f7cd Automated changelog update [skip ci] 2021-01-22 11:37:47 +00:00
Phil Davis c18bae9061 Update WEB_COMMITID to latest 2021-01-22 12:36:41 +01:00
Ilja Neumann 30286fa434 Adjust expected failures 2021-01-22 12:36:41 +01:00
Ilja Neumann cf9dd65927 go mod tidy 2021-01-22 12:36:41 +01:00
Ilja Neumann 777c29fc35 Update reva to v1.5.1 2021-01-22 12:36:41 +01:00
Willy Kloucek f2e0d8e1a8 Merge branch 'master' into disable_traefik_dashboard_for_deployment_examples 2021-01-22 09:39:35 +01:00
Phil Davis 94edf1001a Merge pull request #1384 from owncloud/bump-core-commit-38325
[tests-only] Bump core commit id to include tests in core PR 38325
2021-01-22 14:12:46 +05:45
Willy Kloucek 888bea54ad switch to local log driver 2021-01-22 08:51:20 +01:00
Willy Kloucek 414add4358 Merge branch 'master' into add_log_rotation_deploy_examples 2021-01-22 08:27:53 +01:00
Willy Kloucek 66f4139627 Merge branch 'master' into switch_to_opencontainer_annotation 2021-01-22 08:24:53 +01:00
Phil Davis c7d369cb12 Bump core commit id to include tests in core PR 38325 2021-01-22 13:02:39 +05:45
Phil Davis 0f455e5eb2 Merge pull request #1383 from owncloud/bump-commit-ids-20210122
[tests-only] Bump commit ids for tests
2021-01-22 12:27:26 +05:45
Phil Davis 4836d558dc Bump commit ids for tests 2021-01-22 10:48:47 +05:45
Willy Kloucek 7685ed962e switch to opencontainers annotation for docker images (https://github.com/opencontainers/image-spec/blob/master/annotations.md) 2021-01-21 22:23:17 +01:00
Willy Kloucek 3786104739 disable Traefik dasboard as default for deployment examples 2021-01-21 19:07:55 +01:00
Willy Kloucek 1418961a8b Merge branch 'master' into add_log_rotation_deploy_examples 2021-01-21 17:18:52 +01:00
Phil Davis e528631733 Automated changelog update [skip ci] 2021-01-21 15:50:43 +00:00
Phil Davis 90cfa1e031 Merge pull request #1375 from owncloud/add_volume_docker_image
add volume to docker image
2021-01-21 21:35:06 +05:45
Willy Kloucek 833d0e4d79 Merge branch 'master' into add_volume_docker_image 2021-01-21 16:00:03 +01:00
Willy Kloucek 623f98d989 add log rotation to deploy examples 2021-01-21 15:58:52 +01:00
Willy Kloucek afe098e5b1 Automated changelog update [skip ci] 2021-01-21 14:38:30 +00:00
Willy Kloucek 6329d1bdac Merge pull request #1366 from owncloud/add_expose_docker_image
add expose to docker images
2021-01-21 15:37:52 +01:00
Willy Kloucek f21af25ce6 Merge branch 'master' into add_volume_docker_image 2021-01-21 15:11:48 +01:00
Willy Kloucek 49e806e157 add volume to docker image 2021-01-21 14:49:19 +01:00
Willy Kloucek 1a18a496b9 add expose to docker images 2021-01-21 19:23:07 +05:45
Phil Davis 27d1783587 Merge pull request #1371 from owncloud/gitignore-drone-yml
[tests-only] do not let someone accidentally commit a local .drone.yml
2021-01-21 19:21:12 +05:45
Phil Davis 50e9df7094 do not let someone accidentally commit a local .drone.yml 2021-01-21 17:28:50 +05:45
Phil Davis 1bc644fb00 Merge pull request #1369 from owncloud/bump-commit-ids-20210121
[tests-only] Bump commit ids for tests
2021-01-21 17:23:38 +05:45
Phil Davis a650453d94 Bump commit ids for tests 2021-01-21 16:15:28 +05:45
Hari Bhandari e51223b54a Merge pull request #1348 from owncloud/convert-to-md
[Tests-Only] Convert expected failure file to markdown
2021-01-21 11:38:15 +05:45
HariBhandari07 c4d4e53ec4 Remove passing scenarios and add failing scenarios to expected failure 2021-01-21 10:38:51 +05:45
HariBhandari07 6b071c6a0d Bump to the latest core and web commit 2021-01-21 10:38:51 +05:45
Phil Davis 1e72720512 Minor format and spelling in expected-failures 2021-01-21 10:38:51 +05:45
HariBhandari07 81dd9654fb Fix expected failure line number 2021-01-21 10:38:51 +05:45
HariBhandari07 192a847f2c [Tests-Only] Convert expected failure file to markdown 2021-01-21 10:38:51 +05:45
Phil Davis 1a857e4988 Merge pull request #1368 from owncloud/add-nightwatch-vrt-to-accounts
[tests-only] Add nightwatch-vrt to accounts package.json
2021-01-21 10:35:53 +05:45
Phil Davis ea9c11fabf Add nightwatch-vrt to accounts package.json 2021-01-21 09:00:59 +05:45
Florian Schade b1d0fbbd3e Automated changelog update [skip ci] 2021-01-20 23:05:36 +00:00
Florian Schade 03c1416a4a update roles cache to use sync.cache
add tests for roles cache
add changelog
use strings in sync cache tests
2021-01-21 00:04:25 +01:00
Florian Schade 03867f4230 Automated changelog update [skip ci] 2021-01-20 17:26:11 +00:00
Florian Schade 0aa389aa9e add changelog 2021-01-20 18:25:19 +01:00
Florian Schade 4f0d8b5e3c move k6 into cdperf
remove k6 from ci
2021-01-20 18:25:19 +01:00
Florian Schade f8891bd6e4 Automated changelog update [skip ci] 2021-01-20 14:42:25 +00:00
Florian Schade f004cc0e73 add changelog 2021-01-20 15:41:36 +01:00
Florian Schade 8c9f9b6dfc bump go version to 1.15 2021-01-20 15:41:36 +01:00
Phil Davis b0119f1c7f Merge pull request #1360 from owncloud/docs-typos
[docs-only] Fix typos in docs
2021-01-20 17:35:40 +05:45
Phil Davis 410a5082f1 Fix typos in docs 2021-01-20 16:43:02 +05:45
Florian Schade 42677b36c1 Automated changelog update [skip ci] 2021-01-19 22:27:36 +00:00
Florian Schade 873fbcb557 rename NRWMutex to NameRWMutex
update changelog
2021-01-19 23:23:41 +01:00
Florian Schade 4f80541b9f increase test timing cor sync.cache 2021-01-19 23:23:41 +01:00
Florian Schade af870e005e add more tests and benchmark for cache
refactor cache to use atomic uint
2021-01-19 23:23:41 +01:00
Florian Schade 806d000f22 update drone go images to webhippie/golang:1.15 2021-01-19 23:23:41 +01:00
Florian Schade f13530425a move cache to sync package
rollback indexer map
use sync.pool for cache entries
add tests for cache
remove main locks from nrwmutex and use sync.map and sync.pool instead
bump dockerfile go version
2021-01-19 23:23:41 +01:00
Florian Schade b81156fc57 add comments to NRWMutex 2021-01-19 23:23:41 +01:00
Florian Schade a02fb890f7 remove locking from accounts service
add a cached named rwlock pkg
use sync.map in the cache pkg
use named rwlock in indexer pkg
use sync.map in indexer pkg
remove husky
2021-01-19 23:23:41 +01:00
Phil Davis f97f0d7342 Merge pull request #1221 from owncloud/add-onlyoffice-docker
Add onlyoffice mount on docker-compose setup
2021-01-18 13:40:30 +05:45
Dipak Acharya 3e7c30d12a Add onlyoffice mount on docker-compose setup 2021-01-18 11:38:02 +05:45
Artur Neumann 840b353d03 Merge pull request #1213 from owncloud/core-commit-20200114
[tests-only] Bump core and web commit for tests
2021-01-18 09:08:35 +05:45
Phil Davis f579406619 Bump core and web commit ids
The latest web acceptance tests expect the expected-failures file to be
in Markdown format. So rename and reformat the expected-failures.
2021-01-16 21:07:14 +05:45
Phil Davis 2d67900657 Merge pull request #1219 from owncloud/pin_alpine_version
pin alpine version
2021-01-16 21:06:28 +05:45
Willy Kloucek 0a94540458 pin alpine version 2021-01-16 12:49:47 +01:00
Alex Unger c9c198279c Merge pull request #1211 from owncloud/gh-templates 2021-01-15 18:53:37 +01:00
Alex UngerandPhil Davis 72f3a7be8d Update .github/pull_request_template.md
Co-authored-by: Phil Davis <phil@jankaritech.com>
2021-01-15 15:53:08 +01:00
Michael Barz de292b2b7b change glob pattern 2021-01-14 20:11:21 +01:00
A.Unger a3ed0eaf87 codacy: ignore .github/ 2021-01-14 17:09:20 +01:00
A.Unger bc06091e79 add expected behavior step 2021-01-14 16:53:35 +01:00
Alex UngerandBenedikt Kulmann de50dd7d15 Apply suggestions from code review
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2021-01-14 16:27:32 +01:00
A.Unger af2773edb9 grammar 2021-01-14 13:20:34 +01:00
A.Unger 162bb48f01 stale bot act only on issues 2021-01-14 13:09:29 +01:00
A.Unger 2e8f6f8085 add config for stale boty 2021-01-14 13:05:05 +01:00
A.Unger 69e030b4d0 wording 2021-01-14 12:37:20 +01:00
A.Unger b88ebb300a use headers 2021-01-14 12:22:14 +01:00
A.Unger 27bbc785d3 add PULL_REQUEST_TEMPLATE 2021-01-14 10:21:46 +01:00
Alex Unger 9d753091f3 Update issue templates 2021-01-14 10:10:04 +01:00
Phil Davis 48ba063fc2 Merge pull request #1207 from owncloud/fix-sonar-exclude
fix sonar exclude for generated protobuf files
2021-01-14 12:14:25 +05:45
David Christofas 2f4fcfef2d fix sonar exclude for generated protobuf files 2021-01-14 11:06:42 +05:45
Artur Neumann 5035ec43bd Merge pull request #1208 from owncloud/bump-web-commit-id-20200114
[tests-only] Bump WEB commit id
2021-01-14 11:04:24 +05:45
Phil Davis baa2ede612 Bump WEB commit id 2021-01-14 09:30:37 +05:45
Artur Neumann 864ee52173 Merge pull request #1206 from owncloud/update-commit-ids-for-tests-20210113
[tests-only] Bump core and web commit ids for tests
2021-01-14 09:13:15 +05:45
Phil Davis 8062a01269 Adjust expected-failures 2021-01-14 00:45:38 +05:45
Phil Davis 249a3f27e7 Bump core and web commit ids for tests 2021-01-13 21:18:45 +05:45
David Christofas 9f00ff76ed Automated changelog update [skip ci] 2021-01-13 13:56:41 +00:00
David Christofas 133ecf4fb4 Merge pull request #1203 from owncloud/secure-state
generate cryptographically secure state token
2021-01-13 14:52:54 +01:00
David Christofas f230ea7fea generate cryptographically secure state token 2021-01-13 14:00:35 +01:00
Benedikt Kulmann 1721b78913 Automated changelog update [skip ci] 2021-01-13 11:55:01 +00:00
Benedikt Kulmann 638b7a1c9f Merge pull request #1191 from owncloud/update-web-1.0.1
Update web to 1.0.1
2021-01-13 12:54:19 +01:00
Phil Davis 32b1597ca5 Update tag reference in changelog 2021-01-13 15:57:45 +05:45
Benedikt Kulmann 2b00f833dd Adjust expected failures 2021-01-13 09:25:10 +01:00
Benedikt Kulmann 17a1d29d6a Fix server url for js client in accounts and settings 2021-01-13 09:23:49 +01:00
Benedikt Kulmann 20e150228c Adjust expected failures 2021-01-13 09:23:49 +01:00
Benedikt Kulmann ac63ab4b36 Update go.sum 2021-01-13 09:23:49 +01:00
Benedikt Kulmann e18d286e8a Fix server url usage in settings and accounts 2021-01-13 09:23:48 +01:00
Benedikt Kulmann 7ad4130ef7 Update web to 1.0.1 2021-01-13 09:23:48 +01:00
Michael Barz 8462799667 Merge pull request #1202 from owncloud/sonar-excludes
[Tests-Only] clean up sonar excludes
2021-01-12 22:40:42 +01:00
David Christofas 4701fdfccc Merge pull request #1181 from owncloud/dependabot/npm_and_yarn/accounts/axios-0.21.1
Bump axios from 0.19.2 to 0.21.1 in /accounts
2021-01-12 18:11:56 +01:00
dependabot[bot] 943b13b8d4 Bump axios from 0.19.2 to 0.21.1 in /accounts
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-12 16:26:29 +00:00
David Christofas 65e9153a2d [Tests-Only] clean up sonar excludes 2021-01-12 17:17:13 +01:00
Michael Barz 459df00cd2 Add default organisation wide label set and remove existing 2021-01-12 16:39:10 +01:00
David Christofas f5856e6fa2 Merge pull request #1182 from owncloud/dependabot/npm_and_yarn/onlyoffice/axios-0.21.1
Bump axios from 0.19.2 to 0.21.1 in /onlyoffice
2021-01-12 16:01:30 +01:00
David Christofas 92ed1ff8e1 Merge pull request #1183 from owncloud/dependabot/npm_and_yarn/settings/axios-0.21.1
Bump axios from 0.19.2 to 0.21.1 in /settings
2021-01-12 16:00:49 +01:00
Artur Neumann 8fa89f5067 Merge pull request #1196 from owncloud/update-test-commit-ids-20200111
[tests-only] Update WEB_COMMITID for tests
2021-01-12 09:20:41 +05:45
Phil Davis 168d8a7fbc Adjust expected-failures-webUI for shareWithUsers test changes 2021-01-11 20:17:09 +05:45
Phil Davis 653aeef460 Adjust expected-failures-webUI for imageMediaViewer test changes 2021-01-11 20:14:21 +05:45
Phil Davis cf424e9bb6 Add expected-failures-webUI for OCIS issue 1124 2021-01-11 19:12:18 +05:45
Phil Davis 91bd401a8a Update WEB_COMMITID for tests 2021-01-11 18:49:39 +05:45
Phil Davis 6fdb44c687 Automated changelog update [skip ci] 2021-01-11 12:53:19 +00:00
Phil Davis cf7692240d Merge pull request #1194 from owncloud/reva-f2b63bfd6825e
Update reva to v1.4.1-0.20210111080247
2021-01-11 18:37:17 +05:45
Phil Davis 6e47fe799c adjust expected-failures-webUI for changes dues to reva PRs 1368 and 1388 2021-01-11 17:47:31 +05:45
Phil Davis 42ff1af2d6 delete local bug-demo scenarios fixed by reva PR 1368 2021-01-11 17:32:10 +05:45
Phil Davis 8d0aa17ba5 remove scenarios fixed by reva PR 1368 from expected-failures 2021-01-11 16:55:04 +05:45
Phil Davis ab1ed20821 remove scenarios fixed by reva PR 1388 from expected-failures 2021-01-11 16:43:51 +05:45
Jörn Friedrich Dreyer 3240e20641 Update reva to v1.4.1-0.20210111080247
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-01-11 09:48:41 +00:00
Phil Davis 536376fa5e Merge pull request #1189 from owncloud/bump-core-commit-20200108
[tests-only] Bump core commit id for API tests
2021-01-08 20:22:56 +05:45
Phil Davis f0e269c618 Add new moveReceivedShare expected failures 2021-01-08 17:36:10 +05:45
Phil Davis 7e9f8c5dbb Bump core commit id for API tests 2021-01-08 17:12:40 +05:45
dependabot[bot] 4932cae85f Bump axios from 0.19.2 to 0.21.1 in /settings
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-06 10:36:23 +00:00
dependabot[bot] c415360566 Bump axios from 0.19.2 to 0.21.1 in /onlyoffice
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-06 10:28:20 +00:00
Phil Davis 17a2270508 Merge pull request #1172 from owncloud/bumpCoreTestsCommitId20210105
[tests-only] bump core commit id
2021-01-06 09:43:46 +05:45
Phil Davis ef1cc5f9cd Bump commit id again for core PR 38268 2021-01-06 08:51:56 +05:45
Artur Neumann 75a86ed7f4 bump core commit id 2021-01-05 14:53:15 +05:45
Artur Neumann 7f19d24bac Merge pull request #1170 from owncloud/bump-WEB_COMMITID-2021-01-01
[tests-only] Bump WEB_COMMITID to enable many more webUI test scenarios
2021-01-01 18:15:44 +05:45
Phil Davis 10079ba74d Bump WEB_COMMITID to enable many more webUI test scenarios 2021-01-01 17:08:34 +05:45
Phil Davis 7662f86c47 Merge pull request #1168 from owncloud/bump-commit-id-20201231
[tests-only] Bump core and web commit ids for tests
2021-01-01 14:09:18 +05:45
Phil Davis 7b20eb3401 Add expected-failures for webUI tests 2021-01-01 13:28:34 +05:45
Phil Davis c15b2940b6 Bump core and web commit ids for tests 2021-01-01 13:28:34 +05:45
Michael Barz e90c4801a7 Merge pull request #1159 from owncloud/deplyoment_examples_monitoring_tracing
[docs-only] add monitoring and tracing for ocis_traefik
2020-12-30 18:51:23 +01:00
Willy Kloucek 2ddde64205 add documentation 2020-12-30 17:13:15 +01:00
Willy Kloucek 3b636d2540 Merge pull request #1167 from owncloud/change_badges
[docs-only] change badges
2020-12-30 16:02:21 +01:00
Willy Kloucek e05f714691 change badges 2020-12-30 15:59:23 +01:00
Willy Kloucek dec6008d10 Merge pull request #1162 from owncloud/clean_sonarcloud_config
[CI-only] fix sonarcloud config
2020-12-30 13:36:39 +01:00
Willy Kloucek 48f8bf3ea2 fix .env doc 2020-12-30 13:35:43 +01:00
Willy Kloucek 01ae463c67 disable metrics by default 2020-12-30 10:27:35 +01:00
Willy Kloucek 0bd5327b43 also add for other examples 2020-12-30 08:12:31 +01:00
Willy Kloucek 1b6d8d6c52 add monitoring and tracing for ocis_traefik 2020-12-30 08:12:31 +01:00
Willy Kloucek 4053702758 change pull to pull_request 2020-12-30 08:06:58 +01:00
Willy Kloucek d87d1f4e82 fix always true condition 2020-12-30 07:21:17 +01:00
Willy Kloucek e58b47e456 ignore protobuf generated files and go test files 2020-12-29 15:46:29 +01:00
Willy Kloucek 5c72d915ee fix sonarcloud run for master, remove unneeded configs, rework makefile 2020-12-29 15:46:29 +01:00
Willy Kloucek d964f2f6b1 Merge pull request #1160 from owncloud/simplify_deplyoment_examples
[docs-only] simplify deployment examples
2020-12-28 16:51:04 +01:00
Jörn Friedrich Dreyer eb2143d3ec Merge pull request #1157 from owncloud/enable_multiple_env_vars_in_docs
[docs-only] add multiple env vars to templates
2020-12-28 14:23:21 +01:00
Phil Davis 578dc94e3b Merge pull request #1155 from owncloud/bump-test-commit-ids-20201223
[tests-only] Bump core commit id for tests
2020-12-28 12:47:23 +05:45
Willy Kloucek c7a620c4d5 add more 2020-12-28 07:36:08 +01:00
Phil Davis 19fdc2ac35 Add new expected-failures 2020-12-28 11:50:17 +05:45
Phil Davis b1314eb6ef Bump WEB_COMMITID for UI tests 2020-12-28 11:50:17 +05:45
Phil Davis a34f802ff7 Bump core commit id for tests 2020-12-28 09:01:16 +05:45
Benedikt Kulmann ca6d59d7c5 Merge pull request #1142 from owncloud/small-refactoring
small refactorings of test code and some methods
2020-12-24 06:06:22 +01:00
Willy Kloucek 3eb9e122a4 remove unneeded settings 2020-12-23 23:36:00 +01:00
Jörn Friedrich Dreyer 986b7a82b3 Automated changelog update [skip ci] 2020-12-23 16:31:28 +00:00
Jörn Friedrich Dreyer 5689daf864 Merge pull request #1148 from owncloud/add_ocis_url_env
add OCIS_URL env var
2020-12-23 17:25:24 +01:00
Jörn Friedrich Dreyer 652448f5f1 Merge branch 'add_ocis_url_env' of github.com:owncloud/ocis into add_ocis_url_env 2020-12-23 12:00:49 +00:00
Jörn Friedrich Dreyer 36d86aa87e extract handleOriginalAction and check if Before() exists before calling it
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-23 11:59:29 +00:00
Phil Davis 335aa2d5b3 Merge pull request #1158 from owncloud/update-testing.md
[docs-only] Update docs about CORE_COMMITID and CORE_BRANCH
2020-12-23 17:20:21 +05:45
Phil Davis 416aa821f5 Update docs about CORE_COMMITID and CORE_BRANCH 2020-12-23 17:17:07 +05:45
Jörn Friedrich DreyerandArtur Neumann b2e827f4e9 Update changelog/unreleased/add-ocis-url-env.md
Co-authored-by: Artur Neumann <artur@jankaritech.com>
2020-12-23 12:11:36 +01:00
Jörn Friedrich Dreyer 63ae28fff1 align commands to always execute the original Before()
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-23 10:52:22 +00:00
Jörn Friedrich Dreyer f48b3f4ef9 sanitize url for konnectd template
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-23 09:35:49 +00:00
Dipak Acharya d08958619e Merge pull request #1156 from owncloud/bump-ui-test-commit-id-20201223
[tests-only] Bump web commit id for UI tests
2020-12-23 14:22:21 +05:45
Willy Kloucek 12897e61cb add multiple env vars to templates 2020-12-23 09:19:32 +01:00
Phil Davis 95603951fc Bump web commit id for UI tests 2020-12-23 13:44:57 +05:45
Ilja Neumann 352034d9eb Automated changelog update [skip ci] 2020-12-22 16:28:27 +00:00
Ilja Neumann cd2eb0e39b Accounts UserBackend tests 2020-12-22 17:27:55 +01:00
Ilja Neumann 0d990898b8 Fix gid was overwritten by roles 2020-12-22 17:27:55 +01:00
Jörn Friedrich Dreyer 26c82b5551 add changelog
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-22 15:26:24 +00:00
Ilja Neumann 1b29e56d12 account_resolver_test.go 2020-12-22 16:16:57 +01:00
Jörn Friedrich Dreyer 03e1f95d49 fix lint
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-22 15:10:23 +00:00
Jörn Friedrich Dreyer ff42549897 use identifier-registration.yaml as template
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-22 15:09:30 +00:00
Jörn Friedrich Dreyer af9900cefd use paths in Makefile targets
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-22 15:07:50 +00:00
Willy Kloucek 6ce4bb739c Merge pull request #1152 from owncloud/dirkstascheit-patch-1
[docs-only] Update getting-started.md
2020-12-22 13:31:09 +01:00
Dirk Stascheit 5c60c1b62e Update getting-started.md
replaced the testing releases with the 1.0.0 in the curl lines
2020-12-22 12:52:37 +01:00
Willy Kloucek 7b6577f41c Merge pull request #1151 from owncloud/docker_based_acceptance_test_source
[Tests-only] use .drone.env for checking out tests in docker based acceptance tests
2020-12-22 10:59:10 +01:00
Phil Davis dc619974ed Merge pull request #1149 from owncloud/remove-commitid-drone
[CI] remove commit id from .drone.star file
2020-12-22 15:30:09 +05:45
Willy Kloucek 054c1151b2 use .drone.env for test reference 2020-12-22 10:07:25 +01:00
Dipak Acharya d6cb3ac273 [CI] remove commit id from .drone.star file 2020-12-22 12:04:47 +05:45
Jörn Friedrich Dreyer 7dbc1af76f add OCIS_URL env var
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-21 16:20:02 +00:00
Willy Kloucek 4c718eb91c Merge pull request #1143 from owncloud/rename_reva_to_proxy_where_applicable
rename reva to proxy where applicable
2020-12-21 10:09:29 +01:00
Willy Kloucek 73cf0fc36d rename reva to proxy where applicable 2020-12-21 09:15:38 +01:00
Artur Neumann f708e19d1b Merge pull request #1146 from owncloud/tusTests-resource-url
[tests-only] adjust TUS test using resource URL to current behaviour
2020-12-21 10:56:14 +05:45
swoichha 722e3808a9 adjust tus test using resource URL to curretn behaviour 2020-12-21 10:17:52 +05:45
Phil Davis 03273cc93f Merge pull request #1144 from owncloud/add_go_mod_tidy_make_step
add go mod tidy make step
2020-12-19 10:44:23 +05:45
Willy Kloucek 3c3964fd8e run go mod tidy for all extensions 2020-12-18 15:49:13 +01:00
Willy Kloucek d2e4c69aee add go-mod-tidy targets to Makefiles 2020-12-18 15:49:08 +01:00
Phil Davis 6fe8b6f3bd Merge pull request #1139 from owncloud/fix_ldap_deployment_example
Change ldap domain to dc=com
2020-12-18 20:02:28 +05:45
David Christofas cf69537d1b small refactorings of test code and some methods 2020-12-18 14:12:10 +01:00
Phil Davis 738a32f9b1 Merge pull request #1140 from owncloud/pin-minio-mc
[tests-only] pin mini/mc docker to work-around broken 'latest'
2020-12-18 16:17:38 +05:45
Phil Davis 40c59cd52d pin mini/mc docker to work-around broken 'latest' 2020-12-18 15:42:37 +05:45
Ilja Neumann a08a0afcfd Bind ldap-ports to localhost only for security reasons 2020-12-18 10:34:56 +01:00
Ilja Neumann 5ea1e97032 Change ldap domain to dc=com 2020-12-18 10:15:58 +01:00
Phil Davis cbd320c926 Merge pull request #1136 from owncloud/release-notes-corrections
[docs-only] minor improvements for release notes
2020-12-18 08:50:55 +05:45
Phil Davis 2c54d37270 Update docs/ocis/release_notes.md 2020-12-18 08:22:11 +05:45
Ilja Neumann 711701c28b Automated changelog update [skip ci] 2020-12-18 01:09:43 +00:00
Ilja Neumann 5e9d4d7286 Disable pretty logging by default for perf reasons 2020-12-18 02:08:44 +01:00
Patrick Maier 23226c53bd [docs-only] minor improvements for release notes 2020-12-17 22:18:11 +01:00
Patrick Maier fe7349c7e5 Merge pull request #1134 from owncloud/improve-release-notes
[docs-only] Improvements for release notes
2020-12-17 22:00:54 +01:00
Patrick Maier feb310aa89 [docs-only] Improvements for release notes 2020-12-17 21:50:35 +01:00
Benedikt Kulmann 20128ad02d Merge pull request #1131 from owncloud/reduce-thumbnails-logs
reduce warn logs
2020-12-17 20:47:10 +01:00
Michael Barz 2a4490f44c Merge pull request #1125 from owncloud/add-release-notes
[docs-only] Add oCIS 1.0 Release Notes
2020-12-17 18:08:12 +01:00
Michael Barz bb9febe0a0 Automated changelog update [skip ci] 2020-12-17 17:07:51 +00:00
Michael Barz 9907c9bee2 Merge pull request #1117 from owncloud/release-1.0.0
[with-benchmarks] Merge back after 1.0.0 Release
2020-12-17 18:07:12 +01:00
Michael Barz 43ad6b274e results from collective review 2020-12-17 18:05:54 +01:00
David Christofas b07acdb03d reduce warn logs
When we try to load the thumbnail from the store for the first time we expect it to fail so we shouldn't log with level warn.
2020-12-17 17:25:33 +01:00
Michael Barz 19f4e09e2d remove accidentally committed file 2020-12-17 17:20:36 +01:00
Phil Davis af34379a3c Merge pull request #1130 from owncloud/make_tracing_defaults_consistent
make tracing defaults consistent
2020-12-17 21:58:24 +05:45
Michael Barz 42c3b95382 change build date 2020-12-17 17:10:09 +01:00
Michael Barz a1df2c2944 release note improvements 2020-12-17 17:08:11 +01:00
Patrick Maier 6d88bb9d9a Update release_notes.md 2020-12-17 16:29:56 +01:00
Willy Kloucek 9c34174d45 make tracing defaults consistent 2020-12-17 15:47:47 +01:00
Patrick MaierandBenedikt Kulmann 30abd4a7fe Apply suggestions from code review
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2020-12-17 15:05:19 +01:00
Patrick MaierandPhil Davis 74499bb611 Apply suggestions from code review
Co-authored-by: Phil Davis <phil@jankaritech.com>
2020-12-17 14:20:06 +01:00
Michael Barz 444bfae32e urls and todos 2020-12-17 13:23:36 +01:00
Michael Barz 87a2149139 tabbed content 2020-12-17 12:58:14 +01:00
Patrick Maier 6dd68e0df8 Update release_notes.md 2020-12-17 12:54:30 +01:00
Patrick Maier d50571ecc4 Update release_notes.md 2020-12-17 12:42:58 +01:00
Phil Davis 53382a8734 Merge pull request #1111 from owncloud/run-tusTests-invalid-file-names
[tests-only] run tus test for file with invalid-name
2020-12-17 17:19:48 +05:45
Patrick Maier c7f8f2060c corrections 2020-12-17 12:07:24 +01:00
swoichha 80a1ca487a bump core commit id 2020-12-17 16:50:41 +05:45
Artur Neumann ec6359d7ad expected failures of new trashbin tests 2020-12-17 16:47:50 +05:45
Patrick Maier 67a4a1abfb Add oCIS 1.0 Release Notes 2020-12-17 11:45:44 +01:00
swoichha 9c1ac176ca added list of scenarios into expected failure file 2020-12-17 13:34:07 +05:45
swoichha 3e6fb93f20 run tus test for file with invalid-name 2020-12-17 13:30:35 +05:45
Phil Davis 43ab8bf4fd Merge pull request #921 from owncloud/docs-fix-ocis
[docs-only] make OCIS name consistent throught the docs
2020-12-16 19:57:39 +05:45
Phil Davis cc6bee23a5 Merge pull request #1114 from owncloud/individual-it-patch-1
[tests-only] fix test documentation
2020-12-16 19:56:43 +05:45
Dipak Acharya 808b2d7d2d [docs-only] make OCIS name consistent throught the docs 2020-12-16 19:49:19 +05:45
Artur Neumann e23a233e55 tests need to be executed from the oc10 repo 2020-12-16 19:17:43 +05:45
Artur Neumann bd5c864557 no LDAP or REDIS is needed to run tests 2020-12-16 19:17:43 +05:45
Alex Unger 37514f62de Automated changelog update [skip ci] 2020-12-16 12:43:46 +00:00
Jörn Friedrich DreyerandBenedikt Kulmann f6ac7b7863 Apply suggestions from code review
Co-authored-by: Benedikt Kulmann <benedikt@kulmann.biz>
2020-12-10 08:41:53 +01:00
Jörn Friedrich DreyerandPhil Davis da525aeb50 Oh my god? all the typos ...
so embarrassing. Thx @phil-davis

Co-authored-by: Phil Davis <phil@jankaritech.com>
2020-12-09 15:56:29 +01:00
Jörn Friedrich Dreyer 972ef91f57 correct github nicks 2020-12-09 15:54:29 +01:00
Jörn Friedrich DreyerandAlex Unger cca8cb4386 Apply suggestions from code review
Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com>
2020-12-09 15:48:11 +01:00
Jörn Friedrich Dreyer 7fa0bf1d92 Introduce ADR
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-12-09 14:08:39 +00:00
Jörn Friedrich Dreyer 85a7df32ea Automated changelog update [skip ci] 2020-07-23 09:30:06 +00:00
Jörn Friedrich Dreyer 91d8dcfc8b Merge pull request #7 from owncloud/use-alpine-latest
Use alpine:latest instead of alpine:edge in docker builds
2020-07-23 11:24:36 +02:00
Benedikt Kulmann ce2d766de6 Use alpine:latest instead of alpine:edge in docker builds 2020-07-23 11:00:55 +02:00
Jörn Friedrich Dreyer 017eeb40dc Merge pull request #6 from owncloud/update-ocis-pkg
update ocis-pkg to v2.0.1 and micro/cli to v2
2020-02-10 12:10:49 +01:00
Jörn Friedrich Dreyer 7140a4dfb1 update ocis-pkg to v2.0.1 and micro/cli to v2
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-02-10 12:04:23 +01:00
Michael Barz 2ca5030b08 Automated changelog update [skip ci] 2020-01-30 13:53:59 +00:00
Michael Barz d8d263c7f0 Update config.yml 2020-01-30 14:49:17 +01:00
Michael Barz 50f5056f7d Config for update-docs probot 2020-01-30 14:48:48 +01:00
Thomas Müller 78e556279e Merge pull request #4 from owncloud/feature/graph-1.7.10.3
Use graph.explorer 1.7.10.3
2020-01-28 11:49:49 +01:00
Thomas Müller e4a2221a93 Use graph.explorer 1.7.10.3 2020-01-28 11:42:54 +01:00
Thomas Müller bf345cff03 Merge pull request #3 from owncloud/bugfix/integrate-with-konnect
Integrate ocis-graph-explorer with ocis-konnect
2020-01-28 10:00:21 +01:00
Thomas Müller 950fb7e8b2 Integrate ocis-graph-explorer with ocis-konnect 2020-01-27 22:02:52 +01:00
Thomas Müller a1fd96f11d Merge pull request #1 from owncloud/add-client-id-flag
add client-id flag
2020-01-24 10:21:26 +01:00
Jörn Friedrich Dreyer bc43bfe578 add client-id flag
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-01-24 10:07:10 +01:00
Thomas Müller 3b2e1da63f Initial version 2020-01-23 12:16:37 +01:00
885 changed files with 47247 additions and 45257 deletions

No files matched your search

+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 directory stores Go modules with pinned buildable packages that are 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+
+114
View File
@@ -0,0 +1,114 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.1. 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)
# Bellow 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.3.1
$(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.3.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.3.1 "github.com/bwplotka/bingo"
BUF := $(GOBIN)/buf-v0.37.1
$(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.37.1"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v0.37.1 "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.25.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.25.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.25.0 "google.golang.org/protobuf/cmd/protoc-gen-go"
PROTOC_GEN_MICRO := $(GOBIN)/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9
$(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-20210217182006-0f0ace1a44a9"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9 "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.2.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.2.0"
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-openapiv2.mod -o=$(GOBIN)/protoc-gen-openapiv2-v2.2.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.15
require github.com/bwplotka/bingo v0.3.1
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
require github.com/bufbuild/buf v0.37.1 // cmd/buf
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
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.15
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.15
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.15
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.15
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.15
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.15
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.15
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.15
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.15
require google.golang.org/protobuf v1.25.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.15
require github.com/asim/go-micro/cmd/protoc-gen-micro/v3 v3.0.0-20210217182006-0f0ace1a44a9
+5
View File
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.15
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.15
require github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.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.15
require github.com/cespare/reflex v0.3.0
+41
View File
@@ -0,0 +1,41 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.1. 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.3.1"
BUF="${GOBIN}/buf-v0.37.1"
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.25.0"
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9"
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
PROTOC_GEN_OPENAPIV2="${GOBIN}/protoc-gen-openapiv2-v2.2.0"
REFLEX="${GOBIN}/reflex-v0.3.0"
+3 -2
View File
@@ -1,5 +1,6 @@
---
exclude_paths:
- '.github/**'
- 'CHANGELOG.md'
- '**/CHANGELOG.md'
- 'changelog/**'
@@ -7,8 +8,8 @@ exclude_paths:
- 'docs/**'
- '**/docs/**'
- '**/pkg/proto/**'
- 'konnectd/ui_config/**'
- 'konnectd/scripts/**'
- 'idp/ui_config/**'
- 'idp/scripts/**'
- 'settings/rollup.config.js'
- 'accounts/rollup.config.js'
- 'ocis/docker/eos-ocis/Dockerfile'
+7
View File
@@ -0,0 +1,7 @@
# The test runner source for API tests
CORE_COMMITID=90edbb40800b36fadc4aba6216a3fd16b559f1e3
CORE_BRANCH=master
# The test runner source for UI tests
WEB_COMMITID=da869f4cb36ea0a28ead87e57a61d7bbb639aab0
WEB_BRANCH=master
+251 -254
View File
@@ -1,28 +1,27 @@
config = {
'modules': {
'accounts': 'frontend',
'glauth':'',
'konnectd':'',
'ocis': '',
'web':'',
'ocis-pkg':'',
'ocs':'',
'proxy':'',
'settings':'frontend',
'storage':'',
'store':'',
'thumbnails':'',
'webdav':'',
'onlyoffice':'frontend'
},
'modules': [
# if you add a module here please also add it to the root level Makefile
'accounts',
'glauth',
'graph-explorer',
'graph',
'idp',
'ocis-pkg',
'ocis',
'ocs',
'onlyoffice',
'proxy',
'settings',
'storage',
'store',
'thumbnails',
'web',
'webdav',
],
'apiTests': {
'coreBranch': 'master',
'coreCommit': '27eaa32d777052d1d210647cd38895e647c48fed',
'numberOfParts': 10
},
'uiTests': {
'webBranch': 'master',
'webCommit': '5dae1886973ddbab0243e364800fa207fb716a20',
'suites': {
'webUIBasic': [
'webUILogin',
@@ -189,45 +188,42 @@ def main(ctx):
build_release_helpers = [
changelog(ctx),
docs(ctx),
refreshDockerBadges(ctx),
updateDeployment(ctx),
refreshDockerBadges(ctx)
]
if ctx.build.event == "cron":
pipelines = test_pipelines + [
benchmark(ctx),
pipelineDependsOn(
purgeBuildArtifactCache(ctx, 'ocis-binary-amd64'),
testPipelines(ctx) + [benchmark(ctx)]
testPipelines(ctx)
)
]
] + example_deploys(ctx)
elif \
(ctx.build.event == "pull" and '[docs-only]' in ctx.build.title) \
(ctx.build.event == "pull_request" and '[docs-only]' in ctx.build.title) \
or \
(ctx.build.event != "pull" and '[docs-only]' in (ctx.build.title + ctx.build.message)):
(ctx.build.event != "pull_request" and '[docs-only]' in (ctx.build.title + ctx.build.message)):
# [docs-only] is not taken from PR messages, but from commit messages
pipelines = [docs(ctx)]
else:
if '[with-benchmarks]' in (ctx.build.title + ctx.build.message):
test_pipelines += [
benchmark(ctx),
test_pipelines.append(
pipelineDependsOn(
purgeBuildArtifactCache(ctx, 'ocis-binary-amd64'),
testPipelines(ctx) + [benchmark(ctx)]
)
]
else:
test_pipelines.append(
pipelineDependsOn(
purgeBuildArtifactCache(ctx, 'ocis-binary-amd64'),
testPipelines(ctx)
)
testPipelines(ctx)
)
)
pipelines = test_pipelines + build_release_pipelines + build_release_helpers
pipelines = \
pipelines + \
pipelinesDependsOn(
example_deploys(ctx),
pipelines
)
# always append notification step
pipelines.append(
pipelineDependsOn(
@@ -244,76 +240,61 @@ 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 = [
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'owncloud', 'apiOcisSpecific'),
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'ocis', 'apiOcisSpecific'),
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'owncloud', 'apiBasic', 'default'),
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'ocis', 'apiBasic', 'default')
localApiTests(ctx, 'owncloud', 'apiBugDemonstration'),
localApiTests(ctx, 'ocis', 'apiBugDemonstration'),
localApiTests(ctx, 'owncloud', 'apiAccountsHashDifficulty', 'default'),
localApiTests(ctx, 'ocis', 'apiAccountsHashDifficulty', 'default')
]
for runPart in range(1, config['apiTests']['numberOfParts'] + 1):
pipelines.append(coreApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], runPart, config['apiTests']['numberOfParts'], 'owncloud'))
pipelines.append(coreApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], runPart, config['apiTests']['numberOfParts'], 'ocis'))
pipelines.append(coreApiTests(ctx, runPart, config['apiTests']['numberOfParts'], 'owncloud'))
pipelines.append(coreApiTests(ctx, runPart, config['apiTests']['numberOfParts'], 'ocis'))
pipelines += uiTests(ctx, config['uiTests']['webBranch'], config['uiTests']['webCommit'])
pipelines.append(accountsUITests(ctx, config['uiTests']['webBranch'], config['uiTests']['webCommit']))
pipelines += uiTests(ctx)
pipelines.append(accountsUITests(ctx))
return pipelines
def testOcisModule(ctx, module):
steps = makeGenerate(module) + [
{
'name': 'vet',
'image': 'webhippie/golang:1.14',
'name': 'golangci-lint',
'image': 'webhippie/golang:1.15',
'pull': 'always',
'commands': [
'make -C %s vet' % (module),
],
'volumes': [stepVolumeGoWebhippie,],
},
{
'name': 'staticcheck',
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'make -C %s staticcheck' % (module),
],
'volumes': [stepVolumeGoWebhippie,],
},
{
'name': 'lint',
'image': 'webhippie/golang:1.14',
'pull': 'always',
'commands': [
'make -C %s lint' % (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': 'test',
'image': 'webhippie/golang:1.14',
'image': 'webhippie/golang:1.15',
'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,],
},
{
'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'
@@ -325,9 +306,6 @@ def testOcisModule(ctx, module):
}
]
if config['modules'][module] == 'frontend':
steps = frontend(module) + steps
return {
'kind': 'pipeline',
'type': 'docker',
@@ -358,7 +336,7 @@ def buildOcisBinaryForTesting(ctx):
'arch': 'amd64',
},
'steps':
makeGenerate('ocis') +
makeGenerate('') +
build() +
rebuildBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis'),
'trigger': {
@@ -371,27 +349,52 @@ def buildOcisBinaryForTesting(ctx):
'volumes': [pipelineVolumeGoWebhippie],
}
def uploadCoverage(ctx):
def uploadScanResults(ctx):
sonar_env = {
'SONAR_TOKEN': {
'from_secret': 'sonar_token',
},
}
if ctx.build.event == "pull_request":
sonar_env.update({
'SONAR_PULL_REQUEST_BASE': '%s' % (ctx.build.target),
'SONAR_PULL_REQUEST_BRANCH': '%s' % (ctx.build.source),
'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',
'commands': [
'git clone https://github.com/%s.git .' % (repo_slug),
'git checkout $DRONE_COMMIT',
],
},
{
'name': 'sync-from-cache',
'image': 'minio/mc',
'image': 'minio/mc:RELEASE.2021-02-19T05-34-40Z',
'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}'),
]
},
{
@@ -408,25 +411,18 @@ def uploadCoverage(ctx):
'name': 'sonarcloud',
'image': 'sonarsource/sonar-scanner-cli',
'pull': 'always',
'environment': {
'SONAR_TOKEN': {
'from_secret': 'sonar_token',
},
'SONAR_PULL_REQUEST_BASE': '%s' % ('master' if ctx.build.event == 'pull_request' else None),
'SONAR_PULL_REQUEST_BRANCH': '%s' % (ctx.build.source if ctx.build.event == 'pull_request' else None),
'SONAR_PULL_REQUEST_KEY': '%s' % (ctx.build.ref.replace("refs/pull/", "").split("/")[0] if ctx.build.event == 'pull_request' else None),
},
'environment': sonar_env,
},
{
'name': 'purge-cache',
'image': 'minio/mc',
'image': 'minio/mc:RELEASE.2020-12-10T01-26-17Z',
'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}'),
]
},
],
@@ -439,7 +435,7 @@ def uploadCoverage(ctx):
},
}
def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'owncloud', suite = 'apiOcisSpecific', accounts_hash_difficulty = 4):
def localApiTests(ctx, storage = 'owncloud', suite = 'apiBugDemonstration', accounts_hash_difficulty = 4):
return {
'kind': 'pipeline',
'type': 'docker',
@@ -451,7 +447,7 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
'steps':
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
ocisServer(storage, accounts_hash_difficulty, [stepVolumeOC10Tests]) +
cloneCoreRepos(coreBranch, coreCommit) + [
cloneCoreRepos() + [
{
'name': 'localApiTests-%s-%s' % (suite, storage),
'image': 'owncloudci/php:7.4',
@@ -486,7 +482,7 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
'volumes': [pipelineVolumeOC10Tests],
}
def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, number_of_parts = 1, storage = 'owncloud', accounts_hash_difficulty = 4):
def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = 'owncloud', accounts_hash_difficulty = 4):
return {
'kind': 'pipeline',
'type': 'docker',
@@ -498,7 +494,7 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
'steps':
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
ocisServer(storage, accounts_hash_difficulty, [stepVolumeOC10Tests]) +
cloneCoreRepos(coreBranch, coreCommit) + [
cloneCoreRepos() + [
{
'name': 'oC10ApiTests-%s-storage-%s' % (storage, part_number),
'image': 'owncloudci/php:7.4',
@@ -513,7 +509,7 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
'BEHAT_FILTER_TAGS': '~@notToImplementOnOCIS&&~@toImplementOnOCIS&&~comments-app-required&&~@federation-app-required&&~@notifications-app-required&&~systemtags-app-required&&~@local_storage&&~@skipOnOcis-%s-Storage' % ('OC' if storage == 'owncloud' else 'OCIS'),
'DIVIDE_INTO_NUM_PARTS': number_of_parts,
'RUN_PART': part_number,
'EXPECTED_FAILURES_FILE': '/drone/src/tests/acceptance/expected-failures-on-%s-storage.txt' % (storage.upper()),
'EXPECTED_FAILURES_FILE': '/drone/src/tests/acceptance/expected-failures-API-on-%s-storage.md' % (storage.upper()),
},
'commands': [
'make -C /srv/app/testrunner test-acceptance-api',
@@ -534,57 +530,11 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
'volumes': [pipelineVolumeOC10Tests],
}
def benchmark(ctx):
return {
'kind': 'pipeline',
'type': 'docker',
'name': 'benchmark',
'failure': 'ignore',
'platform': {
'os': 'linux',
'arch': 'amd64',
},
'steps':
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
ocisServer('ocis') + [
{
'name': 'build benchmarks',
'image': 'node',
'pull': 'always',
'commands': [
'cd tests/k6',
'yarn',
'yarn build',
],
},
{
'name': 'run benchmarks',
'image': 'loadimpact/k6',
'pull': 'always',
'environment': {
'OC_HOST': 'https://ocis-server:9200',
},
'commands': [
'cd tests/k6',
'for f in ./dist/test-* ; do k6 run "$f" -q; done',
],
},
],
'depends_on': getPipelineNames([buildOcisBinaryForTesting(ctx)]),
'trigger': {
'ref': [
'refs/heads/master',
'refs/tags/v*',
'refs/pull/**',
],
},
}
def uiTests(ctx, webBranch, webCommit):
def uiTests(ctx):
suiteNames = config['uiTests']['suites'].keys()
return [uiTestPipeline(ctx, suiteName, webBranch, webCommit) for suiteName in suiteNames]
return [uiTestPipeline(ctx, suiteName) for suiteName in suiteNames]
def uiTestPipeline(ctx, suiteName, webBranch = 'master', webCommit = '', storage = 'owncloud', accounts_hash_difficulty = 4):
def uiTestPipeline(ctx, suiteName, storage = 'owncloud', accounts_hash_difficulty = 4):
suites = config['uiTests']['suites']
paths = ""
suite = suites[suiteName]
@@ -616,21 +566,22 @@ def uiTestPipeline(ctx, suiteName, webBranch = 'master', webCommit = '', storage
'OCIS_REVA_DATA_ROOT': '/srv/app/tmp/ocis/owncloud/data',
'OCIS_SKELETON_DIR': '/srv/app/testing/data/webUISkeleton',
'WEB_UI_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
'TEST_TAGS': 'not @skipOnOCIS and not @skip',
'TEST_TAGS': 'not @skipOnOCIS and not @skip and not @notToImplementOnOCIS',
'LOCAL_UPLOAD_DIR': '/uploads',
'NODE_TLS_REJECT_UNAUTHORIZED': 0,
'TEST_PATHS': paths,
'EXPECTED_FAILURES_FILE': '/drone/src/tests/acceptance/expected-failures-webUI-on-%s-storage.md' % (storage.upper()),
},
'commands': [
'source /drone/src/.drone.env',
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/testing',
'git clone -b %s --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web' % (webBranch),
'git clone -b $WEB_BRANCH --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web',
'cd /srv/app/web',
] + ([
'git checkout %s' % (webCommit)
] if webCommit != '' else []) + [
'git checkout $WEB_COMMITID',
'cp -r tests/acceptance/filesForUpload/* /uploads',
'yarn install-all',
'yarn run acceptance-tests-drone'
'yarn install --all',
'yarn build',
'./tests/acceptance/run.sh'
],
'volumes':
[stepVolumeOC10Tests] +
@@ -659,7 +610,7 @@ def uiTestPipeline(ctx, suiteName, webBranch = 'master', webCommit = '', storage
},
}
def accountsUITests(ctx, webBranch, webCommit, storage = 'owncloud', accounts_hash_difficulty = 4):
def accountsUITests(ctx, storage = 'owncloud', accounts_hash_difficulty = 4):
return {
'kind': 'pipeline',
'type': 'docker',
@@ -689,14 +640,14 @@ def accountsUITests(ctx, webBranch, webCommit, storage = 'owncloud', accounts_ha
'FEATURE_PATH': '/drone/src/accounts/ui/tests/acceptance/features',
},
'commands': [
'source /drone/src/.drone.env',
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/testing',
'git clone -b %s --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web' % (webBranch),
'git clone -b $WEB_BRANCH --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web',
'cd /srv/app/web',
] + ([
'git checkout %s' % (webCommit)
] if webCommit != '' else []) + [
'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'
@@ -744,6 +695,11 @@ def dockerReleases(ctx):
return pipelines
def dockerRelease(ctx, arch):
build_args = [
'REVISION=%s' % (ctx.build.commit),
'VERSION=%s' % (ctx.build.ref.replace("refs/tags/", "") if ctx.build.event == "tag" else "latest")
]
return {
'kind': 'pipeline',
'type': 'docker',
@@ -753,11 +709,11 @@ def dockerRelease(ctx, arch):
'arch': arch,
},
'steps':
makeGenerate('ocis') +
makeGenerate('') +
build() + [
{
'name': 'dryrun',
'image': 'plugins/docker:18.09',
'image': 'plugins/docker:latest',
'pull': 'always',
'settings': {
'dry_run': True,
@@ -765,6 +721,7 @@ def dockerRelease(ctx, arch):
'tags': 'linux-%s' % (arch),
'dockerfile': 'ocis/docker/Dockerfile.linux.%s' % (arch),
'repo': ctx.repo.slug,
'build_args': build_args,
},
'when': {
'ref': {
@@ -776,7 +733,7 @@ def dockerRelease(ctx, arch):
},
{
'name': 'docker',
'image': 'plugins/docker:18.09',
'image': 'plugins/docker:latest',
'pull': 'always',
'settings': {
'username': {
@@ -790,6 +747,7 @@ def dockerRelease(ctx, arch):
'auto_tag_suffix': 'linux-%s' % (arch),
'dockerfile': 'ocis/docker/Dockerfile.linux.%s' % (arch),
'repo': ctx.repo.slug,
'build_args': build_args,
},
'when': {
'ref': {
@@ -825,7 +783,7 @@ def dockerEos(ctx):
build() + [
{
'name': 'dryrun-eos-ocis',
'image': 'plugins/docker:18.09',
'image': 'plugins/docker:latest',
'pull': 'always',
'settings': {
'dry_run': True,
@@ -844,7 +802,7 @@ def dockerEos(ctx):
},
{
'name': 'docker-eos-ocis',
'image': 'plugins/docker:18.09',
'image': 'plugins/docker:latest',
'pull': 'always',
'settings': {
'username': {
@@ -920,10 +878,10 @@ def binaryRelease(ctx, name):
'arch': 'amd64',
},
'steps':
makeGenerate('ocis') + [
makeGenerate('') + [
{
'name': 'build',
'image': 'webhippie/golang:1.14',
'image': 'webhippie/golang:1.15',
'pull': 'always',
'commands': [
'make -C ocis release-%s' % (name),
@@ -931,7 +889,7 @@ def binaryRelease(ctx, name):
},
{
'name': 'finish',
'image': 'webhippie/golang:1.14',
'image': 'webhippie/golang:1.15',
'pull': 'always',
'commands': [
'make -C ocis release-finish',
@@ -957,10 +915,10 @@ def binaryRelease(ctx, name):
},
{
'name': 'changelog',
'image': 'toolhippie/calens:latest',
'image': 'webhippie/golang:1.15',
'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': [
@@ -1094,7 +1052,7 @@ def changelog(ctx):
'steps': [
{
'name': 'generate',
'image': 'webhippie/golang:1.14',
'image': 'webhippie/golang:1.15',
'pull': 'always',
'commands': [
'make -C ocis changelog',
@@ -1231,23 +1189,22 @@ def docs(ctx):
},
'steps': [
{
'name': 'generate-config-docs',
'image': 'webhippie/golang:1.14',
'commands': ['make -C %s config-docs-generate' % (module) for module in config['modules']],
'name': 'docs-generate',
'image': 'webhippie/golang:1.15',
'commands': ['make -C %s docs-generate' % (module) for module in config['modules']],
},
{
'name': 'prepare',
'image': 'owncloudci/alpine:latest',
'image': 'webhippie/golang:1.15',
'commands': [
'make -C docs docs-copy'
],
},
{
'name': 'test',
'image': 'owncloudci/hugo:0.71.0',
'image': 'webhippie/golang:1.15',
'commands': [
'cd docs/hugo',
'hugo',
'make -C docs test'
],
},
{
@@ -1276,13 +1233,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': {
@@ -1310,51 +1267,31 @@ def docs(ctx):
}
def makeGenerate(module):
if module == "":
make = "make"
else:
make = "make -C %s" % (module)
return [
{
'name': 'generate',
'image': 'webhippie/golang:1.14',
'name': 'generate nodejs',
'image': 'owncloudci/nodejs:12',
'pull': 'always',
'commands': [
'make -C %s generate' % (module),
'%s ci-node-generate' % (make),
],
'volumes': [stepVolumeGoWebhippie,],
},
{
'name': 'generate go',
'image': 'webhippie/golang:1.15',
'pull': 'always',
'commands': [
'%s ci-go-generate' % (make),
],
'volumes': [stepVolumeGoWebhippie,],
}
]
def updateDeployment(ctx):
return {
'kind': 'pipeline',
'type': 'docker',
'name': 'updateDeployment',
'platform': {
'os': 'linux',
'arch': 'amd64',
},
'steps': [
{
'name': 'webhook',
'image': 'plugins/webhook:1',
'settings': {
'username': {
'from_secret': 'webhook_username',
},
'password': {
'from_secret': 'webhook_password',
},
'method': 'GET',
'urls': 'https://ocis.owncloud.works/hooks/update-ocis',
}
}
],
'depends_on': getPipelineNames(dockerReleases(ctx) + binaryReleases(ctx)),
'trigger': {
'ref': [
'refs/heads/master',
],
}
}
def notify(ctx):
return {
'kind': 'pipeline',
@@ -1394,25 +1331,10 @@ def notify(ctx):
}
}
def frontend(module):
return [
{
'name': 'frontend',
'image': 'webhippie/nodejs:latest',
'pull': 'always',
'commands': [
'cd %s' % (module),
'yarn install --frozen-lockfile',
'yarn lint',
'yarn test',
'yarn build',
],
}
]
def ocisServer(storage, accounts_hash_difficulty = 4, volumes=[]):
environment = {
#'OCIS_LOG_LEVEL': 'debug',
'OCIS_URL': 'https://ocis-server:9200',
'STORAGE_HOME_DRIVER': '%s' % (storage),
'STORAGE_USERS_DRIVER': '%s' % (storage),
'STORAGE_DRIVER_OCIS_ROOT': '/srv/app/tmp/ocis/storage/users',
@@ -1420,19 +1342,13 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes=[]):
'STORAGE_METADATA_ROOT': '/srv/app/tmp/ocis/metadata',
'STORAGE_DRIVER_OWNCLOUD_DATADIR': '/srv/app/tmp/ocis/owncloud/data',
'STORAGE_DRIVER_OWNCLOUD_REDIS_ADDR': 'redis:6379',
'STORAGE_LDAP_IDP': 'https://ocis-server:9200',
'STORAGE_OIDC_ISSUER': 'https://ocis-server:9200',
'PROXY_OIDC_ISSUER': 'https://ocis-server:9200',
'STORAGE_HOME_DATA_SERVER_URL': 'http://ocis-server:9155/data',
'STORAGE_DATAGATEWAY_PUBLIC_URL': 'https://ocis-server:9200/data',
'STORAGE_USERS_DATA_SERVER_URL': 'http://ocis-server:9158/data',
'STORAGE_FRONTEND_PUBLIC_URL': 'https://ocis-server:9200',
'STORAGE_SHARING_USER_JSON_FILE': '/srv/app/tmp/ocis/shares.json',
'PROXY_ENABLE_BASIC_AUTH': True,
'WEB_UI_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
'KONNECTD_IDENTIFIER_REGISTRATION_CONF': '/drone/src/tests/config/drone/identifier-registration.yml',
'KONNECTD_ISS': 'https://ocis-server:9200',
'KONNECTD_TLS': 'true',
'IDP_IDENTIFIER_REGISTRATION_CONF': '/drone/src/tests/config/drone/identifier-registration.yml',
'IDP_TLS': 'true',
'OCIS_LOG_LEVEL': 'warn',
}
@@ -1466,19 +1382,19 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes=[]):
},
]
def cloneCoreRepos(coreBranch, coreCommit):
def cloneCoreRepos():
return [
{
'name': 'clone-core-repos',
'image': 'owncloudci/php:7.4',
'image': 'owncloudci/alpine:latest',
'pull': 'always',
'commands': [
'source /drone/src/.drone.env',
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/tmp/testing',
'git clone -b %s --single-branch --no-tags https://github.com/owncloud/core.git /srv/app/testrunner' % (coreBranch),
'git clone -b $CORE_BRANCH --single-branch --no-tags https://github.com/owncloud/core.git /srv/app/testrunner',
'cd /srv/app/testrunner',
] + ([
'git checkout %s' % (coreCommit)
] if coreCommit != '' else []),
'git checkout $CORE_COMMITID'
],
'volumes': [stepVolumeOC10Tests],
}
]
@@ -1499,7 +1415,7 @@ def selenium():
return [
{
'name': 'selenium',
'image': 'selenium/standalone-chrome-debug:3.141.59-20200326',
'image': 'selenium/standalone-chrome-debug:3.141.59',
'pull': 'always',
'volumes': [{
'name': 'uploads',
@@ -1512,7 +1428,7 @@ def build():
return [
{
'name': 'build',
'image': 'webhippie/golang:1.14',
'image': 'webhippie/golang:1.15',
'pull': 'always',
'commands': [
'make -C ocis build',
@@ -1521,6 +1437,87 @@ def build():
},
]
def example_deploys(ctx):
latest_configs = [
'cs3_users_ocis/latest.yml',
'ocis_keycloak/latest.yml',
'ocis_traefik/latest.yml',
]
released_configs = [
'cs3_users_ocis/released.yml',
'ocis_keycloak/released.yml',
'ocis_traefik/released.yml',
]
# if on master branch:
configs = latest_configs
rebuild = "false"
if ctx.build.event == "tag":
configs = released_configs
rebuild = 'false'
if ctx.build.event == "cron":
configs = latest_configs + released_configs
rebuild = 'true'
deploys = []
for config in configs:
deploys.append(deploy(ctx, config, rebuild))
return deploys
def deploy(ctx, config, rebuild):
return {
'kind': 'pipeline',
'type': 'docker',
'name': 'deploy_%s' % (config),
'platform': {
'os': 'linux',
'arch': 'amd64',
},
'steps': [
{
'name': 'clone continuous deployment playbook',
'image': 'alpine/git:latest',
'commands': [
'cd deployments/continuous-deployment-config',
'git clone https://github.com/owncloud-devops/continuous-deployment.git',
]
},
{
'name': 'deploy',
'image': 'owncloudci/drone-ansible:latest',
'failure': 'ignore',
'environment': {
'CONTINUOUS_DEPLOY_SERVERS_CONFIG': '../%s' % (config),
"REBUILD": '%s' % (rebuild),
'HCLOUD_API_TOKEN': {
'from_secret': 'hcloud_api_token'
},
'CLOUDFLARE_API_TOKEN': {
'from_secret': 'cloudflare_api_token'
}
},
'settings': {
'playbook': 'deployments/continuous-deployment-config/continuous-deployment/playbook-all.yml',
'galaxy': 'deployments/continuous-deployment-config/continuous-deployment/requirements.yml',
'requirements': 'deployments/continuous-deployment-config/continuous-deployment/py-requirements.txt',
'inventory': 'localhost',
'private_key': {
'from_secret': 'ssh_private_key'
}
}
},
],
'trigger': {
'ref': [
'refs/heads/master',
'refs/tags/v*',
],
},
}
def genericCache(name, action, mounts, cache_key):
rebuild = 'false'
restore = 'false'
@@ -1570,7 +1567,7 @@ def genericCachePurge(ctx, name, cache_key):
'steps': [
{
'name': 'purge-cache',
'image': 'minio/mc',
'image': 'minio/mc:RELEASE.2020-12-10T01-26-17Z',
'failure': 'ignore',
'environment': {
'MC_HOST_cache': {
-9743
View File
File diff suppressed because it is too large. Load diff
+45
View File
@@ -0,0 +1,45 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: Type:Bug
assignees: ''
---
## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce
Steps to reproduce the behavior:
1.
2.
3.
## Expected behavior
A clear and concise description of what you expected to happen.
## Actual behavior
A clear and concise description of what happened.
## Setup
Please describe how you started the server and provide a list of relevant environment variables.
<details>
<p>
```console
OCIS_VERSION=vX.X.X
BRANCH=vX.X.X
STORAGE_FRONTEND_UPLOAD_DISABLE_TUS=false
```
</p>
</details>
## Additional context
Add any other context about the problem here.
+20
View File
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for improving oCIS
title: ''
labels: Category:Feature, Topic:needs-triage
assignees: ''
---
## Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
## Describe the solution you'd like
A clear and concise description of what you want to happen.
## Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
## Additional context
Add any other context or screenshots about the feature request here.
+32
View File
@@ -0,0 +1,32 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/ocis"
schedule:
interval: "weekly"
open-pull-requests-limit: 2
- package-ecosystem: "npm"
directory: "/accounts"
schedule:
interval: "weekly"
open-pull-requests-limit: 2
- package-ecosystem: "npm"
directory: "/settings"
schedule:
interval: "weekly"
open-pull-requests-limit: 2
- package-ecosystem: "npm"
directory: "/onlyoffice"
schedule:
interval: "weekly"
open-pull-requests-limit: 2
- package-ecosystem: "npm"
directory: "/idp"
schedule:
interval: "weekly"
open-pull-requests-limit: 2
+57
View File
@@ -0,0 +1,57 @@
<!--
Thanks for submitting a change to ownCloud!
This is the bug tracker for the oCIS component. Find other components at https://github.com/owncloud/core/blob/master/.github/CONTRIBUTING.md#guidelines
For fixing potential security issues please see https://owncloud.org/security/
To make it possible for us to get your change reviewed and merged please carefully fill out the requested information below.
Please note that any kind of change needs first be submitted to the master branch which holds the next version of oCIS.
Please set the following labels:
- Set label "Status:Needs-Review" for review or "Status:In-Progress" if the PR still has open tasks.
- Assignment: assign to self
- Reviewers: pick at least one
-->
## Description
<!--- Describe your changes in detail -->
## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
<!--- Please link to the issue here: -->
- Fixes <issue_link>
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->
- test environment:
- test case 1:
- test case 2:
- ...
## Screenshots (if appropriate):
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Technical debt
- [ ] Tests only (no source changes)
## Checklist:
<!-- Tick the checkboxes when done. -->
<!-- Raise documentation ticket in owncloud.github.io/ -->
- [ ] Code changes
- [ ] Unit tests added
- [ ] Acceptance tests added
- [ ] Documentation ticket raised: <link>
+6 -52
View File
@@ -1,4 +1,6 @@
---
_extends: gh-labels
repository:
name: ocis
description: ':atom_symbol: ownCloud Infinite Scale Stack'
@@ -18,58 +20,10 @@ repository:
allow_rebase_merge: true
labels:
- name: bug
color: d73a4a
- name: OCIS-Fastlane
color: "#deadbf"
description: Something isn't working
- name: documentation
color: 0075ca
description: Improvements or additions to documentation
- name: duplicate
color: cfd3d7
description: This issue or pull request already exists
- name: enhancement
color: a2eeef
description: New feature or request
- name: good first issue
color: 7057ff
description: Good for newcomers
- name: help wanted
color: 008672
description: Extra attention is needed
- name: invalid
color: e4e669
description: This doesn't seem right
- name: question
color: d876e3
description: Further information is requested
- name: wontfix
color: ffffff
description: This will not be worked on
- name: effort/trivial
color: c2e0c6
description: Required effort to finish task
- name: effort/0.25d
color: c2e0c6
description: Required effort to finish task
- name: effort/0.5d
color: c2e0c6
description: Required effort to finish task
- name: effort/1d
color: c2e0c6
description: Required effort to finish task
- name: effort/2d
color: c2e0c6
description: Required effort to finish task
- name: effort/4d
color: c2e0c6
description: Required effort to finish task
- name: effort/5d
color: c2e0c6
description: Required effort to finish task
- name: effort/10d
color: c2e0c6
description: Required effort to finish task
teams:
- name: ci
permission: admin
@@ -85,7 +39,7 @@ branches:
require_code_owner_reviews: false
dismissal_restrictions: {}
required_status_checks:
strict: true
strict: false
contexts:
- continuous-integration/drone/pr
enforce_admins: false
+18
View File
@@ -0,0 +1,18 @@
only: issues
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 10
# Issues with these labels will never be considered stale
exemptLabels:
- "Type:Bug"
- "Type:Technical-Debt"
# Label to use when marking an issue as stale
staleLabel: "Status:Stale"
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed in 10 days if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
+5 -1
View File
@@ -1,4 +1,5 @@
*/coverage.out
*/checkstyle.xml
ocis/config/identifier-registration.yaml
*/bin
@@ -14,10 +15,13 @@ node_modules/
yarn-error.log
# Konnectd
konnectd/assets/identifier
idp/assets/identifier
# Composer - used for API acceptance tests
composer.lock
vendor
vendor-bin/**/vendor
vendor-bin/**/composer.lock
# drone CI is in .drone.star, do not let someone accidentally commit a local .drone.yml
.drone.yml
+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
+108
View File
@@ -0,0 +1,108 @@
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
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 '$(DEBUG_LDFLAGS)' -gcflags '$(GCFLAGS)' -o $@ ./cmd/$(NAME)
.PHONY: watch
watch: $(REFLEX)
$(REFLEX) -c reflex.conf
+60
View File
@@ -0,0 +1,60 @@
.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)/${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=. \
$(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=. \
$(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=$(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
+519 -3
View File
@@ -1,4 +1,511 @@
# Changes in unreleased
# Changelog for [unreleased] (UNRELEASED)
The following sections list the changes for unreleased.
[unreleased]: https://github.com/owncloud/ocis/compare/v1.2.0...master
## 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
* Bugfix - Check if roles are present in user object before looking those up: [#1388](https://github.com/owncloud/ocis/pull/1388)
* Bugfix - Fix etcd address configuration: [#1546](https://github.com/owncloud/ocis/pull/1546)
* Bugfix - Remove unimplemented config file option for oCIS root command: [#1636](https://github.com/owncloud/ocis/pull/1636)
* Bugfix - Fix thumbnail generation when using different idp: [#1624](https://github.com/owncloud/ocis/issues/1624)
* Change - Initial release of graph and graph explorer: [#1594](https://github.com/owncloud/ocis/pull/1594)
* Change - Move runtime code on refs/pman over to owncloud/ocis/ocis: [#1483](https://github.com/owncloud/ocis/pull/1483)
* Change - Update ownCloud Web to v2.0.0: [#1661](https://github.com/owncloud/ocis/pull/1661)
* Enhancement - Make use of new design-system oc-table: [#1597](https://github.com/owncloud/ocis/pull/1597)
* Enhancement - Use a default protocol parameter instead of explicitly disabling tus: [#1331](https://github.com/cs3org/reva/pull/1331)
* Enhancement - Functionality to map home directory to different storage providers: [#1186](https://github.com/owncloud/ocis/pull/1186)
* Enhancement - Introduce ADR: [#1042](https://github.com/owncloud/ocis/pull/1042)
* Enhancement - Switch to opencontainers annotation scheme: [#1381](https://github.com/owncloud/ocis/pull/1381)
* Enhancement - Migrate ocis-graph-explorer to ocis monorepo: [#1596](https://github.com/owncloud/ocis/pull/1596)
* Enhancement - Migrate ocis-graph to ocis monorepo: [#1594](https://github.com/owncloud/ocis/pull/1594)
* Enhancement - Enable group sharing and add config for sharing SQL driver: [#1626](https://github.com/owncloud/ocis/pull/1626)
* Enhancement - Update reva to v1.5.2-0.20210125114636-0c10b333ee69: [#1482](https://github.com/owncloud/ocis/pull/1482)
## Details
* Bugfix - Check if roles are present in user object before looking those up: [#1388](https://github.com/owncloud/ocis/pull/1388)
https://github.com/owncloud/ocis/pull/1388
* Bugfix - Fix etcd address configuration: [#1546](https://github.com/owncloud/ocis/pull/1546)
The etcd server address in `MICRO_REGISTRY_ADDRESS` was not picked up when etcd was set as
service discovery registry `MICRO_REGISTRY=etcd`. Therefore etcd was only working if
available on localhost / 127.0.0.1.
https://github.com/owncloud/ocis/pull/1546
* Bugfix - Remove unimplemented config file option for oCIS root command: [#1636](https://github.com/owncloud/ocis/pull/1636)
https://github.com/owncloud/ocis/pull/1636
* Bugfix - Fix thumbnail generation when using different idp: [#1624](https://github.com/owncloud/ocis/issues/1624)
The thumbnail service was relying on a konnectd specific field in the access token. This logic
was now replaced by a service parameter for the username.
https://github.com/owncloud/ocis/issues/1624
https://github.com/owncloud/ocis/pull/1628
* Change - Initial release of graph and graph explorer: [#1594](https://github.com/owncloud/ocis/pull/1594)
Tags: graph, graph-explorer
We brought initial basic Graph and Graph-Explorer support for the ownCloud Infinite Scale
project.
https://github.com/owncloud/ocis/pull/1594
https://github.com/owncloud/ocis-graph-explorer/pull/3
* Change - Move runtime code on refs/pman over to owncloud/ocis/ocis: [#1483](https://github.com/owncloud/ocis/pull/1483)
Tags: ocis, runtime
Currently, the runtime is under the private account of an oCIS developer. For future-proofing
we don't want oCIS mission critical components to depend on external repositories, so we're
including refs/pman module as an oCIS package instead.
https://github.com/owncloud/ocis/pull/1483
* Change - Update ownCloud Web to v2.0.0: [#1661](https://github.com/owncloud/ocis/pull/1661)
Tags: web
We updated ownCloud Web to v2.0.0. Please refer to the changelog (linked) for details on the web
release.
https://github.com/owncloud/ocis/pull/1661
https://github.com/owncloud/web/releases/tag/v2.0.0
* Enhancement - Make use of new design-system oc-table: [#1597](https://github.com/owncloud/ocis/pull/1597)
Tags: ui, accounts
The design-system table component has changed the way it's used. We updated accounts-ui to use
the new 'oc-table-simple' component.
https://github.com/owncloud/ocis/pull/1597
* Enhancement - Use a default protocol parameter instead of explicitly disabling tus: [#1331](https://github.com/cs3org/reva/pull/1331)
https://github.com/cs3org/reva/pull/1331
https://github.com/owncloud/ocis/pull/1374
* Enhancement - Functionality to map home directory to different storage providers: [#1186](https://github.com/owncloud/ocis/pull/1186)
We added a parameter in reva that allows us to redirect /home requests to different storage
providers based on a mapping derived from the user attributes, which was previously not
possible since we hardcode the /home path for all users. For example, having its value as
`/home/{{substr 0 1 .Username}}` can be used to redirect home requests for different users to
different storage providers.
https://github.com/owncloud/ocis/pull/1186
https://github.com/cs3org/reva/pull/1142
* Enhancement - Introduce ADR: [#1042](https://github.com/owncloud/ocis/pull/1042)
We will keep track of [Architectual Decision Records using
Markdown](https://adr.github.io/madr/) in `/docs/adr`.
https://github.com/owncloud/ocis/pull/1042
* Enhancement - Switch to opencontainers annotation scheme: [#1381](https://github.com/owncloud/ocis/pull/1381)
Switch docker image annotation scheme to org.opencontainers standard because
org.label-schema is depreciated.
https://github.com/owncloud/ocis/pull/1381
* Enhancement - Migrate ocis-graph-explorer to ocis monorepo: [#1596](https://github.com/owncloud/ocis/pull/1596)
Tags: ocis, ocis-graph-explorer
Ocis-graph-explorer was not migrated during the monorepo conversion.
https://github.com/owncloud/ocis/pull/1596
* Enhancement - Migrate ocis-graph to ocis monorepo: [#1594](https://github.com/owncloud/ocis/pull/1594)
Tags: ocis, ocis-graph
Ocis-graph was not migrated during the monorepo conversion.
https://github.com/owncloud/ocis/pull/1594
* Enhancement - Enable group sharing and add config for sharing SQL driver: [#1626](https://github.com/owncloud/ocis/pull/1626)
This PR adds config to support sharing with groups. It also introduces a breaking change for the
CS3APIs definitions since grantees can now refer to both users as well as groups. Since we store
the grantee information in a json file, `/var/tmp/ocis/storage/shares.json`, its previous
version needs to be removed as we won't be able to unmarshal data corresponding to the previous
definitions.
https://github.com/owncloud/ocis/pull/1626
https://github.com/cs3org/reva/pull/1453
* Enhancement - Update reva to v1.5.2-0.20210125114636-0c10b333ee69: [#1482](https://github.com/owncloud/ocis/pull/1482)
* initial checksum support for ocis [cs3org/reva#1400](https://github.com/cs3org/reva/pull/1400)
* Use updated etag of home directory even if it is cached [cs3org/reva#1416](https://github.com/cs3org/reva/pull/#1416)
* Indicate in EOS containers that TUS is not supported [cs3org/reva#1415](https://github.com/cs3org/reva/pull/#1415)
* Get status code from recycle response [cs3org/reva#1408](https://github.com/cs3org/reva/pull/#1408)
https://github.com/owncloud/ocis/pull/1482
https://github.com/cs3org/reva/pull/1400
https://github.com/cs3org/reva/pull/1416
https://github.com/cs3org/reva/pull/1415
https://github.com/cs3org/reva/pull/1408
# Changelog for [1.1.0] (2021-01-22)
The following sections list the changes for 1.1.0.
[1.1.0]: https://github.com/owncloud/ocis/compare/v1.0.0...v1.1.0
## Summary
* Change - Disable pretty logging by default: [#1133](https://github.com/owncloud/ocis/pull/1133)
* Change - Add "volume" declaration to docker images: [#1375](https://github.com/owncloud/ocis/pull/1375)
* Change - Add "expose" information to docker images: [#1366](https://github.com/owncloud/ocis/pull/1366)
* Change - Generate cryptographically secure state token: [#1203](https://github.com/owncloud/ocis/pull/1203)
* Change - Move k6 to cdperf: [#1358](https://github.com/owncloud/ocis/pull/1358)
* Change - Update go version: [#1364](https://github.com/owncloud/ocis/pull/1364)
* Change - Update ownCloud Web to v1.0.1: [#1191](https://github.com/owncloud/ocis/pull/1191)
* Enhancement - Add OCIS_URL env var: [#1148](https://github.com/owncloud/ocis/pull/1148)
* Enhancement - Use sync.cache for roles cache: [#1367](https://github.com/owncloud/ocis/pull/1367)
* Enhancement - Add named locks and refactor cache: [#1212](https://github.com/owncloud/ocis/pull/1212)
* Enhancement - Update reva to v1.5.1: [#1372](https://github.com/owncloud/ocis/pull/1372)
* Enhancement - Update reva to v1.4.1-0.20210111080247-f2b63bfd6825: [#1194](https://github.com/owncloud/ocis/pull/1194)
## Details
* Change - Disable pretty logging by default: [#1133](https://github.com/owncloud/ocis/pull/1133)
Tags: ocis
Disable pretty logging default for performance reasons.
https://github.com/owncloud/ocis/pull/1133
* Change - Add "volume" declaration to docker images: [#1375](https://github.com/owncloud/ocis/pull/1375)
Tags: docker
Add "volume" declaration to docker images. This makes it easier for Docker users to see where
oCIS stores data.
https://github.com/owncloud/ocis/pull/1375
* Change - Add "expose" information to docker images: [#1366](https://github.com/owncloud/ocis/pull/1366)
Tags: docker
Add "expose" information to docker images. Docker users will now see that we offer services on
port 9200.
https://github.com/owncloud/ocis/pull/1366
* Change - Generate cryptographically secure state token: [#1203](https://github.com/owncloud/ocis/pull/1203)
Replaced Math.random with a cryptographically secure way to generate the oidc state token
using the javascript crypto api.
https://github.com/owncloud/ocis/pull/1203
https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
* Change - Move k6 to cdperf: [#1358](https://github.com/owncloud/ocis/pull/1358)
Tags: performance, testing, k6
The ownCloud performance tests can not only be used to test oCIS. This is why we have decided to
move the k6 tests to https://github.com/owncloud/cdperf
https://github.com/owncloud/ocis/pull/1358
* Change - Update go version: [#1364](https://github.com/owncloud/ocis/pull/1364)
Tags: go
Update go from 1.13 to 1.15
https://github.com/owncloud/ocis/pull/1364
* Change - Update ownCloud Web to v1.0.1: [#1191](https://github.com/owncloud/ocis/pull/1191)
Tags: web
We updated ownCloud Web to v1.0.1. Please refer to the changelog (linked) for details on the web
release.
https://github.com/owncloud/ocis/pull/1191
https://github.com/owncloud/web/releases/tag/v1.0.1
* Enhancement - Add OCIS_URL env var: [#1148](https://github.com/owncloud/ocis/pull/1148)
Tags: ocis
We introduced a new environment variable `OCIS_URL` that expects a URL including protocol,
host and optionally port to simplify configuring all the different services. These existing
environment variables still take precedence, but will also fall back to `OCIS_URL`:
`STORAGE_LDAP_IDP`, `STORAGE_OIDC_ISSUER`, `PROXY_OIDC_ISSUER`,
`STORAGE_FRONTEND_PUBLIC_URL`, `KONNECTD_ISS`, `WEB_OIDC_AUTHORITY`, and
`WEB_UI_CONFIG_SERVER`.
Some environment variables are now built dynamically if they are not set: -
`STORAGE_DATAGATEWAY_PUBLIC_URL` defaults to `<STORAGE_FRONTEND_PUBLIC_URL>/data`,
also falling back to `OCIS_URL` - `WEB_OIDC_METADATA_URL` defaults to
`<WEB_OIDC_AUTHORITY>/.well-known/openid-configuration`, also falling back to
`OCIS_URL`
Furthermore, the built in konnectd will generate an `identifier-registration.yaml` that
uses the `KONNECTD_ISS` in the allowed `redirect_uris` and `origins`. It simplifies the
default `https://localhost:9200` and remote deployment with `OCIS_URL` which is evaluated
as a fallback if `KONNECTD_ISS` is not set.
An oCIS server can now be started on a remote machine as easy as
`OCIS_URL=https://cloud.ocis.test PROXY_HTTP_ADDR=0.0.0.0:443 ocis server`.
Note that the `OCIS_DOMAIN` environment variable is not used by oCIS, but by the docker
containers.
https://github.com/owncloud/ocis/pull/1148
* Enhancement - Use sync.cache for roles cache: [#1367](https://github.com/owncloud/ocis/pull/1367)
Tags: ocis-pkg
Update ocis-pkg/roles cache to use ocis-pkg/sync cache
https://github.com/owncloud/ocis/pull/1367
* Enhancement - Add named locks and refactor cache: [#1212](https://github.com/owncloud/ocis/pull/1212)
Tags: ocis-pkg, accounts
We had the case that we needed kind of a named locking mechanism which enables us to lock only
under certain conditions. It's used in the indexer package where we do not need to lock
everything, instead just lock the requested parts and differentiate between reads and
writes.
This made it possible to entirely remove locks from the accounts service and move them to the
ocis-pkg indexer. Another part of this refactor was to make the cache atomic and write tests for
it.
- remove locking from accounts service - add sync package with named mutex - add named locking to
indexer - move cache to sync package
https://github.com/owncloud/ocis/issues/966
https://github.com/owncloud/ocis/pull/1212
* Enhancement - Update reva to v1.5.1: [#1372](https://github.com/owncloud/ocis/pull/1372)
Summary -------
* Fix #1401: Use the user in request for deciding the layout for non-home DAV requests
* Fix #1413: Re-include the '.git' dir in the Docker images to pass the version tag
* Fix #1399: Fix ocis trash-bin purge
* Enh #1397: Bump the Copyright date to 2021
* Enh #1398: Support site authorization status in Mentix
* Enh #1393: Allow setting favorites, mtime and a temporary etag
* Enh #1403: Support remote cloud gathering metrics
Details -------
* Bugfix #1401: Use the user in request for deciding the layout for non-home DAV requests
For the incoming /dav/files/userID requests, we have different namespaces depending on
whether the request is for the logged-in user's namespace or not. Since in the storage drivers,
we specify the layout depending only on the user whose resources are to be accessed, this fails
when a user wants to access another user's namespace when the storage provider depends on the
logged in user's namespace. This PR fixes that.
For example, consider the following case. The owncloud fs uses a layout {{substr 0 1
.Id.OpaqueId}}/{{.Id.OpaqueId}}. The user einstein sends a request to access a resource
shared with him, say /dav/files/marie/abcd, which should be allowed. However, based on the
way we applied the layout, there's no way in which this can be translated to /m/marie/.
Https://github.com/cs3org/reva/pull/1401
* Bugfix #1413: Re-include the '.git' dir in the Docker images to pass the version tag
And git SHA to the release tool.
Https://github.com/cs3org/reva/pull/1413
* Bugfix #1399: Fix ocis trash-bin purge
Fixes the empty trash-bin functionality for ocis-storage
Https://github.com/owncloud/product/issues/254
https://github.com/cs3org/reva/pull/1399
* Enhancement #1397: Bump the Copyright date to 2021
Https://github.com/cs3org/reva/pull/1397
* Enhancement #1398: Support site authorization status in Mentix
This enhancement adds support for a site authorization status to Mentix. This way, sites
registered via a web app can now be excluded until authorized manually by an administrator.
Furthermore, Mentix now sets the scheme for Prometheus targets. This allows us to also support
monitoring of sites that do not support the default HTTPS scheme.
Https://github.com/cs3org/reva/pull/1398
* Enhancement #1393: Allow setting favorites, mtime and a temporary etag
We now let the oCIS driver persist favorites, set temporary etags and the mtime as arbitrary
metadata.
Https://github.com/owncloud/ocis/issues/567
https://github.com/cs3org/reva/issues/1394
https://github.com/cs3org/reva/pull/1393
* Enhancement #1403: Support remote cloud gathering metrics
The current metrics package can only gather metrics either from json files. With this feature,
the metrics can be gathered polling the http endpoints exposed by the owncloud/nextcloud
sciencemesh apps.
Https://github.com/cs3org/reva/pull/1403
https://github.com/owncloud/ocis/pull/1372
* Enhancement - Update reva to v1.4.1-0.20210111080247-f2b63bfd6825: [#1194](https://github.com/owncloud/ocis/pull/1194)
* Enhancement: calculate and expose actual file permission set [cs3org/reva#1368](https://github.com/cs3org/reva/pull/1368)
* initial range request support [cs3org/reva#1326](https://github.com/cs3org/reva/pull/1388)
https://github.com/owncloud/ocis/pull/1194
https://github.com/cs3org/reva/pull/1368
https://github.com/cs3org/reva/pull/1388
# Changelog for [1.0.0] (2020-12-17)
The following sections list the changes for 1.0.0.
## Summary
@@ -108,6 +615,7 @@
* Enhancement - Update reva to cdb3d6688da5: [#748](https://github.com/owncloud/ocis/pull/748)
* Enhancement - Update reva to dd3a8c0f38: [#725](https://github.com/owncloud/ocis/pull/725)
* Enhancement - Update reva to v1.4.1-0.20201127111856-e6a6212c1b7b: [#971](https://github.com/owncloud/ocis/pull/971)
* Enhancement - Update reva to 063b3db9162b: [#1091](https://github.com/owncloud/ocis/pull/1091)
* Enhancement - Add www-authenticate based on user agent: [#1009](https://github.com/owncloud/ocis/pull/1009)
## Details
@@ -1962,6 +2470,14 @@
https://github.com/cs3org/reva/pull/1331
https://github.com/cs3org/reva/pull/1342
* Enhancement - Update reva to 063b3db9162b: [#1091](https://github.com/owncloud/ocis/pull/1091)
- bring public link removal changes to OCIS. - fix subcommand name collision from renaming
phoenix -> web.
https://github.com/owncloud/ocis/issues/1098
https://github.com/owncloud/ocis/pull/1091
* Enhancement - Add www-authenticate based on user agent: [#1009](https://github.com/owncloud/ocis/pull/1009)
Tags: reva, proxy
@@ -1970,7 +2486,7 @@
Furthermore, we not only take care of such a thing at the Proxy but also Reva will take care of it.
In addition, we now are able to lock-in a set of User-Agent to specific challenges.
Admins can use this feature by configuring OCIS + Reva following this approach:
Admins can use this feature by configuring oCIS + Reva following this approach:
``` STORAGE_FRONTEND_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT="mirall:basic,
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:83.0) Gecko/20100101
@@ -1984,6 +2500,6 @@
`STORAGE_FRONTEND_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT` as well as
`PROXY_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT`, The reason they have the same value
is not to rely on the os env on a distributed environment, so in redundancy we trust. They both
configure the same on the backend storage and OCIS Proxy.
configure the same on the backend storage and oCIS Proxy.
https://github.com/owncloud/ocis/pull/1009
+2 -2
View File
@@ -1,11 +1,11 @@
FROM webhippie/golang:1.14 as build
FROM webhippie/golang:1.15 as build
COPY ./ /ocis/
ENV CGO_ENABLED=0
ENV GOOS=linux
RUN apk update && \
apk upgrade && \
apk upgrade --ignore musl-dev && \
apk add make gcc bash && \
rm -rf /var/cache/apk/*
+88
View File
@@ -12,6 +12,26 @@ WHITE := $(shell tput -Txterm setaf 7)
RESET := $(shell tput -Txterm sgr0)
# if you add a module here please also add it to the .drone.star file
OCIS_MODULES = \
accounts \
glauth \
graph \
graph-explorer \
idp \
ocis \
ocis-pkg \
ocs \
onlyoffice \
proxy \
settings \
storage \
store \
thumbnails \
web \
webdav
include .bingo/Variables.mk
.PHONY: help
help:
@@ -63,3 +83,71 @@ vendor-bin/behat/composer.lock: vendor-bin/behat/composer.json
composer.lock: composer.json
@echo composer.lock is not up to date.
.PHONY: generate
generate:
@for mod in $(OCIS_MODULES); do \
$(MAKE) --no-print-directory -C $$mod generate; \
done
.PHONY: vet
vet:
@for mod in $(OCIS_MODULES); do \
$(MAKE) --no-print-directory -C $$mod vet; \
done
.PHONY: clean
clean:
@for mod in $(OCIS_MODULES); do \
$(MAKE) --no-print-directory -C $$mod clean; \
done
.PHONY: docs-generate
docs-generate:
@for mod in $(OCIS_MODULES); do \
$(MAKE) --no-print-directory -C $$mod docs-generate; \
done
.PHONY: ci-go-generate
ci-go-generate:
@for mod in $(OCIS_MODULES); do \
$(MAKE) --no-print-directory -C $$mod ci-go-generate; \
done
.PHONY: ci-node-generate
ci-node-generate:
@for mod in $(OCIS_MODULES); do \
$(MAKE) --no-print-directory -C $$mod ci-node-generate; \
done
.PHONY: go-mod-tidy
go-mod-tidy:
@for mod in $(OCIS_MODULES); do \
$(MAKE) --no-print-directory -C $$mod go-mod-tidy; \
done
.PHONY: test
test:
@for mod in $(OCIS_MODULES); do \
$(MAKE) --no-print-directory -C $$mod test; \
done
.PHONY: go-coverage
go-coverage:
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
@for mod in $(OCIS_MODULES); do \
echo -n "% coverage $$mod: "; $(MAKE) --no-print-directory -C $$mod go-coverage; \
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
+5 -5
View File
@@ -1,12 +1,12 @@
# ownCloud Infinite Scale
[![Rocket chat](https://img.shields.io/badge/Chat%20on%20Rocket.Chat-blue?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSItDnaQIpKhOlkQFemoVShChVArtOpgcv2EJg1Jiouj4Fpw8GOx6uDirKuDqyAIfoA4OTopukiJ/0sKLWI8OO7Hu3uPu3eA0Kwy1eyZAFTNMtLJhJjNrYqBVwQxghDiiMjM1OckKQXP8XUPH1/vYjzL+9yfI5QvmAzwicSzTDcs4g3imU1L57xPHGZlOU98Tjxu0AWJH7muuPzGueSwwDPDRiY9TxwmFktdrHQxKxsq8TRxNK9qlC9kXc5z3uKsVuusfU/+wmBBW1nmOs1hJLGIJUgQoaCOCqqwEKNVI8VEmvYTHv6I45fIpZCrAkaOBdSgQnb84H/wu1uzODXpJgUTQO+LbX+MAoFdoNWw7e9j226dAP5n4Err+GtNIP5JeqOjRY+AgW3g4rqjKXvA5Q4w9KTLhuxIfppCsQi8n9E35YDBW6B/ze2tvY/TByBDXaVugINDYKxE2ese7+7r7u3fM+3+fgDAvHLGj7r9AwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+QMHg05Mvq8cfAAAAAGYktHRAD/AP8A/6C9p5MAAAcbSURBVGje7VlpTFRXGLU0NmmNpuma9IciCCKCQDTuxqQWkrrTNJAal6Y2ECyoURONRBPXuBujVpsYiys1qUH7w8QVjQnVP9Zqq3Y2FgcQmIEBBpgZmPl6vvveLG94D2ZAFhNvcsIwb5nv3G87994hQ970oY+OjgaygR3AWmAyMPRNIjAV+A8gGQ3AKX1U1Nf60aNTgVn4nIDvPgLeGYwE3gd+ATwBJBhuQ2xshyEuzmWIiWnQRUY+0o0adRBkUvQxMRGDicAHwLkg4xUwTJtG5RkZVDZnDunHjKmCV3JB4r3BQyIq6jgM83RFQhCZNIlMqamkj41txzO/47tcYBWwApgHJAGfABH96YGxMMbMxnVHoAsweRdgBf4GfgW+A77AxPRt3ugjIzONycmO+qIiMqal9YxAVBThPYQcIYSX9H90dDvwFNjIRPqWQFKSo+3RI7Jev84xHjaBMuRHdX4+mVesoNJZs0gfFyeRkIiwd2qAQmA1sBhIAT4F3n0dIRSLH9LVbd9OzpqaHnvBMGMG6ZOSQrmXPVMve+cikANwme55UYDb1xri413VO3aQITm5N7nQ0/x5BXBR+Bb4sEdeQJ2vN0ycKNxuGDeuV3kggM96GbqA78V3UmipwQHcAzK4vIdTRvNQ16UyGhtLtbt2hRZKsnGGsWOpFL3iZXo6Va9aRbVbt5LlwAGyHj0qwJ9rt2yhqpwcqli8mExTp4pnfCQ7v7tVzpmEUGZ/GmD2GmReupScZjOV4ce0ZloYDS9VLFpEdbt3k/3GDXKZTORuaiLq6CCt4cE1vsdpNJIdBaNu506qWLBAvEun7hmWON902VdwMQoo8j5ku3CB2hsbqSw7W3XGjRMmUHVuLtlv3aKOhgbq1fB4qKO+XpBh7xgTE9U8wr0lq8uKhYs/i9hPSKCWBw+kchpYUXhmUF7Ny5ZRy7175HE66XUPj8NB9uJiMi9Z4v9NPwkb8H1IBCznz5ORNY/3YTQmnhnr4cO9n/EQBnvEsn+/sCWIRCUwW4vAJu+NprlzFTNvTEmhxkuXRPz21/C0t4tQNnIUKEkUs9ZSI/AlYFfczB6JjyfbuXMiVvt9uN3UcPo0GbxdXbKrA/hJjcAIoESRPAidmk2b+iTeQ/ZEWxu9Wr9e0ld+2x7w4kqNxInA2S+dPp0cz5/TQA/H06dkmjIl0AstQGqw8RFy4xA3cU1+tWGDcKNWorF7azZuJFtBQefkxnMt9++LhlaHpuh48qTTO9orK8l67JjwctPly+RubdXMh+o1a6Q+4fdCfjCB4bJrfDc1FhaqvxAhVbN5s9TQWBrgLxvqcbl897TcvUsmrC+88oFXcs4XL/z8bDaqWrnSJzGwdKX6Eyc0vWA7cyY4mQuMgesMfPEZ8MynLJE4bITacBoMZJo82R+X+MsywlVW5ruHPaMbOZICPVp/8qTvemtJiSgQXqP4esX8+Zpl2n7zpiAZQOAPxc6JrM3/DYUASwY2WEFg5kxyVVT4CcBDgQS4uzacOuUn8PAhGcaPVxKALHFDAagSgFTpjgCH0F+KELp4UTMmWf9A/EkhhBdb9u1TaCA2kEl5VSnrHSbuCyG7XcS1NwyZjO3s2V6FEC/EyxVJjPKlJczczc3UdOWKMLzp6lVhULDGaXv8mKxHjojQYfHWqRBYLGTDJHHXtd++rVmuRRKvXh2cxJsDjR8GHFfsC3EZRZg4nj0b+DKKCiZyTllGvwre2MqQ48qlaGRIRhZZA9rI1q0LbmQlWo1sKHBSISWg0zn+tPpBn0sJJL6KlMjpSpXGKfZJWcxhjcw9gWOx32YePYWTWkXM3QI+7m6FthxoVshpLGLsd+70i/Gc3JY9exRlVsZLYGYoS0wOpW3y9odUlVDqeD3Q1/HOqzxzZqbagoa3YZaGs0sxCigNJMD7Rq/fao+Y8eZr16gqK0taxHReUtYBP2BFGBEOgZEKAnip5dAhTZdz13bq9aKTdpUrfI11EN/LRtdu20bl8+aJRNVY1LO8WRiW8TKB2Yo8wHq4qaios/G1tVSdlycMYMnLcqAqO5tq8vPJsnevCDsGxzTLC57lioULJXmMDi6MVpbIwFrPW/7jerrduDewEvE+jlOnU2qi8nJhkG8PVGVjS4HQNrbagNtAOvennho/Pjh8uJV75TKHAYcMz7bG7IULt7xgL5Q3fkf09ripQNEHEhOlPSCrlVqKi8VCh3uDivFtgZWrC7jkxGTxeAb4Ue4/vTtYNEDdydvfjuBGVrl8OZWnpUkaXj0E/gQWyDOYB2wHDssa6xhwENgqn4bOBxLFoWG4ydnN7LMesmhtJWqEC8/mb3xUO9AHfXy+VR1m3D6X9/aHD4aTSj4xOQr8I/aHOh+5eoVUrVwl1nCzG2znxbwz8bncA7JkOcGxu0/eucuUY3fYkLfj7Xg7Bs34HwoINZEQp4aVAAAAAElFTkSuQmCC)](https://talk.owncloud.com/channel/infinitescale)
[![Build Status](https://drone.owncloud.com/api/badges/owncloud/ocis/status.svg)](https://drone.owncloud.com/owncloud/ocis)
[![Gitter chat](https://badges.gitter.im/cs3org/reva.svg)](https://gitter.im/cs3org/reva)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/dc97ddfa167641d8b107e9b618823c71)](https://www.codacy.com/gh/owncloud/ocis/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=owncloud/ocis&amp;utm_campaign=Badge_Grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/dc97ddfa167641d8b107e9b618823c71)](https://www.codacy.com/gh/owncloud/ocis/dashboard?utm_source=github.com&utm_medium=referral&utm_content=owncloud/ocis&utm_campaign=Badge_Coverage)
[![Go Doc](https://godoc.org/github.com/owncloud/ocis?status.svg)](http://godoc.org/github.com/owncloud/ocis)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=owncloud_ocis&metric=security_rating)](https://sonarcloud.io/dashboard?id=owncloud_ocis)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=owncloud_ocis&metric=coverage)](https://sonarcloud.io/dashboard?id=owncloud_ocis)
[![Go Report](https://goreportcard.com/badge/github.com/owncloud/ocis)](https://goreportcard.com/report/github.com/owncloud/ocis)
[![](https://images.microbadger.com/badges/image/owncloud/ocis.svg)](https://hub.docker.com/r/owncloud/ocis "oCIS docker image")
[![Go Doc](https://godoc.org/github.com/owncloud/ocis?status.svg)](http://godoc.org/github.com/owncloud/ocis)
[![oCIS docker image](https://img.shields.io/docker/v/owncloud/ocis?label=oCIS%20docker%20image&logo=docker&sort=semver)](https://hub.docker.com/r/owncloud/ocis)
**ownCloud Infinite Scale is currently in a technical preview state. It will be subject to a lot of changes and is not yet ready for general production deployments.**
+39 -173
View File
@@ -1,190 +1,56 @@
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 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: 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: generate
generate: protobuf
go generate $(GENERATE)
.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: 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: config-docs-generate
config-docs-generate:
go run github.com/owncloud/flaex >| ../docs/extensions/$(NAME)/configuration.md
.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
$(GOPATH)/bin/protoc-gen-go:
GO111MODULE=off go get -v google.golang.org/protobuf/cmd/protoc-gen-go
############ tooling ############
include ../.bingo/Variables.mk
$(GOPATH)/bin/protoc-gen-micro:
GO111MODULE=on go get -v github.com/micro/protoc-gen-micro/v2
############ go tooling ############
include ../.make/go.mk
$(GOPATH)/bin/protoc-gen-microweb:
GO111MODULE=off go get -v github.com/owncloud/protoc-gen-microweb
############ release ############
include ../.make/release.mk
$(GOPATH)/bin/protoc-gen-openapiv2:
GO111MODULE=off go get -v github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2
############ docs generate ############
include ../.make/docs.mk
$(PROTO_SRC)/accounts.pb.go: $(PROTO_SRC)/accounts.proto
protoc \
-I=third_party/ \
-I=$(PROTO_SRC)/ \
--go_out=. accounts.proto
.PHONY: docs-generate
docs-generate: config-docs-generate \
grpc-docs-generate
$(PROTO_SRC)/accounts.pb.micro.go: $(PROTO_SRC)/accounts.proto
protoc \
-I=third_party/ \
-I=$(PROTO_SRC)/ \
--micro_out=. accounts.proto
############ generate ############
include ../.make/generate.mk
$(PROTO_SRC)/accounts.pb.web.go: $(PROTO_SRC)/accounts.proto
protoc \
-I=third_party/ \
-I=$(PROTO_SRC)/ \
--microweb_out=. accounts.proto
.PHONY: ci-go-generate
ci-go-generate: protobuf # CI runs ci-node-generate automatically before this target
@go generate $(GENERATE)
$(PROTO_SRC)/accounts.swagger.json: $(PROTO_SRC)/accounts.proto
# the other commands above respect the declared package in the .proto file for placement of the resulting file.
# `swagger_out` doesn't, so we have to specify the output path as `$(PROTO_SRC)` instead of `.`
protoc \
-I=third_party/ \
-I=$(PROTO_SRC)/ \
--swagger_out=$(PROTO_SRC) accounts.proto
.PHONY: ci-node-generate
ci-node-generate: yarn-build
.PHONY: yarn-build
yarn-build: node_modules
yarn lint
yarn test
yarn build
.PHONY: node_modules
node_modules:
yarn install --frozen-lockfile
############ protobuf ############
include ../.make/protobuf.mk
PROTO_VERSION := v0
PROTO_SRC := pkg/proto/$(PROTO_VERSION)
.PHONY: protobuf
protobuf: $(GOPATH)/bin/protoc-gen-go $(GOPATH)/bin/protoc-gen-micro $(GOPATH)/bin/protoc-gen-microweb $(GOPATH)/bin/protoc-gen-openapiv2 \
$(PROTO_SRC)/accounts.pb.go $(PROTO_SRC)/accounts.pb.micro.go $(PROTO_SRC)/accounts.pb.web.go $(PROTO_SRC)/accounts.swagger.json
protobuf: $(PROTO_SRC)/${NAME}.pb.go \
$(PROTO_SRC)/${NAME}.pb.micro.go \
$(PROTO_SRC)/${NAME}.pb.web.go \
$(PROTO_SRC)/${NAME}.swagger.json \
../docs/extensions/${NAME}/grpc.md
+23 -14
View File
@@ -1,40 +1,49 @@
module github.com/owncloud/ocis/accounts
go 1.13
go 1.15
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/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21
github.com/cs3org/reva v1.4.1-0.20201216095137-5207197217f1
github.com/asim/go-micro/plugins/client/grpc/v3 v3.0.0-20210217182006-0f0ace1a44a9
github.com/asim/go-micro/v3 v3.5.1-0.20210217182006-0f0ace1a44a9
github.com/cs3org/go-cs3apis v0.0.0-20210209082852-35ace33082f5
github.com/cs3org/reva v1.6.1-0.20210223065028-53f39499762e
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/grpc-ecosystem/grpc-gateway/v2 v2.2.0
github.com/mattn/go-runewidth v0.0.10 // indirect
github.com/mennanov/fieldmask-utils v0.3.3
github.com/micro/cli/v2 v2.1.2
github.com/micro/go-micro/v2 v2.9.1
github.com/oklog/run v1.1.0
github.com/olekukonko/tablewriter v0.0.4
github.com/openzipkin/zipkin-go v0.2.2
github.com/owncloud/ocis/ocis-pkg v0.0.0-20201103111659-46bf133a3c63
github.com/owncloud/ocis/settings v0.0.0-20200918114005-1a0ddd2190ee
github.com/owncloud/ocis/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/stretchr/testify v1.6.1
go.opencensus.io v0.22.5
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
golang.org/x/net v0.0.0-20200822124328-c89045814202
google.golang.org/genproto v0.0.0-20200624020401-64a14ca9d1ad
google.golang.org/grpc v1.33.2
github.com/stretchr/testify v1.7.0
go.opencensus.io v0.22.6
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
golang.org/x/net v0.0.0-20210119194325-5f4716e94777
golang.org/x/text v0.3.5 // indirect
google.golang.org/genproto v0.0.0-20210207032614-bba0dbe2a9ea
google.golang.org/grpc v1.35.0
google.golang.org/protobuf v1.25.0
gopkg.in/yaml.v2 v2.4.0 // indirect
)
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
// 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
)
+951 -180
View File
File diff suppressed because it is too large. Load diff
+12 -11
View File
@@ -21,22 +21,22 @@
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@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/polyfill": "^7.10.1",
"@babel/preset-env": "^7.7.7",
"@babel/register": "7.10.1",
"@babel/register": "7.12.13",
"@erquhart/rollup-plugin-node-builtins": "^2.1.5",
"@rollup/plugin-commonjs": "^11.0.1",
"@rollup/plugin-json": "^4.0.1",
"@rollup/plugin-replace": "^2.3.0",
"archiver": "^4.0.1",
"axios": "^0.19.0",
"archiver": "^5.2.0",
"axios": "^0.21.1",
"core-js": "3",
"cross-env": "^6.0.3",
"cross-env": "^7.0.3",
"cucumber": "^6.0.5",
"cucumber-pretty": ">=6.0.0",
"debounce": "^1.2.0",
@@ -44,22 +44,23 @@
"eslint": "6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-node": "11.0.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.1.2",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-vue": "^7.6.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",
"rimraf": "^3.0.0",
"rollup": "^1.28.0",
"rollup": "^2.39.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-filesize": "^6.2.1",
"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",
+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 "2020-12-14 14:27:58.090538 +0100 CET m=+0.010488513" from config file "embed.yml" DO NOT EDIT.
// modification hash(e0a1cb05b46e7cba16306ad1f78aee1c.8058aec596c5fb73022d09bb97af796e)
// Code generated by fileb0x at "2021-03-04 20:39:03.472300386 +0100 CET m=+0.014524045" from config file "embed.yml" DO NOT EDIT.
// modification hash(2da0b5efdd6831d3c6c6fe0c3348f8e9.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\xeb\x72\xdb\x38\xb7\x28\xf8\x7b\xf6\x53\x48\xdc\xfd\x71\x03\xad\x65\x45\x4a\xfa\x4a\x05\xad\xcf\x49\x9c\x4b\x77\x12\xa7\x63\x27\xdd\x69\xb5\xb6\x8b\xa6\x20\x1b\xb1\x04\x28\x20\xe4\x4b\x24\xce\xfb\xcc\x6b\xcc\x93\x4d\xe1\x46\x82\x14\x95\xee\x6f\x9f\x7d\x4e\x9d\xa9\x99\x2a\x97\x45\x82\xb8\x2e\x00\xeb\x86\xb5\x16\x66\x74\xce\x38\x45\x68\xbe\xe6\x99\x62\x82\x23\xbc\x89\xd6\x39\xed\xe4\x4a\xb2\x4c\x45\xa3\xeb\x54\x76\x14\x89\xd6\xdc\x66\x9c\x45\x5d\xa2\xee\x56\x54\xcc\x3b\x17\x0b\x71\x9e\x2e\x4e\x2f\x59\x3e\xae\x1e\x93\xb6\x9c\x37\x8c\xcf\xc4\xcd\xd8\xfe\xb4\xe6\xb0\x15\xb8\x7a\x5a\x73\xe4\x74\x31\x1f\xeb\x7f\xc9\xa6\x18\xf9\xce\x76\x28\x52\x40\xf1\x46\x52\xb5\x96\xbc\xa3\x10\x25\x1b\x7a\xbb\x12\x52\xe5\xc9\xa6\x28\x80\xf6\xdd\x1b\xae\x1e\x0b\x3d\x22\x4e\xc2\x21\x2b\xbc\xd1\x89\x94\xec\xa6\x1c\x9f\x7f\xa4\x99\xea\xaf\xa4\x50\x42\xf7\x04\x38\xa1\xfd\xcb\x34\x3f\xbe\xe1\x6f\xa4\x58\x51\xa9\xee\x40\x92\xc8\x17\x8c\x88\xef\xef\xc9\xdd\xf2\x5c\x2c\xc6\xf6\x27\xd9\x14\x20\x88\xec\x33\x45\x65\xaa\x84\xdc\x6e\xa3\x7f\xfe\xd3\xbf\x44\xc0\x88\xec\xa7\xf9\x1d\xcf\x5e\x84\xdf\x6b\x29\x11\xa4\x44\xf6\x95\x38\x51\x92\xf1\x8b\xd3\xf4\xc2\x64\x09\xde\xa3\x0a\x28\x99\x06\x0a\xf0\x12\x2c\x6e\x0c\x16\xa4\xbe\xd7\x26\xcf\xe6\x3a\x5d\xac\x69\xc2\x81\xf2\xf5\x92\xca\xf4\x7c\x41\x93\xee\x00\x32\xc1\xe7\xec\x62\x5d\xbe\xdf\x48\xa6\xdc\x73\x81\x41\x4d\xe8\xb4\x50\xf2\x6e\x93\xa1\x4d\x01\x51\x84\x8b\x2c\x55\xd9\xa5\x86\x59\x16\x40\xb0\xd6\x05\x5d\x86\xf0\xa2\x28\xfb\x98\xdb\x0c\x20\x2d\xa0\x05\xa1\x71\x4c\x2b\x30\x77\x18\xcf\x55\xca\x33\x0d\xc9\xf9\x98\x26\x73\x60\x7e\x2a\x32\x49\x53\x45\x91\xa8\x32\x63\x48\x09\xa7\x37\x9d\x23\x24\xb7\xdb\xc9\x14\x8f\x5c\xa3\xac\x7f\xc6\xf8\xb5\xb8\xa2\x3b\xbd\xd2\x4d\x4a\x12\xe5\xeb\x7c\x45\xf9\x8c\xce\x4e\x54\x2a\x55\xe4\xcb\x95\xb9\x05\x30\xbc\x61\x73\x14\xd1\x5b\x9a\xad\x15\xe3\x17\x11\x21\x44\x62\x75\x29\xc5\x4d\xc7\x34\x29\xa5\x90\x28\x7a\x46\xb9\x9d\xa6\x0e\xcb\x3b\xe9\x42\xd2\x74\x76\xd7\x91\x6b\xce\x75\x11\x3c\xd2\x55\x64\x62\xb9\x5a\x50\x45\x67\xb6\x0a\x53\xad\xa9\x47\xbf\x0b\x57\x25\xf3\x5d\x38\x41\xb8\x98\x0b\x89\x78\x7f\x49\xd5\xa5\x98\x11\x01\xbc\x9f\xca\x0b\xc2\x46\x23\xdb\xfd\x94\xf0\xfe\x8c\x2e\xe8\x45\xaa\xa8\x6e\x20\xb5\xc9\x19\xb9\x41\x29\x70\xd3\x66\x66\x5a\xc9\x08\x21\x0b\x9c\x09\xae\x18\x5f\x53\xdf\x40\x56\x14\xba\x07\x9c\xde\x2a\xdd\x01\xdf\x0e\xe6\xfd\x9c\x72\x45\x78\xff\xcc\xfd\xa6\xf2\x62\x44\x17\x39\xed\xd4\x3a\x5c\xe6\x37\xe3\x68\xc0\x31\x80\x91\x24\xc1\xc0\xed\x10\x46\xbc\x3f\x63\xf9\x4a\x2f\x99\xa3\xdb\x8c\xae\x0c\xa4\xcd\x17\x5c\xe8\x86\x22\xdb\xc3\xb0\x95\x38\xe6\xfd\xf4\x5c\xae\x57\x0a\xf9\xaf\xb6\x2e\x3c\x92\x24\x98\x1c\x83\xac\x72\xb2\x76\xd3\x6c\xe0\xce\x85\x5c\xa6\x0b\x5d\x5b\xde\x37\x8b\x45\xf7\x58\x6a\xe0\x09\x4e\xc7\x41\xef\x92\x6a\x18\x1f\x18\x5d\xcc\x22\xc8\x0d\xc4\x5b\xa0\xe7\xb6\x8d\xf9\x0e\xba\x9e\xc4\x56\x57\x14\x15\x84\x6c\x6b\x71\x8c\x9a\x20\x70\x13\xea\x72\xba\x69\xcd\xed\xf8\x8b\x02\x29\xe0\x90\x62\x60\xd5\x56\xf1\xc3\xd9\xe8\x3d\xe7\x3a\xa0\xeb\x4e\xfc\xd8\x20\x95\x17\x89\xea\x67\xe9\x62\x81\x74\xc6\xa2\xda\x90\xb5\xec\xae\x45\x93\xbb\x28\x0a\xd5\xbf\x91\xe9\x8a\xe4\x06\x6a\x0b\x12\xa2\xd5\x39\xc2\x9b\xaa\x03\xb3\xda\xdb\x4a\xbf\xe9\x22\x97\xba\xc8\xe5\x44\x4c\x49\x40\x3b\xfc\x7e\xbf\x64\x79\x61\x2a\x5e\xfa\x7d\x7b\x41\xd5\x1b\xbf\x63\x8f\xe7\x70\x4d\x96\x71\xbc\x44\x4b\x74\x8c\x26\x53\x8c\xf1\xe8\x3a\x8e\xaf\xbb\x44\xe3\x01\x6e\x87\x72\x0d\x02\xc7\x31\xba\x24\xd7\xd8\xd4\x74\x41\x56\xd5\x9e\x27\xf3\xe0\xb9\x8e\x19\x2e\x71\x35\x90\x3b\x0d\x84\x89\x5d\xe6\xe0\x01\xe0\xd7\xd0\xb4\x3f\x17\xf2\x28\xcd\x2e\x03\x52\x40\xf1\xc6\xa2\xcf\x1a\x75\x08\x46\xe5\x71\x0a\xa2\xa0\x70\x81\xcd\x5f\xd9\xdc\xb9\x25\x47\x06\xbd\x8c\xc2\xdc\xa4\x8e\x53\xca\x02\x69\x05\x32\x8d\x4e\x42\xa2\x24\x21\xc5\x9b\x6e\x99\x53\xea\x92\x90\x42\x66\xab\x37\xab\x7c\x22\xa6\xa0\x80\xd9\x85\x6e\x07\xd7\xad\xd6\xb9\x9d\x56\xbb\x48\xe7\x64\xd1\x37\x8b\xb6\xc4\x71\x71\x1c\x09\x03\xb6\x8a\x64\xcd\x4b\xd0\xcf\x21\x3a\x3b\x4b\x6f\x52\xa6\x22\x3c\xa6\x7d\x49\x73\xb1\xb8\xa6\x68\xde\x77\xa9\xb8\xaf\x2e\x29\xaf\x53\x50\xe9\xb0\x09\x28\xd3\xcb\x02\x43\xf3\xb3\x03\xbf\xff\x8e\x93\xa0\xe6\xb6\x1a\x5d\x97\x89\x82\x14\x2d\x76\x2b\xb4\x03\x69\xa9\xb7\xc8\x90\xdb\x4f\x06\x66\x1a\x90\x3a\xd5\x17\x20\x72\x2c\x6d\x6b\x29\xa4\x38\x49\x11\x0e\xe8\xd2\x4d\x35\x83\x9c\xa8\x92\x60\x4f\xa8\xdb\xb7\x53\x0d\xeb\x6b\xc1\x66\x9d\x81\x46\x50\x06\x9b\xd0\x12\x11\x13\xbe\x5e\x2c\xa0\x42\x02\x34\x44\x93\x55\x6d\x7d\xdb\x95\x38\x46\xb4\x44\x07\x1e\xaf\x51\x83\x0f\x6c\x0b\x60\x7b\xd3\x56\x21\x76\xa3\x59\x8c\x68\x13\xa3\xd8\x1a\xf4\x72\x3a\xbd\x5b\x51\x47\xa1\x4e\x2f\x69\xc7\x37\xdf\x99\x09\x9a\x77\xb8\x50\x9d\x95\x14\xd7\x6c\x46\x3b\x69\xe7\x3f\x4c\xe1\xff\xe8\xd8\xba\xa2\x12\x5a\x8b\xc2\xd2\xca\x35\xe2\x50\x0d\xc0\xb6\x11\xae\x3b\x8d\xf3\xed\xba\x73\x05\xf7\x74\x4b\x9a\xe5\xd8\x84\xd8\x62\x64\x99\x00\xf3\xd5\x2f\x51\x31\x16\x16\x49\x23\x3a\x51\x7a\xa5\xac\x17\xea\x75\xba\xa4\x53\x22\xec\xc2\x00\xda\xd7\x2b\x8e\x28\xf3\xf3\x52\x64\xe5\xce\xee\x56\xLine truncated
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xfd\xe9\x92\x1b\xb7\xf6\x20\x88\x7f\xfe\xf7\x53\x90\x79\xed\xfc\x01\xe6\x29\x16\x59\x5a\x6c\x27\x05\xf1\x6a\x97\x6c\x6d\xd6\x62\x5b\xa6\x78\x2b\xb2\x92\x20\x2b\x25\x12\xa0\x91\x60\x2d\x26\xb3\x23\xfe\xfd\x36\xf3\x71\x3e\xcc\x0b\xcc\x13\x74\xbf\xd1\x04\x0e\x80\xdc\x98\x94\x7c\xbb\x7f\x3d\x11\x13\x52\x14\x33\x91\x58\x0f\x80\xb3\xe3\x60\xc6\xe7\xa9\xe0\x84\xcc\x37\x22\xd1\xa9\x14\x84\x6e\x83\x4d\xc6\x3b\x99\x56\x69\xa2\x83\xd1\x45\xac\x3a\x9a\x05\x1b\x61\x33\xce\x82\x2e\xd3\xd7\x6b\x2e\xe7\x9d\xc5\x52\x9e\xc5\xcb\x77\xe7\x69\x36\x2e\x1f\xa3\xb6\x9c\x97\xa9\x98\xc9\xcb\xb1\xfd\x69\xcd\x61\x2b\x70\xf5\xb4\xe6\xc8\xf8\x72\x3e\x36\x7f\xa2\x6d\x3e\xf2\x9d\xed\x70\xa2\x81\xd3\xad\xe2\x7a\xa3\x44\x47\x13\xce\xb6\xfc\x6a\x2d\x95\xce\xa2\x6d\x9e\x03\xef\xbb\x37\x5a\x3e\xe6\xd5\xc1\x6a\xba\x35\x03\xe4\x6c\x3f\xe5\xd5\xd9\x27\x9e\xe8\xfe\x5a\x49\x2d\x4d\x1f\x40\x30\xde\x3f\x8f\xb3\x57\x97\xe2\xb5\x92\x6b\xae\xf4\x35\x28\x16\xf8\x82\x01\xf3\x3d\x7d\x7b\xbd\x3a\x93\xcb\xb1\xfd\x89\xb6\x39\x48\xa6\xfa\xa9\xe6\x2a\xd6\x52\xed\x76\xc1\x3f\xff\xe9\x5f\x02\x48\x99\xea\xc7\xd9\xb5\x48\x9e\x55\xbf\xd7\x52\x02\x88\x99\xea\x6b\xf9\x56\xab\x54\x2c\xde\xc5\x0b\xcc\x52\x79\x0f\x4a\x70\x64\x06\x1c\x20\x0a\x80\xb8\x31\x58\x60\xfa\x5e\x63\x9e\xed\x45\xbc\xdc\xf0\x48\x00\x17\x9b\x15\x57\xf1\xd9\x92\x47\xdd\x01\x24\x52\xcc\xd3\xc5\xa6\x78\xbf\x54\xa9\x76\xcf\x39\x05\x3d\xe1\xd3\x5c\xab\xeb\x6d\x46\xb6\x39\x04\x01\xcd\x93\x58\x27\xe7\x06\x66\x59\x05\x82\xb5\x2e\x98\x32\x4c\xe4\x79\xd1\xc7\xc4\x66\x00\x65\x01\x2d\x19\x0f\x43\x5e\x82\xb9\x93\x8a\x4c\xc7\x22\x31\x90\x9c\x8f\x79\x34\x87\xd4\x4f\x45\xa2\x78\xac\x39\x91\x65\x66\x0a\x31\x13\xfc\xb2\x73\x45\xd4\x6e\x37\x99\xd2\x91\x6b\x34\xed\x9f\xa6\xe2\x42\x7e\xe6\x7b\xbd\x32\x4d\x2a\x16\x64\x9b\x6c\xcd\xc5\x8c\xcf\xde\xea\x58\xe9\xc0\x97\x2b\x72\x4b\x48\xe9\x36\x9d\x93\x80\x5f\xf1\x64\xa3\x53\xb1\x08\x18\x63\x8a\xea\x73\x25\x2f\x3b\xa6\xc9\x47\x4a\x49\x45\x82\x27\x5c\xd8\x69\xea\xa4\x59\x27\x5e\x2a\x1e\xcf\xae\x3b\x6a\x23\x84\x29\x42\x47\xa6\x8a\x44\xae\xd6\x4b\xae\xf9\xcc\x56\x81\xd5\x62\x3d\xe6\x5d\xba\x2a\x53\xdf\x85\x53\x42\xf3\xb9\x54\x44\xf4\x57\x5c\x9f\xcb\x19\x93\x20\xfa\xb1\x5a\xb0\x74\x34\xb2\xdd\x8f\x99\xe8\xcf\xf8\x92\x2f\x62\xcd\x4d\x03\xb1\x4d\xce\xd8\x25\x89\x41\x60\x9b\x19\xb6\x92\x31\xc6\x96\x34\x91\x42\xa7\x62\xc3\x7d\x03\x59\x9e\x9b\x1e\x08\x7e\xa5\x4d\x07\x7c\x3b\x54\xf4\x33\x2e\x34\x13\xfd\x53\xf7\x1b\xab\xc5\x88\x2f\x33\xde\xa9\x75\xb8\xc8\x8f\xe3\x68\xc0\xb1\x02\x23\xc5\x2a\x03\xb7\x43\x18\x89\xfe\x2c\xcd\xd6\x66\xc9\x3c\xba\x4a\xf8\x1a\x21\x8d\x5f\x68\x6e\x1a\x0a\x6c\x0f\xab\xad\x84\xa1\xe8\xc7\x67\x6a\xb3\xd6\xc4\x7f\xb5\x75\xd1\x91\x62\x95\xc9\x41\x34\x95\xb0\x8d\x9b\x66\x84\xbb\x90\x6a\x15\x2f\x4d\x6d\x49\x1f\x17\x8b\xe9\xb1\x32\xc0\x93\x82\x8f\x2b\xbd\x8b\xca\x61\x7c\x48\xf9\x72\x16\x40\x82\x10\x6f\x81\x9e\xdb\x36\xf8\x1d\x4c\x3d\x91\xad\x2e\xcf\x4b\x08\xd9\xd6\xc2\x90\x34\x41\xe0\x26\xd4\xe5\x74\xd3\x9a\xd8\xf1\xe7\x39\xd1\x20\x20\xa6\x90\x96\x5b\xc5\x0f\x67\x6b\xf6\x9c\xeb\x80\xa9\x3b\xf2\x63\x83\x58\x2d\x22\xdd\x4f\xe2\xe5\x92\x98\x8c\x79\xb9\x21\x6b\xd9\x5d\x8b\x98\x3b\xcf\x73\xdd\xbf\x54\xf1\x9a\x25\x08\xb5\x25\xab\x22\xd4\x39\xa1\xdb\xb2\x03\xb3\xda\xdb\xda\xbc\x99\x22\xe7\xa6\xc8\xf9\x44\x4e\x59\x85\x6a\xf8\xfd\x7e\x9e\x66\x39\x56\xbc\xf2\xfb\x76\xc1\xf5\x6b\xbf\x63\x5f\xcd\x61\xc1\x56\x61\xb8\x22\x2b\xf2\x8a\x4c\xa6\x94\xd2\xd1\x22\x0c\x17\x5d\x66\xf0\x80\xb0\x43\x59\x80\xa4\x61\x48\xce\xd9\x82\x62\x4d\xd7\x6c\x5d\xee\x79\x36\xaf\x3c\xd7\x31\xc3\x39\x2d\x07\x72\x61\x80\x30\xb1\xcb\x1c\x3c\x00\xfc\x1a\x9a\xf6\xe7\x52\x3d\x8a\x93\xf3\x0a\x29\xe0\x74\x6b\xd1\x67\x8d\x3a\x54\x46\xe5\x71\x0a\xe1\xa0\x69\x4e\xf1\x7f\xd1\xdc\x99\x25\x44\x88\x5e\x46\xd5\xdc\xac\x8e\x53\x8a\x02\x71\x09\x32\x83\x4e\xaa\x44\x49\x41\x4c\xb7\xdd\x22\xa7\x32\x25\x21\x86\xcc\x56\x8f\xab\x7c\x22\xa7\xa0\x21\xb5\x0b\xdd\x0e\xae\x5b\xae\x73\x3b\xad\x76\x91\xce\xd9\xb2\x8f\x8b\xb6\xc0\x71\x61\x18\x48\x04\x5b\x49\xb2\xe6\x05\xe8\xe7\x10\x9c\x9e\xc6\x97\x71\xaa\x03\x3a\xe6\x7d\xc5\x33\xb9\xbc\xe0\x64\xde\x77\xa9\xb4\xaf\xcf\xb9\xa8\x53\x50\xe5\xb0\x09\x68\xec\x65\x4e\xa1\xf9\xd9\x81\xdf\x7f\xa7\x51\xa5\xe6\xb6\x1a\x5d\x97\x99\x86\x98\x2c\xf7\x2b\xb4\x03\x69\xa9\x37\xcf\x88\xdb\x4f\x08\x33\x03\x48\x93\xea\x0b\x30\x35\x56\xb6\xb5\x18\x62\x1a\xc5\x84\x56\xe8\xd2\x65\x39\x83\x82\xe9\x82\x60\x4f\xb8\xdb\xb7\x53\x03\xeb\x0b\x99\xce\x3a\x03\x83\xa0\x10\x9b\xf0\x02\x11\x33\xb1\x59\x2e\xa1\x44\x02\xbc\x8a\x26\xcb\xda\xfa\xb6\x2b\x61\x48\x78\x81\x0e\x3c\x5e\xe3\x88\x0f\x6c\x0b\x60\x7b\xd3\x56\x21\x75\xa3\x59\x8e\x78\x13\xa3\xd8\x1a\xcc\x72\x7a\x77\xbd\xe6\x8e\x42\xbd\x3b\xe7\x1d\xdf\x7c\x67\x26\x79\xd6\x11\x52\x77\xd6\x4a\x5e\xa4\x33\xde\x89\x3b\xff\x81\x85\xff\xa3\x63\xeb\x0a\x0a\x68\x2d\x73\x4b\x2b\x37\x44\x40\x39\x00\xdb\x46\x75\xdd\x19\x9c\x6f\xd7\x9d\x2b\x78\xa0\x5b\x0a\x97\x63\x13\x62\xcb\x91\x65\x02\xf0\xab\x5f\xa2\x72\x2c\x2d\x92\x26\x7c\xa2\xcd\x4a\xd9\x2c\xf5\xcb\x78\xc5\xa7\x4c\xda\x85\x01\xbc\x6f\x56\x1c\xd3\xf8\xf3\x5c\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.
-3
View File
@@ -160,9 +160,6 @@ func Server(cfg *config.Config) *cli.Command {
)
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().
+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))
+2 -2
View File
@@ -137,7 +137,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
Name: "jwt-secret",
Value: "Pive-Fumkiu4",
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
EnvVars: []string{"ACCOUNTS_JWT_SECRET"},
EnvVars: []string{"ACCOUNTS_JWT_SECRET", "OCIS_JWT_SECRET"},
Destination: &cfg.TokenManager.JWTSecret,
},
&cli.StringFlag{
@@ -172,7 +172,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
Name: "storage-cs3-jwt-secret",
Value: "Pive-Fumkiu4",
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_JWT_SECRET"},
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_JWT_SECRET", "OCIS_JWT_SECRET"},
Destination: &cfg.Repo.CS3.JWTSecret,
},
&cli.StringFlag{
+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
+169 -146
View File
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.21.0-devel
// protoc v3.13.0
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: accounts.proto
package proto
@@ -10,6 +10,7 @@ import (
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
@@ -480,12 +481,12 @@ type Account struct {
IsResourceAccount bool `protobuf:"varint,3,opt,name=is_resource_account,json=isResourceAccount,proto3" json:"is_resource_account,omitempty"`
// Indicates whether the account was created as
// - a regular school or work account ("" / emptystring),
// - a local account, fully managed by ocis (LocalAccount), includes synced accounts or
// - a local account, fully managed by oCIS (LocalAccount), includes synced accounts or
// - an external account (Invitation),
// - self-service sign-up using email verification (EmailVerified). Read-only.
CreationType string `protobuf:"bytes,4,opt,name=creation_type,json=creationType,proto3" json:"creation_type,omitempty"`
// Represents the identities that can be used to sign in to this account.
// An 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.
// An 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.
// May contain multiple items with the same signInType value. Supports $filter.
Identities []*Identities `protobuf:"bytes,5,rep,name=identities,proto3" json:"identities,omitempty"`
// The name displayed in the address book for the account.
@@ -527,7 +528,7 @@ type Account struct {
// *false* if this object was originally synced from an on-premises directory but is no longer synced;
// null if this object has never been synced from an on-premises directory (default). Read-only
OnPremisesSyncEnabled bool `protobuf:"varint,20,opt,name=on_premises_sync_enabled,json=onPremisesSyncEnabled,proto3" json:"on_premises_sync_enabled,omitempty"`
// This property is used to associate an on-premises LDAP user to the ocis account object.
// This property is used to associate an on-premises LDAP user to the oCIS account object.
// This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property.
// Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
OnPremisesImmutableId string `protobuf:"bytes,21,opt,name=on_premises_immutable_id,json=onPremisesImmutableId,proto3" json:"on_premises_immutable_id,omitempty"`
@@ -796,7 +797,7 @@ func (x *Account) GetSignInSessionsValidFromDateTime() *timestamp.Timestamp {
}
// Identities Represents an identity used to sign in to a user account.
// An 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.
// An 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.
// This enables the user to sign in to the user account with any of those associated identities.
// They are also used to keep a history of old usernames.
type Identities struct {
@@ -1643,7 +1644,7 @@ type Group struct {
// null if this object has never been synced from an on-premises directory (default).
// Returned by default. Read-only. Supports $filter.
OnPremisesSyncEnabled bool `protobuf:"varint,20,opt,name=on_premises_sync_enabled,json=onPremisesSyncEnabled,proto3" json:"on_premises_sync_enabled,omitempty"`
// This property is used to associate an on-premises LDAP user to the ocis account object.
// This property is used to associate an on-premises LDAP user to the oCIS account object.
// This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property.
// Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
OnPremisesImmutableId string `protobuf:"bytes,21,opt,name=on_premises_immutable_id,json=onPremisesImmutableId,proto3" json:"on_premises_immutable_id,omitempty"`
@@ -1919,7 +1920,7 @@ var File_accounts_proto protoreflect.FileDescriptor
var file_accounts_proto_rawDesc = []byte{
0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
0x12, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
@@ -1929,7 +1930,10 @@ var file_accounts_proto_rawDesc = []byte{
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61,
0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x15, 0x0a, 0x13, 0x52, 0x65, 0x62,
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f,
0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x15, 0x0a, 0x13, 0x52, 0x65, 0x62,
0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x22, 0x16, 0x0a, 0x14, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73,
@@ -1946,7 +1950,7 @@ var file_accounts_proto_rawDesc = []byte{
0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x6d, 0x0a, 0x14,
0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,
@@ -1955,12 +1959,12 @@ var file_accounts_proto_rawDesc = []byte{
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
0x22, 0x43, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74,
0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63,
0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x80, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b,
0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75,
0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
@@ -1979,7 +1983,7 @@ var file_accounts_proto_rawDesc = []byte{
0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72,
0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x0a, 0x69, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14,
0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x74, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73,
0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e,
@@ -1994,11 +1998,11 @@ var file_accounts_proto_rawDesc = []byte{
0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x44,
0x0a, 0x10, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69,
0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69,
0x6e, 0x67, 0x73, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x66,
0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x73, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x66,
0x69, 0x6c, 0x65, 0x52, 0x0f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f,
0x66, 0x69, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66,
0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4f,
0x66, 0x12, 0x46, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74,
0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
@@ -2045,7 +2049,7 @@ var file_accounts_proto_rawDesc = []byte{
0x74, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x6c, 0x0a,
0x1f, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x5f, 0x70, 0x72, 0x6f,
0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73,
0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x73, 0x2e, 0x4f, 0x6e, 0x50, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x1c, 0x6f,
0x6e, 0x50, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69,
@@ -2115,8 +2119,8 @@ var file_accounts_proto_rawDesc = []byte{
0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x65, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x06,
0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73,
0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x67,
0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61,
0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x21, 0x0a,
@@ -2124,11 +2128,11 @@ var file_accounts_proto_rawDesc = []byte{
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
0x22, 0x3b, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x78, 0x0a,
0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72,
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70,
0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
@@ -2160,8 +2164,8 @@ var file_accounts_proto_rawDesc = []byte{
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22,
0x6a, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
0x67, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62,
0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,
0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xea, 0x08, 0x0a, 0x05,
@@ -2169,10 +2173,10 @@ var file_accounts_proto_rawDesc = []byte{
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73,
0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62,
0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74,
0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x6d, 0x65,
0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x6d, 0x65,
0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x29, 0x0a, 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18,
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73,
0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
@@ -2231,7 +2235,7 @@ var file_accounts_proto_rawDesc = []byte{
0x6e, 0x63, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x6c, 0x0a, 0x1f, 0x6f, 0x6e,
0x5f, 0x70, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73,
0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x1c, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4f,
0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4f,
0x6e, 0x50, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69,
0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x1c, 0x6f, 0x6e, 0x50, 0x72,
0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69,
@@ -2251,35 +2255,35 @@ var file_accounts_proto_rawDesc = []byte{
0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0xcb, 0x04, 0x0a, 0x0f, 0x41,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78,
0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x1d,
0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63,
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,
0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82,
0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
0x2d, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x66, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41,
0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d,
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2d, 0x67, 0x65, 0x74, 0x3a, 0x01, 0x2a,
0x12, 0x6f, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x12, 0x1e, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x43, 0x72, 0x65,
0x74, 0x12, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x63,
0x74, 0x1a, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01,
0x2a, 0x12, 0x6f, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x55, 0x70,
0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63,
0x73, 0x74, 0x1a, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f,
0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a,
0x01, 0x2a, 0x12, 0x74, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x44,
0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2b, 0x82, 0xd3, 0xe4,
@@ -2287,72 +2291,91 @@ var file_accounts_proto_rawDesc = []byte{
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2d, 0x64,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x32, 0x90, 0x07, 0x0a, 0x0d, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x0a, 0x4c, 0x69,
0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1b, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69,
0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1b, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x72,
0x6f, 0x75, 0x70, 0x73, 0x2d, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x5e, 0x0a, 0x08,
0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69,
0x6e, 0x67, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47,
0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x19, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47,
0x72, 0x6f, 0x75, 0x70, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x73, 0x2d, 0x67, 0x65, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0b,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x73, 0x65,
0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74,
0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2d, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47,
0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e,
0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72,
0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x72,
0x6f, 0x75, 0x70, 0x73, 0x2d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x6e,
0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e,
0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47,
0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x72,
0x6f, 0x75, 0x70, 0x73, 0x2d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x6d,
0x0a, 0x09, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x73, 0x65,
0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
0x67, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d,
0x0a, 0x09, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d,
0x22, 0x28, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73,
0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x3d, 0x2a, 0x7d, 0x2f, 0x6d, 0x65,
0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x24, 0x72, 0x65, 0x66, 0x3a, 0x01, 0x2a, 0x12, 0x80, 0x01,
0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d,
0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e,
0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x40,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x40,
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x22, 0x35, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f,
0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64,
0x3d, 0x2a, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x24, 0x72, 0x65, 0x66, 0x3a, 0x01, 0x2a,
0x12, 0x79, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12,
0x1c, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d,
0x1c, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d,
0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,
0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d,
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d,
0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3,
0xe4, 0x93, 0x02, 0x27, 0x22, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x67, 0x72,
0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x3d, 0x2a, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62,
0x65, 0x72, 0x73, 0x2f, 0x24, 0x72, 0x65, 0x66, 0x3a, 0x01, 0x2a, 0x32, 0x7f, 0x0a, 0x0c, 0x49,
0x6e, 0x64, 0x65, 0x78, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x0c, 0x52,
0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, 0x2e, 0x73, 0x65,
0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e,
0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x65, 0x74,
0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64,
0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, 0x2e, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e,
0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64,
0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x69, 0x6e, 0x64, 0x65,
0x78, 0x2f, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x14, 0x5a, 0x12,
0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x30, 0x3b, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x78, 0x2f, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0xbe, 0x02, 0x5a,
0x12, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x30, 0x3b, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x92, 0x41, 0xa6, 0x02, 0x12, 0xb6, 0x01, 0x0a, 0x20, 0x6f, 0x77, 0x6e, 0x43,
0x6c, 0x6f, 0x75, 0x64, 0x20, 0x49, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x20, 0x53, 0x63,
0x61, 0x6c, 0x65, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x47, 0x0a, 0x0d,
0x6f, 0x77, 0x6e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x47, 0x6d, 0x62, 0x48, 0x12, 0x20, 0x68,
0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x63, 0x69, 0x73, 0x1a,
0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x40, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75,
0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x2a, 0x42, 0x0a, 0x0a, 0x41, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2d,
0x32, 0x2e, 0x30, 0x12, 0x34, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x62, 0x2f, 0x6d, 0x61, 0x73, 0x74, 0x65,
0x72, 0x2f, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x32, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30,
0x2a, 0x02, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x72, 0x43, 0x0a, 0x10, 0x44, 0x65, 0x76, 0x65,
0x6c, 0x6f, 0x70, 0x65, 0x72, 0x20, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x12, 0x2f, 0x68, 0x74,
0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x69, 0x6f, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -2369,92 +2392,92 @@ func file_accounts_proto_rawDescGZIP() []byte {
var file_accounts_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
var file_accounts_proto_goTypes = []interface{}{
(*RebuildIndexRequest)(nil), // 0: settings.RebuildIndexRequest
(*RebuildIndexResponse)(nil), // 1: settings.RebuildIndexResponse
(*ListAccountsRequest)(nil), // 2: settings.ListAccountsRequest
(*ListAccountsResponse)(nil), // 3: settings.ListAccountsResponse
(*GetAccountRequest)(nil), // 4: settings.GetAccountRequest
(*CreateAccountRequest)(nil), // 5: settings.CreateAccountRequest
(*UpdateAccountRequest)(nil), // 6: settings.UpdateAccountRequest
(*DeleteAccountRequest)(nil), // 7: settings.DeleteAccountRequest
(*Account)(nil), // 8: settings.Account
(*Identities)(nil), // 9: settings.Identities
(*PasswordProfile)(nil), // 10: settings.PasswordProfile
(*ListGroupsRequest)(nil), // 11: settings.ListGroupsRequest
(*ListGroupsResponse)(nil), // 12: settings.ListGroupsResponse
(*GetGroupRequest)(nil), // 13: settings.GetGroupRequest
(*CreateGroupRequest)(nil), // 14: settings.CreateGroupRequest
(*UpdateGroupRequest)(nil), // 15: settings.UpdateGroupRequest
(*DeleteGroupRequest)(nil), // 16: settings.DeleteGroupRequest
(*AddMemberRequest)(nil), // 17: settings.AddMemberRequest
(*RemoveMemberRequest)(nil), // 18: settings.RemoveMemberRequest
(*ListMembersRequest)(nil), // 19: settings.ListMembersRequest
(*ListMembersResponse)(nil), // 20: settings.ListMembersResponse
(*Group)(nil), // 21: settings.Group
(*OnPremisesProvisioningError)(nil), // 22: settings.OnPremisesProvisioningError
(*RebuildIndexRequest)(nil), // 0: accounts.RebuildIndexRequest
(*RebuildIndexResponse)(nil), // 1: accounts.RebuildIndexResponse
(*ListAccountsRequest)(nil), // 2: accounts.ListAccountsRequest
(*ListAccountsResponse)(nil), // 3: accounts.ListAccountsResponse
(*GetAccountRequest)(nil), // 4: accounts.GetAccountRequest
(*CreateAccountRequest)(nil), // 5: accounts.CreateAccountRequest
(*UpdateAccountRequest)(nil), // 6: accounts.UpdateAccountRequest
(*DeleteAccountRequest)(nil), // 7: accounts.DeleteAccountRequest
(*Account)(nil), // 8: accounts.Account
(*Identities)(nil), // 9: accounts.Identities
(*PasswordProfile)(nil), // 10: accounts.PasswordProfile
(*ListGroupsRequest)(nil), // 11: accounts.ListGroupsRequest
(*ListGroupsResponse)(nil), // 12: accounts.ListGroupsResponse
(*GetGroupRequest)(nil), // 13: accounts.GetGroupRequest
(*CreateGroupRequest)(nil), // 14: accounts.CreateGroupRequest
(*UpdateGroupRequest)(nil), // 15: accounts.UpdateGroupRequest
(*DeleteGroupRequest)(nil), // 16: accounts.DeleteGroupRequest
(*AddMemberRequest)(nil), // 17: accounts.AddMemberRequest
(*RemoveMemberRequest)(nil), // 18: accounts.RemoveMemberRequest
(*ListMembersRequest)(nil), // 19: accounts.ListMembersRequest
(*ListMembersResponse)(nil), // 20: accounts.ListMembersResponse
(*Group)(nil), // 21: accounts.Group
(*OnPremisesProvisioningError)(nil), // 22: accounts.OnPremisesProvisioningError
(*field_mask.FieldMask)(nil), // 23: google.protobuf.FieldMask
(*timestamp.Timestamp)(nil), // 24: google.protobuf.Timestamp
(*empty.Empty)(nil), // 25: google.protobuf.Empty
}
var file_accounts_proto_depIdxs = []int32{
23, // 0: settings.ListAccountsRequest.field_mask:type_name -> google.protobuf.FieldMask
8, // 1: settings.ListAccountsResponse.accounts:type_name -> settings.Account
8, // 2: settings.CreateAccountRequest.account:type_name -> settings.Account
8, // 3: settings.UpdateAccountRequest.account:type_name -> settings.Account
23, // 4: settings.UpdateAccountRequest.update_mask:type_name -> google.protobuf.FieldMask
9, // 5: settings.Account.identities:type_name -> settings.Identities
10, // 6: settings.Account.password_profile:type_name -> settings.PasswordProfile
21, // 7: settings.Account.memberOf:type_name -> settings.Group
24, // 8: settings.Account.created_date_time:type_name -> google.protobuf.Timestamp
24, // 9: settings.Account.deleted_date_time:type_name -> google.protobuf.Timestamp
24, // 10: settings.Account.on_premises_last_sync_date_time:type_name -> google.protobuf.Timestamp
22, // 11: settings.Account.on_premises_provisioning_errors:type_name -> settings.OnPremisesProvisioningError
24, // 12: settings.Account.external_user_state_change_date_time:type_name -> google.protobuf.Timestamp
24, // 13: settings.Account.refresh_tokens_valid_from_date_time:type_name -> google.protobuf.Timestamp
24, // 14: settings.Account.sign_in_sessions_valid_from_date_time:type_name -> google.protobuf.Timestamp
24, // 15: settings.PasswordProfile.last_password_change_date_time:type_name -> google.protobuf.Timestamp
23, // 16: settings.ListGroupsRequest.field_mask:type_name -> google.protobuf.FieldMask
21, // 17: settings.ListGroupsResponse.groups:type_name -> settings.Group
21, // 18: settings.CreateGroupRequest.group:type_name -> settings.Group
21, // 19: settings.UpdateGroupRequest.group:type_name -> settings.Group
23, // 20: settings.UpdateGroupRequest.update_mask:type_name -> google.protobuf.FieldMask
23, // 21: settings.ListMembersRequest.field_mask:type_name -> google.protobuf.FieldMask
8, // 22: settings.ListMembersResponse.members:type_name -> settings.Account
8, // 23: settings.Group.members:type_name -> settings.Account
8, // 24: settings.Group.owners:type_name -> settings.Account
24, // 25: settings.Group.created_date_time:type_name -> google.protobuf.Timestamp
24, // 26: settings.Group.deleted_date_time:type_name -> google.protobuf.Timestamp
24, // 27: settings.Group.expiration_date_time:type_name -> google.protobuf.Timestamp
22, // 28: settings.Group.on_premises_provisioning_errors:type_name -> settings.OnPremisesProvisioningError
24, // 29: settings.OnPremisesProvisioningError.occurred_date_time:type_name -> google.protobuf.Timestamp
2, // 30: settings.AccountsService.ListAccounts:input_type -> settings.ListAccountsRequest
4, // 31: settings.AccountsService.GetAccount:input_type -> settings.GetAccountRequest
5, // 32: settings.AccountsService.CreateAccount:input_type -> settings.CreateAccountRequest
6, // 33: settings.AccountsService.UpdateAccount:input_type -> settings.UpdateAccountRequest
7, // 34: settings.AccountsService.DeleteAccount:input_type -> settings.DeleteAccountRequest
11, // 35: settings.GroupsService.ListGroups:input_type -> settings.ListGroupsRequest
13, // 36: settings.GroupsService.GetGroup:input_type -> settings.GetGroupRequest
14, // 37: settings.GroupsService.CreateGroup:input_type -> settings.CreateGroupRequest
15, // 38: settings.GroupsService.UpdateGroup:input_type -> settings.UpdateGroupRequest
16, // 39: settings.GroupsService.DeleteGroup:input_type -> settings.DeleteGroupRequest
17, // 40: settings.GroupsService.AddMember:input_type -> settings.AddMemberRequest
18, // 41: settings.GroupsService.RemoveMember:input_type -> settings.RemoveMemberRequest
19, // 42: settings.GroupsService.ListMembers:input_type -> settings.ListMembersRequest
0, // 43: settings.IndexService.RebuildIndex:input_type -> settings.RebuildIndexRequest
3, // 44: settings.AccountsService.ListAccounts:output_type -> settings.ListAccountsResponse
8, // 45: settings.AccountsService.GetAccount:output_type -> settings.Account
8, // 46: settings.AccountsService.CreateAccount:output_type -> settings.Account
8, // 47: settings.AccountsService.UpdateAccount:output_type -> settings.Account
25, // 48: settings.AccountsService.DeleteAccount:output_type -> google.protobuf.Empty
12, // 49: settings.GroupsService.ListGroups:output_type -> settings.ListGroupsResponse
21, // 50: settings.GroupsService.GetGroup:output_type -> settings.Group
21, // 51: settings.GroupsService.CreateGroup:output_type -> settings.Group
21, // 52: settings.GroupsService.UpdateGroup:output_type -> settings.Group
25, // 53: settings.GroupsService.DeleteGroup:output_type -> google.protobuf.Empty
21, // 54: settings.GroupsService.AddMember:output_type -> settings.Group
21, // 55: settings.GroupsService.RemoveMember:output_type -> settings.Group
20, // 56: settings.GroupsService.ListMembers:output_type -> settings.ListMembersResponse
1, // 57: settings.IndexService.RebuildIndex:output_type -> settings.RebuildIndexResponse
23, // 0: accounts.ListAccountsRequest.field_mask:type_name -> google.protobuf.FieldMask
8, // 1: accounts.ListAccountsResponse.accounts:type_name -> accounts.Account
8, // 2: accounts.CreateAccountRequest.account:type_name -> accounts.Account
8, // 3: accounts.UpdateAccountRequest.account:type_name -> accounts.Account
23, // 4: accounts.UpdateAccountRequest.update_mask:type_name -> google.protobuf.FieldMask
9, // 5: accounts.Account.identities:type_name -> accounts.Identities
10, // 6: accounts.Account.password_profile:type_name -> accounts.PasswordProfile
21, // 7: accounts.Account.memberOf:type_name -> accounts.Group
24, // 8: accounts.Account.created_date_time:type_name -> google.protobuf.Timestamp
24, // 9: accounts.Account.deleted_date_time:type_name -> google.protobuf.Timestamp
24, // 10: accounts.Account.on_premises_last_sync_date_time:type_name -> google.protobuf.Timestamp
22, // 11: accounts.Account.on_premises_provisioning_errors:type_name -> accounts.OnPremisesProvisioningError
24, // 12: accounts.Account.external_user_state_change_date_time:type_name -> google.protobuf.Timestamp
24, // 13: accounts.Account.refresh_tokens_valid_from_date_time:type_name -> google.protobuf.Timestamp
24, // 14: accounts.Account.sign_in_sessions_valid_from_date_time:type_name -> google.protobuf.Timestamp
24, // 15: accounts.PasswordProfile.last_password_change_date_time:type_name -> google.protobuf.Timestamp
23, // 16: accounts.ListGroupsRequest.field_mask:type_name -> google.protobuf.FieldMask
21, // 17: accounts.ListGroupsResponse.groups:type_name -> accounts.Group
21, // 18: accounts.CreateGroupRequest.group:type_name -> accounts.Group
21, // 19: accounts.UpdateGroupRequest.group:type_name -> accounts.Group
23, // 20: accounts.UpdateGroupRequest.update_mask:type_name -> google.protobuf.FieldMask
23, // 21: accounts.ListMembersRequest.field_mask:type_name -> google.protobuf.FieldMask
8, // 22: accounts.ListMembersResponse.members:type_name -> accounts.Account
8, // 23: accounts.Group.members:type_name -> accounts.Account
8, // 24: accounts.Group.owners:type_name -> accounts.Account
24, // 25: accounts.Group.created_date_time:type_name -> google.protobuf.Timestamp
24, // 26: accounts.Group.deleted_date_time:type_name -> google.protobuf.Timestamp
24, // 27: accounts.Group.expiration_date_time:type_name -> google.protobuf.Timestamp
22, // 28: accounts.Group.on_premises_provisioning_errors:type_name -> accounts.OnPremisesProvisioningError
24, // 29: accounts.OnPremisesProvisioningError.occurred_date_time:type_name -> google.protobuf.Timestamp
2, // 30: accounts.AccountsService.ListAccounts:input_type -> accounts.ListAccountsRequest
4, // 31: accounts.AccountsService.GetAccount:input_type -> accounts.GetAccountRequest
5, // 32: accounts.AccountsService.CreateAccount:input_type -> accounts.CreateAccountRequest
6, // 33: accounts.AccountsService.UpdateAccount:input_type -> accounts.UpdateAccountRequest
7, // 34: accounts.AccountsService.DeleteAccount:input_type -> accounts.DeleteAccountRequest
11, // 35: accounts.GroupsService.ListGroups:input_type -> accounts.ListGroupsRequest
13, // 36: accounts.GroupsService.GetGroup:input_type -> accounts.GetGroupRequest
14, // 37: accounts.GroupsService.CreateGroup:input_type -> accounts.CreateGroupRequest
15, // 38: accounts.GroupsService.UpdateGroup:input_type -> accounts.UpdateGroupRequest
16, // 39: accounts.GroupsService.DeleteGroup:input_type -> accounts.DeleteGroupRequest
17, // 40: accounts.GroupsService.AddMember:input_type -> accounts.AddMemberRequest
18, // 41: accounts.GroupsService.RemoveMember:input_type -> accounts.RemoveMemberRequest
19, // 42: accounts.GroupsService.ListMembers:input_type -> accounts.ListMembersRequest
0, // 43: accounts.IndexService.RebuildIndex:input_type -> accounts.RebuildIndexRequest
3, // 44: accounts.AccountsService.ListAccounts:output_type -> accounts.ListAccountsResponse
8, // 45: accounts.AccountsService.GetAccount:output_type -> accounts.Account
8, // 46: accounts.AccountsService.CreateAccount:output_type -> accounts.Account
8, // 47: accounts.AccountsService.UpdateAccount:output_type -> accounts.Account
25, // 48: accounts.AccountsService.DeleteAccount:output_type -> google.protobuf.Empty
12, // 49: accounts.GroupsService.ListGroups:output_type -> accounts.ListGroupsResponse
21, // 50: accounts.GroupsService.GetGroup:output_type -> accounts.Group
21, // 51: accounts.GroupsService.CreateGroup:output_type -> accounts.Group
21, // 52: accounts.GroupsService.UpdateGroup:output_type -> accounts.Group
25, // 53: accounts.GroupsService.DeleteGroup:output_type -> google.protobuf.Empty
21, // 54: accounts.GroupsService.AddMember:output_type -> accounts.Group
21, // 55: accounts.GroupsService.RemoveMember:output_type -> accounts.Group
20, // 56: accounts.GroupsService.ListMembers:output_type -> accounts.ListMembersResponse
1, // 57: accounts.IndexService.RebuildIndex:output_type -> accounts.RebuildIndexResponse
44, // [44:58] is the sub-list for method output_type
30, // [30:44] is the sub-list for method input_type
30, // [30:30] is the sub-list for extension type_name
+4 -3
View File
@@ -8,6 +8,7 @@ import (
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
_ "google.golang.org/genproto/protobuf/field_mask"
math "math"
@@ -15,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.
+87 -59
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()
@@ -126,7 +128,7 @@ func getGroup(group string) *proto.Group {
switch group {
case "sysusers":
return &proto.Group{Id: "34f38767-c937-4eb6-b847-1c175829a2a0", GidNumber: 15000, OnPremisesSamAccountName: "sysusers", DisplayName: "Technical users", Description: "A group for technical users. They should not show up in sharing dialogs.", Members: []*proto.Account{
{Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf"}, // konnectd
{Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf"}, // idp
{Id: "bc596f3c-c955-4328-80a0-60d018b4ad57"}, // reva
}}
case "users":
@@ -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"}},
+32 -6
View File
@@ -2,7 +2,7 @@ syntax = "proto3";
option go_package = "pkg/proto/v0;proto";
package settings;
package accounts;
import "google/api/field_behavior.proto";
import "google/api/annotations.proto";
@@ -10,6 +10,32 @@ import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
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/";
};
};
// Follow recommended Methods for rpc APIs https://cloud.google.com/apis/design/resources?hl=de#methods
// https://cloud.google.com/apis/design/standard_methods?hl=de#list
// https://cloud.google.com/apis/design/naming_convention?hl=de
@@ -242,13 +268,13 @@ message Account {
// Indicates whether the account was created as
// - a regular school or work account ("" / emptystring),
// - a local account, fully managed by ocis (LocalAccount), includes synced accounts or
// - a local account, fully managed by oCIS (LocalAccount), includes synced accounts or
// - an external account (Invitation),
// - self-service sign-up using email verification (EmailVerified). Read-only.
string creation_type = 4;
// Represents the identities that can be used to sign in to this account.
// An 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.
// An 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.
// May contain multiple items with the same signInType value. Supports $filter.
repeated Identities identities = 5;
@@ -321,7 +347,7 @@ message Account {
// null if this object has never been synced from an on-premises directory (default). Read-only
bool on_premises_sync_enabled = 20;
// This property is used to associate an on-premises LDAP user to the ocis account object.
// This property is used to associate an on-premises LDAP user to the oCIS account object.
// This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property.
// Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
string on_premises_immutable_id = 21;
@@ -382,7 +408,7 @@ message Account {
}
// Identities Represents an identity used to sign in to a user account.
// An 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.
// An 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.
// This enables the user to sign in to the user account with any of those associated identities.
// They are also used to keep a history of old usernames.
message Identities {
@@ -627,7 +653,7 @@ message Group {
// Returned by default. Read-only. Supports $filter.
bool on_premises_sync_enabled = 20;
// This property is used to associate an on-premises LDAP user to the ocis account object.
// This property is used to associate an on-premises LDAP user to the oCIS account object.
// This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property.
// Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
string on_premises_immutable_id = 21;
File diff suppressed because it is too large. Load diff
+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
}
+20 -30
View File
@@ -6,22 +6,22 @@ import (
"crypto/sha256"
"encoding/hex"
"fmt"
"github.com/owncloud/ocis/ocis-pkg/cache"
"golang.org/x/crypto/bcrypt"
"io"
"path"
"regexp"
"strconv"
"sync"
"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"
@@ -30,14 +30,12 @@ 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"
)
// accLock mutually exclude readers from writers on account files
var accLock sync.Mutex
// passwordValidCache caches basic auth password validations
var passwordValidCache = cache.NewCache(cache.Size(1024))
var passwordValidCache = sync.NewCache(1024)
// passwordValidCacheExpiration defines the entry lifetime
const passwordValidCacheExpiration = 10 * time.Minute
@@ -133,9 +131,6 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
}
onlySelf := hasSelf && !hasManagement
accLock.Lock()
defer accLock.Unlock()
teardownServiceUser := s.serviceUserToIndex()
defer teardownServiceUser()
match, authRequest := getAuthQueryMatch(in.Query)
@@ -172,23 +167,20 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
// - it checks if the cache already contains an entry that matches found account Id // account PasswordProfile.LastPasswordChangeDateTime (k)
// - if no entry exists it runs the bcrypt.CompareHashAndPassword as before and if everything is ok it stores the
// result by the (k) as key and (v) as value. If not it errors
// - if a entry is found it checks if the given value matches (v). If it doesnt match the cache entry gets removed
// - if a entry is found it checks if the given value matches (v). If it doesnt match, the cache entry gets removed
// and it errors.
//
// if many concurrent requests from the same user come in within a short period of time, it's possible that e is still nil.
// This is why all this needs to be wrapped within a sync.Mutex locking to prevent calling bcrypt.CompareHashAndPassword unnecessarily too often.
{
var suspicious bool
kh := sha256.New()
kh.Write([]byte(a.Id))
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.Get(k)
e := passwordValidCache.Load(k)
if e == nil {
suspicious = !isPasswordValid(s.log, a.PasswordProfile.Password, password)
@@ -197,12 +189,12 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
}
if suspicious {
passwordValidCache.Unset(k)
passwordValidCache.Delete(k)
return merrors.Unauthorized(s.id, "account not found or invalid credentials")
}
if e == nil {
passwordValidCache.Set(k, v, time.Now().Add(passwordValidCacheExpiration))
passwordValidCache.Store(k, v, time.Now().Add(passwordValidCacheExpiration))
}
}
@@ -284,8 +276,6 @@ func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, ou
}
onlySelf := hasSelf && !hasManagement
accLock.Lock()
defer accLock.Unlock()
var id string
if id, err = cleanupID(in.Id); err != nil {
return merrors.InternalServerError(s.id, "could not clean up account id: %v", err.Error())
@@ -331,8 +321,6 @@ func (s Service) CreateAccount(ctx context.Context, in *proto.CreateAccountReque
return merrors.Forbidden(s.id, "no permission for CreateAccount")
}
accLock.Lock()
defer accLock.Unlock()
var id string
if in.Account == nil {
@@ -468,8 +456,6 @@ func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountReque
}
onlySelf := hasSelf && !hasManagement
accLock.Lock()
defer accLock.Unlock()
var id string
if in.Account == nil {
return merrors.BadRequest(s.id, "account missing")
@@ -633,8 +619,6 @@ func (s Service) DeleteAccount(ctx context.Context, in *proto.DeleteAccountReque
return merrors.Forbidden(s.id, "no permission for DeleteAccount")
}
accLock.Lock()
defer accLock.Unlock()
var id string
if id, err = cleanupID(in.Id); err != nil {
return merrors.InternalServerError(s.id, "could not clean up account id: %v", err.Error())
@@ -855,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) {
+44 -38
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,31 @@ func New(opts ...Option) (s *Service, err error) {
repo: createMetadataStorage(cfg, logger),
}
retries := 20
var current int
r := oreg.GetRegistry()
if cfg.Repo.Disk.Path == "" {
for {
if current >= retries {
panic("metadata service failed to start.")
}
s, err := r.GetService("com.owncloud.storage.metadata")
if err != nil {
logger.Error().Err(err).Msg("error getting metadata service from service registry")
}
if len(s) > 0 {
break
}
logger.Info().Msg("accounts blocked waiting for metadata service to be up and running...")
time.Sleep(2 * time.Second)
current++
}
}
// 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 +93,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
}
@@ -236,14 +260,14 @@ func (s Service) createDefaultAccounts() (err error) {
// technical users for kopano and reva
{
Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf",
PreferredName: "konnectd",
OnPremisesSamAccountName: "konnectd",
PreferredName: "idp",
OnPremisesSamAccountName: "idp",
Mail: "idp@example.org",
DisplayName: "Kopano Konnectd",
DisplayName: "Kopano IDP",
UidNumber: 10000,
GidNumber: 15000,
PasswordProfile: &proto.PasswordProfile{
Password: "$2a$11$ntoTP2W/kyQIuoYpH5mRBuNzaEERYWSwn/zCsY5rtffen4d41y9.6",
Password: "$2y$12$ywfGLDPsSlBTVZU0g.2GZOPO8Wap3rVOpm8e3192VlytNdGWH7x72",
},
AccountEnabled: true,
MemberOf: []*proto.Group{
@@ -267,7 +291,14 @@ 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)
if !storage.IsNotFoundErr(err) {
continue // account already exists -> do not overwrite
}
if err := s.repo.WriteAccount(context.Background(), &accounts[i]); err != nil {
return err
}
@@ -281,7 +312,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" {
@@ -303,31 +333,13 @@ 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", //konnectd
"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
}
func (s Service) createDefaultGroups() (err error) {
groups := []proto.Group{
{Id: "34f38767-c937-4eb6-b847-1c175829a2a0", GidNumber: 15000, OnPremisesSamAccountName: "sysusers", DisplayName: "Technical users", Description: "A group for technical users. They should not show up in sharing dialogs.", Members: []*proto.Account{
{Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf"}, // konnectd
{Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf"}, // idp
{Id: "bc596f3c-c955-4328-80a0-60d018b4ad57"}, // reva
}},
{Id: "509a9dcd-bb37-4f4f-a01a-19dca27d9cfa", GidNumber: 30000, OnPremisesSamAccountName: "users", DisplayName: "Users", Description: "A group every normal user belongs to.", Members: []*proto.Account{
@@ -360,6 +372,12 @@ func (s Service) createDefaultGroups() (err error) {
}},
}
for i := range groups {
g := &proto.Group{}
err := s.repo.LoadGroup(context.Background(), groups[i].Id, g)
if !storage.IsNotFoundErr(err) {
continue // group already exists -> do not overwrite
}
if err := s.repo.WriteGroup(context.Background(), &groups[i]); err != nil {
return err
}
@@ -391,18 +409,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,
},
},
},
},
}
}
-37
View File
@@ -1,37 +0,0 @@
sonar.projectKey=owncloud_ocis-accounts
sonar.organization=owncloud-1
sonar.projectName=ocis-accounts
sonar.projectVersion=1.0
sonar.host.url=https://sonarcloud.io
# =====================================================
# Meta-data for the project
# =====================================================
sonar.links.homepage=https://github.com/owncloud/ocis-accounts
sonar.links.ci=https://cloud.drone.io/owncloud/ocis-accounts/
sonar.links.scm=https://github.com/owncloud/ocis-accounts
sonar.links.issue=https://github.com/owncloud/ocis/accounts/issues
# =====================================================
# Properties that will be shared amongst all modules
# =====================================================
# SQ standard properties
sonar.sources=.
# Pull Requests
sonar.pullrequest.provider=GitHub
sonar.pullrequest.github.repository=owncloud/ocis-accounts
sonar.pullrequest.base=${env.SONAR_PULL_REQUEST_BASE}
sonar.pullrequest.branch=${env.SONAR_PULL_REQUEST_BRANCH}
sonar.pullrequest.key=${env.SONAR_PULL_REQUEST_KEY}
# Properties specific to language plugins:
sonar.go.coverage.reportPaths=coverage.out
# Exclude protobuf files
sonar.exclusions=pkg/proto/**, changelog/**, docs/**, package.json, rollup.config.js, changelog.md
+4 -2
View File
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
{{ range $opt := first . }}{{ with list $fnName $opt -}}
{{ $o := last . -}}
{{ if eq $o.FnName $fnName -}}
--{{ $o.Name }} | ${{ index $o.Env 0 }}
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
{{ end -}}
@@ -35,12 +35,14 @@ $HOME/.ocis
For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-accounts reads `accounts.json | yaml | toml ...`*.
So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`.
So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/accounts/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`.
### Environment variables
If you prefer to configure the service with environment variables you can see the available variables below.
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
File renamed without changes.
-7
View File
@@ -1,7 +0,0 @@
// +build tools
package main
import (
_ "github.com/restic/calens"
)
@@ -1,9 +1,9 @@
<template>
<div>
<oc-table middle divider>
<oc-table-group>
<oc-table-row class="fix-table-header">
<oc-table-cell shrink type="head" class="uk-text-center">
<oc-table-simple id="accounts-user-list">
<oc-thead>
<oc-tr class="fix-table-header">
<oc-th shrink type="head" align-h="center">
<oc-checkbox
class="oc-ml-s"
:value="areAllAccountsSelected"
@@ -11,23 +11,23 @@
:label="$gettext('Select all users')"
hide-label
/>
</oc-table-cell>
<oc-table-cell shrink type="head" />
<oc-table-cell type="head" v-text="$gettext('Username')" />
<oc-table-cell type="head" v-text="$gettext('Display name')" />
<oc-table-cell type="head" v-text="$gettext('Email')" />
<oc-table-cell type="head" v-text="$gettext('Role')" />
<oc-table-cell shrink type="head" v-text="$gettext('Activated')" />
</oc-table-row>
</oc-table-group>
<oc-table-group>
</oc-th>
<oc-th shrink type="head" />
<oc-th type="head" v-text="$gettext('Username')" />
<oc-th type="head" v-text="$gettext('Display name')" />
<oc-th type="head" v-text="$gettext('Email')" />
<oc-th type="head" v-text="$gettext('Role')" />
<oc-th shrink type="head" v-text="$gettext('Activated')" align-h="center"/>
</oc-tr>
</oc-thead>
<oc-tbody>
<accounts-list-row
v-for="account in accounts"
:key="`account-list-row-${account.id}`"
:account="account"
/>
</oc-table-group>
</oc-table>
</oc-tbody>
</oc-table-simple>
</div>
</template>
@@ -1,6 +1,6 @@
<template>
<oc-table-row>
<oc-table-cell>
<oc-tr>
<oc-td align-h="center">
<oc-checkbox
class="oc-ml-s"
size="large"
@@ -10,14 +10,14 @@
:label="selectAccountLabel"
hide-label
/>
</oc-table-cell>
<oc-table-cell>
</oc-td>
<oc-td>
<avatar :user-name="account.displayName || account.onPremisesSamAccountName" :userid="account.id" :width="35" />
</oc-table-cell>
<oc-table-cell v-text="account.onPremisesSamAccountName" />
<oc-table-cell v-text="account.displayName || '-'" />
<oc-table-cell v-text="account.mail" />
<oc-table-cell>
</oc-td>
<oc-td v-text="account.onPremisesSamAccountName" />
<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">
<span class="uk-flex uk-flex-middle accounts-roles-current-role">
{{ currentRole ? currentRole.displayName : $gettext('Select role') }}
@@ -43,8 +43,8 @@
</li>
</ul>
</oc-drop>
</oc-table-cell>
<oc-table-cell class="uk-text-center">
</oc-td>
<oc-td align-h="center">
<oc-icon
v-if="account.accountEnabled"
key="account-icon-enabled"
@@ -61,8 +61,8 @@
:aria-label="$gettext('Account is blocked')"
class="accounts-status-indicator-disabled"
/>
</oc-table-cell>
</oc-table-row>
</oc-td>
</oc-tr>
</template>
<script>
@@ -92,7 +92,7 @@ export default {
},
computed: {
...mapGetters(['user', 'configuration']),
...mapGetters(['user', 'getServerForJsClient']),
...mapState('Accounts', ['roles', 'selectedAccounts']),
selectAccountLabel () {
@@ -114,7 +114,7 @@ export default {
injectAuthToken(this.user.token)
const response = await RoleService_AssignRoleToUser({
$domain: this.configuration.server,
$domain: this.getServerForJsClient,
body: {
account_uuid: this.account.id,
role_id: roleId
@@ -139,7 +139,7 @@ export default {
injectAuthToken(this.user.token)
const response = await RoleService_ListRoleAssignments({
$domain: this.configuration.server,
$domain: this.getServerForJsClient,
body: {
account_uuid: this.account.id
}
+3 -3
View File
@@ -67,9 +67,9 @@ export default {
}
},
computed: {
...mapGetters(['getToken']),
...mapGetters(['getToken', 'configuration']),
enabled: function () {
return this.$root.config.enableAvatars || true
return this.configuration.enableAvatars || true
}
},
watch: {
@@ -97,7 +97,7 @@ export default {
return
}
const headers = new Headers()
const instance = this.$root.config.server || window.location.origin
const instance = this.configuration.server || window.location.origin
const url = instance + '/remote.php/dav/avatars/' + this.userid + '/128.png'
headers.append('Authorization', 'Bearer ' + this.getToken)
headers.append('X-Requested-With', 'XMLHttpRequest')
+13 -11
View File
@@ -31,7 +31,8 @@ const getters = {
})
},
areAllAccountsSelected: state => state.accounts.length === state.selectedAccounts.length,
isAnyAccountSelected: state => state.selectedAccounts.length > 0
isAnyAccountSelected: state => state.selectedAccounts.length > 0,
getServerForJsClient: (state, getters, rootState, rootGetters) => rootGetters.configuration.server.replace(/\/$/, '')
}
const mutations = {
@@ -94,11 +95,11 @@ const actions = {
}
},
async fetchAccounts ({ commit, rootGetters }) {
async fetchAccounts ({ commit, getters, rootGetters }) {
injectAuthToken(rootGetters.user.token)
try {
const response = await AccountsService_ListAccounts({
$domain: rootGetters.configuration.server,
$domain: getters.getServerForJsClient,
body: {}
})
if (response.status === 201) {
@@ -111,11 +112,11 @@ const actions = {
commit('SET_FAILED', true)
},
async fetchRoles ({ commit, rootGetters }) {
async fetchRoles ({ commit, getters, rootGetters }) {
injectAuthToken(rootGetters.user.token)
try {
const response = await RoleService_ListRoles({
$domain: rootGetters.configuration.server,
$domain: getters.getServerForJsClient,
body: {}
})
if (response.status === 201) {
@@ -132,7 +133,7 @@ const actions = {
getters.areAllAccountsSelected ? commit('RESET_ACCOUNTS_SELECTION') : commit('SET_SELECTED_ACCOUNTS', [...state.accounts])
},
async setAccountActivated ({ commit, dispatch, state, rootGetters }, activated) {
async setAccountActivated ({ commit, dispatch, state, getters, rootGetters }, activated) {
const failedAccounts = []
injectAuthToken(rootGetters.user.token)
@@ -143,7 +144,7 @@ const actions = {
try {
const response = await AccountsService_UpdateAccount({
$domain: rootGetters.configuration.server,
$domain: getters.getServerForJsClient,
body: {
account: {
id: account.id,
@@ -181,12 +182,13 @@ const actions = {
commit('RESET_ACCOUNTS_SELECTION')
return Promise.resolve(true)
},
async createNewAccount ({ rootGetters, commit, dispatch }, account) {
async createNewAccount ({ getters, rootGetters, commit, dispatch }, account) {
injectAuthToken(rootGetters.user.token)
try {
const response = await AccountsService_CreateAccount({
$domain: rootGetters.configuration.server,
$domain: getters.getServerForJsClient,
body: {
account: {
on_premises_sam_account_name: account.username,
@@ -214,7 +216,7 @@ const actions = {
return Promise.resolve(false)
},
async deleteAccounts ({ rootGetters, state, commit, dispatch }) {
async deleteAccounts ({ getters, rootGetters, state, commit, dispatch }) {
const failedAccounts = []
injectAuthToken(rootGetters.user.token)
@@ -222,7 +224,7 @@ const actions = {
for (const account of state.selectedAccounts) {
try {
const response = await AccountsService_DeleteAccount({
$domain: rootGetters.configuration.server,
$domain: getters.getServerForJsClient,
body: {
id: account.id
}
@@ -4,7 +4,7 @@ Feature: Accounts
Given user "Moss" has logged in using the webUI
When the user browses to the accounts page
Then user "einstein" should be displayed in the accounts list on the WebUI
And user "konnectd" should be displayed in the accounts list on the WebUI
And user "idp" should be displayed in the accounts list on the WebUI
And user "marie" should be displayed in the accounts list on the WebUI
And user "reva" should be displayed in the accounts list on the WebUI
And user "richard" should be displayed in the accounts list on the WebUI
@@ -72,4 +72,4 @@ Feature: Accounts
Given user "Moss" has logged in using the webUI
And the user browses to the accounts page
When the user deletes user "bob" using the WebUI
Then user "bob" should not be displayed in the accounts list on the WebUI
Then user "bob" should not be displayed in the accounts list on the WebUI
@@ -104,15 +104,14 @@ module.exports = {
selector: '#accounts-app'
},
accountsListTable: {
selector: "//table[@class='uk-table uk-table-middle uk-table-divider']",
locateStrategy: 'xpath'
selector: '#accounts-user-list'
},
userInAccountsList: {
selector: '//table//td[text()="%s"]',
selector: '//table[@id="accounts-user-list"]//td[text()="%s"]',
locateStrategy: 'xpath'
},
rowByUsername: {
selector: '//table//td[text()="%s"]/ancestor::tr',
selector: '//table[@id="accounts-user-list"]//td[text()="%s"]/ancestor::tr',
locateStrategy: 'xpath'
},
currentRole: {
+1 -1
View File
@@ -29,7 +29,7 @@ trap clean_up SIGHUP SIGINT SIGTERM
if [ -z "$TEST_INFRA_DIRECTORY" ]
then
cleanup=true
testFolder=$(< /dev/urandom tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
testFolder=$(< /dev/urandom LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
printf "creating folder $testFolder for Test infrastructure setup\n\n"
export TEST_INFRA_DIRECTORY=$testFolder
fi
+2149 -1298
View File
File diff suppressed because it is too large. Load diff
File renamed without changes.
File renamed without changes.
Loaded 100 of 885 files, more files were not shown because too many files have changed in this diff. Show more