Compare commits
682
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1ca18f4cd2 | ||
|
|
98709a8dfc | ||
|
|
ebd863e73e | ||
|
|
255b872b30 | ||
|
|
dc5496e16c | ||
|
|
e0eff6ee41 | ||
|
|
c939d6042b | ||
|
|
253e180355 | ||
|
|
84888ebce1 | ||
|
|
0eda3b882b | ||
|
|
fb6b83a8cc | ||
|
|
9da10fc14e | ||
|
|
9c6fbedfd5 | ||
|
|
400cd5e3e5 | ||
|
|
5a434d6deb | ||
|
|
f9de747ef3 | ||
|
|
90e7c53187 | ||
|
|
0bbee16e88 | ||
|
|
6df001524e | ||
|
|
ee4073256f | ||
|
|
bdbeb967c6 | ||
|
|
d007164a53 | ||
|
|
57b337546d | ||
|
|
c532073dd1 | ||
|
|
12e6eb1395 | ||
|
|
0719d18586 | ||
|
|
4943fed2fe | ||
|
|
0f40e3896b | ||
|
|
6e17117800 | ||
|
|
b841cd7874 | ||
|
|
80e6600275 | ||
|
|
92145eeab9 | ||
|
|
271d27592f | ||
|
|
e2d8b90ecc | ||
|
|
f3d3ef1c3d | ||
|
|
58c3acb525 | ||
|
|
1aac5a09d2 | ||
|
|
82f75a2164 | ||
|
|
083b39ef17 | ||
|
|
387b2f3272 | ||
|
|
2cec8d757d | ||
|
|
53e64d4b4a | ||
|
|
305b7d7acc | ||
|
|
4bc6d1759f | ||
|
|
1469afb432 | ||
|
|
3c0730c170 | ||
|
|
a2e1e9f28e | ||
|
|
cfcd4b5992 | ||
|
|
4ec4dd5f77 | ||
|
|
c71fbf297a | ||
|
|
d6b2973697 | ||
|
|
1f5f99996b | ||
|
|
690399008d | ||
|
|
75116a3f12 | ||
|
|
dfbc6759da | ||
|
|
bb9c3db982 | ||
|
|
17711526e5 | ||
|
|
ab2fb958a3 | ||
|
|
d33ff007fd | ||
|
|
696fdecf42 | ||
|
|
071cb6a78a | ||
|
|
0c7874630b | ||
|
|
00659b6323 | ||
|
|
a7b2f4df2a | ||
|
|
b01a549579 | ||
|
|
a8660e27ed | ||
|
|
ad4da605d7 | ||
|
|
3f30ea134b | ||
|
|
902977cb60 | ||
|
|
ee161b2359 | ||
|
|
eda3997211 | ||
|
|
0802e8aac3 | ||
|
|
0fd7580301 | ||
|
|
c861d27aae | ||
|
|
52f13fe778 | ||
|
|
9bb88c848e | ||
|
|
059bec1a7a | ||
|
|
a22b7d6844 | ||
|
|
20dbf299d0 | ||
|
|
c8fa6af54b | ||
|
|
cc417c6ee8 | ||
|
|
b8ac8f1ddd | ||
|
|
71ec5b2106 | ||
|
|
878e465c52 | ||
|
|
226ffbb3f3 | ||
|
|
7b4ed397b3 | ||
|
|
3328f9acb7 | ||
|
|
4a107673ad | ||
|
|
1ecf95b896 | ||
|
|
9cb417bf6c | ||
|
|
80214cb2c7 | ||
|
|
9d5c82f61f | ||
|
|
8596afcfee | ||
|
|
262632e0ae | ||
|
|
71d63a69e6 | ||
|
|
89fc088239 | ||
|
|
b6dac5e36c | ||
|
|
f3468e1070 | ||
|
|
deb7417145 | ||
|
|
1ed27939cc | ||
|
|
9342b5abbd | ||
|
|
9a507a4450 | ||
|
|
78eabd2437 | ||
|
|
a361c12e2a | ||
|
|
6d397c79f5 | ||
|
|
19cfa326fd | ||
|
|
7609b11dc1 | ||
|
|
97271d51bc | ||
|
|
3a46bd2f94 | ||
|
|
f280e98897 | ||
|
|
5d98dbac4a | ||
|
|
368d32becb | ||
|
|
52ebb7c611 | ||
|
|
377eecc66e | ||
|
|
cf531154fb | ||
|
|
4fffec0749 | ||
|
|
bbb94c40da | ||
|
|
1088faf95d | ||
|
|
7ad38d7757 | ||
|
|
24cb9dcf70 | ||
|
|
e535975718 | ||
|
|
22ed643be8 | ||
|
|
b4713a4b49 | ||
|
|
deb20ffa90 | ||
|
|
fd703ec740 | ||
|
|
8a8aa2dc52 | ||
|
|
f89128a2d9 | ||
|
|
2004942a3a | ||
|
|
26d7842cfe | ||
|
|
cae068fe73 | ||
|
|
f15c40d52e | ||
|
|
aea505805c | ||
|
|
64dd0baa02 | ||
|
|
f75d2c1b32 | ||
|
|
14fdbb9788 | ||
|
|
2575c29051 | ||
|
|
d9894560d7 | ||
|
|
c9515ecb35 | ||
|
|
6fad231246 | ||
|
|
3bb76bfad6 | ||
|
|
6374fb4568 | ||
|
|
1762458e4d | ||
|
|
0bc9f71353 | ||
|
|
89b06defa5 | ||
|
|
ec882bc22e | ||
|
|
d4585933ac | ||
|
|
7736d26e0c | ||
|
|
f11d8a2718 | ||
|
|
1daad022c3 | ||
|
|
74c883b85b | ||
|
|
d9f4a4c524 | ||
|
|
977f590954 | ||
|
|
11ed5e49d8 | ||
|
|
13f6defb7a | ||
|
|
8d3562dc62 | ||
|
|
ebc51c6dff | ||
|
|
14feb0f4a6 | ||
|
|
cb45a4bb37 | ||
|
|
2ece67fd0b | ||
|
|
c2939551e5 | ||
|
|
34a9fb2dc8 | ||
|
|
63416c3cac | ||
|
|
57aec02410 | ||
|
|
588ac4a2a6 | ||
|
|
603dad3533 | ||
|
|
b89deea796 | ||
|
|
448bdde79c | ||
|
|
072d0704df | ||
|
|
7e505fbd9f | ||
|
|
54c4331479 | ||
|
|
6644f5b679 | ||
|
|
d19cc340ea | ||
|
|
b4115bbee4 | ||
|
|
a1d5e34f41 | ||
|
|
75c3b7d81b | ||
|
|
b167dc8b21 | ||
|
|
f851b91489 | ||
|
|
656d034dd3 | ||
|
|
9b9f4703af | ||
|
|
af33d62a9a | ||
|
|
005f47d436 | ||
|
|
83851ca2bb | ||
|
|
88f670b45c | ||
|
|
530ee622db | ||
|
|
8560368f47 | ||
|
|
4e130ac406 | ||
|
|
8b1571aa26 | ||
|
|
5e76dfdecd | ||
|
|
d7fedc7046 | ||
|
|
a5e55ef5e6 | ||
|
|
dc9cf9e8f1 | ||
|
|
d856506738 | ||
|
|
22ef448fa4 | ||
|
|
ca46b1a779 | ||
|
|
b4fe7de242 | ||
|
|
888481a64a | ||
|
|
e498ad69f9 | ||
|
|
84ca589a16 | ||
|
|
47a2ef8797 | ||
|
|
50d869697b | ||
|
|
ef109c872f | ||
|
|
f4161385d4 | ||
|
|
35eed83326 | ||
|
|
184216419d | ||
|
|
87a06b5e39 | ||
|
|
6ee83baf0b | ||
|
|
67eb5ce63e | ||
|
|
b0ca23fbd7 | ||
|
|
1618dbfa0b | ||
|
|
cf8d8aef92 | ||
|
|
07843042a5 | ||
|
|
bafa6b9c81 | ||
|
|
089325d30e | ||
|
|
69cc4d83ad | ||
|
|
4813b06ed5 | ||
|
|
d8ade4a917 | ||
|
|
e7afcd7c49 | ||
|
|
ee20ccd474 | ||
|
|
e401145235 | ||
|
|
86f27ca766 | ||
|
|
aed03b5bf5 | ||
|
|
0726156f1b | ||
|
|
ee596b4faa | ||
|
|
9d1341d1eb | ||
|
|
ee34fc5c89 | ||
|
|
9e5858ccab | ||
|
|
8aa06cc3f9 | ||
|
|
826c70b3d2 | ||
|
|
dc73176dc6 | ||
|
|
0d3d0bebf3 | ||
|
|
d1183fb2a2 | ||
|
|
4147434a33 | ||
|
|
8395d55fc5 | ||
|
|
7af5b8249c | ||
|
|
3f362283d0 | ||
|
|
6d7e9c8851 | ||
|
|
8026bcb691 | ||
|
|
536ae99fe8 | ||
|
|
7303704f36 | ||
|
|
e78ebe4c05 | ||
|
|
1348b07958 | ||
|
|
10d4bad26d | ||
|
|
0c6c18f818 | ||
|
|
a19708e067 | ||
|
|
9c34677889 | ||
|
|
7317c35387 | ||
|
|
959225e2bf | ||
|
|
dd26937d69 | ||
|
|
eefd6a517f | ||
|
|
29eda7f644 | ||
|
|
6c7934ee80 | ||
|
|
33d004a92e | ||
|
|
c88e544281 | ||
|
|
1544dffabd | ||
|
|
67f9f1f2db | ||
|
|
3f8245e042 | ||
|
|
6d598af782 | ||
|
|
249af958ff | ||
|
|
8c9a1712fb | ||
|
|
d7604d8608 | ||
|
|
9027864b68 | ||
|
|
dea1fa87a9 | ||
|
|
9bfe930978 | ||
|
|
9c648f93cc | ||
|
|
b8e18a8aa3 | ||
|
|
6ef57945f7 | ||
|
|
f2e90149ae | ||
|
|
2efbb13e66 | ||
|
|
1ddfb7c6c5 | ||
|
|
182f8953d7 | ||
|
|
d0244d6c74 | ||
|
|
ecc0a4d5fd | ||
|
|
e864db8a2f | ||
|
|
344ab4a821 | ||
|
|
43e257f05d | ||
|
|
77f2f4f0ba | ||
|
|
c32dd3d362 | ||
|
|
cf4f84708a | ||
|
|
cabe57e74b | ||
|
|
249e98bee5 | ||
|
|
d7215deb89 | ||
|
|
79c2907c40 | ||
|
|
cf3779bb73 | ||
|
|
5700585b33 | ||
|
|
68957acc0d | ||
|
|
6cfbec91e2 | ||
|
|
c0651479f4 | ||
|
|
937a07f2c6 | ||
|
|
a7c9414be9 | ||
|
|
f55a8092cb | ||
|
|
13dbfc6e6c | ||
|
|
c981f513c8 | ||
|
|
8146241777 | ||
|
|
6e0efcbe04 | ||
|
|
f9c48e1f98 | ||
|
|
77533a94a3 | ||
|
|
8e22270608 | ||
|
|
df43388e88 | ||
|
|
7fd1fef3f3 | ||
|
|
158f68f80f | ||
|
|
98c90e9deb | ||
|
|
018f5dc32a | ||
|
|
370cd1c8f6 | ||
|
|
46a2282e47 | ||
|
|
2af8d92b42 | ||
|
|
f6763be9f0 | ||
|
|
d01e629c0e | ||
|
|
2c793fb1d9 | ||
|
|
c059a2d41e | ||
|
|
bb05da0bf1 | ||
|
|
686f496c31 | ||
|
|
35f7cd52b8 | ||
|
|
9e3995ecc9 | ||
|
|
01d5020b5a | ||
|
|
55b3464c49 | ||
|
|
10629889f2 | ||
|
|
5b8f5eb16d | ||
|
|
9bfc8693f2 | ||
|
|
10b5611167 | ||
|
|
4ce67a48e7 | ||
|
|
17c4e9b1c5 | ||
|
|
f3404ab202 | ||
|
|
85ee5def6e | ||
|
|
45bb22863e | ||
|
|
91b41586b8 | ||
|
|
b7f02b0d1c | ||
|
|
916746c719 | ||
|
|
eb72c5d96a | ||
|
|
fb8a744dcb | ||
|
|
6d78b361f8 | ||
|
|
cfb6bf3ffc | ||
|
|
8cfbbf77b3 | ||
|
|
14aa851ae0 | ||
|
|
a4480ed16e | ||
|
|
e69e2213e4 | ||
|
|
b3062d1bd9 | ||
|
|
ce9177e21c | ||
|
|
1d5a116e3c | ||
|
|
085f6f0f4a | ||
|
|
92fbc158aa | ||
|
|
975737d5e6 | ||
|
|
e1394172db | ||
|
|
5265ec4a06 | ||
|
|
18a05e5fbc | ||
|
|
f90e49ad6a | ||
|
|
282a1c81c4 | ||
|
|
d60604366c | ||
|
|
4855f6b6a4 | ||
|
|
6d8f551b02 | ||
|
|
304b8a9846 | ||
|
|
7732949e3c | ||
|
|
9186448344 | ||
|
|
94299861c1 | ||
|
|
823e99efa9 | ||
|
|
fb2fe1dd19 | ||
|
|
2e09c80855 | ||
|
|
34d53304df | ||
|
|
a7c153cb6f | ||
|
|
b36a52189a | ||
|
|
2f73400328 | ||
|
|
9ae6704d60 | ||
|
|
4aea7a997d | ||
|
|
9751387b1b | ||
|
|
03cadf304c | ||
|
|
aca22cab42 | ||
|
|
a93caad947 | ||
|
|
5b2c2d2485 | ||
|
|
5f818c6bae | ||
|
|
417defdbb9 | ||
|
|
a378f259eb | ||
|
|
ffdc10cebe | ||
|
|
29129cdb9d | ||
|
|
c1839ce48e | ||
|
|
f9954bb022 | ||
|
|
080d348d19 | ||
|
|
5a74c1f49f | ||
|
|
aaac06da5b | ||
|
|
8ed2dedf4c | ||
|
|
b5d586fd89 | ||
|
|
414b635433 | ||
|
|
1b9126ad48 | ||
|
|
30c80b0923 | ||
|
|
5c235be89b | ||
|
|
18426be9a2 | ||
|
|
4fa73662ed | ||
|
|
6f27c726ce | ||
|
|
5751b08266 | ||
|
|
235a79ff12 | ||
|
|
dfb4eb11cb | ||
|
|
924246c0a6 | ||
|
|
5a44f83bbf | ||
|
|
5dac7ae5c4 | ||
|
|
54c4a73c8e | ||
|
|
498a21cf0a | ||
|
|
3c78241b98 | ||
|
|
ae07429eea | ||
|
|
d7b1ecb3dc | ||
|
|
5dd3612ae1 | ||
|
|
8dd28582cc | ||
|
|
157fbb6143 | ||
|
|
c2bdf7878e | ||
|
|
a90cf56246 | ||
|
|
e5c78eca3f | ||
|
|
5c3300b083 | ||
|
|
bec3290cb9 | ||
|
|
4b53a1713b | ||
|
|
daceb0279a | ||
|
|
8c73d16d2b | ||
|
|
8878aeeb6b | ||
|
|
655ceab413 | ||
|
|
02693de015 | ||
|
|
6de9b60aa9 | ||
|
|
0b14422901 | ||
|
|
8fe2e7234d | ||
|
|
4877cb0d9c | ||
|
|
bf3fff31c2 | ||
|
|
65bc3f1f7f | ||
|
|
706a58c58e | ||
|
|
4611cc2db4 | ||
|
|
70206b7c2f | ||
|
|
49b19418d2 | ||
|
|
1a38554d32 | ||
|
|
e50ee6e002 | ||
|
|
75984383d6 | ||
|
|
1404a8beaa | ||
|
|
b3636eed8b | ||
|
|
b8ea851fa9 | ||
|
|
0ec1bd7782 | ||
|
|
47d73572d0 | ||
|
|
1c83fa033a | ||
|
|
71dfb4e3ae | ||
|
|
9e68275730 | ||
|
|
eac9e11063 | ||
|
|
eb634d2d76 | ||
|
|
2575465591 | ||
|
|
94c65c6945 | ||
|
|
36441c864a | ||
|
|
c2f154f7cd | ||
|
|
c18bae9061 | ||
|
|
30286fa434 | ||
|
|
cf9dd65927 | ||
|
|
777c29fc35 | ||
|
|
f2e0d8e1a8 | ||
|
|
94edf1001a | ||
|
|
888bea54ad | ||
|
|
414add4358 | ||
|
|
66f4139627 | ||
|
|
c7d369cb12 | ||
|
|
0f455e5eb2 | ||
|
|
4836d558dc | ||
|
|
7685ed962e | ||
|
|
3786104739 | ||
|
|
1418961a8b | ||
|
|
e528631733 | ||
|
|
90cfa1e031 | ||
|
|
833d0e4d79 | ||
|
|
623f98d989 | ||
|
|
afe098e5b1 | ||
|
|
6329d1bdac | ||
|
|
f21af25ce6 | ||
|
|
49e806e157 | ||
|
|
1a18a496b9 | ||
|
|
27d1783587 | ||
|
|
50e9df7094 | ||
|
|
1bc644fb00 | ||
|
|
a650453d94 | ||
|
|
e51223b54a | ||
|
|
c4d4e53ec4 | ||
|
|
6b071c6a0d | ||
|
|
1e72720512 | ||
|
|
81dd9654fb | ||
|
|
192a847f2c | ||
|
|
1a857e4988 | ||
|
|
ea9c11fabf | ||
|
|
b1d0fbbd3e | ||
|
|
03c1416a4a | ||
|
|
03867f4230 | ||
|
|
0aa389aa9e | ||
|
|
4f0d8b5e3c | ||
|
|
f8891bd6e4 | ||
|
|
f004cc0e73 | ||
|
|
8c9f9b6dfc | ||
|
|
b0119f1c7f | ||
|
|
410a5082f1 | ||
|
|
42677b36c1 | ||
|
|
873fbcb557 | ||
|
|
4f80541b9f | ||
|
|
af870e005e | ||
|
|
806d000f22 | ||
|
|
f13530425a | ||
|
|
b81156fc57 | ||
|
|
a02fb890f7 | ||
|
|
f97f0d7342 | ||
|
|
3e7c30d12a | ||
|
|
840b353d03 | ||
|
|
f579406619 | ||
|
|
2d67900657 | ||
|
|
0a94540458 | ||
|
|
c9c198279c | ||
|
|
72f3a7be8d | ||
|
|
de292b2b7b | ||
|
|
a3ed0eaf87 | ||
|
|
bc06091e79 | ||
|
|
de50dd7d15 | ||
|
|
af2773edb9 | ||
|
|
162bb48f01 | ||
|
|
2e8f6f8085 | ||
|
|
69e030b4d0 | ||
|
|
b88ebb300a | ||
|
|
27bbc785d3 | ||
|
|
9d753091f3 | ||
|
|
48ba063fc2 | ||
|
|
2f4fcfef2d | ||
|
|
5035ec43bd | ||
|
|
baa2ede612 | ||
|
|
864ee52173 | ||
|
|
8062a01269 | ||
|
|
249a3f27e7 | ||
|
|
9f00ff76ed | ||
|
|
133ecf4fb4 | ||
|
|
f230ea7fea | ||
|
|
1721b78913 | ||
|
|
638b7a1c9f | ||
|
|
32b1597ca5 | ||
|
|
2b00f833dd | ||
|
|
17a1d29d6a | ||
|
|
20e150228c | ||
|
|
ac63ab4b36 | ||
|
|
e18d286e8a | ||
|
|
7ad4130ef7 | ||
|
|
8462799667 | ||
|
|
4701fdfccc | ||
|
|
943b13b8d4 | ||
|
|
65e9153a2d | ||
|
|
459df00cd2 | ||
|
|
f5856e6fa2 | ||
|
|
92ed1ff8e1 | ||
|
|
8fa89f5067 | ||
|
|
168d8a7fbc | ||
|
|
653aeef460 | ||
|
|
cf424e9bb6 | ||
|
|
91bd401a8a | ||
|
|
6fdb44c687 | ||
|
|
cf7692240d | ||
|
|
6e47fe799c | ||
|
|
42ff1af2d6 | ||
|
|
8d0aa17ba5 | ||
|
|
ab1ed20821 | ||
|
|
3240e20641 | ||
|
|
536376fa5e | ||
|
|
f0e269c618 | ||
|
|
7e9f8c5dbb | ||
|
|
4932cae85f | ||
|
|
c415360566 | ||
|
|
17a2270508 | ||
|
|
ef1cc5f9cd | ||
|
|
75a86ed7f4 | ||
|
|
7f19d24bac | ||
|
|
10079ba74d | ||
|
|
7662f86c47 | ||
|
|
7b20eb3401 | ||
|
|
c15b2940b6 | ||
|
|
e90c4801a7 | ||
|
|
2ddde64205 | ||
|
|
3b636d2540 | ||
|
|
e05f714691 | ||
|
|
dec6008d10 | ||
|
|
48f8bf3ea2 | ||
|
|
01ae463c67 | ||
|
|
0bd5327b43 | ||
|
|
1b6d8d6c52 | ||
|
|
4053702758 | ||
|
|
d87d1f4e82 | ||
|
|
e58b47e456 | ||
|
|
5c72d915ee | ||
|
|
d964f2f6b1 | ||
|
|
eb2143d3ec | ||
|
|
578dc94e3b | ||
|
|
c7a620c4d5 | ||
|
|
19fdc2ac35 | ||
|
|
b1314eb6ef | ||
|
|
a34f802ff7 | ||
|
|
ca6d59d7c5 | ||
|
|
3eb9e122a4 | ||
|
|
986b7a82b3 | ||
|
|
5689daf864 | ||
|
|
652448f5f1 | ||
|
|
36d86aa87e | ||
|
|
335aa2d5b3 | ||
|
|
416aa821f5 | ||
|
|
b2e827f4e9 | ||
|
|
63ae28fff1 | ||
|
|
f48b3f4ef9 | ||
|
|
d08958619e | ||
|
|
12897e61cb | ||
|
|
95603951fc | ||
|
|
352034d9eb | ||
|
|
cd2eb0e39b | ||
|
|
0d990898b8 | ||
|
|
26c82b5551 | ||
|
|
1b29e56d12 | ||
|
|
03e1f95d49 | ||
|
|
ff42549897 | ||
|
|
af9900cefd | ||
|
|
6ce4bb739c | ||
|
|
5c60c1b62e | ||
|
|
7b6577f41c | ||
|
|
dc619974ed | ||
|
|
054c1151b2 | ||
|
|
d6cb3ac273 | ||
|
|
7dbc1af76f | ||
|
|
4c718eb91c | ||
|
|
73cf0fc36d | ||
|
|
f708e19d1b | ||
|
|
722e3808a9 | ||
|
|
03273cc93f | ||
|
|
3c3964fd8e | ||
|
|
d2e4c69aee | ||
|
|
6fe8b6f3bd | ||
|
|
cf69537d1b | ||
|
|
738a32f9b1 | ||
|
|
40c59cd52d | ||
|
|
a08a0afcfd | ||
|
|
5ea1e97032 | ||
|
|
cbd320c926 | ||
|
|
2c54d37270 | ||
|
|
711701c28b | ||
|
|
5e9d4d7286 | ||
|
|
23226c53bd | ||
|
|
fe7349c7e5 | ||
|
|
feb310aa89 | ||
|
|
20128ad02d | ||
|
|
2a4490f44c | ||
|
|
bb9febe0a0 | ||
|
|
9907c9bee2 | ||
|
|
43ad6b274e | ||
|
|
b07acdb03d | ||
|
|
19f4e09e2d | ||
|
|
af34379a3c | ||
|
|
42c3b95382 | ||
|
|
a1df2c2944 | ||
|
|
6d88bb9d9a | ||
|
|
9c34174d45 | ||
|
|
30abd4a7fe | ||
|
|
74499bb611 | ||
|
|
444bfae32e | ||
|
|
87a2149139 | ||
|
|
6dd68e0df8 | ||
|
|
d50571ecc4 | ||
|
|
53382a8734 | ||
|
|
c7f8f2060c | ||
|
|
80a1ca487a | ||
|
|
ec6359d7ad | ||
|
|
67a4a1abfb | ||
|
|
9c1ac176ca | ||
|
|
3e6fb93f20 | ||
|
|
43ab8bf4fd | ||
|
|
cc6bee23a5 | ||
|
|
808b2d7d2d | ||
|
|
e23a233e55 | ||
|
|
bd5c864557 | ||
|
|
37514f62de | ||
|
|
f6ac7b7863 | ||
|
|
da525aeb50 | ||
|
|
972ef91f57 | ||
|
|
cca8cb4386 | ||
|
|
7fa0bf1d92 | ||
|
|
85a7df32ea | ||
|
|
91d8dcfc8b | ||
|
|
ce2d766de6 | ||
|
|
017eeb40dc | ||
|
|
7140a4dfb1 | ||
|
|
2ca5030b08 | ||
|
|
d8d263c7f0 | ||
|
|
50f5056f7d | ||
|
|
78e556279e | ||
|
|
e4a2221a93 | ||
|
|
bf345cff03 | ||
|
|
950fb7e8b2 | ||
|
|
a1fd96f11d | ||
|
|
bc43bfe578 | ||
|
|
3b2e1da63f |
No files matched your search
Executable
+12
@@ -0,0 +1,12 @@
|
||||
|
||||
# Ignore everything
|
||||
*
|
||||
|
||||
# But not these files:
|
||||
!.gitignore
|
||||
!*.mod
|
||||
!README.md
|
||||
!Variables.mk
|
||||
!variables.env
|
||||
|
||||
*tmp.mod
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
# Project Development Dependencies.
|
||||
|
||||
This directory stores Go modules with pinned buildable packages that are used within this repository, managed by https://github.com/bwplotka/bingo.
|
||||
|
||||
* Run `bingo get` to install all tools having each own module file in this directory.
|
||||
* Run `bingo get <tool>` to install <tool> that have own module file in this directory.
|
||||
* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $(<upper case tool name>) variable where <tool> is the .bingo/<tool>.mod.
|
||||
* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool.
|
||||
* For go: Import `.bingo/variables.go` to for variable names.
|
||||
* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies.
|
||||
|
||||
## Requirements
|
||||
|
||||
* Go 1.14+
|
||||
@@ -0,0 +1,114 @@
|
||||
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.1. DO NOT EDIT.
|
||||
# All tools are designed to be build inside $GOBIN.
|
||||
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
||||
GOPATH ?= $(shell go env GOPATH)
|
||||
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
|
||||
GO ?= $(shell which go)
|
||||
|
||||
# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version
|
||||
# will be used; reinstalling only if needed.
|
||||
# For example for bingo variable:
|
||||
#
|
||||
# In your main Makefile (for non array binaries):
|
||||
#
|
||||
#include .bingo/Variables.mk # Assuming -dir was set to .bingo .
|
||||
#
|
||||
#command: $(BINGO)
|
||||
# @echo "Running bingo"
|
||||
# @$(BINGO) <flags/args..>
|
||||
#
|
||||
BINGO := $(GOBIN)/bingo-v0.3.1
|
||||
$(BINGO): $(BINGO_DIR)/bingo.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/bingo-v0.3.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.3.1 "github.com/bwplotka/bingo"
|
||||
|
||||
BUF := $(GOBIN)/buf-v0.37.1
|
||||
$(BUF): $(BINGO_DIR)/buf.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/buf-v0.37.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v0.37.1 "github.com/bufbuild/buf/cmd/buf"
|
||||
|
||||
CALENS := $(GOBIN)/calens-v0.2.0
|
||||
$(CALENS): $(BINGO_DIR)/calens.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/calens-v0.2.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=calens.mod -o=$(GOBIN)/calens-v0.2.0 "github.com/restic/calens"
|
||||
|
||||
FILEB0X := $(GOBIN)/fileb0x-v1.1.4
|
||||
$(FILEB0X): $(BINGO_DIR)/fileb0x.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/fileb0x-v1.1.4"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=fileb0x.mod -o=$(GOBIN)/fileb0x-v1.1.4 "github.com/UnnoTed/fileb0x"
|
||||
|
||||
FLAEX := $(GOBIN)/flaex-v0.2.0
|
||||
$(FLAEX): $(BINGO_DIR)/flaex.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/flaex-v0.2.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=flaex.mod -o=$(GOBIN)/flaex-v0.2.0 "github.com/owncloud/flaex"
|
||||
|
||||
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.37.1
|
||||
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/golangci-lint-v1.37.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.37.1 "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
||||
|
||||
GOVERAGE := $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5
|
||||
$(GOVERAGE): $(BINGO_DIR)/goverage.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=goverage.mod -o=$(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5 "github.com/haya14busa/goverage"
|
||||
|
||||
GOX := $(GOBIN)/gox-v1.0.1
|
||||
$(GOX): $(BINGO_DIR)/gox.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/gox-v1.0.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=gox.mod -o=$(GOBIN)/gox-v1.0.1 "github.com/mitchellh/gox"
|
||||
|
||||
HUGO := $(GOBIN)/hugo-v0.80.0
|
||||
$(HUGO): $(BINGO_DIR)/hugo.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/hugo-v0.80.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=hugo.mod -o=$(GOBIN)/hugo-v0.80.0 "github.com/gohugoio/hugo"
|
||||
|
||||
MUTAGEN := $(GOBIN)/mutagen-v0.11.8
|
||||
$(MUTAGEN): $(BINGO_DIR)/mutagen.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/mutagen-v0.11.8"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=mutagen.mod -o=$(GOBIN)/mutagen-v0.11.8 "github.com/mutagen-io/mutagen/cmd/mutagen"
|
||||
|
||||
PROTOC_GEN_DOC := $(GOBIN)/protoc-gen-doc-v1.4.1
|
||||
$(PROTOC_GEN_DOC): $(BINGO_DIR)/protoc-gen-doc.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-doc-v1.4.1"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-doc.mod -o=$(GOBIN)/protoc-gen-doc-v1.4.1 "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc"
|
||||
|
||||
PROTOC_GEN_GO := $(GOBIN)/protoc-gen-go-v1.25.0
|
||||
$(PROTOC_GEN_GO): $(BINGO_DIR)/protoc-gen-go.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-go-v1.25.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.25.0 "google.golang.org/protobuf/cmd/protoc-gen-go"
|
||||
|
||||
PROTOC_GEN_MICRO := $(GOBIN)/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9
|
||||
$(PROTOC_GEN_MICRO): $(BINGO_DIR)/protoc-gen-micro.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9 "github.com/asim/go-micro/cmd/protoc-gen-micro/v3"
|
||||
|
||||
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4
|
||||
$(PROTOC_GEN_MICROWEB): $(BINGO_DIR)/protoc-gen-microweb.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4 "github.com/owncloud/protoc-gen-microweb"
|
||||
|
||||
PROTOC_GEN_OPENAPIV2 := $(GOBIN)/protoc-gen-openapiv2-v2.2.0
|
||||
$(PROTOC_GEN_OPENAPIV2): $(BINGO_DIR)/protoc-gen-openapiv2.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-openapiv2-v2.2.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=protoc-gen-openapiv2.mod -o=$(GOBIN)/protoc-gen-openapiv2-v2.2.0 "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"
|
||||
|
||||
REFLEX := $(GOBIN)/reflex-v0.3.0
|
||||
$(REFLEX): $(BINGO_DIR)/reflex.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/reflex-v0.3.0"
|
||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=reflex.mod -o=$(GOBIN)/reflex-v0.3.0 "github.com/cespare/reflex"
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/bwplotka/bingo v0.3.1
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/bufbuild/buf v0.37.1 // cmd/buf
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/restic/calens v0.2.0
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/UnnoTed/fileb0x v1.1.4
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/owncloud/flaex v0.2.0
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files.
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/golangci/golangci-lint v1.37.1 // cmd/golangci-lint
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/haya14busa/goverage v0.0.0-20180129164344-eec3514a20b5
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/mitchellh/gox v1.0.1
|
||||
@@ -0,0 +1,7 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
replace github.com/markbates/inflect => github.com/markbates/inflect v0.0.0-20171215194931-a12c3aec81a6
|
||||
|
||||
require github.com/gohugoio/hugo v0.80.0
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/mutagen-io/mutagen v0.11.8 // cmd/mutagen
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/pseudomuto/protoc-gen-doc v1.4.1 // cmd/protoc-gen-doc
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require google.golang.org/protobuf v1.25.0 // cmd/protoc-gen-go
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/asim/go-micro/cmd/protoc-gen-micro/v3 v3.0.0-20210217182006-0f0ace1a44a9
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/owncloud/protoc-gen-microweb v0.0.0-20210224131655-d9b1137a84d4
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0 // protoc-gen-openapiv2
|
||||
@@ -0,0 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.15
|
||||
|
||||
require github.com/cespare/reflex v0.3.0
|
||||
@@ -0,0 +1,41 @@
|
||||
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.1. DO NOT EDIT.
|
||||
# All tools are designed to be build inside $GOBIN.
|
||||
# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk.
|
||||
GOBIN=${GOBIN:=$(go env GOBIN)}
|
||||
|
||||
if [ -z "$GOBIN" ]; then
|
||||
GOBIN="$(go env GOPATH)/bin"
|
||||
fi
|
||||
|
||||
|
||||
BINGO="${GOBIN}/bingo-v0.3.1"
|
||||
|
||||
BUF="${GOBIN}/buf-v0.37.1"
|
||||
|
||||
CALENS="${GOBIN}/calens-v0.2.0"
|
||||
|
||||
FILEB0X="${GOBIN}/fileb0x-v1.1.4"
|
||||
|
||||
FLAEX="${GOBIN}/flaex-v0.2.0"
|
||||
|
||||
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.37.1"
|
||||
|
||||
GOVERAGE="${GOBIN}/goverage-v0.0.0-20180129164344-eec3514a20b5"
|
||||
|
||||
GOX="${GOBIN}/gox-v1.0.1"
|
||||
|
||||
HUGO="${GOBIN}/hugo-v0.80.0"
|
||||
|
||||
MUTAGEN="${GOBIN}/mutagen-v0.11.8"
|
||||
|
||||
PROTOC_GEN_DOC="${GOBIN}/protoc-gen-doc-v1.4.1"
|
||||
|
||||
PROTOC_GEN_GO="${GOBIN}/protoc-gen-go-v1.25.0"
|
||||
|
||||
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v3.0.0-20210217182006-0f0ace1a44a9"
|
||||
|
||||
PROTOC_GEN_MICROWEB="${GOBIN}/protoc-gen-microweb-v0.0.0-20210224131655-d9b1137a84d4"
|
||||
|
||||
PROTOC_GEN_OPENAPIV2="${GOBIN}/protoc-gen-openapiv2-v2.2.0"
|
||||
|
||||
REFLEX="${GOBIN}/reflex-v0.3.0"
|
||||
+3
-2
@@ -1,5 +1,6 @@
|
||||
---
|
||||
exclude_paths:
|
||||
- '.github/**'
|
||||
- 'CHANGELOG.md'
|
||||
- '**/CHANGELOG.md'
|
||||
- 'changelog/**'
|
||||
@@ -7,8 +8,8 @@ exclude_paths:
|
||||
- 'docs/**'
|
||||
- '**/docs/**'
|
||||
- '**/pkg/proto/**'
|
||||
- 'konnectd/ui_config/**'
|
||||
- 'konnectd/scripts/**'
|
||||
- 'idp/ui_config/**'
|
||||
- 'idp/scripts/**'
|
||||
- 'settings/rollup.config.js'
|
||||
- 'accounts/rollup.config.js'
|
||||
- 'ocis/docker/eos-ocis/Dockerfile'
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# The test runner source for API tests
|
||||
CORE_COMMITID=90edbb40800b36fadc4aba6216a3fd16b559f1e3
|
||||
CORE_BRANCH=master
|
||||
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=da869f4cb36ea0a28ead87e57a61d7bbb639aab0
|
||||
WEB_BRANCH=master
|
||||
+251
-254
@@ -1,28 +1,27 @@
|
||||
config = {
|
||||
'modules': {
|
||||
'accounts': 'frontend',
|
||||
'glauth':'',
|
||||
'konnectd':'',
|
||||
'ocis': '',
|
||||
'web':'',
|
||||
'ocis-pkg':'',
|
||||
'ocs':'',
|
||||
'proxy':'',
|
||||
'settings':'frontend',
|
||||
'storage':'',
|
||||
'store':'',
|
||||
'thumbnails':'',
|
||||
'webdav':'',
|
||||
'onlyoffice':'frontend'
|
||||
},
|
||||
'modules': [
|
||||
# if you add a module here please also add it to the root level Makefile
|
||||
'accounts',
|
||||
'glauth',
|
||||
'graph-explorer',
|
||||
'graph',
|
||||
'idp',
|
||||
'ocis-pkg',
|
||||
'ocis',
|
||||
'ocs',
|
||||
'onlyoffice',
|
||||
'proxy',
|
||||
'settings',
|
||||
'storage',
|
||||
'store',
|
||||
'thumbnails',
|
||||
'web',
|
||||
'webdav',
|
||||
],
|
||||
'apiTests': {
|
||||
'coreBranch': 'master',
|
||||
'coreCommit': '27eaa32d777052d1d210647cd38895e647c48fed',
|
||||
'numberOfParts': 10
|
||||
},
|
||||
'uiTests': {
|
||||
'webBranch': 'master',
|
||||
'webCommit': '5dae1886973ddbab0243e364800fa207fb716a20',
|
||||
'suites': {
|
||||
'webUIBasic': [
|
||||
'webUILogin',
|
||||
@@ -189,45 +188,42 @@ def main(ctx):
|
||||
build_release_helpers = [
|
||||
changelog(ctx),
|
||||
docs(ctx),
|
||||
refreshDockerBadges(ctx),
|
||||
updateDeployment(ctx),
|
||||
refreshDockerBadges(ctx)
|
||||
]
|
||||
|
||||
if ctx.build.event == "cron":
|
||||
pipelines = test_pipelines + [
|
||||
benchmark(ctx),
|
||||
pipelineDependsOn(
|
||||
purgeBuildArtifactCache(ctx, 'ocis-binary-amd64'),
|
||||
testPipelines(ctx) + [benchmark(ctx)]
|
||||
testPipelines(ctx)
|
||||
)
|
||||
]
|
||||
] + example_deploys(ctx)
|
||||
|
||||
elif \
|
||||
(ctx.build.event == "pull" and '[docs-only]' in ctx.build.title) \
|
||||
(ctx.build.event == "pull_request" and '[docs-only]' in ctx.build.title) \
|
||||
or \
|
||||
(ctx.build.event != "pull" and '[docs-only]' in (ctx.build.title + ctx.build.message)):
|
||||
(ctx.build.event != "pull_request" and '[docs-only]' in (ctx.build.title + ctx.build.message)):
|
||||
# [docs-only] is not taken from PR messages, but from commit messages
|
||||
pipelines = [docs(ctx)]
|
||||
|
||||
else:
|
||||
if '[with-benchmarks]' in (ctx.build.title + ctx.build.message):
|
||||
test_pipelines += [
|
||||
benchmark(ctx),
|
||||
test_pipelines.append(
|
||||
pipelineDependsOn(
|
||||
purgeBuildArtifactCache(ctx, 'ocis-binary-amd64'),
|
||||
testPipelines(ctx) + [benchmark(ctx)]
|
||||
)
|
||||
]
|
||||
else:
|
||||
test_pipelines.append(
|
||||
pipelineDependsOn(
|
||||
purgeBuildArtifactCache(ctx, 'ocis-binary-amd64'),
|
||||
testPipelines(ctx)
|
||||
)
|
||||
testPipelines(ctx)
|
||||
)
|
||||
)
|
||||
|
||||
pipelines = test_pipelines + build_release_pipelines + build_release_helpers
|
||||
|
||||
|
||||
pipelines = \
|
||||
pipelines + \
|
||||
pipelinesDependsOn(
|
||||
example_deploys(ctx),
|
||||
pipelines
|
||||
)
|
||||
|
||||
# always append notification step
|
||||
pipelines.append(
|
||||
pipelineDependsOn(
|
||||
@@ -244,76 +240,61 @@ def testOcisModules(ctx):
|
||||
for module in config['modules']:
|
||||
pipelines.append(testOcisModule(ctx, module))
|
||||
|
||||
coverage_upload = uploadCoverage(ctx)
|
||||
coverage_upload['depends_on'] = getPipelineNames(pipelines)
|
||||
scan_result_upload = uploadScanResults(ctx)
|
||||
scan_result_upload['depends_on'] = getPipelineNames(pipelines)
|
||||
|
||||
return pipelines + [coverage_upload]
|
||||
return pipelines + [scan_result_upload]
|
||||
|
||||
def testPipelines(ctx):
|
||||
pipelines = [
|
||||
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'owncloud', 'apiOcisSpecific'),
|
||||
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'ocis', 'apiOcisSpecific'),
|
||||
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'owncloud', 'apiBasic', 'default'),
|
||||
localApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], 'ocis', 'apiBasic', 'default')
|
||||
localApiTests(ctx, 'owncloud', 'apiBugDemonstration'),
|
||||
localApiTests(ctx, 'ocis', 'apiBugDemonstration'),
|
||||
localApiTests(ctx, 'owncloud', 'apiAccountsHashDifficulty', 'default'),
|
||||
localApiTests(ctx, 'ocis', 'apiAccountsHashDifficulty', 'default')
|
||||
]
|
||||
|
||||
for runPart in range(1, config['apiTests']['numberOfParts'] + 1):
|
||||
pipelines.append(coreApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], runPart, config['apiTests']['numberOfParts'], 'owncloud'))
|
||||
pipelines.append(coreApiTests(ctx, config['apiTests']['coreBranch'], config['apiTests']['coreCommit'], runPart, config['apiTests']['numberOfParts'], 'ocis'))
|
||||
pipelines.append(coreApiTests(ctx, runPart, config['apiTests']['numberOfParts'], 'owncloud'))
|
||||
pipelines.append(coreApiTests(ctx, runPart, config['apiTests']['numberOfParts'], 'ocis'))
|
||||
|
||||
pipelines += uiTests(ctx, config['uiTests']['webBranch'], config['uiTests']['webCommit'])
|
||||
pipelines.append(accountsUITests(ctx, config['uiTests']['webBranch'], config['uiTests']['webCommit']))
|
||||
pipelines += uiTests(ctx)
|
||||
pipelines.append(accountsUITests(ctx))
|
||||
return pipelines
|
||||
|
||||
def testOcisModule(ctx, module):
|
||||
steps = makeGenerate(module) + [
|
||||
{
|
||||
'name': 'vet',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'name': 'golangci-lint',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'make -C %s vet' % (module),
|
||||
],
|
||||
'volumes': [stepVolumeGoWebhippie,],
|
||||
},
|
||||
{
|
||||
'name': 'staticcheck',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'make -C %s staticcheck' % (module),
|
||||
],
|
||||
'volumes': [stepVolumeGoWebhippie,],
|
||||
},
|
||||
{
|
||||
'name': 'lint',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'make -C %s lint' % (module),
|
||||
'mkdir -p cache/checkstyle',
|
||||
'make -C %s ci-golangci-lint' % (module),
|
||||
'mv %s/checkstyle.xml cache/checkstyle/%s_checkstyle.xml' % (module, module),
|
||||
],
|
||||
'volumes': [stepVolumeGoWebhippie,],
|
||||
},
|
||||
{
|
||||
'name': 'test',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'mkdir -p cache/coverage',
|
||||
'make -C %s test' % (module),
|
||||
'mv %s/coverage.out %s_coverage.out' % (module, module),
|
||||
'mv %s/coverage.out cache/coverage/%s_coverage.out' % (module, module),
|
||||
],
|
||||
'volumes': [stepVolumeGoWebhippie,],
|
||||
},
|
||||
{
|
||||
'name': 'coverage-cache',
|
||||
'image': 'plugins/s3',
|
||||
'name': 'scan-result-cache',
|
||||
'image': 'plugins/s3:1',
|
||||
'settings': {
|
||||
'endpoint': {
|
||||
'from_secret': 'cache_s3_endpoint'
|
||||
},
|
||||
'bucket': 'cache',
|
||||
'source': '%s_coverage.out' % (module),
|
||||
'target': '%s/%s/coverage' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
|
||||
'source': 'cache/**/*',
|
||||
'target': '%s/%s' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
|
||||
'path_style': True,
|
||||
'access_key': {
|
||||
'from_secret': 'cache_s3_access_key'
|
||||
@@ -325,9 +306,6 @@ def testOcisModule(ctx, module):
|
||||
}
|
||||
]
|
||||
|
||||
if config['modules'][module] == 'frontend':
|
||||
steps = frontend(module) + steps
|
||||
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
@@ -358,7 +336,7 @@ def buildOcisBinaryForTesting(ctx):
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
makeGenerate('ocis') +
|
||||
makeGenerate('') +
|
||||
build() +
|
||||
rebuildBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis'),
|
||||
'trigger': {
|
||||
@@ -371,27 +349,52 @@ def buildOcisBinaryForTesting(ctx):
|
||||
'volumes': [pipelineVolumeGoWebhippie],
|
||||
}
|
||||
|
||||
def uploadCoverage(ctx):
|
||||
def uploadScanResults(ctx):
|
||||
sonar_env = {
|
||||
'SONAR_TOKEN': {
|
||||
'from_secret': 'sonar_token',
|
||||
},
|
||||
}
|
||||
if ctx.build.event == "pull_request":
|
||||
sonar_env.update({
|
||||
'SONAR_PULL_REQUEST_BASE': '%s' % (ctx.build.target),
|
||||
'SONAR_PULL_REQUEST_BRANCH': '%s' % (ctx.build.source),
|
||||
'SONAR_PULL_REQUEST_KEY': '%s' % (ctx.build.ref.replace("refs/pull/", "").split("/")[0]),
|
||||
})
|
||||
|
||||
repo_slug = ctx.build.source_repo if ctx.build.source_repo else ctx.repo.slug
|
||||
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
'name': 'upload-coverage',
|
||||
'name': 'upload-scan-results',
|
||||
'platform': {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'clone': {
|
||||
'disable': True, # Sonarcloud does not apply issues on already merged branch
|
||||
},
|
||||
'steps': [
|
||||
{
|
||||
'name': 'clone',
|
||||
'image': 'alpine/git',
|
||||
'commands': [
|
||||
'git clone https://github.com/%s.git .' % (repo_slug),
|
||||
'git checkout $DRONE_COMMIT',
|
||||
],
|
||||
},
|
||||
{
|
||||
'name': 'sync-from-cache',
|
||||
'image': 'minio/mc',
|
||||
'image': 'minio/mc:RELEASE.2021-02-19T05-34-40Z',
|
||||
'environment': {
|
||||
'MC_HOST_cache': {
|
||||
'MC_HOST_cachebucket': {
|
||||
'from_secret': 'cache_s3_connection_url'
|
||||
}
|
||||
},
|
||||
'commands': [
|
||||
'mkdir -p coverage',
|
||||
'mc mirror cache/cache/%s/%s/coverage coverage/' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
|
||||
'mkdir -p cache',
|
||||
'mc mirror cachebucket/cache/%s/%s/cache cache/' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -408,25 +411,18 @@ def uploadCoverage(ctx):
|
||||
'name': 'sonarcloud',
|
||||
'image': 'sonarsource/sonar-scanner-cli',
|
||||
'pull': 'always',
|
||||
'environment': {
|
||||
'SONAR_TOKEN': {
|
||||
'from_secret': 'sonar_token',
|
||||
},
|
||||
'SONAR_PULL_REQUEST_BASE': '%s' % ('master' if ctx.build.event == 'pull_request' else None),
|
||||
'SONAR_PULL_REQUEST_BRANCH': '%s' % (ctx.build.source if ctx.build.event == 'pull_request' else None),
|
||||
'SONAR_PULL_REQUEST_KEY': '%s' % (ctx.build.ref.replace("refs/pull/", "").split("/")[0] if ctx.build.event == 'pull_request' else None),
|
||||
},
|
||||
'environment': sonar_env,
|
||||
},
|
||||
{
|
||||
'name': 'purge-cache',
|
||||
'image': 'minio/mc',
|
||||
'image': 'minio/mc:RELEASE.2020-12-10T01-26-17Z',
|
||||
'environment': {
|
||||
'MC_HOST_cache': {
|
||||
'MC_HOST_cachebucket': {
|
||||
'from_secret': 'cache_s3_connection_url'
|
||||
}
|
||||
},
|
||||
'commands': [
|
||||
'mc rm --recursive --force cache/cache/%s/%s/coverage' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
|
||||
'mc rm --recursive --force cachebucket/cache/%s/%s/cache' % (ctx.repo.slug, ctx.build.commit + '-${DRONE_BUILD_NUMBER}'),
|
||||
]
|
||||
},
|
||||
],
|
||||
@@ -439,7 +435,7 @@ def uploadCoverage(ctx):
|
||||
},
|
||||
}
|
||||
|
||||
def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'owncloud', suite = 'apiOcisSpecific', accounts_hash_difficulty = 4):
|
||||
def localApiTests(ctx, storage = 'owncloud', suite = 'apiBugDemonstration', accounts_hash_difficulty = 4):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
@@ -451,7 +447,7 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
|
||||
'steps':
|
||||
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
|
||||
ocisServer(storage, accounts_hash_difficulty, [stepVolumeOC10Tests]) +
|
||||
cloneCoreRepos(coreBranch, coreCommit) + [
|
||||
cloneCoreRepos() + [
|
||||
{
|
||||
'name': 'localApiTests-%s-%s' % (suite, storage),
|
||||
'image': 'owncloudci/php:7.4',
|
||||
@@ -486,7 +482,7 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
|
||||
'volumes': [pipelineVolumeOC10Tests],
|
||||
}
|
||||
|
||||
def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, number_of_parts = 1, storage = 'owncloud', accounts_hash_difficulty = 4):
|
||||
def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = 'owncloud', accounts_hash_difficulty = 4):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
@@ -498,7 +494,7 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
|
||||
'steps':
|
||||
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
|
||||
ocisServer(storage, accounts_hash_difficulty, [stepVolumeOC10Tests]) +
|
||||
cloneCoreRepos(coreBranch, coreCommit) + [
|
||||
cloneCoreRepos() + [
|
||||
{
|
||||
'name': 'oC10ApiTests-%s-storage-%s' % (storage, part_number),
|
||||
'image': 'owncloudci/php:7.4',
|
||||
@@ -513,7 +509,7 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
|
||||
'BEHAT_FILTER_TAGS': '~@notToImplementOnOCIS&&~@toImplementOnOCIS&&~comments-app-required&&~@federation-app-required&&~@notifications-app-required&&~systemtags-app-required&&~@local_storage&&~@skipOnOcis-%s-Storage' % ('OC' if storage == 'owncloud' else 'OCIS'),
|
||||
'DIVIDE_INTO_NUM_PARTS': number_of_parts,
|
||||
'RUN_PART': part_number,
|
||||
'EXPECTED_FAILURES_FILE': '/drone/src/tests/acceptance/expected-failures-on-%s-storage.txt' % (storage.upper()),
|
||||
'EXPECTED_FAILURES_FILE': '/drone/src/tests/acceptance/expected-failures-API-on-%s-storage.md' % (storage.upper()),
|
||||
},
|
||||
'commands': [
|
||||
'make -C /srv/app/testrunner test-acceptance-api',
|
||||
@@ -534,57 +530,11 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
|
||||
'volumes': [pipelineVolumeOC10Tests],
|
||||
}
|
||||
|
||||
def benchmark(ctx):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
'name': 'benchmark',
|
||||
'failure': 'ignore',
|
||||
'platform': {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
|
||||
ocisServer('ocis') + [
|
||||
{
|
||||
'name': 'build benchmarks',
|
||||
'image': 'node',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd tests/k6',
|
||||
'yarn',
|
||||
'yarn build',
|
||||
],
|
||||
},
|
||||
{
|
||||
'name': 'run benchmarks',
|
||||
'image': 'loadimpact/k6',
|
||||
'pull': 'always',
|
||||
'environment': {
|
||||
'OC_HOST': 'https://ocis-server:9200',
|
||||
},
|
||||
'commands': [
|
||||
'cd tests/k6',
|
||||
'for f in ./dist/test-* ; do k6 run "$f" -q; done',
|
||||
],
|
||||
},
|
||||
],
|
||||
'depends_on': getPipelineNames([buildOcisBinaryForTesting(ctx)]),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
'refs/tags/v*',
|
||||
'refs/pull/**',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
def uiTests(ctx, webBranch, webCommit):
|
||||
def uiTests(ctx):
|
||||
suiteNames = config['uiTests']['suites'].keys()
|
||||
return [uiTestPipeline(ctx, suiteName, webBranch, webCommit) for suiteName in suiteNames]
|
||||
return [uiTestPipeline(ctx, suiteName) for suiteName in suiteNames]
|
||||
|
||||
def uiTestPipeline(ctx, suiteName, webBranch = 'master', webCommit = '', storage = 'owncloud', accounts_hash_difficulty = 4):
|
||||
def uiTestPipeline(ctx, suiteName, storage = 'owncloud', accounts_hash_difficulty = 4):
|
||||
suites = config['uiTests']['suites']
|
||||
paths = ""
|
||||
suite = suites[suiteName]
|
||||
@@ -616,21 +566,22 @@ def uiTestPipeline(ctx, suiteName, webBranch = 'master', webCommit = '', storage
|
||||
'OCIS_REVA_DATA_ROOT': '/srv/app/tmp/ocis/owncloud/data',
|
||||
'OCIS_SKELETON_DIR': '/srv/app/testing/data/webUISkeleton',
|
||||
'WEB_UI_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
|
||||
'TEST_TAGS': 'not @skipOnOCIS and not @skip',
|
||||
'TEST_TAGS': 'not @skipOnOCIS and not @skip and not @notToImplementOnOCIS',
|
||||
'LOCAL_UPLOAD_DIR': '/uploads',
|
||||
'NODE_TLS_REJECT_UNAUTHORIZED': 0,
|
||||
'TEST_PATHS': paths,
|
||||
'EXPECTED_FAILURES_FILE': '/drone/src/tests/acceptance/expected-failures-webUI-on-%s-storage.md' % (storage.upper()),
|
||||
},
|
||||
'commands': [
|
||||
'source /drone/src/.drone.env',
|
||||
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/testing',
|
||||
'git clone -b %s --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web' % (webBranch),
|
||||
'git clone -b $WEB_BRANCH --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web',
|
||||
'cd /srv/app/web',
|
||||
] + ([
|
||||
'git checkout %s' % (webCommit)
|
||||
] if webCommit != '' else []) + [
|
||||
'git checkout $WEB_COMMITID',
|
||||
'cp -r tests/acceptance/filesForUpload/* /uploads',
|
||||
'yarn install-all',
|
||||
'yarn run acceptance-tests-drone'
|
||||
'yarn install --all',
|
||||
'yarn build',
|
||||
'./tests/acceptance/run.sh'
|
||||
],
|
||||
'volumes':
|
||||
[stepVolumeOC10Tests] +
|
||||
@@ -659,7 +610,7 @@ def uiTestPipeline(ctx, suiteName, webBranch = 'master', webCommit = '', storage
|
||||
},
|
||||
}
|
||||
|
||||
def accountsUITests(ctx, webBranch, webCommit, storage = 'owncloud', accounts_hash_difficulty = 4):
|
||||
def accountsUITests(ctx, storage = 'owncloud', accounts_hash_difficulty = 4):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
@@ -689,14 +640,14 @@ def accountsUITests(ctx, webBranch, webCommit, storage = 'owncloud', accounts_ha
|
||||
'FEATURE_PATH': '/drone/src/accounts/ui/tests/acceptance/features',
|
||||
},
|
||||
'commands': [
|
||||
'source /drone/src/.drone.env',
|
||||
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/testing',
|
||||
'git clone -b %s --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web' % (webBranch),
|
||||
'git clone -b $WEB_BRANCH --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web',
|
||||
'cd /srv/app/web',
|
||||
] + ([
|
||||
'git checkout %s' % (webCommit)
|
||||
] if webCommit != '' else []) + [
|
||||
'git checkout $WEB_COMMITID',
|
||||
'cp -r tests/acceptance/filesForUpload/* /uploads',
|
||||
'yarn install-all',
|
||||
'yarn install --all',
|
||||
'yarn build',
|
||||
'cd /drone/src/accounts',
|
||||
'yarn install --all',
|
||||
'make test-acceptance-webui'
|
||||
@@ -744,6 +695,11 @@ def dockerReleases(ctx):
|
||||
return pipelines
|
||||
|
||||
def dockerRelease(ctx, arch):
|
||||
build_args = [
|
||||
'REVISION=%s' % (ctx.build.commit),
|
||||
'VERSION=%s' % (ctx.build.ref.replace("refs/tags/", "") if ctx.build.event == "tag" else "latest")
|
||||
]
|
||||
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
@@ -753,11 +709,11 @@ def dockerRelease(ctx, arch):
|
||||
'arch': arch,
|
||||
},
|
||||
'steps':
|
||||
makeGenerate('ocis') +
|
||||
makeGenerate('') +
|
||||
build() + [
|
||||
{
|
||||
'name': 'dryrun',
|
||||
'image': 'plugins/docker:18.09',
|
||||
'image': 'plugins/docker:latest',
|
||||
'pull': 'always',
|
||||
'settings': {
|
||||
'dry_run': True,
|
||||
@@ -765,6 +721,7 @@ def dockerRelease(ctx, arch):
|
||||
'tags': 'linux-%s' % (arch),
|
||||
'dockerfile': 'ocis/docker/Dockerfile.linux.%s' % (arch),
|
||||
'repo': ctx.repo.slug,
|
||||
'build_args': build_args,
|
||||
},
|
||||
'when': {
|
||||
'ref': {
|
||||
@@ -776,7 +733,7 @@ def dockerRelease(ctx, arch):
|
||||
},
|
||||
{
|
||||
'name': 'docker',
|
||||
'image': 'plugins/docker:18.09',
|
||||
'image': 'plugins/docker:latest',
|
||||
'pull': 'always',
|
||||
'settings': {
|
||||
'username': {
|
||||
@@ -790,6 +747,7 @@ def dockerRelease(ctx, arch):
|
||||
'auto_tag_suffix': 'linux-%s' % (arch),
|
||||
'dockerfile': 'ocis/docker/Dockerfile.linux.%s' % (arch),
|
||||
'repo': ctx.repo.slug,
|
||||
'build_args': build_args,
|
||||
},
|
||||
'when': {
|
||||
'ref': {
|
||||
@@ -825,7 +783,7 @@ def dockerEos(ctx):
|
||||
build() + [
|
||||
{
|
||||
'name': 'dryrun-eos-ocis',
|
||||
'image': 'plugins/docker:18.09',
|
||||
'image': 'plugins/docker:latest',
|
||||
'pull': 'always',
|
||||
'settings': {
|
||||
'dry_run': True,
|
||||
@@ -844,7 +802,7 @@ def dockerEos(ctx):
|
||||
},
|
||||
{
|
||||
'name': 'docker-eos-ocis',
|
||||
'image': 'plugins/docker:18.09',
|
||||
'image': 'plugins/docker:latest',
|
||||
'pull': 'always',
|
||||
'settings': {
|
||||
'username': {
|
||||
@@ -920,10 +878,10 @@ def binaryRelease(ctx, name):
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
makeGenerate('ocis') + [
|
||||
makeGenerate('') + [
|
||||
{
|
||||
'name': 'build',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'make -C ocis release-%s' % (name),
|
||||
@@ -931,7 +889,7 @@ def binaryRelease(ctx, name):
|
||||
},
|
||||
{
|
||||
'name': 'finish',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'make -C ocis release-finish',
|
||||
@@ -957,10 +915,10 @@ def binaryRelease(ctx, name):
|
||||
},
|
||||
{
|
||||
'name': 'changelog',
|
||||
'image': 'toolhippie/calens:latest',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'calens --version %s -o ocis/dist/CHANGELOG.md' % ctx.build.ref.replace("refs/tags/v", "").split("-")[0],
|
||||
'make changelog CHANGELOG_VERSION=%s' % ctx.build.ref.replace("refs/tags/v", "").split("-")[0],
|
||||
],
|
||||
'when': {
|
||||
'ref': [
|
||||
@@ -1094,7 +1052,7 @@ def changelog(ctx):
|
||||
'steps': [
|
||||
{
|
||||
'name': 'generate',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'make -C ocis changelog',
|
||||
@@ -1231,23 +1189,22 @@ def docs(ctx):
|
||||
},
|
||||
'steps': [
|
||||
{
|
||||
'name': 'generate-config-docs',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'commands': ['make -C %s config-docs-generate' % (module) for module in config['modules']],
|
||||
'name': 'docs-generate',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'commands': ['make -C %s docs-generate' % (module) for module in config['modules']],
|
||||
},
|
||||
{
|
||||
'name': 'prepare',
|
||||
'image': 'owncloudci/alpine:latest',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'commands': [
|
||||
'make -C docs docs-copy'
|
||||
],
|
||||
},
|
||||
{
|
||||
'name': 'test',
|
||||
'image': 'owncloudci/hugo:0.71.0',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'commands': [
|
||||
'cd docs/hugo',
|
||||
'hugo',
|
||||
'make -C docs test'
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -1276,13 +1233,13 @@ def docs(ctx):
|
||||
'name': 'list and remove temporary files',
|
||||
'image': 'owncloudci/alpine:latest',
|
||||
'commands': [
|
||||
'tree hugo/public',
|
||||
'tree docs/hugo/public',
|
||||
'rm -rf docs/hugo',
|
||||
],
|
||||
},
|
||||
{
|
||||
'name': 'downstream',
|
||||
'image': 'plugins/downstream',
|
||||
'image': 'plugins/downstream:latest',
|
||||
'settings': {
|
||||
'server': 'https://drone.owncloud.com/',
|
||||
'token': {
|
||||
@@ -1310,51 +1267,31 @@ def docs(ctx):
|
||||
}
|
||||
|
||||
def makeGenerate(module):
|
||||
if module == "":
|
||||
make = "make"
|
||||
else:
|
||||
make = "make -C %s" % (module)
|
||||
return [
|
||||
{
|
||||
'name': 'generate',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'name': 'generate nodejs',
|
||||
'image': 'owncloudci/nodejs:12',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'make -C %s generate' % (module),
|
||||
'%s ci-node-generate' % (make),
|
||||
],
|
||||
'volumes': [stepVolumeGoWebhippie,],
|
||||
},
|
||||
{
|
||||
'name': 'generate go',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'%s ci-go-generate' % (make),
|
||||
],
|
||||
'volumes': [stepVolumeGoWebhippie,],
|
||||
}
|
||||
]
|
||||
|
||||
def updateDeployment(ctx):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
'name': 'updateDeployment',
|
||||
'platform': {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps': [
|
||||
{
|
||||
'name': 'webhook',
|
||||
'image': 'plugins/webhook:1',
|
||||
'settings': {
|
||||
'username': {
|
||||
'from_secret': 'webhook_username',
|
||||
},
|
||||
'password': {
|
||||
'from_secret': 'webhook_password',
|
||||
},
|
||||
'method': 'GET',
|
||||
'urls': 'https://ocis.owncloud.works/hooks/update-ocis',
|
||||
}
|
||||
}
|
||||
],
|
||||
'depends_on': getPipelineNames(dockerReleases(ctx) + binaryReleases(ctx)),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
def notify(ctx):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
@@ -1394,25 +1331,10 @@ def notify(ctx):
|
||||
}
|
||||
}
|
||||
|
||||
def frontend(module):
|
||||
return [
|
||||
{
|
||||
'name': 'frontend',
|
||||
'image': 'webhippie/nodejs:latest',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'cd %s' % (module),
|
||||
'yarn install --frozen-lockfile',
|
||||
'yarn lint',
|
||||
'yarn test',
|
||||
'yarn build',
|
||||
],
|
||||
}
|
||||
]
|
||||
|
||||
def ocisServer(storage, accounts_hash_difficulty = 4, volumes=[]):
|
||||
environment = {
|
||||
#'OCIS_LOG_LEVEL': 'debug',
|
||||
'OCIS_URL': 'https://ocis-server:9200',
|
||||
'STORAGE_HOME_DRIVER': '%s' % (storage),
|
||||
'STORAGE_USERS_DRIVER': '%s' % (storage),
|
||||
'STORAGE_DRIVER_OCIS_ROOT': '/srv/app/tmp/ocis/storage/users',
|
||||
@@ -1420,19 +1342,13 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes=[]):
|
||||
'STORAGE_METADATA_ROOT': '/srv/app/tmp/ocis/metadata',
|
||||
'STORAGE_DRIVER_OWNCLOUD_DATADIR': '/srv/app/tmp/ocis/owncloud/data',
|
||||
'STORAGE_DRIVER_OWNCLOUD_REDIS_ADDR': 'redis:6379',
|
||||
'STORAGE_LDAP_IDP': 'https://ocis-server:9200',
|
||||
'STORAGE_OIDC_ISSUER': 'https://ocis-server:9200',
|
||||
'PROXY_OIDC_ISSUER': 'https://ocis-server:9200',
|
||||
'STORAGE_HOME_DATA_SERVER_URL': 'http://ocis-server:9155/data',
|
||||
'STORAGE_DATAGATEWAY_PUBLIC_URL': 'https://ocis-server:9200/data',
|
||||
'STORAGE_USERS_DATA_SERVER_URL': 'http://ocis-server:9158/data',
|
||||
'STORAGE_FRONTEND_PUBLIC_URL': 'https://ocis-server:9200',
|
||||
'STORAGE_SHARING_USER_JSON_FILE': '/srv/app/tmp/ocis/shares.json',
|
||||
'PROXY_ENABLE_BASIC_AUTH': True,
|
||||
'WEB_UI_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
|
||||
'KONNECTD_IDENTIFIER_REGISTRATION_CONF': '/drone/src/tests/config/drone/identifier-registration.yml',
|
||||
'KONNECTD_ISS': 'https://ocis-server:9200',
|
||||
'KONNECTD_TLS': 'true',
|
||||
'IDP_IDENTIFIER_REGISTRATION_CONF': '/drone/src/tests/config/drone/identifier-registration.yml',
|
||||
'IDP_TLS': 'true',
|
||||
'OCIS_LOG_LEVEL': 'warn',
|
||||
}
|
||||
|
||||
@@ -1466,19 +1382,19 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes=[]):
|
||||
},
|
||||
]
|
||||
|
||||
def cloneCoreRepos(coreBranch, coreCommit):
|
||||
def cloneCoreRepos():
|
||||
return [
|
||||
{
|
||||
'name': 'clone-core-repos',
|
||||
'image': 'owncloudci/php:7.4',
|
||||
'image': 'owncloudci/alpine:latest',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'source /drone/src/.drone.env',
|
||||
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/tmp/testing',
|
||||
'git clone -b %s --single-branch --no-tags https://github.com/owncloud/core.git /srv/app/testrunner' % (coreBranch),
|
||||
'git clone -b $CORE_BRANCH --single-branch --no-tags https://github.com/owncloud/core.git /srv/app/testrunner',
|
||||
'cd /srv/app/testrunner',
|
||||
] + ([
|
||||
'git checkout %s' % (coreCommit)
|
||||
] if coreCommit != '' else []),
|
||||
'git checkout $CORE_COMMITID'
|
||||
],
|
||||
'volumes': [stepVolumeOC10Tests],
|
||||
}
|
||||
]
|
||||
@@ -1499,7 +1415,7 @@ def selenium():
|
||||
return [
|
||||
{
|
||||
'name': 'selenium',
|
||||
'image': 'selenium/standalone-chrome-debug:3.141.59-20200326',
|
||||
'image': 'selenium/standalone-chrome-debug:3.141.59',
|
||||
'pull': 'always',
|
||||
'volumes': [{
|
||||
'name': 'uploads',
|
||||
@@ -1512,7 +1428,7 @@ def build():
|
||||
return [
|
||||
{
|
||||
'name': 'build',
|
||||
'image': 'webhippie/golang:1.14',
|
||||
'image': 'webhippie/golang:1.15',
|
||||
'pull': 'always',
|
||||
'commands': [
|
||||
'make -C ocis build',
|
||||
@@ -1521,6 +1437,87 @@ def build():
|
||||
},
|
||||
]
|
||||
|
||||
def example_deploys(ctx):
|
||||
latest_configs = [
|
||||
'cs3_users_ocis/latest.yml',
|
||||
'ocis_keycloak/latest.yml',
|
||||
'ocis_traefik/latest.yml',
|
||||
]
|
||||
released_configs = [
|
||||
'cs3_users_ocis/released.yml',
|
||||
'ocis_keycloak/released.yml',
|
||||
'ocis_traefik/released.yml',
|
||||
]
|
||||
|
||||
# if on master branch:
|
||||
configs = latest_configs
|
||||
rebuild = "false"
|
||||
|
||||
if ctx.build.event == "tag":
|
||||
configs = released_configs
|
||||
rebuild = 'false'
|
||||
|
||||
if ctx.build.event == "cron":
|
||||
configs = latest_configs + released_configs
|
||||
rebuild = 'true'
|
||||
|
||||
deploys = []
|
||||
for config in configs:
|
||||
deploys.append(deploy(ctx, config, rebuild))
|
||||
|
||||
return deploys
|
||||
|
||||
def deploy(ctx, config, rebuild):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
'name': 'deploy_%s' % (config),
|
||||
'platform': {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps': [
|
||||
{
|
||||
'name': 'clone continuous deployment playbook',
|
||||
'image': 'alpine/git:latest',
|
||||
'commands': [
|
||||
'cd deployments/continuous-deployment-config',
|
||||
'git clone https://github.com/owncloud-devops/continuous-deployment.git',
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'deploy',
|
||||
'image': 'owncloudci/drone-ansible:latest',
|
||||
'failure': 'ignore',
|
||||
'environment': {
|
||||
'CONTINUOUS_DEPLOY_SERVERS_CONFIG': '../%s' % (config),
|
||||
"REBUILD": '%s' % (rebuild),
|
||||
'HCLOUD_API_TOKEN': {
|
||||
'from_secret': 'hcloud_api_token'
|
||||
},
|
||||
'CLOUDFLARE_API_TOKEN': {
|
||||
'from_secret': 'cloudflare_api_token'
|
||||
}
|
||||
},
|
||||
'settings': {
|
||||
'playbook': 'deployments/continuous-deployment-config/continuous-deployment/playbook-all.yml',
|
||||
'galaxy': 'deployments/continuous-deployment-config/continuous-deployment/requirements.yml',
|
||||
'requirements': 'deployments/continuous-deployment-config/continuous-deployment/py-requirements.txt',
|
||||
'inventory': 'localhost',
|
||||
'private_key': {
|
||||
'from_secret': 'ssh_private_key'
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
'refs/tags/v*',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
def genericCache(name, action, mounts, cache_key):
|
||||
rebuild = 'false'
|
||||
restore = 'false'
|
||||
@@ -1570,7 +1567,7 @@ def genericCachePurge(ctx, name, cache_key):
|
||||
'steps': [
|
||||
{
|
||||
'name': 'purge-cache',
|
||||
'image': 'minio/mc',
|
||||
'image': 'minio/mc:RELEASE.2020-12-10T01-26-17Z',
|
||||
'failure': 'ignore',
|
||||
'environment': {
|
||||
'MC_HOST_cache': {
|
||||
|
||||
-9743
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,45 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: Type:Bug
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
## Describe the bug
|
||||
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
## Steps to reproduce
|
||||
|
||||
Steps to reproduce the behavior:
|
||||
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
|
||||
## Expected behavior
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
## Actual behavior
|
||||
A clear and concise description of what happened.
|
||||
|
||||
## Setup
|
||||
|
||||
Please describe how you started the server and provide a list of relevant environment variables.
|
||||
|
||||
<details>
|
||||
<p>
|
||||
|
||||
```console
|
||||
OCIS_VERSION=vX.X.X
|
||||
BRANCH=vX.X.X
|
||||
STORAGE_FRONTEND_UPLOAD_DISABLE_TUS=false
|
||||
```
|
||||
|
||||
</p>
|
||||
</details>
|
||||
|
||||
## Additional context
|
||||
Add any other context about the problem here.
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for improving oCIS
|
||||
title: ''
|
||||
labels: Category:Feature, Topic:needs-triage
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
## Is your feature request related to a problem? Please describe.
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
## Describe the solution you'd like
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
## Describe alternatives you've considered
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
## Additional context
|
||||
Add any other context or screenshots about the feature request here.
|
||||
@@ -0,0 +1,32 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "gomod"
|
||||
directory: "/ocis"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/accounts"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/settings"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/onlyoffice"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/idp"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
<!--
|
||||
Thanks for submitting a change to ownCloud!
|
||||
|
||||
This is the bug tracker for the oCIS component. Find other components at https://github.com/owncloud/core/blob/master/.github/CONTRIBUTING.md#guidelines
|
||||
|
||||
For fixing potential security issues please see https://owncloud.org/security/
|
||||
|
||||
To make it possible for us to get your change reviewed and merged please carefully fill out the requested information below.
|
||||
|
||||
Please note that any kind of change needs first be submitted to the master branch which holds the next version of oCIS.
|
||||
|
||||
Please set the following labels:
|
||||
|
||||
- Set label "Status:Needs-Review" for review or "Status:In-Progress" if the PR still has open tasks.
|
||||
- Assignment: assign to self
|
||||
- Reviewers: pick at least one
|
||||
-->
|
||||
|
||||
## Description
|
||||
<!--- Describe your changes in detail -->
|
||||
|
||||
## Related Issue
|
||||
<!--- This project only accepts pull requests related to open issues -->
|
||||
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
|
||||
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
|
||||
<!--- Please link to the issue here: -->
|
||||
- Fixes <issue_link>
|
||||
|
||||
## Motivation and Context
|
||||
<!--- Why is this change required? What problem does it solve? -->
|
||||
|
||||
## How Has This Been Tested?
|
||||
<!--- Please describe in detail how you tested your changes. -->
|
||||
<!--- Include details of your testing environment, and the tests you ran to -->
|
||||
<!--- see how your change affects other areas of the code, etc. -->
|
||||
- test environment:
|
||||
- test case 1:
|
||||
- test case 2:
|
||||
- ...
|
||||
|
||||
## Screenshots (if appropriate):
|
||||
|
||||
## Types of changes
|
||||
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
|
||||
- [ ] Bug fix (non-breaking change which fixes an issue)
|
||||
- [ ] New feature (non-breaking change which adds functionality)
|
||||
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
|
||||
- [ ] Technical debt
|
||||
- [ ] Tests only (no source changes)
|
||||
|
||||
## Checklist:
|
||||
<!-- Tick the checkboxes when done. -->
|
||||
<!-- Raise documentation ticket in owncloud.github.io/ -->
|
||||
- [ ] Code changes
|
||||
- [ ] Unit tests added
|
||||
- [ ] Acceptance tests added
|
||||
- [ ] Documentation ticket raised: <link>
|
||||
+6
-52
@@ -1,4 +1,6 @@
|
||||
---
|
||||
_extends: gh-labels
|
||||
|
||||
repository:
|
||||
name: ocis
|
||||
description: ':atom_symbol: ownCloud Infinite Scale Stack'
|
||||
@@ -18,58 +20,10 @@ repository:
|
||||
allow_rebase_merge: true
|
||||
|
||||
labels:
|
||||
- name: bug
|
||||
color: d73a4a
|
||||
- name: OCIS-Fastlane
|
||||
color: "#deadbf"
|
||||
description: Something isn't working
|
||||
- name: documentation
|
||||
color: 0075ca
|
||||
description: Improvements or additions to documentation
|
||||
- name: duplicate
|
||||
color: cfd3d7
|
||||
description: This issue or pull request already exists
|
||||
- name: enhancement
|
||||
color: a2eeef
|
||||
description: New feature or request
|
||||
- name: good first issue
|
||||
color: 7057ff
|
||||
description: Good for newcomers
|
||||
- name: help wanted
|
||||
color: 008672
|
||||
description: Extra attention is needed
|
||||
- name: invalid
|
||||
color: e4e669
|
||||
description: This doesn't seem right
|
||||
- name: question
|
||||
color: d876e3
|
||||
description: Further information is requested
|
||||
- name: wontfix
|
||||
color: ffffff
|
||||
description: This will not be worked on
|
||||
- name: effort/trivial
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/0.25d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/0.5d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/1d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/2d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/4d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/5d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
- name: effort/10d
|
||||
color: c2e0c6
|
||||
description: Required effort to finish task
|
||||
|
||||
|
||||
teams:
|
||||
- name: ci
|
||||
permission: admin
|
||||
@@ -85,7 +39,7 @@ branches:
|
||||
require_code_owner_reviews: false
|
||||
dismissal_restrictions: {}
|
||||
required_status_checks:
|
||||
strict: true
|
||||
strict: false
|
||||
contexts:
|
||||
- continuous-integration/drone/pr
|
||||
enforce_admins: false
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
only: issues
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 60
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 10
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- "Type:Bug"
|
||||
- "Type:Technical-Debt"
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: "Status:Stale"
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed in 10 days if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: false
|
||||
+5
-1
@@ -1,4 +1,5 @@
|
||||
*/coverage.out
|
||||
*/checkstyle.xml
|
||||
|
||||
ocis/config/identifier-registration.yaml
|
||||
*/bin
|
||||
@@ -14,10 +15,13 @@ node_modules/
|
||||
yarn-error.log
|
||||
|
||||
# Konnectd
|
||||
konnectd/assets/identifier
|
||||
idp/assets/identifier
|
||||
|
||||
# Composer - used for API acceptance tests
|
||||
composer.lock
|
||||
vendor
|
||||
vendor-bin/**/vendor
|
||||
vendor-bin/**/composer.lock
|
||||
|
||||
# drone CI is in .drone.star, do not let someone accidentally commit a local .drone.yml
|
||||
.drone.yml
|
||||
@@ -0,0 +1,7 @@
|
||||
.PHONY: config-docs-generate
|
||||
config-docs-generate: $(FLAEX)
|
||||
@echo "$(NAME): generating config docs"
|
||||
@$(FLAEX) >| ../docs/extensions/$(NAME)/configuration.md
|
||||
|
||||
.PHONY: grpc-docs-generate
|
||||
grpc-docs-generate: ../docs/extensions/${NAME}/grpc.md
|
||||
@@ -0,0 +1,6 @@
|
||||
.PHONY: generate
|
||||
generate: ci-node-generate ci-go-generate
|
||||
|
||||
.PHONY: embed.yml
|
||||
embed.yml: $(FILEB0X)
|
||||
@cd pkg/assets/ && echo -n "$(NAME): embed.go - " && $(FILEB0X) embed.yml
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
IMPORT := github.com/owncloud/ocis/$(NAME)
|
||||
BIN := bin
|
||||
DIST := dist
|
||||
|
||||
ifeq ($(OS), Windows_NT)
|
||||
EXECUTABLE := $(NAME).exe
|
||||
UNAME := Windows
|
||||
else
|
||||
EXECUTABLE := $(NAME)
|
||||
UNAME := $(shell uname -s)
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME), Darwin)
|
||||
GOBUILD ?= go build -i
|
||||
else
|
||||
GOBUILD ?= go build
|
||||
endif
|
||||
|
||||
PACKAGES ?= $(shell go list ./...)
|
||||
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
|
||||
GENERATE ?= $(PACKAGES)
|
||||
|
||||
TAGS ?=
|
||||
|
||||
ifndef OUTPUT
|
||||
ifneq ($(DRONE_TAG),)
|
||||
OUTPUT ?= $(subst v,,$(DRONE_TAG))
|
||||
else
|
||||
OUTPUT ?= testing
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef VERSION
|
||||
ifneq ($(DRONE_TAG),)
|
||||
VERSION ?= $(subst v,,$(DRONE_TAG))
|
||||
else
|
||||
VERSION ?= $(shell git rev-parse --short HEAD)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef DATE
|
||||
DATE := $(shell date -u '+%Y%m%d')
|
||||
endif
|
||||
|
||||
LDFLAGS += -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
DEBUG_LDFLAGS += -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
GCFLAGS += all=-N -l
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: sync
|
||||
sync:
|
||||
go mod download
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@echo "$(NAME): clean"
|
||||
go clean -i ./...
|
||||
rm -rf $(BIN) $(DIST)
|
||||
|
||||
.PHONY: go-mod-tidy
|
||||
go-mod-tidy:
|
||||
@echo "$(NAME): go-mod-tidy"
|
||||
@go mod tidy
|
||||
|
||||
.PHONY: fmt
|
||||
fmt:
|
||||
gofmt -s -w $(SOURCES)
|
||||
|
||||
.PHONY: golangci-lint
|
||||
golangci-lint: $(GOLANGCI_LINT)
|
||||
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME)
|
||||
|
||||
.PHONY: ci-golangci-lint
|
||||
ci-golangci-lint: $(GOLANGCI_LINT)
|
||||
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME) --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
|
||||
|
||||
.PHONY: test
|
||||
test: $(GOVERAGE)
|
||||
@echo
|
||||
@echo
|
||||
@echo "$(NAME): test"
|
||||
@echo
|
||||
@$(GOVERAGE) -v -coverprofile coverage.out $(PACKAGES)
|
||||
|
||||
.PHONY: go-coverage
|
||||
go-coverage:
|
||||
@echo "$(NAME): go-coverage"
|
||||
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
|
||||
@go tool cover -func coverage.out | tail -1 | grep -Eo "[0-9]+\.[0-9]+"
|
||||
|
||||
.PHONY: install
|
||||
install: $(SOURCES)
|
||||
go install -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: build
|
||||
build: $(BIN)/$(EXECUTABLE) $(BIN)/$(EXECUTABLE)-debug
|
||||
|
||||
$(BIN)/$(EXECUTABLE): $(SOURCES)
|
||||
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $@ ./cmd/$(NAME)
|
||||
|
||||
$(BIN)/$(EXECUTABLE)-debug: $(SOURCES)
|
||||
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(DEBUG_LDFLAGS)' -gcflags '$(GCFLAGS)' -o $@ ./cmd/$(NAME)
|
||||
|
||||
.PHONY: watch
|
||||
watch: $(REFLEX)
|
||||
$(REFLEX) -c reflex.conf
|
||||
@@ -0,0 +1,60 @@
|
||||
.PHONY: protoc-gen-openapiv2
|
||||
protoc-gen-openapiv2:
|
||||
GO111MODULE=off go get -v github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2
|
||||
|
||||
|
||||
.PHONY: $(PROTO_SRC)/${NAME}.pb.go
|
||||
$(PROTO_SRC)/${NAME}.pb.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_GO)
|
||||
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.go"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-go=$(PROTOC_GEN_GO) \
|
||||
--go_out=. \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
|
||||
.PHONY: $(PROTO_SRC)/${NAME}.pb.micro.go
|
||||
$(PROTO_SRC)/${NAME}.pb.micro.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_MICRO)
|
||||
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.micro.go"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-micro=$(PROTOC_GEN_MICRO) \
|
||||
--micro_out=. \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
|
||||
.PHONY: $(PROTO_SRC)/${NAME}.pb.web.go
|
||||
$(PROTO_SRC)/${NAME}.pb.web.go: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_MICROWEB)
|
||||
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.pb.web.go"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-microweb=$(PROTOC_GEN_MICROWEB) \
|
||||
--microweb_out=. \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
|
||||
.PHONY: $(PROTO_SRC)/${NAME}.swagger.json
|
||||
$(PROTO_SRC)/${NAME}.swagger.json: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_OPENAPIV2)
|
||||
@echo "$(NAME): generating $(PROTO_SRC)/${NAME}.swagger.json"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-openapiv2=$(PROTOC_GEN_OPENAPIV2) \
|
||||
--openapiv2_out=$(PROTO_SRC)/ \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
|
||||
.PHONY: ../docs/extensions/${NAME}/grpc.md
|
||||
../docs/extensions/${NAME}/grpc.md: $(BUF) protoc-gen-openapiv2 $(PROTOC_GEN_DOC)
|
||||
@echo "$(NAME): generating ../docs/extensions/${NAME}/grpc.md"
|
||||
@$(BUF) protoc \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
-I=../third_party/ \
|
||||
-I=$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway \
|
||||
--plugin protoc-gen-doc=$(PROTOC_GEN_DOC) \
|
||||
--doc_opt=./templates/GRPC.tmpl,grpc.md \
|
||||
--doc_out=../docs/extensions/${NAME} \
|
||||
$(PROTO_SRC)/${NAME}.proto
|
||||
@@ -0,0 +1,33 @@
|
||||
.PHONY: changelog
|
||||
changelog: $(CALENS) ## generate changelog
|
||||
$(CALENS) -i ../changelog -t ../changelog/CHANGELOG.tmpl >| ../CHANGELOG.md
|
||||
|
||||
.PHONY: release
|
||||
release: release-dirs release-linux release-windows release-darwin release-copy release-check
|
||||
|
||||
.PHONY: release-dirs
|
||||
release-dirs:
|
||||
mkdir -p $(DIST)/binaries $(DIST)/release
|
||||
|
||||
.PHONY: release-linux
|
||||
release-linux: $(GOX) release-dirs
|
||||
$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-windows
|
||||
release-windows: $(GOX) release-dirs
|
||||
$(GOX) -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'windows' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-darwin
|
||||
release-darwin: $(GOX) release-dirs
|
||||
$(GOX) -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -os 'darwin' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-copy
|
||||
release-copy:
|
||||
$(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)
|
||||
|
||||
.PHONY: release-check
|
||||
release-check:
|
||||
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
|
||||
|
||||
.PHONY: release-finish
|
||||
release-finish: release-copy release-check
|
||||
+519
-3
@@ -1,4 +1,511 @@
|
||||
# Changes in unreleased
|
||||
# Changelog for [unreleased] (UNRELEASED)
|
||||
|
||||
The following sections list the changes for unreleased.
|
||||
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v1.2.0...master
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Purposely delay accounts service startup: [#1734](https://github.com/owncloud/ocis/pull/1734)
|
||||
* Bugfix - Add missing gateway config: [#1716](https://github.com/owncloud/ocis/pull/1716)
|
||||
* Bugfix - Fix accounts initialization: [#1696](https://github.com/owncloud/ocis/pull/1696)
|
||||
* Bugfix - Fix the ttl of the authentication middleware cache: [#1699](https://github.com/owncloud/ocis/pull/1699)
|
||||
* Change - Update ownCloud Web to v2.0.1: [#1683](https://github.com/owncloud/ocis/pull/1683)
|
||||
* Change - Update ownCloud Web to v2.0.2: [#1776](https://github.com/owncloud/ocis/pull/1776)
|
||||
* Enhancement - Remove the JWT from the log: [#1758](https://github.com/owncloud/ocis/pull/1758)
|
||||
* Enhancement - Update go-micro to v3.5.1-0.20210217182006-0f0ace1a44a9: [#1670](https://github.com/owncloud/ocis/pull/1670)
|
||||
* Enhancement - Update reva to v1.6.1-0.20210223065028-53f39499762e: [#1683](https://github.com/owncloud/ocis/pull/1683)
|
||||
* Enhancement - Add initial nats and kubernetes registry support: [#1697](https://github.com/owncloud/ocis/pull/1697)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Purposely delay accounts service startup: [#1734](https://github.com/owncloud/ocis/pull/1734)
|
||||
|
||||
As it turns out the race condition between `accounts <-> storage-metadata` still remains.
|
||||
This PR is a hotfix, and it should be followed up with a proper fix. Either:
|
||||
|
||||
- block the accounts' initialization until the storage metadata is ready (using the registry)
|
||||
or - allow the accounts service to initialize and use a message broker to signal the accounts the
|
||||
metadata storage is ready to receive requests.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1734
|
||||
|
||||
* Bugfix - Add missing gateway config: [#1716](https://github.com/owncloud/ocis/pull/1716)
|
||||
|
||||
The auth provider `ldap` and `oidc` drivers now need to be able talk to the reva gateway. We added
|
||||
the `gatewayscv` to the config that is passed to reva.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1716
|
||||
|
||||
* Bugfix - Fix accounts initialization: [#1696](https://github.com/owncloud/ocis/pull/1696)
|
||||
|
||||
Originally the accounts service relies on both the `settings` and `storage-metadata` to be up
|
||||
and running at the moment it starts. This is an antipattern as it will cause the entire service to
|
||||
panic if the dependants are not present.
|
||||
|
||||
We inverted this dependency and moved the default initialization data (i.e: creating roles,
|
||||
permissions, settings bundles) and instead of notifying the settings service that the
|
||||
account has to provide with such options, the settings is instead initialized with the options
|
||||
the accounts rely on. Essentially saving bandwith as there is no longer a gRPC call to the
|
||||
settings service.
|
||||
|
||||
For the `storage-metadata` a retry mechanism was added that retries by default 20 times to
|
||||
fetch the `com.owncloud.storage.metadata` from the service registry every `500`
|
||||
miliseconds. If this retry expires the accounts panics, as its dependency on the
|
||||
`storage-metadata` service cannot be resolved.
|
||||
|
||||
We also introduced a client wrapper that acts as middleware between a client and a server. For
|
||||
more information on how it works further read [here](https://github.com/sony/gobreaker)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1696
|
||||
|
||||
* Bugfix - Fix the ttl of the authentication middleware cache: [#1699](https://github.com/owncloud/ocis/pull/1699)
|
||||
|
||||
The authentication cache ttl was multiplied with `time.Second` multiple times. This
|
||||
resulted in a ttl that was not intended.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1699
|
||||
|
||||
* Change - Update ownCloud Web to v2.0.1: [#1683](https://github.com/owncloud/ocis/pull/1683)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v2.0.1. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1683
|
||||
https://github.com/owncloud/web/releases/tag/v2.0.1
|
||||
|
||||
* Change - Update ownCloud Web to v2.0.2: [#1776](https://github.com/owncloud/ocis/pull/1776)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v2.0.2. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1776
|
||||
https://github.com/owncloud/web/releases/tag/v2.0.2
|
||||
|
||||
* Enhancement - Remove the JWT from the log: [#1758](https://github.com/owncloud/ocis/pull/1758)
|
||||
|
||||
We were logging the JWT in some places. Secrets should not be exposed in logs so it got removed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1758
|
||||
|
||||
* Enhancement - Update go-micro to v3.5.1-0.20210217182006-0f0ace1a44a9: [#1670](https://github.com/owncloud/ocis/pull/1670)
|
||||
|
||||
- We updated from go micro v2 (v2.9.1) go-micro v3 (v3.5.1 edge). - oCIS runtime is now aware of
|
||||
`MICRO_LOG_LEVEL` and is set to `error` by default. This decision was made because ownCloud,
|
||||
as framework builders, want to log everything oCIS related and hide everything unrelated by
|
||||
default. It can be re-enabled by setting it to a log level other than `error`. i.e:
|
||||
`MICRO_LOG_LEVEL=info`. - Updated `protoc-gen-micro` to the [latest
|
||||
version](https://github.com/asim/go-micro/tree/master/cmd/protoc-gen-micro). -
|
||||
We're using Prometheus wrappers from go-micro.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1670
|
||||
https://github.com/asim/go-micro/pull/2126
|
||||
|
||||
* Enhancement - Update reva to v1.6.1-0.20210223065028-53f39499762e: [#1683](https://github.com/owncloud/ocis/pull/1683)
|
||||
|
||||
* quota querying and tree accounting [cs3org/reva#1405](https://github.com/cs3org/reva/pull/1405)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1683
|
||||
https://github.com/cs3org/reva/pull/1405
|
||||
|
||||
* Enhancement - Add initial nats and kubernetes registry support: [#1697](https://github.com/owncloud/ocis/pull/1697)
|
||||
|
||||
We added initial support to use nats and kubernetes as a service registry using
|
||||
`MICRO_REGISTRY=nats` and `MICRO_REGISTRY=kubernetes` respectively. Multiple nodes can
|
||||
be given with `MICRO_REGISTRY_ADDRESS=1.2.3.4,5.6.7.8,9.10.11.12`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1697
|
||||
# Changelog for [1.2.0] (2021-02-17)
|
||||
|
||||
The following sections list the changes for 1.2.0.
|
||||
|
||||
[1.2.0]: https://github.com/owncloud/ocis/compare/v1.1.0...v1.2.0
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Check if roles are present in user object before looking those up: [#1388](https://github.com/owncloud/ocis/pull/1388)
|
||||
* Bugfix - Fix etcd address configuration: [#1546](https://github.com/owncloud/ocis/pull/1546)
|
||||
* Bugfix - Remove unimplemented config file option for oCIS root command: [#1636](https://github.com/owncloud/ocis/pull/1636)
|
||||
* Bugfix - Fix thumbnail generation when using different idp: [#1624](https://github.com/owncloud/ocis/issues/1624)
|
||||
* Change - Initial release of graph and graph explorer: [#1594](https://github.com/owncloud/ocis/pull/1594)
|
||||
* Change - Move runtime code on refs/pman over to owncloud/ocis/ocis: [#1483](https://github.com/owncloud/ocis/pull/1483)
|
||||
* Change - Update ownCloud Web to v2.0.0: [#1661](https://github.com/owncloud/ocis/pull/1661)
|
||||
* Enhancement - Make use of new design-system oc-table: [#1597](https://github.com/owncloud/ocis/pull/1597)
|
||||
* Enhancement - Use a default protocol parameter instead of explicitly disabling tus: [#1331](https://github.com/cs3org/reva/pull/1331)
|
||||
* Enhancement - Functionality to map home directory to different storage providers: [#1186](https://github.com/owncloud/ocis/pull/1186)
|
||||
* Enhancement - Introduce ADR: [#1042](https://github.com/owncloud/ocis/pull/1042)
|
||||
* Enhancement - Switch to opencontainers annotation scheme: [#1381](https://github.com/owncloud/ocis/pull/1381)
|
||||
* Enhancement - Migrate ocis-graph-explorer to ocis monorepo: [#1596](https://github.com/owncloud/ocis/pull/1596)
|
||||
* Enhancement - Migrate ocis-graph to ocis monorepo: [#1594](https://github.com/owncloud/ocis/pull/1594)
|
||||
* Enhancement - Enable group sharing and add config for sharing SQL driver: [#1626](https://github.com/owncloud/ocis/pull/1626)
|
||||
* Enhancement - Update reva to v1.5.2-0.20210125114636-0c10b333ee69: [#1482](https://github.com/owncloud/ocis/pull/1482)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Check if roles are present in user object before looking those up: [#1388](https://github.com/owncloud/ocis/pull/1388)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1388
|
||||
|
||||
* Bugfix - Fix etcd address configuration: [#1546](https://github.com/owncloud/ocis/pull/1546)
|
||||
|
||||
The etcd server address in `MICRO_REGISTRY_ADDRESS` was not picked up when etcd was set as
|
||||
service discovery registry `MICRO_REGISTRY=etcd`. Therefore etcd was only working if
|
||||
available on localhost / 127.0.0.1.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1546
|
||||
|
||||
* Bugfix - Remove unimplemented config file option for oCIS root command: [#1636](https://github.com/owncloud/ocis/pull/1636)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1636
|
||||
|
||||
* Bugfix - Fix thumbnail generation when using different idp: [#1624](https://github.com/owncloud/ocis/issues/1624)
|
||||
|
||||
The thumbnail service was relying on a konnectd specific field in the access token. This logic
|
||||
was now replaced by a service parameter for the username.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/1624
|
||||
https://github.com/owncloud/ocis/pull/1628
|
||||
|
||||
* Change - Initial release of graph and graph explorer: [#1594](https://github.com/owncloud/ocis/pull/1594)
|
||||
|
||||
Tags: graph, graph-explorer
|
||||
|
||||
We brought initial basic Graph and Graph-Explorer support for the ownCloud Infinite Scale
|
||||
project.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1594
|
||||
https://github.com/owncloud/ocis-graph-explorer/pull/3
|
||||
|
||||
* Change - Move runtime code on refs/pman over to owncloud/ocis/ocis: [#1483](https://github.com/owncloud/ocis/pull/1483)
|
||||
|
||||
Tags: ocis, runtime
|
||||
|
||||
Currently, the runtime is under the private account of an oCIS developer. For future-proofing
|
||||
we don't want oCIS mission critical components to depend on external repositories, so we're
|
||||
including refs/pman module as an oCIS package instead.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1483
|
||||
|
||||
* Change - Update ownCloud Web to v2.0.0: [#1661](https://github.com/owncloud/ocis/pull/1661)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v2.0.0. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1661
|
||||
https://github.com/owncloud/web/releases/tag/v2.0.0
|
||||
|
||||
* Enhancement - Make use of new design-system oc-table: [#1597](https://github.com/owncloud/ocis/pull/1597)
|
||||
|
||||
Tags: ui, accounts
|
||||
|
||||
The design-system table component has changed the way it's used. We updated accounts-ui to use
|
||||
the new 'oc-table-simple' component.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1597
|
||||
|
||||
* Enhancement - Use a default protocol parameter instead of explicitly disabling tus: [#1331](https://github.com/cs3org/reva/pull/1331)
|
||||
|
||||
https://github.com/cs3org/reva/pull/1331
|
||||
https://github.com/owncloud/ocis/pull/1374
|
||||
|
||||
* Enhancement - Functionality to map home directory to different storage providers: [#1186](https://github.com/owncloud/ocis/pull/1186)
|
||||
|
||||
We added a parameter in reva that allows us to redirect /home requests to different storage
|
||||
providers based on a mapping derived from the user attributes, which was previously not
|
||||
possible since we hardcode the /home path for all users. For example, having its value as
|
||||
`/home/{{substr 0 1 .Username}}` can be used to redirect home requests for different users to
|
||||
different storage providers.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1186
|
||||
https://github.com/cs3org/reva/pull/1142
|
||||
|
||||
* Enhancement - Introduce ADR: [#1042](https://github.com/owncloud/ocis/pull/1042)
|
||||
|
||||
We will keep track of [Architectual Decision Records using
|
||||
Markdown](https://adr.github.io/madr/) in `/docs/adr`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1042
|
||||
|
||||
* Enhancement - Switch to opencontainers annotation scheme: [#1381](https://github.com/owncloud/ocis/pull/1381)
|
||||
|
||||
Switch docker image annotation scheme to org.opencontainers standard because
|
||||
org.label-schema is depreciated.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1381
|
||||
|
||||
* Enhancement - Migrate ocis-graph-explorer to ocis monorepo: [#1596](https://github.com/owncloud/ocis/pull/1596)
|
||||
|
||||
Tags: ocis, ocis-graph-explorer
|
||||
|
||||
Ocis-graph-explorer was not migrated during the monorepo conversion.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1596
|
||||
|
||||
* Enhancement - Migrate ocis-graph to ocis monorepo: [#1594](https://github.com/owncloud/ocis/pull/1594)
|
||||
|
||||
Tags: ocis, ocis-graph
|
||||
|
||||
Ocis-graph was not migrated during the monorepo conversion.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1594
|
||||
|
||||
* Enhancement - Enable group sharing and add config for sharing SQL driver: [#1626](https://github.com/owncloud/ocis/pull/1626)
|
||||
|
||||
This PR adds config to support sharing with groups. It also introduces a breaking change for the
|
||||
CS3APIs definitions since grantees can now refer to both users as well as groups. Since we store
|
||||
the grantee information in a json file, `/var/tmp/ocis/storage/shares.json`, its previous
|
||||
version needs to be removed as we won't be able to unmarshal data corresponding to the previous
|
||||
definitions.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1626
|
||||
https://github.com/cs3org/reva/pull/1453
|
||||
|
||||
* Enhancement - Update reva to v1.5.2-0.20210125114636-0c10b333ee69: [#1482](https://github.com/owncloud/ocis/pull/1482)
|
||||
|
||||
* initial checksum support for ocis [cs3org/reva#1400](https://github.com/cs3org/reva/pull/1400)
|
||||
* Use updated etag of home directory even if it is cached [cs3org/reva#1416](https://github.com/cs3org/reva/pull/#1416)
|
||||
* Indicate in EOS containers that TUS is not supported [cs3org/reva#1415](https://github.com/cs3org/reva/pull/#1415)
|
||||
* Get status code from recycle response [cs3org/reva#1408](https://github.com/cs3org/reva/pull/#1408)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1482
|
||||
https://github.com/cs3org/reva/pull/1400
|
||||
https://github.com/cs3org/reva/pull/1416
|
||||
https://github.com/cs3org/reva/pull/1415
|
||||
https://github.com/cs3org/reva/pull/1408
|
||||
# Changelog for [1.1.0] (2021-01-22)
|
||||
|
||||
The following sections list the changes for 1.1.0.
|
||||
|
||||
[1.1.0]: https://github.com/owncloud/ocis/compare/v1.0.0...v1.1.0
|
||||
|
||||
## Summary
|
||||
|
||||
* Change - Disable pretty logging by default: [#1133](https://github.com/owncloud/ocis/pull/1133)
|
||||
* Change - Add "volume" declaration to docker images: [#1375](https://github.com/owncloud/ocis/pull/1375)
|
||||
* Change - Add "expose" information to docker images: [#1366](https://github.com/owncloud/ocis/pull/1366)
|
||||
* Change - Generate cryptographically secure state token: [#1203](https://github.com/owncloud/ocis/pull/1203)
|
||||
* Change - Move k6 to cdperf: [#1358](https://github.com/owncloud/ocis/pull/1358)
|
||||
* Change - Update go version: [#1364](https://github.com/owncloud/ocis/pull/1364)
|
||||
* Change - Update ownCloud Web to v1.0.1: [#1191](https://github.com/owncloud/ocis/pull/1191)
|
||||
* Enhancement - Add OCIS_URL env var: [#1148](https://github.com/owncloud/ocis/pull/1148)
|
||||
* Enhancement - Use sync.cache for roles cache: [#1367](https://github.com/owncloud/ocis/pull/1367)
|
||||
* Enhancement - Add named locks and refactor cache: [#1212](https://github.com/owncloud/ocis/pull/1212)
|
||||
* Enhancement - Update reva to v1.5.1: [#1372](https://github.com/owncloud/ocis/pull/1372)
|
||||
* Enhancement - Update reva to v1.4.1-0.20210111080247-f2b63bfd6825: [#1194](https://github.com/owncloud/ocis/pull/1194)
|
||||
|
||||
## Details
|
||||
|
||||
* Change - Disable pretty logging by default: [#1133](https://github.com/owncloud/ocis/pull/1133)
|
||||
|
||||
Tags: ocis
|
||||
|
||||
Disable pretty logging default for performance reasons.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1133
|
||||
|
||||
* Change - Add "volume" declaration to docker images: [#1375](https://github.com/owncloud/ocis/pull/1375)
|
||||
|
||||
Tags: docker
|
||||
|
||||
Add "volume" declaration to docker images. This makes it easier for Docker users to see where
|
||||
oCIS stores data.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1375
|
||||
|
||||
* Change - Add "expose" information to docker images: [#1366](https://github.com/owncloud/ocis/pull/1366)
|
||||
|
||||
Tags: docker
|
||||
|
||||
Add "expose" information to docker images. Docker users will now see that we offer services on
|
||||
port 9200.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1366
|
||||
|
||||
* Change - Generate cryptographically secure state token: [#1203](https://github.com/owncloud/ocis/pull/1203)
|
||||
|
||||
Replaced Math.random with a cryptographically secure way to generate the oidc state token
|
||||
using the javascript crypto api.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1203
|
||||
https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues
|
||||
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
|
||||
|
||||
* Change - Move k6 to cdperf: [#1358](https://github.com/owncloud/ocis/pull/1358)
|
||||
|
||||
Tags: performance, testing, k6
|
||||
|
||||
The ownCloud performance tests can not only be used to test oCIS. This is why we have decided to
|
||||
move the k6 tests to https://github.com/owncloud/cdperf
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1358
|
||||
|
||||
* Change - Update go version: [#1364](https://github.com/owncloud/ocis/pull/1364)
|
||||
|
||||
Tags: go
|
||||
|
||||
Update go from 1.13 to 1.15
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1364
|
||||
|
||||
* Change - Update ownCloud Web to v1.0.1: [#1191](https://github.com/owncloud/ocis/pull/1191)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v1.0.1. Please refer to the changelog (linked) for details on the web
|
||||
release.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1191
|
||||
https://github.com/owncloud/web/releases/tag/v1.0.1
|
||||
|
||||
* Enhancement - Add OCIS_URL env var: [#1148](https://github.com/owncloud/ocis/pull/1148)
|
||||
|
||||
Tags: ocis
|
||||
|
||||
We introduced a new environment variable `OCIS_URL` that expects a URL including protocol,
|
||||
host and optionally port to simplify configuring all the different services. These existing
|
||||
environment variables still take precedence, but will also fall back to `OCIS_URL`:
|
||||
`STORAGE_LDAP_IDP`, `STORAGE_OIDC_ISSUER`, `PROXY_OIDC_ISSUER`,
|
||||
`STORAGE_FRONTEND_PUBLIC_URL`, `KONNECTD_ISS`, `WEB_OIDC_AUTHORITY`, and
|
||||
`WEB_UI_CONFIG_SERVER`.
|
||||
|
||||
Some environment variables are now built dynamically if they are not set: -
|
||||
`STORAGE_DATAGATEWAY_PUBLIC_URL` defaults to `<STORAGE_FRONTEND_PUBLIC_URL>/data`,
|
||||
also falling back to `OCIS_URL` - `WEB_OIDC_METADATA_URL` defaults to
|
||||
`<WEB_OIDC_AUTHORITY>/.well-known/openid-configuration`, also falling back to
|
||||
`OCIS_URL`
|
||||
|
||||
Furthermore, the built in konnectd will generate an `identifier-registration.yaml` that
|
||||
uses the `KONNECTD_ISS` in the allowed `redirect_uris` and `origins`. It simplifies the
|
||||
default `https://localhost:9200` and remote deployment with `OCIS_URL` which is evaluated
|
||||
as a fallback if `KONNECTD_ISS` is not set.
|
||||
|
||||
An oCIS server can now be started on a remote machine as easy as
|
||||
`OCIS_URL=https://cloud.ocis.test PROXY_HTTP_ADDR=0.0.0.0:443 ocis server`.
|
||||
|
||||
Note that the `OCIS_DOMAIN` environment variable is not used by oCIS, but by the docker
|
||||
containers.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1148
|
||||
|
||||
* Enhancement - Use sync.cache for roles cache: [#1367](https://github.com/owncloud/ocis/pull/1367)
|
||||
|
||||
Tags: ocis-pkg
|
||||
|
||||
Update ocis-pkg/roles cache to use ocis-pkg/sync cache
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1367
|
||||
|
||||
* Enhancement - Add named locks and refactor cache: [#1212](https://github.com/owncloud/ocis/pull/1212)
|
||||
|
||||
Tags: ocis-pkg, accounts
|
||||
|
||||
We had the case that we needed kind of a named locking mechanism which enables us to lock only
|
||||
under certain conditions. It's used in the indexer package where we do not need to lock
|
||||
everything, instead just lock the requested parts and differentiate between reads and
|
||||
writes.
|
||||
|
||||
This made it possible to entirely remove locks from the accounts service and move them to the
|
||||
ocis-pkg indexer. Another part of this refactor was to make the cache atomic and write tests for
|
||||
it.
|
||||
|
||||
- remove locking from accounts service - add sync package with named mutex - add named locking to
|
||||
indexer - move cache to sync package
|
||||
|
||||
https://github.com/owncloud/ocis/issues/966
|
||||
https://github.com/owncloud/ocis/pull/1212
|
||||
|
||||
* Enhancement - Update reva to v1.5.1: [#1372](https://github.com/owncloud/ocis/pull/1372)
|
||||
|
||||
Summary -------
|
||||
|
||||
* Fix #1401: Use the user in request for deciding the layout for non-home DAV requests
|
||||
* Fix #1413: Re-include the '.git' dir in the Docker images to pass the version tag
|
||||
* Fix #1399: Fix ocis trash-bin purge
|
||||
* Enh #1397: Bump the Copyright date to 2021
|
||||
* Enh #1398: Support site authorization status in Mentix
|
||||
* Enh #1393: Allow setting favorites, mtime and a temporary etag
|
||||
* Enh #1403: Support remote cloud gathering metrics
|
||||
|
||||
Details -------
|
||||
|
||||
* Bugfix #1401: Use the user in request for deciding the layout for non-home DAV requests
|
||||
|
||||
For the incoming /dav/files/userID requests, we have different namespaces depending on
|
||||
whether the request is for the logged-in user's namespace or not. Since in the storage drivers,
|
||||
we specify the layout depending only on the user whose resources are to be accessed, this fails
|
||||
when a user wants to access another user's namespace when the storage provider depends on the
|
||||
logged in user's namespace. This PR fixes that.
|
||||
|
||||
For example, consider the following case. The owncloud fs uses a layout {{substr 0 1
|
||||
.Id.OpaqueId}}/{{.Id.OpaqueId}}. The user einstein sends a request to access a resource
|
||||
shared with him, say /dav/files/marie/abcd, which should be allowed. However, based on the
|
||||
way we applied the layout, there's no way in which this can be translated to /m/marie/.
|
||||
|
||||
Https://github.com/cs3org/reva/pull/1401
|
||||
|
||||
* Bugfix #1413: Re-include the '.git' dir in the Docker images to pass the version tag
|
||||
|
||||
And git SHA to the release tool.
|
||||
|
||||
Https://github.com/cs3org/reva/pull/1413
|
||||
|
||||
* Bugfix #1399: Fix ocis trash-bin purge
|
||||
|
||||
Fixes the empty trash-bin functionality for ocis-storage
|
||||
|
||||
Https://github.com/owncloud/product/issues/254
|
||||
https://github.com/cs3org/reva/pull/1399
|
||||
|
||||
* Enhancement #1397: Bump the Copyright date to 2021
|
||||
|
||||
Https://github.com/cs3org/reva/pull/1397
|
||||
|
||||
* Enhancement #1398: Support site authorization status in Mentix
|
||||
|
||||
This enhancement adds support for a site authorization status to Mentix. This way, sites
|
||||
registered via a web app can now be excluded until authorized manually by an administrator.
|
||||
|
||||
Furthermore, Mentix now sets the scheme for Prometheus targets. This allows us to also support
|
||||
monitoring of sites that do not support the default HTTPS scheme.
|
||||
|
||||
Https://github.com/cs3org/reva/pull/1398
|
||||
|
||||
* Enhancement #1393: Allow setting favorites, mtime and a temporary etag
|
||||
|
||||
We now let the oCIS driver persist favorites, set temporary etags and the mtime as arbitrary
|
||||
metadata.
|
||||
|
||||
Https://github.com/owncloud/ocis/issues/567
|
||||
https://github.com/cs3org/reva/issues/1394
|
||||
https://github.com/cs3org/reva/pull/1393
|
||||
|
||||
* Enhancement #1403: Support remote cloud gathering metrics
|
||||
|
||||
The current metrics package can only gather metrics either from json files. With this feature,
|
||||
the metrics can be gathered polling the http endpoints exposed by the owncloud/nextcloud
|
||||
sciencemesh apps.
|
||||
|
||||
Https://github.com/cs3org/reva/pull/1403
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1372
|
||||
|
||||
* Enhancement - Update reva to v1.4.1-0.20210111080247-f2b63bfd6825: [#1194](https://github.com/owncloud/ocis/pull/1194)
|
||||
|
||||
* Enhancement: calculate and expose actual file permission set [cs3org/reva#1368](https://github.com/cs3org/reva/pull/1368)
|
||||
* initial range request support [cs3org/reva#1326](https://github.com/cs3org/reva/pull/1388)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1194
|
||||
https://github.com/cs3org/reva/pull/1368
|
||||
https://github.com/cs3org/reva/pull/1388
|
||||
# Changelog for [1.0.0] (2020-12-17)
|
||||
|
||||
The following sections list the changes for 1.0.0.
|
||||
|
||||
## Summary
|
||||
|
||||
@@ -108,6 +615,7 @@
|
||||
* Enhancement - Update reva to cdb3d6688da5: [#748](https://github.com/owncloud/ocis/pull/748)
|
||||
* Enhancement - Update reva to dd3a8c0f38: [#725](https://github.com/owncloud/ocis/pull/725)
|
||||
* Enhancement - Update reva to v1.4.1-0.20201127111856-e6a6212c1b7b: [#971](https://github.com/owncloud/ocis/pull/971)
|
||||
* Enhancement - Update reva to 063b3db9162b: [#1091](https://github.com/owncloud/ocis/pull/1091)
|
||||
* Enhancement - Add www-authenticate based on user agent: [#1009](https://github.com/owncloud/ocis/pull/1009)
|
||||
|
||||
## Details
|
||||
@@ -1962,6 +2470,14 @@
|
||||
https://github.com/cs3org/reva/pull/1331
|
||||
https://github.com/cs3org/reva/pull/1342
|
||||
|
||||
* Enhancement - Update reva to 063b3db9162b: [#1091](https://github.com/owncloud/ocis/pull/1091)
|
||||
|
||||
- bring public link removal changes to OCIS. - fix subcommand name collision from renaming
|
||||
phoenix -> web.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/1098
|
||||
https://github.com/owncloud/ocis/pull/1091
|
||||
|
||||
* Enhancement - Add www-authenticate based on user agent: [#1009](https://github.com/owncloud/ocis/pull/1009)
|
||||
|
||||
Tags: reva, proxy
|
||||
@@ -1970,7 +2486,7 @@
|
||||
Furthermore, we not only take care of such a thing at the Proxy but also Reva will take care of it.
|
||||
In addition, we now are able to lock-in a set of User-Agent to specific challenges.
|
||||
|
||||
Admins can use this feature by configuring OCIS + Reva following this approach:
|
||||
Admins can use this feature by configuring oCIS + Reva following this approach:
|
||||
|
||||
``` STORAGE_FRONTEND_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT="mirall:basic,
|
||||
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:83.0) Gecko/20100101
|
||||
@@ -1984,6 +2500,6 @@
|
||||
`STORAGE_FRONTEND_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT` as well as
|
||||
`PROXY_MIDDLEWARE_AUTH_CREDENTIALS_BY_USER_AGENT`, The reason they have the same value
|
||||
is not to rely on the os env on a distributed environment, so in redundancy we trust. They both
|
||||
configure the same on the backend storage and OCIS Proxy.
|
||||
configure the same on the backend storage and oCIS Proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/1009
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
FROM webhippie/golang:1.14 as build
|
||||
FROM webhippie/golang:1.15 as build
|
||||
|
||||
COPY ./ /ocis/
|
||||
ENV CGO_ENABLED=0
|
||||
ENV GOOS=linux
|
||||
|
||||
RUN apk update && \
|
||||
apk upgrade && \
|
||||
apk upgrade --ignore musl-dev && \
|
||||
apk add make gcc bash && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
|
||||
@@ -12,6 +12,26 @@ WHITE := $(shell tput -Txterm setaf 7)
|
||||
|
||||
RESET := $(shell tput -Txterm sgr0)
|
||||
|
||||
# if you add a module here please also add it to the .drone.star file
|
||||
OCIS_MODULES = \
|
||||
accounts \
|
||||
glauth \
|
||||
graph \
|
||||
graph-explorer \
|
||||
idp \
|
||||
ocis \
|
||||
ocis-pkg \
|
||||
ocs \
|
||||
onlyoffice \
|
||||
proxy \
|
||||
settings \
|
||||
storage \
|
||||
store \
|
||||
thumbnails \
|
||||
web \
|
||||
webdav
|
||||
|
||||
include .bingo/Variables.mk
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
@@ -63,3 +83,71 @@ vendor-bin/behat/composer.lock: vendor-bin/behat/composer.json
|
||||
|
||||
composer.lock: composer.json
|
||||
@echo composer.lock is not up to date.
|
||||
|
||||
.PHONY: generate
|
||||
generate:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod generate; \
|
||||
done
|
||||
|
||||
.PHONY: vet
|
||||
vet:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod vet; \
|
||||
done
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod clean; \
|
||||
done
|
||||
|
||||
.PHONY: docs-generate
|
||||
docs-generate:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod docs-generate; \
|
||||
done
|
||||
|
||||
.PHONY: ci-go-generate
|
||||
ci-go-generate:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod ci-go-generate; \
|
||||
done
|
||||
|
||||
.PHONY: ci-node-generate
|
||||
ci-node-generate:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod ci-node-generate; \
|
||||
done
|
||||
|
||||
.PHONY: go-mod-tidy
|
||||
go-mod-tidy:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod go-mod-tidy; \
|
||||
done
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
$(MAKE) --no-print-directory -C $$mod test; \
|
||||
done
|
||||
|
||||
.PHONY: go-coverage
|
||||
go-coverage:
|
||||
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
|
||||
@for mod in $(OCIS_MODULES); do \
|
||||
echo -n "% coverage $$mod: "; $(MAKE) --no-print-directory -C $$mod go-coverage; \
|
||||
done
|
||||
|
||||
.PHONY: bingo-update
|
||||
bingo-update: $(BINGO)
|
||||
$(BINGO) get -u
|
||||
|
||||
CHANGELOG_VERSION =
|
||||
|
||||
.PHONY: changelog
|
||||
changelog: $(CALENS)
|
||||
ifndef CHANGELOG_VERSION
|
||||
$(error CHANGELOG_VERSION is undefined)
|
||||
endif
|
||||
$(CALENS) --version $(CHANGELOG_VERSION) -o ocis/dist/CHANGELOG.md
|
||||
@@ -1,12 +1,12 @@
|
||||
# ownCloud Infinite Scale
|
||||
|
||||
[](https://talk.owncloud.com/channel/infinitescale)
|
||||
[](https://drone.owncloud.com/owncloud/ocis)
|
||||
[](https://gitter.im/cs3org/reva)
|
||||
[](https://www.codacy.com/gh/owncloud/ocis/dashboard?utm_source=github.com&utm_medium=referral&utm_content=owncloud/ocis&utm_campaign=Badge_Grade)
|
||||
[](https://www.codacy.com/gh/owncloud/ocis/dashboard?utm_source=github.com&utm_medium=referral&utm_content=owncloud/ocis&utm_campaign=Badge_Coverage)
|
||||
[](http://godoc.org/github.com/owncloud/ocis)
|
||||
[](https://sonarcloud.io/dashboard?id=owncloud_ocis)
|
||||
[](https://sonarcloud.io/dashboard?id=owncloud_ocis)
|
||||
[](https://goreportcard.com/report/github.com/owncloud/ocis)
|
||||
[](https://hub.docker.com/r/owncloud/ocis "oCIS docker image")
|
||||
[](http://godoc.org/github.com/owncloud/ocis)
|
||||
[](https://hub.docker.com/r/owncloud/ocis)
|
||||
|
||||
**ownCloud Infinite Scale is currently in a technical preview state. It will be subject to a lot of changes and is not yet ready for general production deployments.**
|
||||
|
||||
|
||||
+39
-173
@@ -1,190 +1,56 @@
|
||||
SHELL := bash
|
||||
NAME := accounts
|
||||
IMPORT := github.com/owncloud/ocis/$(NAME)
|
||||
BIN := bin
|
||||
DIST := dist
|
||||
HUGO := hugo
|
||||
PROTO_VERSION := v0
|
||||
PROTO_SRC := pkg/proto/$(PROTO_VERSION)
|
||||
|
||||
ifeq ($(OS), Windows_NT)
|
||||
EXECUTABLE := $(NAME).exe
|
||||
UNAME := Windows
|
||||
else
|
||||
EXECUTABLE := $(NAME)
|
||||
UNAME := $(shell uname -s)
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME), Darwin)
|
||||
GOBUILD ?= go build -i
|
||||
else
|
||||
GOBUILD ?= go build
|
||||
endif
|
||||
|
||||
PACKAGES ?= $(shell go list ./...)
|
||||
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
|
||||
GENERATE ?= $(IMPORT)/pkg/assets
|
||||
|
||||
FEATURE_PATH ?= "ui/tests/acceptance/features"
|
||||
|
||||
TAGS ?=
|
||||
|
||||
ifndef OUTPUT
|
||||
ifneq ($(DRONE_TAG),)
|
||||
OUTPUT ?= $(subst v,,$(DRONE_TAG))
|
||||
else
|
||||
OUTPUT ?= testing
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef VERSION
|
||||
ifneq ($(DRONE_TAG),)
|
||||
VERSION ?= $(subst v,,$(DRONE_TAG))
|
||||
else
|
||||
VERSION ?= $(shell git rev-parse --short HEAD)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef DATE
|
||||
DATE := $(shell date -u '+%Y%m%d')
|
||||
endif
|
||||
|
||||
LDFLAGS += -s -w -X "$(IMPORT)/pkg/version.String=$(VERSION)" -X "$(IMPORT)/pkg/version.Date=$(DATE)"
|
||||
GCFLAGS += all=-N -l
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: sync
|
||||
sync:
|
||||
go mod download
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
go clean -i ./...
|
||||
rm -rf $(BIN) $(DIST) $(HUGO)
|
||||
|
||||
.PHONY: fmt
|
||||
fmt:
|
||||
gofmt -s -w $(SOURCES)
|
||||
|
||||
.PHONY: vet
|
||||
vet:
|
||||
go vet $(PACKAGES)
|
||||
|
||||
.PHONY: staticcheck
|
||||
staticcheck:
|
||||
go run honnef.co/go/tools/cmd/staticcheck -tags '$(TAGS)' $(PACKAGES)
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
for PKG in $(PACKAGES); do go run golang.org/x/lint/golint -set_exit_status $$PKG || exit 1; done;
|
||||
|
||||
.PHONY: generate
|
||||
generate: protobuf
|
||||
go generate $(GENERATE)
|
||||
|
||||
.PHONY: changelog
|
||||
changelog:
|
||||
go run github.com/restic/calens >| CHANGELOG.md
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go run github.com/haya14busa/goverage -v -coverprofile coverage.out $(PACKAGES)
|
||||
|
||||
.PHONY: install
|
||||
install: $(SOURCES)
|
||||
go install -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: build
|
||||
build: $(BIN)/$(EXECUTABLE) $(BIN)/$(EXECUTABLE)-debug
|
||||
|
||||
$(BIN)/$(EXECUTABLE): $(SOURCES)
|
||||
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $@ ./cmd/$(NAME)
|
||||
|
||||
$(BIN)/$(EXECUTABLE)-debug: $(SOURCES)
|
||||
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -gcflags '$(GCFLAGS)' -o $@ ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release
|
||||
release: release-dirs release-linux release-windows release-darwin release-copy release-check
|
||||
|
||||
.PHONY: release-dirs
|
||||
release-dirs:
|
||||
mkdir -p $(DIST)/binaries $(DIST)/release
|
||||
|
||||
.PHONY: release-linux
|
||||
release-linux: release-dirs
|
||||
go run github.com/mitchellh/gox -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'linux' -arch 'amd64 386 arm64 arm' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-windows
|
||||
release-windows: release-dirs
|
||||
go run github.com/mitchellh/gox -tags 'netgo $(TAGS)' -ldflags '-extldflags "-static" $(LDFLAGS)' -os 'windows' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-darwin
|
||||
release-darwin: release-dirs
|
||||
go run github.com/mitchellh/gox -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -os 'darwin' -arch 'amd64' -output '$(DIST)/binaries/$(EXECUTABLE)-$(OUTPUT)-{{.OS}}-{{.Arch}}' ./cmd/$(NAME)
|
||||
|
||||
.PHONY: release-copy
|
||||
release-copy:
|
||||
$(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)
|
||||
|
||||
.PHONY: release-check
|
||||
release-check:
|
||||
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
|
||||
|
||||
.PHONY: release-finish
|
||||
release-finish: release-copy release-check
|
||||
|
||||
.PHONY: config-docs-generate
|
||||
config-docs-generate:
|
||||
go run github.com/owncloud/flaex >| ../docs/extensions/$(NAME)/configuration.md
|
||||
|
||||
.PHONY: test-acceptance-webui
|
||||
test-acceptance-webui:
|
||||
./ui/tests/run-acceptance-test.sh $(FEATURE_PATH)
|
||||
|
||||
.PHONY: watch
|
||||
watch:
|
||||
go run github.com/cespare/reflex -c reflex.conf
|
||||
|
||||
$(GOPATH)/bin/protoc-gen-go:
|
||||
GO111MODULE=off go get -v google.golang.org/protobuf/cmd/protoc-gen-go
|
||||
############ tooling ############
|
||||
include ../.bingo/Variables.mk
|
||||
|
||||
$(GOPATH)/bin/protoc-gen-micro:
|
||||
GO111MODULE=on go get -v github.com/micro/protoc-gen-micro/v2
|
||||
############ go tooling ############
|
||||
include ../.make/go.mk
|
||||
|
||||
$(GOPATH)/bin/protoc-gen-microweb:
|
||||
GO111MODULE=off go get -v github.com/owncloud/protoc-gen-microweb
|
||||
############ release ############
|
||||
include ../.make/release.mk
|
||||
|
||||
$(GOPATH)/bin/protoc-gen-openapiv2:
|
||||
GO111MODULE=off go get -v github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2
|
||||
############ docs generate ############
|
||||
include ../.make/docs.mk
|
||||
|
||||
$(PROTO_SRC)/accounts.pb.go: $(PROTO_SRC)/accounts.proto
|
||||
protoc \
|
||||
-I=third_party/ \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
--go_out=. accounts.proto
|
||||
.PHONY: docs-generate
|
||||
docs-generate: config-docs-generate \
|
||||
grpc-docs-generate
|
||||
|
||||
$(PROTO_SRC)/accounts.pb.micro.go: $(PROTO_SRC)/accounts.proto
|
||||
protoc \
|
||||
-I=third_party/ \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
--micro_out=. accounts.proto
|
||||
############ generate ############
|
||||
include ../.make/generate.mk
|
||||
|
||||
$(PROTO_SRC)/accounts.pb.web.go: $(PROTO_SRC)/accounts.proto
|
||||
protoc \
|
||||
-I=third_party/ \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
--microweb_out=. accounts.proto
|
||||
.PHONY: ci-go-generate
|
||||
ci-go-generate: protobuf # CI runs ci-node-generate automatically before this target
|
||||
@go generate $(GENERATE)
|
||||
|
||||
$(PROTO_SRC)/accounts.swagger.json: $(PROTO_SRC)/accounts.proto
|
||||
# the other commands above respect the declared package in the .proto file for placement of the resulting file.
|
||||
# `swagger_out` doesn't, so we have to specify the output path as `$(PROTO_SRC)` instead of `.`
|
||||
protoc \
|
||||
-I=third_party/ \
|
||||
-I=$(PROTO_SRC)/ \
|
||||
--swagger_out=$(PROTO_SRC) accounts.proto
|
||||
.PHONY: ci-node-generate
|
||||
ci-node-generate: yarn-build
|
||||
|
||||
.PHONY: yarn-build
|
||||
yarn-build: node_modules
|
||||
yarn lint
|
||||
yarn test
|
||||
yarn build
|
||||
|
||||
.PHONY: node_modules
|
||||
node_modules:
|
||||
yarn install --frozen-lockfile
|
||||
|
||||
############ protobuf ############
|
||||
include ../.make/protobuf.mk
|
||||
|
||||
PROTO_VERSION := v0
|
||||
PROTO_SRC := pkg/proto/$(PROTO_VERSION)
|
||||
|
||||
.PHONY: protobuf
|
||||
protobuf: $(GOPATH)/bin/protoc-gen-go $(GOPATH)/bin/protoc-gen-micro $(GOPATH)/bin/protoc-gen-microweb $(GOPATH)/bin/protoc-gen-openapiv2 \
|
||||
$(PROTO_SRC)/accounts.pb.go $(PROTO_SRC)/accounts.pb.micro.go $(PROTO_SRC)/accounts.pb.web.go $(PROTO_SRC)/accounts.swagger.json
|
||||
protobuf: $(PROTO_SRC)/${NAME}.pb.go \
|
||||
$(PROTO_SRC)/${NAME}.pb.micro.go \
|
||||
$(PROTO_SRC)/${NAME}.pb.web.go \
|
||||
$(PROTO_SRC)/${NAME}.swagger.json \
|
||||
../docs/extensions/${NAME}/grpc.md
|
||||
+23
-14
@@ -1,40 +1,49 @@
|
||||
module github.com/owncloud/ocis/accounts
|
||||
|
||||
go 1.13
|
||||
go 1.15
|
||||
|
||||
require (
|
||||
contrib.go.opencensus.io/exporter/jaeger v0.2.1
|
||||
contrib.go.opencensus.io/exporter/ocagent v0.6.0
|
||||
contrib.go.opencensus.io/exporter/zipkin v0.1.1
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20201118090759-87929f5bae21
|
||||
github.com/cs3org/reva v1.4.1-0.20201216095137-5207197217f1
|
||||
github.com/asim/go-micro/plugins/client/grpc/v3 v3.0.0-20210217182006-0f0ace1a44a9
|
||||
github.com/asim/go-micro/v3 v3.5.1-0.20210217182006-0f0ace1a44a9
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20210209082852-35ace33082f5
|
||||
github.com/cs3org/reva v1.6.1-0.20210223065028-53f39499762e
|
||||
github.com/go-chi/chi v4.1.2+incompatible
|
||||
github.com/go-chi/render v1.0.1
|
||||
github.com/gofrs/uuid v3.3.0+incompatible
|
||||
github.com/golang/protobuf v1.4.3
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0
|
||||
github.com/mattn/go-runewidth v0.0.10 // indirect
|
||||
github.com/mennanov/fieldmask-utils v0.3.3
|
||||
github.com/micro/cli/v2 v2.1.2
|
||||
github.com/micro/go-micro/v2 v2.9.1
|
||||
github.com/oklog/run v1.1.0
|
||||
github.com/olekukonko/tablewriter v0.0.4
|
||||
github.com/openzipkin/zipkin-go v0.2.2
|
||||
github.com/owncloud/ocis/ocis-pkg v0.0.0-20201103111659-46bf133a3c63
|
||||
github.com/owncloud/ocis/settings v0.0.0-20200918114005-1a0ddd2190ee
|
||||
github.com/owncloud/ocis/ocis-pkg v0.0.0-20210216094451-dc73176dc62d
|
||||
github.com/owncloud/ocis/settings v0.0.0-20210216094451-dc73176dc62d
|
||||
github.com/prometheus/client_golang v1.7.1
|
||||
github.com/restic/calens v0.2.0
|
||||
github.com/rivo/uniseg v0.2.0 // indirect
|
||||
github.com/rs/zerolog v1.20.0
|
||||
github.com/spf13/viper v1.7.0
|
||||
github.com/stretchr/testify v1.6.1
|
||||
go.opencensus.io v0.22.5
|
||||
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202
|
||||
google.golang.org/genproto v0.0.0-20200624020401-64a14ca9d1ad
|
||||
google.golang.org/grpc v1.33.2
|
||||
github.com/stretchr/testify v1.7.0
|
||||
go.opencensus.io v0.22.6
|
||||
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
|
||||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777
|
||||
golang.org/x/text v0.3.5 // indirect
|
||||
google.golang.org/genproto v0.0.0-20210207032614-bba0dbe2a9ea
|
||||
google.golang.org/grpc v1.35.0
|
||||
google.golang.org/protobuf v1.25.0
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
)
|
||||
|
||||
replace (
|
||||
github.com/owncloud/ocis/ocis-pkg => ../ocis-pkg
|
||||
github.com/owncloud/ocis/settings => ../settings
|
||||
google.golang.org/grpc => google.golang.org/grpc v1.26.0
|
||||
// taken from https://github.com/asim/go-micro/blob/master/plugins/registry/etcd/go.mod#L14-L16
|
||||
go.etcd.io/etcd/api/v3 => go.etcd.io/etcd/api/v3 v3.0.0-20210204162551-dae29bb719dd
|
||||
go.etcd.io/etcd/pkg/v3 => go.etcd.io/etcd/pkg/v3 v3.0.0-20210204162551-dae29bb719dd
|
||||
// latest version compatible with etcd
|
||||
google.golang.org/grpc => google.golang.org/grpc v1.29.1
|
||||
)
|
||||
+951
-180
File diff suppressed because it is too large.
Load diff
+12
-11
@@ -21,22 +21,22 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.7.7",
|
||||
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
||||
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
||||
"@babel/plugin-proposal-export-default-from": "^7.7.4",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.7.7",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
|
||||
"@babel/plugin-transform-runtime": "^7.8.0",
|
||||
"@babel/polyfill": "^7.10.1",
|
||||
"@babel/preset-env": "^7.7.7",
|
||||
"@babel/register": "7.10.1",
|
||||
"@babel/register": "7.12.13",
|
||||
"@erquhart/rollup-plugin-node-builtins": "^2.1.5",
|
||||
"@rollup/plugin-commonjs": "^11.0.1",
|
||||
"@rollup/plugin-json": "^4.0.1",
|
||||
"@rollup/plugin-replace": "^2.3.0",
|
||||
"archiver": "^4.0.1",
|
||||
"axios": "^0.19.0",
|
||||
"archiver": "^5.2.0",
|
||||
"axios": "^0.21.1",
|
||||
"core-js": "3",
|
||||
"cross-env": "^6.0.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"cucumber": "^6.0.5",
|
||||
"cucumber-pretty": ">=6.0.0",
|
||||
"debounce": "^1.2.0",
|
||||
@@ -44,22 +44,23 @@
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-standard": "^14.1.0",
|
||||
"eslint-plugin-import": "^2.17.3",
|
||||
"eslint-plugin-node": "11.0.0",
|
||||
"eslint-plugin-node": "11.1.0",
|
||||
"eslint-plugin-promise": "^4.1.1",
|
||||
"eslint-plugin-standard": "^4.0.0",
|
||||
"eslint-plugin-vue": "^6.1.2",
|
||||
"eslint-plugin-standard": "^5.0.0",
|
||||
"eslint-plugin-vue": "^7.6.0",
|
||||
"fs-extra": "^9.0.1",
|
||||
"join-path": "^1.1.1",
|
||||
"ldap": "^0.7.1",
|
||||
"ldapjs": "^2.2.3",
|
||||
"nightwatch": "^1.3.6",
|
||||
"nightwatch-api": "^3.0.1",
|
||||
"nightwatch-vrt": "^0.2.10",
|
||||
"node-fetch": "^2.6.1",
|
||||
"qs": "^6.9.1",
|
||||
"rimraf": "^3.0.0",
|
||||
"rollup": "^1.28.0",
|
||||
"rollup": "^2.39.0",
|
||||
"rollup-plugin-babel": "^4.3.3",
|
||||
"rollup-plugin-eslint": "^7.0.0",
|
||||
"rollup-plugin-filesize": "^6.2.1",
|
||||
"rollup-plugin-filesize": "^9.1.0",
|
||||
"rollup-plugin-node-globals": "^1.4.0",
|
||||
"rollup-plugin-node-resolve": "^5.2.0",
|
||||
"rollup-plugin-terser": "^5.1.3",
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
_ "golang.org/x/net/webdav"
|
||||
)
|
||||
|
||||
//go:generate go run github.com/UnnoTed/fileb0x embed.yml
|
||||
//go:generate make -C ../.. embed.yml
|
||||
|
||||
// assets gets initialized by New and provides the handler.
|
||||
type assets struct {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by fileb0x at "2020-12-14 14:27:58.090538 +0100 CET m=+0.010488513" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(e0a1cb05b46e7cba16306ad1f78aee1c.8058aec596c5fb73022d09bb97af796e)
|
||||
// Code generated by fileb0x at "2021-03-04 20:39:03.472300386 +0100 CET m=+0.014524045" from config file "embed.yml" DO NOT EDIT.
|
||||
// modification hash(2da0b5efdd6831d3c6c6fe0c3348f8e9.8058aec596c5fb73022d09bb97af796e)
|
||||
|
||||
package assets
|
||||
|
||||
@@ -36,7 +36,7 @@ type HTTPFS struct {
|
||||
}
|
||||
|
||||
// FileAccountsJs is "accounts.js"
|
||||
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\xeb\x72\xdb\x38\xb7\x28\xf8\x7b\xf6\x53\x48\xdc\xfd\x71\x03\xad\x65\x45\x4a\xfa\x4a\x05\xad\xcf\x49\x9c\x4b\x77\x12\xa7\x63\x27\xdd\x69\xb5\xb6\x8b\xa6\x20\x1b\xb1\x04\x28\x20\xe4\x4b\x24\xce\xfb\xcc\x6b\xcc\x93\x4d\xe1\x46\x82\x14\x95\xee\x6f\x9f\x7d\x4e\x9d\xa9\x99\x2a\x97\x45\x82\xb8\x2e\x00\xeb\x86\xb5\x16\x66\x74\xce\x38\x45\x68\xbe\xe6\x99\x62\x82\x23\xbc\x89\xd6\x39\xed\xe4\x4a\xb2\x4c\x45\xa3\xeb\x54\x76\x14\x89\xd6\xdc\x66\x9c\x45\x5d\xa2\xee\x56\x54\xcc\x3b\x17\x0b\x71\x9e\x2e\x4e\x2f\x59\x3e\xae\x1e\x93\xb6\x9c\x37\x8c\xcf\xc4\xcd\xd8\xfe\xb4\xe6\xb0\x15\xb8\x7a\x5a\x73\xe4\x74\x31\x1f\xeb\x7f\xc9\xa6\x18\xf9\xce\x76\x28\x52\x40\xf1\x46\x52\xb5\x96\xbc\xa3\x10\x25\x1b\x7a\xbb\x12\x52\xe5\xc9\xa6\x28\x80\xf6\xdd\x1b\xae\x1e\x0b\x3d\x22\x4e\xc2\x21\x2b\xbc\xd1\x89\x94\xec\xa6\x1c\x9f\x7f\xa4\x99\xea\xaf\xa4\x50\x42\xf7\x04\x38\xa1\xfd\xcb\x34\x3f\xbe\xe1\x6f\xa4\x58\x51\xa9\xee\x40\x92\xc8\x17\x8c\x88\xef\xef\xc9\xdd\xf2\x5c\x2c\xc6\xf6\x27\xd9\x14\x20\x88\xec\x33\x45\x65\xaa\x84\xdc\x6e\xa3\x7f\xfe\xd3\xbf\x44\xc0\x88\xec\xa7\xf9\x1d\xcf\x5e\x84\xdf\x6b\x29\x11\xa4\x44\xf6\x95\x38\x51\x92\xf1\x8b\xd3\xf4\xc2\x64\x09\xde\xa3\x0a\x28\x99\x06\x0a\xf0\x12\x2c\x6e\x0c\x16\xa4\xbe\xd7\x26\xcf\xe6\x3a\x5d\xac\x69\xc2\x81\xf2\xf5\x92\xca\xf4\x7c\x41\x93\xee\x00\x32\xc1\xe7\xec\x62\x5d\xbe\xdf\x48\xa6\xdc\x73\x81\x41\x4d\xe8\xb4\x50\xf2\x6e\x93\xa1\x4d\x01\x51\x84\x8b\x2c\x55\xd9\xa5\x86\x59\x16\x40\xb0\xd6\x05\x5d\x86\xf0\xa2\x28\xfb\x98\xdb\x0c\x20\x2d\xa0\x05\xa1\x71\x4c\x2b\x30\x77\x18\xcf\x55\xca\x33\x0d\xc9\xf9\x98\x26\x73\x60\x7e\x2a\x32\x49\x53\x45\x91\xa8\x32\x63\x48\x09\xa7\x37\x9d\x23\x24\xb7\xdb\xc9\x14\x8f\x5c\xa3\xac\x7f\xc6\xf8\xb5\xb8\xa2\x3b\xbd\xd2\x4d\x4a\x12\xe5\xeb\x7c\x45\xf9\x8c\xce\x4e\x54\x2a\x55\xe4\xcb\x95\xb9\x05\x30\xbc\x61\x73\x14\xd1\x5b\x9a\xad\x15\xe3\x17\x11\x21\x44\x62\x75\x29\xc5\x4d\xc7\x34\x29\xa5\x90\x28\x7a\x46\xb9\x9d\xa6\x0e\xcb\x3b\xe9\x42\xd2\x74\x76\xd7\x91\x6b\xce\x75\x11\x3c\xd2\x55\x64\x62\xb9\x5a\x50\x45\x67\xb6\x0a\x53\xad\xa9\x47\xbf\x0b\x57\x25\xf3\x5d\x38\x41\xb8\x98\x0b\x89\x78\x7f\x49\xd5\xa5\x98\x11\x01\xbc\x9f\xca\x0b\xc2\x46\x23\xdb\xfd\x94\xf0\xfe\x8c\x2e\xe8\x45\xaa\xa8\x6e\x20\xb5\xc9\x19\xb9\x41\x29\x70\xd3\x66\x66\x5a\xc9\x08\x21\x0b\x9c\x09\xae\x18\x5f\x53\xdf\x40\x56\x14\xba\x07\x9c\xde\x2a\xdd\x01\xdf\x0e\xe6\xfd\x9c\x72\x45\x78\xff\xcc\xfd\xa6\xf2\x62\x44\x17\x39\xed\xd4\x3a\x5c\xe6\x37\xe3\x68\xc0\x31\x80\x91\x24\xc1\xc0\xed\x10\x46\xbc\x3f\x63\xf9\x4a\x2f\x99\xa3\xdb\x8c\xae\x0c\xa4\xcd\x17\x5c\xe8\x86\x22\xdb\xc3\xb0\x95\x38\xe6\xfd\xf4\x5c\xae\x57\x0a\xf9\xaf\xb6\x2e\x3c\x92\x24\x98\x1c\x83\xac\x72\xb2\x76\xd3\x6c\xe0\xce\x85\x5c\xa6\x0b\x5d\x5b\xde\x37\x8b\x45\xf7\x58\x6a\xe0\x09\x4e\xc7\x41\xef\x92\x6a\x18\x1f\x18\x5d\xcc\x22\xc8\x0d\xc4\x5b\xa0\xe7\xb6\x8d\xf9\x0e\xba\x9e\xc4\x56\x57\x14\x15\x84\x6c\x6b\x71\x8c\x9a\x20\x70\x13\xea\x72\xba\x69\xcd\xed\xf8\x8b\x02\x29\xe0\x90\x62\x60\xd5\x56\xf1\xc3\xd9\xe8\x3d\xe7\x3a\xa0\xeb\x4e\xfc\xd8\x20\x95\x17\x89\xea\x67\xe9\x62\x81\x74\xc6\xa2\xda\x90\xb5\xec\xae\x45\x93\xbb\x28\x0a\xd5\xbf\x91\xe9\x8a\xe4\x06\x6a\x0b\x12\xa2\xd5\x39\xc2\x9b\xaa\x03\xb3\xda\xdb\x4a\xbf\xe9\x22\x97\xba\xc8\xe5\x44\x4c\x49\x40\x3b\xfc\x7e\xbf\x64\x79\x61\x2a\x5e\xfa\x7d\x7b\x41\xd5\x1b\xbf\x63\x8f\xe7\x70\x4d\x96\x71\xbc\x44\x4b\x74\x8c\x26\x53\x8c\xf1\xe8\x3a\x8e\xaf\xbb\x44\xe3\x01\x6e\x87\x72\x0d\x02\xc7\x31\xba\x24\xd7\xd8\xd4\x74\x41\x56\xd5\x9e\x27\xf3\xe0\xb9\x8e\x19\x2e\x71\x35\x90\x3b\x0d\x84\x89\x5d\xe6\xe0\x01\xe0\xd7\xd0\xb4\x3f\x17\xf2\x28\xcd\x2e\x03\x52\x40\xf1\xc6\xa2\xcf\x1a\x75\x08\x46\xe5\x71\x0a\xa2\xa0\x70\x81\xcd\x5f\xd9\xdc\xb9\x25\x47\x06\xbd\x8c\xc2\xdc\xa4\x8e\x53\xca\x02\x69\x05\x32\x8d\x4e\x42\xa2\x24\x21\xc5\x9b\x6e\x99\x53\xea\x92\x90\x42\x66\xab\x37\xab\x7c\x22\xa6\xa0\x80\xd9\x85\x6e\x07\xd7\xad\xd6\xb9\x9d\x56\xbb\x48\xe7\x64\xd1\x37\x8b\xb6\xc4\x71\x71\x1c\x09\x03\xb6\x8a\x64\xcd\x4b\xd0\xcf\x21\x3a\x3b\x4b\x6f\x52\xa6\x22\x3c\xa6\x7d\x49\x73\xb1\xb8\xa6\x68\xde\x77\xa9\xb8\xaf\x2e\x29\xaf\x53\x50\xe9\xb0\x09\x28\xd3\xcb\x02\x43\xf3\xb3\x03\xbf\xff\x8e\x93\xa0\xe6\xb6\x1a\x5d\x97\x89\x82\x14\x2d\x76\x2b\xb4\x03\x69\xa9\xb7\xc8\x90\xdb\x4f\x06\x66\x1a\x90\x3a\xd5\x17\x20\x72\x2c\x6d\x6b\x29\xa4\x38\x49\x11\x0e\xe8\xd2\x4d\x35\x83\x9c\xa8\x92\x60\x4f\xa8\xdb\xb7\x53\x0d\xeb\x6b\xc1\x66\x9d\x81\x46\x50\x06\x9b\xd0\x12\x11\x13\xbe\x5e\x2c\xa0\x42\x02\x34\x44\x93\x55\x6d\x7d\xdb\x95\x38\x46\xb4\x44\x07\x1e\xaf\x51\x83\x0f\x6c\x0b\x60\x7b\xd3\x56\x21\x76\xa3\x59\x8c\x68\x13\xa3\xd8\x1a\xf4\x72\x3a\xbd\x5b\x51\x47\xa1\x4e\x2f\x69\xc7\x37\xdf\x99\x09\x9a\x77\xb8\x50\x9d\x95\x14\xd7\x6c\x46\x3b\x69\xe7\x3f\x4c\xe1\xff\xe8\xd8\xba\xa2\x12\x5a\x8b\xc2\xd2\xca\x35\xe2\x50\x0d\xc0\xb6\x11\xae\x3b\x8d\xf3\xed\xba\x73\x05\xf7\x74\x4b\x9a\xe5\xd8\x84\xd8\x62\x64\x99\x00\xf3\xd5\x2f\x51\x31\x16\x16\x49\x23\x3a\x51\x7a\xa5\xac\x17\xea\x75\xba\xa4\x53\x22\xec\xc2\x00\xda\xd7\x2b\x8e\x28\xf3\xf3\x52\x64\xe5\xce\xee\x56\xLine truncated
|
||||
var FileAccountsJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\xfd\xe9\x92\x1b\xb7\xf6\x20\x88\x7f\xfe\xf7\x53\x90\x79\xed\xfc\x01\xe6\x29\x16\x59\x5a\x6c\x27\x05\xf1\x6a\x97\x6c\x6d\xd6\x62\x5b\xa6\x78\x2b\xb2\x92\x20\x2b\x25\x12\xa0\x91\x60\x2d\x26\xb3\x23\xfe\xfd\x36\xf3\x71\x3e\xcc\x0b\xcc\x13\x74\xbf\xd1\x04\x0e\x80\xdc\x98\x94\x7c\xbb\x7f\x3d\x11\x13\x52\x14\x33\x91\x58\x0f\x80\xb3\xe3\x60\xc6\xe7\xa9\xe0\x84\xcc\x37\x22\xd1\xa9\x14\x84\x6e\x83\x4d\xc6\x3b\x99\x56\x69\xa2\x83\xd1\x45\xac\x3a\x9a\x05\x1b\x61\x33\xce\x82\x2e\xd3\xd7\x6b\x2e\xe7\x9d\xc5\x52\x9e\xc5\xcb\x77\xe7\x69\x36\x2e\x1f\xa3\xb6\x9c\x97\xa9\x98\xc9\xcb\xb1\xfd\x69\xcd\x61\x2b\x70\xf5\xb4\xe6\xc8\xf8\x72\x3e\x36\x7f\xa2\x6d\x3e\xf2\x9d\xed\x70\xa2\x81\xd3\xad\xe2\x7a\xa3\x44\x47\x13\xce\xb6\xfc\x6a\x2d\x95\xce\xa2\x6d\x9e\x03\xef\xbb\x37\x5a\x3e\xe6\xd5\xc1\x6a\xba\x35\x03\xe4\x6c\x3f\xe5\xd5\xd9\x27\x9e\xe8\xfe\x5a\x49\x2d\x4d\x1f\x40\x30\xde\x3f\x8f\xb3\x57\x97\xe2\xb5\x92\x6b\xae\xf4\x35\x28\x16\xf8\x82\x01\xf3\x3d\x7d\x7b\xbd\x3a\x93\xcb\xb1\xfd\x89\xb6\x39\x48\xa6\xfa\xa9\xe6\x2a\xd6\x52\xed\x76\xc1\x3f\xff\xe9\x5f\x02\x48\x99\xea\xc7\xd9\xb5\x48\x9e\x55\xbf\xd7\x52\x02\x88\x99\xea\x6b\xf9\x56\xab\x54\x2c\xde\xc5\x0b\xcc\x52\x79\x0f\x4a\x70\x64\x06\x1c\x20\x0a\x80\xb8\x31\x58\x60\xfa\x5e\x63\x9e\xed\x45\xbc\xdc\xf0\x48\x00\x17\x9b\x15\x57\xf1\xd9\x92\x47\xdd\x01\x24\x52\xcc\xd3\xc5\xa6\x78\xbf\x54\xa9\x76\xcf\x39\x05\x3d\xe1\xd3\x5c\xab\xeb\x6d\x46\xb6\x39\x04\x01\xcd\x93\x58\x27\xe7\x06\x66\x59\x05\x82\xb5\x2e\x98\x32\x4c\xe4\x79\xd1\xc7\xc4\x66\x00\x65\x01\x2d\x19\x0f\x43\x5e\x82\xb9\x93\x8a\x4c\xc7\x22\x31\x90\x9c\x8f\x79\x34\x87\xd4\x4f\x45\xa2\x78\xac\x39\x91\x65\x66\x0a\x31\x13\xfc\xb2\x73\x45\xd4\x6e\x37\x99\xd2\x91\x6b\x34\xed\x9f\xa6\xe2\x42\x7e\xe6\x7b\xbd\x32\x4d\x2a\x16\x64\x9b\x6c\xcd\xc5\x8c\xcf\xde\xea\x58\xe9\xc0\x97\x2b\x72\x4b\x48\xe9\x36\x9d\x93\x80\x5f\xf1\x64\xa3\x53\xb1\x08\x18\x63\x8a\xea\x73\x25\x2f\x3b\xa6\xc9\x47\x4a\x49\x45\x82\x27\x5c\xd8\x69\xea\xa4\x59\x27\x5e\x2a\x1e\xcf\xae\x3b\x6a\x23\x84\x29\x42\x47\xa6\x8a\x44\xae\xd6\x4b\xae\xf9\xcc\x56\x81\xd5\x62\x3d\xe6\x5d\xba\x2a\x53\xdf\x85\x53\x42\xf3\xb9\x54\x44\xf4\x57\x5c\x9f\xcb\x19\x93\x20\xfa\xb1\x5a\xb0\x74\x34\xb2\xdd\x8f\x99\xe8\xcf\xf8\x92\x2f\x62\xcd\x4d\x03\xb1\x4d\xce\xd8\x25\x89\x41\x60\x9b\x19\xb6\x92\x31\xc6\x96\x34\x91\x42\xa7\x62\xc3\x7d\x03\x59\x9e\x9b\x1e\x08\x7e\xa5\x4d\x07\x7c\x3b\x54\xf4\x33\x2e\x34\x13\xfd\x53\xf7\x1b\xab\xc5\x88\x2f\x33\xde\xa9\x75\xb8\xc8\x8f\xe3\x68\xc0\xb1\x02\x23\xc5\x2a\x03\xb7\x43\x18\x89\xfe\x2c\xcd\xd6\x66\xc9\x3c\xba\x4a\xf8\x1a\x21\x8d\x5f\x68\x6e\x1a\x0a\x6c\x0f\xab\xad\x84\xa1\xe8\xc7\x67\x6a\xb3\xd6\xc4\x7f\xb5\x75\xd1\x91\x62\x95\xc9\x41\x34\x95\xb0\x8d\x9b\x66\x84\xbb\x90\x6a\x15\x2f\x4d\x6d\x49\x1f\x17\x8b\xe9\xb1\x32\xc0\x93\x82\x8f\x2b\xbd\x8b\xca\x61\x7c\x48\xf9\x72\x16\x40\x82\x10\x6f\x81\x9e\xdb\x36\xf8\x1d\x4c\x3d\x91\xad\x2e\xcf\x4b\x08\xd9\xd6\xc2\x90\x34\x41\xe0\x26\xd4\xe5\x74\xd3\x9a\xd8\xf1\xe7\x39\xd1\x20\x20\xa6\x90\x96\x5b\xc5\x0f\x67\x6b\xf6\x9c\xeb\x80\xa9\x3b\xf2\x63\x83\x58\x2d\x22\xdd\x4f\xe2\xe5\x92\x98\x8c\x79\xb9\x21\x6b\xd9\x5d\x8b\x98\x3b\xcf\x73\xdd\xbf\x54\xf1\x9a\x25\x08\xb5\x25\xab\x22\xd4\x39\xa1\xdb\xb2\x03\xb3\xda\xdb\xda\xbc\x99\x22\xe7\xa6\xc8\xf9\x44\x4e\x59\x85\x6a\xf8\xfd\x7e\x9e\x66\x39\x56\xbc\xf2\xfb\x76\xc1\xf5\x6b\xbf\x63\x5f\xcd\x61\xc1\x56\x61\xb8\x22\x2b\xf2\x8a\x4c\xa6\x94\xd2\xd1\x22\x0c\x17\x5d\x66\xf0\x80\xb0\x43\x59\x80\xa4\x61\x48\xce\xd9\x82\x62\x4d\xd7\x6c\x5d\xee\x79\x36\xaf\x3c\xd7\x31\xc3\x39\x2d\x07\x72\x61\x80\x30\xb1\xcb\x1c\x3c\x00\xfc\x1a\x9a\xf6\xe7\x52\x3d\x8a\x93\xf3\x0a\x29\xe0\x74\x6b\xd1\x67\x8d\x3a\x54\x46\xe5\x71\x0a\xe1\xa0\x69\x4e\xf1\x7f\xd1\xdc\x99\x25\x44\x88\x5e\x46\xd5\xdc\xac\x8e\x53\x8a\x02\x71\x09\x32\x83\x4e\xaa\x44\x49\x41\x4c\xb7\xdd\x22\xa7\x32\x25\x21\x86\xcc\x56\x8f\xab\x7c\x22\xa7\xa0\x21\xb5\x0b\xdd\x0e\xae\x5b\xae\x73\x3b\xad\x76\x91\xce\xd9\xb2\x8f\x8b\xb6\xc0\x71\x61\x18\x48\x04\x5b\x49\xb2\xe6\x05\xe8\xe7\x10\x9c\x9e\xc6\x97\x71\xaa\x03\x3a\xe6\x7d\xc5\x33\xb9\xbc\xe0\x64\xde\x77\xa9\xb4\xaf\xcf\xb9\xa8\x53\x50\xe5\xb0\x09\x68\xec\x65\x4e\xa1\xf9\xd9\x81\xdf\x7f\xa7\x51\xa5\xe6\xb6\x1a\x5d\x97\x99\x86\x98\x2c\xf7\x2b\xb4\x03\x69\xa9\x37\xcf\x88\xdb\x4f\x08\x33\x03\x48\x93\xea\x0b\x30\x35\x56\xb6\xb5\x18\x62\x1a\xc5\x84\x56\xe8\xd2\x65\x39\x83\x82\xe9\x82\x60\x4f\xb8\xdb\xb7\x53\x03\xeb\x0b\x99\xce\x3a\x03\x83\xa0\x10\x9b\xf0\x02\x11\x33\xb1\x59\x2e\xa1\x44\x02\xbc\x8a\x26\xcb\xda\xfa\xb6\x2b\x61\x48\x78\x81\x0e\x3c\x5e\xe3\x88\x0f\x6c\x0b\x60\x7b\xd3\x56\x21\x75\xa3\x59\x8e\x78\x13\xa3\xd8\x1a\xcc\x72\x7a\x77\xbd\xe6\x8e\x42\xbd\x3b\xe7\x1d\xdf\x7c\x67\x26\x79\xd6\x11\x52\x77\xd6\x4a\x5e\xa4\x33\xde\x89\x3b\xff\x81\x85\xff\xa3\x63\xeb\x0a\x0a\x68\x2d\x73\x4b\x2b\x37\x44\x40\x39\x00\xdb\x46\x75\xdd\x19\x9c\x6f\xd7\x9d\x2b\x78\xa0\x5b\x0a\x97\x63\x13\x62\xcb\x91\x65\x02\xf0\xab\x5f\xa2\x72\x2c\x2d\x92\x26\x7c\xa2\xcd\x4a\xd9\x2c\xf5\xcb\x78\xc5\xa7\x4c\xda\x85\x01\xbc\x6f\x56\x1c\xd3\xf8\xf3\x5c\xLine truncated
|
||||
|
||||
func init() {
|
||||
err := CTX.Err()
|
||||
|
||||
@@ -3,8 +3,8 @@ package command
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/asim/go-micro/plugins/client/grpc/v3"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/v2/client/grpc"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
||||
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
|
||||
@@ -2,14 +2,15 @@ package command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/asim/go-micro/plugins/client/grpc/v3"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/v2/client/grpc"
|
||||
tw "github.com/olekukonko/tablewriter"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
||||
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"os"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
// InspectAccount command shows detailed information about a specific account.
|
||||
|
||||
@@ -2,14 +2,15 @@ package command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
"github.com/asim/go-micro/plugins/client/grpc/v3"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/v2/client/grpc"
|
||||
tw "github.com/olekukonko/tablewriter"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
||||
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"os"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
// ListAccounts command lists all accounts
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/asim/go-micro/plugins/client/grpc/v3"
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/v2/client/grpc"
|
||||
merrors "github.com/micro/go-micro/v2/errors"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
index "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
)
|
||||
|
||||
@@ -2,12 +2,13 @@ package command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/asim/go-micro/plugins/client/grpc/v3"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/v2/client/grpc"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
||||
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"os"
|
||||
)
|
||||
|
||||
// RemoveAccount command deletes an existing account.
|
||||
|
||||
@@ -160,9 +160,6 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
)
|
||||
|
||||
gr.Add(func() error {
|
||||
logger.Info().Str("service", server.Name()).Msg("Reporting settings bundles to settings service")
|
||||
svc.RegisterSettingsBundles(&logger)
|
||||
svc.RegisterPermissions(&logger)
|
||||
return server.Run()
|
||||
}, func(_ error) {
|
||||
logger.Info().
|
||||
|
||||
@@ -3,8 +3,9 @@ package command
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/asim/go-micro/plugins/client/grpc/v3"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/v2/client/grpc"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/flagset"
|
||||
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
|
||||
@@ -19,7 +19,7 @@ func PrintVersion(cfg *config.Config) *cli.Command {
|
||||
Usage: "Print the versions of the running instances",
|
||||
Flags: flagset.ListAccountsWithConfig(cfg),
|
||||
Action: func(c *cli.Context) error {
|
||||
reg := *registry.GetRegistry()
|
||||
reg := registry.GetRegistry()
|
||||
services, err := reg.GetService(cfg.GRPC.Namespace + "." + cfg.Server.Name)
|
||||
if err != nil {
|
||||
fmt.Println(fmt.Errorf("could not get accounts services from the registry: %v", err))
|
||||
|
||||
@@ -137,7 +137,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
Name: "jwt-secret",
|
||||
Value: "Pive-Fumkiu4",
|
||||
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
|
||||
EnvVars: []string{"ACCOUNTS_JWT_SECRET"},
|
||||
EnvVars: []string{"ACCOUNTS_JWT_SECRET", "OCIS_JWT_SECRET"},
|
||||
Destination: &cfg.TokenManager.JWTSecret,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
@@ -172,7 +172,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
Name: "storage-cs3-jwt-secret",
|
||||
Value: "Pive-Fumkiu4",
|
||||
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
|
||||
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_JWT_SECRET"},
|
||||
EnvVars: []string{"ACCOUNTS_STORAGE_CS3_JWT_SECRET", "OCIS_JWT_SECRET"},
|
||||
Destination: &cfg.Repo.CS3.JWTSecret,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
|
||||
@@ -3,8 +3,8 @@ package proto
|
||||
import (
|
||||
context "context"
|
||||
|
||||
client "github.com/asim/go-micro/v3/client"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
client "github.com/micro/go-micro/v2/client"
|
||||
)
|
||||
|
||||
// MockAccountsService can be used to write tests
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.21.0-devel
|
||||
// protoc v3.13.0
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.14.0
|
||||
// source: accounts.proto
|
||||
|
||||
package proto
|
||||
@@ -10,6 +10,7 @@ import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
@@ -480,12 +481,12 @@ type Account struct {
|
||||
IsResourceAccount bool `protobuf:"varint,3,opt,name=is_resource_account,json=isResourceAccount,proto3" json:"is_resource_account,omitempty"`
|
||||
// Indicates whether the account was created as
|
||||
// - a regular school or work account ("" / emptystring),
|
||||
// - a local account, fully managed by ocis (LocalAccount), includes synced accounts or
|
||||
// - a local account, fully managed by oCIS (LocalAccount), includes synced accounts or
|
||||
// - an external account (Invitation),
|
||||
// - self-service sign-up using email verification (EmailVerified). Read-only.
|
||||
CreationType string `protobuf:"bytes,4,opt,name=creation_type,json=creationType,proto3" json:"creation_type,omitempty"`
|
||||
// Represents the identities that can be used to sign in to this account.
|
||||
// An identity can be provided by OCIS (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and is tied to an account.
|
||||
// An identity can be provided by oCIS (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and is tied to an account.
|
||||
// May contain multiple items with the same signInType value. Supports $filter.
|
||||
Identities []*Identities `protobuf:"bytes,5,rep,name=identities,proto3" json:"identities,omitempty"`
|
||||
// The name displayed in the address book for the account.
|
||||
@@ -527,7 +528,7 @@ type Account struct {
|
||||
// *false* if this object was originally synced from an on-premises directory but is no longer synced;
|
||||
// null if this object has never been synced from an on-premises directory (default). Read-only
|
||||
OnPremisesSyncEnabled bool `protobuf:"varint,20,opt,name=on_premises_sync_enabled,json=onPremisesSyncEnabled,proto3" json:"on_premises_sync_enabled,omitempty"`
|
||||
// This property is used to associate an on-premises LDAP user to the ocis account object.
|
||||
// This property is used to associate an on-premises LDAP user to the oCIS account object.
|
||||
// This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property.
|
||||
// Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
|
||||
OnPremisesImmutableId string `protobuf:"bytes,21,opt,name=on_premises_immutable_id,json=onPremisesImmutableId,proto3" json:"on_premises_immutable_id,omitempty"`
|
||||
@@ -796,7 +797,7 @@ func (x *Account) GetSignInSessionsValidFromDateTime() *timestamp.Timestamp {
|
||||
}
|
||||
|
||||
// Identities Represents an identity used to sign in to a user account.
|
||||
// An identity can be provided by ocis, by organizations, or by social identity providers such as Facebook, Google, or Microsoft, that are tied to a user account.
|
||||
// An identity can be provided by oCIS, by organizations, or by social identity providers such as Facebook, Google, or Microsoft, that are tied to a user account.
|
||||
// This enables the user to sign in to the user account with any of those associated identities.
|
||||
// They are also used to keep a history of old usernames.
|
||||
type Identities struct {
|
||||
@@ -1643,7 +1644,7 @@ type Group struct {
|
||||
// null if this object has never been synced from an on-premises directory (default).
|
||||
// Returned by default. Read-only. Supports $filter.
|
||||
OnPremisesSyncEnabled bool `protobuf:"varint,20,opt,name=on_premises_sync_enabled,json=onPremisesSyncEnabled,proto3" json:"on_premises_sync_enabled,omitempty"`
|
||||
// This property is used to associate an on-premises LDAP user to the ocis account object.
|
||||
// This property is used to associate an on-premises LDAP user to the oCIS account object.
|
||||
// This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property.
|
||||
// Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
|
||||
OnPremisesImmutableId string `protobuf:"bytes,21,opt,name=on_premises_immutable_id,json=onPremisesImmutableId,proto3" json:"on_premises_immutable_id,omitempty"`
|
||||
@@ -1919,7 +1920,7 @@ var File_accounts_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_accounts_proto_rawDesc = []byte{
|
||||
0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x12, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x12, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
|
||||
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
|
||||
0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
|
||||
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
|
||||
@@ -1929,7 +1930,10 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61,
|
||||
0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x15, 0x0a, 0x13, 0x52, 0x65, 0x62,
|
||||
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f,
|
||||
0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x15, 0x0a, 0x13, 0x52, 0x65, 0x62,
|
||||
0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x22, 0x16, 0x0a, 0x14, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73,
|
||||
@@ -1946,7 +1950,7 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x6d, 0x0a, 0x14,
|
||||
0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
|
||||
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
|
||||
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
||||
0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,
|
||||
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,
|
||||
@@ -1955,12 +1959,12 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
|
||||
0x22, 0x43, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
||||
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74,
|
||||
0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63,
|
||||
0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x80, 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b,
|
||||
0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75,
|
||||
0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
||||
@@ -1979,7 +1983,7 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72,
|
||||
0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x0a, 0x69, 0x64,
|
||||
0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14,
|
||||
0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
|
||||
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
|
||||
0x74, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73,
|
||||
0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
|
||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e,
|
||||
@@ -1994,11 +1998,11 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x44,
|
||||
0x0a, 0x10, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69,
|
||||
0x6e, 0x67, 0x73, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x66,
|
||||
0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x73, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x66,
|
||||
0x69, 0x6c, 0x65, 0x52, 0x0f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f,
|
||||
0x66, 0x69, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66,
|
||||
0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
|
||||
0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
||||
0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4f,
|
||||
0x66, 0x12, 0x46, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74,
|
||||
0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
|
||||
@@ -2045,7 +2049,7 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x74, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x6c, 0x0a,
|
||||
0x1f, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x5f, 0x70, 0x72, 0x6f,
|
||||
0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73,
|
||||
0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
|
||||
0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
||||
0x73, 0x2e, 0x4f, 0x6e, 0x50, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x76,
|
||||
0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x1c, 0x6f,
|
||||
0x6e, 0x50, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69,
|
||||
@@ -2115,8 +2119,8 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
|
||||
0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x65, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x06,
|
||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73,
|
||||
0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x67,
|
||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61,
|
||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x67,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61,
|
||||
0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
|
||||
0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x21, 0x0a,
|
||||
@@ -2124,11 +2128,11 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
|
||||
0x22, 0x3b, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
|
||||
0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x78, 0x0a,
|
||||
0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72,
|
||||
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||
@@ -2160,8 +2164,8 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22,
|
||||
0x6a, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
|
||||
0x67, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62,
|
||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
||||
0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62,
|
||||
0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,
|
||||
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,
|
||||
0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xea, 0x08, 0x0a, 0x05,
|
||||
@@ -2169,10 +2173,10 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
|
||||
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73,
|
||||
0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62,
|
||||
0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74,
|
||||
0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x6d, 0x65,
|
||||
0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x6d, 0x65,
|
||||
0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x29, 0x0a, 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18,
|
||||
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
|
||||
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
|
||||
0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73,
|
||||
0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||||
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
|
||||
@@ -2231,7 +2235,7 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x6e, 0x63, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x6c, 0x0a, 0x1f, 0x6f, 0x6e,
|
||||
0x5f, 0x70, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73,
|
||||
0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x1c, 0x20,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4f,
|
||||
0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4f,
|
||||
0x6e, 0x50, 0x72, 0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x1c, 0x6f, 0x6e, 0x50, 0x72,
|
||||
0x65, 0x6d, 0x69, 0x73, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69,
|
||||
@@ -2251,35 +2255,35 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0xcb, 0x04, 0x0a, 0x0f, 0x41,
|
||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78,
|
||||
0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x1d,
|
||||
0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63,
|
||||
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,
|
||||
0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63,
|
||||
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82,
|
||||
0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61,
|
||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
|
||||
0x2d, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x66, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41,
|
||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
|
||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
||||
0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41,
|
||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d,
|
||||
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
|
||||
0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2d, 0x67, 0x65, 0x74, 0x3a, 0x01, 0x2a,
|
||||
0x12, 0x6f, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
||||
0x74, 0x12, 0x1e, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x43, 0x72, 0x65,
|
||||
0x74, 0x12, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||
0x74, 0x1a, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x63,
|
||||
0x74, 0x1a, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63, 0x63,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, 0x61,
|
||||
0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61,
|
||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01,
|
||||
0x2a, 0x12, 0x6f, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x55, 0x70,
|
||||
0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x55, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x11, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x63,
|
||||
0x73, 0x74, 0x1a, 0x11, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x63,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f,
|
||||
0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f,
|
||||
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a,
|
||||
0x01, 0x2a, 0x12, 0x74, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x44,
|
||||
0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x44,
|
||||
0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2b, 0x82, 0xd3, 0xe4,
|
||||
@@ -2287,72 +2291,91 @@ var file_accounts_proto_rawDesc = []byte{
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2d, 0x64,
|
||||
0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x32, 0x90, 0x07, 0x0a, 0x0d, 0x47, 0x72, 0x6f,
|
||||
0x75, 0x70, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x0a, 0x4c, 0x69,
|
||||
0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1b, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69,
|
||||
0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
|
||||
0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1b, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
|
||||
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70,
|
||||
0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x73, 0x2d, 0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x5e, 0x0a, 0x08,
|
||||
0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x19, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69,
|
||||
0x6e, 0x67, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47,
|
||||
0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x19, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x61,
|
||||
0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x73, 0x2d, 0x67, 0x65, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0b,
|
||||
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x73, 0x65,
|
||||
0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f,
|
||||
0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74,
|
||||
0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93,
|
||||
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x61, 0x63,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f,
|
||||
0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93,
|
||||
0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2d, 0x63, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72,
|
||||
0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70,
|
||||
0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x73, 0x2d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x6e,
|
||||
0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e,
|
||||
0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47,
|
||||
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47,
|
||||
0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
|
||||
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
|
||||
0x70, 0x74, 0x79, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70,
|
||||
0x69, 0x2f, 0x76, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x73, 0x2d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x6d,
|
||||
0x0a, 0x09, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x73, 0x65,
|
||||
0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
|
||||
0x67, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d,
|
||||
0x0a, 0x09, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x61, 0x63,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
||||
0x74, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d,
|
||||
0x22, 0x28, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73,
|
||||
0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x3d, 0x2a, 0x7d, 0x2f, 0x6d, 0x65,
|
||||
0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x24, 0x72, 0x65, 0x66, 0x3a, 0x01, 0x2a, 0x12, 0x80, 0x01,
|
||||
0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d,
|
||||
0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
|
||||
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
|
||||
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e,
|
||||
0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x40,
|
||||
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x40,
|
||||
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x22, 0x35, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f,
|
||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64,
|
||||
0x3d, 0x2a, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x24, 0x72, 0x65, 0x66, 0x3a, 0x01, 0x2a,
|
||||
0x12, 0x79, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12,
|
||||
0x1c, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d,
|
||||
0x1c, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d,
|
||||
0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,
|
||||
0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d,
|
||||
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d,
|
||||
0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3,
|
||||
0xe4, 0x93, 0x02, 0x27, 0x22, 0x22, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x67, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x3d, 0x2a, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62,
|
||||
0x65, 0x72, 0x73, 0x2f, 0x24, 0x72, 0x65, 0x66, 0x3a, 0x01, 0x2a, 0x32, 0x7f, 0x0a, 0x0c, 0x49,
|
||||
0x6e, 0x64, 0x65, 0x78, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x0c, 0x52,
|
||||
0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, 0x2e, 0x73, 0x65,
|
||||
0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e,
|
||||
0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x65, 0x74,
|
||||
0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64,
|
||||
0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, 0x2e, 0x61, 0x63,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e,
|
||||
0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, 0x63, 0x63,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x64,
|
||||
0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93,
|
||||
0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x30, 0x2f, 0x69, 0x6e, 0x64, 0x65,
|
||||
0x78, 0x2f, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x14, 0x5a, 0x12,
|
||||
0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x30, 0x3b, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x78, 0x2f, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0xbe, 0x02, 0x5a,
|
||||
0x12, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x30, 0x3b, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x92, 0x41, 0xa6, 0x02, 0x12, 0xb6, 0x01, 0x0a, 0x20, 0x6f, 0x77, 0x6e, 0x43,
|
||||
0x6c, 0x6f, 0x75, 0x64, 0x20, 0x49, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x20, 0x53, 0x63,
|
||||
0x61, 0x6c, 0x65, 0x20, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x47, 0x0a, 0x0d,
|
||||
0x6f, 0x77, 0x6e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x47, 0x6d, 0x62, 0x48, 0x12, 0x20, 0x68,
|
||||
0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
|
||||
0x6d, 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6f, 0x63, 0x69, 0x73, 0x1a,
|
||||
0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x40, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75,
|
||||
0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x2a, 0x42, 0x0a, 0x0a, 0x41, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2d,
|
||||
0x32, 0x2e, 0x30, 0x12, 0x34, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74,
|
||||
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
|
||||
0x2f, 0x6f, 0x63, 0x69, 0x73, 0x2f, 0x62, 0x6c, 0x6f, 0x62, 0x2f, 0x6d, 0x61, 0x73, 0x74, 0x65,
|
||||
0x72, 0x2f, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x32, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30,
|
||||
0x2a, 0x02, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x72, 0x43, 0x0a, 0x10, 0x44, 0x65, 0x76, 0x65,
|
||||
0x6c, 0x6f, 0x70, 0x65, 0x72, 0x20, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x12, 0x2f, 0x68, 0x74,
|
||||
0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x6f, 0x77, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67,
|
||||
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x69, 0x6f, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x62, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -2369,92 +2392,92 @@ func file_accounts_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_accounts_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
|
||||
var file_accounts_proto_goTypes = []interface{}{
|
||||
(*RebuildIndexRequest)(nil), // 0: settings.RebuildIndexRequest
|
||||
(*RebuildIndexResponse)(nil), // 1: settings.RebuildIndexResponse
|
||||
(*ListAccountsRequest)(nil), // 2: settings.ListAccountsRequest
|
||||
(*ListAccountsResponse)(nil), // 3: settings.ListAccountsResponse
|
||||
(*GetAccountRequest)(nil), // 4: settings.GetAccountRequest
|
||||
(*CreateAccountRequest)(nil), // 5: settings.CreateAccountRequest
|
||||
(*UpdateAccountRequest)(nil), // 6: settings.UpdateAccountRequest
|
||||
(*DeleteAccountRequest)(nil), // 7: settings.DeleteAccountRequest
|
||||
(*Account)(nil), // 8: settings.Account
|
||||
(*Identities)(nil), // 9: settings.Identities
|
||||
(*PasswordProfile)(nil), // 10: settings.PasswordProfile
|
||||
(*ListGroupsRequest)(nil), // 11: settings.ListGroupsRequest
|
||||
(*ListGroupsResponse)(nil), // 12: settings.ListGroupsResponse
|
||||
(*GetGroupRequest)(nil), // 13: settings.GetGroupRequest
|
||||
(*CreateGroupRequest)(nil), // 14: settings.CreateGroupRequest
|
||||
(*UpdateGroupRequest)(nil), // 15: settings.UpdateGroupRequest
|
||||
(*DeleteGroupRequest)(nil), // 16: settings.DeleteGroupRequest
|
||||
(*AddMemberRequest)(nil), // 17: settings.AddMemberRequest
|
||||
(*RemoveMemberRequest)(nil), // 18: settings.RemoveMemberRequest
|
||||
(*ListMembersRequest)(nil), // 19: settings.ListMembersRequest
|
||||
(*ListMembersResponse)(nil), // 20: settings.ListMembersResponse
|
||||
(*Group)(nil), // 21: settings.Group
|
||||
(*OnPremisesProvisioningError)(nil), // 22: settings.OnPremisesProvisioningError
|
||||
(*RebuildIndexRequest)(nil), // 0: accounts.RebuildIndexRequest
|
||||
(*RebuildIndexResponse)(nil), // 1: accounts.RebuildIndexResponse
|
||||
(*ListAccountsRequest)(nil), // 2: accounts.ListAccountsRequest
|
||||
(*ListAccountsResponse)(nil), // 3: accounts.ListAccountsResponse
|
||||
(*GetAccountRequest)(nil), // 4: accounts.GetAccountRequest
|
||||
(*CreateAccountRequest)(nil), // 5: accounts.CreateAccountRequest
|
||||
(*UpdateAccountRequest)(nil), // 6: accounts.UpdateAccountRequest
|
||||
(*DeleteAccountRequest)(nil), // 7: accounts.DeleteAccountRequest
|
||||
(*Account)(nil), // 8: accounts.Account
|
||||
(*Identities)(nil), // 9: accounts.Identities
|
||||
(*PasswordProfile)(nil), // 10: accounts.PasswordProfile
|
||||
(*ListGroupsRequest)(nil), // 11: accounts.ListGroupsRequest
|
||||
(*ListGroupsResponse)(nil), // 12: accounts.ListGroupsResponse
|
||||
(*GetGroupRequest)(nil), // 13: accounts.GetGroupRequest
|
||||
(*CreateGroupRequest)(nil), // 14: accounts.CreateGroupRequest
|
||||
(*UpdateGroupRequest)(nil), // 15: accounts.UpdateGroupRequest
|
||||
(*DeleteGroupRequest)(nil), // 16: accounts.DeleteGroupRequest
|
||||
(*AddMemberRequest)(nil), // 17: accounts.AddMemberRequest
|
||||
(*RemoveMemberRequest)(nil), // 18: accounts.RemoveMemberRequest
|
||||
(*ListMembersRequest)(nil), // 19: accounts.ListMembersRequest
|
||||
(*ListMembersResponse)(nil), // 20: accounts.ListMembersResponse
|
||||
(*Group)(nil), // 21: accounts.Group
|
||||
(*OnPremisesProvisioningError)(nil), // 22: accounts.OnPremisesProvisioningError
|
||||
(*field_mask.FieldMask)(nil), // 23: google.protobuf.FieldMask
|
||||
(*timestamp.Timestamp)(nil), // 24: google.protobuf.Timestamp
|
||||
(*empty.Empty)(nil), // 25: google.protobuf.Empty
|
||||
}
|
||||
var file_accounts_proto_depIdxs = []int32{
|
||||
23, // 0: settings.ListAccountsRequest.field_mask:type_name -> google.protobuf.FieldMask
|
||||
8, // 1: settings.ListAccountsResponse.accounts:type_name -> settings.Account
|
||||
8, // 2: settings.CreateAccountRequest.account:type_name -> settings.Account
|
||||
8, // 3: settings.UpdateAccountRequest.account:type_name -> settings.Account
|
||||
23, // 4: settings.UpdateAccountRequest.update_mask:type_name -> google.protobuf.FieldMask
|
||||
9, // 5: settings.Account.identities:type_name -> settings.Identities
|
||||
10, // 6: settings.Account.password_profile:type_name -> settings.PasswordProfile
|
||||
21, // 7: settings.Account.memberOf:type_name -> settings.Group
|
||||
24, // 8: settings.Account.created_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 9: settings.Account.deleted_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 10: settings.Account.on_premises_last_sync_date_time:type_name -> google.protobuf.Timestamp
|
||||
22, // 11: settings.Account.on_premises_provisioning_errors:type_name -> settings.OnPremisesProvisioningError
|
||||
24, // 12: settings.Account.external_user_state_change_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 13: settings.Account.refresh_tokens_valid_from_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 14: settings.Account.sign_in_sessions_valid_from_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 15: settings.PasswordProfile.last_password_change_date_time:type_name -> google.protobuf.Timestamp
|
||||
23, // 16: settings.ListGroupsRequest.field_mask:type_name -> google.protobuf.FieldMask
|
||||
21, // 17: settings.ListGroupsResponse.groups:type_name -> settings.Group
|
||||
21, // 18: settings.CreateGroupRequest.group:type_name -> settings.Group
|
||||
21, // 19: settings.UpdateGroupRequest.group:type_name -> settings.Group
|
||||
23, // 20: settings.UpdateGroupRequest.update_mask:type_name -> google.protobuf.FieldMask
|
||||
23, // 21: settings.ListMembersRequest.field_mask:type_name -> google.protobuf.FieldMask
|
||||
8, // 22: settings.ListMembersResponse.members:type_name -> settings.Account
|
||||
8, // 23: settings.Group.members:type_name -> settings.Account
|
||||
8, // 24: settings.Group.owners:type_name -> settings.Account
|
||||
24, // 25: settings.Group.created_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 26: settings.Group.deleted_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 27: settings.Group.expiration_date_time:type_name -> google.protobuf.Timestamp
|
||||
22, // 28: settings.Group.on_premises_provisioning_errors:type_name -> settings.OnPremisesProvisioningError
|
||||
24, // 29: settings.OnPremisesProvisioningError.occurred_date_time:type_name -> google.protobuf.Timestamp
|
||||
2, // 30: settings.AccountsService.ListAccounts:input_type -> settings.ListAccountsRequest
|
||||
4, // 31: settings.AccountsService.GetAccount:input_type -> settings.GetAccountRequest
|
||||
5, // 32: settings.AccountsService.CreateAccount:input_type -> settings.CreateAccountRequest
|
||||
6, // 33: settings.AccountsService.UpdateAccount:input_type -> settings.UpdateAccountRequest
|
||||
7, // 34: settings.AccountsService.DeleteAccount:input_type -> settings.DeleteAccountRequest
|
||||
11, // 35: settings.GroupsService.ListGroups:input_type -> settings.ListGroupsRequest
|
||||
13, // 36: settings.GroupsService.GetGroup:input_type -> settings.GetGroupRequest
|
||||
14, // 37: settings.GroupsService.CreateGroup:input_type -> settings.CreateGroupRequest
|
||||
15, // 38: settings.GroupsService.UpdateGroup:input_type -> settings.UpdateGroupRequest
|
||||
16, // 39: settings.GroupsService.DeleteGroup:input_type -> settings.DeleteGroupRequest
|
||||
17, // 40: settings.GroupsService.AddMember:input_type -> settings.AddMemberRequest
|
||||
18, // 41: settings.GroupsService.RemoveMember:input_type -> settings.RemoveMemberRequest
|
||||
19, // 42: settings.GroupsService.ListMembers:input_type -> settings.ListMembersRequest
|
||||
0, // 43: settings.IndexService.RebuildIndex:input_type -> settings.RebuildIndexRequest
|
||||
3, // 44: settings.AccountsService.ListAccounts:output_type -> settings.ListAccountsResponse
|
||||
8, // 45: settings.AccountsService.GetAccount:output_type -> settings.Account
|
||||
8, // 46: settings.AccountsService.CreateAccount:output_type -> settings.Account
|
||||
8, // 47: settings.AccountsService.UpdateAccount:output_type -> settings.Account
|
||||
25, // 48: settings.AccountsService.DeleteAccount:output_type -> google.protobuf.Empty
|
||||
12, // 49: settings.GroupsService.ListGroups:output_type -> settings.ListGroupsResponse
|
||||
21, // 50: settings.GroupsService.GetGroup:output_type -> settings.Group
|
||||
21, // 51: settings.GroupsService.CreateGroup:output_type -> settings.Group
|
||||
21, // 52: settings.GroupsService.UpdateGroup:output_type -> settings.Group
|
||||
25, // 53: settings.GroupsService.DeleteGroup:output_type -> google.protobuf.Empty
|
||||
21, // 54: settings.GroupsService.AddMember:output_type -> settings.Group
|
||||
21, // 55: settings.GroupsService.RemoveMember:output_type -> settings.Group
|
||||
20, // 56: settings.GroupsService.ListMembers:output_type -> settings.ListMembersResponse
|
||||
1, // 57: settings.IndexService.RebuildIndex:output_type -> settings.RebuildIndexResponse
|
||||
23, // 0: accounts.ListAccountsRequest.field_mask:type_name -> google.protobuf.FieldMask
|
||||
8, // 1: accounts.ListAccountsResponse.accounts:type_name -> accounts.Account
|
||||
8, // 2: accounts.CreateAccountRequest.account:type_name -> accounts.Account
|
||||
8, // 3: accounts.UpdateAccountRequest.account:type_name -> accounts.Account
|
||||
23, // 4: accounts.UpdateAccountRequest.update_mask:type_name -> google.protobuf.FieldMask
|
||||
9, // 5: accounts.Account.identities:type_name -> accounts.Identities
|
||||
10, // 6: accounts.Account.password_profile:type_name -> accounts.PasswordProfile
|
||||
21, // 7: accounts.Account.memberOf:type_name -> accounts.Group
|
||||
24, // 8: accounts.Account.created_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 9: accounts.Account.deleted_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 10: accounts.Account.on_premises_last_sync_date_time:type_name -> google.protobuf.Timestamp
|
||||
22, // 11: accounts.Account.on_premises_provisioning_errors:type_name -> accounts.OnPremisesProvisioningError
|
||||
24, // 12: accounts.Account.external_user_state_change_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 13: accounts.Account.refresh_tokens_valid_from_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 14: accounts.Account.sign_in_sessions_valid_from_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 15: accounts.PasswordProfile.last_password_change_date_time:type_name -> google.protobuf.Timestamp
|
||||
23, // 16: accounts.ListGroupsRequest.field_mask:type_name -> google.protobuf.FieldMask
|
||||
21, // 17: accounts.ListGroupsResponse.groups:type_name -> accounts.Group
|
||||
21, // 18: accounts.CreateGroupRequest.group:type_name -> accounts.Group
|
||||
21, // 19: accounts.UpdateGroupRequest.group:type_name -> accounts.Group
|
||||
23, // 20: accounts.UpdateGroupRequest.update_mask:type_name -> google.protobuf.FieldMask
|
||||
23, // 21: accounts.ListMembersRequest.field_mask:type_name -> google.protobuf.FieldMask
|
||||
8, // 22: accounts.ListMembersResponse.members:type_name -> accounts.Account
|
||||
8, // 23: accounts.Group.members:type_name -> accounts.Account
|
||||
8, // 24: accounts.Group.owners:type_name -> accounts.Account
|
||||
24, // 25: accounts.Group.created_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 26: accounts.Group.deleted_date_time:type_name -> google.protobuf.Timestamp
|
||||
24, // 27: accounts.Group.expiration_date_time:type_name -> google.protobuf.Timestamp
|
||||
22, // 28: accounts.Group.on_premises_provisioning_errors:type_name -> accounts.OnPremisesProvisioningError
|
||||
24, // 29: accounts.OnPremisesProvisioningError.occurred_date_time:type_name -> google.protobuf.Timestamp
|
||||
2, // 30: accounts.AccountsService.ListAccounts:input_type -> accounts.ListAccountsRequest
|
||||
4, // 31: accounts.AccountsService.GetAccount:input_type -> accounts.GetAccountRequest
|
||||
5, // 32: accounts.AccountsService.CreateAccount:input_type -> accounts.CreateAccountRequest
|
||||
6, // 33: accounts.AccountsService.UpdateAccount:input_type -> accounts.UpdateAccountRequest
|
||||
7, // 34: accounts.AccountsService.DeleteAccount:input_type -> accounts.DeleteAccountRequest
|
||||
11, // 35: accounts.GroupsService.ListGroups:input_type -> accounts.ListGroupsRequest
|
||||
13, // 36: accounts.GroupsService.GetGroup:input_type -> accounts.GetGroupRequest
|
||||
14, // 37: accounts.GroupsService.CreateGroup:input_type -> accounts.CreateGroupRequest
|
||||
15, // 38: accounts.GroupsService.UpdateGroup:input_type -> accounts.UpdateGroupRequest
|
||||
16, // 39: accounts.GroupsService.DeleteGroup:input_type -> accounts.DeleteGroupRequest
|
||||
17, // 40: accounts.GroupsService.AddMember:input_type -> accounts.AddMemberRequest
|
||||
18, // 41: accounts.GroupsService.RemoveMember:input_type -> accounts.RemoveMemberRequest
|
||||
19, // 42: accounts.GroupsService.ListMembers:input_type -> accounts.ListMembersRequest
|
||||
0, // 43: accounts.IndexService.RebuildIndex:input_type -> accounts.RebuildIndexRequest
|
||||
3, // 44: accounts.AccountsService.ListAccounts:output_type -> accounts.ListAccountsResponse
|
||||
8, // 45: accounts.AccountsService.GetAccount:output_type -> accounts.Account
|
||||
8, // 46: accounts.AccountsService.CreateAccount:output_type -> accounts.Account
|
||||
8, // 47: accounts.AccountsService.UpdateAccount:output_type -> accounts.Account
|
||||
25, // 48: accounts.AccountsService.DeleteAccount:output_type -> google.protobuf.Empty
|
||||
12, // 49: accounts.GroupsService.ListGroups:output_type -> accounts.ListGroupsResponse
|
||||
21, // 50: accounts.GroupsService.GetGroup:output_type -> accounts.Group
|
||||
21, // 51: accounts.GroupsService.CreateGroup:output_type -> accounts.Group
|
||||
21, // 52: accounts.GroupsService.UpdateGroup:output_type -> accounts.Group
|
||||
25, // 53: accounts.GroupsService.DeleteGroup:output_type -> google.protobuf.Empty
|
||||
21, // 54: accounts.GroupsService.AddMember:output_type -> accounts.Group
|
||||
21, // 55: accounts.GroupsService.RemoveMember:output_type -> accounts.Group
|
||||
20, // 56: accounts.GroupsService.ListMembers:output_type -> accounts.ListMembersResponse
|
||||
1, // 57: accounts.IndexService.RebuildIndex:output_type -> accounts.RebuildIndexResponse
|
||||
44, // [44:58] is the sub-list for method output_type
|
||||
30, // [30:44] is the sub-list for method input_type
|
||||
30, // [30:30] is the sub-list for extension type_name
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
_ "github.com/golang/protobuf/ptypes/timestamp"
|
||||
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
_ "google.golang.org/genproto/protobuf/field_mask"
|
||||
math "math"
|
||||
@@ -15,9 +16,9 @@ import (
|
||||
|
||||
import (
|
||||
context "context"
|
||||
api "github.com/micro/go-micro/v2/api"
|
||||
client "github.com/micro/go-micro/v2/client"
|
||||
server "github.com/micro/go-micro/v2/server"
|
||||
api "github.com/asim/go-micro/v3/api"
|
||||
client "github.com/asim/go-micro/v3/client"
|
||||
server "github.com/asim/go-micro/v3/server"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
||||
@@ -10,9 +10,11 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
mgrpcc "github.com/asim/go-micro/plugins/client/grpc/v3"
|
||||
|
||||
"github.com/asim/go-micro/v3/client"
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
"github.com/micro/go-micro/v2/client"
|
||||
merrors "github.com/micro/go-micro/v2/errors"
|
||||
"github.com/owncloud/ocis/accounts/pkg/command"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
@@ -24,7 +26,7 @@ import (
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
||||
var service = grpc.Service{}
|
||||
var service = grpc.NewService()
|
||||
|
||||
var dataPath = createTmpDir()
|
||||
|
||||
@@ -126,7 +128,7 @@ func getGroup(group string) *proto.Group {
|
||||
switch group {
|
||||
case "sysusers":
|
||||
return &proto.Group{Id: "34f38767-c937-4eb6-b847-1c175829a2a0", GidNumber: 15000, OnPremisesSamAccountName: "sysusers", DisplayName: "Technical users", Description: "A group for technical users. They should not show up in sharing dialogs.", Members: []*proto.Account{
|
||||
{Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf"}, // konnectd
|
||||
{Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf"}, // idp
|
||||
{Id: "bc596f3c-c955-4328-80a0-60d018b4ad57"}, // reva
|
||||
}}
|
||||
case "users":
|
||||
@@ -302,18 +304,18 @@ func assertGroupsSame(t *testing.T, grp1, grp2 *proto.Group) {
|
||||
}
|
||||
}
|
||||
|
||||
func assertGroupHasMember(t *testing.T, grp *proto.Group, memberId string) {
|
||||
func assertGroupHasMember(t *testing.T, grp *proto.Group, memberID string) {
|
||||
for _, m := range grp.Members {
|
||||
if m.Id == memberId {
|
||||
if m.Id == memberID {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
t.Fatalf("Member with id %s expected to be in group '%s', but not found", memberId, grp.DisplayName)
|
||||
t.Fatalf("Member with id %s expected to be in group '%s', but not found", memberID, grp.DisplayName)
|
||||
}
|
||||
|
||||
func createAccount(t *testing.T, user string) (*proto.Account, error) {
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
|
||||
|
||||
account := getAccount(user)
|
||||
@@ -326,7 +328,7 @@ func createAccount(t *testing.T, user string) (*proto.Account, error) {
|
||||
}
|
||||
|
||||
func createGroup(t *testing.T, group *proto.Group) (*proto.Group, error) {
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
request := &proto.CreateGroupRequest{Group: group}
|
||||
@@ -338,7 +340,7 @@ func createGroup(t *testing.T, group *proto.Group) (*proto.Group, error) {
|
||||
}
|
||||
|
||||
func updateAccount(t *testing.T, account *proto.Account, updateArray []string) (*proto.Account, error) {
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
|
||||
|
||||
updateMask := &field_mask.FieldMask{
|
||||
@@ -352,7 +354,7 @@ func updateAccount(t *testing.T, account *proto.Account, updateArray []string) (
|
||||
|
||||
func listAccounts(t *testing.T) (*proto.ListAccountsResponse, error) {
|
||||
request := &proto.ListAccountsRequest{}
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
|
||||
|
||||
response, err := cl.ListAccounts(context.Background(), request)
|
||||
@@ -361,7 +363,7 @@ func listAccounts(t *testing.T) (*proto.ListAccountsResponse, error) {
|
||||
|
||||
func listGroups(t *testing.T) *proto.ListGroupsResponse {
|
||||
request := &proto.ListGroupsRequest{}
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
response, err := cl.ListGroups(context.Background(), request)
|
||||
@@ -370,7 +372,7 @@ func listGroups(t *testing.T) *proto.ListGroupsResponse {
|
||||
}
|
||||
|
||||
func deleteAccount(t *testing.T, id string) (*empty.Empty, error) {
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
|
||||
|
||||
req := &proto.DeleteAccountRequest{Id: id}
|
||||
@@ -379,7 +381,7 @@ func deleteAccount(t *testing.T, id string) (*empty.Empty, error) {
|
||||
}
|
||||
|
||||
func deleteGroup(t *testing.T, id string) (*empty.Empty, error) {
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
req := &proto.DeleteGroupRequest{Id: id}
|
||||
@@ -554,7 +556,8 @@ func TestUpdateAccount(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestUpdateNonUpdatableFieldsInAccount(t *testing.T) {
|
||||
_, _ = createAccount(t, "user1")
|
||||
_, err := createAccount(t, "user1")
|
||||
assert.NoError(t, err)
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
@@ -622,8 +625,10 @@ func TestUpdateNonUpdatableFieldsInAccount(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestListAccounts(t *testing.T) {
|
||||
createAccount(t, "user1")
|
||||
createAccount(t, "user2")
|
||||
_, err := createAccount(t, "user1")
|
||||
assert.NoError(t, err)
|
||||
_, err = createAccount(t, "user2")
|
||||
assert.NoError(t, err)
|
||||
|
||||
resp, err := listAccounts(t)
|
||||
assert.NoError(t, err)
|
||||
@@ -744,7 +749,8 @@ func TestListAccountsWithFilterQuery(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetAccount(t *testing.T) {
|
||||
createAccount(t, "user1")
|
||||
_, err := createAccount(t, "user1")
|
||||
assert.NoError(t, err)
|
||||
|
||||
req := &proto.GetAccountRequest{Id: getAccount("user1").Id}
|
||||
|
||||
@@ -762,12 +768,14 @@ func TestGetAccount(t *testing.T) {
|
||||
//TODO: This segfaults! WIP
|
||||
|
||||
func TestDeleteAccount(t *testing.T) {
|
||||
createAccount(t, "user1")
|
||||
createAccount(t, "user2")
|
||||
_, err := createAccount(t, "user1")
|
||||
assert.NoError(t, err)
|
||||
_, err = createAccount(t, "user2")
|
||||
assert.NoError(t, err)
|
||||
|
||||
req := &proto.DeleteAccountRequest{Id: getAccount("user1").Id}
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewAccountsService("com.owncloud.api.accounts", client)
|
||||
|
||||
resp, err := cl.DeleteAccount(context.Background(), req)
|
||||
@@ -785,7 +793,7 @@ func TestDeleteAccount(t *testing.T) {
|
||||
func TestListGroups(t *testing.T) {
|
||||
req := &proto.ListGroupsRequest{}
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
resp, err := cl.ListGroups(context.Background(), req)
|
||||
@@ -812,7 +820,7 @@ func TestListGroups(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetGroups(t *testing.T) {
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
groups := []string{
|
||||
@@ -860,7 +868,7 @@ func TestCreateGroup(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetGroupInvalidID(t *testing.T) {
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
req := &proto.GetGroupRequest{Id: "42"}
|
||||
@@ -876,11 +884,14 @@ func TestDeleteGroup(t *testing.T) {
|
||||
grp1 := getTestGroups("grp1")
|
||||
grp2 := getTestGroups("grp2")
|
||||
grp3 := getTestGroups("grp3")
|
||||
createGroup(t, grp1)
|
||||
createGroup(t, grp2)
|
||||
createGroup(t, grp3)
|
||||
_, err := createGroup(t, grp1)
|
||||
assert.NoError(t, err)
|
||||
_, err = createGroup(t, grp2)
|
||||
assert.NoError(t, err)
|
||||
_, err = createGroup(t, grp3)
|
||||
assert.NoError(t, err)
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
req := &proto.DeleteGroupRequest{Id: grp1.Id}
|
||||
@@ -909,7 +920,7 @@ func TestDeleteGroupNotExisting(t *testing.T) {
|
||||
" ",
|
||||
}
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
for _, id := range invalidIds {
|
||||
@@ -932,7 +943,7 @@ func TestDeleteGroupInvalidId(t *testing.T) {
|
||||
"": ".",
|
||||
}
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
for id := range invalidIds {
|
||||
@@ -947,9 +958,10 @@ func TestDeleteGroupInvalidId(t *testing.T) {
|
||||
|
||||
func TestUpdateGroup(t *testing.T) {
|
||||
grp1 := getTestGroups("grp1")
|
||||
createGroup(t, grp1)
|
||||
_, err := createGroup(t, grp1)
|
||||
assert.NoError(t, err)
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
updateGrp := &proto.Group{
|
||||
@@ -975,10 +987,12 @@ func TestAddMember(t *testing.T) {
|
||||
updatedGroup := grp1
|
||||
updatedGroup.Members = append(updatedGroup.Members, &proto.Account{Id: account.Id})
|
||||
|
||||
createGroup(t, grp1)
|
||||
createAccount(t, account.PreferredName)
|
||||
_, err := createGroup(t, grp1)
|
||||
assert.NoError(t, err)
|
||||
_, err = createAccount(t, account.PreferredName)
|
||||
assert.NoError(t, err)
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
req := &proto.AddMemberRequest{GroupId: grp1.Id, AccountId: account.Id}
|
||||
@@ -1005,12 +1019,15 @@ func TestAddMemberAlreadyInGroup(t *testing.T) {
|
||||
updatedGroup := grp1
|
||||
updatedGroup.Members = append(updatedGroup.Members, &proto.Account{Id: account.Id})
|
||||
|
||||
createGroup(t, grp1)
|
||||
createAccount(t, account.PreferredName)
|
||||
_, err := createGroup(t, grp1)
|
||||
assert.NoError(t, err)
|
||||
_, err = createAccount(t, account.PreferredName)
|
||||
assert.NoError(t, err)
|
||||
|
||||
addMemberToGroup(t, grp1.Id, account.Id)
|
||||
_, err = addMemberToGroup(t, grp1.Id, account.Id)
|
||||
assert.NoError(t, err)
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
req := &proto.AddMemberRequest{GroupId: grp1.Id, AccountId: account.Id}
|
||||
@@ -1033,9 +1050,10 @@ func TestAddMemberAlreadyInGroup(t *testing.T) {
|
||||
func TestAddMemberNonExisting(t *testing.T) {
|
||||
grp1 := getTestGroups("grp1")
|
||||
|
||||
createGroup(t, grp1)
|
||||
_, err := createGroup(t, grp1)
|
||||
assert.NoError(t, err)
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
invalidIds := []string{
|
||||
@@ -1062,11 +1080,11 @@ func TestAddMemberNonExisting(t *testing.T) {
|
||||
cleanUp(t)
|
||||
}
|
||||
|
||||
func addMemberToGroup(t *testing.T, groupId, memberId string) (*proto.Group, error) {
|
||||
client := service.Client()
|
||||
func addMemberToGroup(t *testing.T, groupID, memberID string) (*proto.Group, error) {
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
req := &proto.AddMemberRequest{GroupId: groupId, AccountId: memberId}
|
||||
req := &proto.AddMemberRequest{GroupId: groupID, AccountId: memberID}
|
||||
|
||||
res, err := cl.AddMember(context.Background(), req)
|
||||
|
||||
@@ -1078,12 +1096,15 @@ func TestRemoveMember(t *testing.T) {
|
||||
grp1 := getTestGroups("grp1")
|
||||
account := getAccount("user1")
|
||||
|
||||
createGroup(t, grp1)
|
||||
createAccount(t, account.PreferredName)
|
||||
_, err := createGroup(t, grp1)
|
||||
assert.NoError(t, err)
|
||||
_, err = createAccount(t, account.PreferredName)
|
||||
assert.NoError(t, err)
|
||||
|
||||
addMemberToGroup(t, grp1.Id, account.Id)
|
||||
_, err = addMemberToGroup(t, grp1.Id, account.Id)
|
||||
assert.NoError(t, err)
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
req := &proto.RemoveMemberRequest{GroupId: grp1.Id, AccountId: account.Id}
|
||||
@@ -1104,9 +1125,10 @@ func TestRemoveMember(t *testing.T) {
|
||||
func TestRemoveMemberNonExistingUser(t *testing.T) {
|
||||
grp1 := getTestGroups("grp1")
|
||||
|
||||
createGroup(t, grp1)
|
||||
_, err := createGroup(t, grp1)
|
||||
assert.NoError(t, err)
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
invalidIds := []string{
|
||||
@@ -1137,10 +1159,12 @@ func TestRemoveMemberNotInGroup(t *testing.T) {
|
||||
grp1 := getTestGroups("grp1")
|
||||
account := getAccount("user1")
|
||||
|
||||
createGroup(t, grp1)
|
||||
createAccount(t, account.PreferredName)
|
||||
_, err := createGroup(t, grp1)
|
||||
assert.NoError(t, err)
|
||||
_, err = createAccount(t, account.PreferredName)
|
||||
assert.NoError(t, err)
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
req := &proto.RemoveMemberRequest{GroupId: grp1.Id, AccountId: account.Id}
|
||||
@@ -1177,7 +1201,7 @@ func TestListMembers(t *testing.T) {
|
||||
"physics-lovers",
|
||||
}
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
for _, group := range groups {
|
||||
@@ -1209,7 +1233,7 @@ func TestListMembers(t *testing.T) {
|
||||
func TestListMembersEmptyGroup(t *testing.T) {
|
||||
group := &proto.Group{Id: "5d58e5ec-842e-498b-8800-61f2ec6f911c", GidNumber: 60000, OnPremisesSamAccountName: "quantum-group", DisplayName: "Quantum Group", Members: []*proto.Account{}}
|
||||
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
cl := proto.NewGroupsService("com.owncloud.api.accounts", client)
|
||||
|
||||
request := &proto.CreateGroupRequest{Group: group}
|
||||
@@ -1229,9 +1253,11 @@ func TestListMembersEmptyGroup(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAccountUpdateMask(t *testing.T) {
|
||||
createAccount(t, "user1")
|
||||
_, err := createAccount(t, "user1")
|
||||
assert.NoError(t, err)
|
||||
|
||||
user1 := getAccount("user1")
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
req := &proto.UpdateAccountRequest{
|
||||
// We only want to update the display-name, rest should be ignored
|
||||
UpdateMask: &field_mask.FieldMask{Paths: []string{"DisplayName"}},
|
||||
@@ -1252,9 +1278,11 @@ func TestAccountUpdateMask(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAccountUpdateReadOnlyField(t *testing.T) {
|
||||
createAccount(t, "user1")
|
||||
_, err := createAccount(t, "user1")
|
||||
assert.NoError(t, err)
|
||||
|
||||
user1 := getAccount("user1")
|
||||
client := service.Client()
|
||||
client := mgrpcc.NewClient()
|
||||
req := &proto.UpdateAccountRequest{
|
||||
// We only want to update the display-name, rest should be ignored
|
||||
UpdateMask: &field_mask.FieldMask{Paths: []string{"CreatedDateTime"}},
|
||||
|
||||
@@ -2,7 +2,7 @@ syntax = "proto3";
|
||||
|
||||
option go_package = "pkg/proto/v0;proto";
|
||||
|
||||
package settings;
|
||||
package accounts;
|
||||
|
||||
import "google/api/field_behavior.proto";
|
||||
import "google/api/annotations.proto";
|
||||
@@ -10,6 +10,32 @@ import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
||||
info: {
|
||||
title: "ownCloud Infinite Scale accounts";
|
||||
version: "1.0.0";
|
||||
contact: {
|
||||
name: "ownCloud GmbH";
|
||||
url: "https://github.com/owncloud/ocis";
|
||||
email: "support@owncloud.com";
|
||||
};
|
||||
license: {
|
||||
name: "Apache-2.0";
|
||||
url: "https://github.com/owncloud/ocis/blob/master/LICENSE";
|
||||
};
|
||||
};
|
||||
schemes: HTTP;
|
||||
schemes: HTTPS;
|
||||
consumes: "application/json";
|
||||
produces: "application/json";
|
||||
external_docs: {
|
||||
description: "Developer Manual";
|
||||
url: "https://owncloud.github.io/extensions/accounts/";
|
||||
};
|
||||
};
|
||||
|
||||
// Follow recommended Methods for rpc APIs https://cloud.google.com/apis/design/resources?hl=de#methods
|
||||
// https://cloud.google.com/apis/design/standard_methods?hl=de#list
|
||||
// https://cloud.google.com/apis/design/naming_convention?hl=de
|
||||
@@ -242,13 +268,13 @@ message Account {
|
||||
|
||||
// Indicates whether the account was created as
|
||||
// - a regular school or work account ("" / emptystring),
|
||||
// - a local account, fully managed by ocis (LocalAccount), includes synced accounts or
|
||||
// - a local account, fully managed by oCIS (LocalAccount), includes synced accounts or
|
||||
// - an external account (Invitation),
|
||||
// - self-service sign-up using email verification (EmailVerified). Read-only.
|
||||
string creation_type = 4;
|
||||
|
||||
// Represents the identities that can be used to sign in to this account.
|
||||
// An identity can be provided by OCIS (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and is tied to an account.
|
||||
// An identity can be provided by oCIS (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and is tied to an account.
|
||||
// May contain multiple items with the same signInType value. Supports $filter.
|
||||
repeated Identities identities = 5;
|
||||
|
||||
@@ -321,7 +347,7 @@ message Account {
|
||||
// null if this object has never been synced from an on-premises directory (default). Read-only
|
||||
bool on_premises_sync_enabled = 20;
|
||||
|
||||
// This property is used to associate an on-premises LDAP user to the ocis account object.
|
||||
// This property is used to associate an on-premises LDAP user to the oCIS account object.
|
||||
// This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property.
|
||||
// Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
|
||||
string on_premises_immutable_id = 21;
|
||||
@@ -382,7 +408,7 @@ message Account {
|
||||
}
|
||||
|
||||
// Identities Represents an identity used to sign in to a user account.
|
||||
// An identity can be provided by ocis, by organizations, or by social identity providers such as Facebook, Google, or Microsoft, that are tied to a user account.
|
||||
// An identity can be provided by oCIS, by organizations, or by social identity providers such as Facebook, Google, or Microsoft, that are tied to a user account.
|
||||
// This enables the user to sign in to the user account with any of those associated identities.
|
||||
// They are also used to keep a history of old usernames.
|
||||
message Identities {
|
||||
@@ -627,7 +653,7 @@ message Group {
|
||||
// Returned by default. Read-only. Supports $filter.
|
||||
bool on_premises_sync_enabled = 20;
|
||||
|
||||
// This property is used to associate an on-premises LDAP user to the ocis account object.
|
||||
// This property is used to associate an on-premises LDAP user to the oCIS account object.
|
||||
// This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user’s userPrincipalName (UPN) property.
|
||||
// Important: The $ and _ characters cannot be used when specifying this property. Supports $filter.
|
||||
string on_premises_immutable_id = 21;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,6 +1,7 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/asim/go-micro/v3"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/owncloud/ocis/accounts/pkg/assets"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
@@ -60,13 +61,11 @@ func Server(opts ...Option) http.Service {
|
||||
proto.RegisterGroupsServiceWeb(r, handler)
|
||||
})
|
||||
|
||||
service.Handle(
|
||||
"/",
|
||||
mux,
|
||||
)
|
||||
|
||||
if err := service.Init(); err != nil {
|
||||
panic(err)
|
||||
err := micro.RegisterHandler(service.Server(), mux)
|
||||
if err != nil {
|
||||
options.Logger.Fatal().Err(err).Msg("failed to register the handler")
|
||||
}
|
||||
|
||||
service.Init()
|
||||
return service
|
||||
}
|
||||
@@ -6,22 +6,22 @@ import (
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"github.com/owncloud/ocis/ocis-pkg/cache"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"io"
|
||||
"path"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/owncloud/ocis/ocis-pkg/sync"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
"github.com/gofrs/uuid"
|
||||
p "github.com/golang/protobuf/proto"
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
fieldmask_utils "github.com/mennanov/fieldmask-utils"
|
||||
merrors "github.com/micro/go-micro/v2/errors"
|
||||
"github.com/micro/go-micro/v2/metadata"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/accounts/pkg/storage"
|
||||
"github.com/owncloud/ocis/ocis-pkg/middleware"
|
||||
@@ -30,14 +30,12 @@ import (
|
||||
settings_svc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
||||
"github.com/rs/zerolog"
|
||||
"google.golang.org/genproto/protobuf/field_mask"
|
||||
p "google.golang.org/protobuf/proto"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
||||
// accLock mutually exclude readers from writers on account files
|
||||
var accLock sync.Mutex
|
||||
|
||||
// passwordValidCache caches basic auth password validations
|
||||
var passwordValidCache = cache.NewCache(cache.Size(1024))
|
||||
var passwordValidCache = sync.NewCache(1024)
|
||||
|
||||
// passwordValidCacheExpiration defines the entry lifetime
|
||||
const passwordValidCacheExpiration = 10 * time.Minute
|
||||
@@ -133,9 +131,6 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
|
||||
}
|
||||
onlySelf := hasSelf && !hasManagement
|
||||
|
||||
accLock.Lock()
|
||||
defer accLock.Unlock()
|
||||
|
||||
teardownServiceUser := s.serviceUserToIndex()
|
||||
defer teardownServiceUser()
|
||||
match, authRequest := getAuthQueryMatch(in.Query)
|
||||
@@ -172,23 +167,20 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
|
||||
// - it checks if the cache already contains an entry that matches found account Id // account PasswordProfile.LastPasswordChangeDateTime (k)
|
||||
// - if no entry exists it runs the bcrypt.CompareHashAndPassword as before and if everything is ok it stores the
|
||||
// result by the (k) as key and (v) as value. If not it errors
|
||||
// - if a entry is found it checks if the given value matches (v). If it doesnt match the cache entry gets removed
|
||||
// - if a entry is found it checks if the given value matches (v). If it doesnt match, the cache entry gets removed
|
||||
// and it errors.
|
||||
//
|
||||
// if many concurrent requests from the same user come in within a short period of time, it's possible that e is still nil.
|
||||
// This is why all this needs to be wrapped within a sync.Mutex locking to prevent calling bcrypt.CompareHashAndPassword unnecessarily too often.
|
||||
{
|
||||
var suspicious bool
|
||||
|
||||
kh := sha256.New()
|
||||
kh.Write([]byte(a.Id))
|
||||
mustWrite(kh, []byte(a.Id))
|
||||
k := hex.EncodeToString(kh.Sum([]byte(a.PasswordProfile.LastPasswordChangeDateTime.String())))
|
||||
|
||||
vh := sha256.New()
|
||||
vh.Write([]byte(a.PasswordProfile.Password))
|
||||
mustWrite(vh, []byte(a.PasswordProfile.Password))
|
||||
v := vh.Sum([]byte(password))
|
||||
|
||||
e := passwordValidCache.Get(k)
|
||||
e := passwordValidCache.Load(k)
|
||||
|
||||
if e == nil {
|
||||
suspicious = !isPasswordValid(s.log, a.PasswordProfile.Password, password)
|
||||
@@ -197,12 +189,12 @@ func (s Service) ListAccounts(ctx context.Context, in *proto.ListAccountsRequest
|
||||
}
|
||||
|
||||
if suspicious {
|
||||
passwordValidCache.Unset(k)
|
||||
passwordValidCache.Delete(k)
|
||||
return merrors.Unauthorized(s.id, "account not found or invalid credentials")
|
||||
}
|
||||
|
||||
if e == nil {
|
||||
passwordValidCache.Set(k, v, time.Now().Add(passwordValidCacheExpiration))
|
||||
passwordValidCache.Store(k, v, time.Now().Add(passwordValidCacheExpiration))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,8 +276,6 @@ func (s Service) GetAccount(ctx context.Context, in *proto.GetAccountRequest, ou
|
||||
}
|
||||
onlySelf := hasSelf && !hasManagement
|
||||
|
||||
accLock.Lock()
|
||||
defer accLock.Unlock()
|
||||
var id string
|
||||
if id, err = cleanupID(in.Id); err != nil {
|
||||
return merrors.InternalServerError(s.id, "could not clean up account id: %v", err.Error())
|
||||
@@ -331,8 +321,6 @@ func (s Service) CreateAccount(ctx context.Context, in *proto.CreateAccountReque
|
||||
return merrors.Forbidden(s.id, "no permission for CreateAccount")
|
||||
}
|
||||
|
||||
accLock.Lock()
|
||||
defer accLock.Unlock()
|
||||
var id string
|
||||
|
||||
if in.Account == nil {
|
||||
@@ -468,8 +456,6 @@ func (s Service) UpdateAccount(ctx context.Context, in *proto.UpdateAccountReque
|
||||
}
|
||||
onlySelf := hasSelf && !hasManagement
|
||||
|
||||
accLock.Lock()
|
||||
defer accLock.Unlock()
|
||||
var id string
|
||||
if in.Account == nil {
|
||||
return merrors.BadRequest(s.id, "account missing")
|
||||
@@ -633,8 +619,6 @@ func (s Service) DeleteAccount(ctx context.Context, in *proto.DeleteAccountReque
|
||||
return merrors.Forbidden(s.id, "no permission for DeleteAccount")
|
||||
}
|
||||
|
||||
accLock.Lock()
|
||||
defer accLock.Unlock()
|
||||
var id string
|
||||
if id, err = cleanupID(in.Id); err != nil {
|
||||
return merrors.InternalServerError(s.id, "could not clean up account id: %v", err.Error())
|
||||
@@ -855,3 +839,9 @@ func isPasswordValid(logger log.Logger, hash string, pwd string) (ok bool) {
|
||||
|
||||
return bcrypt.CompareHashAndPassword([]byte(hash), []byte(pwd)) == nil
|
||||
}
|
||||
|
||||
func mustWrite(w io.Writer, val []byte) {
|
||||
if _, err := w.Write(val); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/asim/go-micro/v3/client"
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/asim/go-micro/v3/metadata"
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
"github.com/micro/go-micro/v2/client"
|
||||
merrors "github.com/micro/go-micro/v2/errors"
|
||||
"github.com/micro/go-micro/v2/metadata"
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
olog "github.com/owncloud/ocis/ocis-pkg/log"
|
||||
|
||||
@@ -5,12 +5,12 @@ import (
|
||||
"path"
|
||||
"strconv"
|
||||
|
||||
merrors "github.com/asim/go-micro/v3/errors"
|
||||
"github.com/gofrs/uuid"
|
||||
p "github.com/golang/protobuf/proto"
|
||||
"github.com/golang/protobuf/ptypes/empty"
|
||||
merrors "github.com/micro/go-micro/v2/errors"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/accounts/pkg/storage"
|
||||
p "google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
func (s Service) expandMembers(g *proto.Group) {
|
||||
|
||||
@@ -19,9 +19,9 @@ import (
|
||||
"github.com/owncloud/ocis/accounts/pkg/config"
|
||||
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
|
||||
"github.com/owncloud/ocis/ocis-pkg/log"
|
||||
oreg "github.com/owncloud/ocis/ocis-pkg/registry"
|
||||
"github.com/owncloud/ocis/ocis-pkg/roles"
|
||||
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||
settings_svc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
||||
)
|
||||
|
||||
// userDefaultGID is the default integer representing the "users" group.
|
||||
@@ -57,6 +57,31 @@ func New(opts ...Option) (s *Service, err error) {
|
||||
repo: createMetadataStorage(cfg, logger),
|
||||
}
|
||||
|
||||
retries := 20
|
||||
var current int
|
||||
r := oreg.GetRegistry()
|
||||
if cfg.Repo.Disk.Path == "" {
|
||||
for {
|
||||
if current >= retries {
|
||||
panic("metadata service failed to start.")
|
||||
}
|
||||
s, err := r.GetService("com.owncloud.storage.metadata")
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Msg("error getting metadata service from service registry")
|
||||
}
|
||||
if len(s) > 0 {
|
||||
break
|
||||
}
|
||||
logger.Info().Msg("accounts blocked waiting for metadata service to be up and running...")
|
||||
time.Sleep(2 * time.Second)
|
||||
current++
|
||||
}
|
||||
}
|
||||
|
||||
// we want to wait anyway. If it depends on a reva service it could be the case that the entry on the registry
|
||||
// happens prior to the reva service being up and running
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
|
||||
if s.index, err = s.buildIndex(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -68,7 +93,6 @@ func New(opts ...Option) (s *Service, err error) {
|
||||
if err = s.createDefaultGroups(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// TODO watch folders for new records
|
||||
return
|
||||
}
|
||||
|
||||
@@ -236,14 +260,14 @@ func (s Service) createDefaultAccounts() (err error) {
|
||||
// technical users for kopano and reva
|
||||
{
|
||||
Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf",
|
||||
PreferredName: "konnectd",
|
||||
OnPremisesSamAccountName: "konnectd",
|
||||
PreferredName: "idp",
|
||||
OnPremisesSamAccountName: "idp",
|
||||
Mail: "idp@example.org",
|
||||
DisplayName: "Kopano Konnectd",
|
||||
DisplayName: "Kopano IDP",
|
||||
UidNumber: 10000,
|
||||
GidNumber: 15000,
|
||||
PasswordProfile: &proto.PasswordProfile{
|
||||
Password: "$2a$11$ntoTP2W/kyQIuoYpH5mRBuNzaEERYWSwn/zCsY5rtffen4d41y9.6",
|
||||
Password: "$2y$12$ywfGLDPsSlBTVZU0g.2GZOPO8Wap3rVOpm8e3192VlytNdGWH7x72",
|
||||
},
|
||||
AccountEnabled: true,
|
||||
MemberOf: []*proto.Group{
|
||||
@@ -267,7 +291,14 @@ func (s Service) createDefaultAccounts() (err error) {
|
||||
},
|
||||
},
|
||||
}
|
||||
// this only deals with the metadata service.
|
||||
for i := range accounts {
|
||||
a := &proto.Account{}
|
||||
err := s.repo.LoadAccount(context.Background(), accounts[i].Id, a)
|
||||
if !storage.IsNotFoundErr(err) {
|
||||
continue // account already exists -> do not overwrite
|
||||
}
|
||||
|
||||
if err := s.repo.WriteAccount(context.Background(), &accounts[i]); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -281,7 +312,6 @@ func (s Service) createDefaultAccounts() (err error) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: can be removed again as soon as we respect the predefined UIDs and GIDs from the account. Then no autoincrement is happening, therefore we don't need to update accounts.
|
||||
changed := false
|
||||
for _, r := range results {
|
||||
if r.Field == "UidNumber" || r.Field == "GidNumber" {
|
||||
@@ -303,31 +333,13 @@ func (s Service) createDefaultAccounts() (err error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// set role for admin users and regular users
|
||||
assignRoleToUser("058bff95-6708-4fe5-91e4-9ea3d377588b", settings_svc.BundleUUIDRoleAdmin, s.RoleService, s.log)
|
||||
for _, accountID := range []string{
|
||||
"058bff95-6708-4fe5-91e4-9ea3d377588b", //moss
|
||||
"ddc2004c-0977-11eb-9d3f-a793888cd0f8", //admin
|
||||
"820ba2a1-3f54-4538-80a4-2d73007e30bf", //konnectd
|
||||
"bc596f3c-c955-4328-80a0-60d018b4ad57", //reva
|
||||
} {
|
||||
assignRoleToUser(accountID, settings_svc.BundleUUIDRoleAdmin, s.RoleService, s.log)
|
||||
}
|
||||
for _, accountID := range []string{
|
||||
"4c510ada-c86b-4815-8820-42cdf82c3d51", //einstein
|
||||
"f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c", //marie
|
||||
"932b4540-8d16-481e-8ef4-588e4b6b151c", //richard
|
||||
} {
|
||||
assignRoleToUser(accountID, settings_svc.BundleUUIDRoleUser, s.RoleService, s.log)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s Service) createDefaultGroups() (err error) {
|
||||
groups := []proto.Group{
|
||||
{Id: "34f38767-c937-4eb6-b847-1c175829a2a0", GidNumber: 15000, OnPremisesSamAccountName: "sysusers", DisplayName: "Technical users", Description: "A group for technical users. They should not show up in sharing dialogs.", Members: []*proto.Account{
|
||||
{Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf"}, // konnectd
|
||||
{Id: "820ba2a1-3f54-4538-80a4-2d73007e30bf"}, // idp
|
||||
{Id: "bc596f3c-c955-4328-80a0-60d018b4ad57"}, // reva
|
||||
}},
|
||||
{Id: "509a9dcd-bb37-4f4f-a01a-19dca27d9cfa", GidNumber: 30000, OnPremisesSamAccountName: "users", DisplayName: "Users", Description: "A group every normal user belongs to.", Members: []*proto.Account{
|
||||
@@ -360,6 +372,12 @@ func (s Service) createDefaultGroups() (err error) {
|
||||
}},
|
||||
}
|
||||
for i := range groups {
|
||||
g := &proto.Group{}
|
||||
err := s.repo.LoadGroup(context.Background(), groups[i].Id, g)
|
||||
if !storage.IsNotFoundErr(err) {
|
||||
continue // group already exists -> do not overwrite
|
||||
}
|
||||
|
||||
if err := s.repo.WriteGroup(context.Background(), &groups[i]); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -391,18 +409,6 @@ func (s Service) createDefaultGroups() (err error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
func assignRoleToUser(accountID, roleID string, rs settings.RoleService, logger log.Logger) (ok bool) {
|
||||
_, err := rs.AssignRoleToUser(context.Background(), &settings.AssignRoleToUserRequest{
|
||||
AccountUuid: accountID,
|
||||
RoleId: roleID,
|
||||
})
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Str("accountID", accountID).Str("roleID", roleID).Msg("could not set role for account")
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func createMetadataStorage(cfg *config.Config, logger log.Logger) storage.Repo {
|
||||
// for now we detect the used storage implementation based on which storage is configured
|
||||
// the config with defaults needs to be checked last
|
||||
|
||||
@@ -1,194 +0,0 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
olog "github.com/owncloud/ocis/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
|
||||
settings "github.com/owncloud/ocis/settings/pkg/proto/v0"
|
||||
ssvc "github.com/owncloud/ocis/settings/pkg/service/v0"
|
||||
)
|
||||
|
||||
const (
|
||||
settingUUIDProfileLanguage = "aa8cfbe5-95d4-4f7e-a032-c3c01f5f062f"
|
||||
)
|
||||
|
||||
// RegisterSettingsBundles pushes the settings bundle definitions for this extension to the ocis-settings service.
|
||||
func RegisterSettingsBundles(l *olog.Logger) {
|
||||
service := settings.NewBundleService("com.owncloud.api.settings", grpc.DefaultClient)
|
||||
|
||||
bundleRequests := []settings.SaveBundleRequest{
|
||||
generateBundleProfileRequest(),
|
||||
}
|
||||
|
||||
for i := range bundleRequests {
|
||||
res, err := service.SaveBundle(context.Background(), &bundleRequests[i])
|
||||
if err != nil {
|
||||
l.Err(err).Str("bundle", bundleRequests[i].Bundle.Id).Msg("Error registering bundle")
|
||||
} else {
|
||||
l.Info().Str("bundle", res.Bundle.Id).Msg("Successfully registered bundle")
|
||||
}
|
||||
}
|
||||
|
||||
permissionRequests := generateProfilePermissionsRequests()
|
||||
for i := range permissionRequests {
|
||||
res, err := service.AddSettingToBundle(context.Background(), &permissionRequests[i])
|
||||
bundleID := permissionRequests[i].BundleId
|
||||
if err != nil {
|
||||
l.Err(err).Str("bundle", bundleID).Str("setting", permissionRequests[i].Setting.Id).Msg("Error adding setting to bundle")
|
||||
} else {
|
||||
l.Info().Str("bundle", bundleID).Str("setting", res.Setting.Id).Msg("Successfully added setting to bundle")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var languageSetting = settings.Setting_SingleChoiceValue{
|
||||
SingleChoiceValue: &settings.SingleChoiceList{
|
||||
Options: []*settings.ListOption{
|
||||
{
|
||||
Value: &settings.ListOptionValue{
|
||||
Option: &settings.ListOptionValue_StringValue{
|
||||
StringValue: "cs",
|
||||
},
|
||||
},
|
||||
DisplayValue: "Czech",
|
||||
},
|
||||
{
|
||||
Value: &settings.ListOptionValue{
|
||||
Option: &settings.ListOptionValue_StringValue{
|
||||
StringValue: "de",
|
||||
},
|
||||
},
|
||||
DisplayValue: "Deutsch",
|
||||
},
|
||||
{
|
||||
Value: &settings.ListOptionValue{
|
||||
Option: &settings.ListOptionValue_StringValue{
|
||||
StringValue: "en",
|
||||
},
|
||||
},
|
||||
DisplayValue: "English",
|
||||
},
|
||||
{
|
||||
Value: &settings.ListOptionValue{
|
||||
Option: &settings.ListOptionValue_StringValue{
|
||||
StringValue: "es",
|
||||
},
|
||||
},
|
||||
DisplayValue: "Español",
|
||||
},
|
||||
{
|
||||
Value: &settings.ListOptionValue{
|
||||
Option: &settings.ListOptionValue_StringValue{
|
||||
StringValue: "fr",
|
||||
},
|
||||
},
|
||||
DisplayValue: "Français",
|
||||
},
|
||||
{
|
||||
Value: &settings.ListOptionValue{
|
||||
Option: &settings.ListOptionValue_StringValue{
|
||||
StringValue: "gl",
|
||||
},
|
||||
},
|
||||
DisplayValue: "Galego",
|
||||
},
|
||||
{
|
||||
Value: &settings.ListOptionValue{
|
||||
Option: &settings.ListOptionValue_StringValue{
|
||||
StringValue: "it",
|
||||
},
|
||||
},
|
||||
DisplayValue: "Italiano",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func generateBundleProfileRequest() settings.SaveBundleRequest {
|
||||
return settings.SaveBundleRequest{
|
||||
Bundle: &settings.Bundle{
|
||||
Id: "2a506de7-99bd-4f0d-994e-c38e72c28fd9",
|
||||
Name: "profile",
|
||||
Extension: "ocis-accounts",
|
||||
Type: settings.Bundle_TYPE_DEFAULT,
|
||||
Resource: &settings.Resource{
|
||||
Type: settings.Resource_TYPE_SYSTEM,
|
||||
},
|
||||
DisplayName: "Profile",
|
||||
Settings: []*settings.Setting{
|
||||
{
|
||||
Id: settingUUIDProfileLanguage,
|
||||
Name: "language",
|
||||
DisplayName: "Language",
|
||||
Description: "User language",
|
||||
Resource: &settings.Resource{
|
||||
Type: settings.Resource_TYPE_USER,
|
||||
},
|
||||
Value: &languageSetting,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func generateProfilePermissionsRequests() []settings.AddSettingToBundleRequest {
|
||||
// TODO: we don't want to set up permissions for settings manually in the future. Instead each setting should come with
|
||||
// a set of default permissions for the default roles (guest, user, admin).
|
||||
return []settings.AddSettingToBundleRequest{
|
||||
{
|
||||
BundleId: ssvc.BundleUUIDRoleAdmin,
|
||||
Setting: &settings.Setting{
|
||||
Id: "7d81f103-0488-4853-bce5-98dcce36d649",
|
||||
Name: "language-readwrite",
|
||||
DisplayName: "Permission to read and set the language (anyone)",
|
||||
Resource: &settings.Resource{
|
||||
Type: settings.Resource_TYPE_SETTING,
|
||||
Id: settingUUIDProfileLanguage,
|
||||
},
|
||||
Value: &settings.Setting_PermissionValue{
|
||||
PermissionValue: &settings.Permission{
|
||||
Operation: settings.Permission_OPERATION_READWRITE,
|
||||
Constraint: settings.Permission_CONSTRAINT_ALL,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
BundleId: ssvc.BundleUUIDRoleUser,
|
||||
Setting: &settings.Setting{
|
||||
Id: "640e00d2-4df8-41bd-b1c2-9f30a01e0e99",
|
||||
Name: "language-readwrite",
|
||||
DisplayName: "Permission to read and set the language (self)",
|
||||
Resource: &settings.Resource{
|
||||
Type: settings.Resource_TYPE_SETTING,
|
||||
Id: settingUUIDProfileLanguage,
|
||||
},
|
||||
Value: &settings.Setting_PermissionValue{
|
||||
PermissionValue: &settings.Permission{
|
||||
Operation: settings.Permission_OPERATION_READWRITE,
|
||||
Constraint: settings.Permission_CONSTRAINT_OWN,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
BundleId: ssvc.BundleUUIDRoleGuest,
|
||||
Setting: &settings.Setting{
|
||||
Id: "ca878636-8b1a-4fae-8282-8617a4c13597",
|
||||
Name: "language-readwrite",
|
||||
DisplayName: "Permission to read and set the language (self)",
|
||||
Resource: &settings.Resource{
|
||||
Type: settings.Resource_TYPE_SETTING,
|
||||
Id: settingUUIDProfileLanguage,
|
||||
},
|
||||
Value: &settings.Setting_PermissionValue{
|
||||
PermissionValue: &settings.Permission{
|
||||
Operation: settings.Permission_OPERATION_READWRITE,
|
||||
Constraint: settings.Permission_CONSTRAINT_OWN,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
|
||||
sonar.projectKey=owncloud_ocis-accounts
|
||||
sonar.organization=owncloud-1
|
||||
sonar.projectName=ocis-accounts
|
||||
sonar.projectVersion=1.0
|
||||
sonar.host.url=https://sonarcloud.io
|
||||
|
||||
# =====================================================
|
||||
# Meta-data for the project
|
||||
# =====================================================
|
||||
|
||||
sonar.links.homepage=https://github.com/owncloud/ocis-accounts
|
||||
sonar.links.ci=https://cloud.drone.io/owncloud/ocis-accounts/
|
||||
sonar.links.scm=https://github.com/owncloud/ocis-accounts
|
||||
sonar.links.issue=https://github.com/owncloud/ocis/accounts/issues
|
||||
|
||||
|
||||
# =====================================================
|
||||
# Properties that will be shared amongst all modules
|
||||
# =====================================================
|
||||
|
||||
# SQ standard properties
|
||||
sonar.sources=.
|
||||
|
||||
# Pull Requests
|
||||
sonar.pullrequest.provider=GitHub
|
||||
sonar.pullrequest.github.repository=owncloud/ocis-accounts
|
||||
sonar.pullrequest.base=${env.SONAR_PULL_REQUEST_BASE}
|
||||
sonar.pullrequest.branch=${env.SONAR_PULL_REQUEST_BRANCH}
|
||||
sonar.pullrequest.key=${env.SONAR_PULL_REQUEST_KEY}
|
||||
|
||||
|
||||
# Properties specific to language plugins:
|
||||
sonar.go.coverage.reportPaths=coverage.out
|
||||
|
||||
# Exclude protobuf files
|
||||
sonar.exclusions=pkg/proto/**, changelog/**, docs/**, package.json, rollup.config.js, changelog.md
|
||||
@@ -11,7 +11,7 @@ geekdocFilePath: CONFIGURATION.tmpl
|
||||
{{ range $opt := first . }}{{ with list $fnName $opt -}}
|
||||
{{ $o := last . -}}
|
||||
{{ if eq $o.FnName $fnName -}}
|
||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
||||
-{{ $o.Name }} | {{ range $i, $e := $o.Env }} {{ if $i }}, {{ end }}${{ $e }}{{ end }}
|
||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||
|
||||
{{ end -}}
|
||||
@@ -35,12 +35,14 @@ $HOME/.ocis
|
||||
|
||||
For this configuration to be picked up, have a look at your extension `root` command and look for which default config name it has assigned. *i.e: ocis-accounts reads `accounts.json | yaml | toml ...`*.
|
||||
|
||||
So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`.
|
||||
So far we support the file formats `JSON` and `YAML`, if you want to get a full example configuration just take a look at [our repository](https://github.com/owncloud/ocis/tree/master/accounts/config), there you can always see the latest configuration format. These example configurations include all available options and the default values. The configuration file will be automatically loaded if it's placed at `/etc/ocis/ocis.yml`, `${HOME}/.ocis/ocis.yml` or `$(pwd)/config/ocis.yml`.
|
||||
|
||||
### Environment variables
|
||||
|
||||
If you prefer to configure the service with environment variables you can see the available variables below.
|
||||
|
||||
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||
|
||||
### Commandline flags
|
||||
|
||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||
|
||||
File renamed without changes.
@@ -1,7 +0,0 @@
|
||||
// +build tools
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/restic/calens"
|
||||
)
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
<oc-table middle divider>
|
||||
<oc-table-group>
|
||||
<oc-table-row class="fix-table-header">
|
||||
<oc-table-cell shrink type="head" class="uk-text-center">
|
||||
<oc-table-simple id="accounts-user-list">
|
||||
<oc-thead>
|
||||
<oc-tr class="fix-table-header">
|
||||
<oc-th shrink type="head" align-h="center">
|
||||
<oc-checkbox
|
||||
class="oc-ml-s"
|
||||
:value="areAllAccountsSelected"
|
||||
@@ -11,23 +11,23 @@
|
||||
:label="$gettext('Select all users')"
|
||||
hide-label
|
||||
/>
|
||||
</oc-table-cell>
|
||||
<oc-table-cell shrink type="head" />
|
||||
<oc-table-cell type="head" v-text="$gettext('Username')" />
|
||||
<oc-table-cell type="head" v-text="$gettext('Display name')" />
|
||||
<oc-table-cell type="head" v-text="$gettext('Email')" />
|
||||
<oc-table-cell type="head" v-text="$gettext('Role')" />
|
||||
<oc-table-cell shrink type="head" v-text="$gettext('Activated')" />
|
||||
</oc-table-row>
|
||||
</oc-table-group>
|
||||
<oc-table-group>
|
||||
</oc-th>
|
||||
<oc-th shrink type="head" />
|
||||
<oc-th type="head" v-text="$gettext('Username')" />
|
||||
<oc-th type="head" v-text="$gettext('Display name')" />
|
||||
<oc-th type="head" v-text="$gettext('Email')" />
|
||||
<oc-th type="head" v-text="$gettext('Role')" />
|
||||
<oc-th shrink type="head" v-text="$gettext('Activated')" align-h="center"/>
|
||||
</oc-tr>
|
||||
</oc-thead>
|
||||
<oc-tbody>
|
||||
<accounts-list-row
|
||||
v-for="account in accounts"
|
||||
:key="`account-list-row-${account.id}`"
|
||||
:account="account"
|
||||
/>
|
||||
</oc-table-group>
|
||||
</oc-table>
|
||||
</oc-tbody>
|
||||
</oc-table-simple>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<oc-table-row>
|
||||
<oc-table-cell>
|
||||
<oc-tr>
|
||||
<oc-td align-h="center">
|
||||
<oc-checkbox
|
||||
class="oc-ml-s"
|
||||
size="large"
|
||||
@@ -10,14 +10,14 @@
|
||||
:label="selectAccountLabel"
|
||||
hide-label
|
||||
/>
|
||||
</oc-table-cell>
|
||||
<oc-table-cell>
|
||||
</oc-td>
|
||||
<oc-td>
|
||||
<avatar :user-name="account.displayName || account.onPremisesSamAccountName" :userid="account.id" :width="35" />
|
||||
</oc-table-cell>
|
||||
<oc-table-cell v-text="account.onPremisesSamAccountName" />
|
||||
<oc-table-cell v-text="account.displayName || '-'" />
|
||||
<oc-table-cell v-text="account.mail" />
|
||||
<oc-table-cell>
|
||||
</oc-td>
|
||||
<oc-td v-text="account.onPremisesSamAccountName" />
|
||||
<oc-td v-text="account.displayName || '-'" />
|
||||
<oc-td v-text="account.mail" />
|
||||
<oc-td>
|
||||
<oc-button :id="`accounts-roles-select-trigger-${account.id}`" class="accounts-roles-select-trigger" variation="raw">
|
||||
<span class="uk-flex uk-flex-middle accounts-roles-current-role">
|
||||
{{ currentRole ? currentRole.displayName : $gettext('Select role') }}
|
||||
@@ -43,8 +43,8 @@
|
||||
</li>
|
||||
</ul>
|
||||
</oc-drop>
|
||||
</oc-table-cell>
|
||||
<oc-table-cell class="uk-text-center">
|
||||
</oc-td>
|
||||
<oc-td align-h="center">
|
||||
<oc-icon
|
||||
v-if="account.accountEnabled"
|
||||
key="account-icon-enabled"
|
||||
@@ -61,8 +61,8 @@
|
||||
:aria-label="$gettext('Account is blocked')"
|
||||
class="accounts-status-indicator-disabled"
|
||||
/>
|
||||
</oc-table-cell>
|
||||
</oc-table-row>
|
||||
</oc-td>
|
||||
</oc-tr>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -92,7 +92,7 @@ export default {
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapGetters(['user', 'configuration']),
|
||||
...mapGetters(['user', 'getServerForJsClient']),
|
||||
...mapState('Accounts', ['roles', 'selectedAccounts']),
|
||||
|
||||
selectAccountLabel () {
|
||||
@@ -114,7 +114,7 @@ export default {
|
||||
injectAuthToken(this.user.token)
|
||||
|
||||
const response = await RoleService_AssignRoleToUser({
|
||||
$domain: this.configuration.server,
|
||||
$domain: this.getServerForJsClient,
|
||||
body: {
|
||||
account_uuid: this.account.id,
|
||||
role_id: roleId
|
||||
@@ -139,7 +139,7 @@ export default {
|
||||
injectAuthToken(this.user.token)
|
||||
|
||||
const response = await RoleService_ListRoleAssignments({
|
||||
$domain: this.configuration.server,
|
||||
$domain: this.getServerForJsClient,
|
||||
body: {
|
||||
account_uuid: this.account.id
|
||||
}
|
||||
|
||||
@@ -67,9 +67,9 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['getToken']),
|
||||
...mapGetters(['getToken', 'configuration']),
|
||||
enabled: function () {
|
||||
return this.$root.config.enableAvatars || true
|
||||
return this.configuration.enableAvatars || true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -97,7 +97,7 @@ export default {
|
||||
return
|
||||
}
|
||||
const headers = new Headers()
|
||||
const instance = this.$root.config.server || window.location.origin
|
||||
const instance = this.configuration.server || window.location.origin
|
||||
const url = instance + '/remote.php/dav/avatars/' + this.userid + '/128.png'
|
||||
headers.append('Authorization', 'Bearer ' + this.getToken)
|
||||
headers.append('X-Requested-With', 'XMLHttpRequest')
|
||||
|
||||
+13
-11
@@ -31,7 +31,8 @@ const getters = {
|
||||
})
|
||||
},
|
||||
areAllAccountsSelected: state => state.accounts.length === state.selectedAccounts.length,
|
||||
isAnyAccountSelected: state => state.selectedAccounts.length > 0
|
||||
isAnyAccountSelected: state => state.selectedAccounts.length > 0,
|
||||
getServerForJsClient: (state, getters, rootState, rootGetters) => rootGetters.configuration.server.replace(/\/$/, '')
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
@@ -94,11 +95,11 @@ const actions = {
|
||||
}
|
||||
},
|
||||
|
||||
async fetchAccounts ({ commit, rootGetters }) {
|
||||
async fetchAccounts ({ commit, getters, rootGetters }) {
|
||||
injectAuthToken(rootGetters.user.token)
|
||||
try {
|
||||
const response = await AccountsService_ListAccounts({
|
||||
$domain: rootGetters.configuration.server,
|
||||
$domain: getters.getServerForJsClient,
|
||||
body: {}
|
||||
})
|
||||
if (response.status === 201) {
|
||||
@@ -111,11 +112,11 @@ const actions = {
|
||||
commit('SET_FAILED', true)
|
||||
},
|
||||
|
||||
async fetchRoles ({ commit, rootGetters }) {
|
||||
async fetchRoles ({ commit, getters, rootGetters }) {
|
||||
injectAuthToken(rootGetters.user.token)
|
||||
try {
|
||||
const response = await RoleService_ListRoles({
|
||||
$domain: rootGetters.configuration.server,
|
||||
$domain: getters.getServerForJsClient,
|
||||
body: {}
|
||||
})
|
||||
if (response.status === 201) {
|
||||
@@ -132,7 +133,7 @@ const actions = {
|
||||
getters.areAllAccountsSelected ? commit('RESET_ACCOUNTS_SELECTION') : commit('SET_SELECTED_ACCOUNTS', [...state.accounts])
|
||||
},
|
||||
|
||||
async setAccountActivated ({ commit, dispatch, state, rootGetters }, activated) {
|
||||
async setAccountActivated ({ commit, dispatch, state, getters, rootGetters }, activated) {
|
||||
const failedAccounts = []
|
||||
injectAuthToken(rootGetters.user.token)
|
||||
|
||||
@@ -143,7 +144,7 @@ const actions = {
|
||||
|
||||
try {
|
||||
const response = await AccountsService_UpdateAccount({
|
||||
$domain: rootGetters.configuration.server,
|
||||
$domain: getters.getServerForJsClient,
|
||||
body: {
|
||||
account: {
|
||||
id: account.id,
|
||||
@@ -181,12 +182,13 @@ const actions = {
|
||||
commit('RESET_ACCOUNTS_SELECTION')
|
||||
return Promise.resolve(true)
|
||||
},
|
||||
async createNewAccount ({ rootGetters, commit, dispatch }, account) {
|
||||
|
||||
async createNewAccount ({ getters, rootGetters, commit, dispatch }, account) {
|
||||
injectAuthToken(rootGetters.user.token)
|
||||
|
||||
try {
|
||||
const response = await AccountsService_CreateAccount({
|
||||
$domain: rootGetters.configuration.server,
|
||||
$domain: getters.getServerForJsClient,
|
||||
body: {
|
||||
account: {
|
||||
on_premises_sam_account_name: account.username,
|
||||
@@ -214,7 +216,7 @@ const actions = {
|
||||
return Promise.resolve(false)
|
||||
},
|
||||
|
||||
async deleteAccounts ({ rootGetters, state, commit, dispatch }) {
|
||||
async deleteAccounts ({ getters, rootGetters, state, commit, dispatch }) {
|
||||
const failedAccounts = []
|
||||
|
||||
injectAuthToken(rootGetters.user.token)
|
||||
@@ -222,7 +224,7 @@ const actions = {
|
||||
for (const account of state.selectedAccounts) {
|
||||
try {
|
||||
const response = await AccountsService_DeleteAccount({
|
||||
$domain: rootGetters.configuration.server,
|
||||
$domain: getters.getServerForJsClient,
|
||||
body: {
|
||||
id: account.id
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ Feature: Accounts
|
||||
Given user "Moss" has logged in using the webUI
|
||||
When the user browses to the accounts page
|
||||
Then user "einstein" should be displayed in the accounts list on the WebUI
|
||||
And user "konnectd" should be displayed in the accounts list on the WebUI
|
||||
And user "idp" should be displayed in the accounts list on the WebUI
|
||||
And user "marie" should be displayed in the accounts list on the WebUI
|
||||
And user "reva" should be displayed in the accounts list on the WebUI
|
||||
And user "richard" should be displayed in the accounts list on the WebUI
|
||||
@@ -72,4 +72,4 @@ Feature: Accounts
|
||||
Given user "Moss" has logged in using the webUI
|
||||
And the user browses to the accounts page
|
||||
When the user deletes user "bob" using the WebUI
|
||||
Then user "bob" should not be displayed in the accounts list on the WebUI
|
||||
Then user "bob" should not be displayed in the accounts list on the WebUI
|
||||
@@ -104,15 +104,14 @@ module.exports = {
|
||||
selector: '#accounts-app'
|
||||
},
|
||||
accountsListTable: {
|
||||
selector: "//table[@class='uk-table uk-table-middle uk-table-divider']",
|
||||
locateStrategy: 'xpath'
|
||||
selector: '#accounts-user-list'
|
||||
},
|
||||
userInAccountsList: {
|
||||
selector: '//table//td[text()="%s"]',
|
||||
selector: '//table[@id="accounts-user-list"]//td[text()="%s"]',
|
||||
locateStrategy: 'xpath'
|
||||
},
|
||||
rowByUsername: {
|
||||
selector: '//table//td[text()="%s"]/ancestor::tr',
|
||||
selector: '//table[@id="accounts-user-list"]//td[text()="%s"]/ancestor::tr',
|
||||
locateStrategy: 'xpath'
|
||||
},
|
||||
currentRole: {
|
||||
|
||||
@@ -29,7 +29,7 @@ trap clean_up SIGHUP SIGINT SIGTERM
|
||||
if [ -z "$TEST_INFRA_DIRECTORY" ]
|
||||
then
|
||||
cleanup=true
|
||||
testFolder=$(< /dev/urandom tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
|
||||
testFolder=$(< /dev/urandom LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
|
||||
printf "creating folder $testFolder for Test infrastructure setup\n\n"
|
||||
export TEST_INFRA_DIRECTORY=$testFolder
|
||||
fi
|
||||
|
||||
+2149
-1298
File diff suppressed because it is too large.
Load diff
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 885 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user