Compare commits
547
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69c55662d1 | ||
|
|
b4f6ebe96d | ||
|
|
7682a73968 | ||
|
|
997d69ae62 | ||
|
|
0e9e635672 | ||
|
|
05cb9a49fc | ||
|
|
194d7af6f3 | ||
|
|
5283bf8b2b | ||
|
|
6bf80daf66 | ||
|
|
6f9a918818 | ||
|
|
c1b5e2f1cd | ||
|
|
549d1058c5 | ||
|
|
804612077a | ||
|
|
13beef2fd4 | ||
|
|
47c2c3ad4f | ||
|
|
ecaee109d7 | ||
|
|
dc7dce552d | ||
|
|
e9d760e70b | ||
|
|
802fccfece | ||
|
|
38031e19e2 | ||
|
|
33d3d13460 | ||
|
|
d0a7bc4c59 | ||
|
|
86b9ada9b5 | ||
|
|
321697828e | ||
|
|
85cf747b4b | ||
|
|
379262ec8e | ||
|
|
81fa19fab2 | ||
|
|
96a6bebcb8 | ||
|
|
d07f1752d8 | ||
|
|
cac96b7e80 | ||
|
|
f406c7efd1 | ||
|
|
81c56685ec | ||
|
|
41ced6621a | ||
|
|
3aa519c9de | ||
|
|
7d26172b2c | ||
|
|
16d1846c62 | ||
|
|
35c27afcb6 | ||
|
|
2ef33dc608 | ||
|
|
c42546e9af | ||
|
|
bb1b50c8e4 | ||
|
|
990dd8de2e | ||
|
|
859aab82fc | ||
|
|
8ba432e117 | ||
|
|
84d6962d15 | ||
|
|
dff0ea4f0f | ||
|
|
f3ed9f5ff3 | ||
|
|
a07c1e77a0 | ||
|
|
4db57dfe3c | ||
|
|
ad3c3471e1 | ||
|
|
45844aee4e | ||
|
|
5340a96169 | ||
|
|
ab0dfb97e9 | ||
|
|
1ab1fb9990 | ||
|
|
aeafa46c88 | ||
|
|
bee17dbe29 | ||
|
|
1c1f5c9167 | ||
|
|
acb18756c5 | ||
|
|
29e3fbd02f | ||
|
|
5cbf3f7a88 | ||
|
|
53c5c8d278 | ||
|
|
1664a10f0f | ||
|
|
e2a7cf7809 | ||
|
|
439e5729a8 | ||
|
|
ead395c4df | ||
|
|
4210ddcf52 | ||
|
|
a1e1fbbe49 | ||
|
|
a909141bca | ||
|
|
d41bc5e1b8 | ||
|
|
df6359807b | ||
|
|
7b1a7b20f1 | ||
|
|
62d5e8f56e | ||
|
|
413b88863b | ||
|
|
32241b5a1c | ||
|
|
d714cdae69 | ||
|
|
f064777baa | ||
|
|
69a26a81f3 | ||
|
|
b888774675 | ||
|
|
1aa382c9f6 | ||
|
|
1ff029110c | ||
|
|
a8e908aebd | ||
|
|
d6f6e8dc9f | ||
|
|
a2aca08fa7 | ||
|
|
95dd76e3d0 | ||
|
|
c7d4f179c2 | ||
|
|
b388954dc7 | ||
|
|
4694889379 | ||
|
|
0328ce9134 | ||
|
|
1c94346333 | ||
|
|
d68132fe49 | ||
|
|
8d8e3266c0 | ||
|
|
fa9dd800ed | ||
|
|
919108fce2 | ||
|
|
392caa1570 | ||
|
|
e8fe1f2b70 | ||
|
|
2c86912b46 | ||
|
|
45bd133a70 | ||
|
|
c996b6462b | ||
|
|
3a42fdc578 | ||
|
|
8042db13ad | ||
|
|
ea35cbb6be | ||
|
|
a150e5f6b4 | ||
|
|
a24fe109cc | ||
|
|
8e5b975b7f | ||
|
|
33581530f3 | ||
|
|
f902633a6b | ||
|
|
291b5fa3f5 | ||
|
|
892b6962ff | ||
|
|
84f2914a82 | ||
|
|
08d26b2ff1 | ||
|
|
63a6d9c73f | ||
|
|
f79e7658a6 | ||
|
|
fad056564a | ||
|
|
2c107a4bfe | ||
|
|
765f94bf6a | ||
|
|
ed86c9da84 | ||
|
|
50c37d9bbd | ||
|
|
46f0d6f7e4 | ||
|
|
06fda516ec | ||
|
|
aeebf76127 | ||
|
|
65dcb1685a | ||
|
|
0f0d305f6d | ||
|
|
7dac10b3b7 | ||
|
|
1dd4644370 | ||
|
|
3947531ae0 | ||
|
|
af7e6d1176 | ||
|
|
a7d89c7065 | ||
|
|
42e19037e0 | ||
|
|
5d7064ab17 | ||
|
|
eee4a80d71 | ||
|
|
3c0ce6180f | ||
|
|
6552bf0c34 | ||
|
|
7d22a4bee1 | ||
|
|
dbf8e6873b | ||
|
|
21e6aab85e | ||
|
|
50381b2225 | ||
|
|
aac45a46f4 | ||
|
|
021086e024 | ||
|
|
e4cab1e781 | ||
|
|
63e6660ca4 | ||
|
|
3782813ea1 | ||
|
|
cb4b16ce8e | ||
|
|
72c114c301 | ||
|
|
d74818b18f | ||
|
|
6b006fdf0e | ||
|
|
5e5f7ec402 | ||
|
|
a68a116c54 | ||
|
|
6485391fe9 | ||
|
|
fc97f52f06 | ||
|
|
018db1018a | ||
|
|
7c5fa2c114 | ||
|
|
a2d2671bf3 | ||
|
|
44abfe478d | ||
|
|
3e3ceeafee | ||
|
|
ed85fedf1a | ||
|
|
e62a9b6a36 | ||
|
|
dbb228349a | ||
|
|
8bda1d1bb0 | ||
|
|
bbac85d4c4 | ||
|
|
1cf4594211 | ||
|
|
7bd2d73bb3 | ||
|
|
35b206b230 | ||
|
|
eacdb8fa2f | ||
|
|
3bc60510ce | ||
|
|
b8150f25b8 | ||
|
|
8817e2bae3 | ||
|
|
41b26a3eb7 | ||
|
|
a8d78c06cd | ||
|
|
1468abe4e9 | ||
|
|
305ef58b73 | ||
|
|
2927dc45c3 | ||
|
|
2f4d065463 | ||
|
|
6c7bbd936a | ||
|
|
55aacdea13 | ||
|
|
6403e5c7e5 | ||
|
|
85848f1342 | ||
|
|
8499187315 | ||
|
|
778ad717df | ||
|
|
eb0b805b63 | ||
|
|
a5d2d8b676 | ||
|
|
648cfd0f43 | ||
|
|
d68b942832 | ||
|
|
41196732c9 | ||
|
|
c11137f817 | ||
|
|
6dd5be25fc | ||
|
|
e4b7c633cd | ||
|
|
a41e4b0ff6 | ||
|
|
698c094f9b | ||
|
|
969fa540a2 | ||
|
|
834a146c05 | ||
|
|
727042279f | ||
|
|
8a80b990a8 | ||
|
|
1ed38e1f3b | ||
|
|
b98761eaa4 | ||
|
|
78cd35db29 | ||
|
|
f2d36f6638 | ||
|
|
ad994ded16 | ||
|
|
b13863b717 | ||
|
|
6fc2b7503d | ||
|
|
4a817959ef | ||
|
|
ac087d0dae | ||
|
|
fe530e9a27 | ||
|
|
2a60b6b933 | ||
|
|
f5c3b49d12 | ||
|
|
45f29fdc98 | ||
|
|
500a77f005 | ||
|
|
0eb403d658 | ||
|
|
43a97f6bac | ||
|
|
0d13830203 | ||
|
|
30c7f58eb6 | ||
|
|
b74a0a6829 | ||
|
|
2bdd07e41b | ||
|
|
dc957c3722 | ||
|
|
283ecc28c9 | ||
|
|
3022479052 | ||
|
|
10b9fee60e | ||
|
|
ccf0c18f32 | ||
|
|
8b65d74a44 | ||
|
|
33b1524f15 | ||
|
|
8301a7e7a3 | ||
|
|
feed3e589b | ||
|
|
9f96321c1c | ||
|
|
9f50776b17 | ||
|
|
35979955e6 | ||
|
|
93f13388dd | ||
|
|
8e5ef03f9f | ||
|
|
6b1c8d1bf0 | ||
|
|
0e59776d72 | ||
|
|
737cca6600 | ||
|
|
84412bd9c1 | ||
|
|
4b35da08c6 | ||
|
|
5c550ecbb4 | ||
|
|
d2cb1fbd7c | ||
|
|
23c9a3156c | ||
|
|
396c24a73c | ||
|
|
8a645f6ac6 | ||
|
|
8bd46f2f5f | ||
|
|
459932c701 | ||
|
|
dbca0a6f0b | ||
|
|
5c122fb882 | ||
|
|
104b56a04c | ||
|
|
e621fa6a64 | ||
|
|
1d6f56f737 | ||
|
|
57c9c13129 | ||
|
|
da3d25f0f3 | ||
|
|
bfc891950e | ||
|
|
d13f3b53e9 | ||
|
|
aab73be154 | ||
|
|
ed3a5a7f5f | ||
|
|
07d5dd345d | ||
|
|
309374cda5 | ||
|
|
92e232ce62 | ||
|
|
2b6b92a134 | ||
|
|
d27e939ec2 | ||
|
|
31f80748cc | ||
|
|
d10f6a3b73 | ||
|
|
22cb67c3a4 | ||
|
|
69dfdeac0d | ||
|
|
508fa8c7cf | ||
|
|
c961de1d57 | ||
|
|
b0fd0b1ef5 | ||
|
|
30e0a09aa5 | ||
|
|
e1f6a109cc | ||
|
|
9e09bbffc9 | ||
|
|
499b85e865 | ||
|
|
8e729c9eae | ||
|
|
cbe1bbf432 | ||
|
|
d30670450a | ||
|
|
4d9612ae29 | ||
|
|
73f45deed6 | ||
|
|
672350af9e | ||
|
|
3747531774 | ||
|
|
fba3688f2e | ||
|
|
ad0e7fe38d | ||
|
|
92e7e1b509 | ||
|
|
4fdd65ed16 | ||
|
|
982ac391a6 | ||
|
|
54da37850a | ||
|
|
8703b091a6 | ||
|
|
a51ab55368 | ||
|
|
6bc06dad8c | ||
|
|
afffb3e09c | ||
|
|
c7c944e07e | ||
|
|
1288314946 | ||
|
|
480d57b13d | ||
|
|
08047e1d83 | ||
|
|
391e451e41 | ||
|
|
11722a3b4d | ||
|
|
27882a29c6 | ||
|
|
288e35a390 | ||
|
|
5c1e1e602e | ||
|
|
cc8273f048 | ||
|
|
2bc7657cd2 | ||
|
|
f7867e42f5 | ||
|
|
5825a9b957 | ||
|
|
968c9b75d8 | ||
|
|
c3951d67c8 | ||
|
|
d6a3da57c6 | ||
|
|
789b8de6b2 | ||
|
|
a168a60724 | ||
|
|
4ec63656dc | ||
|
|
289730a144 | ||
|
|
2800515c94 | ||
|
|
dcd8327e61 | ||
|
|
07bb4a179e | ||
|
|
bea986fe26 | ||
|
|
a0dce56480 | ||
|
|
cb70f4882f | ||
|
|
0a632df7d2 | ||
|
|
5c024b4543 | ||
|
|
2583c6a1a7 | ||
|
|
b0c742cb2f | ||
|
|
b540ccdf10 | ||
|
|
4385d3dacb | ||
|
|
1e4f8334cf | ||
|
|
40c8031441 | ||
|
|
a6575d9597 | ||
|
|
37de2b48fe | ||
|
|
bc69390006 | ||
|
|
499526d8b4 | ||
|
|
5de190ba4f | ||
|
|
2293403d45 | ||
|
|
1f3e963c29 | ||
|
|
c234c89be2 | ||
|
|
b148faada6 | ||
|
|
2e41e28637 | ||
|
|
188bb58547 | ||
|
|
bb1ce39e23 | ||
|
|
746ed8b414 | ||
|
|
5bf5fcf800 | ||
|
|
cdc2dd0ff3 | ||
|
|
90ca98d60f | ||
|
|
f322516862 | ||
|
|
900f8db799 | ||
|
|
2a54b647f1 | ||
|
|
5070941dc4 | ||
|
|
3ae2875fa9 | ||
|
|
71733fe677 | ||
|
|
8d78a64070 | ||
|
|
c41d9122b4 | ||
|
|
02d8d74466 | ||
|
|
1af75187c1 | ||
|
|
c0f8b030e4 | ||
|
|
74696dbd36 | ||
|
|
1bb4dcf782 | ||
|
|
1a65cd8d82 | ||
|
|
ebb67470dc | ||
|
|
7f8e5d0229 | ||
|
|
6123512367 | ||
|
|
ffca30cc4e | ||
|
|
f1f9583cb5 | ||
|
|
0a486b2a88 | ||
|
|
b1ab887004 | ||
|
|
68d7080fac | ||
|
|
83ba6ad5ba | ||
|
|
273ea197e8 | ||
|
|
1a8e00b19e | ||
|
|
adc21d8f0b | ||
|
|
41cabfcdcb | ||
|
|
04e5cfa52b | ||
|
|
6f37b386d5 | ||
|
|
041176ca2a | ||
|
|
1191d02187 | ||
|
|
a3fb9a4b37 | ||
|
|
c58f7094d2 | ||
|
|
e1a2e5c4b1 | ||
|
|
2bdb522a1d | ||
|
|
bcefff9b8d | ||
|
|
afa9afd205 | ||
|
|
90f066b540 | ||
|
|
7a64f2bcdf | ||
|
|
8c7f1f01ff | ||
|
|
8b271bccc6 | ||
|
|
85693de589 | ||
|
|
1dc7aac6fd | ||
|
|
31918dd44a | ||
|
|
d6bb6f511e | ||
|
|
91f6242eac | ||
|
|
96e6d58d38 | ||
|
|
4140116635 | ||
|
|
33aae8d829 | ||
|
|
a5366585a5 | ||
|
|
dc6d4d0569 | ||
|
|
5f970448fc | ||
|
|
e9e62d7fc6 | ||
|
|
7ab586b2ab | ||
|
|
d9916b6eed | ||
|
|
ccee07a384 | ||
|
|
420c703156 | ||
|
|
bfdcc0180c | ||
|
|
ac49348b41 | ||
|
|
e45954c52a | ||
|
|
29c5cb627a | ||
|
|
6c6a53a4de | ||
|
|
7b1130f34b | ||
|
|
cf6f71da89 | ||
|
|
2433cabae4 | ||
|
|
92d60126a0 | ||
|
|
10a03f8c98 | ||
|
|
ddd261fba7 | ||
|
|
2ac28854f8 | ||
|
|
faeec92a09 | ||
|
|
bf40bc0590 | ||
|
|
89af2f010c | ||
|
|
3897adfaa7 | ||
|
|
b031b40143 | ||
|
|
46fbf66bd0 | ||
|
|
78e668c187 | ||
|
|
a85905a541 | ||
|
|
4e7a4f2bfc | ||
|
|
63494c29e1 | ||
|
|
9eba1b0e26 | ||
|
|
39d5e66c91 | ||
|
|
c12d4381d5 | ||
|
|
ccf456aa9a | ||
|
|
93a317bb54 | ||
|
|
98563bb8f5 | ||
|
|
bfb0a98778 | ||
|
|
cd30d2d574 | ||
|
|
115ce78ad9 | ||
|
|
d59e828895 | ||
|
|
534190606e | ||
|
|
96738d2f1e | ||
|
|
de5aefbe91 | ||
|
|
5b8e883d4a | ||
|
|
caaf7e6088 | ||
|
|
6611f22312 | ||
|
|
441c19f34d | ||
|
|
b0fe255a5d | ||
|
|
2119d12cbc | ||
|
|
7a25f2ac5e | ||
|
|
a75c3b7777 | ||
|
|
9376e2ef5e | ||
|
|
d7031c93fe | ||
|
|
c1bfbd9c24 | ||
|
|
a38af180fa | ||
|
|
014538a0b4 | ||
|
|
034eb417f2 | ||
|
|
5b04bc853b | ||
|
|
53a06bd2da | ||
|
|
c2780440f7 | ||
|
|
ada2b96e4b | ||
|
|
2d51ea3cee | ||
|
|
449edd31c8 | ||
|
|
742b231818 | ||
|
|
322cb454c4 | ||
|
|
53fabd9ffd | ||
|
|
5114ba259f | ||
|
|
1c060606fe | ||
|
|
bd68d1ef72 | ||
|
|
ba924cb412 | ||
|
|
456e7c9300 | ||
|
|
cd4b391cb9 | ||
|
|
54e1796717 | ||
|
|
5d39a84a49 | ||
|
|
d77c83bdbe | ||
|
|
7baf67be8f | ||
|
|
7040f14884 | ||
|
|
d940dcc751 | ||
|
|
8801bd7eff | ||
|
|
2b6960171c | ||
|
|
1c05cf7e64 | ||
|
|
a05105d934 | ||
|
|
f419054936 | ||
|
|
90f7b170a9 | ||
|
|
f7fdda3ee1 | ||
|
|
0392dfd18c | ||
|
|
84e82b2686 | ||
|
|
7eb86e9b07 | ||
|
|
5ae2cdbad0 | ||
|
|
e30f3a377b | ||
|
|
72630c3291 | ||
|
|
e104622a8a | ||
|
|
25ca76ebd4 | ||
|
|
cb2323e9d6 | ||
|
|
b3bae592d0 | ||
|
|
98b0b9c49a | ||
|
|
296b41d4d2 | ||
|
|
1cc028694e | ||
|
|
ad02b40c3c | ||
|
|
3ffd0a13ef | ||
|
|
8343c192f2 | ||
|
|
e2bf20817c | ||
|
|
ca07c287c8 | ||
|
|
ddb6a15544 | ||
|
|
8d1847b9d3 | ||
|
|
b56cdc17c3 | ||
|
|
25742be970 | ||
|
|
ae790df695 | ||
|
|
53b80920ea | ||
|
|
6dc4e5c43e | ||
|
|
3b694547b7 | ||
|
|
debbec1d67 | ||
|
|
2bda4f57fa | ||
|
|
5512c5f1e1 | ||
|
|
81b35dfe17 | ||
|
|
c08c6c09a0 | ||
|
|
07ecdd608f | ||
|
|
1103af674a | ||
|
|
63dc64971f | ||
|
|
9e81558fc9 | ||
|
|
02200127fb | ||
|
|
4ce54edc1a | ||
|
|
e2e6a2f489 | ||
|
|
2300ab0033 | ||
|
|
f1b733f033 | ||
|
|
48ab84a7f5 | ||
|
|
db5900b85a | ||
|
|
8a2dcc22b6 | ||
|
|
e68e48293f | ||
|
|
ed9359ddd4 | ||
|
|
4994d0b132 | ||
|
|
72f6a3613a | ||
|
|
2e28582c1b | ||
|
|
f02f2a3d42 | ||
|
|
7c5a6ee047 | ||
|
|
34a207afd5 | ||
|
|
3af81700d0 | ||
|
|
e1b30284a8 | ||
|
|
cb996434cc | ||
|
|
458de9f554 | ||
|
|
c5f34a0726 | ||
|
|
23730f3e4a | ||
|
|
ed4fef9c0e | ||
|
|
5e7967c62c | ||
|
|
3dfced91e0 | ||
|
|
0f2cb27c4a | ||
|
|
f36cf67bc4 | ||
|
|
95a9405449 | ||
|
|
51b87e181d | ||
|
|
4794f52c72 | ||
|
|
063fd64483 | ||
|
|
96a548619a | ||
|
|
2755f04938 | ||
|
|
6f79c13eb5 | ||
|
|
ba438022f0 | ||
|
|
a218627df2 | ||
|
|
9a411f8995 | ||
|
|
add77b991b | ||
|
|
2fee44581f | ||
|
|
5ce1841609 | ||
|
|
7c21b381e1 | ||
|
|
c8c6a7b135 | ||
|
|
71ac2049a6 | ||
|
|
b820b343df | ||
|
|
68c6eec432 | ||
|
|
c8749a561b | ||
|
|
6991dd777d |
No files matched your search
+15
-15
@@ -47,11 +47,11 @@ $(FILEB0X): $(BINGO_DIR)/fileb0x.mod
|
||||
@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.1-0.20210617060845-d4d3f5180596
|
||||
FLAEX := $(GOBIN)/flaex-v0.2.1-0.20210701123229-9d7dceed124f
|
||||
$(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.1-0.20210617060845-d4d3f5180596"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=flaex.mod -o=$(GOBIN)/flaex-v0.2.1-0.20210617060845-d4d3f5180596 "github.com/owncloud/flaex"
|
||||
@echo "(re)installing $(GOBIN)/flaex-v0.2.1-0.20210701123229-9d7dceed124f"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=flaex.mod -o=$(GOBIN)/flaex-v0.2.1-0.20210701123229-9d7dceed124f "github.com/owncloud/flaex"
|
||||
|
||||
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.37.1
|
||||
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
|
||||
@@ -59,23 +59,17 @@ $(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
|
||||
@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 := $(GOBIN)/hugo-v0.87.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"
|
||||
@echo "(re)installing $(GOBIN)/hugo-v0.87.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=hugo.mod -o=$(GOBIN)/hugo-v0.87.0 "github.com/gohugoio/hugo"
|
||||
|
||||
MUTAGEN := $(GOBIN)/mutagen-v0.11.8
|
||||
$(MUTAGEN): $(BINGO_DIR)/mutagen.mod
|
||||
@@ -83,6 +77,12 @@ $(MUTAGEN): $(BINGO_DIR)/mutagen.mod
|
||||
@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"
|
||||
|
||||
OAPI_CODEGEN := $(GOBIN)/oapi-codegen-v1.6.1
|
||||
$(OAPI_CODEGEN): $(BINGO_DIR)/oapi-codegen.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)/oapi-codegen-v1.6.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=oapi-codegen.mod -o=$(GOBIN)/oapi-codegen-v1.6.1 "github.com/deepmap/oapi-codegen/cmd/oapi-codegen"
|
||||
|
||||
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.
|
||||
@@ -101,11 +101,11 @@ $(PROTOC_GEN_MICRO): $(BINGO_DIR)/protoc-gen-micro.mod
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888 "github.com/asim/go-micro/cmd/protoc-gen-micro/v3"
|
||||
|
||||
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4
|
||||
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9
|
||||
$(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"
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9 "github.com/owncloud/protoc-gen-microweb"
|
||||
|
||||
PROTOC_GEN_OPENAPIV2 := $(GOBIN)/protoc-gen-openapiv2-v2.3.0
|
||||
$(PROTOC_GEN_OPENAPIV2): $(BINGO_DIR)/protoc-gen-openapiv2.mod
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/owncloud/flaex v0.2.1-0.20210617060845-d4d3f5180596
|
||||
require github.com/owncloud/flaex v0.2.1-0.20210701123229-9d7dceed124f
|
||||
@@ -1,5 +0,0 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/haya14busa/goverage v0.0.0-20180129164344-eec3514a20b5
|
||||
+1
-1
@@ -4,4 +4,4 @@ go 1.16
|
||||
|
||||
replace github.com/markbates/inflect => github.com/markbates/inflect v0.0.0-20171215194931-a12c3aec81a6
|
||||
|
||||
require github.com/gohugoio/hugo v0.80.0
|
||||
require github.com/gohugoio/hugo v0.87.0
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/deepmap/oapi-codegen v1.6.1 // cmd/oapi-codegen
|
||||
@@ -2,4 +2,4 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.16
|
||||
|
||||
require github.com/owncloud/protoc-gen-microweb v0.0.0-20210224131655-d9b1137a84d4
|
||||
require github.com/owncloud/protoc-gen-microweb v0.0.0-20210824101557-828409dbfbf9
|
||||
@@ -18,25 +18,25 @@ CALENS="${GOBIN}/calens-v0.2.0"
|
||||
|
||||
FILEB0X="${GOBIN}/fileb0x-v1.1.4"
|
||||
|
||||
FLAEX="${GOBIN}/flaex-v0.2.1-0.20210617060845-d4d3f5180596"
|
||||
FLAEX="${GOBIN}/flaex-v0.2.1-0.20210701123229-9d7dceed124f"
|
||||
|
||||
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"
|
||||
HUGO="${GOBIN}/hugo-v0.87.0"
|
||||
|
||||
MUTAGEN="${GOBIN}/mutagen-v0.11.8"
|
||||
|
||||
OAPI_CODEGEN="${GOBIN}/oapi-codegen-v1.6.1"
|
||||
|
||||
PROTOC_GEN_DOC="${GOBIN}/protoc-gen-doc-v1.4.1"
|
||||
|
||||
PROTOC_GEN_GO="${GOBIN}/protoc-gen-go-v1.26.0"
|
||||
|
||||
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v3.0.0-20210329103359-9b41d1bf0888"
|
||||
|
||||
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
|
||||
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210824101557-828409dbfbf9"
|
||||
|
||||
PROTOC_GEN_OPENAPIV2="${GOBIN}/protoc-gen-openapiv2-v2.3.0"
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
# The test runner source for API tests
|
||||
CORE_COMMITID=cc9e938a4dea28ab941cb2e0b39b38c8c3f52913
|
||||
CORE_COMMITID=370fd807e464dcc5cb9619a8890107424254dfa6
|
||||
CORE_BRANCH=master
|
||||
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=22a1ceebfc4d8e233a5caadcae7a1ced06826565
|
||||
WEB_COMMITID=0e5a4b4990fc0edb69013122df42785774883e79
|
||||
WEB_BRANCH=master
|
||||
+190
-20
@@ -9,7 +9,6 @@ config = {
|
||||
"ocis-pkg",
|
||||
"ocis",
|
||||
"ocs",
|
||||
"onlyoffice",
|
||||
"proxy",
|
||||
"settings",
|
||||
"storage",
|
||||
@@ -20,22 +19,27 @@ config = {
|
||||
],
|
||||
"localApiTests": {
|
||||
"skip": False,
|
||||
"earlyFail": True,
|
||||
},
|
||||
"apiTests": {
|
||||
"numberOfParts": 10,
|
||||
"skip": False,
|
||||
"skipExceptParts": [],
|
||||
"earlyFail": True,
|
||||
},
|
||||
"uiTests": {
|
||||
"filterTags": "@ocisSmokeTest",
|
||||
"skip": False,
|
||||
"skipExceptParts": [],
|
||||
"earlyFail": True,
|
||||
},
|
||||
"accountsUITests": {
|
||||
"skip": False,
|
||||
"earlyFail": True,
|
||||
},
|
||||
"settingsUITests": {
|
||||
"skip": False,
|
||||
"earlyFail": True,
|
||||
},
|
||||
"rocketchat": {
|
||||
"channel": "ocis-internal",
|
||||
@@ -120,7 +124,8 @@ def main(ctx):
|
||||
test_pipelines = \
|
||||
[buildOcisBinaryForTesting(ctx)] + \
|
||||
testOcisModules(ctx) + \
|
||||
testPipelines(ctx)
|
||||
testPipelines(ctx) + \
|
||||
checkForRecentBuilds(ctx)
|
||||
|
||||
build_release_pipelines = \
|
||||
dockerReleases(ctx) + \
|
||||
@@ -185,13 +190,55 @@ def testOcisModules(ctx):
|
||||
|
||||
return pipelines + [scan_result_upload]
|
||||
|
||||
def checkForRecentBuilds(ctx):
|
||||
pipelines = []
|
||||
|
||||
result = {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "stop-recent-builds",
|
||||
"steps": stopRecentBuilds(ctx),
|
||||
"depends_on": [],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/tags/**",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
pipelines.append(result)
|
||||
|
||||
return pipelines
|
||||
|
||||
def stopRecentBuilds(ctx):
|
||||
return [{
|
||||
"name": "stop-recent-builds",
|
||||
"image": "drone/cli:alpine",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"DRONE_SERVER": "https://drone.owncloud.com",
|
||||
"DRONE_TOKEN": {
|
||||
"from_secret": "drone_token",
|
||||
},
|
||||
},
|
||||
"commands": [
|
||||
"drone build ls %s --status running > /drone/src/recentBuilds.txt" % ctx.repo.slug,
|
||||
"drone build info %s ${DRONE_BUILD_NUMBER} > /drone/src/thisBuildInfo.txt" % ctx.repo.slug,
|
||||
"cd /drone/src && ./tests/acceptance/cancelBuilds.sh",
|
||||
],
|
||||
"when": {
|
||||
"event": [
|
||||
"pull_request",
|
||||
],
|
||||
},
|
||||
}]
|
||||
|
||||
def testPipelines(ctx):
|
||||
pipelines = []
|
||||
if "skip" not in config["localApiTests"] or not config["localApiTests"]["skip"]:
|
||||
pipelines = [
|
||||
localApiTests(ctx, "owncloud", "apiBugDemonstration"),
|
||||
localApiTests(ctx, "ocis", "apiBugDemonstration"),
|
||||
localApiTests(ctx, "owncloud", "apiAccountsHashDifficulty", "default"),
|
||||
localApiTests(ctx, "ocis", "apiAccountsHashDifficulty", "default"),
|
||||
]
|
||||
|
||||
@@ -382,7 +429,12 @@ def uploadScanResults(ctx):
|
||||
},
|
||||
}
|
||||
|
||||
def localApiTests(ctx, storage = "owncloud", suite = "apiBugDemonstration", accounts_hash_difficulty = 4):
|
||||
def localApiTests(ctx, storage, suite, accounts_hash_difficulty = 4):
|
||||
earlyFail = config["localApiTests"]["earlyFail"] if "earlyFail" in config["localApiTests"] else False
|
||||
|
||||
if ("full-ci" in ctx.build.title.lower()):
|
||||
earlyFail = False
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -404,17 +456,19 @@ def localApiTests(ctx, storage = "owncloud", suite = "apiBugDemonstration", acco
|
||||
"SKELETON_DIR": "/srv/app/tmp/testing/data/apiSkeleton",
|
||||
"OCIS_SKELETON_STRATEGY": "%s" % ("copy" if storage == "owncloud" else "upload"),
|
||||
"TEST_OCIS": "true",
|
||||
"SEND_SCENARIO_LINE_REFERENCES": "true",
|
||||
"STORAGE_DRIVER": storage,
|
||||
"BEHAT_SUITE": suite,
|
||||
"BEHAT_FILTER_TAGS": "~@skip&&~@skipOnOcis-%s-Storage" % ("OC" if storage == "owncloud" else "OCIS"),
|
||||
"PATH_TO_CORE": "/srv/app/testrunner",
|
||||
"UPLOAD_DELETE_WAIT_TIME": "1" if storage == "owncloud" else 0,
|
||||
},
|
||||
"commands": [
|
||||
"make test-acceptance-api",
|
||||
],
|
||||
"volumes": [stepVolumeOC10Tests],
|
||||
},
|
||||
],
|
||||
] + buildGithubCommentForBuildStopped("localApiTests-%s-%s" % (suite, storage), earlyFail) + githubComment(earlyFail) + stopBuild(earlyFail),
|
||||
"services": redisForOCStorage(storage),
|
||||
"depends_on": getPipelineNames([buildOcisBinaryForTesting(ctx)]),
|
||||
"trigger": {
|
||||
@@ -427,7 +481,12 @@ def localApiTests(ctx, storage = "owncloud", suite = "apiBugDemonstration", acco
|
||||
"volumes": [pipelineVolumeOC10Tests],
|
||||
}
|
||||
|
||||
def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "owncloud", accounts_hash_difficulty = 4):
|
||||
def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
earlyFail = config["apiTests"]["earlyFail"] if "earlyFail" in config["apiTests"] else False
|
||||
|
||||
if ("full-ci" in ctx.build.title.lower()):
|
||||
earlyFail = False
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -449,18 +508,20 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "owncloud"
|
||||
"SKELETON_DIR": "/srv/app/tmp/testing/data/apiSkeleton",
|
||||
"OCIS_SKELETON_STRATEGY": "%s" % ("copy" if storage == "owncloud" else "upload"),
|
||||
"TEST_OCIS": "true",
|
||||
"SEND_SCENARIO_LINE_REFERENCES": "true",
|
||||
"STORAGE_DRIVER": storage,
|
||||
"BEHAT_FILTER_TAGS": "~@skipOnOcis&&~@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-API-on-%s-storage.md" % (storage.upper()),
|
||||
"UPLOAD_DELETE_WAIT_TIME": "1" if storage == "owncloud" else 0,
|
||||
},
|
||||
"commands": [
|
||||
"make -C /srv/app/testrunner test-acceptance-api",
|
||||
],
|
||||
"volumes": [stepVolumeOC10Tests],
|
||||
},
|
||||
],
|
||||
] + buildGithubCommentForBuildStopped("Core-API-Tests-%s-storage-%s" % (storage, part_number), earlyFail) + githubComment(earlyFail) + stopBuild(earlyFail),
|
||||
"services": redisForOCStorage(storage),
|
||||
"depends_on": getPipelineNames([buildOcisBinaryForTesting(ctx)]),
|
||||
"trigger": {
|
||||
@@ -479,7 +540,6 @@ def apiTests(ctx):
|
||||
debugPartsEnabled = (len(debugParts) != 0)
|
||||
for runPart in range(1, config["apiTests"]["numberOfParts"] + 1):
|
||||
if (not debugPartsEnabled or (debugPartsEnabled and runPart in debugParts)):
|
||||
pipelines.append(coreApiTests(ctx, runPart, config["apiTests"]["numberOfParts"], "owncloud"))
|
||||
pipelines.append(coreApiTests(ctx, runPart, config["apiTests"]["numberOfParts"], "ocis"))
|
||||
|
||||
return pipelines
|
||||
@@ -488,8 +548,9 @@ def uiTests(ctx):
|
||||
default = {
|
||||
"filterTags": "",
|
||||
"skip": False,
|
||||
"earlyFail": False,
|
||||
# only used if 'full-ci' is in build title
|
||||
"numberOfParts": 10,
|
||||
"numberOfParts": 20,
|
||||
"skipExceptParts": [],
|
||||
}
|
||||
params = {}
|
||||
@@ -499,6 +560,10 @@ def uiTests(ctx):
|
||||
params[item] = config["uiTests"][item] if item in config["uiTests"] else default[item]
|
||||
|
||||
filterTags = params["filterTags"]
|
||||
earlyFail = params["earlyFail"]
|
||||
|
||||
if ("full-ci" in ctx.build.title.lower()):
|
||||
earlyFail = False
|
||||
|
||||
if ("full-ci" in ctx.build.title.lower() or ctx.build.event == "tag"):
|
||||
numberOfParts = params["numberOfParts"]
|
||||
@@ -507,12 +572,17 @@ def uiTests(ctx):
|
||||
|
||||
for runPart in range(1, numberOfParts + 1):
|
||||
if (not debugPartsEnabled or (debugPartsEnabled and runPart in skipExceptParts)):
|
||||
pipelines.append(uiTestPipeline(ctx, "", runPart, numberOfParts))
|
||||
return pipelines
|
||||
else:
|
||||
return [uiTestPipeline(ctx, filterTags)]
|
||||
pipelines.append(uiTestPipeline(ctx, "", earlyFail, runPart, numberOfParts))
|
||||
|
||||
def uiTestPipeline(ctx, filterTags, runPart = 1, numberOfParts = 1, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
# For ordinary PRs, always run the "minimal" UI test pipeline
|
||||
# That has its own expected-failures file, and we always want to know that it is correct,
|
||||
if (ctx.build.event != "tag"):
|
||||
pipelines.append(uiTestPipeline(ctx, filterTags, earlyFail, 1, 2, "ocis", "smoke"))
|
||||
pipelines.append(uiTestPipeline(ctx, filterTags, earlyFail, 2, 2, "ocis", "smoke"))
|
||||
|
||||
return pipelines
|
||||
|
||||
def uiTestPipeline(ctx, filterTags, earlyFail, runPart = 1, numberOfParts = 1, storage = "ocis", uniqueName = "", accounts_hash_difficulty = 4):
|
||||
standardFilterTags = "not @skipOnOCIS and not @skip and not @notToImplementOnOCIS and not @federated-server-needed"
|
||||
if filterTags == "":
|
||||
finalFilterTags = standardFilterTags
|
||||
@@ -521,10 +591,21 @@ def uiTestPipeline(ctx, filterTags, runPart = 1, numberOfParts = 1, storage = "o
|
||||
finalFilterTags = filterTags + " and " + standardFilterTags
|
||||
expectedFailuresFileFilterTags = "-" + filterTags.lstrip("@")
|
||||
|
||||
if uniqueName == "":
|
||||
uniqueNameString = ""
|
||||
else:
|
||||
finalFilterTags = filterTags + " and " + standardFilterTags
|
||||
uniqueNameString = "-" + uniqueName
|
||||
|
||||
if numberOfParts == 1:
|
||||
pipelineName = "Web-Tests-ocis%s-%s-storage" % (uniqueNameString, storage)
|
||||
else:
|
||||
pipelineName = "Web-Tests-ocis%s-%s-storage-%s" % (uniqueNameString, storage, runPart)
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "Web-Tests-ocis-%s-storage-%s" % (storage, runPart),
|
||||
"name": pipelineName,
|
||||
"platform": {
|
||||
"os": "linux",
|
||||
"arch": "amd64",
|
||||
@@ -566,7 +647,7 @@ def uiTestPipeline(ctx, filterTags, runPart = 1, numberOfParts = 1, storage = "o
|
||||
"path": "/uploads",
|
||||
}],
|
||||
},
|
||||
],
|
||||
] + buildGithubCommentForBuildStopped("Web-Tests-ocis-%s-storage-%s" % (storage, runPart), earlyFail) + githubComment(earlyFail) + stopBuild(earlyFail),
|
||||
"services": selenium(),
|
||||
"volumes": [pipelineVolumeOC10Tests] +
|
||||
[{
|
||||
@@ -584,6 +665,11 @@ def uiTestPipeline(ctx, filterTags, runPart = 1, numberOfParts = 1, storage = "o
|
||||
}
|
||||
|
||||
def accountsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
earlyFail = config["accountsUITests"]["earlyFail"] if "earlyFail" in config["accountsUITests"] else False
|
||||
|
||||
if ("full-ci" in ctx.build.title.lower()):
|
||||
earlyFail = False
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -630,7 +716,7 @@ def accountsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
"path": "/uploads",
|
||||
}],
|
||||
},
|
||||
],
|
||||
] + buildGithubCommentForBuildStopped("accountsUITests", earlyFail) + githubComment(earlyFail) + stopBuild(earlyFail),
|
||||
"services": selenium(),
|
||||
"volumes": [stepVolumeOC10Tests] +
|
||||
[{
|
||||
@@ -648,6 +734,11 @@ def accountsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
}
|
||||
|
||||
def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
earlyFail = config["settingsUITests"]["earlyFail"] if "earlyFail" in config["settingsUITests"] else False
|
||||
|
||||
if ("full-ci" in ctx.build.title.lower()):
|
||||
earlyFail = False
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -692,7 +783,7 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
"path": "/uploads",
|
||||
}],
|
||||
},
|
||||
],
|
||||
] + buildGithubCommentForBuildStopped("settingsUITests", earlyFail) + githubComment(earlyFail) + stopBuild(earlyFail),
|
||||
"services": [
|
||||
{
|
||||
"name": "redis",
|
||||
@@ -715,6 +806,83 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
|
||||
},
|
||||
}
|
||||
|
||||
def stopBuild(earlyFail):
|
||||
if (earlyFail):
|
||||
return [{
|
||||
"name": "stop-build",
|
||||
"image": "drone/cli:alpine",
|
||||
"pull": "always",
|
||||
"environment": {
|
||||
"DRONE_SERVER": "https://drone.owncloud.com",
|
||||
"DRONE_TOKEN": {
|
||||
"from_secret": "drone_token",
|
||||
},
|
||||
},
|
||||
"commands": [
|
||||
"drone build stop owncloud/ocis ${DRONE_BUILD_NUMBER}",
|
||||
],
|
||||
"when": {
|
||||
"status": [
|
||||
"failure",
|
||||
],
|
||||
"event": [
|
||||
"pull_request",
|
||||
],
|
||||
},
|
||||
}]
|
||||
|
||||
else:
|
||||
return []
|
||||
|
||||
def buildGithubCommentForBuildStopped(alternateSuiteName, earlyFail):
|
||||
if (earlyFail):
|
||||
return [{
|
||||
"name": "build-github-comment-buildStop",
|
||||
"image": "owncloud/ubuntu:16.04",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
'echo "<details><summary>:boom: Acceptance tests <strong>%s</strong> failed. The build is cancelled...</summary>\\n\\n" >> /drone/src/comments.file' % alternateSuiteName,
|
||||
],
|
||||
"when": {
|
||||
"status": [
|
||||
"failure",
|
||||
],
|
||||
"event": [
|
||||
"pull_request",
|
||||
],
|
||||
},
|
||||
}]
|
||||
|
||||
else:
|
||||
return []
|
||||
|
||||
def githubComment(earlyFail):
|
||||
if (earlyFail):
|
||||
return [{
|
||||
"name": "github-comment",
|
||||
"image": "jmccann/drone-github-comment:1",
|
||||
"pull": "if-not-exists",
|
||||
"settings": {
|
||||
"message_file": "/drone/src/comments.file",
|
||||
},
|
||||
"environment": {
|
||||
"GITHUB_TOKEN": {
|
||||
"from_secret": "github_token",
|
||||
},
|
||||
},
|
||||
"when": {
|
||||
"status": [
|
||||
"failure",
|
||||
],
|
||||
"event": [
|
||||
"pull_request",
|
||||
],
|
||||
},
|
||||
}]
|
||||
|
||||
else:
|
||||
return []
|
||||
|
||||
def dockerReleases(ctx):
|
||||
pipelines = []
|
||||
for arch in config["dockerReleases"]["architectures"]:
|
||||
@@ -1449,6 +1617,8 @@ def example_deploys(ctx):
|
||||
"ocis_keycloak/latest.yml",
|
||||
"ocis_traefik/latest.yml",
|
||||
"ocis_wopi/latest.yml",
|
||||
"ocis_hello/latest.yml",
|
||||
"ocis_s3/latest.yml",
|
||||
]
|
||||
released_configs = [
|
||||
"cs3_users_ocis/released.yml",
|
||||
|
||||
+3
-1
@@ -1,2 +1,4 @@
|
||||
/onlyoffice/ @LukasHirt
|
||||
accounts/ @kulmann @pascalwengerter @paulcod3
|
||||
settings/ @kulmann @pascalwengerter @paulcod3
|
||||
web/ @kulmann @pascalwengerter
|
||||
.drone.star @wkloucek @micbar @phil-davis @individual-it
|
||||
@@ -1,9 +1,9 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "gomod"
|
||||
directory: "/ocis"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
interval: "daily"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
@@ -18,12 +18,6 @@ updates:
|
||||
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:
|
||||
|
||||
@@ -23,12 +23,26 @@ labels:
|
||||
- name: OCIS-Fastlane
|
||||
color: "#deadbf"
|
||||
description: Planned outside of the sprint
|
||||
- name: Storage:EOS
|
||||
color: "#3F7A62"
|
||||
- name: Storage:S3NG
|
||||
color: "#3F7A62"
|
||||
- name: Storage:CephFS
|
||||
color: "#3F7A62"
|
||||
- name: Storage:OCIS
|
||||
color: "#3F7A62"
|
||||
- name: Storage:POSIX
|
||||
color: "#3F7A62"
|
||||
- name: Storage:ownCloudSQL
|
||||
color: "#3F7A62"
|
||||
|
||||
teams:
|
||||
- name: ci
|
||||
permission: admin
|
||||
- name: employees
|
||||
permission: push
|
||||
- name: cern
|
||||
permission: triage
|
||||
|
||||
branches:
|
||||
- name: master
|
||||
|
||||
+5
-11
@@ -16,9 +16,7 @@ else
|
||||
GOBUILD ?= go build
|
||||
endif
|
||||
|
||||
PACKAGES ?= $(shell go list ./...)
|
||||
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
|
||||
GENERATE ?= $(PACKAGES)
|
||||
|
||||
TAGS ?=
|
||||
|
||||
@@ -42,8 +40,9 @@ 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)"
|
||||
LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
DEBUG_LDFLAGS += -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
|
||||
GCFLAGS += all=-N -l
|
||||
|
||||
.PHONY: all
|
||||
@@ -77,16 +76,11 @@ 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)
|
||||
test:
|
||||
@go test -v -coverprofile coverage.out ./...
|
||||
|
||||
.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]+"
|
||||
|
||||
|
||||
+453
-1
@@ -2,7 +2,459 @@
|
||||
|
||||
The following sections list the changes for unreleased.
|
||||
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v1.7.0...master
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v1.11.0...master
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Remove non working proxy route and fix cs3 users example: [#2474](https://github.com/owncloud/ocis/pull/2474)
|
||||
* Bugfix - Set English as default language in the dropdown in the settings page: [#2465](https://github.com/owncloud/ocis/pull/2465)
|
||||
* Change - Remove OnlyOffice extension: [#2433](https://github.com/owncloud/ocis/pull/2433)
|
||||
* Change - Update ownCloud Web to v4.2.0: [#2501](https://github.com/owncloud/ocis/pull/2501)
|
||||
* Enhancement - Add app provider and app provider registry: [#2204](https://github.com/owncloud/ocis/pull/2204)
|
||||
* Enhancement - Add the create space permission: [#2461](https://github.com/owncloud/ocis/pull/2461)
|
||||
* Enhancement - Add set space quota permission: [#2459](https://github.com/owncloud/ocis/pull/2459)
|
||||
* Enhancement - Create a Space using the Graph API: [#2471](https://github.com/owncloud/ocis/pull/2471)
|
||||
* Enhancement - Update go-chi/chi to version 5.0.3: [#2429](https://github.com/owncloud/ocis/pull/2429)
|
||||
* Enhancement - Upgrade go micro to v3.6.0: [#2451](https://github.com/owncloud/ocis/pull/2451)
|
||||
* Enhancement - Update reva to v1.13.0: [#2477](https://github.com/owncloud/ocis/pull/2477)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Remove non working proxy route and fix cs3 users example: [#2474](https://github.com/owncloud/ocis/pull/2474)
|
||||
|
||||
We removed a non working route from the proxy default configuration and fixed the cs3 users
|
||||
deployment example since it still used the accounts service. It now only uses the configured
|
||||
LDAP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2474
|
||||
|
||||
* Bugfix - Set English as default language in the dropdown in the settings page: [#2465](https://github.com/owncloud/ocis/pull/2465)
|
||||
|
||||
The language dropdown didn't have a default language selected, and it was showing an empty
|
||||
value. Now it shows English instead.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2465
|
||||
|
||||
* Change - Remove OnlyOffice extension: [#2433](https://github.com/owncloud/ocis/pull/2433)
|
||||
|
||||
Tags: OnlyOffice
|
||||
|
||||
We've removed the OnlyOffice extension in oCIS. OnlyOffice has their own web extension for
|
||||
OC10 backend now with [a dedicated
|
||||
guide](https://owncloud.dev/clients/web/deployments/oc10-app/#onlyoffice). In
|
||||
oCIS, we will follow up with a guide on how to start a WOPI server providing OnlyOffice soon.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2433
|
||||
|
||||
* Change - Update ownCloud Web to v4.2.0: [#2501](https://github.com/owncloud/ocis/pull/2501)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.2.0. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2501
|
||||
https://github.com/owncloud/web/releases/tag/v4.2.0
|
||||
|
||||
* Enhancement - Add app provider and app provider registry: [#2204](https://github.com/owncloud/ocis/pull/2204)
|
||||
|
||||
We added the app provider and app provider registry. Now the CS3org WOPI server can be
|
||||
registered and OpenInApp requests can be done.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2204
|
||||
https://github.com/cs3org/reva/pull/1785
|
||||
|
||||
* Enhancement - Add the create space permission: [#2461](https://github.com/owncloud/ocis/pull/2461)
|
||||
|
||||
In preparation for the upcoming spaces features a `Create Space` permission was added.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2461
|
||||
|
||||
* Enhancement - Add set space quota permission: [#2459](https://github.com/owncloud/ocis/pull/2459)
|
||||
|
||||
In preparation for the upcoming spaces features a `SetSpaceQuota` permission was added.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2459
|
||||
|
||||
* Enhancement - Create a Space using the Graph API: [#2471](https://github.com/owncloud/ocis/pull/2471)
|
||||
|
||||
Spaces can now be created on `POST /drives/{drive-name}`. Only users with the `create-space`
|
||||
permissions can perform this operation.
|
||||
|
||||
Allowed body form values are:
|
||||
|
||||
- `quota` (bytes) maximum amount of bytes stored in the space. - `maxQuotaFiles` (integer)
|
||||
maximum amount of files supported by the space.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2471
|
||||
|
||||
* Enhancement - Update go-chi/chi to version 5.0.3: [#2429](https://github.com/owncloud/ocis/pull/2429)
|
||||
|
||||
Updated go-chi/chi to the lastest release
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2429
|
||||
|
||||
* Enhancement - Upgrade go micro to v3.6.0: [#2451](https://github.com/owncloud/ocis/pull/2451)
|
||||
|
||||
Go micro and all go micro plugins are now on v3.6.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2451
|
||||
|
||||
* Enhancement - Update reva to v1.13.0: [#2477](https://github.com/owncloud/ocis/pull/2477)
|
||||
|
||||
This update includes:
|
||||
|
||||
* Bugfix [cs3org/reva#2054](https://github.com/cs3org/reva/pull/2054): Fix the response after deleting a share
|
||||
* Bugfix [cs3org/reva#2026](https://github.com/cs3org/reva/pull/2026): Fix moving of a shared file
|
||||
* Bugfix [cs3org/reva#1605](https://github.com/cs3org/reva/pull/1605): Allow to expose full paths in OCS API
|
||||
* Bugfix [cs3org/reva#2033](https://github.com/cs3org/reva/pull/2033): Fix the storage id of shares
|
||||
* Bugfix [cs3org/reva#1991](https://github.com/cs3org/reva/pull/1991): Remove share references when declining shares
|
||||
* Enhancement [cs3org/reva#1994](https://github.com/cs3org/reva/pull/1994): Add owncloudsql driver for the userprovider
|
||||
* Enhancement [cs3org/reva#2065](https://github.com/cs3org/reva/pull/2065): New sharing role Manager
|
||||
* Enhancement [cs3org/reva#2015](https://github.com/cs3org/reva/pull/2015): Add spaces to the list of capabilities
|
||||
* Enhancement [cs3org/reva#2041](https://github.com/cs3org/reva/pull/2041): Create operations for Spaces
|
||||
* Enhancement [cs3org/reva#2029](https://github.com/cs3org/reva/pull/2029): Tracing agent configuration
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2477
|
||||
# Changelog for [1.11.0] (2021-08-24)
|
||||
|
||||
The following sections list the changes for 1.11.0.
|
||||
|
||||
[1.11.0]: https://github.com/owncloud/ocis/compare/v1.10.0...v1.11.0
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Specify primary user type for all accounts: [#2364](https://github.com/owncloud/ocis/pull/2364)
|
||||
* Bugfix - Fix naming of the user- and groupprovider services: [#2388](https://github.com/owncloud/ocis/pull/2388)
|
||||
* Change - Update ownCloud Web to v4.1.0: [#2426](https://github.com/owncloud/ocis/pull/2426)
|
||||
* Enhancement - Use non root user for the owncloud/ocis docker image: [#2380](https://github.com/owncloud/ocis/pull/2380)
|
||||
* Enhancement - Replace unmaintained jwt library: [#2386](https://github.com/owncloud/ocis/pull/2386)
|
||||
* Enhancement - Update bleve to version 2.1.0: [#2391](https://github.com/owncloud/ocis/pull/2391)
|
||||
* Enhancement - Update github.com/coreos/go-oidc to v3.0.0: [#2393](https://github.com/owncloud/ocis/pull/2393)
|
||||
* Enhancement - Update reva to v1.12: [#2423](https://github.com/owncloud/ocis/pull/2423)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Specify primary user type for all accounts: [#2364](https://github.com/owncloud/ocis/pull/2364)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2364
|
||||
|
||||
* Bugfix - Fix naming of the user- and groupprovider services: [#2388](https://github.com/owncloud/ocis/pull/2388)
|
||||
|
||||
The services are called "storage-userprovider" and "storage-groupprovider". The 'ocis
|
||||
help' output was misleading.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2388
|
||||
|
||||
* Change - Update ownCloud Web to v4.1.0: [#2426](https://github.com/owncloud/ocis/pull/2426)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.1.0. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2426
|
||||
https://github.com/owncloud/web/releases/tag/v4.1.0
|
||||
|
||||
* Enhancement - Use non root user for the owncloud/ocis docker image: [#2380](https://github.com/owncloud/ocis/pull/2380)
|
||||
|
||||
The owncloud/ocis docker image now uses a non root user and enables you to set a different user
|
||||
with the docker `--user` parameter. The default user has the UID 1000 is part of a group with the
|
||||
GID 1000.
|
||||
|
||||
This is a breaking change for existing docker deployments. The permission on the files and
|
||||
folders in persistent volumes need to be changed to the UID and GID used for oCIS (default
|
||||
1000:1000 if not changed by the user).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2380
|
||||
|
||||
* Enhancement - Replace unmaintained jwt library: [#2386](https://github.com/owncloud/ocis/pull/2386)
|
||||
|
||||
The old library [github.com/dgrijalva/jwt-go](https://github.com/dgrijalva/jwt-go)
|
||||
is unmaintained and was replaced by the community maintained fork
|
||||
[github.com/golang-jwt/jwt](https://github.com/golang-jwt/jwt).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2386
|
||||
|
||||
* Enhancement - Update bleve to version 2.1.0: [#2391](https://github.com/owncloud/ocis/pull/2391)
|
||||
|
||||
Updated bleve to the current version.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2391
|
||||
|
||||
* Enhancement - Update github.com/coreos/go-oidc to v3.0.0: [#2393](https://github.com/owncloud/ocis/pull/2393)
|
||||
|
||||
Updated the github.com/coreos/go-oidc library to the version 3.0.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2393
|
||||
|
||||
* Enhancement - Update reva to v1.12: [#2423](https://github.com/owncloud/ocis/pull/2423)
|
||||
|
||||
* Enhancement cs3org/reva#1803: Introduce new webdav spaces endpoint
|
||||
* Bugfix cs3org/reva#1819: Disable notifications
|
||||
* Enhancement cs3org/reva#1861: Add support for runtime plugins
|
||||
* Bugfix cs3org/reva#1913: Logic to restore files to readonly nodes
|
||||
* Enhancement cs3org/reva#1946: Add share manager that connects to oc10 databases
|
||||
* Bugfix cs3org/reva#1954: Fix response format of the sharees API
|
||||
* Bugfix cs3org/reva#1956: Fix trashbin listing with depth 0
|
||||
* Bugfix cs3org/reva#1957: Fix etag propagation on deletes
|
||||
* Bugfix cs3org/reva#1960: Return the updated share after updating
|
||||
* Bugfix cs3org/reva#1965 cs3org/reva#1967: Fix the file target of user and group shares
|
||||
* Bugfix cs3org/reva#1980: Propagate the etag after restoring a file version
|
||||
* Enhancement cs3org/reva#1984: Replace OpenCensus with OpenTelemetry
|
||||
* Bugfix cs3org/reva#1985: Add quota stubs
|
||||
* Bugfix cs3org/reva#1987: Fix windows build
|
||||
* Bugfix cs3org/reva#1990: Increase oc10 compatibility of owncloudsql
|
||||
* Bugfix cs3org/reva#1992: Check if symlink exists instead of spamming the console
|
||||
* Bugfix cs3org/reva#1993: fix owncloudsql GetMD
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2423
|
||||
# Changelog for [1.10.0] (2021-08-06)
|
||||
|
||||
The following sections list the changes for 1.10.0.
|
||||
|
||||
[1.10.0]: https://github.com/owncloud/ocis/compare/v1.9.0...v1.10.0
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Improve IDP Login Accessibility: [#5376](https://github.com/owncloud/web/issues/5376)
|
||||
* Bugfix - Forward basic auth to OpenID connect token authentication endpoint: [#2095](https://github.com/owncloud/ocis/issues/2095)
|
||||
* Bugfix - Log all requests in the proxy access log: [#2301](https://github.com/owncloud/ocis/pull/2301)
|
||||
* Bugfix - Update glauth to 20210729125545-b9aecdfcac31: [#2336](https://github.com/owncloud/ocis/pull/2336)
|
||||
* Change - Update ownCloud Web to v4.0.0: [#2353](https://github.com/owncloud/ocis/pull/2353)
|
||||
* Enhancement - Proxy: Add claims policy selector: [#2248](https://github.com/owncloud/ocis/pull/2248)
|
||||
* Enhancement - Add ocs cache warmup config and warn on protobuf ns conflicts: [#2328](https://github.com/owncloud/ocis/pull/2328)
|
||||
* Enhancement - Refactor graph API: [#2277](https://github.com/owncloud/ocis/pull/2277)
|
||||
* Enhancement - Update REVA: [#2355](https://github.com/owncloud/ocis/pull/2355)
|
||||
* Enhancement - Use only one go.mod file for project dependencies: [#2344](https://github.com/owncloud/ocis/pull/2344)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Improve IDP Login Accessibility: [#5376](https://github.com/owncloud/web/issues/5376)
|
||||
|
||||
We have addressed the feedback from the `a11y` audit and improved the IDP login screen
|
||||
accordingly.
|
||||
|
||||
https://github.com/owncloud/web/issues/5376
|
||||
https://github.com/owncloud/web/issues/5377
|
||||
|
||||
* Bugfix - Forward basic auth to OpenID connect token authentication endpoint: [#2095](https://github.com/owncloud/ocis/issues/2095)
|
||||
|
||||
When using `PROXY_ENABLE_BASIC_AUTH=true` we now forward request to the idp instead of
|
||||
trying to authenticate the request ourself.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2095
|
||||
https://github.com/owncloud/ocis/issues/2094
|
||||
|
||||
* Bugfix - Log all requests in the proxy access log: [#2301](https://github.com/owncloud/ocis/pull/2301)
|
||||
|
||||
We now use a dedicated middleware to log all requests, regardless of routing selector outcome.
|
||||
While the log now includes the remote address, the selected routing policy is only logged when
|
||||
log level is set to debug because the request context cannot be changed in the
|
||||
`directorSelectionDirector`, as per the `ReverseProxy.Director` documentation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2301
|
||||
|
||||
* Bugfix - Update glauth to 20210729125545-b9aecdfcac31: [#2336](https://github.com/owncloud/ocis/pull/2336)
|
||||
|
||||
* Fixes the backend config not being passed correctly in ocis
|
||||
* Fixes a mutex being copied, leading to concurrent writes
|
||||
* Fixes UTF8 chars in filters
|
||||
* Fixes case insensitive strings
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2336
|
||||
https://github.com/glauth/glauth/pull/198
|
||||
https://github.com/glauth/glauth/pull/194
|
||||
|
||||
* Change - Update ownCloud Web to v4.0.0: [#2353](https://github.com/owncloud/ocis/pull/2353)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.0.0. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2353
|
||||
https://github.com/owncloud/web/releases/tag/v4.0.0
|
||||
|
||||
* Enhancement - Proxy: Add claims policy selector: [#2248](https://github.com/owncloud/ocis/pull/2248)
|
||||
|
||||
Using the proxy config file, it is now possible to let let the IdP determine the routing policy by
|
||||
sending an `ocis.routing.policy` claim. Its value will be used to determine the set of routes
|
||||
for the logged in user.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2248
|
||||
|
||||
* Enhancement - Add ocs cache warmup config and warn on protobuf ns conflicts: [#2328](https://github.com/owncloud/ocis/pull/2328)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2328
|
||||
|
||||
* Enhancement - Refactor graph API: [#2277](https://github.com/owncloud/ocis/pull/2277)
|
||||
|
||||
We refactored the `/graph/v1.0/` endpoint which now relies on the internal acces token fer
|
||||
authentication, getting rid of any LDAP or OIDC code to authenticate requests. This allows
|
||||
using the graph api when using basic auth or any other auth mechanism provided by the CS3 auth
|
||||
providers / reva gateway / ocis proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2277
|
||||
|
||||
* Enhancement - Update REVA: [#2355](https://github.com/owncloud/ocis/pull/2355)
|
||||
|
||||
Update REVA from v1.10.1-0.20210730095301-fcb7a30a44a6 to
|
||||
v1.11.1-0.20210809134415-3fe79c870fb5 * Fix cs3org/reva#1978: Fix owner type is optional
|
||||
* Fix cs3org/reva#1965: fix value of file_target in shares * Fix cs3org/reva#1960: fix
|
||||
updating shares in the memory share manager * Fix cs3org/reva#1956: fix trashbin listing with
|
||||
depth 0 * Fix cs3org/reva#1957: fix etag propagation on deletes * Enh cs3org/reva#1861: [WIP]
|
||||
Runtime plugins * Fix cs3org/reva#1954: fix response format of the sharees API * Fix
|
||||
cs3org/reva#1819: Remove notifications key from ocs response * Enh cs3org/reva#1946: Add a
|
||||
share manager that connects to oc10 databases * Fix cs3org/reva#1899: Fix chunked uploads for
|
||||
new versions * Fix cs3org/reva#1906: Fix copy over existing resource * Fix cs3org/reva#1891:
|
||||
Delete Shared Resources as Receiver * Fix cs3org/reva#1907: Error when creating folder with
|
||||
existing name * Fix cs3org/reva#1937: Do not overwrite more specific matches when finding
|
||||
storage providers * Fix cs3org/reva#1939: Fix the share jail permissions in the decomposedfs
|
||||
* Fix cs3org/reva#1932: Numerous fixes to the owncloudsql storage driver * Fix
|
||||
cs3org/reva#1912: Fix response when listing versions of another user * Fix
|
||||
cs3org/reva#1910: Get user groups recursively in the cbox rest user driver * Fix
|
||||
cs3org/reva#1904: Set Content-Length to 0 when swallowing body in the datagateway * Fix
|
||||
cs3org/reva#1911: Fix version order in propfind responses * Fix cs3org/reva#1926: Trash Bin
|
||||
in oCIS Storage Operations * Fix cs3org/reva#1901: Fix response code when folder doesnt exist
|
||||
on upload * Enh cs3org/reva#1785: Extend app registry with AddProvider method and mimetype
|
||||
filters * Enh cs3org/reva#1938: Add methods to get and put context values * Enh
|
||||
cs3org/reva#1798: Add support for a deny-all permission on references * Enh
|
||||
cs3org/reva#1916: Generate updated protobuf bindings for EOS GRPC * Enh cs3org/reva#1887:
|
||||
Add "a" and "l" filter for grappa queries * Enh cs3org/reva#1919: Run gofmt before building *
|
||||
Enh cs3org/reva#1927: Implement RollbackToVersion for eosgrpc (needs a newer EOS MGM) * Enh
|
||||
cs3org/reva#1944: Implement listing supported mime types in app registry * Enh
|
||||
cs3org/reva#1870: Be defensive about wrongly quoted etags * Enh cs3org/reva#1940: Reduce
|
||||
memory usage when uploading with S3ng storage * Enh cs3org/reva#1888: Refactoring of the
|
||||
webdav code * Enh cs3org/reva#1900: Check for illegal names while uploading or moving files *
|
||||
Enh cs3org/reva#1925: Refactor listing and statting across providers for virtual views * Fix
|
||||
cs3org/reva#1883: Pass directories with trailing slashes to eosclient.GenerateToken * Fix
|
||||
cs3org/reva#1878: Improve the webdav error handling in the trashbin * Fix cs3org/reva#1884:
|
||||
Do not send body on failed range request * Enh cs3org/reva#1744: Add support for lightweight
|
||||
user types * Fix cs3org/reva#1904: Set Content-Length to 0 when swallowing body in the
|
||||
datagateway * Fix cs3org/reva#1899: Bugfix: Fix chunked uploads for new versions * Enh
|
||||
cs3org/reva#1888: Refactoring of the webdav code * Enh cs3org/reva#1887: Add "a" and "l"
|
||||
filter for grappa queries
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2355
|
||||
https://github.com/owncloud/ocis/pull/2295
|
||||
https://github.com/owncloud/ocis/pull/2314
|
||||
|
||||
* Enhancement - Use only one go.mod file for project dependencies: [#2344](https://github.com/owncloud/ocis/pull/2344)
|
||||
|
||||
We now use one single go.mod file at the root of the repository rather than one per core
|
||||
extension.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2344
|
||||
# Changelog for [1.9.0] (2021-07-13)
|
||||
|
||||
The following sections list the changes for 1.9.0.
|
||||
|
||||
[1.9.0]: https://github.com/owncloud/ocis/compare/v1.8.0...v1.9.0
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Panic when service fails to start: [#2252](https://github.com/owncloud/ocis/pull/2252)
|
||||
* Bugfix - Dont use port 80 as debug for GroupsProvider: [#2271](https://github.com/owncloud/ocis/pull/2271)
|
||||
* Change - Update ownCloud Web to v3.4.0: [#2276](https://github.com/owncloud/ocis/pull/2276)
|
||||
* Change - Update WEB to v3.4.1: [#2283](https://github.com/owncloud/ocis/pull/2283)
|
||||
* Enhancement - Runtime support for cherry picking extensions: [#2229](https://github.com/owncloud/ocis/pull/2229)
|
||||
* Enhancement - Add readonly mode for storagehome and storageusers: [#2230](https://github.com/owncloud/ocis/pull/2230)
|
||||
* Enhancement - Remove unnecessary Service.Init(): [#1705](https://github.com/owncloud/ocis/pull/1705)
|
||||
* Enhancement - Update REVA to v1.9.1-0.20210628143859-9d29c36c0c3f: [#2227](https://github.com/owncloud/ocis/pull/2227)
|
||||
* Enhancement - Update REVA to v1.9.1: [#2280](https://github.com/owncloud/ocis/pull/2280)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Panic when service fails to start: [#2252](https://github.com/owncloud/ocis/pull/2252)
|
||||
|
||||
Tags: runtime
|
||||
|
||||
When attempting to run a service through the runtime that is currently running and fails to
|
||||
start, a race condition still redirect os Interrupt signals to a closed channel.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2252
|
||||
|
||||
* Bugfix - Dont use port 80 as debug for GroupsProvider: [#2271](https://github.com/owncloud/ocis/pull/2271)
|
||||
|
||||
A copy/paste error where the configuration for the groupsprovider's debug address was not
|
||||
present leaves go-micro to start the debug service in port 80 by default.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2271
|
||||
|
||||
* Change - Update ownCloud Web to v3.4.0: [#2276](https://github.com/owncloud/ocis/pull/2276)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v3.4.0. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2276
|
||||
https://github.com/owncloud/web/releases/tag/v3.4.0
|
||||
|
||||
* Change - Update WEB to v3.4.1: [#2283](https://github.com/owncloud/ocis/pull/2283)
|
||||
|
||||
* Fix [5501](https://github.com/owncloud/web/pull/5501): loading previews in the right sidebar
|
||||
* Fix [5493](https://github.com/owncloud/web/pull/5493): view options position
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2283
|
||||
https://github.com/owncloud/web/releases/tag/v3.4.1
|
||||
|
||||
* Enhancement - Runtime support for cherry picking extensions: [#2229](https://github.com/owncloud/ocis/pull/2229)
|
||||
|
||||
Support for running certain extensions supervised via cli flags. Example usage:
|
||||
|
||||
``` > ocis server --extensions="proxy, idp, storage-metadata, accounts" ```
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2229
|
||||
|
||||
* Enhancement - Add readonly mode for storagehome and storageusers: [#2230](https://github.com/owncloud/ocis/pull/2230)
|
||||
|
||||
To enable the readonly mode use `STORAGE_HOME_READ_ONLY=true` and
|
||||
`STORAGE_USERS_READ_ONLY=true`. Alternative: use `OCIS_STORAGE_READ_ONLY=true`
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2230
|
||||
|
||||
* Enhancement - Remove unnecessary Service.Init(): [#1705](https://github.com/owncloud/ocis/pull/1705)
|
||||
|
||||
As it turns out oCIS already calls this method. Invoking it twice would end in accidentally
|
||||
resetting values.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1705
|
||||
|
||||
* Enhancement - Update REVA to v1.9.1-0.20210628143859-9d29c36c0c3f: [#2227](https://github.com/owncloud/ocis/pull/2227)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2227
|
||||
|
||||
* Enhancement - Update REVA to v1.9.1: [#2280](https://github.com/owncloud/ocis/pull/2280)
|
||||
|
||||
* Fix cs3org/reva#1843: Correct Dockerfile path for the reva CLI and alpine3.13 as builder
|
||||
* Fix cs3org/reva#1835: Cleanup owncloudsql driver
|
||||
* Fix cs3org/reva#1868: Minor fixes to the grpc/http plugin: checksum, url escaping
|
||||
* Fix cs3org/reva#1885: Fix template in eoshomewrapper to use context user rather than resource
|
||||
* Fix cs3org/reva#1833: Properly handle name collisions for deletes in the owncloud driver
|
||||
* Fix cs3org/reva#1874: Use the original file mtime during upload
|
||||
* Fix cs3org/reva#1854: Add the uid/gid to the url for eos
|
||||
* Fix cs3org/reva#1848: Fill in missing gid/uid number with nobody
|
||||
* Fix cs3org/reva#1831: Make the ocm-provider endpoint in the ocmd service unprotected
|
||||
* Fix cs3org/reva#1808: Use empty array in OCS Notifications endpoints
|
||||
* Fix cs3org/reva#1825: Raise max grpc message size
|
||||
* Fix cs3org/reva#1828: Send a proper XML header with error messages
|
||||
* Chg cs3org/reva#1828: Remove the oidc provider in order to upgrad mattn/go-sqlite3 to v1.14.7
|
||||
* Enh cs3org/reva#1834: Add API key to Mentix GOCDB connector
|
||||
* Enh cs3org/reva#1855: Minor optimization in parsing EOS ACLs
|
||||
* Enh cs3org/reva#1873: Update the EOS image tag to be for revad-eos image
|
||||
* Enh cs3org/reva#1802: Introduce list spaces
|
||||
* Enh cs3org/reva#1849: Add readonly interceptor
|
||||
* Enh cs3org/reva#1875: Simplify resource comparison
|
||||
* Enh cs3org/reva#1827: Support trashbin sub paths in the recycle API
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2280
|
||||
# Changelog for [1.8.0] (2021-06-28)
|
||||
|
||||
The following sections list the changes for 1.8.0.
|
||||
|
||||
[1.8.0]: https://github.com/owncloud/ocis/compare/v1.7.0...v1.8.0
|
||||
|
||||
## Summary
|
||||
|
||||
|
||||
+263
@@ -0,0 +1,263 @@
|
||||
First of all, thank you for taking the time to read this and your interest in contributing to ownCloud Infinite Scale!
|
||||
|
||||
The following is a set of guidelines for contributing to most of the projects hosted in the [ownCloud Organization](https://github.com/owncloud) on [GitHub](https://www.github.com). These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
|
||||
|
||||
For simplicity reasons, this document mostly refers to the ownCloud [Infinite Scale project](https://www.github.com/owncloud/ocis), but it should be easily transferable to other (sub)projects.
|
||||
|
||||
#### Table Of Contents
|
||||
|
||||
[I don't want to read this whole thing, I just have a question](#i-dont-want-to-read-this-whole-thing-i-just-have-a-question)
|
||||
|
||||
[What should I know before I get started](#what-should-i-know-before-i-get-started)
|
||||
* [ownCloud is hosted on Github](#owncloud-is-hosted-on-github)
|
||||
* [ownCloud Company, Engineering Partners and Community](#owncloud-company,-engineering-partners-and-community)
|
||||
* [Licensing and CLA](#licensing-and-cla)
|
||||
|
||||
[How Can I Contribute](#how-can-i-contribute)
|
||||
* [Help spreading the word](#help-spreading-the-word)
|
||||
* [Reporting Bugs](#reporting-bugs)
|
||||
* [Suggesting Enhancements](#suggesting-enhancements)
|
||||
* [Your First Code Contribution](#your-first-code-contribution)
|
||||
* [Pull Requests](#pull-requests)
|
||||
* [Documentation Contributions](#documentation-contributions)
|
||||
* [Internationalization](#internationalization)
|
||||
* [Deployments: Docker, Ansible and friends](#deployments-docker-ansible-and-friends)
|
||||
|
||||
[Styleguides](#styleguides)
|
||||
* [Git Commit Messages](#git-commit-messages)
|
||||
* [Golang Styleguide](#golang-styleguide)
|
||||
* [Web Styleguide](#web-styleguide)
|
||||
* [Documentation Styleguide](#documentation-styleguide)
|
||||
|
||||
[Additional Notes](#additional-notes)
|
||||
* [Issue and Pull Request Labels](#issue-and-pull-request-labels)
|
||||
|
||||
## I don't want to read this whole thing I just have a question
|
||||
|
||||
> **Note:** Please don't file an issue to ask a question. You'll get faster results by using the resources below.
|
||||
|
||||
For general questions, please refer to [ownCloud's FAQs](https://owncloud.com/faq/) or ask on the [ownCloud Central Server](https://central.owncloud.org/).
|
||||
|
||||
We also have a [Rocket Chat Server](https://talk.owncloud.com/channel/ocis) to answer your questions specifically about ownCloud Infinite Scale.
|
||||
|
||||
## What should I know before I get started
|
||||
|
||||
### ownCloud is hosted on Github
|
||||
|
||||
To effectivly contribute to ownCloud Infinite Scale, you need a Github account. You can get that for free at [Github](https://github.com/join). You can find howtos on the internet, for example [here](https://www.wikihow.com/Create-an-Account-on-GitHub).
|
||||
|
||||
For other ways of contributing, for example with translations, other systems require you to have an account as well, for example [Transifex](https://www.transifex.com).
|
||||
|
||||
The ownCloud project follows the strict Github workflow of development as briefly [described here](https://guides.github.com/introduction/flow/).
|
||||
|
||||
### ownCloud Company, Engineering Partners and Community
|
||||
|
||||
ownCloud Infinite Scale is largely created by developers who are employed by the [ownCloud company](https://www.owncloud.com), which is located in Germany. It is providing support for ownCloud for customers worldwide. In addition there are engineering partners who also work full time on ownCloud related code, for example in [CERN REVA](https://github.com/cs3org/reva/).
|
||||
|
||||
Because of that fact, the pace that the development is moving forward is sometimes high for people who are not willing and/or able to spend a comparable amount of time to contribute. Even though this can be a challenge, it should not scare anybody away. Here is our clear commitment that we feel honored by everybody who is interested in our work and improves it, no matter how big the contribution might be.
|
||||
|
||||
We as the full time devs from either organization are doing our best to listen, review and consider all changes that are brought forward following this guideline and make sense for the project.
|
||||
|
||||
### Licensing and CLA
|
||||
|
||||
We are very happy that there is *no CLA* required for most of the code of ownCloud Infinite Scale.
|
||||
|
||||
Currently, only for the following components you need to sign a [Contributors License Agreement](https://en.wikipedia.org/wiki/Contributor_License_Agreement):
|
||||
|
||||
* [ownCloud Web](https://github.com/owncloud/web/): [Link to CLA](https://owncloud.com/contribute/join-the-development/contributor-agreement/)
|
||||
|
||||
Please make sure to read and understand the details of the CLA before starting to invest time on a component that requires it. If you have any questions or concerns please feel free to raise them with us.
|
||||
|
||||
## How Can I Contribute
|
||||
|
||||
There are many ways to contribute to open source projects, and all are equally valuable and appreciated.
|
||||
|
||||
### Help spreading the word
|
||||
|
||||
This way to contribute to the project can not be overestimated: People who talk about their experience with ownCloud Infinite Scale and help others with that are the key to success of the project.
|
||||
|
||||
There are too many ways of doing that to line them up here, but examples are answering questions in [ownCloud Central](https://central.owncloud.org/) or on [ownCloud Talk](https://talk.owncloud.com/channel/ocis), writing blog posts etc pp.
|
||||
|
||||
There is no formal guideline to this, just do it :-)
|
||||
|
||||
### Reporting Bugs
|
||||
|
||||
This section guides you through submitting a bug report for ownCloud Infinite Scale. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, and find related reports :mag_right:.
|
||||
|
||||
Before creating bug reports, please check [this list](#before-submitting-a-bug-report) as you might find out that you don't need to create one. When you are creating a bug report, please [include as many details as possible](#how-do-i-submit-a-good-bug-report). Fill out [the required template](https://github.com/owncloud/ocis/issues/new?Type%3ABug&template=bug_report.md), the information it asks for helps us resolve issues faster.
|
||||
|
||||
> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. If you have permission to reopen the issue, feel free to do so.
|
||||
|
||||
#### Before Submitting A Bug Report
|
||||
|
||||
* **Make sure you are running a recent version** Usually, developers' interest in old versions of software drops very fast once a new shiny version has been released. So the general recommendation is: Use the latest released version or even the current master to reproduce problems that you might encounter. That helps a lot to attract developers attention.
|
||||
* **Determine which [repository](https://github.com/owncloud) the problem should be reported in**.
|
||||
* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aowncloud)** with possibly a more granular filter on the repository, to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one **if you have new information**. Please abstain from adding "plus ones", except using the Github emojis. That might indicate how many users are affected.
|
||||
|
||||
#### How Do I Submit A (Good) Bug Report
|
||||
|
||||
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined [which repository](https://github.com/owncloud) your bug is related to, create an issue on that repository and provide the following information by filling in [the template](https://github.com/owncloud/ocis/issues/new?Type%3ABug&template=bug_report.md).
|
||||
|
||||
Explain the problem and include additional details to help maintainers reproduce the problem:
|
||||
|
||||
* **Use a clear and descriptive title** for the issue to identify the problem.
|
||||
* **Describe the exact steps which reproduce the problem** in as many details as possible. Start with describing, from a user perspective, what you tried to achieve, i.e. "I want to share some pictures with Grandma". When listing steps, **don't just say what you did, but explain how you did it**. For example, if you uploaded a file to ownCloud, say which client you used, which way of uploading you chose, if the name was special somehow and how big it was.
|
||||
* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
|
||||
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
|
||||
* **Explain which behavior you expected to see instead and why.**
|
||||
* **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
|
||||
* **If you report a web browser related problem**, consider to using the browser's Web developer tools (such as the debugger, console or network monitor) to check what happened. Make sure to add screenshots of the utilities if you are short of time to interpret it.
|
||||
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
|
||||
|
||||
Provide more context by answering these questions:
|
||||
|
||||
* **Did the problem start happening recently** (e.g. after updating to a new version) or was this always a problem?
|
||||
* If the problem started happening recently, **can you reproduce the problem in an older version?** What's the most recent version in which the problem doesn't happen? You can find more information about how to set up [test environments](https://owncloud.dev/ocis/development/testing/) in the [developer documentation](https://owncloud.dev/#developer-documentation).
|
||||
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
|
||||
|
||||
Include details about your configuration and environment as asked for in the template.
|
||||
|
||||
### Suggesting Enhancements
|
||||
|
||||
This section guides you through submitting an enhancement suggestion for ownCloud Infinite Scale, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:.
|
||||
|
||||
Before creating enhancement suggestions, please check [this list](#before-submitting-an-enhancement-suggestion) as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please [include as many details as possible](#how-do-i-submit-a-good-enhancement-suggestion). Fill in [the template](https://github.com/owncloud/ocis/.github/blob/master/.github/ISSUE_TEMPLATE/feature_request.md), including the steps that you imagine you would take if the feature you're requesting existed.
|
||||
|
||||
#### Before Submitting An Enhancement Suggestion
|
||||
|
||||
* **Check if there's already an extension or other component which provides that enhancement, even in a different way.**
|
||||
* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aowncloud)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. Feel free to use the Github emojis to indicate that you are in favour of an enhancement request.
|
||||
|
||||
#### How Do I Submit A (Good) Enhancement Suggestion
|
||||
|
||||
Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined [which repository](https://github.com/owncloud) your enhancement suggestion is related to, create an issue on that repository and provide the following information:
|
||||
|
||||
* **Use a clear and descriptive title** for the issue to identify the suggestion.
|
||||
* **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
|
||||
* **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
|
||||
* **Explain why this enhancement would be useful** to most ownCloud users.
|
||||
* **List some other projects or products where this enhancement exists.**
|
||||
|
||||
### Your First Code Contribution
|
||||
|
||||
Unsure where to begin contributing to ownCloud? You can start by looking through these `Needs-help` issues:
|
||||
|
||||
* The [Good first issue](https://github.com/owncloud/ocis/labels/Topic%3Agood-first-issue) label marks good items to start with.
|
||||
* [Tests needed](https://github.com/owncloud/ocis/labels/Interaction%3ANeeds-tests) - issues which would benefit from a test.
|
||||
* [Help wanted issues](https://github.com/owncloud/ocis/labels/Interaction%3ANeeds-help) - issues which should be a bit more involved.
|
||||
|
||||
It is fine to pick one of the list following personal preference. While not perfect, number of comments is a reasonable proxy for impact a given change will have.
|
||||
|
||||
To find out how to set up ownCloud Infinite Scale for local development please refer to the [Developer Documentation](https://owncloud.dev/ocis/development/getting-started/). It contains a lot of information that will come in handy when starting to work on the project.
|
||||
|
||||
### Pull Requests
|
||||
|
||||
All contributions to ownClouds projects use so called pull requests following the [Github PR workflow](https://guides.github.com/introduction/flow/).
|
||||
|
||||
Please follow these steps to have your contribution considered by the maintainers:
|
||||
|
||||
* Follow all instructions in [the template](https://github.com/owncloud/ocis/blob/master/.github/pull_request_template.md)
|
||||
* Follow the [styleguides](#styleguides) where applicable
|
||||
* After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing <details><summary>What if the status checks are failing?</summary>If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.</details>
|
||||
|
||||
While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
|
||||
|
||||
### Documentation Contributions
|
||||
|
||||
ownCloud is very proud of the documentation it has, which is the work of a great team of people. Of course, also the documentation is open to contributions.
|
||||
|
||||
See the [Getting Started Guide](https://owncloud.dev/ocis/development/getting-started/) on how to get started. Other useful information is summarized in the [Documentation Readme](https://github.com/owncloud/docs).
|
||||
|
||||
### Internationalization
|
||||
|
||||
Our projects are getting translated into many languages to allow people from all over the world to use ownCloud in their native language. For translations, ownCloud uses [Transifex](https://www.transifex.com) as a community based collaboration platform for internationalization.
|
||||
|
||||
For contributions please refer to the [Transifex Resources](https://www.transifex.com/resources/) to learn how to improve ownClouds translations there.
|
||||
|
||||
### Deployments: Docker, Ansible and friends
|
||||
|
||||
Depending on the ownCloud component, there is complex deployment tooling to install in various environments. There is for example [ownCloud Ansible](https://github.com/owncloud-ansible) with Ansible resources. Contributions to that are very appreciated and follow the same guidelines as every other code contribution.
|
||||
|
||||
## Styleguides
|
||||
|
||||
To keep up with a consistent code and tooling landscape, some of the ownCloud modules maintain styleguides for contributions. It is mandatory to follow them in contributions.
|
||||
|
||||
### Git Commit Messages
|
||||
|
||||
* Use the present tense ("Add feature" not "Added feature")
|
||||
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
|
||||
* Limit the first line to 72 characters or less
|
||||
* Reference issues and pull requests liberally after the first line
|
||||
* When only changing documentation, include `[docs-only]` in the commit title
|
||||
|
||||
### Golang Styleguide
|
||||
|
||||
Use the built in golang code formatter before submitting the patch. Also, consulting documentation like [Effective Go](https://golang.org/doc/effective_go) or [Practical Go](http://bit.ly/gcsg-2019) helps to improve the code quality.
|
||||
|
||||
### Web Styleguide
|
||||
|
||||
Refer to related documents in the [ownCloud Web Repository](https://github.com/owncloud/web).
|
||||
|
||||
#### Documentation Styleguide
|
||||
|
||||
See the [ownCloud Documentation Styleguide](https://github.com/owncloud/docs/blob/master/docs/style-guide.md).
|
||||
|
||||
## Additional Notes
|
||||
|
||||
### Issue and Pull Request Labels
|
||||
|
||||
This section lists the labels we use to help us track and manage issues and pull requests. Most labels are used across all ownCloud repositories, but some are specific.
|
||||
|
||||
[GitHub search](https://help.github.com/articles/searching-issues/) makes it easy to use labels for finding groups of issues or pull requests you're interested in. To help you find issues and pull requests, each label can be used in search links for finding open items with that label in the ownCloud repositories.
|
||||
|
||||
The labels are loosely grouped by their purpose, but it's not required that every issue has a label from every group or that an issue can't have more than one label from the same group.
|
||||
|
||||
The list here contains all the more general categories of issues which are followed by a colon and a specific value. For example severity 1 looks like `Severity:sev1-critical`.
|
||||
|
||||
#### Platform
|
||||
|
||||
Describes the platform the issue is happening on, ie. iOS or Windows.
|
||||
|
||||
#### Estimation
|
||||
|
||||
T-Shirt sizes for effort estimation to fix that bug or implement an enhancement. Ranges from XS to XXXL.
|
||||
|
||||
#### Priority
|
||||
|
||||
P1 to P4 (lowest) to indicate an priority. Mostly a tool for internal project management and support.
|
||||
|
||||
#### QA
|
||||
|
||||
Flags to indicate the internal QA status in terms of process and priority. Please leave alone unless you're QA ;-)
|
||||
|
||||
#### Severity
|
||||
|
||||
Severity for the product, mostly impact on user.
|
||||
|
||||
#### Type
|
||||
|
||||
The issue type, helps to structure the issues in the agile categories (Epic, Story...) but also organizational ones.
|
||||
|
||||
#### Topic
|
||||
|
||||
A general category of the topic of a ticket.
|
||||
|
||||
#### Category
|
||||
|
||||
Categorizes the issue to also indicate the type of the issue.
|
||||
|
||||
#### Status
|
||||
|
||||
The status in the ticket life cycle. Keep an eye on that one, especially for the `Waiting-for-Feedback` tag which might indicate that the reporter is asked for feedback.
|
||||
|
||||
#### Interaction
|
||||
|
||||
Another label that indicates the type of the issue.
|
||||
|
||||
#### Browser
|
||||
|
||||
Important for browser dependent web issues. It specifies the browser that shows the error.
|
||||
|
||||
#### Early-Adopter
|
||||
|
||||
Tags issues that were reported by one of the oCIS early adopters, ie. customers and users who start using ownCloud Infinite Scale before it's general availability.
|
||||
@@ -24,7 +24,6 @@ OCIS_MODULES = \
|
||||
ocis \
|
||||
ocis-pkg \
|
||||
ocs \
|
||||
onlyoffice \
|
||||
proxy \
|
||||
settings \
|
||||
storage \
|
||||
|
||||
@@ -24,7 +24,7 @@ If you find a security issue please contact [security@owncloud.com](mailto:secur
|
||||
|
||||
## Contributing
|
||||
|
||||
Fork -> Patch -> Push -> Pull Request
|
||||
Please refer to our [Contribution Guidelines](CONTRIBUTING.md).
|
||||
|
||||
## License
|
||||
|
||||
@@ -33,5 +33,5 @@ Apache-2.0
|
||||
## Copyright
|
||||
|
||||
```console
|
||||
Copyright (c) 2020 ownCloud GmbH <https://owncloud.com>
|
||||
Copyright (c) 2020-2021 ownCloud GmbH <https://owncloud.com>
|
||||
```
|
||||
+1
-1
@@ -32,7 +32,7 @@ include ../.make/generate.mk
|
||||
|
||||
.PHONY: ci-go-generate
|
||||
ci-go-generate: protobuf # CI runs ci-node-generate automatically before this target
|
||||
@go generate $(GENERATE)
|
||||
@go generate ./...
|
||||
|
||||
.PHONY: ci-node-generate
|
||||
ci-node-generate: yarn-build
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
module github.com/owncloud/ocis/accounts
|
||||
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
contrib.go.opencensus.io/exporter/jaeger v0.2.1
|
||||
contrib.go.opencensus.io/exporter/ocagent v0.7.0
|
||||
contrib.go.opencensus.io/exporter/zipkin v0.1.2
|
||||
github.com/asim/go-micro/plugins/client/grpc/v3 v3.0.0-20210408173139-0d57213d3f5c
|
||||
github.com/asim/go-micro/v3 v3.5.1-0.20210217182006-0f0ace1a44a9
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20210614143420-5ee2eb1e7887
|
||||
github.com/cs3org/reva v1.9.0
|
||||
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.5.2
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0
|
||||
github.com/mennanov/fieldmask-utils v0.3.3
|
||||
github.com/micro/cli/v2 v2.1.2
|
||||
github.com/oklog/run v1.1.0
|
||||
github.com/olekukonko/tablewriter v0.0.5
|
||||
github.com/openzipkin/zipkin-go v0.2.5
|
||||
github.com/owncloud/ocis/ocis-pkg v0.0.0-20210216094451-dc73176dc62d
|
||||
github.com/owncloud/ocis/settings v0.0.0-20210413063522-955bd60edf33
|
||||
github.com/prometheus/client_golang v1.10.0
|
||||
github.com/rs/zerolog v1.23.0
|
||||
github.com/spf13/viper v1.7.1
|
||||
github.com/stretchr/testify v1.7.0
|
||||
github.com/thejerf/suture/v4 v4.0.0
|
||||
go.opencensus.io v0.23.0
|
||||
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
|
||||
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781
|
||||
google.golang.org/genproto v0.0.0-20210207032614-bba0dbe2a9ea
|
||||
google.golang.org/grpc v1.38.0
|
||||
google.golang.org/protobuf v1.26.0
|
||||
)
|
||||
|
||||
replace (
|
||||
github.com/owncloud/ocis/ocis-pkg => ../ocis-pkg
|
||||
github.com/owncloud/ocis/settings => ../settings
|
||||
github.com/owncloud/ocis/store => ../store
|
||||
// taken from https://github.com/asim/go-micro/blob/master/plugins/registry/etcd/go.mod#L14-L16
|
||||
go.etcd.io/etcd/api/v3 => go.etcd.io/etcd/api/v3 v3.0.0-20210204162551-dae29bb719dd
|
||||
go.etcd.io/etcd/pkg/v3 => go.etcd.io/etcd/pkg/v3 v3.0.0-20210204162551-dae29bb719dd
|
||||
)
|
||||
-2439
File diff suppressed because it is too large.
Load diff
+11
-11
@@ -17,10 +17,10 @@
|
||||
"watch": "rollup -c -w",
|
||||
"test": "echo 'Not implemented'",
|
||||
"generate-api": "node node_modules/swagger-vue-generator/bin/generate-api.js --package-version v0 --source pkg/proto/v0/accounts.swagger.json --moduleName accounts --destination ui/client/accounts/index.js",
|
||||
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format node_modules/cucumber-pretty -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\""
|
||||
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format @cucumber/pretty-formatter -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.0",
|
||||
"@babel/core": "^7.15.5",
|
||||
"@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",
|
||||
@@ -28,17 +28,17 @@
|
||||
"@babel/plugin-transform-runtime": "^7.13.10",
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
"@babel/preset-env": "^7.13.12",
|
||||
"@babel/register": "7.13.8",
|
||||
"@babel/register": "^7.14.5",
|
||||
"@cucumber/cucumber": "^7.3.1",
|
||||
"@cucumber/pretty-formatter": "^1.0.0-alpha.1",
|
||||
"@erquhart/rollup-plugin-node-builtins": "^2.1.5",
|
||||
"@rollup/plugin-commonjs": "^17.1.0",
|
||||
"@rollup/plugin-json": "^4.0.1",
|
||||
"@rollup/plugin-replace": "^2.3.0",
|
||||
"archiver": "^5.3.0",
|
||||
"axios": "^0.21.1",
|
||||
"core-js": "3",
|
||||
"axios": "^0.21.4",
|
||||
"core-js": "^3.17.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"cucumber": "^6.0.5",
|
||||
"cucumber-pretty": ">=6.0.0",
|
||||
"debounce": "^1.2.1",
|
||||
"easygettext": "^2.17.0",
|
||||
"eslint": "7.24.0",
|
||||
@@ -51,13 +51,13 @@
|
||||
"fs-extra": "^9.0.1",
|
||||
"join-path": "^1.1.1",
|
||||
"ldapjs": "^2.2.3",
|
||||
"nightwatch": "^1.3.6",
|
||||
"nightwatch-api": "^3.0.1",
|
||||
"nightwatch": "1.5.1",
|
||||
"nightwatch-api": "3.0.2",
|
||||
"nightwatch-vrt": "^0.2.10",
|
||||
"node-fetch": "^2.6.1",
|
||||
"qs": "^6.10.1",
|
||||
"rimraf": "^3.0.0",
|
||||
"rollup": "^2.42.4",
|
||||
"rollup": "^2.55.1",
|
||||
"rollup-plugin-babel": "^4.3.3",
|
||||
"rollup-plugin-eslint": "^7.0.0",
|
||||
"rollup-plugin-filesize": "^9.1.0",
|
||||
@@ -76,7 +76,7 @@
|
||||
"not dead"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"owncloud-design-system": "^7.4.2"
|
||||
"owncloud-design-system": "^9.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"validator": "^13.1.1"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by fileb0x at "2021-06-21 23:19:53.756843 +0200 CEST m=+0.026966814" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(b80d52cc8a7a822a3b60b232225c03e4.8058aec596c5fb73022d09bb97af796e)
|
||||
// Code generated by fileb0x at "2021-09-14 19:17:48.311286859 +0100 WEST m=+0.005844360" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(c4a629d16d7bcba947309c058228ee35.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\xd4\xfd\xf9\x92\x1b\xb7\x92\x38\x0a\xff\xfd\xcd\x53\x90\x18\xa9\x0c\x98\xe8\x12\x29\x79\x2d\x0a\xe2\xc8\x52\xcb\x96\xad\xcd\x6a\xc9\xcb\x61\xf3\xf4\x41\x17\x41\x76\x49\x24\x40\xa3\xc0\x5e\x4c\xd6\xf7\x3e\xf7\x35\xee\x93\xdd\xc0\x56\x85\x5a\xd8\xd2\x99\x99\xdf\x8d\xb8\x11\x1d\xcd\x02\x90\x48\xec\x89\xcc\x44\x22\x31\x67\x8b\x8c\x33\x08\x17\x5b\x9e\xaa\x4c\x70\x88\x76\x60\x9b\xb3\x5e\xae\x64\x96\x2a\x30\xbe\xa4\xb2\xc7\x08\xd8\x72\x0b\x38\x07\x7d\xa2\x6e\x36\x4c\x2c\x7a\xcb\x95\x38\xa7\xab\x77\x17\x59\x3e\xa9\x3e\x93\x2e\xc8\xab\x8c\xcf\xc5\xd5\xc4\xfe\x74\x42\x58\x04\x0e\x4f\x27\x44\xce\x56\x8b\x89\xfe\x97\xec\x8a\xb1\xaf\x6c\x4f\x41\x86\x76\x92\xa9\xad\xe4\x3d\x16\x45\x2c\x3e\x3b\x63\xf9\x4b\x31\xdf\xae\x58\x14\xbd\x3e\xff\xc0\x52\x15\x6f\xa4\x50\x42\x63\x89\x2f\x68\xfe\xfa\x8a\xbf\x91\x62\xc3\xa4\xba\x89\x53\xba\x5a\x41\x86\xc1\x9c\x2d\xe8\x76\xa5\x00\x9a\xb0\xd8\x7d\x27\xac\x28\xcb\xe0\xba\x8c\x6c\x01\x43\xe4\xc8\x97\x69\xfa\x47\x11\x57\x94\xad\xb5\x2f\x00\xee\x0a\x0c\xaa\x3c\x00\xef\x2e\xe9\x6a\xcb\x92\xfe\xb0\x40\x63\x87\xc0\x65\xfc\xc8\x6e\x72\xc8\x50\xbc\x10\xf2\x98\xa6\x17\xc1\x70\x70\xb4\xd3\x45\x48\x5f\xc4\x92\xa9\xa0\x0d\x4f\x59\x9e\xca\x6c\xa3\x84\x84\x0c\x73\x34\xee\xae\x87\xc2\x1c\x4b\x9d\x73\x22\x93\x1d\xe3\xdb\x35\x93\xf4\x7c\xa5\x2b\x82\x97\x4c\x25\xc1\xd0\xfb\x66\x4d\xf9\xac\x28\x50\x81\x10\x56\x55\x47\x48\xdd\x11\xb6\xbd\x3b\x76\xbd\x11\x52\xe5\xc9\xae\x28\x7c\x53\x18\x54\x58\xc5\x2e\x01\x55\x9f\x85\x0c\x9a\x53\x62\x68\xc5\x60\x4e\x9a\x03\x86\x25\xe1\x8d\x41\xc3\x82\x00\x9f\x15\x10\x3f\x39\x4e\x6e\xd6\xe7\x62\x35\xb1\x3f\xc9\xae\xc0\x94\x88\x38\x53\x4c\x52\x25\xe4\x7e\x0f\xfe\xeb\xbf\x7c\x00\xe0\x8c\x88\x98\xe6\x37\x3c\x7d\x1e\xa6\xd7\x62\x00\x4e\x89\x88\x95\x38\x51\x32\xe3\xcb\x77\x74\x69\x40\x82\x30\xa8\x66\x60\x0e\x19\x56\x98\x97\x5d\xd7\x3d\x02\x1a\xc6\x8d\x3e\xc7\xf5\x11\x48\x05\x5f\x64\xcb\x6d\x19\xbe\x92\x99\x72\xdf\x05\xc2\x6c\xaa\x66\x85\x92\x37\xbb\xdc\xcc\x26\x80\x8a\x94\xaa\xf4\x42\xf7\x5a\x1e\xf4\x61\xad\x0a\x3a\x0f\xe1\x45\x35\x70\x5b\x0b\x80\xa5\xed\x6a\x41\x54\x14\x05\xdd\xdc\xcb\x78\xae\x28\x4f\x75\x4f\xde\x4c\x54\x72\x83\xa9\x1f\x8a\x54\x32\xaa\x18\x14\x15\x30\xc2\x19\xe1\xec\xaa\x77\x06\xe5\x7e\x3f\x9d\x95\x13\x99\xc6\x67\x19\xbf\x14\x1f\x59\xab\x56\x76\xfa\x2e\x3c\x60\x99\x2c\x30\x35\xeb\x4a\x12\x42\xe6\x48\x5d\x48\x71\xd5\xd3\x98\x8f\xa5\x14\x12\x82\x1f\x19\xb7\xa3\xd1\xcb\xf2\x1e\x5d\x49\x46\xe7\x37\x3d\xb9\xe5\x3c\xe3\x4b\x80\xc6\x2e\xe3\x85\x41\x01\x4c\x6e\x40\x08\x11\x0e\x11\xf5\xc5\x5d\x43\x54\x2c\x84\x84\x3c\x5e\x33\x75\x21\xe6\x44\x60\x1e\x53\xb9\x24\x74\x3c\xb6\x75\xcb\x08\x8f\xe7\x6c\xc5\x96\x54\x31\x8d\x36\xb3\xd1\x29\xf9\x08\x33\xbd\xa6\xb2\x05\x4c\x4d\x29\x29\x21\x64\x8d\x52\xc1\x55\xc6\xb7\xcc\x17\x90\x16\x85\xae\x01\x67\xd7\x4a\x57\xc0\x97\x83\x78\x9c\x33\xae\x08\x8f\xcf\xdc\x2f\x95\xcb\x31\x5b\xe5\xac\x57\xab\x70\x09\xef\xbb\x62\xe1\x5a\x20\xc9\x85\xad\xe9\x98\xc7\xf3\x2c\xdf\xe8\x61\x3f\xbe\x4e\xd9\xc6\x92\x05\x9d\x82\x0a\x8d\x0f\xd8\x8a\x84\xc8\xa2\x88\xc7\xf4\x5c\x6e\x37\x0a\xfa\x54\x8b\x0b\x8d\x25\x99\x1b\x9a\x95\x93\x95\x1b\xa0\xb1\xa9\xbe\x90\x6b\xba\xd2\x38\xf2\xd8\x0c\xb3\xad\x0e\x8f\xe7\x82\xb3\xc9\x45\xb2\xc1\xb9\xe9\xb5\x8e\x1e\x70\xf3\xda\xa4\x63\x0d\x9e\xd8\x5c\x45\x51\xb5\xd2\x22\x8d\x22\x68\x5b\xe5\x86\xc2\xa5\xbb\x01\xc9\x6d\x93\x8a\x42\x93\x32\x9c\x21\x4c\xab\x19\xec\xeb\xba\xd3\x4b\xc1\x15\xab\x31\x26\xbe\xe2\x98\xca\x65\xc2\x2c\x49\xd7\x80\x45\xb5\x4e\x6a\xe0\xae\x44\x03\x5d\x14\x05\x8b\xaf\x24\xdd\x90\xad\xe9\x92\x05\x01\xf9\x36\xdf\x30\x3e\x67\xf3\x13\x45\xa5\x02\x78\x13\x44\xfd\x99\xb1\xd5\x1c\xe0\x39\x01\xec\x9a\xa5\x5b\xa5\xe7\x21\xbe\x20\x20\x15\xeb\xcd\x8a\x29\x36\x07\x78\x4d\xc2\xcd\xe9\x06\xa2\x5d\xd5\x84\x65\x2d\x74\xa9\x43\xba\xd0\x73\x9d\xe5\x7c\x4a\x67\xa4\x4d\x86\xd5\x45\x96\x17\xa6\x6a\x57\x01\xf9\x7f\xe3\x97\xe2\xeb\x05\x7e\x4c\xae\xa2\xe8\x0a\x5e\xc1\x0f\x70\x3a\x43\x08\x8d\x1f\x47\xd1\xe3\x3e\x21\x3c\x8a\xa4\xed\x8c\xc7\x98\xa2\x28\x82\xe7\xe4\x31\x32\x98\x4e\xc8\x65\xb5\x98\xc9\x4d\xf0\x5d\x5f\xf2\xe7\xa8\x6a\xc8\xb1\xee\xc6\xa9\x9d\xe2\xd8\x77\xa1\x9f\x58\xb3\x8e\x4d\x4b\xa1\x9d\xa5\x8b\x35\xc2\x1f\xb4\xca\x13\x0b\xa8\x30\xd3\xdb\x8c\xfe\x2b\x8b\x7b\xad\xb3\xa2\x5d\xb0\x01\x0b\x4c\x71\x86\x53\xbb\x30\xcd\xcc\x9d\x8a\x19\x66\x98\xda\xc9\x6b\x6b\xd4\xaf\xe6\xae\x06\xdb\xda\x09\x85\x17\x64\x1b\x9b\x19\x5a\x12\xa0\x28\x02\xc2\xb4\xb5\xda\x40\x16\x65\x7f\x2d\xf4\x96\x4d\xaf\x68\xa6\xf9\x01\x15\x4b\x96\x8b\xd5\x25\x83\x8b\xd8\xc5\xa2\x58\x5d\x30\x5e\xdf\xd1\xb8\x5b\xfe\x98\x99\x5a\x16\x08\x37\x93\x5d\x9f\xf9\x74\x94\x04\x98\xbb\x30\xba\x2a\x13\x86\x33\xb8\x6d\x21\x74\x0d\xe9\xc0\x5b\xa4\xd0\x2d\x23\x43\xe8\xc7\x61\x5f\x87\x84\x59\x06\xdd\x4b\xab\x09\xa7\xc9\xaf\x0a\xc7\x11\x0b\x5d\x7d\x86\x25\xd6\x9f\xba\x00\x07\x29\x88\x98\x08\x5b\x71\x8a\x29\x4a\x28\x44\xc1\x86\xf3\xd1\x70\x23\x8e\xf2\xb3\x72\x27\x9e\xfa\x95\x3f\xf3\xe4\x5b\x19\x3a\x53\xd1\x5f\xc2\xb7\xab\x15\x3e\x40\x1d\x2b\x44\xb1\xad\x45\x14\x55\x64\xbd\x4e\xe7\x88\xc2\xb6\x0e\x5d\xb8\x3c\xf3\xb6\xLine truncated
|
||||
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xbd\xe9\x76\xdb\xb8\xd2\x28\xfa\xfb\x9e\xa7\x90\x70\x62\x36\xd0\x82\x69\xc9\x49\x67\x77\x53\x41\x74\x32\x38\x43\x77\xa6\x8e\x93\xde\x83\xac\xf6\x86\x25\x48\x62\x2c\x81\x6a\x10\xf2\x10\x89\x0f\x74\x5f\xe3\x3e\xd9\x5d\x18\x09\x52\x94\x93\xfd\x9d\xef\xdc\xb5\xee\x5a\x89\x45\x00\x85\x42\x61\x2a\x14\x0a\x85\xc2\x84\x4d\x53\xce\x20\x9c\xae\xf9\x58\xa6\x19\x87\x68\x03\xd6\x39\x6b\xe5\x52\xa4\x63\x09\xfa\x57\x54\xb4\x18\x01\x6b\x6e\x00\x27\xa0\x4d\xe4\xed\x8a\x65\xd3\xd6\x6c\x91\x5d\xd0\xc5\xa7\x79\x9a\x0f\xca\xcf\xa4\x09\xf2\x3a\xe5\x93\xec\x7a\x60\x7e\x1a\x21\x0c\x02\x8b\xa7\x11\x22\x67\x8b\xe9\x40\xfd\x49\x36\x45\xdf\x11\xdb\x92\x90\xa1\x8d\x60\x72\x2d\x78\x8b\x45\x11\x8b\xcf\xcf\x59\xfe\x36\x9b\xac\x17\x2c\x8a\xde\x5f\x7c\x61\x63\x19\xaf\x44\x26\x33\x85\x25\x9e\xd3\xfc\xfd\x35\xff\x20\xb2\x15\x13\xf2\x36\x1e\xd3\xc5\x02\x32\x0c\x26\x6c\x4a\xd7\x0b\x09\xd0\x80\xc5\xf6\x3b\x61\x85\x2f\x83\xab\x32\xd2\x29\x0c\x91\x23\x57\xa6\x6e\x1f\x49\x6c\x51\x86\x6a\x57\x00\xdc\x14\x18\x94\x79\x00\xde\x5c\xd1\xc5\x9a\x25\xed\x6e\x81\xfa\x16\x81\xcd\x78\xc9\x6e\x73\xc8\x50\x3c\xcd\xc4\x09\x1d\xcf\x83\xee\xe0\x68\xa3\x8a\x10\xae\x88\x19\x93\x41\x1d\x9e\xb3\x7c\x2c\xd2\x95\xcc\x04\x64\x98\xa3\x7e\x33\x1d\x12\x73\x2c\x54\xce\x81\x48\x36\x8c\xaf\x97\x4c\xd0\x8b\x85\x22\x04\xcf\x98\x4c\x82\xae\x77\xd5\x1a\xf2\x51\x51\xa0\x02\x21\x2c\xcb\x86\x10\xaa\x21\x4c\x7d\x37\xec\x66\x95\x09\x99\x27\x9b\xa2\x70\x55\x61\x50\x62\x19\xdb\x04\x54\x7e\x16\x22\xa8\x8e\xc7\xb0\x13\x83\x39\xa9\x77\x18\x16\x84\xd7\x3a\x0d\x67\x04\xb8\xac\x80\xb8\xc1\x71\x7a\xbb\xbc\xc8\x16\x03\xf3\x93\x6c\x0a\x4c\x49\x16\xa7\x92\x09\x2a\x33\xb1\xdd\x82\xff\xf5\xbf\x5c\x00\xe0\x94\x64\x31\xcd\x6f\xf9\xf8\x75\x98\x5e\x89\x01\x38\x27\x59\x2c\xb3\x53\x29\x52\x3e\xfb\x44\x67\x1a\x24\x08\x83\x72\x04\x8e\x21\xc3\x12\x73\xdf\x74\xcd\x3d\xa0\x60\x6c\xef\x73\x5c\xed\x81\x71\xc6\xa7\xe9\x6c\xed\xc3\xd7\x22\x95\xf6\xbb\x40\x98\x0d\xe5\xa8\x90\xe2\x76\x33\xd6\xa3\x09\xa0\x62\x4c\xe5\x78\xae\x5a\x6d\x1c\xb4\x61\x85\x04\x95\x87\xf0\xa2\xec\xb8\xb5\x01\xc0\xc2\x34\x75\x46\x64\x14\x05\xcd\xdc\x4a\x79\x2e\x29\x1f\xab\x96\xbc\x1d\xc8\xe4\x16\x53\xd7\x15\x63\xc1\xa8\x64\x30\x2b\x81\x11\x4e\x09\x67\xd7\xad\x67\x50\x6c\xb7\xc3\x91\x1f\xc8\x34\x3e\x4f\xf9\x55\x76\xc9\x76\xa8\x32\xc3\x77\xea\x00\x7d\x72\x86\xa9\x9e\x57\x82\x10\x32\x41\x72\x2e\xb2\xeb\x96\xc2\x7c\x22\x44\x26\x20\x78\xc9\xb8\xe9\x8d\x56\x9a\xb7\xe8\x42\x30\x3a\xb9\x6d\x89\x35\xe7\x29\x9f\x01\xd4\xb7\x19\xe7\x1a\x05\xd0\xb9\x01\x21\x24\xb3\x88\xa8\x2b\xee\x1c\xa2\x62\x9a\x09\xc8\xe3\x25\x93\xf3\x6c\x42\x32\xcc\x63\x2a\x66\x84\xf6\xfb\x86\xb6\x94\xf0\x78\xc2\x16\x6c\x46\x25\x53\x68\x53\x13\x9d\x93\x4b\x98\xaa\x39\x95\x4e\x61\xae\x4b\xc9\x09\x21\x4b\x34\xce\xb8\x4c\xf9\x9a\xb9\x02\xf2\xa2\x50\x14\x70\x76\x23\x15\x01\xae\x1c\xc4\xe3\x9c\x71\x49\x78\x7c\x6e\x7f\xa9\x98\xf5\xd9\x22\x67\xad\x0a\xc1\x1e\xde\x35\xc5\xd4\xd6\x40\x90\xb9\xa1\xb4\xcf\xe3\x49\x9a\xaf\x54\xb7\x9f\xdc\x8c\xd9\xca\xb0\x05\x95\x82\x0a\x85\x0f\x18\x42\x42\x64\x51\xc4\x63\x7a\x21\xd6\x2b\x09\x5d\xaa\xc1\x85\xfa\x82\x4c\x34\xcf\x1a\x93\x85\xed\xa0\xbe\x26\x3f\x13\x4b\xba\x50\x38\xc6\xb1\xee\x66\x43\x0e\x8f\x27\x19\x67\x83\x79\xb2\xc2\x63\xdd\x6a\x0d\x2d\x60\xc7\xb5\x4e\xc7\x0a\x3c\x31\xb9\x8a\xa2\xac\xa5\x41\x1a\x45\xd0\xd4\xca\x76\x85\x4d\xb7\x1d\x32\x36\x55\x2a\x0a\xc5\xca\x70\x8a\x30\x2d\x47\xb0\xa3\x75\xa3\xa6\x82\x2d\x56\x61\x4c\x1c\xe1\x98\x8a\x59\xc2\x0c\x4b\x57\x80\x45\x39\x4f\x2a\xe0\xb6\x44\x0d\x5d\x14\x05\x8b\xaf\x05\x5d\x91\xb5\x6e\x92\x29\x01\xf9\x3a\x5f\x31\x3e\x61\x93\x53\x49\x85\x04\x78\x15\x44\xfd\x33\x65\x8b\x09\xc0\x13\x02\xd8\x0d\x1b\xaf\xa5\x1a\x87\x78\x4e\xc0\x38\x5b\xae\x16\x4c\xb2\x09\xc0\x4b\x12\x2e\x4e\xb7\x10\x6d\xca\x2a\xcc\x2a\xa1\x2b\x15\x52\x85\x5e\xa8\x2c\x17\x43\x3a\x22\xbb\x6c\x58\xce\xd3\xbc\xd0\xa4\x5d\x07\xec\xff\x83\x9b\x8a\xef\xa7\xf8\x09\xb9\x8e\xa2\x6b\x78\x0d\x6f\xe0\x70\x84\x10\xea\x3f\x89\xa2\x27\x6d\x42\x78\x14\x09\xd3\x18\x4f\x30\x45\x51\x04\x2f\xc8\x13\xa4\x31\x9d\x90\xab\x72\x32\x93\xdb\xe0\xbb\x3a\xe5\x2f\x50\x59\x91\x53\xd5\x8c\x43\x33\xc4\xb1\x6b\x42\x37\xb0\x46\x0d\x8b\x96\x44\x1b\xc3\x17\x2b\x8c\x3f\xa8\x95\x63\x16\x50\x62\xa6\x96\x19\xf5\xcf\x17\xf7\x5e\x65\x45\x9b\x60\x01\xce\x30\xc5\x29\xce\xcd\xc4\xd4\x23\x77\x98\x8d\x30\xc3\xd4\x0c\x5e\x43\x51\xbb\x1c\xbb\x0a\x6c\x6d\x06\x14\x9e\x92\x75\xac\x47\xa8\x67\x40\x51\x04\x32\x5d\xd7\x72\x01\x99\xfa\xf6\x9a\xaa\x25\x9b\x5e\xd3\x54\xc9\x03\x32\x16\x2c\xcf\x16\x57\x0c\x4e\x63\x1b\x8b\x62\x39\x67\xbc\xba\xa2\x71\x3b\xfd\x31\xd3\x54\x16\x08\xd7\x93\x6d\x9b\xb9\x74\x94\x04\x98\x9b\x30\x5a\x92\x09\xc3\x29\x5c\xef\x20\xb4\x15\x69\xc0\x5b\xe4\xd0\x4e\x23\xcd\xe8\xfb\x61\x5b\x87\x8c\x59\x04\xcd\x4b\xcb\x01\xa7\xd8\xaf\x0c\xfb\x11\x67\x8a\x7c\x86\x05\x56\x9f\xaa\x00\x0b\x99\x91\x6c\x90\x19\xc2\x29\xa6\x28\xa1\x10\x05\x0b\xce\xa5\x96\x46\x2c\xe7\x67\x7e\x25\x1e\xba\x99\x3f\x72\xec\x5b\x6a\x3e\x53\xf2\x5f\xc2\xd7\x8b\x05\xde\xc3\x1d\x4b\x44\xb1\xa1\x22\x8a\x4a\xb6\x5e\xe5\x73\x44\x62\x43\x43\x13\x2e\x27\xLine truncated
|
||||
|
||||
func init() {
|
||||
err := CTX.Err()
|
||||
|
||||
@@ -40,7 +40,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
},
|
||||
Action: func(c *cli.Context) error {
|
||||
logger := NewLogger(cfg)
|
||||
err := tracing.Configure(cfg, logger)
|
||||
err := tracing.Configure(cfg)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -28,6 +28,10 @@ func RootWithConfig(cfg *config.Config) []cli.Flag {
|
||||
EnvVars: []string{"ACCOUNTS_LOG_COLOR", "OCIS_LOG_COLOR"},
|
||||
Destination: &cfg.Log.Color,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "extensions",
|
||||
Usage: "Run specific extensions during supervised mode",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,28 +47,28 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
&cli.BoolFlag{
|
||||
Name: "tracing-enabled",
|
||||
Usage: "Enable sending traces",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENABLED"},
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENABLED", "OCIS_TRACING_ENABLED"},
|
||||
Destination: &cfg.Tracing.Enabled,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-type",
|
||||
Value: flags.OverrideDefaultString(cfg.Tracing.Type, "jaeger"),
|
||||
Usage: "Tracing backend type",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_TYPE"},
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_TYPE", "OCIS_TRACING_TYPE"},
|
||||
Destination: &cfg.Tracing.Type,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-endpoint",
|
||||
Value: flags.OverrideDefaultString(cfg.Tracing.Endpoint, ""),
|
||||
Usage: "Endpoint for the agent",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENDPOINT"},
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_ENDPOINT", "OCIS_TRACING_ENDPOINT"},
|
||||
Destination: &cfg.Tracing.Endpoint,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "tracing-collector",
|
||||
Value: flags.OverrideDefaultString(cfg.Tracing.Collector, ""),
|
||||
Usage: "Endpoint for the collector",
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_COLLECTOR"},
|
||||
EnvVars: []string{"ACCOUNTS_TRACING_COLLECTOR", "OCIS_TRACING_COLLECTOR"},
|
||||
Destination: &cfg.Tracing.Collector,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
@@ -235,6 +239,10 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
EnvVars: []string{"ACCOUNTS_GID_INDEX_UPPER_BOUND"},
|
||||
Destination: &cfg.Index.GID.Upper,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "extensions",
|
||||
Usage: "Run specific extensions during supervised mode",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/render"
|
||||
"github.com/golang/protobuf/jsonpb"
|
||||
|
||||
|
||||
@@ -30,6 +30,5 @@ func Server(opts ...Option) grpc.Service {
|
||||
options.Logger.Fatal().Err(err).Msg("could not register index handler")
|
||||
}
|
||||
|
||||
service.Init()
|
||||
return service
|
||||
}
|
||||
@@ -2,7 +2,8 @@ package http
|
||||
|
||||
import (
|
||||
"github.com/asim/go-micro/v3"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/v5"
|
||||
chimiddleware "github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/owncloud/ocis/accounts/pkg/assets"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/accounts/pkg/version"
|
||||
@@ -28,8 +29,9 @@ func Server(opts ...Option) http.Service {
|
||||
|
||||
mux := chi.NewMux()
|
||||
|
||||
mux.Use(middleware.RealIP)
|
||||
mux.Use(middleware.RequestID)
|
||||
mux.Use(chimiddleware.RealIP)
|
||||
mux.Use(chimiddleware.RequestID)
|
||||
mux.Use(middleware.TraceContext)
|
||||
mux.Use(middleware.NoCache)
|
||||
mux.Use(middleware.Cors)
|
||||
mux.Use(middleware.Secure)
|
||||
@@ -66,6 +68,5 @@ func Server(opts ...Option) http.Service {
|
||||
options.Logger.Fatal().Err(err).Msg("failed to register the handler")
|
||||
}
|
||||
|
||||
service.Init()
|
||||
return service
|
||||
}
|
||||
@@ -12,10 +12,9 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
@@ -24,11 +23,15 @@ import (
|
||||
fieldmask_utils "github.com/mennanov/fieldmask-utils"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/accounts/pkg/storage"
|
||||
accTracing "github.com/owncloud/ocis/accounts/pkg/tracing"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||
"github.com/owncloud/ocis/ocis-pkg/roles"
|
||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||
settings_svc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
||||
"github.com/rs/zerolog"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"google.golang.org/genproto/protobuf/field_mask"
|
||||
p "google.golang.org/protobuf/proto"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
@@ -124,6 +127,15 @@ func (s Service) getInMemoryServiceUser() proto.Account {
|
||||
// ListAccounts implements the AccountsServiceHandler interface
|
||||
// the query contains account properties
|
||||
func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest, out *proto.ListAccountsResponse) (err error) {
|
||||
var span trace.Span
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.ListAccounts")
|
||||
defer span.End()
|
||||
|
||||
span.SetAttributes(
|
||||
attribute.KeyValue{Key: "page_size", Value: attribute.Int64Value(int64(in.PageSize))},
|
||||
attribute.KeyValue{Key: "page_token", Value: attribute.StringValue(in.PageToken)},
|
||||
)
|
||||
|
||||
hasSelf := s.hasSelfManagementPermissions(ctx)
|
||||
hasManagement := s.hasAccountManagementPermissions(ctx)
|
||||
if !hasSelf && !hasManagement {
|
||||
@@ -269,6 +281,15 @@ func (s Service) findAccountsByQuery(ctx context.Context, query string) ([]strin
|
||||
|
||||
// GetAccount implements the AccountsServiceHandler interface
|
||||
func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, out *proto.Account) (err error) {
|
||||
var span trace.Span
|
||||
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.GetAccount")
|
||||
defer span.End()
|
||||
|
||||
span.SetAttributes(
|
||||
attribute.KeyValue{Key: "account_id", Value: attribute.StringValue(in.Id)},
|
||||
)
|
||||
|
||||
hasSelf := s.hasSelfManagementPermissions(ctx)
|
||||
hasManagement := s.hasAccountManagementPermissions(ctx)
|
||||
if !hasSelf && !hasManagement {
|
||||
@@ -317,6 +338,15 @@ func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, ou
|
||||
|
||||
// CreateAccount implements the AccountsServiceHandler interface
|
||||
func (s Service) CreateAccount(ctx context.Context, in *proto.CreateAccountRequest, out *proto.Account) (err error) {
|
||||
var span trace.Span
|
||||
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.CreateAccount")
|
||||
defer span.End()
|
||||
|
||||
span.SetAttributes(
|
||||
attribute.KeyValue{Key: "account", Value: attribute.StringValue(in.Account.String())},
|
||||
)
|
||||
|
||||
if !s.hasAccountManagementPermissions(ctx) {
|
||||
return merrors.Forbidden(s.id, "no permission for CreateAccount")
|
||||
}
|
||||
@@ -449,6 +479,15 @@ func (s Service) rollbackCreateAccount(ctx context.Context, acc *proto.Account)
|
||||
// read only fields are ignored
|
||||
// TODO how can we unset specific values? using the update mask
|
||||
func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountRequest, out *proto.Account) (err error) {
|
||||
var span trace.Span
|
||||
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.UpdateAccount")
|
||||
defer span.End()
|
||||
|
||||
span.SetAttributes(
|
||||
attribute.KeyValue{Key: "account", Value: attribute.StringValue(in.Account.String())},
|
||||
)
|
||||
|
||||
hasSelf := s.hasSelfManagementPermissions(ctx)
|
||||
hasManagement := s.hasAccountManagementPermissions(ctx)
|
||||
if !hasSelf && !hasManagement {
|
||||
@@ -615,6 +654,11 @@ var updatableAccountPaths = map[string]struct{}{
|
||||
|
||||
// DeleteAccount implements the AccountsServiceHandler interface
|
||||
func (s Service) DeleteAccount(ctx context.Context, in *proto.DeleteAccountRequest, out *empty.Empty) (err error) {
|
||||
var span trace.Span
|
||||
|
||||
ctx, span = accTracing.TraceProvider.Tracer("accounts").Start(ctx, "Accounts.DeleteAccount")
|
||||
defer span.End()
|
||||
|
||||
if !s.hasAccountManagementPermissions(ctx) {
|
||||
return merrors.Forbidden(s.id, "no permission for DeleteAccount")
|
||||
}
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
v0proto "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"go.opencensus.io/trace"
|
||||
)
|
||||
|
||||
// NewTracing returns a service that instruments traces.
|
||||
func NewTracing(next v0proto.AccountsServiceHandler) v0proto.AccountsServiceHandler {
|
||||
return tracing{
|
||||
next: next,
|
||||
}
|
||||
}
|
||||
|
||||
type tracing struct {
|
||||
next v0proto.AccountsServiceHandler
|
||||
}
|
||||
|
||||
func (t tracing) ListAccounts(ctx context.Context, req *v0proto.ListAccountsRequest, rsp *v0proto.ListAccountsResponse) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.ListAccounts")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.Int64Attribute("page_size", int64(req.PageSize)),
|
||||
trace.StringAttribute("page_token", req.PageToken),
|
||||
trace.StringAttribute("field_mask", req.FieldMask.String()),
|
||||
}, "Execute Accounts.ListAccount handler")
|
||||
|
||||
return t.next.ListAccounts(ctx, req, rsp)
|
||||
}
|
||||
|
||||
func (t tracing) GetAccount(ctx context.Context, req *v0proto.GetAccountRequest, acc *v0proto.Account) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.GetAccount")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.StringAttribute("id", req.Id),
|
||||
}, "Execute Accounts.GetAccount handler")
|
||||
|
||||
return t.next.GetAccount(ctx, req, acc)
|
||||
}
|
||||
|
||||
func (t tracing) CreateAccount(ctx context.Context, req *v0proto.CreateAccountRequest, acc *v0proto.Account) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.CreateAccount")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.StringAttribute("account", req.Account.String()),
|
||||
}, "Execute Accounts.CreateAccount handler")
|
||||
|
||||
return t.next.CreateAccount(ctx, req, acc)
|
||||
}
|
||||
|
||||
func (t tracing) UpdateAccount(ctx context.Context, req *v0proto.UpdateAccountRequest, acc *v0proto.Account) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.UpdateAccount")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.StringAttribute("account", req.Account.String()),
|
||||
}, "Execute Accounts.UpdateAccount handler")
|
||||
|
||||
return t.next.UpdateAccount(ctx, req, acc)
|
||||
}
|
||||
|
||||
func (t tracing) DeleteAccount(ctx context.Context, req *v0proto.DeleteAccountRequest, e *empty.Empty) error {
|
||||
ctx, span := trace.StartSpan(ctx, "Accounts.DeleteAccount")
|
||||
defer span.End()
|
||||
|
||||
span.Annotate([]trace.Attribute{
|
||||
trace.StringAttribute("id", req.Id),
|
||||
}, "Execute Accounts.DeleteAccout handler")
|
||||
return t.next.DeleteAccount(ctx, req, e)
|
||||
}
|
||||
@@ -16,6 +16,7 @@ import (
|
||||
user "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
||||
v1beta11 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
|
||||
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
|
||||
revactx "github.com/cs3org/reva/pkg/ctx"
|
||||
"github.com/cs3org/reva/pkg/rgrpc/todo/pool"
|
||||
"github.com/cs3org/reva/pkg/token"
|
||||
"github.com/cs3org/reva/pkg/token/manager/jwt"
|
||||
@@ -67,7 +68,7 @@ func (r CS3Repo) WriteAccount(ctx context.Context, a *proto.Account) (err error)
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
if err := r.makeRootDirIfNotExist(ctx, accountsFolder); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -104,7 +105,7 @@ func (r CS3Repo) LoadAccounts(ctx context.Context, a *[]*proto.Account) (err err
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
res, err := r.storageProvider.ListContainer(ctx, &provider.ListContainerRequest{
|
||||
Ref: &provider.Reference{
|
||||
Path: path.Join("/meta", accountsFolder),
|
||||
@@ -154,7 +155,7 @@ func (r CS3Repo) DeleteAccount(ctx context.Context, id string) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
|
||||
resp, err := r.storageProvider.Delete(ctx, &provider.DeleteRequest{
|
||||
Ref: &provider.Reference{
|
||||
@@ -181,7 +182,7 @@ func (r CS3Repo) WriteGroup(ctx context.Context, g *proto.Group) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
if err := r.makeRootDirIfNotExist(ctx, groupsFolder); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -218,7 +219,7 @@ func (r CS3Repo) LoadGroups(ctx context.Context, g *[]*proto.Group) (err error)
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
res, err := r.storageProvider.ListContainer(ctx, &provider.ListContainerRequest{
|
||||
Ref: &provider.Reference{
|
||||
Path: path.Join("/meta", groupsFolder),
|
||||
@@ -268,7 +269,7 @@ func (r CS3Repo) DeleteGroup(ctx context.Context, id string) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, token.TokenHeader, t)
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, revactx.TokenHeader, t)
|
||||
|
||||
resp, err := r.storageProvider.Delete(ctx, &provider.DeleteRequest{
|
||||
Ref: &provider.Reference{
|
||||
@@ -302,7 +303,7 @@ func AuthenticateCS3(ctx context.Context, su config.ServiceUser, tm token.Manage
|
||||
UidNumber: su.UID,
|
||||
GidNumber: su.GID,
|
||||
}
|
||||
s, err := scope.GetOwnerScope()
|
||||
s, err := scope.AddOwnerScope(nil)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
@@ -371,7 +372,7 @@ func (d dataProviderClient) put(url string, body io.Reader, token string) (*http
|
||||
return nil, err
|
||||
}
|
||||
|
||||
req.Header.Add("x-access-token", token)
|
||||
req.Header.Add(revactx.TokenHeader, token)
|
||||
return d.client.Do(req)
|
||||
}
|
||||
|
||||
@@ -381,6 +382,6 @@ func (d dataProviderClient) get(url string, token string) (*http.Response, error
|
||||
return nil, err
|
||||
}
|
||||
|
||||
req.Header.Add("x-access-token", token)
|
||||
req.Header.Add(revactx.TokenHeader, token)
|
||||
return d.client.Do(req)
|
||||
}
|
||||
@@ -1,90 +1,23 @@
|
||||
package tracing
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"contrib.go.opencensus.io/exporter/jaeger"
|
||||
"contrib.go.opencensus.io/exporter/ocagent"
|
||||
"contrib.go.opencensus.io/exporter/zipkin"
|
||||
openzipkin "github.com/openzipkin/zipkin-go"
|
||||
zipkinhttp "github.com/openzipkin/zipkin-go/reporter/http"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
"go.opencensus.io/stats/view"
|
||||
"go.opencensus.io/trace"
|
||||
pkgtrace "github.com/owncloud/ocis/ocis-pkg/tracing"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
|
||||
func Configure(cfg *config.Config, logger log.Logger) error {
|
||||
var (
|
||||
// TraceProvider is the global trace provider for the proxy service.
|
||||
TraceProvider = trace.NewNoopTracerProvider()
|
||||
)
|
||||
|
||||
func Configure(cfg *config.Config) error {
|
||||
var err error
|
||||
if cfg.Tracing.Enabled {
|
||||
switch t := cfg.Tracing.Type; t {
|
||||
case "agent":
|
||||
exporter, err := ocagent.NewExporter(
|
||||
ocagent.WithReconnectionPeriod(5*time.Second),
|
||||
ocagent.WithAddress(cfg.Tracing.Endpoint),
|
||||
ocagent.WithServiceName(cfg.Tracing.Service),
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error().
|
||||
Err(err).
|
||||
Str("endpoint", cfg.Tracing.Endpoint).
|
||||
Str("collector", cfg.Tracing.Collector).
|
||||
Msg("Failed to create agent tracing")
|
||||
return err
|
||||
}
|
||||
trace.RegisterExporter(exporter)
|
||||
view.RegisterExporter(exporter)
|
||||
case "jaeger":
|
||||
exporter, err := jaeger.NewExporter(
|
||||
jaeger.Options{
|
||||
AgentEndpoint: cfg.Tracing.Endpoint,
|
||||
CollectorEndpoint: cfg.Tracing.Collector,
|
||||
Process: jaeger.Process{
|
||||
ServiceName: cfg.Tracing.Service,
|
||||
},
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error().
|
||||
Err(err).
|
||||
Str("endpoint", cfg.Tracing.Endpoint).
|
||||
Str("collector", cfg.Tracing.Collector).
|
||||
Msg("Failed to create jaeger tracing")
|
||||
return err
|
||||
}
|
||||
trace.RegisterExporter(exporter)
|
||||
case "zipkin":
|
||||
endpoint, err := openzipkin.NewEndpoint(
|
||||
cfg.Tracing.Service,
|
||||
cfg.Tracing.Endpoint,
|
||||
)
|
||||
if err != nil {
|
||||
logger.Error().
|
||||
Err(err).
|
||||
Str("endpoint", cfg.Tracing.Endpoint).
|
||||
Str("collector", cfg.Tracing.Collector).
|
||||
Msg("Failed to create zipkin tracing")
|
||||
return err
|
||||
}
|
||||
exporter := zipkin.NewExporter(
|
||||
zipkinhttp.NewReporter(
|
||||
cfg.Tracing.Collector,
|
||||
),
|
||||
endpoint,
|
||||
)
|
||||
trace.RegisterExporter(exporter)
|
||||
default:
|
||||
logger.Warn().
|
||||
Str("type", t).
|
||||
Msg("Unknown tracing backend")
|
||||
if TraceProvider, err = pkgtrace.GetTraceProvider(cfg.Tracing.Endpoint, cfg.Tracing.Collector, "accounts", cfg.Tracing.Type); err != nil {
|
||||
return err
|
||||
}
|
||||
trace.ApplyConfig(
|
||||
trace.Config{
|
||||
DefaultSampler: trace.AlwaysSample(),
|
||||
},
|
||||
)
|
||||
} else {
|
||||
logger.Debug().
|
||||
Msg("Tracing is not enabled")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
const assert = require('assert')
|
||||
const { client } = require('nightwatch-api')
|
||||
const { Given, When, Then } = require('cucumber')
|
||||
const { Given, When, Then } = require('@cucumber/cucumber')
|
||||
|
||||
When('the user browses to the accounts page', function () {
|
||||
return client.page.accountsPage().navigateAndWaitUntilMounted()
|
||||
|
||||
+541
-178
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,5 @@
|
||||
Enhancement: Proxy: Add claims policy selector
|
||||
|
||||
Using the proxy config file, it is now possible to let let the IdP determine the routing policy by sending an `ocis.routing.policy` claim. Its value will be used to determine the set of routes for the logged in user.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2248
|
||||
@@ -0,0 +1,7 @@
|
||||
Bugfix: Improve IDP Login Accessibility
|
||||
|
||||
We have addressed the feedback from the `a11y` audit and improved
|
||||
the IDP login screen accordingly.
|
||||
|
||||
https://github.com/owncloud/web/issues/5376
|
||||
https://github.com/owncloud/web/issues/5377
|
||||
@@ -0,0 +1,3 @@
|
||||
Enhancement: Add ocs cache warmup config and warn on protobuf ns conflicts
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2328
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: forward basic auth to OpenID connect token authentication endpoint
|
||||
|
||||
When using `PROXY_ENABLE_BASIC_AUTH=true` we now forward request to the idp instead of trying to authenticate the request ourself.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/2095
|
||||
https://github.com/owncloud/ocis/issues/2094
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: log all requests in the proxy access log
|
||||
|
||||
We now use a dedicated middleware to log all requests, regardless of routing selector outcome.
|
||||
While the log now includes the remote address, the selected routing policy is only logged when log level
|
||||
is set to debug because the request context cannot be changed in the `directorSelectionDirector`, as per
|
||||
the `ReverseProxy.Director` documentation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2301
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Refactor graph API
|
||||
|
||||
We refactored the `/graph/v1.0/` endpoint which now relies on the internal acces token fer authentication, getting rid of any LDAP or OIDC code to authenticate requests. This allows using the graph api when using basic auth or any other auth mechanism provided by the CS3 auth providers / reva gateway / ocis proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2277
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: update glauth to 20210729125545-b9aecdfcac31
|
||||
|
||||
* Fixes the backend config not being passed correctly in ocis
|
||||
* Fixes a mutex being copied, leading to concurrent writes
|
||||
* Fixes UTF8 chars in filters
|
||||
* Fixes case insensitive strings
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2336
|
||||
https://github.com/glauth/glauth/pull/198
|
||||
https://github.com/glauth/glauth/pull/194
|
||||
@@ -0,0 +1,50 @@
|
||||
Enhancement: update REVA
|
||||
|
||||
Update REVA from v1.10.1-0.20210730095301-fcb7a30a44a6 to v1.11.1-0.20210809134415-3fe79c870fb5
|
||||
* Fix cs3org/reva#1978: Fix owner type is optional
|
||||
* Fix cs3org/reva#1965: fix value of file_target in shares
|
||||
* Fix cs3org/reva#1960: fix updating shares in the memory share manager
|
||||
* Fix cs3org/reva#1956: fix trashbin listing with depth 0
|
||||
* Fix cs3org/reva#1957: fix etag propagation on deletes
|
||||
* Enh cs3org/reva#1861: [WIP] Runtime plugins
|
||||
* Fix cs3org/reva#1954: fix response format of the sharees API
|
||||
* Fix cs3org/reva#1819: Remove notifications key from ocs response
|
||||
* Enh cs3org/reva#1946: Add a share manager that connects to oc10 databases
|
||||
* Fix cs3org/reva#1899: Fix chunked uploads for new versions
|
||||
* Fix cs3org/reva#1906: Fix copy over existing resource
|
||||
* Fix cs3org/reva#1891: Delete Shared Resources as Receiver
|
||||
* Fix cs3org/reva#1907: Error when creating folder with existing name
|
||||
* Fix cs3org/reva#1937: Do not overwrite more specific matches when finding storage providers
|
||||
* Fix cs3org/reva#1939: Fix the share jail permissions in the decomposedfs
|
||||
* Fix cs3org/reva#1932: Numerous fixes to the owncloudsql storage driver
|
||||
* Fix cs3org/reva#1912: Fix response when listing versions of another user
|
||||
* Fix cs3org/reva#1910: Get user groups recursively in the cbox rest user driver
|
||||
* Fix cs3org/reva#1904: Set Content-Length to 0 when swallowing body in the datagateway
|
||||
* Fix cs3org/reva#1911: Fix version order in propfind responses
|
||||
* Fix cs3org/reva#1926: Trash Bin in oCIS Storage Operations
|
||||
* Fix cs3org/reva#1901: Fix response code when folder doesnt exist on upload
|
||||
* Enh cs3org/reva#1785: Extend app registry with AddProvider method and mimetype filters
|
||||
* Enh cs3org/reva#1938: Add methods to get and put context values
|
||||
* Enh cs3org/reva#1798: Add support for a deny-all permission on references
|
||||
* Enh cs3org/reva#1916: Generate updated protobuf bindings for EOS GRPC
|
||||
* Enh cs3org/reva#1887: Add "a" and "l" filter for grappa queries
|
||||
* Enh cs3org/reva#1919: Run gofmt before building
|
||||
* Enh cs3org/reva#1927: Implement RollbackToVersion for eosgrpc (needs a newer EOS MGM)
|
||||
* Enh cs3org/reva#1944: Implement listing supported mime types in app registry
|
||||
* Enh cs3org/reva#1870: Be defensive about wrongly quoted etags
|
||||
* Enh cs3org/reva#1940: Reduce memory usage when uploading with S3ng storage
|
||||
* Enh cs3org/reva#1888: Refactoring of the webdav code
|
||||
* Enh cs3org/reva#1900: Check for illegal names while uploading or moving files
|
||||
* Enh cs3org/reva#1925: Refactor listing and statting across providers for virtual views
|
||||
* Fix cs3org/reva#1883: Pass directories with trailing slashes to eosclient.GenerateToken
|
||||
* Fix cs3org/reva#1878: Improve the webdav error handling in the trashbin
|
||||
* Fix cs3org/reva#1884: Do not send body on failed range request
|
||||
* Enh cs3org/reva#1744: Add support for lightweight user types
|
||||
* Fix cs3org/reva#1904: Set Content-Length to 0 when swallowing body in the datagateway
|
||||
* Fix cs3org/reva#1899: Bugfix: Fix chunked uploads for new versions
|
||||
* Enh cs3org/reva#1888: Refactoring of the webdav code
|
||||
* Enh cs3org/reva#1887: Add "a" and "l" filter for grappa queries
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2355
|
||||
https://github.com/owncloud/ocis/pull/2295
|
||||
https://github.com/owncloud/ocis/pull/2314
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update ownCloud Web to v4.0.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.0.0. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2353
|
||||
https://github.com/owncloud/web/releases/tag/v4.0.0
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: use only one go.mod file for project dependencies
|
||||
|
||||
We now use one single go.mod file at the root of the repository
|
||||
rather than one per core extension.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2344
|
||||
@@ -0,0 +1,3 @@
|
||||
Bugfix: Specify primary user type for all accounts
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2364
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Use non root user for the owncloud/ocis docker image
|
||||
|
||||
The owncloud/ocis docker image now uses a non root user and enables you to set a different user with the docker `--user` parameter. The default user has the UID 1000 is part of a group with the GID 1000.
|
||||
|
||||
This is a breaking change for existing docker deployments. The permission on the files and folders in persistent volumes need to be changed to the UID and GID used for oCIS (default 1000:1000 if not changed by the user).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2380
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Replace unmaintained jwt library
|
||||
|
||||
The old library [github.com/dgrijalva/jwt-go](https://github.com/dgrijalva/jwt-go) is unmaintained and was replaced by the community maintained fork [github.com/golang-jwt/jwt](https://github.com/golang-jwt/jwt).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2386
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Update bleve to version 2.1.0
|
||||
|
||||
Updated bleve to the current version.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2391
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Update github.com/coreos/go-oidc to v3.0.0
|
||||
|
||||
Updated the github.com/coreos/go-oidc library to the version 3.0.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2393
|
||||
@@ -0,0 +1,22 @@
|
||||
Enhancement: Update reva to v1.12
|
||||
|
||||
* Enhancement cs3org/reva#1803: Introduce new webdav spaces endpoint
|
||||
* Bugfix cs3org/reva#1819: Disable notifications
|
||||
* Enhancement cs3org/reva#1861: Add support for runtime plugins
|
||||
* Bugfix cs3org/reva#1913: Logic to restore files to readonly nodes
|
||||
* Enhancement cs3org/reva#1946: Add share manager that connects to oc10 databases
|
||||
* Bugfix cs3org/reva#1954: Fix response format of the sharees API
|
||||
* Bugfix cs3org/reva#1956: Fix trashbin listing with depth 0
|
||||
* Bugfix cs3org/reva#1957: Fix etag propagation on deletes
|
||||
* Bugfix cs3org/reva#1960: Return the updated share after updating
|
||||
* Bugfix cs3org/reva#1965 cs3org/reva#1967: Fix the file target of user and group shares
|
||||
* Bugfix cs3org/reva#1980: Propagate the etag after restoring a file version
|
||||
* Enhancement cs3org/reva#1984: Replace OpenCensus with OpenTelemetry
|
||||
* Bugfix cs3org/reva#1985: Add quota stubs
|
||||
* Bugfix cs3org/reva#1987: Fix windows build
|
||||
* Bugfix cs3org/reva#1990: Increase oc10 compatibility of owncloudsql
|
||||
* Bugfix cs3org/reva#1992: Check if symlink exists instead of spamming the console
|
||||
* Bugfix cs3org/reva#1993: fix owncloudsql GetMD
|
||||
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2423
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update ownCloud Web to v4.1.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.1.0. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2426
|
||||
https://github.com/owncloud/web/releases/tag/v4.1.0
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix naming of the user- and groupprovider services
|
||||
|
||||
The services are called "storage-userprovider" and "storage-groupprovider". The 'ocis help' output was misleading.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2388
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Add app provider and app provider registry
|
||||
|
||||
We added the app provider and app provider registry. Now the CS3org WOPI server can be registered and OpenInApp requests can be done.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2204
|
||||
https://github.com/cs3org/reva/pull/1785
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: add the create space permission
|
||||
|
||||
In preparation for the upcoming spaces features a `Create Space` permission was added.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2461
|
||||
@@ -0,0 +1,9 @@
|
||||
Change: Remove OnlyOffice extension
|
||||
|
||||
Tags: OnlyOffice
|
||||
|
||||
We've removed the OnlyOffice extension in oCIS.
|
||||
OnlyOffice has their own web extension for OC10 backend now with [a dedicated guide](https://owncloud.dev/clients/web/deployments/oc10-app/#onlyoffice).
|
||||
In oCIS, we will follow up with a guide on how to start a WOPI server providing OnlyOffice soon.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2433
|
||||
@@ -0,0 +1,9 @@
|
||||
Change: Remove OnlyOffice extension
|
||||
|
||||
Tags: OnlyOffice
|
||||
|
||||
We've removed the OnlyOffice extension in oCIS.
|
||||
OnlyOffice has their own web extension for OC10 backend now with [a dedicated guide](https://owncloud.dev/clients/web/deployments/oc10-app/#onlyoffice).
|
||||
In oCIS, we will follow up with a guide on how to start a WOPI server providing OnlyOffice soon.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2433
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Remove non working proxy route and fix cs3 users example
|
||||
|
||||
We removed a non working route from the proxy default configuration and fixed the cs3 users deployment example since it still used the accounts service. It now only uses the configured LDAP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2474
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Set English as default language in the dropdown in the settings page
|
||||
|
||||
The language dropdown didn't have a default language selected, and it was showing an empty value. Now it shows English instead.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2465
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: add set space quota permission
|
||||
|
||||
In preparation for the upcoming spaces features a `SetSpaceQuota` permission was added.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2459
|
||||
@@ -0,0 +1,10 @@
|
||||
Enhancement: Create a Space using the Graph API
|
||||
|
||||
Spaces can now be created on `POST /drives/{drive-name}`. Only users with the `create-space` permissions can perform this operation.
|
||||
|
||||
Allowed body form values are:
|
||||
|
||||
- `quota` (bytes) maximum amount of bytes stored in the space.
|
||||
- `maxQuotaFiles` (integer) maximum amount of files supported by the space.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2471
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Update go-chi/chi to version 5.0.3
|
||||
|
||||
Updated go-chi/chi to the lastest release
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2429
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Upgrade go micro to v3.6.0
|
||||
|
||||
Go micro and all go micro plugins are now on v3.6.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2451
|
||||
@@ -0,0 +1,16 @@
|
||||
Enhancement: Update reva to v1.13.0
|
||||
|
||||
This update includes:
|
||||
|
||||
* Bugfix [cs3org/reva#2054](https://github.com/cs3org/reva/pull/2054): Fix the response after deleting a share
|
||||
* Bugfix [cs3org/reva#2026](https://github.com/cs3org/reva/pull/2026): Fix moving of a shared file
|
||||
* Bugfix [cs3org/reva#1605](https://github.com/cs3org/reva/pull/1605): Allow to expose full paths in OCS API
|
||||
* Bugfix [cs3org/reva#2033](https://github.com/cs3org/reva/pull/2033): Fix the storage id of shares
|
||||
* Bugfix [cs3org/reva#1991](https://github.com/cs3org/reva/pull/1991): Remove share references when declining shares
|
||||
* Enhancement [cs3org/reva#1994](https://github.com/cs3org/reva/pull/1994): Add owncloudsql driver for the userprovider
|
||||
* Enhancement [cs3org/reva#2065](https://github.com/cs3org/reva/pull/2065): New sharing role Manager
|
||||
* Enhancement [cs3org/reva#2015](https://github.com/cs3org/reva/pull/2015): Add spaces to the list of capabilities
|
||||
* Enhancement [cs3org/reva#2041](https://github.com/cs3org/reva/pull/2041): Create operations for Spaces
|
||||
* Enhancement [cs3org/reva#2029](https://github.com/cs3org/reva/pull/2029): Tracing agent configuration
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2477
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update ownCloud Web to v4.2.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v4.2.0. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2501
|
||||
https://github.com/owncloud/web/releases/tag/v4.2.0
|
||||
@@ -0,0 +1,7 @@
|
||||
Bugfix: Panic when service fails to start
|
||||
|
||||
Tags: runtime
|
||||
|
||||
When attempting to run a service through the runtime that is currently running and fails to start, a race condition still redirect os Interrupt signals to a closed channel.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2252
|
||||
@@ -0,0 +1,9 @@
|
||||
Enhancement: Runtime support for cherry picking extensions
|
||||
|
||||
Support for running certain extensions supervised via cli flags. Example usage:
|
||||
|
||||
```
|
||||
> ocis server --extensions="proxy, idp, storage-metadata, accounts"
|
||||
```
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2229
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Add readonly mode for storagehome and storageusers
|
||||
|
||||
To enable the readonly mode use `STORAGE_HOME_READ_ONLY=true` and `STORAGE_USERS_READ_ONLY=true`. Alternative: use `OCIS_STORAGE_READ_ONLY=true`
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2230
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Remove unnecessary Service.Init()
|
||||
|
||||
As it turns out oCIS already calls this method. Invoking it twice would end in accidentally resetting values.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1705
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Dont use port 80 as debug for GroupsProvider
|
||||
|
||||
A copy/paste error where the configuration for the groupsprovider's debug address was not present leaves go-micro to start the debug service in port 80 by default.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2271
|
||||
@@ -0,0 +1,3 @@
|
||||
Enhancement: update REVA to v1.9.1-0.20210628143859-9d29c36c0c3f
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2227
|
||||
@@ -0,0 +1,24 @@
|
||||
Enhancement: update REVA to v1.9.1
|
||||
|
||||
* Fix cs3org/reva#1843: Correct Dockerfile path for the reva CLI and alpine3.13 as builder
|
||||
* Fix cs3org/reva#1835: Cleanup owncloudsql driver
|
||||
* Fix cs3org/reva#1868: Minor fixes to the grpc/http plugin: checksum, url escaping
|
||||
* Fix cs3org/reva#1885: Fix template in eoshomewrapper to use context user rather than resource
|
||||
* Fix cs3org/reva#1833: Properly handle name collisions for deletes in the owncloud driver
|
||||
* Fix cs3org/reva#1874: Use the original file mtime during upload
|
||||
* Fix cs3org/reva#1854: Add the uid/gid to the url for eos
|
||||
* Fix cs3org/reva#1848: Fill in missing gid/uid number with nobody
|
||||
* Fix cs3org/reva#1831: Make the ocm-provider endpoint in the ocmd service unprotected
|
||||
* Fix cs3org/reva#1808: Use empty array in OCS Notifications endpoints
|
||||
* Fix cs3org/reva#1825: Raise max grpc message size
|
||||
* Fix cs3org/reva#1828: Send a proper XML header with error messages
|
||||
* Chg cs3org/reva#1828: Remove the oidc provider in order to upgrad mattn/go-sqlite3 to v1.14.7
|
||||
* Enh cs3org/reva#1834: Add API key to Mentix GOCDB connector
|
||||
* Enh cs3org/reva#1855: Minor optimization in parsing EOS ACLs
|
||||
* Enh cs3org/reva#1873: Update the EOS image tag to be for revad-eos image
|
||||
* Enh cs3org/reva#1802: Introduce list spaces
|
||||
* Enh cs3org/reva#1849: Add readonly interceptor
|
||||
* Enh cs3org/reva#1875: Simplify resource comparison
|
||||
* Enh cs3org/reva#1827: Support trashbin sub paths in the recycle API
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2280
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Update ownCloud Web to v3.4.0
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v3.4.0. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2276
|
||||
https://github.com/owncloud/web/releases/tag/v3.4.0
|
||||
@@ -0,0 +1,7 @@
|
||||
Change: update WEB to v3.4.1
|
||||
|
||||
* Fix [5501](https://github.com/owncloud/web/pull/5501): loading previews in the right sidebar
|
||||
* Fix [5493](https://github.com/owncloud/web/pull/5493): view options position
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2283
|
||||
https://github.com/owncloud/web/releases/tag/v3.4.1
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-cs3-users.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-cs3-users.released.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
---
|
||||
- name: continuous-deployment-ocis-s3-latest
|
||||
server:
|
||||
server_type: cx21
|
||||
image: ubuntu-20.04
|
||||
location: nbg1
|
||||
initial_ssh_key_names:
|
||||
- owncloud-ocis@drone.owncloud.com
|
||||
labels:
|
||||
owner: wkloucek
|
||||
for: oCIS-continuous-deployment-examples
|
||||
rebuild: $REBUILD
|
||||
rebuild_carry_paths:
|
||||
- /var/lib/docker/volumes/ocis_certs
|
||||
|
||||
domains:
|
||||
- "*.ocis-s3.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
ref: master
|
||||
docker_compose_path: deployments/examples/ocis_s3
|
||||
env:
|
||||
INSECURE: "false"
|
||||
TRAEFIK_ACME_MAIL: wkloucek@owncloud.com
|
||||
OCIS_DOCKER_TAG: latest
|
||||
OCIS_DOMAIN: ocis.ocis-s3.latest.owncloud.works
|
||||
MINIO_DOMAIN: minio.ocis-s3.latest.owncloud.works
|
||||
COMPOSE_FILE: docker-compose.yml:monitoring_tracing/docker-compose-additions.yml
|
||||
- name: monitoring
|
||||
git_url: https://github.com/owncloud-devops/monitoring-tracing-client.git
|
||||
ref: master
|
||||
env:
|
||||
NETWORK_NAME: ocis-net
|
||||
TELEMETRY_SERVE_DOMAIN: telemetry.ocis-s3.latest.owncloud.works
|
||||
JAEGER_COLLECTOR: jaeger-collector.infra.owncloud.works:443
|
||||
TELEGRAF_SPECIFIC_CONFIG: ocis_single_container
|
||||
OCIS_URL: ocis.ocis-s3.latest.owncloud.works
|
||||
OCIS_DEPLOYMENT_ID: continuous-deployment-ocis-s3-latest
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-keycloak.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-keycloak.released.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
---
|
||||
- name: continuous-deployment-ocis-hello-latest
|
||||
server:
|
||||
server_type: cx21
|
||||
image: ubuntu-20.04
|
||||
location: nbg1
|
||||
initial_ssh_key_names:
|
||||
- owncloud-ocis@drone.owncloud.com
|
||||
labels:
|
||||
owner: wkloucek
|
||||
for: oCIS-continuous-deployment-examples
|
||||
rebuild: $REBUILD
|
||||
rebuild_carry_paths:
|
||||
- /var/lib/docker/volumes/ocis_certs
|
||||
|
||||
domains:
|
||||
- "*.ocis-hello.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
ref: master
|
||||
docker_compose_path: deployments/examples/ocis_hello
|
||||
env:
|
||||
INSECURE: "false"
|
||||
TRAEFIK_ACME_MAIL: wkloucek@owncloud.com
|
||||
OCIS_DOCKER_TAG: latest
|
||||
OCIS_DOMAIN: ocis.ocis-hello.latest.owncloud.works
|
||||
COMPOSE_FILE: docker-compose.yml:monitoring_tracing/docker-compose-additions.yml
|
||||
- name: monitoring
|
||||
git_url: https://github.com/owncloud-devops/monitoring-tracing-client.git
|
||||
ref: master
|
||||
env:
|
||||
NETWORK_NAME: ocis-net
|
||||
TELEMETRY_SERVE_DOMAIN: telemetry.ocis-hello.latest.owncloud.works
|
||||
JAEGER_COLLECTOR: jaeger-collector.infra.owncloud.works:443
|
||||
TELEGRAF_SPECIFIC_CONFIG: ocis_single_container
|
||||
OCIS_URL: ocis.ocis-hello.latest.owncloud.works
|
||||
OCIS_DEPLOYMENT_ID: continuous-deployment-ocis-hello-latest
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-traefik.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-traefik.released.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-wopi.latest.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -17,6 +17,16 @@
|
||||
- "*.ocis-wopi.released.owncloud.works"
|
||||
|
||||
vars:
|
||||
ssh_authorized_keys:
|
||||
- https://github.com/butonic.keys
|
||||
- https://github.com/C0rby.keys
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/pascalwengerter.keys
|
||||
- https://github.com/paulcod3.keys
|
||||
- https://github.com/refs.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
|
||||
@@ -19,6 +19,8 @@ OCIS_DOCKER_TAG=
|
||||
OCIS_DOMAIN=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
|
||||
### LDAP server settings ###
|
||||
|
||||
@@ -13,7 +13,7 @@ objectClass: top
|
||||
uid: einstein
|
||||
givenName: Albert
|
||||
sn: Einstein
|
||||
cn: Albert Einstein
|
||||
cn: einstein
|
||||
displayName: Albert Einstein
|
||||
description: A German-born theoretical physicist who developed the theory of relativity, one of the two pillars of modern physics (alongside quantum mechanics).
|
||||
mail: einstein@example.org
|
||||
@@ -33,7 +33,7 @@ objectClass: top
|
||||
uid: marie
|
||||
givenName: Marie
|
||||
sn: Curie
|
||||
cn: Marie Curie
|
||||
cn: marie
|
||||
displayName: Marie Skłodowska Curie
|
||||
description: A Polish and naturalized-French physicist and chemist who conducted pioneering research on radioactivity.
|
||||
mail: marie@example.org
|
||||
@@ -53,7 +53,7 @@ objectClass: top
|
||||
uid: richard
|
||||
givenName: Richard
|
||||
sn: Feynman
|
||||
cn: Richard Feynman
|
||||
cn: richard
|
||||
displayName: Richard Phillips Feynman
|
||||
description: An American theoretical physicist, known for his work in the path integral formulation of quantum mechanics, the theory of quantum electrodynamics, the physics of the superfluidity of supercooled liquid helium, as well as his work in particle physics for which he proposed the parton model.
|
||||
mail: richard@example.org
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p /var/tmp/ocis/.config/
|
||||
cp /config/proxy-config.json /var/tmp/ocis/.config/proxy-config.json
|
||||
cp /config/web-config.dist.json /var/tmp/ocis/.config/web-config.json
|
||||
sed -i 's/ocis.owncloud.test/'${OCIS_DOMAIN:-ocis.owncloud.test}'/g' /var/tmp/ocis/.config/web-config.json
|
||||
|
||||
ocis server&
|
||||
sleep 10
|
||||
|
||||
# stop builtin accounts since we use LDAP only
|
||||
ocis kill accounts
|
||||
# stop builtin LDAP server since we use external LDAP only
|
||||
ocis kill glauth
|
||||
|
||||
ocis kill proxy
|
||||
sleep 10
|
||||
ocis proxy server # workaround for loading proxy configuration
|
||||
|
||||
wait # wait for oCIS to exit
|
||||
@@ -29,7 +29,7 @@
|
||||
},
|
||||
{
|
||||
"type": "regex",
|
||||
"endpoint": "/ocs/v[12].php/cloud/(users?|groups)",
|
||||
"endpoint": "/ocs/v[12].php/cloud/user/signing-key",
|
||||
"backend": "http://localhost:9110"
|
||||
},
|
||||
{
|
||||
@@ -73,14 +73,6 @@
|
||||
"endpoint": "/graph-explorer/",
|
||||
"backend": "http://localhost:9135"
|
||||
},
|
||||
{
|
||||
"endpoint": "/api/v0/accounts",
|
||||
"backend": "http://localhost:9181"
|
||||
},
|
||||
{
|
||||
"endpoint": "/accounts.js",
|
||||
"backend": "http://localhost:9181"
|
||||
},
|
||||
{
|
||||
"endpoint": "/api/v0/settings",
|
||||
"backend": "http://localhost:9190"
|
||||
@@ -88,10 +80,6 @@
|
||||
{
|
||||
"endpoint": "/settings.js",
|
||||
"backend": "http://localhost:9190"
|
||||
},
|
||||
{
|
||||
"endpoint": "/onlyoffice.js",
|
||||
"backend": "http://localhost:9220"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"server": "https://ocis.owncloud.test",
|
||||
"theme": "owncloud",
|
||||
"version": "0.1.0",
|
||||
"openIdConnect": {
|
||||
"metadata_url": "https://ocis.owncloud.test/.well-known/openid-configuration",
|
||||
"authority": "https://ocis.owncloud.test",
|
||||
"client_id": "web",
|
||||
"response_type": "code",
|
||||
"scope": "openid profile email"
|
||||
},
|
||||
"apps": ["files"],
|
||||
"external_apps": [
|
||||
{
|
||||
"id": "settings",
|
||||
"path": "/settings.js"
|
||||
}
|
||||
],
|
||||
"options": {
|
||||
"hideSearchBar": true
|
||||
}
|
||||
}
|
||||
@@ -3,19 +3,25 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.4
|
||||
image: traefik:v2.5
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dasbhoard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
@@ -26,17 +32,12 @@ services:
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "traefik.http.routers.traefik.entrypoints=http"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_BASIC_AUTH_USERS:-admin:$apr1$4vqie50r$YQAmQdtmz5n9rEALhxJ4l.}" # defaults to admin:admin
|
||||
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
|
||||
- "traefik.http.routers.traefik-secure.entrypoints=https"
|
||||
- "traefik.http.routers.traefik-secure.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik-secure.tls=true"
|
||||
- "traefik.http.routers.traefik-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik-secure.service=api@internal"
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
@@ -47,9 +48,11 @@ services:
|
||||
ocis-net:
|
||||
depends_on:
|
||||
- ldap-server
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- /entrypoint-override.sh
|
||||
environment:
|
||||
# CS3 users from ldap specific configuration
|
||||
PROXY_CONFIG_FILE: "/config/proxy-config.json"
|
||||
IDP_LDAP_FILTER: "(&(objectclass=inetOrgPerson)(objectClass=owncloud))"
|
||||
IDP_LDAP_URI: ldap://ldap-server:389
|
||||
IDP_LDAP_BIND_DN: "cn=admin,dc=owncloud,dc=com"
|
||||
@@ -69,6 +72,10 @@ services:
|
||||
STORAGE_LDAP_ATTRIBUTEFILTER: '(&(objectclass=owncloud)({{attr}}={{value}}))'
|
||||
STORAGE_LDAP_FINDFILTER: '(&(objectclass=owncloud)(|(uid={{query}}*)(cn={{query}}*)(displayname={{query}}*)(mail={{query}}*)(description={{query}}*)))'
|
||||
STORAGE_LDAP_GROUPFILTER: '(&(objectclass=groupOfUniqueNames)(objectclass=owncloud)(ownclouduuid={{.OpaqueId}}*))'
|
||||
# web ui
|
||||
WEB_UI_CONFIG: "/var/tmp/ocis/.config/web-config.json"
|
||||
# proxy
|
||||
PROXY_CONFIG_FILE: "/var/tmp/ocis/.config/proxy-config.json"
|
||||
# General oCIS config
|
||||
OCIS_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-error} # make oCIS less verbose
|
||||
@@ -76,20 +83,18 @@ services:
|
||||
PROXY_TLS: "false" # do not use SSL between Traefik and oCIS
|
||||
# change default secrets
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ./config/ocis/web-config.dist.json:/config/web-config.dist.json
|
||||
- ./config/ocis/proxy-config.json:/config/proxy-config.json
|
||||
- ocis-data:/var/tmp/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.ocis-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ocis.middlewares=ocis-https-redirect"
|
||||
- "traefik.http.routers.ocis-secure.entrypoints=https"
|
||||
- "traefik.http.routers.ocis-secure.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.routers.ocis-secure.tls=true"
|
||||
- "traefik.http.routers.ocis-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis-secure.service=ocis"
|
||||
- "traefik.http.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
@@ -125,15 +130,10 @@ services:
|
||||
PHPLDAPADMIN_HTTPS: "false"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ldap-manager.entrypoints=http"
|
||||
- "traefik.http.routers.ldap-manager.entrypoints=https"
|
||||
- "traefik.http.routers.ldap-manager.rule=Host(`${LDAP_MANAGER_DOMAIN:-ldap.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.ldap-manager-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ldap-manager.middlewares=ldap-manager-https-redirect"
|
||||
- "traefik.http.routers.ldap-manager-secure.entrypoints=https"
|
||||
- "traefik.http.routers.ldap-manager-secure.rule=Host(`${LDAP_MANAGER_DOMAIN:-ldap.owncloud.test}`)"
|
||||
- "traefik.http.routers.ldap-manager-secure.tls=true"
|
||||
- "traefik.http.routers.ldap-manager-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.ldap-manager-secure.service=ldap-manager"
|
||||
- "traefik.http.routers.ldap-manager.tls.certresolver=http"
|
||||
- "traefik.http.routers.ldap-manager.service=ldap-manager"
|
||||
- "traefik.http.services.ldap-manager.loadbalancer.server.port=80"
|
||||
logging:
|
||||
driver: "local"
|
||||
|
||||
+11
-4
@@ -17,11 +17,18 @@ TRAEFIK_ACME_MAIL=
|
||||
OCIS_DOCKER_TAG=
|
||||
# Domain of oCIS, where you can find the frontend. Defaults to "ocis.owncloud.test"
|
||||
OCIS_DOMAIN=
|
||||
# IDP LDAP bind password. Must be changed in order to have a secure oCIS. Defaults to "idp".
|
||||
IDP_LDAP_BIND_PASSWORD=
|
||||
# Storage LDAP bind password. Must be changed in order to have a secure oCIS. Defaults to "reva".
|
||||
STORAGE_LDAP_BIND_PASSWORD=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
### oC10 ###
|
||||
# Domain of ownCloud 10, where you can find the frontend. Defaults to "oc10.owncloud.test"
|
||||
#OC10_DOMAIN=
|
||||
|
||||
### oCIS Hello settings ###
|
||||
# oCIS Hello version. Defaults to "latest"
|
||||
OCIS_HELLO_DOCKER_TAG=
|
||||
|
||||
# If you want to use debugging and tracing with this stack,
|
||||
# you need uncomment following line. Please see documentation at
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
---
|
||||
document this deployment example in: docs/ocis/deployment/owncloud10_with_oc_web.md
|
||||
document this deployment example in: docs/ocis/deployment/ocis_hello.md
|
||||
---
|
||||
|
||||
Please refer to [our documentation](https://owncloud.dev/ocis/deployment/owncloud10_with_oc_web/)
|
||||
Please refer to [our documentation](https://owncloud.dev/ocis/deployment/ocis_hello/)
|
||||
for instructions on how to deploy this scenario.
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p /var/tmp/ocis/.config/
|
||||
cp /config/proxy-config.json /var/tmp/ocis/.config/proxy-config.json
|
||||
cp /config/web-config.dist.json /var/tmp/ocis/.config/web-config.json
|
||||
sed -i 's/ocis.owncloud.test/'${OCIS_DOMAIN:-ocis.owncloud.test}'/g' /var/tmp/ocis/.config/web-config.json
|
||||
|
||||
ocis server&
|
||||
sleep 10
|
||||
|
||||
echo "##################################################"
|
||||
echo "change default secrets:"
|
||||
|
||||
# IDP
|
||||
IDP_USER_UUID=$(ocis accounts list | grep "| Kopano IDP " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " IDP user UUID: $IDP_USER_UUID"
|
||||
ocis accounts update --password $IDP_LDAP_BIND_PASSWORD $IDP_USER_UUID
|
||||
|
||||
# REVA
|
||||
REVA_USER_UUID=$(ocis accounts list | grep " | Reva Inter " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " Reva user UUID: $REVA_USER_UUID"
|
||||
ocis accounts update --password $STORAGE_LDAP_BIND_PASSWORD $REVA_USER_UUID
|
||||
|
||||
echo "default secrets changed"
|
||||
echo "##################################################"
|
||||
|
||||
ocis kill proxy
|
||||
sleep 10
|
||||
ocis proxy server # workaround for loading proxy configuration
|
||||
|
||||
wait # wait for oCIS to exit
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"HTTP": {
|
||||
"Namespace": "com.owncloud"
|
||||
},
|
||||
"policy_selector": {
|
||||
"static": {
|
||||
"policy": "ocis"
|
||||
}
|
||||
},
|
||||
"policies": [
|
||||
{
|
||||
"name": "ocis",
|
||||
"routes": [
|
||||
{
|
||||
"endpoint": "/",
|
||||
"backend": "http://localhost:9100"
|
||||
},
|
||||
{
|
||||
"endpoint": "/.well-known/",
|
||||
"backend": "http://localhost:9130"
|
||||
},
|
||||
{
|
||||
"endpoint": "/konnect/",
|
||||
"backend": "http://localhost:9130"
|
||||
},
|
||||
{
|
||||
"endpoint": "/signin/",
|
||||
"backend": "http://localhost:9130"
|
||||
},
|
||||
{
|
||||
"type": "regex",
|
||||
"endpoint": "/ocs/v[12].php/cloud/(users?|groups)",
|
||||
"backend": "http://localhost:9110"
|
||||
},
|
||||
{
|
||||
"endpoint": "/ocs/",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"type": "query",
|
||||
"endpoint": "/remote.php/?preview=1",
|
||||
"backend": "http://localhost:9115"
|
||||
},
|
||||
{
|
||||
"endpoint": "/remote.php/",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"endpoint": "/dav/",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"endpoint": "/webdav/",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"endpoint": "/status.php",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"endpoint": "/index.php/",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"endpoint": "/data",
|
||||
"backend": "http://localhost:9140"
|
||||
},
|
||||
{
|
||||
"endpoint": "/graph/",
|
||||
"backend": "http://localhost:9120"
|
||||
},
|
||||
{
|
||||
"endpoint": "/graph-explorer/",
|
||||
"backend": "http://localhost:9135"
|
||||
},
|
||||
{
|
||||
"endpoint": "/api/v0/accounts",
|
||||
"backend": "http://localhost:9181"
|
||||
},
|
||||
{
|
||||
"endpoint": "/accounts.js",
|
||||
"backend": "http://localhost:9181"
|
||||
},
|
||||
{
|
||||
"endpoint": "/api/v0/settings",
|
||||
"backend": "http://localhost:9190"
|
||||
},
|
||||
{
|
||||
"endpoint": "/settings.js",
|
||||
"backend": "http://localhost:9190"
|
||||
},
|
||||
{
|
||||
"endpoint": "/api/v0/greet",
|
||||
"backend": "http://ocis-hello:9105"
|
||||
},
|
||||
{
|
||||
"endpoint": "/hello.js",
|
||||
"backend": "http://ocis-hello:9105"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
+6
-8
@@ -1,17 +1,15 @@
|
||||
{
|
||||
"server": "https://172.17.0.1:9200",
|
||||
"server": "https://ocis.owncloud.test",
|
||||
"theme": "owncloud",
|
||||
"version": "0.1.0",
|
||||
"openIdConnect": {
|
||||
"metadata_url": "https://172.17.0.1:9200/.well-known/openid-configuration",
|
||||
"authority": "https://172.17.0.1:9200",
|
||||
"metadata_url": "https://ocis.owncloud.test/.well-known/openid-configuration",
|
||||
"authority": "https://ocis.owncloud.test",
|
||||
"client_id": "web",
|
||||
"response_type": "code",
|
||||
"scope": "openid profile email"
|
||||
},
|
||||
"apps": [
|
||||
"files"
|
||||
],
|
||||
"apps": ["files"],
|
||||
"external_apps": [
|
||||
{
|
||||
"id": "settings",
|
||||
@@ -22,8 +20,8 @@
|
||||
"path": "/accounts.js"
|
||||
},
|
||||
{
|
||||
"id": "wopiserver",
|
||||
"path": "/wopiserver.js"
|
||||
"id": "hello",
|
||||
"path": "/hello.js"
|
||||
}
|
||||
],
|
||||
"options": {
|
||||
@@ -0,0 +1,98 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.5
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
command:
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dasbhoard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_BASIC_AUTH_USERS:-admin:$apr1$4vqie50r$YQAmQdtmz5n9rEALhxJ4l.}" # defaults to admin:admin
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
ocis:
|
||||
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
ocis-net:
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- /entrypoint-override.sh
|
||||
environment:
|
||||
OCIS_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-error} # make oCIS less verbose
|
||||
PROXY_OIDC_INSECURE: "${INSECURE:-false}" # needed if Traefik is using self generated certificates
|
||||
PROXY_TLS: "false" # do not use SSL between Traefik and oCIS
|
||||
# change default secrets
|
||||
IDP_LDAP_BIND_PASSWORD: ${IDP_LDAP_BIND_PASSWORD:-idp}
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${STORAGE_LDAP_BIND_PASSWORD:-reva}
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
# web ui
|
||||
WEB_UI_CONFIG: "/var/tmp/ocis/.config/web-config.json"
|
||||
# proxy
|
||||
PROXY_CONFIG_FILE: "/var/tmp/ocis/.config/proxy-config.json"
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ./config/ocis/web-config.dist.json:/config/web-config.dist.json
|
||||
- ./config/ocis/proxy-config.json:/config/proxy-config.json
|
||||
- ocis-data:/var/tmp/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
ocis-hello:
|
||||
image: owncloud/ocis-hello:${OCIS_HELLO_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
ocis-net:
|
||||
environment:
|
||||
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-error} # make oCIS less verbose
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
certs:
|
||||
ocis-data:
|
||||
|
||||
networks:
|
||||
ocis-net:
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
ocis:
|
||||
environment:
|
||||
OCIS_TRACING_ENABLED: "true"
|
||||
OCIS_TRACING_ENDPOINT: jaeger-agent:6831
|
||||
|
||||
networks:
|
||||
ocis-net:
|
||||
external: true
|
||||
@@ -25,6 +25,8 @@ IDP_LDAP_BIND_PASSWORD=
|
||||
STORAGE_LDAP_BIND_PASSWORD=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
### Keycloak ###
|
||||
# Domain of Keycloak, where you can find the managment and authentication frontend. Defaults to "keycloak.owncloud.test"
|
||||
|
||||
@@ -5,14 +5,12 @@ set -e
|
||||
ocis server&
|
||||
sleep 10
|
||||
|
||||
# stop builtin idp since we use Keycloak as a replacement
|
||||
ocis kill idp
|
||||
|
||||
echo "##################################################"
|
||||
echo "change default secrets:"
|
||||
|
||||
# IDP
|
||||
IDP_USER_UUID=$(ocis accounts list | grep "| Kopano IDP " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " IDP user UUID: $IDP_USER_UUID"
|
||||
ocis accounts update --password $IDP_LDAP_BIND_PASSWORD $IDP_USER_UUID
|
||||
|
||||
# REVA
|
||||
REVA_USER_UUID=$(ocis accounts list | grep " | Reva Inter " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " Reva user UUID: $REVA_USER_UUID"
|
||||
@@ -25,6 +23,11 @@ echo "##################################################"
|
||||
echo "delete demo users" # demo users are provided by keycloak
|
||||
|
||||
set +e # accounts can only delete once, so it will fail the second time
|
||||
# IDP
|
||||
IDP_USER_UUID=$(ocis accounts list | grep "| Kopano IDP " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o)
|
||||
echo " IDP user UUID: $IDP_USER_UUID"
|
||||
ocis accounts remove $IDP_USER_UUID
|
||||
|
||||
ocis accounts remove 4c510ada-c86b-4815-8820-42cdf82c3d51
|
||||
ocis accounts remove ddc2004c-0977-11eb-9d3f-a793888cd0f8
|
||||
ocis accounts remove 932b4540-8d16-481e-8ef4-588e4b6b151c
|
||||
|
||||
@@ -3,20 +3,26 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.4
|
||||
image: traefik:v2.5
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
- ${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}
|
||||
command:
|
||||
#- "--log.level=DEBUG"
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL:-example@example.org}"
|
||||
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
||||
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
||||
# enable dasbhoard
|
||||
- "--api.dashboard=true"
|
||||
# define entrypoints
|
||||
- "--entryPoints.http.address=:80"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
||||
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
||||
- "--entryPoints.https.address=:443"
|
||||
# docker provider (get configuration from container labels)
|
||||
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
ports:
|
||||
@@ -27,17 +33,12 @@ services:
|
||||
- "certs:/certs"
|
||||
labels:
|
||||
- "traefik.enable=${TRAEFIK_DASHBOARD:-false}"
|
||||
- "traefik.http.routers.traefik.entrypoints=http"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_BASIC_AUTH_USERS:-admin:$apr1$4vqie50r$YQAmQdtmz5n9rEALhxJ4l.}" # defaults to admin:admin
|
||||
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
|
||||
- "traefik.http.routers.traefik-secure.entrypoints=https"
|
||||
- "traefik.http.routers.traefik-secure.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik-secure.tls=true"
|
||||
- "traefik.http.routers.traefik-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik-secure.service=api@internal"
|
||||
- "traefik.http.routers.traefik.entrypoints=https"
|
||||
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:-traefik.owncloud.test}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=http"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
@@ -67,20 +68,16 @@ services:
|
||||
IDP_LDAP_BIND_PASSWORD: ${IDP_LDAP_BIND_PASSWORD:-idp}
|
||||
STORAGE_LDAP_BIND_PASSWORD: ${STORAGE_LDAP_BIND_PASSWORD:-reva}
|
||||
OCIS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
|
||||
OCIS_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-replace-me-with-a-transfer-secret}
|
||||
volumes:
|
||||
- ./config/ocis/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ocis-data:/var/tmp/ocis
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.ocis.entrypoints=http"
|
||||
- "traefik.http.routers.ocis.entrypoints=https"
|
||||
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.ocis-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.ocis.middlewares=ocis-https-redirect"
|
||||
- "traefik.http.routers.ocis-secure.entrypoints=https"
|
||||
- "traefik.http.routers.ocis-secure.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`)"
|
||||
- "traefik.http.routers.ocis-secure.tls=true"
|
||||
- "traefik.http.routers.ocis-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis-secure.service=ocis"
|
||||
- "traefik.http.routers.ocis.tls.certresolver=http"
|
||||
- "traefik.http.routers.ocis.service=ocis"
|
||||
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
||||
logging:
|
||||
driver: "local"
|
||||
@@ -122,27 +119,20 @@ services:
|
||||
KEYCLOAK_IMPORT: /opt/jboss/keycloak/ocis-realm.json
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.keycloak.entrypoints=http"
|
||||
- "traefik.http.routers.keycloak.entrypoints=https"
|
||||
- "traefik.http.routers.keycloak.rule=Host(`${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}`)"
|
||||
- "traefik.http.middlewares.keycloak-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.keycloak.middlewares=keycloak-https-redirect"
|
||||
- "traefik.http.routers.keycloak-secure.entrypoints=https"
|
||||
- "traefik.http.routers.keycloak-secure.rule=Host(`${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}`)"
|
||||
- "traefik.http.routers.keycloak-secure.tls=true"
|
||||
- "traefik.http.routers.keycloak-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.keycloak-secure.service=keycloak"
|
||||
- "traefik.http.routers.keycloak.tls.certresolver=http"
|
||||
- "traefik.http.routers.keycloak.service=keycloak"
|
||||
- "traefik.http.services.keycloak.loadbalancer.server.port=8080"
|
||||
- "traefik.http.services.keycloak.loadbalancer.server.scheme=http"
|
||||
# let /.well-known/openid-configuration be served by Keycloak
|
||||
- "traefik.http.routers.idp-wellknown-secure.entrypoints=https"
|
||||
- "traefik.http.routers.idp-wellknown-secure.tls=true"
|
||||
- "traefik.http.routers.idp-wellknown-secure.tls.certresolver=http"
|
||||
- "traefik.http.routers.idp-wellknown-secure.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`) && Path(`/.well-known/openid-configuration`)"
|
||||
- "traefik.http.middlewares.idp-headers.headers.customrequestheaders.X-Forwarded-Host=${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}"
|
||||
- "traefik.http.middlewares.idp-prefix.addprefix.prefix=/auth/realms/${KEYCLOAK_REALM:-oCIS}"
|
||||
- "traefik.http.middlewares.idp-override.chain.middlewares=idp-headers,idp-prefix"
|
||||
- "traefik.http.routers.idp-wellknown-secure.middlewares=idp-override"
|
||||
- "traefik.http.routers.idp-wellknown-secure.service=keycloak"
|
||||
- "traefik.http.routers.idp-wellknown.entrypoints=https"
|
||||
- "traefik.http.routers.idp-wellknown.tls.certresolver=http"
|
||||
- "traefik.http.routers.idp-wellknown.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`) && Path(`/.well-known/openid-configuration`)"
|
||||
- "traefik.http.routers.idp-wellknown.middlewares=idp-override"
|
||||
- "traefik.http.routers.idp-wellknown.service=keycloak"
|
||||
depends_on:
|
||||
- postgres
|
||||
logging:
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
# If you're on a internet facing server please comment out following line.
|
||||
# It skips certificate validation for various parts of oCIS and is needed if you use self signed certificates.
|
||||
INSECURE=true
|
||||
|
||||
### Traefik settings ###
|
||||
# Serve Treafik dashboard. Defaults to "false".
|
||||
TRAEFIK_DASHBOARD=
|
||||
# Domain of Traefik, where you can find the dashboard. Defaults to "traefik.owncloud.test"
|
||||
TRAEFIK_DOMAIN=
|
||||
# Basic authentication for the dashboard. Defaults to user "admin" and password "admin"
|
||||
TRAEFIK_BASIC_AUTH_USERS=
|
||||
# Email address for obtaining LetsEncrypt certificates, needs only be changed if this is a public facing server
|
||||
TRAEFIK_ACME_MAIL=
|
||||
|
||||
### oCIS settings ###
|
||||
# oCIS version. Defaults to "latest"
|
||||
OCIS_DOCKER_TAG=
|
||||
# Domain of oCIS, where you can find the frontend. Defaults to "ocis.owncloud.test"
|
||||
OCIS_DOMAIN=
|
||||
# IDP LDAP bind password. Must be changed in order to have a secure oCIS. Defaults to "idp".
|
||||
IDP_LDAP_BIND_PASSWORD=
|
||||
# Storage LDAP bind password. Must be changed in order to have a secure oCIS. Defaults to "reva".
|
||||
STORAGE_LDAP_BIND_PASSWORD=
|
||||
# JWT secret which is used for the storage provider. Must be changed in order to have a secure oCIS. Defaults to "Pive-Fumkiu4"
|
||||
OCIS_JWT_SECRET=
|
||||
# JWT secret which is used for uploads to create transfer tokens. Must be changed in order to have a secure oCIS. Defaults to "replace-me-with-a-transfer-secret"
|
||||
OCIS_TRANSFER_SECRET=
|
||||
|
||||
### MINIO / S3 settings ###
|
||||
# Domain of MinIO where the Web UI is accessible. Defaults to "minio.owncloud.test".
|
||||
MINIO_DOMAIN=
|
||||
# S3 bucket name, where oCIS stores its data in. Defaults to "ocis-bucket".
|
||||
MINIO_BUCKET=
|
||||
# S3 bucket access key, which oCIS uses to authenticate. Defaults to "ocis".
|
||||
MINIO_ACCESS_KEY=
|
||||
# S3 bucket access key secret, which oCIS uses to authenticate. Defaults to "ocis-secret-key".
|
||||
MINIO_SECRET_KEY=
|
||||
|
||||
# If you want to use debugging and tracing with this stack,
|
||||
# you need uncomment following line. Please see documentation at
|
||||
# https://owncloud.dev/ocis/deployment/monitoring-tracing/
|
||||
#COMPOSE_FILE=docker-compose.yml:monitoring_tracing/docker-compose-additions.yml
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
document this deployment example in: docs/ocis/deployment/ocis_s3.md
|
||||
---
|
||||
|
||||
Please refer to [our documentation](https://owncloud.dev/ocis/deployment/ocis_s3/)
|
||||
for instructions on how to deploy this scenario.
|
||||
Loaded 100 of 456 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user