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