Compare commits
366
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79c60b505c | ||
|
|
f8f4805d64 | ||
|
|
ab1d7053d8 | ||
|
|
7eb8ae84bd | ||
|
|
fbf49a747f | ||
|
|
e4a836503f | ||
|
|
09536fa650 | ||
|
|
4bf95bd684 | ||
|
|
21dfd1147b | ||
|
|
8738c56942 | ||
|
|
4c43661664 | ||
|
|
51982d7fa4 | ||
|
|
1c96c2fbb0 | ||
|
|
123aab9675 | ||
|
|
749074e2cd | ||
|
|
adad85a9a2 | ||
|
|
4663e88403 | ||
|
|
7305694eb3 | ||
|
|
44ca518735 | ||
|
|
3afea693fd | ||
|
|
24907d7ebb | ||
|
|
ccdd08b152 | ||
|
|
ab5c9703c1 | ||
|
|
6848667292 | ||
|
|
1d2a868fba | ||
|
|
7546e476be | ||
|
|
6c00b5d26b | ||
|
|
669a5eb2bc | ||
|
|
158cede97f | ||
|
|
1074b259f9 | ||
|
|
0edc99340f | ||
|
|
930f9053d8 | ||
|
|
b725c175ef | ||
|
|
9925627c91 | ||
|
|
fac368acfa | ||
|
|
ffe56dbb6f | ||
|
|
4df9532fd3 | ||
|
|
2e3f21afbb | ||
|
|
8d1f990abd | ||
|
|
8006b5d25e | ||
|
|
0cc51c4cff | ||
|
|
e15dac85e9 | ||
|
|
ed8342de5d | ||
|
|
4515240a67 | ||
|
|
3b9ee2e49f | ||
|
|
6866f5a664 | ||
|
|
154feaaef9 | ||
|
|
c527d98b27 | ||
|
|
ea698f6f7b | ||
|
|
bf8f6ea3c6 | ||
|
|
0bb287cd9c | ||
|
|
ee65fc87bb | ||
|
|
65f057e812 | ||
|
|
49bc2969c0 | ||
|
|
6455f54ff1 | ||
|
|
4e509605f7 | ||
|
|
1d08e9f5ea | ||
|
|
ebfcf5a164 | ||
|
|
8d83ac4459 | ||
|
|
b7ba553e90 | ||
|
|
f22864f969 | ||
|
|
d0f3458261 | ||
|
|
5598f098b4 | ||
|
|
5551419170 | ||
|
|
a760689ad7 | ||
|
|
0d0cd442f8 | ||
|
|
ad2e310ec3 | ||
|
|
c6859cc9fb | ||
|
|
66f4204b09 | ||
|
|
9e6ce763e5 | ||
|
|
2a5ed5213a | ||
|
|
c6fd3aa5c3 | ||
|
|
529d29e5b1 | ||
|
|
bedddc4728 | ||
|
|
bc9c9fe58f | ||
|
|
4bdad9121f | ||
|
|
5d42d8ee0f | ||
|
|
67e0ec93ca | ||
|
|
e8879a9fd7 | ||
|
|
57085e7e4d | ||
|
|
2237534fc3 | ||
|
|
cdeb0254cd | ||
|
|
12dc077355 | ||
|
|
a681b14d3b | ||
|
|
89baa049b7 | ||
|
|
fe0da6511d | ||
|
|
024b0b81d3 | ||
|
|
565f58c68a | ||
|
|
5388aaad40 | ||
|
|
e08899d224 | ||
|
|
4f248ce47f | ||
|
|
58410b0b10 | ||
|
|
68b64ea3be | ||
|
|
b4f2faa1d6 | ||
|
|
6a3eac3765 | ||
|
|
d3619d0eff | ||
|
|
92e6a9e9a2 | ||
|
|
f3d91f8c69 | ||
|
|
3d03c3e06c | ||
|
|
7bfa03570c | ||
|
|
a925d09bbe | ||
|
|
856a0794d7 | ||
|
|
75b71766ab | ||
|
|
f9d29821e7 | ||
|
|
82d2193ad6 | ||
|
|
53d8d928f8 | ||
|
|
14e15e7ae7 | ||
|
|
a4cb8dd81b | ||
|
|
7cf0fd5ec8 | ||
|
|
6fe8c2a794 | ||
|
|
c0e1ddda95 | ||
|
|
803d99e300 | ||
|
|
96a2262e46 | ||
|
|
e83b63ffe6 | ||
|
|
e76ba90bee | ||
|
|
f58f348466 | ||
|
|
404e3e5580 | ||
|
|
2d26ab4007 | ||
|
|
38e54515b0 | ||
|
|
9a7b644e22 | ||
|
|
ecff193847 | ||
|
|
6782c2473d | ||
|
|
293aff1b53 | ||
|
|
147864d6a4 | ||
|
|
c98841904d | ||
|
|
a265fcbe46 | ||
|
|
a2c77099b9 | ||
|
|
9c2b9cccc7 | ||
|
|
b6b9af8e2f | ||
|
|
47bd5735e4 | ||
|
|
ce3d9c13f5 | ||
|
|
56f012ceb6 | ||
|
|
3f26e0f568 | ||
|
|
8f0d62f2cd | ||
|
|
0d86a08eba | ||
|
|
7f5a2ed00e | ||
|
|
83406dee0c | ||
|
|
b87118b14d | ||
|
|
01cc32deec | ||
|
|
9fea5c3002 | ||
|
|
617fc4480e | ||
|
|
d3e8b71423 | ||
|
|
0252306214 | ||
|
|
b1b9e7b77f | ||
|
|
34dc52d426 | ||
|
|
ead01a27e6 | ||
|
|
2e40f9905c | ||
|
|
cbf2b4f393 | ||
|
|
cf47cee085 | ||
|
|
cf8a83cb36 | ||
|
|
62b314dc91 | ||
|
|
4f8fd47058 | ||
|
|
15420a3d7b | ||
|
|
c1c6143568 | ||
|
|
06dc8ad5e3 | ||
|
|
45116af784 | ||
|
|
c1bd9bd71d | ||
|
|
1789a1ad43 | ||
|
|
18e0af90b7 | ||
|
|
46d397d74f | ||
|
|
49c8bb6a55 | ||
|
|
b1512bde16 | ||
|
|
bc63c2cbd7 | ||
|
|
5bbe356d36 | ||
|
|
73d89721c6 | ||
|
|
f4df2978ea | ||
|
|
e4778ec314 | ||
|
|
fdff68203c | ||
|
|
bfc626d276 | ||
|
|
28144417be | ||
|
|
8edb2188e5 | ||
|
|
5475f6c60f | ||
|
|
1c14c03e53 | ||
|
|
9c53998e76 | ||
|
|
187c8f3133 | ||
|
|
f4dc7492fa | ||
|
|
ac723fdaba | ||
|
|
54fac59d64 | ||
|
|
3397197e5a | ||
|
|
6c3684a02c | ||
|
|
00f289b725 | ||
|
|
b78aa84ba2 | ||
|
|
98929634bb | ||
|
|
85271f155a | ||
|
|
2d131fa878 | ||
|
|
435a2aa8fe | ||
|
|
d0572f1190 | ||
|
|
7e9b5e7019 | ||
|
|
997d8eabfd | ||
|
|
5d058d1ba0 | ||
|
|
f87f767930 | ||
|
|
b5decc675c | ||
|
|
5d6f4de4a3 | ||
|
|
bac2256c5f | ||
|
|
b336183771 | ||
|
|
564decbb4d | ||
|
|
5923257034 | ||
|
|
ce692dc851 | ||
|
|
da2be117fb | ||
|
|
936c295732 | ||
|
|
296af9738a | ||
|
|
990576ec6d | ||
|
|
2deeda70ce | ||
|
|
0aef4fcdce | ||
|
|
cff364c998 | ||
|
|
1daf2ecd97 | ||
|
|
2189323544 | ||
|
|
c0e8bd44a8 | ||
|
|
5f5fe9f5fa | ||
|
|
fbab620489 | ||
|
|
59e2605792 | ||
|
|
ecc547ce3f | ||
|
|
327e6260ff | ||
|
|
831f8eaa0b | ||
|
|
23b3f9d7aa | ||
|
|
d6eac9f5ba | ||
|
|
9fa4287514 | ||
|
|
276eda1ede | ||
|
|
0add18fc9a | ||
|
|
ae8f618bb0 | ||
|
|
1663e1eac7 | ||
|
|
e40015c2e2 | ||
|
|
271455703b | ||
|
|
4c8a36f0d4 | ||
|
|
092136baac | ||
|
|
3c2efe1709 | ||
|
|
cb65cccf41 | ||
|
|
5c1be18f30 | ||
|
|
eac61b6c4e | ||
|
|
a7d94be6f4 | ||
|
|
bfacee302d | ||
|
|
6a620870eb | ||
|
|
54751a9c4d | ||
|
|
fbb319f3ba | ||
|
|
ebd7045ff3 | ||
|
|
2ea96808a4 | ||
|
|
dc24bc6110 | ||
|
|
2aa796a72e | ||
|
|
a2f8d7bd5d | ||
|
|
7451e6b213 | ||
|
|
7c1c9ddacc | ||
|
|
9a7c8a43f8 | ||
|
|
98034ddcba | ||
|
|
589fc7923d | ||
|
|
bc8ff41891 | ||
|
|
2b07916f22 | ||
|
|
bd4cf280df | ||
|
|
7697c354d5 | ||
|
|
bbb3f2b958 | ||
|
|
fccc980ff0 | ||
|
|
85ad991107 | ||
|
|
94931aa4bf | ||
|
|
803447f2af | ||
|
|
5b4da8b3c2 | ||
|
|
a2810cfdd2 | ||
|
|
0eaee6ba56 | ||
|
|
9e92bfdfba | ||
|
|
0baccb922a | ||
|
|
69864b8ab9 | ||
|
|
e2c2787374 | ||
|
|
b5d5afcd5c | ||
|
|
a3a5789dc6 | ||
|
|
283338a7a7 | ||
|
|
32bafde38e | ||
|
|
e2b40a2d67 | ||
|
|
07b6c1309b | ||
|
|
9d6bd35bb5 | ||
|
|
4389bb16d2 | ||
|
|
5dd14bc770 | ||
|
|
f31f92a028 | ||
|
|
80f6b01d0b | ||
|
|
33a99d6de3 | ||
|
|
0fa52f26e9 | ||
|
|
e0d80f21e1 | ||
|
|
bd201e731a | ||
|
|
91c41a48aa | ||
|
|
e0cf17d5e5 | ||
|
|
46a95b4176 | ||
|
|
8a903991b8 | ||
|
|
1efc82cb19 | ||
|
|
57ba3d1780 | ||
|
|
37967afbd4 | ||
|
|
29a24b4cd6 | ||
|
|
02488b5f5a | ||
|
|
904491c2b2 | ||
|
|
6393e24d68 | ||
|
|
db9e255592 | ||
|
|
37ae73b77a | ||
|
|
7e470e9604 | ||
|
|
44135176e9 | ||
|
|
e67232615e | ||
|
|
f5d42161e7 | ||
|
|
dd6dc21ca3 | ||
|
|
65475b3e95 | ||
|
|
f881038adb | ||
|
|
a7e8069429 | ||
|
|
bcef2e25a8 | ||
|
|
ee1cbfbef6 | ||
|
|
295dcfebc7 | ||
|
|
62c46d4ffb | ||
|
|
5da6fe1c2e | ||
|
|
ff9d11ad1a | ||
|
|
b57da8128e | ||
|
|
1cd7eadce4 | ||
|
|
d1309b78da | ||
|
|
54fc7804ca | ||
|
|
b33cf617f0 | ||
|
|
a35618aa36 | ||
|
|
f49bd94aa5 | ||
|
|
fd4e53e2e6 | ||
|
|
94b0ca963d | ||
|
|
592e97fd0d | ||
|
|
22725da7e0 | ||
|
|
50176f6f6b | ||
|
|
ee61c32ab9 | ||
|
|
fb2755c3ac | ||
|
|
65aea4438d | ||
|
|
ede5f0fece | ||
|
|
8f9b234030 | ||
|
|
09d86e7667 | ||
|
|
e2547e79a9 | ||
|
|
cb7c4fc3ec | ||
|
|
2baff70481 | ||
|
|
b700b9b57a | ||
|
|
83d80621cf | ||
|
|
53c48dcb5d | ||
|
|
e6ea4faf01 | ||
|
|
57f70dc989 | ||
|
|
e2f20f87cf | ||
|
|
6f90abd22d | ||
|
|
0633c3984a | ||
|
|
6d9915e936 | ||
|
|
7bf8c0537e | ||
|
|
60d720f7ad | ||
|
|
3a1ced1b9c | ||
|
|
cede25ebbf | ||
|
|
168f1a89d3 | ||
|
|
1104846219 | ||
|
|
926bc8e22a | ||
|
|
61ce572bb4 | ||
|
|
8380f21cbe | ||
|
|
d99deb93e8 | ||
|
|
2d2801009c | ||
|
|
08d9c14e27 | ||
|
|
30f8409b34 | ||
|
|
d1bfb73f96 | ||
|
|
7546dab444 | ||
|
|
8b9da7ba29 | ||
|
|
815b0cc3b9 | ||
|
|
df38e9d39f | ||
|
|
5502cc25a4 | ||
|
|
707ffa45c3 | ||
|
|
0f4bd3fc0b | ||
|
|
d16088e70d | ||
|
|
ce368f7e8f | ||
|
|
5310dce231 | ||
|
|
84019acc3a | ||
|
|
3998a9a4d9 | ||
|
|
471d43a4e6 | ||
|
|
d7b237eee2 | ||
|
|
98bada4fd5 | ||
|
|
b8226dc87a | ||
|
|
d61d63b66f | ||
|
|
8db84e9041 | ||
|
|
6adcde6d38 | ||
|
|
131f473529 |
No files matched your search
+2
-2
@@ -1,3 +1,3 @@
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=4c348f6a0c697fcd9862cdcbf909c255a6eec848
|
||||
WEB_BRANCH=master
|
||||
WEB_COMMITID=264014d2f2a216de72114e5453cfa684ab275978
|
||||
WEB_BRANCH=stable-11.0
|
||||
+290
-107
@@ -58,6 +58,14 @@ dirs = {
|
||||
"ocmProviders": "tests/config/drone/providers.json",
|
||||
}
|
||||
|
||||
# OCIS URLs
|
||||
OCIS_SERVER_NAME = "ocis-server"
|
||||
OCIS_URL = "https://%s:9200" % OCIS_SERVER_NAME
|
||||
OCIS_DOMAIN = "%s:9200" % OCIS_SERVER_NAME
|
||||
FED_OCIS_SERVER_NAME = "federation-ocis-server"
|
||||
OCIS_FED_URL = "https://%s:10200" % FED_OCIS_SERVER_NAME
|
||||
OCIS_FED_DOMAIN = "%s:10200" % FED_OCIS_SERVER_NAME
|
||||
|
||||
# configuration
|
||||
config = {
|
||||
"cs3ApiTests": {
|
||||
@@ -86,6 +94,7 @@ config = {
|
||||
"graph": {
|
||||
"suites": [
|
||||
"apiGraph",
|
||||
"apiServiceAvailability",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [True],
|
||||
@@ -172,6 +181,7 @@ config = {
|
||||
"NOTIFICATIONS_SMTP_PORT": "2500",
|
||||
"NOTIFICATIONS_SMTP_INSECURE": "true",
|
||||
"NOTIFICATIONS_SMTP_SENDER": "ownCloud <noreply@example.com>",
|
||||
"NOTIFICATIONS_DEBUG_ADDR": "0.0.0.0:9174",
|
||||
},
|
||||
},
|
||||
"antivirus": {
|
||||
@@ -186,6 +196,7 @@ config = {
|
||||
"POSTPROCESSING_STEPS": "virusscan",
|
||||
"OCIS_ASYNC_UPLOADS": True,
|
||||
"OCIS_ADD_RUN_SERVICES": "antivirus",
|
||||
"ANTIVIRUS_DEBUG_ADDR": "0.0.0.0:9297",
|
||||
},
|
||||
},
|
||||
"searchContent": {
|
||||
@@ -231,6 +242,17 @@ config = {
|
||||
"GATEWAY_GRPC_ADDR": "0.0.0.0:9142",
|
||||
},
|
||||
},
|
||||
"authApp": {
|
||||
"suites": [
|
||||
"apiAuthApp",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [True],
|
||||
"extraServerEnvironment": {
|
||||
"OCIS_ADD_RUN_SERVICES": "auth-app",
|
||||
"PROXY_ENABLE_APP_AUTH": True,
|
||||
},
|
||||
},
|
||||
"cliCommands": {
|
||||
"suites": [
|
||||
"cliCommands",
|
||||
@@ -263,6 +285,20 @@ config = {
|
||||
"tikaNeeded": True,
|
||||
},
|
||||
},
|
||||
"e2eMultiService": {
|
||||
"testSuites": {
|
||||
"skip": False,
|
||||
"suites": [
|
||||
"smoke",
|
||||
"shares",
|
||||
"search",
|
||||
"journeys",
|
||||
"file-action",
|
||||
"spaces",
|
||||
],
|
||||
"tikaNeeded": True,
|
||||
},
|
||||
},
|
||||
"rocketchat": {
|
||||
"channel": "builds",
|
||||
"channel_cron": "builds",
|
||||
@@ -470,7 +506,7 @@ def testPipelines(ctx):
|
||||
if "skip" not in config["apiTests"] or not config["apiTests"]["skip"]:
|
||||
pipelines += apiTests(ctx)
|
||||
|
||||
pipelines += e2eTestPipeline(ctx)
|
||||
pipelines += e2eTestPipeline(ctx) + multiServiceE2ePipeline(ctx)
|
||||
|
||||
if ("skip" not in config["k6LoadTests"] or not config["k6LoadTests"]["skip"]) and ("k6-test" in ctx.build.title.lower() or ctx.build.event == "cron"):
|
||||
pipelines += k6LoadTests(ctx)
|
||||
@@ -929,6 +965,10 @@ def codestyle(ctx):
|
||||
def localApiTestPipeline(ctx):
|
||||
pipelines = []
|
||||
|
||||
with_remote_php = [True]
|
||||
if ctx.build.event == "cron" or "full-ci" in ctx.build.title.lower():
|
||||
with_remote_php.append(False)
|
||||
|
||||
defaults = {
|
||||
"suites": {},
|
||||
"skip": False,
|
||||
@@ -942,7 +982,7 @@ def localApiTestPipeline(ctx):
|
||||
"federationServer": False,
|
||||
"collaborationServiceNeeded": False,
|
||||
"extraCollaborationEnvironment": {},
|
||||
"withRemotePhp": [True, False] if ctx.build.event == "cron" else [True],
|
||||
"withRemotePhp": with_remote_php,
|
||||
}
|
||||
|
||||
if "localApiTests" in config:
|
||||
@@ -952,11 +992,11 @@ def localApiTestPipeline(ctx):
|
||||
for item in defaults:
|
||||
params[item] = matrix[item] if item in matrix else defaults[item]
|
||||
for storage in params["storages"]:
|
||||
for withRemotePhp in params["withRemotePhp"]:
|
||||
for run_with_remote_php in params["withRemotePhp"]:
|
||||
pipeline = {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "%s-%s%s" % ("CLI" if name.startswith("cli") else "API", name, "-withoutRemotePhp" if not withRemotePhp else ""),
|
||||
"name": "%s-%s%s" % ("CLI" if name.startswith("cli") else "API", name, "-withoutRemotePhp" if not run_with_remote_php else ""),
|
||||
"platform": {
|
||||
"os": "linux",
|
||||
"arch": "amd64",
|
||||
@@ -970,8 +1010,8 @@ def localApiTestPipeline(ctx):
|
||||
(waitForEmailService() if params["emailNeeded"] else []) +
|
||||
(ocisServer(storage, params["accounts_hash_difficulty"], deploy_type = "federation", extra_server_environment = params["extraServerEnvironment"]) if params["federationServer"] else []) +
|
||||
((wopiCollaborationService("fakeoffice") + wopiCollaborationService("collabora") + wopiCollaborationService("onlyoffice")) if params["collaborationServiceNeeded"] else []) +
|
||||
(waitForServices("wopi", ["wopi-collabora:9300", "wopi-onlyoffice:9300", "wopi-fakeoffice:9300"]) if params["collaborationServiceNeeded"] else []) +
|
||||
localApiTests(ctx, name, params["suites"], storage, params["extraEnvironment"], withRemotePhp) +
|
||||
(ocisHealthCheck("wopi", ["wopi-collabora:9304", "wopi-onlyoffice:9304", "wopi-fakeoffice:9304"]) if params["collaborationServiceNeeded"] else []) +
|
||||
localApiTests(ctx, name, params["suites"], storage, params["extraEnvironment"], run_with_remote_php) +
|
||||
logRequests(),
|
||||
"services": (emailService() if params["emailNeeded"] else []) +
|
||||
(clamavService() if params["antivirusNeeded"] else []) +
|
||||
@@ -992,19 +1032,18 @@ def localApiTests(ctx, name, suites, storage = "ocis", extra_environment = {}, w
|
||||
expected_failures_file = "%s/expected-failures-localAPI-on-%s-storage.md" % (test_dir, storage.upper())
|
||||
|
||||
environment = {
|
||||
"PATH_TO_OCIS": dirs["base"],
|
||||
"TEST_SERVER_URL": OCIS_URL,
|
||||
"TEST_SERVER_FED_URL": OCIS_FED_URL,
|
||||
"OCIS_REVA_DATA_ROOT": "%s" % (dirs["ocisRevaDataRoot"] if storage == "owncloud" else ""),
|
||||
"OCIS_SKELETON_STRATEGY": "%s" % ("copy" if storage == "owncloud" else "upload"),
|
||||
"SEND_SCENARIO_LINE_REFERENCES": "true",
|
||||
"STORAGE_DRIVER": storage,
|
||||
"BEHAT_SUITES": ",".join(suites),
|
||||
"BEHAT_FILTER_TAGS": "~@skip&&~@skipOnGraph&&~@skipOnOcis-%s-Storage" % ("OC" if storage == "owncloud" else "OCIS"),
|
||||
"EXPECTED_FAILURES_FILE": expected_failures_file,
|
||||
"UPLOAD_DELETE_WAIT_TIME": "1" if storage == "owncloud" else 0,
|
||||
"OCIS_WRAPPER_URL": "http://ocis-server:5200",
|
||||
"OCIS_WRAPPER_URL": "http://%s:5200" % OCIS_SERVER_NAME,
|
||||
"WITH_REMOTE_PHP": with_remote_php,
|
||||
"COLLABORATION_SERVICE_URL": "http://wopi-fakeoffice:9300",
|
||||
}
|
||||
|
||||
for item in extra_environment:
|
||||
@@ -1039,7 +1078,7 @@ def cs3ApiTests(ctx, storage, accounts_hash_difficulty = 4):
|
||||
"image": OC_CS3_API_VALIDATOR,
|
||||
"environment": {},
|
||||
"commands": [
|
||||
"/usr/bin/cs3api-validator /var/lib/cs3api-validator --endpoint=ocis-server:9142",
|
||||
"/usr/bin/cs3api-validator /var/lib/cs3api-validator --endpoint=%s:9142" % OCIS_SERVER_NAME,
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -1094,7 +1133,6 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
|
||||
|
||||
wopiServer = wopiCollaborationService("fakeoffice")
|
||||
|
||||
wopiTestCases = dirs["base"] + "/tests/config/drone/wopiValidatorCustomTestCases.xml"
|
||||
for testgroup in testgroups:
|
||||
validatorTests.append({
|
||||
"name": "wopiValidatorTests-%s" % testgroup,
|
||||
@@ -1107,7 +1145,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
|
||||
"export WOPI_SRC=$(cat wopisrc)",
|
||||
"echo $WOPI_SRC",
|
||||
"cd /app",
|
||||
"/app/Microsoft.Office.WopiValidator -t $WOPI_TOKEN -w $WOPI_SRC -l $WOPI_TTL --testgroup %s -c %s" % (testgroup, wopiTestCases),
|
||||
"/app/Microsoft.Office.WopiValidator -t $WOPI_TOKEN -w $WOPI_SRC -l $WOPI_TTL --testgroup %s" % testgroup,
|
||||
],
|
||||
})
|
||||
if wopiServerType == "builtin":
|
||||
@@ -1123,7 +1161,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
|
||||
"export WOPI_SRC=$(cat wopisrc)",
|
||||
"echo $WOPI_SRC",
|
||||
"cd /app",
|
||||
"/app/Microsoft.Office.WopiValidator -s -t $WOPI_TOKEN -w $WOPI_SRC -l $WOPI_TTL --testgroup %s -c %s" % (builtinOnlyGroup, wopiTestCases),
|
||||
"/app/Microsoft.Office.WopiValidator -s -t $WOPI_TOKEN -w $WOPI_SRC -l $WOPI_TTL --testgroup %s" % builtinOnlyGroup,
|
||||
],
|
||||
})
|
||||
|
||||
@@ -1148,10 +1186,10 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
|
||||
"image": OC_CI_ALPINE,
|
||||
"environment": {},
|
||||
"commands": [
|
||||
"curl -v -X PUT 'https://ocis-server:9200/remote.php/webdav/test.wopitest' -k --fail --retry-connrefused --retry 7 --retry-all-errors -u admin:admin -D headers.txt",
|
||||
"curl -v -X PUT '%s/remote.php/webdav/test.wopitest' -k --fail --retry-connrefused --retry 7 --retry-all-errors -u admin:admin -D headers.txt" % OCIS_URL,
|
||||
"cat headers.txt",
|
||||
"export FILE_ID=$(cat headers.txt | sed -n -e 's/^.*Oc-Fileid: //p')",
|
||||
"export URL=\"https://ocis-server:9200/app/open?app_name=FakeOffice&file_id=$FILE_ID\"",
|
||||
"export URL=\"%s/app/open?app_name=FakeOffice&file_id=$FILE_ID\"" % OCIS_URL,
|
||||
"export URL=$(echo $URL | tr -d '[:cntrl:]')",
|
||||
"curl -v -X POST \"$URL\" -k --fail --retry-connrefused --retry 7 --retry-all-errors -u admin:admin > open.json",
|
||||
"cat open.json",
|
||||
@@ -1193,10 +1231,8 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, with_remote_php = Fa
|
||||
"name": "oC10ApiTests-%s" % part_number,
|
||||
"image": OC_CI_PHP % DEFAULT_PHP_VERSION,
|
||||
"environment": {
|
||||
"PATH_TO_OCIS": "%s" % dirs["base"],
|
||||
"TEST_SERVER_URL": OCIS_URL,
|
||||
"OCIS_REVA_DATA_ROOT": "%s" % (dirs["ocisRevaDataRoot"] if storage == "owncloud" else ""),
|
||||
"OCIS_SKELETON_STRATEGY": "%s" % ("copy" if storage == "owncloud" else "upload"),
|
||||
"SEND_SCENARIO_LINE_REFERENCES": "true",
|
||||
"STORAGE_DRIVER": storage,
|
||||
"BEHAT_FILTER_TAGS": filterTags,
|
||||
@@ -1205,7 +1241,7 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, with_remote_php = Fa
|
||||
"ACCEPTANCE_TEST_TYPE": "core-api",
|
||||
"EXPECTED_FAILURES_FILE": expected_failures_file,
|
||||
"UPLOAD_DELETE_WAIT_TIME": "1" if storage == "owncloud" else 0,
|
||||
"OCIS_WRAPPER_URL": "http://ocis-server:5200",
|
||||
"OCIS_WRAPPER_URL": "http://%s:5200" % OCIS_SERVER_NAME,
|
||||
"WITH_REMOTE_PHP": with_remote_php,
|
||||
},
|
||||
"commands": [
|
||||
@@ -1230,13 +1266,19 @@ def apiTests(ctx):
|
||||
pipelines = []
|
||||
debugParts = config["apiTests"]["skipExceptParts"]
|
||||
debugPartsEnabled = (len(debugParts) != 0)
|
||||
|
||||
with_remote_php = [True]
|
||||
if ctx.build.event == "cron" or "full-ci" in ctx.build.title.lower():
|
||||
with_remote_php.append(False)
|
||||
|
||||
defaults = {
|
||||
"withRemotePhp": [True, False] if ctx.build.event == "cron" else [True],
|
||||
"withRemotePhp": with_remote_php,
|
||||
}
|
||||
|
||||
for runPart in range(1, config["apiTests"]["numberOfParts"] + 1):
|
||||
for withRemotePhp in defaults["withRemotePhp"]:
|
||||
for run_with_remote_php in defaults["withRemotePhp"]:
|
||||
if (not debugPartsEnabled or (debugPartsEnabled and runPart in debugParts)):
|
||||
pipelines.append(coreApiTests(ctx, runPart, config["apiTests"]["numberOfParts"], withRemotePhp))
|
||||
pipelines.append(coreApiTests(ctx, runPart, config["apiTests"]["numberOfParts"], run_with_remote_php))
|
||||
|
||||
return pipelines
|
||||
|
||||
@@ -1304,7 +1346,7 @@ def e2eTestPipeline(ctx):
|
||||
restoreWebCache() + \
|
||||
restoreWebPnpmCache() + \
|
||||
(tikaService() if params["tikaNeeded"] else []) + \
|
||||
ocisServer("ocis", 4, [], extra_server_environment = extra_server_environment, tika_enabled = params["tikaNeeded"])
|
||||
ocisServer(extra_server_environment = extra_server_environment, tika_enabled = params["tikaNeeded"])
|
||||
|
||||
step_e2e = {
|
||||
"name": "e2e-tests",
|
||||
@@ -1356,6 +1398,137 @@ def e2eTestPipeline(ctx):
|
||||
|
||||
return pipelines
|
||||
|
||||
def multiServiceE2ePipeline(ctx):
|
||||
pipelines = []
|
||||
|
||||
defaults = {
|
||||
"skip": False,
|
||||
"suites": [],
|
||||
"xsuites": [],
|
||||
"tikaNeeded": False,
|
||||
}
|
||||
|
||||
e2e_trigger = {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/pull/**",
|
||||
],
|
||||
}
|
||||
|
||||
if ("skip-e2e" in ctx.build.title.lower()):
|
||||
return pipelines
|
||||
|
||||
# run this pipeline only for cron jobs and full-ci PRs
|
||||
if (not "full-ci" in ctx.build.title.lower() and ctx.build.event != "cron"):
|
||||
return pipelines
|
||||
|
||||
extra_server_environment = {
|
||||
"OCIS_PASSWORD_POLICY_BANNED_PASSWORDS_LIST": "%s" % dirs["bannedPasswordList"],
|
||||
"OCIS_JWT_SECRET": "some-ocis-jwt-secret",
|
||||
"OCIS_SERVICE_ACCOUNT_ID": "service-account-id",
|
||||
"OCIS_SERVICE_ACCOUNT_SECRET": "service-account-secret",
|
||||
"OCIS_EXCLUDE_RUN_SERVICES": "storage-users",
|
||||
"OCIS_GATEWAY_GRPC_ADDR": "0.0.0.0:9142",
|
||||
"SETTINGS_GRPC_ADDR": "0.0.0.0:9191",
|
||||
"GATEWAY_STORAGE_USERS_MOUNT_ID": "storage-users-id",
|
||||
}
|
||||
|
||||
storage_users_environment = {
|
||||
"OCIS_CORS_ALLOW_ORIGINS": "%s,https://%s:9201" % (OCIS_URL, OCIS_SERVER_NAME),
|
||||
"STORAGE_USERS_JWT_SECRET": "some-ocis-jwt-secret",
|
||||
"STORAGE_USERS_MOUNT_ID": "storage-users-id",
|
||||
"STORAGE_USERS_SERVICE_ACCOUNT_ID": "service-account-id",
|
||||
"STORAGE_USERS_SERVICE_ACCOUNT_SECRET": "service-account-secret",
|
||||
"STORAGE_USERS_GATEWAY_GRPC_ADDR": "%s:9142" % OCIS_SERVER_NAME,
|
||||
"STORAGE_USERS_EVENTS_ENDPOINT": "%s:9233" % OCIS_SERVER_NAME,
|
||||
"STORAGE_USERS_DATA_GATEWAY_URL": "%s/data" % OCIS_URL,
|
||||
"OCIS_CACHE_STORE": "nats-js-kv",
|
||||
"OCIS_CACHE_STORE_NODES": "%s:9233" % OCIS_SERVER_NAME,
|
||||
"MICRO_REGISTRY_ADDRESS": "%s:9233" % OCIS_SERVER_NAME,
|
||||
}
|
||||
storage_users1_environment = {
|
||||
"STORAGE_USERS_GRPC_ADDR": "storageusers1:9157",
|
||||
"STORAGE_USERS_HTTP_ADDR": "storageusers1:9158",
|
||||
"STORAGE_USERS_DEBUG_ADDR": "storageusers1:9159",
|
||||
"STORAGE_USERS_DATA_SERVER_URL": "http://storageusers1:9158/data",
|
||||
}
|
||||
for item in storage_users_environment:
|
||||
storage_users1_environment[item] = storage_users_environment[item]
|
||||
|
||||
storage_users2_environment = {
|
||||
"STORAGE_USERS_GRPC_ADDR": "storageusers2:9157",
|
||||
"STORAGE_USERS_HTTP_ADDR": "storageusers2:9158",
|
||||
"STORAGE_USERS_DEBUG_ADDR": "storageusers2:9159",
|
||||
"STORAGE_USERS_DATA_SERVER_URL": "http://storageusers2:9158/data",
|
||||
}
|
||||
for item in storage_users_environment:
|
||||
storage_users2_environment[item] = storage_users_environment[item]
|
||||
|
||||
storage_volume = [{
|
||||
"name": "storage",
|
||||
"path": "/root/.ocis",
|
||||
}]
|
||||
storage_users_services = startOcisService("storage-users", "storageusers1", storage_users1_environment, storage_volume) + \
|
||||
startOcisService("storage-users", "storageusers2", storage_users2_environment, storage_volume) + \
|
||||
ocisHealthCheck("storage-users", ["storageusers1:9159", "storageusers2:9159"])
|
||||
|
||||
for _, suite in config["e2eMultiService"].items():
|
||||
if "skip" in suite and suite["skip"]:
|
||||
continue
|
||||
|
||||
params = {}
|
||||
for item in defaults:
|
||||
params[item] = suite[item] if item in suite else defaults[item]
|
||||
|
||||
e2e_args = ""
|
||||
if params["suites"]:
|
||||
e2e_args = "--suites %s" % ",".join(params["suites"])
|
||||
|
||||
# suites to skip
|
||||
if params["xsuites"]:
|
||||
e2e_args += " --xsuites %s" % ",".join(params["xsuites"])
|
||||
|
||||
steps = \
|
||||
skipIfUnchanged(ctx, "e2e-tests") + \
|
||||
restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin/ocis") + \
|
||||
restoreWebCache() + \
|
||||
restoreWebPnpmCache() + \
|
||||
tikaService() + \
|
||||
ocisServer(extra_server_environment = extra_server_environment, tika_enabled = params["tikaNeeded"]) + \
|
||||
storage_users_services + \
|
||||
[{
|
||||
"name": "e2e-tests",
|
||||
"image": OC_CI_NODEJS % DEFAULT_NODEJS_VERSION,
|
||||
"environment": {
|
||||
"BASE_URL_OCIS": OCIS_DOMAIN,
|
||||
"HEADLESS": "true",
|
||||
"RETRY": "1",
|
||||
},
|
||||
"commands": [
|
||||
"cd %s/tests/e2e" % dirs["web"],
|
||||
"bash run-e2e.sh %s" % e2e_args,
|
||||
],
|
||||
}] + \
|
||||
uploadTracingResult(ctx) + \
|
||||
logTracingResults()
|
||||
|
||||
pipelines.append({
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "e2e-tests-multi-service",
|
||||
"steps": steps,
|
||||
"depends_on": getPipelineNames(buildOcisBinaryForTesting(ctx) + buildWebCache(ctx)),
|
||||
"trigger": e2e_trigger,
|
||||
"volumes": [
|
||||
{
|
||||
"name": "storage",
|
||||
"temp": {},
|
||||
},
|
||||
pipelineVolumeGo,
|
||||
],
|
||||
})
|
||||
return pipelines
|
||||
|
||||
def uploadTracingResult(ctx):
|
||||
return [{
|
||||
"name": "upload-tracing-result",
|
||||
@@ -2144,9 +2317,9 @@ def notify(ctx):
|
||||
},
|
||||
}
|
||||
|
||||
def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on = [], deploy_type = "", extra_server_environment = {}, with_wrapper = False, tika_enabled = False):
|
||||
def ocisServer(storage = "ocis", accounts_hash_difficulty = 4, volumes = [], depends_on = [], deploy_type = "", extra_server_environment = {}, with_wrapper = False, tika_enabled = False):
|
||||
user = "0:0"
|
||||
container_name = "ocis-server"
|
||||
container_name = OCIS_SERVER_NAME
|
||||
environment = {
|
||||
"OCIS_URL": OCIS_URL,
|
||||
"OCIS_CONFIG_DIR": "/root/.ocis/config", # needed for checking config later
|
||||
@@ -2159,13 +2332,47 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
|
||||
"FRONTEND_SEARCH_MIN_LENGTH": "2",
|
||||
"OCIS_ASYNC_UPLOADS": True,
|
||||
"OCIS_EVENTS_ENABLE_TLS": False,
|
||||
"MICRO_REGISTRY": "nats-js-kv",
|
||||
"MICRO_REGISTRY_ADDRESS": "127.0.0.1:9233",
|
||||
"NATS_NATS_HOST": "0.0.0.0",
|
||||
"NATS_NATS_PORT": 9233,
|
||||
"OCIS_JWT_SECRET": "some-ocis-jwt-secret",
|
||||
"EVENTHISTORY_STORE": "memory",
|
||||
"OCIS_TRANSLATION_PATH": "%s/tests/config/translations" % dirs["base"],
|
||||
# debug addresses required for running services health tests
|
||||
"ACTIVITYLOG_DEBUG_ADDR": "0.0.0.0:9197",
|
||||
"APP_PROVIDER_DEBUG_ADDR": "0.0.0.0:9165",
|
||||
"APP_REGISTRY_DEBUG_ADDR": "0.0.0.0:9243",
|
||||
"AUTH_BASIC_DEBUG_ADDR": "0.0.0.0:9147",
|
||||
"AUTH_MACHINE_DEBUG_ADDR": "0.0.0.0:9167",
|
||||
"AUTH_SERVICE_DEBUG_ADDR": "0.0.0.0:9198",
|
||||
"CLIENTLOG_DEBUG_ADDR": "0.0.0.0:9260",
|
||||
"EVENTHISTORY_DEBUG_ADDR": "0.0.0.0:9270",
|
||||
"FRONTEND_DEBUG_ADDR": "0.0.0.0:9141",
|
||||
"GATEWAY_DEBUG_ADDR": "0.0.0.0:9143",
|
||||
"GRAPH_DEBUG_ADDR": "0.0.0.0:9124",
|
||||
"GROUPS_DEBUG_ADDR": "0.0.0.0:9161",
|
||||
"IDM_DEBUG_ADDR": "0.0.0.0:9239",
|
||||
"IDP_DEBUG_ADDR": "0.0.0.0:9134",
|
||||
"INVITATIONS_DEBUG_ADDR": "0.0.0.0:9269",
|
||||
"NATS_DEBUG_ADDR": "0.0.0.0:9234",
|
||||
"OCDAV_DEBUG_ADDR": "0.0.0.0:9163",
|
||||
"OCM_DEBUG_ADDR": "0.0.0.0:9281",
|
||||
"OCS_DEBUG_ADDR": "0.0.0.0:9114",
|
||||
"POSTPROCESSING_DEBUG_ADDR": "0.0.0.0:9255",
|
||||
"PROXY_DEBUG_ADDR": "0.0.0.0:9205",
|
||||
"SEARCH_DEBUG_ADDR": "0.0.0.0:9224",
|
||||
"SETTINGS_DEBUG_ADDR": "0.0.0.0:9194",
|
||||
"SHARING_DEBUG_ADDR": "0.0.0.0:9151",
|
||||
"SSE_DEBUG_ADDR": "0.0.0.0:9139",
|
||||
"STORAGE_PUBLICLINK_DEBUG_ADDR": "0.0.0.0:9179",
|
||||
"STORAGE_SHARES_DEBUG_ADDR": "0.0.0.0:9156",
|
||||
"STORAGE_SYSTEM_DEBUG_ADDR": "0.0.0.0:9217",
|
||||
"STORAGE_USERS_DEBUG_ADDR": "0.0.0.0:9159",
|
||||
"THUMBNAILS_DEBUG_ADDR": "0.0.0.0:9189",
|
||||
"USERLOG_DEBUG_ADDR": "0.0.0.0:9214",
|
||||
"USERS_DEBUG_ADDR": "0.0.0.0:9145",
|
||||
"WEB_DEBUG_ADDR": "0.0.0.0:9104",
|
||||
"WEBDAV_DEBUG_ADDR": "0.0.0.0:9119",
|
||||
"WEBFINGER_DEBUG_ADDR": "0.0.0.0:9279",
|
||||
}
|
||||
|
||||
if deploy_type == "":
|
||||
@@ -2191,7 +2398,7 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
|
||||
if deploy_type == "federation":
|
||||
environment["OCIS_URL"] = OCIS_FED_URL
|
||||
environment["PROXY_HTTP_ADDR"] = OCIS_FED_DOMAIN
|
||||
container_name = "federation-ocis-server"
|
||||
container_name = FED_OCIS_SERVER_NAME
|
||||
|
||||
if tika_enabled:
|
||||
environment["FRONTEND_FULL_TEXT_SEARCH_ENABLED"] = True
|
||||
@@ -2246,6 +2453,38 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
|
||||
wait_for_ocis,
|
||||
]
|
||||
|
||||
def startOcisService(service = None, name = None, environment = {}, volumes = []):
|
||||
"""
|
||||
Starts an OCIS service in a detached container.
|
||||
|
||||
Args:
|
||||
service (str): The name of the service to start.
|
||||
name (str): The name of the container.
|
||||
environment (dict): The environment variables to set in the container.
|
||||
volumes (list): The volumes to mount in the container.
|
||||
|
||||
Returns:
|
||||
list: A list of pipeline steps to start the service.
|
||||
"""
|
||||
|
||||
if not service:
|
||||
return []
|
||||
if not name:
|
||||
name = service
|
||||
|
||||
return [
|
||||
{
|
||||
"name": name,
|
||||
"image": OC_CI_GOLANG,
|
||||
"detach": True,
|
||||
"environment": environment,
|
||||
"commands": [
|
||||
"ocis/bin/ocis %s server" % service,
|
||||
],
|
||||
"volumes": volumes,
|
||||
},
|
||||
]
|
||||
|
||||
def redis():
|
||||
return [
|
||||
{
|
||||
@@ -2599,67 +2838,6 @@ def pipelineSanityChecks(ctx, pipelines):
|
||||
for image in images.keys():
|
||||
print(" %sx\t%s" % (images[image], image))
|
||||
|
||||
# configs
|
||||
OCIS_URL = "https://ocis-server:9200"
|
||||
OCIS_DOMAIN = "ocis-server:9200"
|
||||
OC10_URL = "http://oc10:8080"
|
||||
OCIS_FED_URL = "https://federation-ocis-server:10200"
|
||||
OCIS_FED_DOMAIN = "federation-ocis-server:10200"
|
||||
|
||||
# step volumes
|
||||
stepVolumeOC10Templates = \
|
||||
{
|
||||
"name": "oc10-templates",
|
||||
"path": "/etc/templates",
|
||||
}
|
||||
stepVolumeOC10PreServer = \
|
||||
{
|
||||
"name": "preserver-config",
|
||||
"path": "/etc/pre_server.d",
|
||||
}
|
||||
stepVolumeOC10Apps = \
|
||||
{
|
||||
"name": "core-apps",
|
||||
"path": "/var/www/owncloud/apps",
|
||||
}
|
||||
stepVolumeOC10OCISData = \
|
||||
{
|
||||
"name": "data",
|
||||
"path": "/mnt/data",
|
||||
}
|
||||
stepVolumeOCISConfig = \
|
||||
{
|
||||
"name": "proxy-config",
|
||||
"path": "/etc/ocis",
|
||||
}
|
||||
|
||||
# pipeline volumes
|
||||
pipeOC10TemplatesVol = \
|
||||
{
|
||||
"name": "oc10-templates",
|
||||
"temp": {},
|
||||
}
|
||||
pipeOC10PreServerVol = \
|
||||
{
|
||||
"name": "preserver-config",
|
||||
"temp": {},
|
||||
}
|
||||
pipeOC10AppsVol = \
|
||||
{
|
||||
"name": "core-apps",
|
||||
"temp": {},
|
||||
}
|
||||
pipeOC10OCISSharedVol = \
|
||||
{
|
||||
"name": "data",
|
||||
"temp": {},
|
||||
}
|
||||
pipeOCISConfigVol = \
|
||||
{
|
||||
"name": "proxy-config",
|
||||
"temp": {},
|
||||
}
|
||||
|
||||
def litmus(ctx, storage):
|
||||
pipelines = []
|
||||
|
||||
@@ -2693,7 +2871,7 @@ def litmus(ctx, storage):
|
||||
"environment": environment,
|
||||
"commands": [
|
||||
"source .env",
|
||||
'export LITMUS_URL="https://ocis-server:9200/remote.php/webdav"',
|
||||
'export LITMUS_URL="%s/remote.php/webdav"' % OCIS_URL,
|
||||
litmusCommand,
|
||||
],
|
||||
},
|
||||
@@ -2703,7 +2881,7 @@ def litmus(ctx, storage):
|
||||
"environment": environment,
|
||||
"commands": [
|
||||
"source .env",
|
||||
'export LITMUS_URL="https://ocis-server:9200/remote.php/dav/files/admin"',
|
||||
'export LITMUS_URL="%s/remote.php/dav/files/admin"' % OCIS_URL,
|
||||
litmusCommand,
|
||||
],
|
||||
},
|
||||
@@ -2713,7 +2891,7 @@ def litmus(ctx, storage):
|
||||
"environment": environment,
|
||||
"commands": [
|
||||
"source .env",
|
||||
'export LITMUS_URL="https://ocis-server:9200/remote.php/dav/files/admin/Shares/new_folder/"',
|
||||
'export LITMUS_URL="%s/remote.php/dav/files/admin/Shares/new_folder/"' % OCIS_URL,
|
||||
litmusCommand,
|
||||
],
|
||||
},
|
||||
@@ -2723,7 +2901,7 @@ def litmus(ctx, storage):
|
||||
"environment": environment,
|
||||
"commands": [
|
||||
"source .env",
|
||||
'export LITMUS_URL="https://ocis-server:9200/remote.php/webdav/Shares/new_folder/"',
|
||||
'export LITMUS_URL="%s/remote.php/webdav/Shares/new_folder/"' % OCIS_URL,
|
||||
litmusCommand,
|
||||
],
|
||||
},
|
||||
@@ -2737,7 +2915,7 @@ def litmus(ctx, storage):
|
||||
# },
|
||||
# "commands": [
|
||||
# "source .env",
|
||||
# "export LITMUS_URL='https://ocis-server:9200/remote.php/dav/public-files/'$PUBLIC_TOKEN",
|
||||
# "export LITMUS_URL='%s/remote.php/dav/public-files/'$PUBLIC_TOKEN" % OCIS_URL,
|
||||
# litmusCommand,
|
||||
# ],
|
||||
# },
|
||||
@@ -2747,7 +2925,7 @@ def litmus(ctx, storage):
|
||||
"environment": environment,
|
||||
"commands": [
|
||||
"source .env",
|
||||
"export LITMUS_URL='https://ocis-server:9200/remote.php/dav/spaces/'$SPACE_ID",
|
||||
"export LITMUS_URL='%s/remote.php/dav/spaces/'$SPACE_ID" % OCIS_URL,
|
||||
litmusCommand,
|
||||
],
|
||||
},
|
||||
@@ -2976,10 +3154,11 @@ def wopiCollaborationService(name):
|
||||
|
||||
environment = {
|
||||
"MICRO_REGISTRY": "nats-js-kv",
|
||||
"MICRO_REGISTRY_ADDRESS": "ocis-server:9233",
|
||||
"MICRO_REGISTRY_ADDRESS": "%s:9233" % OCIS_SERVER_NAME,
|
||||
"COLLABORATION_LOG_LEVEL": "debug",
|
||||
"COLLABORATION_GRPC_ADDR": "0.0.0.0:9301",
|
||||
"COLLABORATION_HTTP_ADDR": "0.0.0.0:9300",
|
||||
"COLLABORATION_DEBUG_ADDR": "0.0.0.0:9304",
|
||||
"COLLABORATION_APP_PROOF_DISABLE": "true",
|
||||
"COLLABORATION_APP_INSECURE": "true",
|
||||
"COLLABORATION_CS3API_DATAGATEWAY_INSECURE": "true",
|
||||
@@ -3004,17 +3183,7 @@ def wopiCollaborationService(name):
|
||||
|
||||
environment["COLLABORATION_WOPI_SRC"] = "http://%s:9300" % service_name
|
||||
|
||||
return [
|
||||
{
|
||||
"name": service_name,
|
||||
"image": OC_CI_GOLANG,
|
||||
"detach": True,
|
||||
"environment": environment,
|
||||
"commands": [
|
||||
"ocis/bin/ocis collaboration server",
|
||||
],
|
||||
},
|
||||
]
|
||||
return startOcisService("collaboration", service_name, environment)
|
||||
|
||||
def tikaService():
|
||||
return [{
|
||||
@@ -3149,6 +3318,20 @@ def waitForServices(name, services = []):
|
||||
],
|
||||
}]
|
||||
|
||||
def ocisHealthCheck(name, services = []):
|
||||
commands = []
|
||||
timeout = 300
|
||||
curl_command = ["timeout %s bash -c 'while [ $(curl -s %s/%s ", "-w %{http_code} -o /dev/null) != 200 ]; do sleep 1; done'"]
|
||||
for service in services:
|
||||
commands.append(curl_command[0] % (timeout, service, "healthz") + curl_command[1])
|
||||
commands.append(curl_command[0] % (timeout, service, "readyz") + curl_command[1])
|
||||
|
||||
return [{
|
||||
"name": "health-check-%s" % name,
|
||||
"image": OC_CI_ALPINE,
|
||||
"commands": commands,
|
||||
}]
|
||||
|
||||
def collaboraService():
|
||||
return [
|
||||
{
|
||||
@@ -3158,7 +3341,7 @@ def collaboraService():
|
||||
"detach": True,
|
||||
"environment": {
|
||||
"DONT_GEN_SSL_CERT": "set",
|
||||
"extra_params": "--o:ssl.enable=true --o:ssl.termination=true --o:welcome.enable=false --o:net.frame_ancestors=https://ocis-server:9200",
|
||||
"extra_params": "--o:ssl.enable=true --o:ssl.termination=true --o:welcome.enable=false --o:net.frame_ancestors=%s" % OCIS_URL,
|
||||
},
|
||||
"commands": [
|
||||
"coolconfig generate-proof-key",
|
||||
|
||||
+447
-3
@@ -1,11 +1,17 @@
|
||||
# Table of Contents
|
||||
|
||||
* [Changelog for unreleased](#changelog-for-unreleased-unreleased)
|
||||
* [Changelog for 7.0.0-rc.4](#changelog-for-700-rc4-2024-12-09)
|
||||
* [Changelog for 7.0.0-rc.3](#changelog-for-700-rc3-2024-11-21)
|
||||
* [Changelog for 5.0.9](#changelog-for-509-2024-11-14)
|
||||
* [Changelog for 7.0.0-rc.2](#changelog-for-700-rc2-2024-11-12)
|
||||
* [Changelog for 7.0.0-rc.1](#changelog-for-700-rc1-2024-11-07)
|
||||
* [Changelog for 6.6.1](#changelog-for-661-2024-10-24)
|
||||
* [Changelog for 6.6.0](#changelog-for-660-2024-10-21)
|
||||
* [Changelog for 6.5.0](#changelog-for-650-2024-10-01)
|
||||
* [Changelog for 5.0.8](#changelog-for-508-2024-09-30)
|
||||
* [Changelog for 6.4.0](#changelog-for-640-2024-09-12)
|
||||
* [Changelog for 5.0.7](#changelog-for-507-2024-09-04)
|
||||
* [Changelog for 6.3.0](#changelog-for-630-2024-08-20)
|
||||
* [Changelog for 6.2.0](#changelog-for-620-2024-07-30)
|
||||
* [Changelog for 5.0.6](#changelog-for-506-2024-07-17)
|
||||
@@ -54,7 +60,376 @@
|
||||
|
||||
The following sections list the changes for unreleased.
|
||||
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v7.0.0-rc.1...master
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v7.0.0-rc.4...master
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Fix link activity message: [#10663](https://github.com/owncloud/ocis/pull/10663)
|
||||
* Bugfix - Fix graph drives response for federated shares: [#10730](https://github.com/owncloud/ocis/pull/10730)
|
||||
* Bugfix - GetLastModified property in the REPORT response will use RFC1123 format: [#10738](https://github.com/owncloud/ocis/pull/10738)
|
||||
* Bugfix - Unifi logging: [#10743](https://github.com/owncloud/ocis/pull/10743/)
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL upd: [#10757](https://github.com/owncloud/ocis/pull/10757)
|
||||
* Bugfix - Bump Reva: [#10766](https://github.com/owncloud/ocis/pull/10766)
|
||||
* Enhancement - Update web to v11.0.6: [#10755](https://github.com/owncloud/ocis/pull/10755)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Fix link activity message: [#10663](https://github.com/owncloud/ocis/pull/10663)
|
||||
|
||||
We changed the link token to display name in the activity message.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10295
|
||||
https://github.com/owncloud/ocis/pull/10663
|
||||
|
||||
* Bugfix - Fix graph drives response for federated shares: [#10730](https://github.com/owncloud/ocis/pull/10730)
|
||||
|
||||
Federated shares where erroneously showing up in the /me/drives response on the
|
||||
graph API.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10689
|
||||
https://github.com/owncloud/ocis/pull/10730
|
||||
|
||||
* Bugfix - GetLastModified property in the REPORT response will use RFC1123 format: [#10738](https://github.com/owncloud/ocis/pull/10738)
|
||||
|
||||
This will follow the standard and will also match the format of the same
|
||||
property in the PROPFIND response
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10738
|
||||
|
||||
* Bugfix - Unifi logging: [#10743](https://github.com/owncloud/ocis/pull/10743/)
|
||||
|
||||
We fixed some cases where we did not use the correct logger.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10743/
|
||||
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL upd: [#10757](https://github.com/owncloud/ocis/pull/10757)
|
||||
|
||||
Made GetScopeByKeyPrefix function as a private method of the FileConnector
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10757
|
||||
|
||||
* Bugfix - Bump Reva: [#10766](https://github.com/owncloud/ocis/pull/10766)
|
||||
|
||||
Bumps reva version to 2.27.0
|
||||
|
||||
* Bugfix [cs3org/reva#4985](https://github.com/cs3org/reva/pull/4985): Drop unneeded session locks
|
||||
* Bugfix [cs3org/reva#5000](https://github.com/cs3org/reva/pull/5000): Fix ceph build
|
||||
* Bugfix [cs3org/reva#4989](https://github.com/cs3org/reva/pull/4989): Deleting OCM share also updates storageprovider
|
||||
* Enhancement [cs3org/reva#4998](https://github.com/cs3org/reva/pull/4998): Emit event when an ocm share is received
|
||||
* Enhancement [cs3org/reva#4996](https://github.com/cs3org/reva/pull/4996): Get rid of some cases of unstructured logging
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10766
|
||||
|
||||
* Enhancement - Update web to v11.0.6: [#10755](https://github.com/owncloud/ocis/pull/10755)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v11.0.6. Please refer to the changelog (linked) for
|
||||
details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11992](https://github.com/owncloud/web/pull/11992): OCM
|
||||
invite flow - Bugfix
|
||||
[owncloud/web#11997](https://github.com/owncloud/web/pull/11997): Change search
|
||||
scope without search term - Bugfix
|
||||
[owncloud/web#11998](https://github.com/owncloud/web/pull/11998): Do not load
|
||||
version when sidebar is closed - Bugfix
|
||||
[owncloud/web#12000](https://github.com/owncloud/web/pull/12000): Use only space
|
||||
resource with driveType "project" as space in sidebar - Bugfix
|
||||
[owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share
|
||||
editing - Bugfix
|
||||
[owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share
|
||||
recipient issuer - Bugfix
|
||||
[owncloud/web#12008](https://github.com/owncloud/web/pull/12008): Missing
|
||||
activities on Shared with me page - Bugfix
|
||||
[owncloud/web#12010](https://github.com/owncloud/web/pull/12010): Sidebar file
|
||||
info for shares - Bugfix
|
||||
[owncloud/web#12012](https://github.com/owncloud/web/pull/12012): Show missing
|
||||
role name in link share panel - Bugfix
|
||||
[owncloud/web#12013](https://github.com/owncloud/web/pull/12013): Missing
|
||||
translations for share type filters - Bugfix
|
||||
[owncloud/web#12022](https://github.com/owncloud/web/pull/12022): Permanent link
|
||||
for shares
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10755
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.6
|
||||
|
||||
# Changelog for [7.0.0-rc.4] (2024-12-09)
|
||||
|
||||
The following sections list the changes for 7.0.0-rc.4.
|
||||
|
||||
[7.0.0-rc.4]: https://github.com/owncloud/ocis/compare/v7.0.0-rc.3...v7.0.0-rc.4
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Fix deny access for graph roles: [#10627](https://github.com/owncloud/ocis/pull/10627)
|
||||
* Bugfix - Fix possible race condition when a thumbnails is stored in the FS: [#10693](https://github.com/owncloud/ocis/pull/10693)
|
||||
* Bugfix - Skip fetching members: [#10701](https://github.com/owncloud/ocis/pull/10701)
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL: [#10718](https://github.com/owncloud/ocis/pull/10718)
|
||||
* Bugfix - Bump Reva: [#10735](https://github.com/owncloud/ocis/pull/10735)
|
||||
* Enhancement - Fetch shared resource metadata concurrently in graph: [#10683](https://github.com/owncloud/ocis/pull/10683)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Fix deny access for graph roles: [#10627](https://github.com/owncloud/ocis/pull/10627)
|
||||
|
||||
We added a unified role "Cannot access" to prevent a regression when switching
|
||||
the share implementation to the graph API. This role is now used to deny access
|
||||
to a resource.The new role is not enabled by default. The whole deny feature is
|
||||
still experimental.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10627
|
||||
|
||||
* Bugfix - Fix possible race condition when a thumbnails is stored in the FS: [#10693](https://github.com/owncloud/ocis/pull/10693)
|
||||
|
||||
A race condition could cause the thumbnail service to return a thumbnail with 0
|
||||
bytes or with partial content. In order to fix this, the service will create a
|
||||
temporary file with the contents and then rename that file to its final
|
||||
location.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10693
|
||||
|
||||
* Bugfix - Skip fetching members: [#10701](https://github.com/owncloud/ocis/pull/10701)
|
||||
|
||||
We now skip fetching group members when they are not needed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10701
|
||||
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL: [#10718](https://github.com/owncloud/ocis/pull/10718)
|
||||
|
||||
We fixed the FileInfo.BreadcrumbFolderURL in a collaboration api"
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10718
|
||||
|
||||
* Bugfix - Bump Reva: [#10735](https://github.com/owncloud/ocis/pull/10735)
|
||||
|
||||
Bumps reva version to 2.26.8
|
||||
|
||||
* Fix [cs3org/reva#4983](https://github.com/cs3org/reva/pull/4983): Delete stale shares in the jsoncs3 share manager
|
||||
* Fix [cs3org/reva#4963](https://github.com/cs3org/reva/pull/4963): Fix name and displayName in an ocm
|
||||
* Fix [cs3org/reva#4968](https://github.com/cs3org/reva/pull/4968): Jsoncs3 cache fixes
|
||||
* Fix [cs3org/reva#4928](https://github.com/cs3org/reva/pull/4928): Propagate lock in PROPPATCH
|
||||
* Fix [cs3org/reva#4971](https://github.com/cs3org/reva/pull/4971): Use manager to list shares
|
||||
* Fix [cs3org/reva#4978](https://github.com/cs3org/reva/pull/4978): We added more trace spans in decomposedfs
|
||||
* Fix [cs3org/reva#4921](https://github.com/cs3org/reva/pull/4921): Polish propagation related code
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10735
|
||||
|
||||
* Enhancement - Fetch shared resource metadata concurrently in graph: [#10683](https://github.com/owncloud/ocis/pull/10683)
|
||||
|
||||
We now concurrently stat shared resources when listing shares
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10683
|
||||
|
||||
# Changelog for [7.0.0-rc.3] (2024-11-21)
|
||||
|
||||
The following sections list the changes for 7.0.0-rc.3.
|
||||
|
||||
[7.0.0-rc.3]: https://github.com/owncloud/ocis/compare/v5.0.9...v7.0.0-rc.3
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Log GRPC requests in debug mode: [#10438](https://github.com/owncloud/ocis/pull/10438)
|
||||
* Bugfix - Fix impersonated request user mismatch: [#10548](https://github.com/owncloud/ocis/pull/10548)
|
||||
* Bugfix - Fix federated sharing when using an external IDP: [#10567](https://github.com/owncloud/ocis/pull/10567)
|
||||
* Bugfix - Fix node cache ttl updates: [#10575](https://github.com/owncloud/ocis/pull/10575)
|
||||
* Bugfix - We now limit the number of workers of the jsoncs3 share manager: [#10578](https://github.com/owncloud/ocis/pull/10578)
|
||||
* Bugfix - Set MaxConcurrency to 1: [#10580](https://github.com/owncloud/ocis/pull/10580)
|
||||
* Bugfix - Reuse go-micro service clients: [#10582](https://github.com/owncloud/ocis/pull/10582)
|
||||
* Bugfix - Make collaboration service use a gateway selector: [#10584](https://github.com/owncloud/ocis/pull/10584)
|
||||
* Bugfix - Return an error if we can't get the keys and ensure they're cached: [#10590](https://github.com/owncloud/ocis/pull/10590)
|
||||
* Bugfix - Fix status code for thumbnail requests: [#10592](https://github.com/owncloud/ocis/pull/10592)
|
||||
* Bugfix - Fix the activity field mapping: [#10593](https://github.com/owncloud/ocis/pull/10593)
|
||||
* Bugfix - Bump Reva to v2.26.7: [#10612](https://github.com/owncloud/ocis/pull/10612)
|
||||
* Enhancement - Update web to v11.0.4: [#10569](https://github.com/owncloud/ocis/pull/10569)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Log GRPC requests in debug mode: [#10438](https://github.com/owncloud/ocis/pull/10438)
|
||||
|
||||
When log level is set to debug we will now also log grpc requests.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10438
|
||||
|
||||
* Bugfix - Fix impersonated request user mismatch: [#10548](https://github.com/owncloud/ocis/pull/10548)
|
||||
|
||||
We fixed a user id and name mismatch in the impersonated auth-app API request
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10292
|
||||
https://github.com/owncloud/ocis/pull/10548
|
||||
|
||||
* Bugfix - Fix federated sharing when using an external IDP: [#10567](https://github.com/owncloud/ocis/pull/10567)
|
||||
|
||||
We fixed a bug that caused federated sharing to fail, when the federated oCIS
|
||||
instances where sharing the same external IDP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10567
|
||||
https://github.com/cs3org/reva/pull/4933
|
||||
|
||||
* Bugfix - Fix node cache ttl updates: [#10575](https://github.com/owncloud/ocis/pull/10575)
|
||||
|
||||
We now only udpate the TTL of the node that is created or updated.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10575
|
||||
|
||||
* Bugfix - We now limit the number of workers of the jsoncs3 share manager: [#10578](https://github.com/owncloud/ocis/pull/10578)
|
||||
|
||||
We now restrict the number of workers that look up shares to 5. The number can
|
||||
be changed with `SHARING_USER_JSONCS3_MAX_CONCURRENCY` or
|
||||
`OCIS_MAX_CONCURRENCY`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10578
|
||||
https://github.com/owncloud/ocis/pull/10552
|
||||
|
||||
* Bugfix - Set MaxConcurrency to 1: [#10580](https://github.com/owncloud/ocis/pull/10580)
|
||||
|
||||
Set MaxConcurrency for frontend and userlog and sharing services to 1. Too many
|
||||
workers will negatively impact performance on small machines.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10580
|
||||
https://github.com/owncloud/ocis/pull/10557
|
||||
|
||||
* Bugfix - Reuse go-micro service clients: [#10582](https://github.com/owncloud/ocis/pull/10582)
|
||||
|
||||
Go micro clients must not be reinitialized. The internal selector will spawn a
|
||||
new go routine to watch for registry changes.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10582
|
||||
|
||||
* Bugfix - Make collaboration service use a gateway selector: [#10584](https://github.com/owncloud/ocis/pull/10584)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10584
|
||||
|
||||
* Bugfix - Return an error if we can't get the keys and ensure they're cached: [#10590](https://github.com/owncloud/ocis/pull/10590)
|
||||
|
||||
Previously, there was an issue where we could get an error while getting the
|
||||
public keys from the /hosting/discovery endpoint but we're returning a wrong
|
||||
success value instead. This is fixed now and we're returning the error.
|
||||
|
||||
In addition, the public keys weren't being cached, so we hit the
|
||||
/hosting/discovery endpoint every time we need to use the public keys. The keys
|
||||
are now cached so we don't need to hit the endpoint more than what we need.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10590
|
||||
|
||||
* Bugfix - Fix status code for thumbnail requests: [#10592](https://github.com/owncloud/ocis/pull/10592)
|
||||
|
||||
We fixed the status code returned by the thumbnails service when the image
|
||||
source for a thumbnail exceeds the configured maximum dimensions or file size.
|
||||
The service now returns a 403 Forbidden status code instead of a 500 Internal
|
||||
Server Error status code.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10589
|
||||
https://github.com/owncloud/ocis/pull/10592
|
||||
|
||||
* Bugfix - Fix the activity field mapping: [#10593](https://github.com/owncloud/ocis/pull/10593)
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10228
|
||||
https://github.com/owncloud/ocis/pull/10593
|
||||
Fixed
|
||||
the
|
||||
activity
|
||||
field
|
||||
mapping
|
||||
|
||||
* Bugfix - Bump Reva to v2.26.7: [#10612](https://github.com/owncloud/ocis/pull/10612)
|
||||
|
||||
* Fix [cs3org/reva#4964](https://github.com/cs3org/reva/issues/4964): Fix a wrong error code when approvider creates a new file
|
||||
|
||||
Bump Reva to v2.26.6
|
||||
|
||||
* Fix [cs3org/reva#4955](https://github.com/cs3org/reva/issues/4955): Allow small clock skew in reva token validation
|
||||
* Fix [cs3org/reva#4929](https://github.com/cs3org/reva/issues/4929): Fix flaky posixfs integration tests
|
||||
* Fix [cs3org/reva#4953](https://github.com/cs3org/reva/issues/4953): Avoid gateway panics
|
||||
* Fix [cs3org/reva#4959](https://github.com/cs3org/reva/issues/4959): Fix missing file touched event
|
||||
* Fix [cs3org/reva#4933](https://github.com/cs3org/reva/issues/4933): Fix federated sharing when using an external identity provider
|
||||
* Fix [cs3org/reva#4935](https://github.com/cs3org/reva/issues/4935): Enable datatx log
|
||||
* Fix [cs3org/reva#4936](https://github.com/cs3org/reva/issues/4936): Do not delete mlock files
|
||||
* Fix [cs3org/reva#4954](https://github.com/cs3org/reva/issues/4954): Prevent a panic when logging an error
|
||||
* Fix [cs3org/reva#4956](https://github.com/cs3org/reva/issues/4956): Improve posixfs error handling and logging
|
||||
* Fix [cs3org/reva#4951](https://github.com/cs3org/reva/issues/4951): Pass the initialized logger down the stack
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10612
|
||||
|
||||
* Enhancement - Update web to v11.0.4: [#10569](https://github.com/owncloud/ocis/pull/10569)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v11.0.4. Please refer to the changelog (linked) for
|
||||
details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11870](https://github.com/owncloud/web/issues/11870):
|
||||
Preview image retries postprocessing - Bugfix
|
||||
[owncloud/web#11883](https://github.com/owncloud/web/issues/11883): Preview app
|
||||
Shared with me page - Bugfix
|
||||
[owncloud/web#11897](https://github.com/owncloud/web/issues/11897): "Save as" /
|
||||
"Open" when embed delegate authentication is enabled - Bugfix
|
||||
[owncloud/web#11900](https://github.com/owncloud/web/issues/11900): App top bar
|
||||
does not show location when shared file is opened - Bugfix
|
||||
[owncloud/web#11900](https://github.com/owncloud/web/issues/11900): Open from
|
||||
app and Save As feature broken when opened via shared file - Bugfix
|
||||
[owncloud/web#11904](https://github.com/owncloud/web/issues/11904): Public
|
||||
folder reload - Bugfix
|
||||
[owncloud/web#11916](https://github.com/owncloud/web/issues/11916): Fix order in
|
||||
roles drop down - Bugfix
|
||||
[owncloud/web#11923](https://github.com/owncloud/web/issues/11923): Allow create
|
||||
template with different editors - Bugfix
|
||||
[owncloud/web#11924](https://github.com/owncloud/web/issues/11924): Extension
|
||||
actions in right sidebar - Bugfix
|
||||
[owncloud/web#11929](https://github.com/owncloud/web/issues/11929): Unique
|
||||
request ids
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10569
|
||||
https://github.com/owncloud/ocis/pull/10604
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.3
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.4
|
||||
|
||||
# Changelog for [5.0.9] (2024-11-14)
|
||||
|
||||
The following sections list the changes for 5.0.9.
|
||||
|
||||
[5.0.9]: https://github.com/owncloud/ocis/compare/v7.0.0-rc.2...v5.0.9
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Thumbnail request limit: [#10280](https://github.com/owncloud/ocis/pull/10280)
|
||||
* Bugfix - Restart Postprocessing properly: [#10439](https://github.com/owncloud/ocis/pull/10439)
|
||||
* Change - Define maximum input image dimensions and size when generating previews: [#10270](https://github.com/owncloud/ocis/pull/10270)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Thumbnail request limit: [#10280](https://github.com/owncloud/ocis/pull/10280)
|
||||
|
||||
The `THUMBNAILS_MAX_CONCURRENT_REQUESTS` setting was not working correctly.
|
||||
Previously it was just limiting the number of concurrent thumbnail downloads.
|
||||
Now the limit is applied to the number thumbnail generations requests.
|
||||
Additionally the webdav service is now returning a "Retry-After" header when it
|
||||
is hitting the ratelimit of the thumbnail service.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10280
|
||||
https://github.com/owncloud/ocis/pull/10270
|
||||
https://github.com/owncloud/ocis/pull/10225
|
||||
|
||||
* Bugfix - Restart Postprocessing properly: [#10439](https://github.com/owncloud/ocis/pull/10439)
|
||||
|
||||
Properly differentiate between resume and restart postprocessing.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10439
|
||||
|
||||
* Change - Define maximum input image dimensions and size when generating previews: [#10270](https://github.com/owncloud/ocis/pull/10270)
|
||||
|
||||
This is a general hardening change to limit processing time and resources of the
|
||||
thumbnailer.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10270
|
||||
https://github.com/owncloud/ocis/pull/9360
|
||||
https://github.com/owncloud/ocis/pull/9035
|
||||
https://github.com/owncloud/ocis/pull/9069
|
||||
|
||||
# Changelog for [7.0.0-rc.2] (2024-11-12)
|
||||
|
||||
The following sections list the changes for 7.0.0-rc.2.
|
||||
|
||||
[7.0.0-rc.2]: https://github.com/owncloud/ocis/compare/v7.0.0-rc.1...v7.0.0-rc.2
|
||||
|
||||
## Summary
|
||||
|
||||
@@ -713,7 +1088,7 @@ The following sections list the changes for 6.6.0.
|
||||
|
||||
The following sections list the changes for 6.5.0.
|
||||
|
||||
[6.5.0]: https://github.com/owncloud/ocis/compare/v6.4.0...v6.5.0
|
||||
[6.5.0]: https://github.com/owncloud/ocis/compare/v5.0.8...v6.5.0
|
||||
|
||||
## Summary
|
||||
|
||||
@@ -986,11 +1361,34 @@ The following sections list the changes for 6.5.0.
|
||||
https://github.com/owncloud/ocis/pull/10157
|
||||
https://github.com/owncloud/ocis/pull/9817
|
||||
|
||||
# Changelog for [5.0.8] (2024-09-30)
|
||||
|
||||
The following sections list the changes for 5.0.8.
|
||||
|
||||
[5.0.8]: https://github.com/owncloud/ocis/compare/v6.4.0...v5.0.8
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Update reva to v2.19.8: [#10138](https://github.com/owncloud/ocis/pull/10138)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Update reva to v2.19.8: [#10138](https://github.com/owncloud/ocis/pull/10138)
|
||||
|
||||
We updated reva to v2.19.8
|
||||
|
||||
* Fix [cs3org/reva#4761](https://github.com/cs3org/reva/pull/4761): Quotes in dav Content-Disposition header
|
||||
* Fix [cs3org/reva#4853](https://github.com/cs3org/reva/pull/4853): Write upload session info atomically
|
||||
* Enh [cs3org/reva#4701](https://github.com/cs3org/reva/pull/4701): Extend service account permissions
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10138
|
||||
https://github.com/owncloud/ocis/pull/10103
|
||||
|
||||
# Changelog for [6.4.0] (2024-09-12)
|
||||
|
||||
The following sections list the changes for 6.4.0.
|
||||
|
||||
[6.4.0]: https://github.com/owncloud/ocis/compare/v6.3.0...v6.4.0
|
||||
[6.4.0]: https://github.com/owncloud/ocis/compare/v5.0.7...v6.4.0
|
||||
|
||||
## Summary
|
||||
|
||||
@@ -1240,6 +1638,52 @@ The following sections list the changes for 6.4.0.
|
||||
https://github.com/owncloud/ocis/pull/9879
|
||||
https://github.com/owncloud/ocis/pull/9860
|
||||
|
||||
# Changelog for [5.0.7] (2024-09-04)
|
||||
|
||||
The following sections list the changes for 5.0.7.
|
||||
|
||||
[5.0.7]: https://github.com/owncloud/ocis/compare/v6.3.0...v5.0.7
|
||||
|
||||
## Summary
|
||||
|
||||
* Enhancement - Add virus filter to sessions command: [#9041](https://github.com/owncloud/ocis/pull/9041)
|
||||
* Enhancement - Assimilate `clean` into `sessions` command: [#9828](https://github.com/owncloud/ocis/pull/9828)
|
||||
* Enhancement - Update web to v8.0.5: [#9958](https://github.com/owncloud/ocis/pull/9958)
|
||||
|
||||
## Details
|
||||
|
||||
* Enhancement - Add virus filter to sessions command: [#9041](https://github.com/owncloud/ocis/pull/9041)
|
||||
|
||||
Allow filtering upload session by virus status (has-virus=true/false)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9041
|
||||
|
||||
* Enhancement - Assimilate `clean` into `sessions` command: [#9828](https://github.com/owncloud/ocis/pull/9828)
|
||||
|
||||
We deprecated `ocis storage-user uploads clean` and added the same logic to
|
||||
`ocis storage-users uploads session --clean`
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9828
|
||||
|
||||
* Enhancement - Update web to v8.0.5: [#9958](https://github.com/owncloud/ocis/pull/9958)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v8.0.5. Please refer to the changelog (linked) for
|
||||
details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11395](https://github.com/owncloud/web/pull/11395):
|
||||
Missing space members for group memberships - Bugfix
|
||||
[owncloud/web#11263](https://github.com/owncloud/web/pull/11263): Show more
|
||||
toggle in space members view not reactive - Bugfix
|
||||
[owncloud/web#11263](https://github.com/owncloud/web/pull/11263): Space show
|
||||
links from other spaces - Bugfix
|
||||
[owncloud/web#11303](https://github.com/owncloud/web/pull/11303): Uploading
|
||||
nested folders
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9958
|
||||
https://github.com/owncloud/web/releases/tag/v8.0.5
|
||||
|
||||
# Changelog for [6.3.0] (2024-08-20)
|
||||
|
||||
The following sections list the changes for 6.3.0.
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Add virus filter to sessions command
|
||||
|
||||
Allow filtering upload session by virus status (has-virus=true/false)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9041
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Assimilate `clean` into `sessions` command
|
||||
|
||||
We deprecated `ocis storage-user uploads clean` and added the same logic to `ocis storage-users uploads session --clean`
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9828
|
||||
@@ -0,0 +1,13 @@
|
||||
Enhancement: Update web to v8.0.5
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v8.0.5. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11395](https://github.com/owncloud/web/pull/11395): Missing space members for group memberships
|
||||
- Bugfix [owncloud/web#11263](https://github.com/owncloud/web/pull/11263): Show more toggle in space members view not reactive
|
||||
- Bugfix [owncloud/web#11263](https://github.com/owncloud/web/pull/11263): Space show links from other spaces
|
||||
- Bugfix [owncloud/web#11303](https://github.com/owncloud/web/pull/11303): Uploading nested folders
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9958
|
||||
https://github.com/owncloud/web/releases/tag/v8.0.5
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Update reva to v2.19.8
|
||||
|
||||
We updated reva to v2.19.8
|
||||
|
||||
* Fix [cs3org/reva#4761](https://github.com/cs3org/reva/pull/4761): Quotes in dav Content-Disposition header
|
||||
* Fix [cs3org/reva#4853](https://github.com/cs3org/reva/pull/4853): Write upload session info atomically
|
||||
* Enh [cs3org/reva#4701](https://github.com/cs3org/reva/pull/4701): Extend service account permissions
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10138
|
||||
https://github.com/owncloud/ocis/pull/10103
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Thumbnail request limit
|
||||
|
||||
The `THUMBNAILS_MAX_CONCURRENT_REQUESTS` setting was not working correctly.
|
||||
Previously it was just limiting the number of concurrent thumbnail downloads.
|
||||
Now the limit is applied to the number thumbnail generations requests.
|
||||
Additionally the webdav service is now returning a "Retry-After" header when
|
||||
it is hitting the ratelimit of the thumbnail service.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10280
|
||||
https://github.com/owncloud/ocis/pull/10270
|
||||
https://github.com/owncloud/ocis/pull/10225
|
||||
@@ -0,0 +1,8 @@
|
||||
Change: Define maximum input image dimensions and size when generating previews
|
||||
|
||||
This is a general hardening change to limit processing time and resources of the thumbnailer.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10270
|
||||
https://github.com/owncloud/ocis/pull/9360
|
||||
https://github.com/owncloud/ocis/pull/9035
|
||||
https://github.com/owncloud/ocis/pull/9069
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Restart Postprocessing properly
|
||||
|
||||
Properly differentiate between resume and restart postprocessing.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10439
|
||||
@@ -0,0 +1,18 @@
|
||||
Bugfix: Bump Reva to v2.26.7
|
||||
|
||||
* Fix [cs3org/reva#4964](https://github.com/cs3org/reva/issues/4964): Fix a wrong error code when approvider creates a new file
|
||||
|
||||
Bump Reva to v2.26.6
|
||||
|
||||
* Fix [cs3org/reva#4955](https://github.com/cs3org/reva/issues/4955): Allow small clock skew in reva token validation
|
||||
* Fix [cs3org/reva#4929](https://github.com/cs3org/reva/issues/4929): Fix flaky posixfs integration tests
|
||||
* Fix [cs3org/reva#4953](https://github.com/cs3org/reva/issues/4953): Avoid gateway panics
|
||||
* Fix [cs3org/reva#4959](https://github.com/cs3org/reva/issues/4959): Fix missing file touched event
|
||||
* Fix [cs3org/reva#4933](https://github.com/cs3org/reva/issues/4933): Fix federated sharing when using an external identity provider
|
||||
* Fix [cs3org/reva#4935](https://github.com/cs3org/reva/issues/4935): Enable datatx log
|
||||
* Fix [cs3org/reva#4936](https://github.com/cs3org/reva/issues/4936): Do not delete mlock files
|
||||
* Fix [cs3org/reva#4954](https://github.com/cs3org/reva/issues/4954): Prevent a panic when logging an error
|
||||
* Fix [cs3org/reva#4956](https://github.com/cs3org/reva/issues/4956): Improve posixfs error handling and logging
|
||||
* Fix [cs3org/reva#4951](https://github.com/cs3org/reva/issues/4951): Pass the initialized logger down the stack
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10612
|
||||
@@ -0,0 +1,3 @@
|
||||
Bugfix: Make collaboration service use a gateway selector
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10584
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Return an error if we can't get the keys and ensure they're cached
|
||||
|
||||
Previously, there was an issue where we could get an error while getting the
|
||||
public keys from the /hosting/discovery endpoint but we're returning a wrong
|
||||
success value instead. This is fixed now and we're returning the error.
|
||||
|
||||
In addition, the public keys weren't being cached, so we hit the
|
||||
/hosting/discovery endpoint every time we need to use the public keys. The keys
|
||||
are now cached so we don't need to hit the endpoint more than what we need.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10590
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix the activity field mapping
|
||||
|
||||
Fixed the activity field mapping
|
||||
https://github.com/owncloud/ocis/pull/10593
|
||||
https://github.com/owncloud/ocis/issues/10228
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Fix impersonated request user mismatch
|
||||
|
||||
We fixed a user id and name mismatch in the impersonated auth-app API request
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10548
|
||||
https://github.com/owncloud/ocis/issues/10292
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix node cache ttl updates
|
||||
|
||||
We now only udpate the TTL of the node that is created or updated.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10575
|
||||
@@ -0,0 +1,7 @@
|
||||
Bugfix: Fix federated sharing when using an external IDP
|
||||
|
||||
We fixed a bug that caused federated sharing to fail, when the
|
||||
federated oCIS instances where sharing the same external IDP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10567
|
||||
https://github.com/cs3org/reva/pull/4933
|
||||
@@ -0,0 +1,9 @@
|
||||
Bugfix: Fix status code for thumbnail requests
|
||||
|
||||
We fixed the status code returned by the thumbnails service when the image
|
||||
source for a thumbnail exceeds the configured maximum dimensions or file size.
|
||||
The service now returns a 403 Forbidden status code instead of a 500 Internal
|
||||
Server Error status code.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10592
|
||||
https://github.com/owncloud/ocis/issues/10589
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: We now limit the number of workers of the jsoncs3 share manager
|
||||
|
||||
We now restrict the number of workers that look up shares to 5. The number can be changed with `SHARING_USER_JSONCS3_MAX_CONCURRENCY` or `OCIS_MAX_CONCURRENCY`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10578
|
||||
https://github.com/owncloud/ocis/pull/10552
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Log GRPC requests in debug mode
|
||||
|
||||
When log level is set to debug we will now also log grpc requests.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10438
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Set MaxConcurrency to 1
|
||||
|
||||
Set MaxConcurrency for frontend and userlog and sharing services to 1. Too many workers will negatively impact performance on small machines.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10580
|
||||
https://github.com/owncloud/ocis/pull/10557
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Reuse go-micro service clients
|
||||
|
||||
go micro clients must not be reinitialized. The internal selector will spawn a new go routine to watch for registry changes.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10582
|
||||
@@ -0,0 +1,21 @@
|
||||
Enhancement: Update web to v11.0.4
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v11.0.4. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11870](https://github.com/owncloud/web/issues/11870): Preview image retries postprocessing
|
||||
- Bugfix [owncloud/web#11883](https://github.com/owncloud/web/issues/11883): Preview app Shared with me page
|
||||
- Bugfix [owncloud/web#11897](https://github.com/owncloud/web/issues/11897): "Save as" / "Open" when embed delegate authentication is enabled
|
||||
- Bugfix [owncloud/web#11900](https://github.com/owncloud/web/issues/11900): App top bar does not show location when shared file is opened
|
||||
- Bugfix [owncloud/web#11900](https://github.com/owncloud/web/issues/11900): Open from app and Save As feature broken when opened via shared file
|
||||
- Bugfix [owncloud/web#11904](https://github.com/owncloud/web/issues/11904): Public folder reload
|
||||
- Bugfix [owncloud/web#11916](https://github.com/owncloud/web/issues/11916): Fix order in roles drop down
|
||||
- Bugfix [owncloud/web#11923](https://github.com/owncloud/web/issues/11923): Allow create template with different editors
|
||||
- Bugfix [owncloud/web#11924](https://github.com/owncloud/web/issues/11924): Extension actions in right sidebar
|
||||
- Bugfix [owncloud/web#11929](https://github.com/owncloud/web/issues/11929): Unique request ids
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10569
|
||||
https://github.com/owncloud/ocis/pull/10604
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.3
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.4
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Bump Reva
|
||||
|
||||
Bumps reva version to 2.26.8
|
||||
|
||||
* Fix [cs3org/reva#4983](https://github.com/cs3org/reva/pull/4983): Delete stale shares in the jsoncs3 share manager
|
||||
* Fix [cs3org/reva#4963](https://github.com/cs3org/reva/pull/4963): Fix name and displayName in an ocm
|
||||
* Fix [cs3org/reva#4968](https://github.com/cs3org/reva/pull/4968): Jsoncs3 cache fixes
|
||||
* Fix [cs3org/reva#4928](https://github.com/cs3org/reva/pull/4928): Propagate lock in PROPPATCH
|
||||
* Fix [cs3org/reva#4971](https://github.com/cs3org/reva/pull/4971): Use manager to list shares
|
||||
* Fix [cs3org/reva#4978](https://github.com/cs3org/reva/pull/4978): We added more trace spans in decomposedfs
|
||||
* Fix [cs3org/reva#4921](https://github.com/cs3org/reva/pull/4921): Polish propagation related code
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10735
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix deny access for graph roles
|
||||
|
||||
We added a unified role "Cannot access" to prevent a regression when switching the share implementation to the graph API. This role is now used to deny access to a resource.The new role is not enabled by default. The whole deny feature is still experimental.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10627
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix FileInfo BreadcrumbFolderURL
|
||||
|
||||
We fixed the FileInfo.BreadcrumbFolderURL in a collaboration api"
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10718
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: fetch shared resource metadata concurrently in graph
|
||||
|
||||
We now concurrently stat shared resources when listing shares
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10683
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Skip fetching members
|
||||
|
||||
We now skip fetching group members when they are not needed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10701
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: Fix possible race condition when a thumbnails is stored in the FS
|
||||
|
||||
A race condition could cause the thumbnail service to return a thumbnail
|
||||
with 0 bytes or with partial content. In order to fix this, the service will
|
||||
create a temporary file with the contents and then rename that file to its
|
||||
final location.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10693
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Bump Reva
|
||||
|
||||
Bumps reva version to 2.27.0
|
||||
|
||||
* Bugfix [cs3org/reva#4985](https://github.com/cs3org/reva/pull/4985): Drop unneeded session locks
|
||||
* Bugfix [cs3org/reva#5000](https://github.com/cs3org/reva/pull/5000): Fix ceph build
|
||||
* Bugfix [cs3org/reva#4989](https://github.com/cs3org/reva/pull/4989): Deleting OCM share also updates storageprovider
|
||||
* Enhancement [cs3org/reva#4998](https://github.com/cs3org/reva/pull/4998): Emit event when an ocm share is received
|
||||
* Enhancement [cs3org/reva#4996](https://github.com/cs3org/reva/pull/4996): Get rid of some cases of unstructured logging
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10766
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Fix link activity message
|
||||
|
||||
We changed the link token to display name in the activity message.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10663
|
||||
https://github.com/owncloud/ocis/issues/10295
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix FileInfo BreadcrumbFolderURL upd
|
||||
|
||||
Made GetScopeByKeyPrefix function as a private method of the FileConnector
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10757
|
||||
@@ -0,0 +1,7 @@
|
||||
Bugfix: Fix graph drives response for federated shares
|
||||
|
||||
Federated shares where erroneously showing up in the /me/drives response
|
||||
on the graph API.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10730
|
||||
https://github.com/owncloud/ocis/issues/10689
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Unifi logging
|
||||
|
||||
We fixed some cases where we did not use the correct logger.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10743/
|
||||
@@ -0,0 +1,20 @@
|
||||
Enhancement: Update web to v11.0.6
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v11.0.6. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11992](https://github.com/owncloud/web/pull/11992): OCM invite flow
|
||||
- Bugfix [owncloud/web#11997](https://github.com/owncloud/web/pull/11997): Change search scope without search term
|
||||
- Bugfix [owncloud/web#11998](https://github.com/owncloud/web/pull/11998): Do not load version when sidebar is closed
|
||||
- Bugfix [owncloud/web#12000](https://github.com/owncloud/web/pull/12000): Use only space resource with driveType "project" as space in sidebar
|
||||
- Bugfix [owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share editing
|
||||
- Bugfix [owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share recipient issuer
|
||||
- Bugfix [owncloud/web#12008](https://github.com/owncloud/web/pull/12008): Missing activities on Shared with me page
|
||||
- Bugfix [owncloud/web#12010](https://github.com/owncloud/web/pull/12010): Sidebar file info for shares
|
||||
- Bugfix [owncloud/web#12012](https://github.com/owncloud/web/pull/12012): Show missing role name in link share panel
|
||||
- Bugfix [owncloud/web#12013](https://github.com/owncloud/web/pull/12013): Missing translations for share type filters
|
||||
- Bugfix [owncloud/web#12022](https://github.com/owncloud/web/pull/12022): Permanent link for shares
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10755
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.6
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: GetLastModified property in the REPORT response will use RFC1123 format
|
||||
|
||||
This will follow the standard and will also match the format of the same property in the PROPFIND response
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10738
|
||||
@@ -22,7 +22,6 @@
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/rhafer.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/rhafer.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/rhafer.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/rhafer.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
@@ -32,7 +31,7 @@
|
||||
env:
|
||||
INSECURE: "false"
|
||||
TRAEFIK_ACME_MAIL: mbarz@owncloud.com
|
||||
OCIS_DOCKER_TAG: 5.0.6
|
||||
OCIS_DOCKER_TAG: 5.0.9
|
||||
OCIS_DOMAIN: ocis.ocis.production.owncloud.works
|
||||
COMPANION_DOMAIN: companion.ocis.production.owncloud.works
|
||||
COMPANION_IMAGE: owncloud/uppy-companion:3.12.13-owncloud
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/rhafer.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/rhafer.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/rhafer.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
- https://github.com/fschade.keys
|
||||
- https://github.com/kulmann.keys
|
||||
- https://github.com/micbar.keys
|
||||
- https://github.com/rhafer.keys
|
||||
- https://github.com/wkloucek.keys
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
|
||||
@@ -114,9 +114,18 @@ SMTP_AUTHENTICATION=
|
||||
# Allow insecure connections to the SMTP server. Defaults to false.
|
||||
SMTP_INSECURE=
|
||||
|
||||
# Addititional services to be started on ocis startup
|
||||
# The following list of services is not startet automatically and must be
|
||||
# manually defined for startup:
|
||||
# IMPORTANT: The notification service is MANDATORY, do not delete!
|
||||
# IMPORTANT: Add any services to the startup list comma separated like "notifications,antivirus" etc.
|
||||
START_ADDITIONAL_SERVICES="notifications"
|
||||
|
||||
|
||||
## oCIS Web Extensions ##
|
||||
# It is possible to use the oCIS Web Extensions to add custom functionality to the oCIS frontend.
|
||||
# For more details see https://github.com/owncloud/web-extensions/blob/main/README.md
|
||||
# Note: the leading colon is required to enable the service.
|
||||
# Enable this to create a new named volume
|
||||
#EXTENSIONS=:web_extensions/extensions.yml
|
||||
# Enable the desired extensions by uncommenting the following lines.
|
||||
@@ -196,6 +205,8 @@ COLLABORA_SSL_VERIFICATION=false
|
||||
|
||||
|
||||
### Virusscanner Settings ###
|
||||
# IMPORTANT: If you enable antivirus, you also MUST configure the START_ADDITIONAL_SERVICES
|
||||
# envvar in the Infinite Scale Settings above by adding 'antivirus' to the list.
|
||||
# Note: the leading colon is required to enable the service.
|
||||
#CLAMAV=:clamav.yml
|
||||
# Image version of the ClamAV container.
|
||||
|
||||
@@ -4,8 +4,7 @@ services:
|
||||
environment:
|
||||
ANTIVIRUS_SCANNER_TYPE: "clamav"
|
||||
ANTIVIRUS_CLAMAV_SOCKET: "/var/run/clamav/clamd.sock"
|
||||
# enable the antivirus service
|
||||
OCIS_ADD_RUN_SERVICES: "antivirus"
|
||||
# the antivirus service needs manual startup, see .env and ocis.yaml for START_ADDITIONAL_SERVICES
|
||||
# configure the antivirus service
|
||||
POSTPROCESSING_STEPS: "virusscan"
|
||||
# PROXY_TLS is set to "false", the download url has no https
|
||||
@@ -15,6 +14,7 @@ services:
|
||||
|
||||
clamav:
|
||||
image: clamav/clamav:${CLAMAV_DOCKER_TAG:-latest}
|
||||
# release notes: https://blog.clamav.net
|
||||
networks:
|
||||
ocis-net:
|
||||
volumes:
|
||||
|
||||
@@ -53,7 +53,8 @@ services:
|
||||
restart: always
|
||||
|
||||
collabora:
|
||||
image: collabora/code:24.04.5.1.1
|
||||
image: collabora/code:24.04.10.2.1
|
||||
# release notes: https://www.collaboraonline.com/release-notes/
|
||||
networks:
|
||||
ocis-net:
|
||||
environment:
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v3.1.6
|
||||
image: traefik:v3.2.2
|
||||
# release notes: https://github.com/traefik/traefik/releases
|
||||
networks:
|
||||
ocis-net:
|
||||
command:
|
||||
|
||||
@@ -11,6 +11,7 @@ services:
|
||||
|
||||
inbucket:
|
||||
image: inbucket/inbucket
|
||||
# changelog: https://github.com/inbucket/inbucket/blob/main/CHANGELOG.md
|
||||
networks:
|
||||
- ocis-net
|
||||
entrypoint:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
services:
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
# release notes: https://github.com/minio/minio/releases
|
||||
networks:
|
||||
ocis-net:
|
||||
entrypoint:
|
||||
|
||||
@@ -7,6 +7,8 @@ services:
|
||||
- ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
ocis:
|
||||
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG:-latest}
|
||||
# changelog: https://github.com/owncloud/ocis/tree/master/changelog
|
||||
# release notes: https://doc.owncloud.com/ocis_release_notes.html
|
||||
networks:
|
||||
ocis-net:
|
||||
entrypoint:
|
||||
@@ -16,8 +18,8 @@ services:
|
||||
# therefore we ignore the error and then start the ocis server
|
||||
command: ["-c", "ocis init || true; ocis server"]
|
||||
environment:
|
||||
# enable the notifications service as it is not started automatically
|
||||
OCIS_ADD_RUN_SERVICES: "notifications"
|
||||
# enable services that are not started automatically
|
||||
OCIS_ADD_RUN_SERVICES: ${START_ADDITIONAL_SERVICES}
|
||||
OCIS_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
OCIS_LOG_LEVEL: ${LOG_LEVEL:-info}
|
||||
OCIS_LOG_COLOR: "${LOG_PRETTY:-false}"
|
||||
|
||||
@@ -51,7 +51,8 @@ services:
|
||||
onlyoffice:
|
||||
# if you want to use oo enterprise edition, use: onlyoffice/documentserver-ee:<version>
|
||||
# note, you also need to add a volume, see below
|
||||
image: onlyoffice/documentserver:8.2.0
|
||||
image: onlyoffice/documentserver:8.2.2
|
||||
# changelog https://github.com/ONLYOFFICE/DocumentServer/releases
|
||||
networks:
|
||||
ocis-net:
|
||||
entrypoint:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
services:
|
||||
tika:
|
||||
image: ${TIKA_IMAGE:-apache/tika:latest-full}
|
||||
# release notes: https://tika.apache.org
|
||||
networks:
|
||||
ocis-net:
|
||||
restart: always
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
---
|
||||
title: "Collaborative Storage"
|
||||
date: 2023-11-09T12:35:00+01:00
|
||||
weight: 30
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/ocis/storage-backends/
|
||||
geekdocFilePath: collaborative-storage.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
One of the envisioned design goals of Infinite Scale is to work with so called _collaborative storage_, which means that the file system it is running on is not exclusive for Infinite Scale, but can be manipulated in parallel through third party tools. Infinite Scale is expected to monitor the changes that happen independently and react in a consistent and user friendly way.
|
||||
|
||||
A real world example of that would be a third party "data producer" that submits data directly into a file system path, not going through Infinite Scale APIs.
|
||||
|
||||
This document outlines a few challenges and design concepts for collaborative storage. It is also the base "checklist" for custom storage provider implementations for certain storages, ie. for Ceph- or IBM Storage Scale which provide features that allow more sophisticated and efficient implementations of this goal.
|
||||
|
||||
|
||||
# Storage Driver Components
|
||||
|
||||
This discusses a few components and sub functions of the storage driver that have relevance for the collaborative storage.
|
||||
|
||||
## Path Locations
|
||||
|
||||
What is called "the oCIS file system" is defined as the entire filetree underneath a special path in the local POSIX file system, which might either be a real local file system or a mounted net filesystem. It is expected that oCIS is the only consumer of that file tree, except what is expected behaviour with a collaborative file system, that adds and edits files in that tree.
|
||||
|
||||
Underneath the oCIS file system root, there is an collection of different folders containing oCIS specific data. Specific storage driver data is in the directory `storage/users`, organized by spaces.
|
||||
(TODO: Check again how different storage drivers work together without overwriting data of each other)
|
||||
|
||||
## Spaces
|
||||
|
||||
Infinite Scale provides spaces as an additional organization organizational unit for data. Each space is a separate entity with its own attributes such as access patterns and quota.
|
||||
|
||||
A storage driver has to model the separation of spaces and provide a list of spaces in general and also a list of spaces a user can access. Furthermore, it needs to be able to create different types of spaces (Home- or Project space).
|
||||
|
||||
On POSIX, each space could for example be mapped to it's own directory in a special spaces folder under the oCIS root folder.
|
||||
|
||||
## ID to Path Lookup
|
||||
|
||||
Infinite Scale uses file IDs to efficiently identify files within a file tree. The lookup from a given ID to a path within the oCIS file tree is a very basic function that more or less defines the Infinite Scale performance. The functionality to for example query the file path for a given Inode number (which is the nearest equivalent for the Infinite Scale file ID) can not be done with standard POSIX system calls.
|
||||
|
||||
The interface defining the collaborative storage needs an abstraction for this particular function, returning the file id for a given path, and returning the path for given id.
|
||||
|
||||
## Change Notification
|
||||
|
||||
When a file is changed by a process outside of oCIS, this needs to be monitored by oCIS to quickly maintain internal caches and data structures as required.
|
||||
|
||||
The collaborative storage driver needs a way to achieve that. The easiest way for an POSIX based collaborative storage is inotify, that needs to be set up recursively on a file tree to record changes. Additional it is a challenge to destinguish between changes that were done from external activity and the ones that oCIS creates by its own file operations.
|
||||
|
||||
For GPFS, there is a subsystem called delivering that:
|
||||
|
||||
https://www.ibm.com/docs/en/storage-scale/5.1.9?topic=reference-clustered-watch-folder]
|
||||
|
||||
## ETag Propagation
|
||||
|
||||
ownCloud requires that changes which happen "down" in a tree, can be detected in the root element of the tree. That happens through the change of the ETag metadata of each file and/or directory. An ETag is a random, text based tag, that only has one requirement: It has to change its content if a resource further down in the file tree has changed either its content or its metadata. (See [this issue](https://github.com/owncloud/ocis/issues/3782) for further discussion about the ETag/CTag).
|
||||
|
||||
POSIX file systems do not maintain a change flag like the ETag by default. The file time stamps (atime, ctime, mtime) in general are not fine granular enough (only seconds for some file systems) and depend on the server time, which renders them useless in a distributed environment.
|
||||
|
||||
Infinite Scale needs to implement ETag propagation "up". For the collaborative storage, that needs to be combined with the change notification described above.
|
||||
|
||||
Certain file systems implement this functionality either independently from Infinite Scale (EOS) or at least support proper change notifications (Ceph, GPFS?).
|
||||
|
||||
## Metadata Management
|
||||
|
||||
Metadata are data "snippets" that are as tightly attached to files as ever possible. In best case, a rename of a file silently keeps the metadata as well. In POSIX, this can be achieved by extended file attributes with certain limitations.
|
||||
|
||||
## Quota
|
||||
|
||||
Each space has it's own quota, thus a storage driver implementation needs to consider that.
|
||||
|
||||
For GPFS for example, there is support for quota handling in the file system.
|
||||
|
||||
https://www.ibm.com/docs/en/gpfs/4.1.0.4?topic=interfaces-gpfs-quotactl-subroutine
|
||||
|
||||
Other systems store quota data in the metadata storage and implement propagation of used quota similar to the ETag propagation.
|
||||
|
||||
## User Management
|
||||
|
||||
With user management it is meant how to handle the users and groups within oCIS and how that reflects to the file system where data is stored.
|
||||
|
||||
### Exclusive Environment
|
||||
|
||||
In exclusive environments (aka. decomposedFS) all files of oCIS (ie. the entire oCIS filetree) belongs to a system user with the name `ocis` typically.
|
||||
|
||||
### Collaborative Storage
|
||||
|
||||
For collaborative storages, the approach described above does not longer work because users are supposed to be able to manipulate data in "their" file tree parts, and that is identified by ACLs and the owner of the files.
|
||||
|
||||
That requires a few prerequisites that have to be fulfilled:
|
||||
|
||||
1. oCIS as one "client" changing data and the system that allows to access the file tree directly have to use the same user provider, to ensure that each user that is available on a shell is also available in oCIS. That ensures that changes are authenticated through system ACLs and users. LDAP based authentication on the system via PAM and the same LDAP as source for the oCIS IDP should be a sufficient setup.
|
||||
2. oCIS must be able to write as a "different" user than the ocis system user. That means that we somehow have to impersonate file changing ooperations and run these as the user that is authenticated in oCIS.
|
||||
|
||||
Example: There is a user ben. It has to have an entry in the LDAP that is used by IDP which oCIS is running "behind". With that, ben is able to authenticate through the IDP and work in the oCIS web app. The oCIS linux process will do writes and other changes impersonated as user ben.
|
||||
|
||||
For the access of data on the commandline, the logins to the linux system must be authenticated against the same LDAP - so that ben can authenticate on a terminal using username and password. With that, the user can interactively change data that belongs to user ben (simplified said).
|
||||
|
||||
To give permissions to groups, the linux group management must work accordingly. The same is true for file permissions.
|
||||
|
||||
## Trashbin
|
||||
|
||||
When a user deletes a file in oCIS it is moved to a so called trashbin that allows to restore the file if the deletion was accidentailly.
|
||||
|
||||
## Versions
|
||||
|
||||
When an existing file is changed, the former file state is to be preserved with data and metadata by oCIS. Some file system types provide this functionality via snapshots on partition or even file level. Other do not and have to implement that via a hidden directory keeping old file versions.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -129,8 +129,6 @@ If the underlying file system handles deleted files in a trash bin that allows r
|
||||
|
||||
If not available it will follow the [the Free Desktop Trash specificaton](https://specifications.freedesktop.org/trash-spec/trashspec-latest.html).
|
||||
|
||||
In the current state of the Posix FS Storage Driver, trash bin is not supported.
|
||||
|
||||
## Limitations
|
||||
|
||||
As of Q2/2024 the Posix FS Storage Driver is not officially supported and in technical preview state.
|
||||
@@ -138,7 +136,7 @@ As of Q2/2024 the Posix FS Storage Driver is not officially supported and in tec
|
||||
The tech preview comes with the following limitations:
|
||||
|
||||
1. Only inotify and GPFS file system change notification methods are supported
|
||||
1. Advanced features versioning and trashbin are not supported yet
|
||||
1. Versioning is not supported yet
|
||||
1. The space/project folders in the filesystem are named after the UUID, not the real space name
|
||||
1. No CephFS support yet
|
||||
1. Postprocessing (ie. anti virus check) does not happen for file actions outside of Infinite Scale
|
||||
|
||||
@@ -94,19 +94,20 @@ def get_deprecated(fileNew):
|
||||
deprecatedWith[key] = value
|
||||
return deprecatedWith
|
||||
|
||||
def create_adoc_start(type_text, from_version, to_version, creation_date, default):
|
||||
def create_adoc_start(type_text, from_version, to_version, creation_date, columns, closing):
|
||||
# create the page/table header
|
||||
# 'closing' contains variable column names dependen if added/removed ir deprecated
|
||||
a = '''// # {ftype} Variables between oCIS {ffrom} and oCIS {fto}
|
||||
// commenting the headline to make it better includable
|
||||
|
||||
// table created per {fdate}
|
||||
// the table should be recreated/updated on source () changes
|
||||
|
||||
[width="100%",cols="~,~,~,~",options="header"]
|
||||
[width="100%",cols="{fcolumns}",options="header"]
|
||||
|===
|
||||
| Service| Variable| Description| {fdefault}
|
||||
| Service | Variable | Description | {fclosing}
|
||||
|
||||
'''.format(ftype = type_text, ffrom = from_version, fto = to_version, fdate = creation_date, fdefault = default)
|
||||
'''.format(ftype = type_text, ffrom = from_version, fto = to_version, fdate = creation_date, fcolumns = columns, fclosing = closing)
|
||||
return a
|
||||
|
||||
def create_adoc_end():
|
||||
@@ -116,38 +117,77 @@ def create_adoc_end():
|
||||
'''
|
||||
return a
|
||||
|
||||
def add_adoc_line(service, variable, description, default):
|
||||
# add a table line
|
||||
def add_adoc_line_1(service, variable, description, value):
|
||||
# add a table line for added/removed
|
||||
# the dummy values are only here to have the same number of parameters as add_adoc_line_2
|
||||
a = '''| {fservice}
|
||||
| {fvariable}
|
||||
| {fdescription}
|
||||
| {fdefault}
|
||||
| {fvalue}
|
||||
|
||||
'''.format(fservice = service, fvariable = variable, fdescription = description, fdefault = default)
|
||||
'''.format(fservice = service, fvariable = variable, fdescription = description, fvalue = value)
|
||||
return a
|
||||
|
||||
def create_table(type_text, source_dict, from_version, to_version, date_today, default = 'Default'):
|
||||
def add_adoc_line_2(service, variable, description, removalVersion, deprecationInfo):
|
||||
# add a table line for deprecated, this has different columns
|
||||
a = '''| {fservice}
|
||||
| {fvariable}
|
||||
| {fdescription}
|
||||
| {fremovalVersion}
|
||||
| {fdeprecationInfo}
|
||||
|
||||
'''.format(fservice = service, fvariable = variable, fdescription = description, fremovalVersion = removalVersion, fdeprecationInfo = deprecationInfo)
|
||||
return a
|
||||
|
||||
def create_table(type_text, source_dict, from_version, to_version, date_today, type = False):
|
||||
# get the table header
|
||||
a = create_adoc_start(type_text, from_version, to_version, date_today, default)
|
||||
cond_value = 'defaultValue' if default == 'Default' else 'removalVersion'
|
||||
# first add all ocis_
|
||||
for key, value in source_dict.items():
|
||||
if key.startswith('OCIS_'):
|
||||
a += add_adoc_line(
|
||||
'xref:deployment/services/env-vars-special-scope.adoc[Special Scope Envvars]',
|
||||
key,
|
||||
value['description'],
|
||||
value[cond_value]
|
||||
)
|
||||
# then add all others
|
||||
for key, value in source_dict.items():
|
||||
if not key.startswith('OCIS_'):
|
||||
a += add_adoc_line(
|
||||
'xref:{s-path}/xxx.adoc[xxx]',
|
||||
key,
|
||||
value['description'],
|
||||
value[cond_value]
|
||||
)
|
||||
columns = '~,~,~,~' if type == False else '~,~,~,~,~'
|
||||
closing = 'Default' if type == False else 'Removal Version | Deprecation Info'
|
||||
a = create_adoc_start(type_text, from_version, to_version, date_today, columns, closing)
|
||||
|
||||
if not type:
|
||||
# added and removed envvars
|
||||
# first add all ocis_
|
||||
for key, value in source_dict.items():
|
||||
if key.startswith('OCIS_'):
|
||||
a += add_adoc_line_1(
|
||||
'xref:deployment/services/env-vars-special-scope.adoc[Special Scope Envvars]',
|
||||
key,
|
||||
value['description'],
|
||||
value['defaultValue']
|
||||
)
|
||||
# then add all others
|
||||
for key, value in source_dict.items():
|
||||
if not key.startswith('OCIS_'):
|
||||
a += add_adoc_line_1(
|
||||
'xref:{s-path}/xxx.adoc[xxx]',
|
||||
key,
|
||||
value['description'],
|
||||
value['defaultValue']
|
||||
)
|
||||
else:
|
||||
# deprecated envvars
|
||||
# first add all ocis_
|
||||
for key, value in source_dict.items():
|
||||
if key.startswith('OCIS_'):
|
||||
a += add_adoc_line_2(
|
||||
'xref:deployment/services/env-vars-special-scope.adoc[Special Scope Envvars]',
|
||||
key,
|
||||
value['description'],
|
||||
value['removalVersion'],
|
||||
value['deprecationInfo']
|
||||
)
|
||||
# then add all others
|
||||
for key, value in source_dict.items():
|
||||
if not key.startswith('OCIS_'):
|
||||
a += add_adoc_line_2(
|
||||
'xref:{s-path}/xxx.adoc[xxx]',
|
||||
key,
|
||||
value['description'],
|
||||
value['removalVersion'],
|
||||
value['deprecationInfo']
|
||||
)
|
||||
|
||||
# finally close the table
|
||||
a += create_adoc_end()
|
||||
return a
|
||||
@@ -172,7 +212,7 @@ deprecatedWith = get_deprecated(fileNew)
|
||||
|
||||
a = create_table('Added', addedWith, from_version, to_version, date.today().strftime('%Y.%m.%d'))
|
||||
r = create_table('Removed', removedWith, from_version, to_version, date.today().strftime('%Y.%m.%d'))
|
||||
d = create_table('Deprecated', deprecatedWith, from_version, to_version, date.today().strftime('%Y.%m.%d'), 'Removalversion')
|
||||
d = create_table('Deprecated', deprecatedWith, from_version, to_version, date.today().strftime('%Y.%m.%d'), True)
|
||||
|
||||
write_output(a, 'added')
|
||||
write_output(r, 'removed')
|
||||
|
||||
+178
-491
File diff suppressed because it is too large.
Load diff
@@ -30,10 +30,11 @@ This page is designed to provide clarity and transparency regarding the scheduli
|
||||
| 13.01.2025 | Rolling | - | - | - |
|
||||
| 02.12.2024 | Rolling | - | - | - |
|
||||
| 11.11.2024 | Production | - | - | - |
|
||||
| **14.11.2024** | **Production** | **[Infinite Scale 5 (5.0.9)](https://download.owncloud.com/ocis/ocis/stable/5.0.9/)** | **[Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-9-production)** | **Active Support** |
|
||||
| 24.10.2024 | Rolling | [Infinite Scale 6 (6.6.1)](https://download.owncloud.com/ocis/ocis/rolling/6.6.1/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-6-6-1-rolling) | - |
|
||||
| 22.10.2024 | Rolling | [Infinite Scale 6 (6.6.0)](https://download.owncloud.com/ocis/ocis/rolling/6.6.0/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-6-6-0-rolling) | - |
|
||||
| 01.10.2024 | Rolling | [Infinite Scale 6 (6.5.0)](https://download.owncloud.com/ocis/ocis/rolling/6.5.0/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-6-5-0-rolling) | - |
|
||||
| **30.09.2024** | **Production** | **[Infinite Scale 5 (5.0.8)](https://download.owncloud.com/ocis/ocis/stable/5.0.8/)** | **[Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-8-production)** | **Active Support** |
|
||||
| 30.09.2024 | Production | [Infinite Scale 5 (5.0.8)](https://download.owncloud.com/ocis/ocis/stable/5.0.8/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-8-production) | Active Support |
|
||||
| 12.09.2024 | Rolling | [Infinite Scale 6 (6.4.0)](https://download.owncloud.com/ocis/ocis/rolling/6.4.0/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-6-4-0-rolling) | - |
|
||||
| 04.09.2024 | Production | [Infinite Scale 5 (5.0.7)](https://download.owncloud.com/ocis/ocis/stable/5.0.7/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-5-0-7-production) | Active Support |
|
||||
| 19.08.2024 | Rolling | [Infinite Scale 6 (6.3.0)](https://download.owncloud.com/ocis/ocis/rolling/6.3.0/) | [Release Notes](https://doc.owncloud.com/ocis_release_notes.html#infinite-scale-6-3-0-rolling) | - |
|
||||
|
||||
@@ -1,39 +1,24 @@
|
||||
// # Added Variables between oCIS 5.0.0 and oCIS 7.0.0
|
||||
// commenting the headline to make it better includable
|
||||
|
||||
// table created per 2024.11.07
|
||||
// table created per 2024.12.02
|
||||
// the table should be recreated/updated on source () changes
|
||||
|
||||
[width="100%",cols="~,~,~,~",options="header"]
|
||||
|===
|
||||
| Service| Variable| Description| Default
|
||||
| Service | Variable | Description | Default
|
||||
|
||||
| xref:deployment/services/env-vars-special-scope.adoc[Special Scope Envvars]
|
||||
| OCIS_ASSET_THEMES_PATH
|
||||
| Serve ownCloud themes from a path on the filesystem instead of the builtin assets. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH/web/assets/themes
|
||||
| /var/lib/ocis/web/assets/themes
|
||||
|
||||
|
|
||||
| OCIS_DEFAULT_LANGUAGE
|
||||
| The default language used by services and the WebUI. If not defined, English will be used as default. See the documentation for more details.
|
||||
|
|
||||
|
||||
|
|
||||
| OCIS_DISABLE_VERSIONING
|
||||
| Disables versioning of files. When set to true, new uploads with the same filename will overwrite existing files instead of creating a new version.
|
||||
| false
|
||||
|
||||
|
|
||||
| OCIS_MACHINE_AUTH_API_KEY
|
||||
| The machine auth API key used to validate internal requests necessary to access resources from other services.
|
||||
|
|
||||
|
||||
|
|
||||
| OCIS_MAX_CONCURRENCY
|
||||
| Maximum number of concurrent go-routines. Higher values can potentially get work done faster but will also cause more load on the system. Values of 0 or below will be ignored and the default value will be used.
|
||||
| 5
|
||||
|
||||
|
|
||||
| xref:deployment/services/env-vars-special-scope.adoc[Special Scope Envvars]
|
||||
| OCIS_SHOW_USER_EMAIL_IN_RESULTS
|
||||
| Include user email addresses in responses. If absent or set to false emails will be omitted from results. Please note that admin users can always see all email addresses.
|
||||
| false
|
||||
@@ -44,6 +29,11 @@
|
||||
|
|
||||
|
||||
|
|
||||
| OCIS_WOPI_DISABLE_CHAT
|
||||
| Disable chat in the office web frontend. This feature applies to OnlyOffice and Microsoft.
|
||||
| false
|
||||
|
||||
| xref:{s-path}/activitylog.adoc[Activitylog]
|
||||
| ACTIVITYLOG_TRANSLATION_PATH
|
||||
| (optional) Set this to a path with custom translations to overwrite the builtin translations. Note that file and folder naming rules apply, see the documentation for more details.
|
||||
|
|
||||
@@ -168,11 +158,6 @@
|
||||
| Enable license checking to edit files. Needs to be enabled when using Microsoft365 with the business flow.
|
||||
| false
|
||||
|
||||
|
|
||||
| COLLABORATION_APP_LOCKNAME
|
||||
| Name for the app lock
|
||||
| com.github.owncloud.collaboration
|
||||
|
||||
|
|
||||
| COLLABORATION_APP_NAME
|
||||
| The name of the app which is shown to the user. You can chose freely but you are limited to a single word without special characters or whitespaces. We recommend to use pascalCase like 'CollaboraOnline'.
|
||||
@@ -198,11 +183,6 @@
|
||||
| Connect to the CS3API data gateway insecurely.
|
||||
| false
|
||||
|
||||
|
|
||||
| COLLABORATION_CS3API_GATEWAY_NAME
|
||||
| CS3 gateway used to look up user metadata.
|
||||
| com.owncloud.api.gateway
|
||||
|
||||
|
|
||||
| COLLABORATION_DEBUG_ADDR
|
||||
| Bind address of the debug server, where metrics, health, config and debug endpoints will be exposed.
|
||||
@@ -351,7 +331,7 @@
|
||||
|
|
||||
| FRONTEND_MAX_CONCURRENCY
|
||||
| Maximum number of concurrent go-routines. Higher values can potentially get work done faster but will also cause more load on the system. Values of 0 or below will be ignored and the default value will be used.
|
||||
| 25
|
||||
| 1
|
||||
|
||||
| xref:{s-path}/gateway.adoc[Gateway]
|
||||
| GATEWAY_APP_REGISTRY_ENDPOINT
|
||||
@@ -428,6 +408,11 @@
|
||||
| A comma separated list of roles that are available for assignment.
|
||||
| [b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5 a8d5fe5e-96e3-418d-825b-534dbdf22b99 fb6c3e19-e378-47e5-b277-9732f9de6e21 58c63c02-1d89-4572-916a-870abc5a1b7d 2d00ce52-1fc2-4dbc-8b95-a73b73395f5a 1c996275-f1c9-4e71-abdf-a42f6495e960 312c0871-5ef7-4b3a-85b6-0e4074c64049]
|
||||
|
||||
|
|
||||
| GRAPH_MAX_CONCURRENCY
|
||||
| The maximum number of concurrent requests the service will handle.
|
||||
| 20
|
||||
|
||||
|
|
||||
| GRAPH_TRANSLATION_PATH
|
||||
| (optional) Set this to a path with custom translations to overwrite the builtin translations. Note that file and folder naming rules apply, see the documentation for more details.
|
||||
@@ -518,6 +503,11 @@
|
||||
| The root CA certificate used to validate the server's TLS certificate. If provided PROXY_EVENTS_TLS_INSECURE will be seen as false.
|
||||
|
|
||||
|
||||
| xref:{s-path}/sharing.adoc[Sharing]
|
||||
| SHARING_USER_JSONCS3_MAX_CONCURRENCY
|
||||
| Maximum number of concurrent go-routines. Higher values can potentially get work done faster but will also cause more load on the system. Values of 0 or below will be ignored and the default value will be used.
|
||||
| 1
|
||||
|
||||
| xref:{s-path}/sse.adoc[SSE]
|
||||
| SSE_KEEPALIVE_INTERVAL
|
||||
| To prevent intermediate proxies from closing the SSE connection, send periodic SSE comments to keep it open.
|
||||
@@ -528,6 +518,11 @@
|
||||
| Template string to construct the paths of the projects space roots.
|
||||
|
|
||||
|
||||
|
|
||||
| STORAGE_USERS_OCIS_MAX_CONCURRENCY
|
||||
| Maximum number of concurrent go-routines. Higher values can potentially get work done faster but will also cause more load on the system. Values of 0 or below will be ignored and the default value will be used.
|
||||
| 1
|
||||
|
||||
|
|
||||
| STORAGE_USERS_OCIS_PERSONAL_SPACE_PATH_TEMPLATE
|
||||
| Template string to construct the paths of the personal space roots.
|
||||
@@ -556,7 +551,7 @@
|
||||
|
|
||||
| STORAGE_USERS_POSIX_ROOT
|
||||
| The directory where the filesystem storage will store its data. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH/storage/users.
|
||||
|
|
||||
| /var/lib/ocis/storage/users
|
||||
|
||||
|
|
||||
| STORAGE_USERS_POSIX_SCAN_DEBOUNCE_DELAY
|
||||
@@ -621,7 +616,7 @@
|
||||
| xref:{s-path}/userlog.adoc[Userlog]
|
||||
| USERLOG_MAX_CONCURRENCY
|
||||
| Maximum number of concurrent go-routines. Higher values can potentially get work done faster but will also cause more load on the system. Values of 0 or below will be ignored and the default value will be used.
|
||||
| 5
|
||||
| 1
|
||||
|
||||
| xref:{s-path}/web.adoc[Web]
|
||||
| WEB_ASSET_APPS_PATH
|
||||
|
||||
@@ -1,17 +1,102 @@
|
||||
// # Deprecated Variables between oCIS 5.0.0 and oCIS 7.0.0
|
||||
// commenting the headline to make it better includable
|
||||
|
||||
// table created per 2024.11.07
|
||||
// table created per 2024.12.02
|
||||
// the table should be recreated/updated on source () changes
|
||||
|
||||
[width="100%",cols="~,~,~,~",options="header"]
|
||||
[width="100%",cols="~,~,~,~,~",options="header"]
|
||||
|===
|
||||
| Service| Variable| Description| Removalversion
|
||||
| Service | Variable | Description | Removal Version | Deprecation Info
|
||||
|
||||
| xref:{s-path}/antivirus.adoc[Antivirus]
|
||||
| ANTIVIRUS_ICAP_TIMEOUT
|
||||
| Timeout for the ICAP client.
|
||||
| xref:{s-path}/clientlog.adoc[Clientlog]
|
||||
| CLIENTLOG_REVA_GATEWAY
|
||||
| CS3 gateway used to look up user metadata
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| CLIENTLOG_REVA_GATEWAY removed for simplicity.
|
||||
|
||||
| xref:{s-path}/frontend.adoc[Frontend]
|
||||
| FRONTEND_OCS_ADDITIONAL_INFO_ATTRIBUTE
|
||||
| Additional information attribute for the user like {{.Mail}}.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| The OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_ENABLE_DENIALS
|
||||
| EXPERIMENTAL: enable the feature to deny access on folders.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| The OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_INCLUDE_OCM_SHAREES
|
||||
| Include OCM sharees when listing sharees.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| FRONTEND_OCS_INCLUDE_OCM_SHAREES, the OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_LIST_OCM_SHARES
|
||||
| Include OCM shares when listing shares. See the OCM service documentation for more details.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| FRONTEND_OCS_LIST_OCM_SHARES, the OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_PERSONAL_NAMESPACE
|
||||
| Home namespace identifier.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| The OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_PREFIX
|
||||
| URL path prefix for the OCS service. Note that the string must not start with '/'.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| The OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_SHARE_PREFIX
|
||||
| Path prefix for shares as part of an ocis resource. Note that the path must start with '/'.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| The OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_STAT_CACHE_AUTH_PASSWORD
|
||||
| The password to use for authentication. Only applies when using the 'nats-js-kv' store type.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| FRONTEND_OCS_STAT_CACHE_AUTH_PASSWORD, the OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_STAT_CACHE_AUTH_USERNAME
|
||||
| The username to use for authentication. Only applies when using the 'nats-js-kv' store type.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| FRONTEND_OCS_STAT_CACHE_AUTH_USERNAME, the OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_STAT_CACHE_DISABLE_PERSISTENCE
|
||||
| Disable persistence of the cache. Only applies when using the 'nats-js-kv' store type. Defaults to false.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| FRONTEND_OCS_STAT_CACHE_DISABLE_PERSISTENCE, the OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_STAT_CACHE_STORE
|
||||
| The type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| FRONTEND_OCS_STAT_CACHE_STORE, the OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_STAT_CACHE_STORE_NODES
|
||||
| A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| FRONTEND_OCS_STAT_CACHE_STORE_NODES, the OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_STAT_CACHE_TABLE
|
||||
| The database table the store should use.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| The OCS API is deprecated
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_STAT_CACHE_TTL
|
||||
| Default time to live for user info in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details.
|
||||
| %%NEXT_PRODUCTION_VERSION%%
|
||||
| FRONTEND_OCS_STAT_CACHE_TTL, the OCS API is deprecated
|
||||
|
||||
|===
|
||||
|
||||
@@ -1,43 +1,138 @@
|
||||
// # Removed Variables between oCIS 5.0.0 and oCIS 7.0.0
|
||||
// commenting the headline to make it better includable
|
||||
|
||||
// table created per 2024.11.07
|
||||
// table created per 2024.12.02
|
||||
// the table should be recreated/updated on source () changes
|
||||
|
||||
[width="100%",cols="~,~,~,~",options="header"]
|
||||
|===
|
||||
| Service| Variable| Description| Default
|
||||
| Service | Variable | Description | Default
|
||||
|
||||
| xref:deployment/services/env-vars-special-scope.adoc[Special Scope Envvars]
|
||||
| OCIS_CACHE_SIZE
|
||||
| The maximum quantity of items in the user info cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitly set as default.
|
||||
| 0
|
||||
|
||||
|
|
||||
| OCIS_DECOMPOSEDFS_METADATA_BACKEND
|
||||
| The backend to use for storing metadata. Supported values are 'messagepack' and 'xattrs'. The setting 'messagepack' uses a dedicated file to store file metadata while 'xattrs' uses extended attributes to store file metadata. Defaults to 'messagepack'.
|
||||
| messagepack
|
||||
|
||||
|
|
||||
| OCIS_ENABLE_RESHARING
|
||||
| Changing this value is NOT supported. Enables the support for re-sharing in the clients.
|
||||
| false
|
||||
|
||||
|
|
||||
| OCIS_PERSISTENT_STORE_SIZE
|
||||
| The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitly set as default.
|
||||
| 0
|
||||
|
||||
| xref:{s-path}/antivirus.adoc[Antivirus]
|
||||
| ANTIVIRUS_ICAP_TIMEOUT
|
||||
| Timeout for the ICAP client.
|
||||
| 0
|
||||
|
||||
| xref:{s-path}/eventhistory.adoc[Eventhistory]
|
||||
| EVENTHISTORY_STORE_SIZE
|
||||
| The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived and used from the ocmem package though no explicit default was set.
|
||||
| 0
|
||||
|
||||
| xref:{s-path}/frontend.adoc[Frontend]
|
||||
| FRONTEND_ENABLE_RESHARING
|
||||
| Changing this value is NOT supported. Enables the support for re-sharing in the clients.
|
||||
| false
|
||||
|
||||
|
|
||||
| FRONTEND_OCS_STAT_CACHE_SIZE
|
||||
| Max number of entries to hold in the cache.
|
||||
| 0
|
||||
|
||||
| xref:{s-path}/gateway.adoc[Gateway]
|
||||
| GATEWAY_CREATE_HOME_CACHE_SIZE
|
||||
| The maximum quantity of items in the cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not explicitly set as default.
|
||||
| 0
|
||||
|
||||
|
|
||||
| GATEWAY_PROVIDER_CACHE_SIZE
|
||||
| The maximum quantity of items in the cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not explicitly set as default.
|
||||
| 0
|
||||
|
||||
| xref:{s-path}/graph.adoc[Graph]
|
||||
| GRAPH_CACHE_SIZE
|
||||
| The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not explicitly set as default.
|
||||
| 0
|
||||
|
||||
|
|
||||
| GRAPH_ENABLE_RESHARING
|
||||
| Changing this value is NOT supported. Enables the support for re-sharing.
|
||||
| false
|
||||
|
||||
| xref:{s-path}/ocm.adoc[OCM]
|
||||
| OCM_OCM_PROVIDER_AUTHORIZER_VERIFY_REQUEST_HOSTNAME
|
||||
| Verify the hostname of the incoming request against the hostname of the OCM provider.
|
||||
| false
|
||||
|
||||
| xref:{s-path}/postprocessing.adoc[Postprocessing]
|
||||
| POSTPROCESSING_STORE_SIZE
|
||||
| The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitly set as default.
|
||||
| 0
|
||||
|
||||
| xref:{s-path}/proxy.adoc[Proxy]
|
||||
| PROXY_OIDC_USERINFO_CACHE_SIZE
|
||||
| The maximum quantity of items in the user info cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not explicitly set as default.
|
||||
| 0
|
||||
|
||||
| xref:{s-path}/settings.adoc[Settings]
|
||||
| SETTINGS_CACHE_SIZE
|
||||
| The maximum quantity of items in the cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitly set as default.
|
||||
| 0
|
||||
|
||||
|
|
||||
| SETTINGS_DATA_PATH
|
||||
| The directory where the filesystem storage will store ocis settings. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/settings.
|
||||
| /var/lib/ocis/settings
|
||||
|
||||
|
|
||||
| SETTINGS_STORE_TYPE
|
||||
| Store type configures the persistency driver. Supported values are 'metadata' and 'filesystem'. Note that the value 'filesystem' is considered deprecated.
|
||||
| metadata
|
||||
|
||||
| xref:{s-path}/sharing.adoc[Sharing]
|
||||
| SHARING_ENABLE_RESHARING
|
||||
| Changing this value is NOT supported. Enables the support for resharing.
|
||||
| false
|
||||
|
||||
| xref:{s-path}/storage-system.adoc[Storage-System]
|
||||
| STORAGE_SYSTEM_CACHE_SIZE
|
||||
| The maximum quantity of items in the user info cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitly set as default.
|
||||
| 0
|
||||
|
||||
|
|
||||
| STORAGE_SYSTEM_OCIS_METADATA_BACKEND
|
||||
| The backend to use for storing metadata. Supported values are 'messagepack' and 'xattrs'. The setting 'messagepack' uses a dedicated file to store file metadata while 'xattrs' uses extended attributes to store file metadata. Defaults to 'messagepack'.
|
||||
| messagepack
|
||||
|
||||
| xref:{s-path}/storage-users.adoc[Storage-Users]
|
||||
| STORAGE_USERS_FILEMETADATA_CACHE_SIZE
|
||||
| The maximum quantity of items in the user info cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitly set as default.
|
||||
| 0
|
||||
|
||||
|
|
||||
| STORAGE_USERS_ID_CACHE_SIZE
|
||||
| The maximum quantity of items in the user info cache. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitly set as default.
|
||||
| 0
|
||||
|
||||
|
|
||||
| STORAGE_USERS_OCIS_METADATA_BACKEND
|
||||
| The backend to use for storing metadata. Supported values are 'messagepack' and 'xattrs'. The setting 'messagepack' uses a dedicated file to store file metadata while 'xattrs' uses extended attributes to store file metadata. Defaults to 'messagepack'.
|
||||
| messagepack
|
||||
|
||||
|
|
||||
| STORAGE_USERS_S3NG_METADATA_BACKEND
|
||||
| The backend to use for storing metadata. Supported values are 'xattrs' and 'messagepack'. The setting 'xattrs' uses extended attributes to store file metadata while 'messagepack' uses a dedicated file to store file metadata. Defaults to 'xattrs'.
|
||||
| messagepack
|
||||
|
||||
| The `Store` service has been removed completely
|
||||
| STORE_DATA_PATH
|
||||
| The directory where the filesystem storage will store ocis settings. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/store.
|
||||
@@ -108,10 +203,55 @@
|
||||
| The type of tracing. Defaults to '', which is the same as 'jaeger'. Allowed tracing types are 'jaeger' and '' as of now.
|
||||
|
|
||||
|
||||
| xref:{s-path}/userlog.adoc[Userlog]
|
||||
| USERLOG_STORE_SIZE
|
||||
| The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512 which is derived from the ocmem package though not exclicitly set as default.
|
||||
| 0
|
||||
|
||||
| xref:{s-path}/web.adoc[Web]
|
||||
| WEB_ASSET_PATH
|
||||
| Serve ownCloud Web assets from a path on the filesystem instead of the builtin assets.
|
||||
|
|
||||
|
||||
|
|
||||
| WEB_OPTION_DISABLE_PREVIEWS
|
||||
| Set this option to 'true' to disable previews in all the different web file listing views. This can speed up file listings in folders with many files. The only list view that is not affected by this setting is the trash bin, as it does not allow previewing at all.
|
||||
| false
|
||||
|
||||
|
|
||||
| WEB_OPTION_HOME_FOLDER
|
||||
| Specifies a folder that is used when the user navigates 'home'. Navigating home gets triggered by clicking on the 'All files' menu item. The user will not be jailed in that directory, it simply serves as a default location. A static location can be provided, or variables of the user object to come up with a user specific home path can be used. This uses the twig template variable style and allows picking a value or a substring of a value of the authenticated user. Examples are '/Shares', '/{{.Id}}' and '/{{substr 0 3 .Id}}/{{.Id}'.
|
||||
|
|
||||
|
||||
|
|
||||
| WEB_OPTION_HOVERABLE_QUICK_ACTIONS
|
||||
| Set this option to 'true' to hide quick actions (buttons appearing on file rows) and only show them when the user hovers over the row with his mouse. Defaults to 'false'.
|
||||
| false
|
||||
|
||||
|
|
||||
| WEB_OPTION_OPEN_LINKS_WITH_DEFAULT_APP
|
||||
| Specifies whether single file link shares should be opened with the default app or not. If not opened by the default app, the Web UI just displays the file details.
|
||||
| true
|
||||
|
||||
|
|
||||
| WEB_OPTION_PREVIEW_FILE_MIMETYPES
|
||||
| A list of mimeTypes to specify which ones will be previewed in the UI. For example, to only preview jpg and text files, set this option to 'image/jpeg,text/plain'. See the Environment Variable Types description for more details.
|
||||
| [image/gif image/png image/jpeg text/plain image/tiff image/bmp image/x-ms-bmp application/vnd.geogebra.slides]
|
||||
|
||||
|
|
||||
| WEB_OPTION_ROUTING_ID_BASED
|
||||
| Enable or disable fileIds being added to the URL. Defaults to 'true', because otherwise spaces with name clashes cannot be resolved correctly. Note: Only disable this if you can guarantee on the server side, that spaces of the same namespace cannot have name clashes.
|
||||
| true
|
||||
|
||||
|
|
||||
| WEB_OPTION_SHARING_RECIPIENTS_PER_PAGE
|
||||
| Sets the number of users shown as recipients in the dropdown menu when sharing resources.
|
||||
| 200
|
||||
|
||||
|
|
||||
| WEB_OPTION_SIDEBAR_SHARES_SHOW_ALL_ON_LOAD
|
||||
| Sets the list of the (link) shares list in the sidebar to be initially expanded. Default is a collapsed state, only showing the first three shares.
|
||||
| false
|
||||
|
||||
|===
|
||||
|
||||
@@ -24,13 +24,18 @@ Use this checklist with copy/paste in your PR - right from the beginning. It ren
|
||||
bad `<img src="https://github.com/owncloud/ocis/blob/master/services/graph/images/mermaid-graph.svg" width="500" />`
|
||||
good `<img src="https://raw.githubusercontent.com/owncloud/ocis/master/services/graph/images/mermaid-graph.svg" width="500" />`
|
||||
- [ ] If new CLI commands are introduced, those commands must be described in the README.md.
|
||||
- Commands are added to `ocis/pkg/command`
|
||||
- [ ] If new global envvars are introduced, the name must start with `OCIS_`.
|
||||
- [ ] Add the service to the makefile in the ocis repo root.
|
||||
- [ ] Make the service startable for binary and individual startup:
|
||||
- For single binary add service to `ocis/pkg/runtime`
|
||||
- For individual startup add service to `ocis/pkg/commands`
|
||||
- [ ] Service startup:
|
||||
- add it to `ocis/pkg/command/services.go`
|
||||
- Include for automatic startup:
|
||||
- add it to `ocis/pkg/runtime/service/service.go`
|
||||
- Exclude from automatic startup:
|
||||
- add it to the `populate optional services` block in `ocis/pkg/runtime/service/service.go`
|
||||
- Add the service config to `ocis-pkg/config/defaultconfig.go`
|
||||
- [ ] If the service is using service accounts, add it to `ocis/pkg/init/init.go`
|
||||
- [ ] Check that the service properly responds to `ocis <service-name> health` and has `/healthz` and `/readyz` endpoints
|
||||
- [ ] Add the service to `.drone.star` to enable CI.
|
||||
- [ ] Inform doc team in an *early stage* to review the readme AND the environment variables created.
|
||||
- The description must reflect the behaviour AND usually has a positive code quality impact.
|
||||
@@ -45,4 +50,5 @@ Use this checklist with copy/paste in your PR - right from the beginning. It ren
|
||||
- [ ] Add metrics to the code to enable monitoring. See the proxy service for implementation details.
|
||||
- Plus add documentation about monitoring in the README.md file
|
||||
- [ ] When the service requires translations that have to be covered by the service and are not sourced by web, see the [add translation]({{< ref "./add-translations.md" >}}) documentation for more details.
|
||||
- [ ] If the service requires a `cache` or `store`, check existing services for implementation and add a documentation in the README.md
|
||||
```
|
||||
@@ -1,6 +1,7 @@
|
||||
module github.com/owncloud/ocis/v2
|
||||
|
||||
go 1.22.0
|
||||
go 1.22.7
|
||||
|
||||
toolchain go1.22.9
|
||||
|
||||
require (
|
||||
@@ -12,16 +13,16 @@ require (
|
||||
github.com/Nerzal/gocloak/v13 v13.9.0
|
||||
github.com/bbalet/stopwords v1.0.0
|
||||
github.com/beevik/etree v1.4.1
|
||||
github.com/blevesearch/bleve/v2 v2.4.2
|
||||
github.com/blevesearch/bleve/v2 v2.4.3
|
||||
github.com/cenkalti/backoff v2.2.1+incompatible
|
||||
github.com/coreos/go-oidc/v3 v3.11.0
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20241105092511-3ad35d174fc1
|
||||
github.com/cs3org/reva/v2 v2.26.5
|
||||
github.com/cs3org/reva/v2 v2.27.0
|
||||
github.com/davidbyttow/govips/v2 v2.15.0
|
||||
github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8
|
||||
github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e
|
||||
github.com/egirna/icap-client v0.1.1
|
||||
github.com/gabriel-vasile/mimetype v1.4.6
|
||||
github.com/gabriel-vasile/mimetype v1.4.7
|
||||
github.com/ggwhite/go-masker v1.1.0
|
||||
github.com/go-chi/chi/v5 v5.1.0
|
||||
github.com/go-chi/render v1.0.3
|
||||
@@ -35,9 +36,8 @@ require (
|
||||
github.com/go-micro/plugins/v4/store/nats-js-kv v0.0.0-20240726082623-6831adfdcdc4
|
||||
github.com/go-micro/plugins/v4/wrapper/monitoring/prometheus v1.2.0
|
||||
github.com/go-micro/plugins/v4/wrapper/trace/opentelemetry v1.2.0
|
||||
github.com/go-playground/validator/v10 v10.22.1
|
||||
github.com/go-playground/validator/v10 v10.23.0
|
||||
github.com/gofrs/uuid v4.4.0+incompatible
|
||||
github.com/golang-jwt/jwt/v4 v4.5.1
|
||||
github.com/golang-jwt/jwt/v5 v5.2.1
|
||||
github.com/golang/protobuf v1.5.4
|
||||
github.com/google/go-cmp v0.6.0
|
||||
@@ -45,7 +45,7 @@ require (
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/gookit/config/v2 v2.2.5
|
||||
github.com/gorilla/mux v1.8.1
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0
|
||||
github.com/invopop/validation v0.8.0
|
||||
github.com/jellydator/ttlcache/v2 v2.11.1
|
||||
github.com/jellydator/ttlcache/v3 v3.3.0
|
||||
@@ -54,7 +54,7 @@ require (
|
||||
github.com/kovidgoyal/imaging v1.6.3
|
||||
github.com/leonelquinteros/gotext v1.7.0
|
||||
github.com/libregraph/idm v0.5.0
|
||||
github.com/libregraph/lico v0.64.0
|
||||
github.com/libregraph/lico v0.65.0
|
||||
github.com/mitchellh/mapstructure v1.5.0
|
||||
github.com/mna/pigeon v1.3.0
|
||||
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
|
||||
@@ -63,8 +63,8 @@ require (
|
||||
github.com/oklog/run v1.1.0
|
||||
github.com/olekukonko/tablewriter v0.0.5
|
||||
github.com/onsi/ginkgo v1.16.5
|
||||
github.com/onsi/ginkgo/v2 v2.21.0
|
||||
github.com/onsi/gomega v1.35.1
|
||||
github.com/onsi/ginkgo/v2 v2.22.0
|
||||
github.com/onsi/gomega v1.36.0
|
||||
github.com/open-policy-agent/opa v0.70.0
|
||||
github.com/orcaman/concurrent-map v1.0.0
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20240829135935-80dc00d6f5ea
|
||||
@@ -72,7 +72,7 @@ require (
|
||||
github.com/pkg/xattr v0.4.10
|
||||
github.com/prometheus/client_golang v1.20.5
|
||||
github.com/r3labs/sse/v2 v2.10.0
|
||||
github.com/riandyrn/otelchi v0.10.1
|
||||
github.com/riandyrn/otelchi v0.11.0
|
||||
github.com/rogpeppe/go-internal v1.13.1
|
||||
github.com/rs/cors v1.11.1
|
||||
github.com/rs/zerolog v1.33.0
|
||||
@@ -80,35 +80,35 @@ require (
|
||||
github.com/sirupsen/logrus v1.9.3
|
||||
github.com/spf13/afero v1.11.0
|
||||
github.com/spf13/cobra v1.8.1
|
||||
github.com/stretchr/testify v1.9.0
|
||||
github.com/stretchr/testify v1.10.0
|
||||
github.com/test-go/testify v1.1.4
|
||||
github.com/thejerf/suture/v4 v4.0.5
|
||||
github.com/thejerf/suture/v4 v4.0.6
|
||||
github.com/tidwall/gjson v1.18.0
|
||||
github.com/tus/tusd/v2 v2.5.0
|
||||
github.com/tus/tusd/v2 v2.6.0
|
||||
github.com/unrolled/secure v1.16.0
|
||||
github.com/urfave/cli/v2 v2.27.5
|
||||
github.com/xhit/go-simple-mail/v2 v2.16.0
|
||||
go-micro.dev/v4 v4.11.0
|
||||
go.etcd.io/bbolt v1.3.11
|
||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.56.0
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.56.0
|
||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.57.0
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.57.0
|
||||
go.opentelemetry.io/contrib/zpages v0.57.0
|
||||
go.opentelemetry.io/otel v1.32.0
|
||||
go.opentelemetry.io/otel/exporters/jaeger v1.17.0
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.32.0
|
||||
go.opentelemetry.io/otel/sdk v1.32.0
|
||||
go.opentelemetry.io/otel/trace v1.32.0
|
||||
golang.org/x/crypto v0.29.0
|
||||
golang.org/x/crypto v0.30.0
|
||||
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c
|
||||
golang.org/x/image v0.21.0
|
||||
golang.org/x/net v0.30.0
|
||||
golang.org/x/image v0.22.0
|
||||
golang.org/x/net v0.32.0
|
||||
golang.org/x/oauth2 v0.24.0
|
||||
golang.org/x/sync v0.9.0
|
||||
golang.org/x/term v0.26.0
|
||||
golang.org/x/text v0.20.0
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38
|
||||
golang.org/x/sync v0.10.0
|
||||
golang.org/x/term v0.27.0
|
||||
golang.org/x/text v0.21.0
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20241118233622-e639e219e697
|
||||
google.golang.org/grpc v1.68.0
|
||||
google.golang.org/protobuf v1.35.1
|
||||
google.golang.org/protobuf v1.35.2
|
||||
gopkg.in/yaml.v2 v2.4.0
|
||||
gotest.tools/v3 v3.5.1
|
||||
stash.kopano.io/kgol/rndm v1.1.2
|
||||
@@ -135,13 +135,13 @@ require (
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/bitly/go-simplejson v0.5.0 // indirect
|
||||
github.com/bits-and-blooms/bitset v1.12.0 // indirect
|
||||
github.com/blevesearch/bleve_index_api v1.1.10 // indirect
|
||||
github.com/blevesearch/bleve_index_api v1.1.12 // indirect
|
||||
github.com/blevesearch/geo v0.1.20 // indirect
|
||||
github.com/blevesearch/go-faiss v1.0.20 // indirect
|
||||
github.com/blevesearch/go-faiss v1.0.23 // indirect
|
||||
github.com/blevesearch/go-porterstemmer v1.0.3 // indirect
|
||||
github.com/blevesearch/gtreap v0.1.1 // indirect
|
||||
github.com/blevesearch/mmap-go v1.0.4 // indirect
|
||||
github.com/blevesearch/scorch_segment_api/v2 v2.2.15 // indirect
|
||||
github.com/blevesearch/scorch_segment_api/v2 v2.2.16 // indirect
|
||||
github.com/blevesearch/segment v0.9.1 // indirect
|
||||
github.com/blevesearch/snowballstem v0.9.0 // indirect
|
||||
github.com/blevesearch/upsidedown_store_api v1.0.2 // indirect
|
||||
@@ -150,8 +150,8 @@ require (
|
||||
github.com/blevesearch/zapx/v12 v12.3.10 // indirect
|
||||
github.com/blevesearch/zapx/v13 v13.3.10 // indirect
|
||||
github.com/blevesearch/zapx/v14 v14.3.10 // indirect
|
||||
github.com/blevesearch/zapx/v15 v15.3.13 // indirect
|
||||
github.com/blevesearch/zapx/v16 v16.1.5 // indirect
|
||||
github.com/blevesearch/zapx/v15 v15.3.16 // indirect
|
||||
github.com/blevesearch/zapx/v16 v16.1.8 // indirect
|
||||
github.com/bluele/gcache v0.0.2 // indirect
|
||||
github.com/bombsimon/logrusr/v3 v3.1.0 // indirect
|
||||
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
|
||||
@@ -217,7 +217,7 @@ require (
|
||||
github.com/godbus/dbus/v5 v5.1.0 // indirect
|
||||
github.com/gofrs/flock v0.12.1 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
|
||||
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
|
||||
github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 // indirect
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||
github.com/golang/snappy v0.0.4 // indirect
|
||||
@@ -232,7 +232,7 @@ require (
|
||||
github.com/gorilla/schema v1.4.1 // indirect
|
||||
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
|
||||
github.com/hashicorp/go-hclog v1.6.3 // indirect
|
||||
github.com/hashicorp/go-plugin v1.6.1 // indirect
|
||||
github.com/hashicorp/go-plugin v1.6.2 // indirect
|
||||
github.com/hashicorp/yamux v0.1.1 // indirect
|
||||
github.com/huandu/xstrings v1.5.0 // indirect
|
||||
github.com/iancoleman/strcase v0.3.0 // indirect
|
||||
@@ -263,7 +263,6 @@ require (
|
||||
github.com/minio/md5-simd v1.1.2 // indirect
|
||||
github.com/minio/minio-go/v7 v7.0.78 // indirect
|
||||
github.com/mitchellh/copystructure v1.2.0 // indirect
|
||||
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
|
||||
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
@@ -321,19 +320,19 @@ require (
|
||||
go.etcd.io/etcd/client/pkg/v3 v3.5.16 // indirect
|
||||
go.etcd.io/etcd/client/v3 v3.5.16 // indirect
|
||||
go.opencensus.io v0.24.0 // indirect
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0 // indirect
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.32.0 // indirect
|
||||
go.opentelemetry.io/otel/metric v1.32.0 // indirect
|
||||
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
|
||||
go.uber.org/atomic v1.11.0 // indirect
|
||||
go.uber.org/multierr v1.9.0 // indirect
|
||||
go.uber.org/zap v1.23.0 // indirect
|
||||
golang.org/x/mod v0.21.0 // indirect
|
||||
golang.org/x/sys v0.27.0 // indirect
|
||||
golang.org/x/sys v0.28.0 // indirect
|
||||
golang.org/x/time v0.7.0 // indirect
|
||||
golang.org/x/tools v0.26.0 // indirect
|
||||
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
|
||||
google.golang.org/genproto v0.0.0-20241015192408-796eee8c2d53 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241118233622-e639e219e697 // indirect
|
||||
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect
|
||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
|
||||
gopkg.in/warnings.v0 v0.1.2 // indirect
|
||||
@@ -349,7 +348,7 @@ replace github.com/unrolled/secure => github.com/DeepDiver1975/secure v0.0.0-202
|
||||
|
||||
replace github.com/go-micro/plugins/v4/store/nats-js-kv => github.com/kobergj/plugins/v4/store/nats-js-kv v0.0.0-20240807130109-f62bb67e8c90
|
||||
|
||||
replace go-micro.dev/v4 => github.com/butonic/go-micro/v4 v4.11.1-0.20241028133844-ac2cdce96c71
|
||||
replace go-micro.dev/v4 => github.com/butonic/go-micro/v4 v4.11.1-0.20241115112658-b5d4de5ed9b3
|
||||
|
||||
// exclude the v2 line of go-sqlite3 which was released accidentally and prevents pulling in newer versions of go-sqlite3
|
||||
// see https://github.com/mattn/go-sqlite3/issues/965 for more details
|
||||
|
||||
@@ -149,22 +149,22 @@ github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngE
|
||||
github.com/bits-and-blooms/bitset v1.12.0 h1:U/q1fAF7xXRhFCrhROzIfffYnu+dlS38vCZtmFVPHmA=
|
||||
github.com/bits-and-blooms/bitset v1.12.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8=
|
||||
github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84=
|
||||
github.com/blevesearch/bleve/v2 v2.4.2 h1:NooYP1mb3c0StkiY9/xviiq2LGSaE8BQBCc/pirMx0U=
|
||||
github.com/blevesearch/bleve/v2 v2.4.2/go.mod h1:ATNKj7Yl2oJv/lGuF4kx39bST2dveX6w0th2FFYLkc8=
|
||||
github.com/blevesearch/bleve_index_api v1.1.10 h1:PDLFhVjrjQWr6jCuU7TwlmByQVCSEURADHdCqVS9+g0=
|
||||
github.com/blevesearch/bleve_index_api v1.1.10/go.mod h1:PbcwjIcRmjhGbkS/lJCpfgVSMROV6TRubGGAODaK1W8=
|
||||
github.com/blevesearch/bleve/v2 v2.4.3 h1:XDYj+1prgX84L2Cf+V3ojrOPqXxy0qxyd2uLMmeuD+4=
|
||||
github.com/blevesearch/bleve/v2 v2.4.3/go.mod h1:hEPDPrbYw3vyrm5VOa36GyS4bHWuIf4Fflp7460QQXY=
|
||||
github.com/blevesearch/bleve_index_api v1.1.12 h1:P4bw9/G/5rulOF7SJ9l4FsDoo7UFJ+5kexNy1RXfegY=
|
||||
github.com/blevesearch/bleve_index_api v1.1.12/go.mod h1:PbcwjIcRmjhGbkS/lJCpfgVSMROV6TRubGGAODaK1W8=
|
||||
github.com/blevesearch/geo v0.1.20 h1:paaSpu2Ewh/tn5DKn/FB5SzvH0EWupxHEIwbCk/QPqM=
|
||||
github.com/blevesearch/geo v0.1.20/go.mod h1:DVG2QjwHNMFmjo+ZgzrIq2sfCh6rIHzy9d9d0B59I6w=
|
||||
github.com/blevesearch/go-faiss v1.0.20 h1:AIkdTQFWuZ5LQmKQSebgMR4RynGNw8ZseJXaan5kvtI=
|
||||
github.com/blevesearch/go-faiss v1.0.20/go.mod h1:jrxHrbl42X/RnDPI+wBoZU8joxxuRwedrxqswQ3xfU8=
|
||||
github.com/blevesearch/go-faiss v1.0.23 h1:Wmc5AFwDLKGl2L6mjLX1Da3vCL0EKa2uHHSorcIS1Uc=
|
||||
github.com/blevesearch/go-faiss v1.0.23/go.mod h1:OMGQwOaRRYxrmeNdMrXJPvVx8gBnvE5RYrr0BahNnkk=
|
||||
github.com/blevesearch/go-porterstemmer v1.0.3 h1:GtmsqID0aZdCSNiY8SkuPJ12pD4jI+DdXTAn4YRcHCo=
|
||||
github.com/blevesearch/go-porterstemmer v1.0.3/go.mod h1:angGc5Ht+k2xhJdZi511LtmxuEf0OVpvUUNrwmM1P7M=
|
||||
github.com/blevesearch/gtreap v0.1.1 h1:2JWigFrzDMR+42WGIN/V2p0cUvn4UP3C4Q5nmaZGW8Y=
|
||||
github.com/blevesearch/gtreap v0.1.1/go.mod h1:QaQyDRAT51sotthUWAH4Sj08awFSSWzgYICSZ3w0tYk=
|
||||
github.com/blevesearch/mmap-go v1.0.4 h1:OVhDhT5B/M1HNPpYPBKIEJaD0F3Si+CrEKULGCDPWmc=
|
||||
github.com/blevesearch/mmap-go v1.0.4/go.mod h1:EWmEAOmdAS9z/pi/+Toxu99DnsbhG1TIxUoRmJw/pSs=
|
||||
github.com/blevesearch/scorch_segment_api/v2 v2.2.15 h1:prV17iU/o+A8FiZi9MXmqbagd8I0bCqM7OKUYPbnb5Y=
|
||||
github.com/blevesearch/scorch_segment_api/v2 v2.2.15/go.mod h1:db0cmP03bPNadXrCDuVkKLV6ywFSiRgPFT1YVrestBc=
|
||||
github.com/blevesearch/scorch_segment_api/v2 v2.2.16 h1:uGvKVvG7zvSxCwcm4/ehBa9cCEuZVE+/zvrSl57QUVY=
|
||||
github.com/blevesearch/scorch_segment_api/v2 v2.2.16/go.mod h1:VF5oHVbIFTu+znY1v30GjSpT5+9YFs9dV2hjvuh34F0=
|
||||
github.com/blevesearch/segment v0.9.1 h1:+dThDy+Lvgj5JMxhmOVlgFfkUtZV2kw49xax4+jTfSU=
|
||||
github.com/blevesearch/segment v0.9.1/go.mod h1:zN21iLm7+GnBHWTao9I+Au/7MBiL8pPFtJBJTsk6kQw=
|
||||
github.com/blevesearch/snowballstem v0.9.0 h1:lMQ189YspGP6sXvZQ4WZ+MLawfV8wOmPoD/iWeNXm8s=
|
||||
@@ -181,10 +181,10 @@ github.com/blevesearch/zapx/v13 v13.3.10 h1:0KY9tuxg06rXxOZHg3DwPJBjniSlqEgVpxIq
|
||||
github.com/blevesearch/zapx/v13 v13.3.10/go.mod h1:w2wjSDQ/WBVeEIvP0fvMJZAzDwqwIEzVPnCPrz93yAk=
|
||||
github.com/blevesearch/zapx/v14 v14.3.10 h1:SG6xlsL+W6YjhX5N3aEiL/2tcWh3DO75Bnz77pSwwKU=
|
||||
github.com/blevesearch/zapx/v14 v14.3.10/go.mod h1:qqyuR0u230jN1yMmE4FIAuCxmahRQEOehF78m6oTgns=
|
||||
github.com/blevesearch/zapx/v15 v15.3.13 h1:6EkfaZiPlAxqXz0neniq35my6S48QI94W/wyhnpDHHQ=
|
||||
github.com/blevesearch/zapx/v15 v15.3.13/go.mod h1:Turk/TNRKj9es7ZpKK95PS7f6D44Y7fAFy8F4LXQtGg=
|
||||
github.com/blevesearch/zapx/v16 v16.1.5 h1:b0sMcarqNFxuXvjoXsF8WtwVahnxyhEvBSRJi/AUHjU=
|
||||
github.com/blevesearch/zapx/v16 v16.1.5/go.mod h1:J4mSF39w1QELc11EWRSBFkPeZuO7r/NPKkHzDCoiaI8=
|
||||
github.com/blevesearch/zapx/v15 v15.3.16 h1:Ct3rv7FUJPfPk99TI/OofdC+Kpb4IdyfdMH48sb+FmE=
|
||||
github.com/blevesearch/zapx/v15 v15.3.16/go.mod h1:Turk/TNRKj9es7ZpKK95PS7f6D44Y7fAFy8F4LXQtGg=
|
||||
github.com/blevesearch/zapx/v16 v16.1.8 h1:Bxzpw6YQpFs7UjoCV1+RvDw6fmAT2GZxldwX8b3wVBM=
|
||||
github.com/blevesearch/zapx/v16 v16.1.8/go.mod h1:JqQlOqlRVaYDkpLIl3JnKql8u4zKTNlVEa3nLsi0Gn8=
|
||||
github.com/bluele/gcache v0.0.2 h1:WcbfdXICg7G/DGBh1PFfcirkWOQV+v077yF1pSy3DGw=
|
||||
github.com/bluele/gcache v0.0.2/go.mod h1:m15KV+ECjptwSPxKhOhQoAFQVtUFjTVkc3H8o0t/fp0=
|
||||
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY=
|
||||
@@ -194,8 +194,8 @@ github.com/bombsimon/logrusr/v3 v3.1.0/go.mod h1:PksPPgSFEL2I52pla2glgCyyd2OqOHA
|
||||
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
|
||||
github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
|
||||
github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8=
|
||||
github.com/butonic/go-micro/v4 v4.11.1-0.20241028133844-ac2cdce96c71 h1:O26NWIQEs6vT4j/mQBH81D82ix7NE2ks1lekZ+g+C2k=
|
||||
github.com/butonic/go-micro/v4 v4.11.1-0.20241028133844-ac2cdce96c71/go.mod h1:eE/tD53n3KbVrzrWxKLxdkGw45Fg1qaNLWjpJMvIUF4=
|
||||
github.com/butonic/go-micro/v4 v4.11.1-0.20241115112658-b5d4de5ed9b3 h1:h8Z0hBv5tg/uZMKu8V47+DKWYVQg0lYP8lXDQq7uRpE=
|
||||
github.com/butonic/go-micro/v4 v4.11.1-0.20241115112658-b5d4de5ed9b3/go.mod h1:eE/tD53n3KbVrzrWxKLxdkGw45Fg1qaNLWjpJMvIUF4=
|
||||
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
|
||||
github.com/bytecodealliance/wasmtime-go/v3 v3.0.2 h1:3uZCA/BLTIu+DqCfguByNMJa2HVHpXvjfy0Dy7g6fuA=
|
||||
github.com/bytecodealliance/wasmtime-go/v3 v3.0.2/go.mod h1:RnUjnIXxEJcL6BgCvNyzCCRzZcxCgsZCi+RNlvYor5Q=
|
||||
@@ -255,8 +255,8 @@ github.com/crewjam/saml v0.4.14 h1:g9FBNx62osKusnFzs3QTN5L9CVA/Egfgm+stJShzw/c=
|
||||
github.com/crewjam/saml v0.4.14/go.mod h1:UVSZCf18jJkk6GpWNVqcyQJMD5HsRugBPf4I1nl2mME=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20241105092511-3ad35d174fc1 h1:RU6LT6mkD16xZs011+8foU7T3LrPvTTSWeTQ9OgfhkA=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20241105092511-3ad35d174fc1/go.mod h1:DedpcqXl193qF/08Y04IO0PpxyyMu8+GrkD6kWK2MEQ=
|
||||
github.com/cs3org/reva/v2 v2.26.5 h1:LWIOSpmgoVQDfe9S2renzqqAXorFs6lT+5Vodhr3M68=
|
||||
github.com/cs3org/reva/v2 v2.26.5/go.mod h1:KP0Zomt3dNIr/kU2M1mXzTIVFOtxBVS4qmBDMRCfrOQ=
|
||||
github.com/cs3org/reva/v2 v2.27.0 h1:Lq8VBRjQmyCfCO6+wC80Z4vH2Q1MfgORggg1e6mEcdM=
|
||||
github.com/cs3org/reva/v2 v2.27.0/go.mod h1:fJWmn7EkttWOWphZfiKdFOcHuthcUsU55aSN1VeTOhU=
|
||||
github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4=
|
||||
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
|
||||
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
|
||||
@@ -334,8 +334,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo
|
||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
|
||||
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
|
||||
github.com/gabriel-vasile/mimetype v1.4.6 h1:3+PzJTKLkvgjeTbts6msPJt4DixhT4YtFNf1gtGe3zc=
|
||||
github.com/gabriel-vasile/mimetype v1.4.6/go.mod h1:JX1qVKqZd40hUPpAfiNTe0Sne7hdfKSbOqqmkq8GCXc=
|
||||
github.com/gabriel-vasile/mimetype v1.4.7 h1:SKFKl7kD0RiPdbht0s7hFtjl489WcQ1VyPW8ZzUMYCA=
|
||||
github.com/gabriel-vasile/mimetype v1.4.7/go.mod h1:GDlAgAyIRT27BhFl53XNAFtfjzOkLaF35JdEG0P7LtU=
|
||||
github.com/gdexlab/go-render v1.0.1 h1:rxqB3vo5s4n1kF0ySmoNeSPRYkEsyHgln4jFIQY7v0U=
|
||||
github.com/gdexlab/go-render v1.0.1/go.mod h1:wRi5nW2qfjiGj4mPukH4UV0IknS1cHD4VgFTmJX5JzM=
|
||||
github.com/getkin/kin-openapi v0.13.0/go.mod h1:WGRs2ZMM1Q8LR1QBEwUxC6RJEfaBcD0s+pcEVXFuAjw=
|
||||
@@ -425,8 +425,8 @@ github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/o
|
||||
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
|
||||
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
|
||||
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
|
||||
github.com/go-playground/validator/v10 v10.22.1 h1:40JcKH+bBNGFczGuoBYgX4I6m/i27HYW8P9FDk5PbgA=
|
||||
github.com/go-playground/validator/v10 v10.22.1/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
|
||||
github.com/go-playground/validator/v10 v10.23.0 h1:/PwmTwZhS0dPkav3cdK9kV1FsAmrL8sThn8IHr/sO+o=
|
||||
github.com/go-playground/validator/v10 v10.23.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
|
||||
github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI=
|
||||
github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo=
|
||||
github.com/go-resty/resty/v2 v2.1.1-0.20191201195748-d7b97669fe48/go.mod h1:dZGr0i9PLlaaTD4H/hoZIDjQ+r6xq8mgbRzHZf7f2J8=
|
||||
@@ -471,8 +471,6 @@ github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV
|
||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||
github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A=
|
||||
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
|
||||
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
|
||||
github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo=
|
||||
github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
|
||||
github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk=
|
||||
@@ -596,8 +594,8 @@ github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vb
|
||||
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.8.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0 h1:ad0vkEBuk23VJzZR9nkLVG0YAoN9coASF1GusYX6AlU=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0/go.mod h1:igFoXX2ELCW06bol23DWPB5BEWfZISOzSP5K2sbLea0=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 h1:TmHmbvxPmaegwhDubVz0lICL0J5Ka2vwTzhoePEXsGE=
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0/go.mod h1:qztMSjm835F2bXf+5HKAPIS5qsmQDqZna/PgVt4rWtI=
|
||||
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542/go.mod h1:Ow0tF8D4Kplbc8s8sSb3V2oUCygFHVp8gC3Dn6U4MNI=
|
||||
github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
|
||||
github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
||||
@@ -609,8 +607,8 @@ github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVH
|
||||
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||
github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
|
||||
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
|
||||
github.com/hashicorp/go-plugin v1.6.1 h1:P7MR2UP6gNKGPp+y7EZw2kOiq4IR9WiqLvp0XOsVdwI=
|
||||
github.com/hashicorp/go-plugin v1.6.1/go.mod h1:XPHFku2tFo3o3QKFgSYo+cghcUhw1NA1hZyMK0PWAw0=
|
||||
github.com/hashicorp/go-plugin v1.6.2 h1:zdGAEd0V1lCaU0u+MxWQhtSDQmahpkwOun8U8EiRVog=
|
||||
github.com/hashicorp/go-plugin v1.6.2/go.mod h1:CkgLQ5CZqNmdL9U9JzM532t8ZiYQ35+pj3b1FD37R0Q=
|
||||
github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
|
||||
github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
|
||||
github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
|
||||
@@ -738,8 +736,8 @@ github.com/leonelquinteros/gotext v1.7.0 h1:jcJmF4AXqyamP7vuw2MMIKs+O3jAEmvrc5JQ
|
||||
github.com/leonelquinteros/gotext v1.7.0/go.mod h1:qJdoQuERPpccw7L70uoU+K/BvTfRBHYsisCQyFLXyvw=
|
||||
github.com/libregraph/idm v0.5.0 h1:tDMwKbAOZzdeDYMxVlY5PbSqRKO7dbAW9KT42A51WSk=
|
||||
github.com/libregraph/idm v0.5.0/go.mod h1:BGMwIQ/6orJSPVzJ1x6kgG2JyG9GY05YFmbsnaD80k0=
|
||||
github.com/libregraph/lico v0.64.0 h1:fbMV2ALjrOysGL0m58bhRrF+9e/HCL5RkoSwMN+xoWQ=
|
||||
github.com/libregraph/lico v0.64.0/go.mod h1:J2ZNe1DcO+K/5ptOOrQk2A2mn6OwXRdGUI4ASgw2WGg=
|
||||
github.com/libregraph/lico v0.65.0 h1:h8GYJhTOBuNvxQzdViHdWkNSUp+YbPB1H18Bfn/zdlY=
|
||||
github.com/libregraph/lico v0.65.0/go.mod h1:6w+kgoTYiXpJ7VriAaKJfeyF0eV/Stapd9pnK64du84=
|
||||
github.com/libregraph/oidc-go v1.1.0 h1:RyudjL3UyQblqeBQI06W53PniWobqODeeyAy6v/HumA=
|
||||
github.com/libregraph/oidc-go v1.1.0/go.mod h1:qW9ubcXvZrfbbWZBaLMuk7bt5qAUMYyt9/NtXQt07Cw=
|
||||
github.com/linode/linodego v0.25.3/go.mod h1:GSBKPpjoQfxEfryoCRcgkuUOCuVtGHWhzI8OMdycNTE=
|
||||
@@ -807,8 +805,6 @@ github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HK
|
||||
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
|
||||
github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU=
|
||||
github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8=
|
||||
github.com/mitchellh/go-vnc v0.0.0-20150629162542-723ed9867aed/go.mod h1:3rdaFaCv4AyBgu5ALFM0+tSuHrBh6v692nyQe3ikrq0=
|
||||
github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
|
||||
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
|
||||
@@ -868,13 +864,13 @@ github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W
|
||||
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
|
||||
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
|
||||
github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU=
|
||||
github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM=
|
||||
github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo=
|
||||
github.com/onsi/ginkgo/v2 v2.22.0 h1:Yed107/8DjTr0lKCNt7Dn8yQ6ybuDRQoMGrNFKzMfHg=
|
||||
github.com/onsi/ginkgo/v2 v2.22.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo=
|
||||
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
||||
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
||||
github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4=
|
||||
github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog=
|
||||
github.com/onsi/gomega v1.36.0 h1:Pb12RlruUtj4XUuPUqeEWc6j5DkVVVA49Uf6YLfC95Y=
|
||||
github.com/onsi/gomega v1.36.0/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog=
|
||||
github.com/open-policy-agent/opa v0.70.0 h1:B3cqCN2iQAyKxK6+GI+N40uqkin+wzIrM7YA60t9x1U=
|
||||
github.com/open-policy-agent/opa v0.70.0/go.mod h1:Y/nm5NY0BX0BqjBriKUiV81sCl8XOjjvqQG7dXrggtI=
|
||||
github.com/opencontainers/runtime-spec v1.1.0 h1:HHUyrt9mwHUjtasSbXSMvs4cyFxh+Bll4AjJ9odEGpg=
|
||||
@@ -981,8 +977,8 @@ github.com/rainycape/memcache v0.0.0-20150622160815-1031fa0ce2f2/go.mod h1:7tZKc
|
||||
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
|
||||
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 h1:MkV+77GLUNo5oJ0jf870itWm3D0Sjh7+Za9gazKc5LQ=
|
||||
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
|
||||
github.com/riandyrn/otelchi v0.10.1 h1:x86f8M0pGvjW3tJUxpva4cpdNtMydLPnarIXHssYUy4=
|
||||
github.com/riandyrn/otelchi v0.10.1/go.mod h1:SWarhA5rdeiCNq+Ygc4p59ZGM5AtYCiyPU/3Q5rzT0M=
|
||||
github.com/riandyrn/otelchi v0.11.0 h1:x9MFoTgHcwCC2DdWkTEEZ2ZQFkbl6z7GXLQtTANN6Gk=
|
||||
github.com/riandyrn/otelchi v0.11.0/go.mod h1:FlBYmG9fBQu0jFRvZZrATP4mDvLX2H5gwELfpZvNlxY=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
||||
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
@@ -1080,8 +1076,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
|
||||
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
|
||||
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
|
||||
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
|
||||
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
|
||||
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/stvp/go-udp-testing v0.0.0-20201019212854-469649b16807/go.mod h1:7jxmlfBCDBXRzr0eAQJ48XC1hBu1np4CS5+cHEYfwpc=
|
||||
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
|
||||
github.com/tchap/go-patricia/v2 v2.3.1 h1:6rQp39lgIYZ+MHmdEq4xzuk1t7OdC35z/xm0BGhTkes=
|
||||
@@ -1090,8 +1086,8 @@ github.com/test-go/testify v1.1.4 h1:Tf9lntrKUMHiXQ07qBScBTSA0dhYQlu83hswqelv1iE
|
||||
github.com/test-go/testify v1.1.4/go.mod h1:rH7cfJo/47vWGdi4GPj16x3/t1xGOj2YxzmNQzk2ghU=
|
||||
github.com/thanhpk/randstr v1.0.6 h1:psAOktJFD4vV9NEVb3qkhRSMvYh4ORRaj1+w/hn4B+o=
|
||||
github.com/thanhpk/randstr v1.0.6/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U=
|
||||
github.com/thejerf/suture/v4 v4.0.5 h1:F1E/4FZwXWqvlWDKEUo6/ndLtxGAUzMmNqkrMknZbAA=
|
||||
github.com/thejerf/suture/v4 v4.0.5/go.mod h1:gu9Y4dXNUWFrByqRt30Rm9/UZ0wzRSt9AJS6xu/ZGxU=
|
||||
github.com/thejerf/suture/v4 v4.0.6 h1:QsuCEsCqb03xF9tPAsWAj8QOAJBgQI1c0VqJNaingg8=
|
||||
github.com/thejerf/suture/v4 v4.0.6/go.mod h1:gu9Y4dXNUWFrByqRt30Rm9/UZ0wzRSt9AJS6xu/ZGxU=
|
||||
github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY=
|
||||
github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
||||
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
|
||||
@@ -1109,8 +1105,8 @@ github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208/go.mod h1:BzWtXXrXz
|
||||
github.com/transip/gotransip/v6 v6.2.0/go.mod h1:pQZ36hWWRahCUXkFWlx9Hs711gLd8J4qdgLdRzmtY+g=
|
||||
github.com/trustelem/zxcvbn v1.0.1 h1:mp4JFtzdDYGj9WYSD3KQSkwwUumWNFzXaAjckaTYpsc=
|
||||
github.com/trustelem/zxcvbn v1.0.1/go.mod h1:zonUyKeh7sw6psPf/e3DtRqkRyZvAbOfjNz/aO7YQ5s=
|
||||
github.com/tus/tusd/v2 v2.5.0 h1:72/2Ws3kF0upYqENcbb0yr4aca0HByDNkIjOs5yh0es=
|
||||
github.com/tus/tusd/v2 v2.5.0/go.mod h1:dUDNT4TvTMSqsTZvdAokc8e5xsZ+SsxvOCOPoyEeOJQ=
|
||||
github.com/tus/tusd/v2 v2.6.0 h1:Je243QDKnFTvm/WkLH2bd1oQ+7trolrflRWyuI0PdWI=
|
||||
github.com/tus/tusd/v2 v2.6.0/go.mod h1:1Eb1lBoSRBfYJ/mQfFVjyw8ZdNMdBqW17vgQKl3Ah9g=
|
||||
github.com/uber-go/atomic v1.3.2/go.mod h1:/Ct5t2lcmbJ4OSe/waGBoaVvVqtO0bmtfVNex1PFV8g=
|
||||
github.com/urfave/cli v1.22.4/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
|
||||
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
|
||||
@@ -1172,20 +1168,20 @@ go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
|
||||
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
|
||||
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
|
||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.56.0 h1:yMkBS9yViCc7U7yeLzJPM2XizlfdVvBRSmsQDWu6qc0=
|
||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.56.0/go.mod h1:n8MR6/liuGB5EmTETUBeU5ZgqMOlqKRxUaqPQBOANZ8=
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.56.0 h1:UP6IpuHFkUgOQL9FFQFrZ+5LiwhhYRbi7VZSIx6Nj5s=
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.56.0/go.mod h1:qxuZLtbq5QDtdeSHsS7bcf6EH6uO6jUAgk764zd3rhM=
|
||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.57.0 h1:qtFISDHKolvIxzSs0gIaiPUPR0Cucb0F2coHC7ZLdps=
|
||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.57.0/go.mod h1:Y+Pop1Q6hCOnETWTW4NROK/q1hv50hM7yDaUTjG8lp8=
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.57.0 h1:DheMAlT6POBP+gh8RUH19EOTnQIor5QE0uSRPtzCpSw=
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.57.0/go.mod h1:wZcGmeVO9nzP67aYSLDqXNWK87EZWhi7JWj1v7ZXf94=
|
||||
go.opentelemetry.io/contrib/zpages v0.57.0 h1:mHFZlTkyrUJcuBhpytPSaVPiVkqri96RKUDk01d83eQ=
|
||||
go.opentelemetry.io/contrib/zpages v0.57.0/go.mod h1:u/SScNsxj6TacMBA6KCJZjXVC1uwkdVgLFyHrOe0x9M=
|
||||
go.opentelemetry.io/otel v1.32.0 h1:WnBN+Xjcteh0zdk01SVqV55d/m62NJLJdIyb4y/WO5U=
|
||||
go.opentelemetry.io/otel v1.32.0/go.mod h1:00DCVSB0RQcnzlwyTfqtxSm+DRr9hpYrHjNGiBHVQIg=
|
||||
go.opentelemetry.io/otel/exporters/jaeger v1.17.0 h1:D7UpUy2Xc2wsi1Ras6V40q806WM07rqoCWzXu7Sqy+4=
|
||||
go.opentelemetry.io/otel/exporters/jaeger v1.17.0/go.mod h1:nPCqOnEH9rNLKqH/+rrUjiMzHJdV1BlpKcTwRTyKkKI=
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0 h1:K0XaT3DwHAcV4nKLzcQvwAgSyisUghWoY20I7huthMk=
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0/go.mod h1:B5Ki776z/MBnVha1Nzwp5arlzBbE3+1jk+pGmaP5HME=
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0 h1:FFeLy03iVTXP6ffeN2iXrxfGsZGCjVx0/4KlizjyBwU=
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0/go.mod h1:TMu73/k1CP8nBUpDLc71Wj/Kf7ZS9FK5b53VapRsP9o=
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.32.0 h1:IJFEoHiytixx8cMiVAO+GmHR6Frwu+u5Ur8njpFO6Ac=
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.32.0/go.mod h1:3rHrKNtLIoS0oZwkY2vxi+oJcwFRWdtUyRII+so45p8=
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.32.0 h1:9kV11HXBHZAvuPUZxmMWrH8hZn/6UnHX4K0mu36vNsU=
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.32.0/go.mod h1:JyA0FHXe22E1NeNiHmVp7kFHglnexDQ7uRWDiiJ1hKQ=
|
||||
go.opentelemetry.io/otel/metric v1.32.0 h1:xV2umtmNcThh2/a/aCP+h64Xx5wsj8qqnkYZktzNa0M=
|
||||
go.opentelemetry.io/otel/metric v1.32.0/go.mod h1:jH7CIbbK6SH2V2wE16W05BHCtIDzauciCRLoc/SyMv8=
|
||||
go.opentelemetry.io/otel/sdk v1.32.0 h1:RNxepc9vK59A8XsgZQouW8ue8Gkb4jpWtJm9ge5lEG4=
|
||||
@@ -1233,8 +1229,8 @@ golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU
|
||||
golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4=
|
||||
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
|
||||
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
|
||||
golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ=
|
||||
golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg=
|
||||
golang.org/x/crypto v0.30.0 h1:RwoQn3GkWiMkzlX562cLB7OxWvjH1L8xutO2WoJcRoY=
|
||||
golang.org/x/crypto v0.30.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||
@@ -1250,8 +1246,8 @@ golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c/go.mod h1:NQtJDoLvd6faHhE7m4
|
||||
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/image v0.10.0/go.mod h1:jtrku+n79PfroUbvDdeUWMAI+heR786BofxrbiSF+J0=
|
||||
golang.org/x/image v0.21.0 h1:c5qV36ajHpdj4Qi0GnE0jUc/yuo33OLFaa0d+crTD5s=
|
||||
golang.org/x/image v0.21.0/go.mod h1:vUbsLavqK/W303ZroQQVKQ+Af3Yl6Uz1Ppu5J/cLz78=
|
||||
golang.org/x/image v0.22.0 h1:UtK5yLUzilVrkjMAZAZ34DXGpASN8i8pj8g+O+yd10g=
|
||||
golang.org/x/image v0.22.0/go.mod h1:9hPFhljd4zZ1GNSIZJ49sqbp45GKK9t6w+iXvGqZUz4=
|
||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
@@ -1331,8 +1327,8 @@ golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
|
||||
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
|
||||
golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
|
||||
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
|
||||
golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4=
|
||||
golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU=
|
||||
golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI=
|
||||
golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
@@ -1356,8 +1352,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ
|
||||
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ=
|
||||
golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
|
||||
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.0.0-20180622082034-63fc586f45fe/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
@@ -1439,8 +1435,8 @@ golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s=
|
||||
golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
|
||||
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
@@ -1451,8 +1447,8 @@ golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
|
||||
golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U=
|
||||
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
|
||||
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
|
||||
golang.org/x/term v0.26.0 h1:WEQa6V3Gja/BhNxg540hBip/kkaYtRg3cxg4oXSw4AU=
|
||||
golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E=
|
||||
golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q=
|
||||
golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
@@ -1469,8 +1465,8 @@ golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
||||
golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug=
|
||||
golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4=
|
||||
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
|
||||
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
|
||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
@@ -1594,10 +1590,10 @@ google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6D
|
||||
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20241015192408-796eee8c2d53 h1:Df6WuGvthPzc+JiQ/G+m+sNX24kc0aTBqoDN/0yyykE=
|
||||
google.golang.org/genproto v0.0.0-20241015192408-796eee8c2d53/go.mod h1:fheguH3Am2dGp1LfXkrvwqC/KlFq8F0nLq3LryOMrrE=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38 h1:2oV8dfuIkM1Ti7DwXc0BJfnwr9csz4TDXI9EmiI+Rbw=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38/go.mod h1:vuAjtvlwkDKF6L1GQ0SokiRLCGFfeBUXWr/aFFkHACc=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 h1:zciRKQ4kBpFgpfC5QQCVtnnNAcLIqweL7plyZRQHVpI=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20241118233622-e639e219e697 h1:pgr/4QbFyktUv9CtQ/Fq4gzEE6/Xs7iCXbktaGzLHbQ=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20241118233622-e639e219e697/go.mod h1:+D9ySVjN8nY8YCVjc5O7PZDIdZporIDY3KaGfJunh88=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241118233622-e639e219e697 h1:LWZqQOEjDyONlF1H6afSWpAL/znlREo2tHfLoe+8LMA=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241118233622-e639e219e697/go.mod h1:5uTbfoYQed2U9p3KIj2/Zzm02PYhndfdmML0qC3q3FU=
|
||||
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
@@ -1631,8 +1627,8 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA=
|
||||
google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
|
||||
google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=
|
||||
google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
|
||||
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
||||
gopkg.in/cenkalti/backoff.v1 v1.1.0 h1:Arh75ttbsvlpVA7WtVpH4u9h6Zl46xuptxqLxPiSo4Y=
|
||||
gopkg.in/cenkalti/backoff.v1 v1.1.0/go.mod h1:J6Vskwqd+OMVJl8C33mmtxTBs2gyzfv7UDAkHu8BrjI=
|
||||
|
||||
@@ -1,20 +1,26 @@
|
||||
package grpc
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
mgrpcs "github.com/go-micro/plugins/v4/server/grpc"
|
||||
"github.com/go-micro/plugins/v4/wrapper/monitoring/prometheus"
|
||||
mtracer "github.com/go-micro/plugins/v4/wrapper/trace/opentelemetry"
|
||||
ociscrypto "github.com/owncloud/ocis/v2/ocis-pkg/crypto"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
|
||||
"github.com/rs/zerolog"
|
||||
"go-micro.dev/v4"
|
||||
"go-micro.dev/v4/client"
|
||||
"go-micro.dev/v4/server"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/keepalive"
|
||||
|
||||
ociscrypto "github.com/owncloud/ocis/v2/ocis-pkg/crypto"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
|
||||
)
|
||||
|
||||
// Service simply wraps the go-micro grpc service.
|
||||
@@ -54,6 +60,16 @@ func NewServiceWithClient(client client.Client, opts ...Option) (Service, error)
|
||||
mServer = mgrpcs.NewServer(mgrpcs.Options(keepaliveParams))
|
||||
}
|
||||
|
||||
handlerWrappers := []server.HandlerWrapper{
|
||||
mtracer.NewHandlerWrapper(
|
||||
mtracer.WithTraceProvider(sopts.TraceProvider),
|
||||
),
|
||||
}
|
||||
if sopts.Logger.GetLevel() == zerolog.DebugLevel {
|
||||
handlerWrappers = append(handlerWrappers, LogHandler(&sopts.Logger))
|
||||
}
|
||||
handlerWrappers = append(handlerWrappers, sopts.HandlerWrappers...)
|
||||
|
||||
mopts := []micro.Option{
|
||||
// first add a server because it will reset any options
|
||||
micro.Server(mServer),
|
||||
@@ -70,10 +86,7 @@ func NewServiceWithClient(client client.Client, opts ...Option) (Service, error)
|
||||
micro.WrapClient(mtracer.NewClientWrapper(
|
||||
mtracer.WithTraceProvider(sopts.TraceProvider),
|
||||
)),
|
||||
micro.WrapHandler(mtracer.NewHandlerWrapper(
|
||||
mtracer.WithTraceProvider(sopts.TraceProvider),
|
||||
)),
|
||||
micro.WrapHandler(sopts.HandlerWrappers...),
|
||||
micro.WrapHandler(handlerWrappers...),
|
||||
micro.WrapSubscriber(mtracer.NewSubscriberWrapper(
|
||||
mtracer.WithTraceProvider(sopts.TraceProvider),
|
||||
)),
|
||||
@@ -81,3 +94,26 @@ func NewServiceWithClient(client client.Client, opts ...Option) (Service, error)
|
||||
|
||||
return Service{micro.NewService(mopts...)}, nil
|
||||
}
|
||||
|
||||
// If used with tracing, please ensure this is registered (by micro.WrapHandler()) after
|
||||
// micro-plugin's opentracing wrapper: `opentracing.NewHandlerWrapper()`
|
||||
func LogHandler(l *log.Logger) func(fn server.HandlerFunc) server.HandlerFunc {
|
||||
return func(fn server.HandlerFunc) server.HandlerFunc {
|
||||
return func(ctx context.Context, req server.Request, rsp interface{}) error {
|
||||
now := time.Now()
|
||||
spanContext := trace.SpanContextFromContext(ctx)
|
||||
defer func() {
|
||||
l.Debug().
|
||||
Str("traceid", spanContext.TraceID().String()).
|
||||
Str("method", req.Method()).
|
||||
Str("endpoint", req.Endpoint()).
|
||||
Str("content-type", req.ContentType()).
|
||||
Str("service", req.Service()).
|
||||
Interface("headers", req.Header()).
|
||||
Dur("duration", time.Since(now)).
|
||||
Msg("grpc call")
|
||||
}()
|
||||
return fn(ctx, req, rsp)
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
-11
@@ -9,7 +9,7 @@ import (
|
||||
func MissingMachineAuthApiKeyError(service string) error {
|
||||
return fmt.Errorf("The Machineauth API key has not been configured for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -17,7 +17,7 @@ func MissingMachineAuthApiKeyError(service string) error {
|
||||
func MissingSystemUserApiKeyError(service string) error {
|
||||
return fmt.Errorf("The SystemUser API key has not been configured for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -25,7 +25,7 @@ func MissingSystemUserApiKeyError(service string) error {
|
||||
func MissingJWTTokenError(service string) error {
|
||||
return fmt.Errorf("The jwt_secret has not been set properly in your config for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -33,7 +33,7 @@ func MissingJWTTokenError(service string) error {
|
||||
func MissingRevaTransferSecretError(service string) error {
|
||||
return fmt.Errorf("The transfer_secret has not been set properly in your config for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -41,7 +41,7 @@ func MissingRevaTransferSecretError(service string) error {
|
||||
func MissingLDAPBindPassword(service string) error {
|
||||
return fmt.Errorf("The ldap bind_password has not been set properly in your config for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -49,7 +49,7 @@ func MissingLDAPBindPassword(service string) error {
|
||||
func MissingServiceUserPassword(service, serviceUser string) error {
|
||||
return fmt.Errorf("The password of service user %s has not been set properly in your config for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
serviceUser, service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -57,7 +57,7 @@ func MissingServiceUserPassword(service, serviceUser string) error {
|
||||
func MissingSystemUserID(service string) error {
|
||||
return fmt.Errorf("The system user ID has not been configured for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -65,7 +65,7 @@ func MissingSystemUserID(service string) error {
|
||||
func MissingAdminUserID(service string) error {
|
||||
return fmt.Errorf("The admin user ID has not been configured for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -73,7 +73,7 @@ func MissingAdminUserID(service string) error {
|
||||
func MissingServiceAccountID(service string) error {
|
||||
return fmt.Errorf("The service account id has not been configured for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -81,7 +81,7 @@ func MissingServiceAccountID(service string) error {
|
||||
func MissingServiceAccountSecret(service string) error {
|
||||
return fmt.Errorf("The service account secret has not been configured for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -89,7 +89,7 @@ func MissingServiceAccountSecret(service string) error {
|
||||
func MissingWOPISecretError(service string) error {
|
||||
return fmt.Errorf("The WOPI secret has not been set properly in your config for %s. "+
|
||||
"Make sure your %s config contains the proper values "+
|
||||
"(e.g. by running ocis init or setting it manually in "+
|
||||
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
|
||||
"the config/corresponding environment variable).",
|
||||
service, defaults.BaseConfigPath())
|
||||
}
|
||||
@@ -16,7 +16,7 @@ var (
|
||||
// LatestTag is the latest released version plus the dev meta version.
|
||||
// Will be overwritten by the release pipeline
|
||||
// Needs a manual change for every tagged release
|
||||
LatestTag = "7.0.0-rc.2+dev"
|
||||
LatestTag = "7.0.0-rc.5+dev"
|
||||
|
||||
// Date indicates the build date.
|
||||
// This has been removed, it looks like you can only replace static strings with recent go versions
|
||||
|
||||
@@ -59,6 +59,14 @@ Allows specifying the blobstore to use. Defaults to `ocis`. Empty blobs will not
|
||||
* `--fail`\
|
||||
Exits with non-zero exit code if inconsistencies are found. Useful for automation.
|
||||
|
||||
### Cleanup Orphaned Shares
|
||||
|
||||
When a shared space or directory got deleted, use the `shares cleanup` command to remove those share orphans. This can't be done automatically at the moment.
|
||||
|
||||
```bash
|
||||
ocis shares cleanup
|
||||
```
|
||||
|
||||
### Revisions CLI
|
||||
|
||||
The revisions command allows removing the revisions of files in the storage.
|
||||
|
||||
@@ -24,6 +24,7 @@ import (
|
||||
"github.com/cs3org/reva/v2/pkg/store"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/config"
|
||||
"github.com/owncloud/ocis/v2/ocis/pkg/register"
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
@@ -96,7 +97,7 @@ func check(c *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
tree := tree.New(lu, bs, o, store.Create())
|
||||
tree := tree.New(lu, bs, o, store.Create(), &zerolog.Logger{})
|
||||
|
||||
nId := c.String("node")
|
||||
n, err := lu.NodeFromSpaceID(context.Background(), nId)
|
||||
|
||||
@@ -519,7 +519,7 @@ func revaShareConfig(cfg *sharing.Config) map[string]interface{} {
|
||||
"machine_auth_apikey": cfg.UserSharingDrivers.CS3.SystemUserAPIKey,
|
||||
},
|
||||
"jsoncs3": map[string]interface{}{
|
||||
"gateway_addr": cfg.UserSharingDrivers.JSONCS3.ProviderAddr,
|
||||
"gateway_addr": cfg.Reva.Address,
|
||||
"provider_addr": cfg.UserSharingDrivers.JSONCS3.ProviderAddr,
|
||||
"service_user_id": cfg.UserSharingDrivers.JSONCS3.SystemUserID,
|
||||
"service_user_idp": cfg.UserSharingDrivers.JSONCS3.SystemUserIDP,
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/cs3org/reva/v2/pkg/rgrpc/todo/pool"
|
||||
"github.com/cs3org/reva/v2/pkg/share/manager/jsoncs3"
|
||||
"github.com/cs3org/reva/v2/pkg/share/manager/registry"
|
||||
"github.com/cs3org/reva/v2/pkg/utils"
|
||||
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/config"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/config/configlog"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/config/parser"
|
||||
mregistry "github.com/owncloud/ocis/v2/ocis-pkg/registry"
|
||||
"github.com/owncloud/ocis/v2/ocis/pkg/register"
|
||||
sharingparser "github.com/owncloud/ocis/v2/services/sharing/pkg/config/parser"
|
||||
)
|
||||
|
||||
// SharesCommand is the entrypoint for the groups command.
|
||||
func SharesCommand(cfg *config.Config) *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "shares",
|
||||
Usage: `cli tools to manage entries in the share manager.`,
|
||||
Category: "maintenance",
|
||||
Before: func(c *cli.Context) error {
|
||||
// Parse base config
|
||||
if err := parser.ParseConfig(cfg, true); err != nil {
|
||||
return configlog.ReturnError(err)
|
||||
}
|
||||
|
||||
// Parse sharing config
|
||||
cfg.Sharing.Commons = cfg.Commons
|
||||
return configlog.ReturnError(sharingparser.ParseConfig(cfg.Sharing))
|
||||
},
|
||||
Subcommands: []*cli.Command{
|
||||
cleanupCmd(cfg),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
register.AddCommand(SharesCommand)
|
||||
}
|
||||
|
||||
func cleanupCmd(cfg *config.Config) *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "cleanup",
|
||||
Usage: `clean up stale entries in the share manager.`,
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "service-account-id",
|
||||
Value: "",
|
||||
Usage: "Name of the service account to use for the cleanup",
|
||||
EnvVars: []string{"OCIS_SERVICE_ACCOUNT_ID"},
|
||||
Required: true,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "service-account-secret",
|
||||
Value: "",
|
||||
Usage: "Secret for the service account",
|
||||
EnvVars: []string{"OCIS_SERVICE_ACCOUNT_SECRET"},
|
||||
Required: true,
|
||||
},
|
||||
},
|
||||
Before: func(c *cli.Context) error {
|
||||
// Parse base config
|
||||
if err := parser.ParseConfig(cfg, true); err != nil {
|
||||
return configlog.ReturnError(err)
|
||||
}
|
||||
|
||||
// Parse sharing config
|
||||
cfg.Sharing.Commons = cfg.Commons
|
||||
return configlog.ReturnError(sharingparser.ParseConfig(cfg.Sharing))
|
||||
},
|
||||
Action: func(c *cli.Context) error {
|
||||
return cleanup(c, cfg)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func cleanup(c *cli.Context, cfg *config.Config) error {
|
||||
driver := cfg.Sharing.UserSharingDriver
|
||||
// cleanup is only implemented for the jsoncs3 share manager
|
||||
if driver != "jsoncs3" {
|
||||
return configlog.ReturnError(errors.New("cleanup is only implemented for the jsoncs3 share manager"))
|
||||
}
|
||||
|
||||
rcfg := revaShareConfig(cfg.Sharing)
|
||||
f, ok := registry.NewFuncs[driver]
|
||||
if !ok {
|
||||
return configlog.ReturnError(errors.New("Unknown share manager type '" + driver + "'"))
|
||||
}
|
||||
mgr, err := f(rcfg[driver].(map[string]interface{}))
|
||||
if err != nil {
|
||||
return configlog.ReturnError(err)
|
||||
}
|
||||
|
||||
// Initialize registry to make service lookup work
|
||||
_ = mregistry.GetRegistry()
|
||||
|
||||
// get an authenticated context
|
||||
gatewaySelector, err := pool.GatewaySelector(cfg.Sharing.Reva.Address)
|
||||
if err != nil {
|
||||
return configlog.ReturnError(err)
|
||||
}
|
||||
|
||||
client, err := gatewaySelector.Next()
|
||||
if err != nil {
|
||||
return configlog.ReturnError(err)
|
||||
}
|
||||
|
||||
serviceUserCtx, err := utils.GetServiceUserContext(c.String("service-account-id"), client, c.String("service-account-secret"))
|
||||
if err != nil {
|
||||
return configlog.ReturnError(err)
|
||||
}
|
||||
|
||||
l := logger()
|
||||
|
||||
zerolog.SetGlobalLevel(zerolog.InfoLevel)
|
||||
serviceUserCtx = l.WithContext(serviceUserCtx)
|
||||
|
||||
mgr.(*jsoncs3.Manager).CleanupStaleShares(serviceUserCtx)
|
||||
|
||||
return nil
|
||||
}
|
||||
@@ -86,6 +86,10 @@ func writePatch(configPath string, yamlOutput []byte) error {
|
||||
cmd := exec.Command("diff", "-u", path.Join(configPath, configFilename), tmpFile)
|
||||
stdout, err := cmd.Output()
|
||||
if err == nil {
|
||||
err = os.Remove(tmpFile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println("no changes, your config is up to date")
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -83,6 +83,12 @@ func CreateConfig(insecure, forceOverwrite, diff bool, configPath, adminPassword
|
||||
revaServicePassword = oldCfg.Idm.ServiceUserPasswords.RevaPassword
|
||||
tokenManagerJwtSecret = oldCfg.TokenManager.JWTSecret
|
||||
collaborationWOPISecret = oldCfg.Collaboration.WopiApp.Secret
|
||||
if collaborationWOPISecret == "" {
|
||||
collaborationWOPISecret, err = generators.GenerateRandomPassword(passwordLength)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not generate random wopi secret for collaboration service: %s", err)
|
||||
}
|
||||
}
|
||||
machineAuthAPIKey = oldCfg.MachineAuthAPIKey
|
||||
systemUserAPIKey = oldCfg.SystemUserAPIKey
|
||||
revaTransferSecret = oldCfg.TransferSecret
|
||||
|
||||
@@ -204,7 +204,7 @@ func (s *ActivitylogService) HandleGetItemActivities(w http.ResponseWriter, r *h
|
||||
WithVar("resource", storagespace.FormatResourceID(ev.ItemID), ev.ResourceName),
|
||||
WithUser(ev.Executant, nil, nil),
|
||||
WithTranslation(&t, loc, "field", []string{ev.FieldUpdated}),
|
||||
WithVar("token", ev.ItemID.GetOpaqueId(), ev.Token))
|
||||
WithVar("token", ev.ItemID.GetOpaqueId(), ev.DisplayName))
|
||||
case events.LinkRemoved:
|
||||
message = MessageLinkDeleted
|
||||
ts = utils.TSToTime(ev.Timestamp)
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-11-10 00:05+0000\n"
|
||||
"POT-Creation-Date: 2024-11-30 00:18+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Martin <github@diemattels.at>, 2024\n"
|
||||
"Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-10-28 00:04+0000\n"
|
||||
"POT-Creation-Date: 2024-12-08 00:19+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Andi Chandler <andi@gowling.com>, 2024\n"
|
||||
"Language-Team: English (United Kingdom) (https://app.transifex.com/owncloud-org/teams/6149/en_GB/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-11-06 00:05+0000\n"
|
||||
"POT-Creation-Date: 2024-12-16 00:19+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Jesús Recio <jrecio@solidgear.es>, 2024\n"
|
||||
"Language-Team: Spanish (https://app.transifex.com/owncloud-org/teams/6149/es/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-10-31 05:08+0000\n"
|
||||
"POT-Creation-Date: 2024-12-12 00:51+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: hoshi1800 <hoshi1800@gmail.com>, 2024\n"
|
||||
"Language-Team: Japanese (Japan) (https://app.transifex.com/owncloud-org/teams/6149/ja_JP/)\n"
|
||||
|
||||
@@ -12,7 +12,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-11-03 00:06+0000\n"
|
||||
"POT-Creation-Date: 2024-12-14 00:17+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Flávio Veras <flaviove@gmail.com>, 2024\n"
|
||||
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/owncloud-org/teams/6149/pt_BR/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-11-07 00:42+0000\n"
|
||||
"POT-Creation-Date: 2024-11-28 00:19+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Viktor Scharf, 2024\n"
|
||||
"Language-Team: Russian (https://app.transifex.com/owncloud-org/teams/6149/ru/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-11-09 00:04+0000\n"
|
||||
"POT-Creation-Date: 2024-11-29 00:18+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Besnik Bleta <besnik@programeshqip.org>, 2024\n"
|
||||
"Language-Team: Albanian (https://app.transifex.com/owncloud-org/teams/6149/sq/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-11-04 00:04+0000\n"
|
||||
"POT-Creation-Date: 2024-12-15 00:43+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Keram, 2024\n"
|
||||
"Language-Team: Uyghur (https://app.transifex.com/owncloud-org/teams/6149/ug/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-11-02 00:43+0000\n"
|
||||
"POT-Creation-Date: 2024-12-14 00:17+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Roman Perekhod, 2024\n"
|
||||
"Language-Team: Ukrainian (https://app.transifex.com/owncloud-org/teams/6149/uk/)\n"
|
||||
|
||||
@@ -331,7 +331,7 @@ func getFolderName(ctx context.Context, gwc gateway.GatewayAPIClient, ref *provi
|
||||
|
||||
func mapField(val string) string {
|
||||
switch val {
|
||||
case "TYPE_PERMISSIONS", "permission":
|
||||
case "TYPE_PERMISSIONS", "permission", "permissions":
|
||||
return StrPermission
|
||||
case "TYPE_PASSWORD", "password":
|
||||
return StrPassword
|
||||
|
||||
@@ -2,6 +2,19 @@
|
||||
|
||||
The `antivirus` service is responsible for scanning files for viruses.
|
||||
|
||||
## Memory Considerations
|
||||
|
||||
The antivirus service can consume considerably amounts of memory. This is relevant to provide or define sufficient memory for the deployment selected. To avoid out of memory (OOM) situations, the following equation gives a rough overview based on experiences made. The memory calculation comes without any guarantee, is intended as overview only and subject of change.
|
||||
|
||||
`memory limit` = `max file size` x `workers` x `factor 8 - 14`
|
||||
|
||||
With:
|
||||
`ANTIVIRUS_WORKERS` == 1
|
||||
```plaintext
|
||||
50MB file --> factor 14 --> 700MB memory
|
||||
844MB file --> factor 8,3 --> 7GB memory
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
### Antivirus Scanner Type
|
||||
|
||||
@@ -35,9 +35,85 @@ Once generated, these tokens can be used to authenticate requests to ocis. They
|
||||
|
||||
### Via API
|
||||
|
||||
The `auth-app` service provides an API to create (POST), list (GET) and delete (DELETE) tokens at `/auth-app/tokens`.
|
||||
The `auth-app` service provides an API to create (POST), list (GET) and delete (DELETE) tokens at the `/auth-app/tokens` endpoint.
|
||||
|
||||
When using curl for the respective command, you need to authenticate with a header. To do so, get from the browsers developer console the currently active bearer token. Consider that this token has a short lifetime. In any example, replace `<your host[:port]>` with the URL:port of your Infinite Scale instance, and `{token}` `{value}` accordingly. Note that the active bearer token authenticates the user the token was issued for.
|
||||
|
||||
* **Create a token**\
|
||||
The POST request requires:
|
||||
* A `expiry` key/value pair in the form of `expiry=<number><h|m|s>`\
|
||||
Example: `expiry=72h`
|
||||
* An active bearer token
|
||||
```bash
|
||||
curl --request POST 'https://<your host:9200>/auth-app/tokens?expiry={value}' \
|
||||
--header 'accept: application/json' \
|
||||
--header 'authorization: Bearer {token}'
|
||||
```
|
||||
Example output:
|
||||
```
|
||||
{
|
||||
"token": "3s2K7816M4vuSpd5",
|
||||
"expiration_date": "2024-08-08T13:42:42.796888022+02:00",
|
||||
"created_date": "2024-08-07T13:42:42+02:00",
|
||||
"label": "Generated via API"
|
||||
}
|
||||
```
|
||||
|
||||
* **List tokens**\
|
||||
The GET request only requires an active bearer token for authentication:\
|
||||
Note that `--request GET` is technically not required because it is curl default.
|
||||
```bash
|
||||
curl --request GET 'https://<your host:9200>/auth-app/tokens' \
|
||||
--header 'accept: application/json' \
|
||||
--header 'authorization: Bearer {token}'
|
||||
```
|
||||
Example output:
|
||||
```
|
||||
[
|
||||
{
|
||||
"token": "$2a$11$EyudDGAJ18bBf5NG6PL9Ru9gygZAu0oPyLawdieNjGozcbXyyuUhG",
|
||||
"expiration_date": "2024-08-08T13:44:31.025199075+02:00",
|
||||
"created_date": "2024-08-07T13:44:31+02:00",
|
||||
"label": "Generated via Impersonation API"
|
||||
},
|
||||
{
|
||||
"token": "$2a$11$dfRBQrxRMPg8fvyvkFwaX.IPoIUiokvhzK.YNI/pCafk0us3MyPzy",
|
||||
"expiration_date": "2024-08-08T13:46:41.936052281+02:00",
|
||||
"created_date": "2024-08-07T13:46:42+02:00",
|
||||
"label": "Generated via Impersonation API"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
* **Delete a token**\
|
||||
The DELETE request requires:
|
||||
* A `token` key/value pair in the form of `token=<token_issued>`\
|
||||
Example: `token=Z3s2K7816M4vuSpd5`
|
||||
* An active bearer token
|
||||
```bash
|
||||
curl --request DELETE 'https://<your host:9200>/auth-app/tokens?token={value}' \
|
||||
--header 'accept: application/json' \
|
||||
--header 'authorization: Bearer {token}'
|
||||
```
|
||||
|
||||
### Via Impersonation API
|
||||
|
||||
When setting the environment variable `AUTH_APP_ENABLE_IMPERSONATION` to `true`, admins will be able to use the `/auth-app/tokens` endpoint to create tokens for other users. This is crucial for migration scenarios,
|
||||
but should not be used on a productive system.
|
||||
When setting the environment variable `AUTH_APP_ENABLE_IMPERSONATION` to `true`, admins will be able to use the `/auth-app/tokens` endpoint to create tokens for other users but using their own bearer token for authentication. This can be important for migration scenarios, but should not be considered for regular tasks on a production system for security reasons.
|
||||
|
||||
To impersonate, the respective requests from the CLI commands above extend with the following parameters, where you can use one or the other:
|
||||
|
||||
* The `userID` in the form of: `userID={value}`\
|
||||
Example:\
|
||||
`userID=4c510ada- ... -42cdf82c3d51`
|
||||
|
||||
* The `userName` in the form of: `userName={value}`\
|
||||
Example:\
|
||||
`userName=einstein`
|
||||
|
||||
Example:\
|
||||
A final create request would then look like:
|
||||
```bash
|
||||
curl --request POST 'https://<your host:9200>/auth-app/tokens?expiry={value}&userName={value}' \
|
||||
--header 'accept: application/json' \
|
||||
--header 'authorization: Bearer {token}'
|
||||
```
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
@@ -25,6 +26,8 @@ import (
|
||||
"google.golang.org/grpc/metadata"
|
||||
)
|
||||
|
||||
var ErrBadRequest = errors.New("bad request")
|
||||
|
||||
// AuthAppToken represents an app token.
|
||||
type AuthAppToken struct {
|
||||
Token string `json:"token"`
|
||||
@@ -97,8 +100,10 @@ func (a *AuthAppService) HandleCreate(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
label := "Generated via API"
|
||||
cid := buildClientID(q.Get("userID"), q.Get("userName"))
|
||||
if cid != "" {
|
||||
|
||||
// Impersonated request
|
||||
userID, userName := q.Get("userID"), q.Get("userName")
|
||||
if userID != "" || userName != "" {
|
||||
if !a.cfg.AllowImpersonation {
|
||||
sublog.Error().Msg("impersonation is not allowed")
|
||||
http.Error(w, "impersonation is not allowed", http.StatusForbidden)
|
||||
@@ -115,9 +120,13 @@ func (a *AuthAppService) HandleCreate(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusForbidden)
|
||||
return
|
||||
}
|
||||
ctx, err = a.authenticateUser(cid, gwc)
|
||||
ctx, err = a.authenticateUser(userID, userName, gwc)
|
||||
if err != nil {
|
||||
sublog.Error().Err(err).Msg("error authenticating user")
|
||||
if errors.Is(err, ErrBadRequest) {
|
||||
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
@@ -241,11 +250,11 @@ func (a *AuthAppService) HandleDelete(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}
|
||||
|
||||
func (a *AuthAppService) authenticateUser(clientID string, gwc gateway.GatewayAPIClient) (context.Context, error) {
|
||||
func (a *AuthAppService) authenticateUser(userID, userName string, gwc gateway.GatewayAPIClient) (context.Context, error) {
|
||||
ctx := context.Background()
|
||||
authRes, err := gwc.Authenticate(ctx, &gateway.AuthenticateRequest{
|
||||
Type: "machine",
|
||||
ClientId: clientID,
|
||||
ClientId: buildClientID(userID, userName),
|
||||
ClientSecret: a.cfg.MachineAuthAPIKey,
|
||||
})
|
||||
if err != nil {
|
||||
@@ -256,6 +265,10 @@ func (a *AuthAppService) authenticateUser(clientID string, gwc gateway.GatewayAP
|
||||
return nil, errors.New("error authenticating user: " + authRes.GetStatus().GetMessage())
|
||||
}
|
||||
|
||||
if (userID != "" && authRes.GetUser().GetId().GetOpaqueId() != userID) || (userName != "" && authRes.GetUser().GetUsername() != userName) {
|
||||
return nil, fmt.Errorf("requested user does not match authenticated user: userID:%s, userName:%s, %w", authRes.GetUser().GetId().GetOpaqueId(), authRes.GetUser().GetUsername(), ErrBadRequest)
|
||||
}
|
||||
|
||||
ctx = ctxpkg.ContextSetUser(ctx, &userpb.User{Id: authRes.GetUser().GetId()})
|
||||
return metadata.AppendToOutgoingContext(ctx, ctxpkg.TokenHeader, authRes.GetToken()), nil
|
||||
}
|
||||
|
||||
@@ -27,8 +27,11 @@ If any of the named services above have not been started or are not reachable, t
|
||||
There are a few variables that you need to set:
|
||||
|
||||
* `COLLABORATION_APP_NAME`:\
|
||||
The name of the connected WebOffice app, which can be one of the following:\
|
||||
`Collabora`, `OnlyOffice`, `Microsoft365` or `MicrosoftOfficeOnline`.
|
||||
The name of the app which is shown to the user. You can chose freely but you are limited to a single word without special characters or whitespaces. We recommend to use pascalCase like 'CollaboraOnline'.
|
||||
|
||||
* `COLLABORATION_APP_PRODUCT`:\
|
||||
The product name of the connected WebOffice app, which can be one of the following:\
|
||||
`Collabora`, `OnlyOffice`, `Microsoft365` or `MicrosoftOfficeOnline`. This is used to internally control the behavior according to the different features of the used products.
|
||||
|
||||
* `COLLABORATION_APP_ADDR`:\
|
||||
The URL of the collaborative editing app (onlyoffice, collabora, etc).\
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"encoding/base64"
|
||||
"encoding/binary"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/url"
|
||||
"path"
|
||||
@@ -13,15 +14,18 @@ import (
|
||||
"time"
|
||||
|
||||
appproviderv1beta1 "github.com/cs3org/go-cs3apis/cs3/app/provider/v1beta1"
|
||||
auth "github.com/cs3org/go-cs3apis/cs3/auth/provider/v1beta1"
|
||||
gatewayv1beta1 "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
|
||||
userv1beta1 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
||||
rpcv1beta1 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
|
||||
link "github.com/cs3org/go-cs3apis/cs3/sharing/link/v1beta1"
|
||||
providerv1beta1 "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
|
||||
typesv1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
|
||||
ctxpkg "github.com/cs3org/reva/v2/pkg/ctx"
|
||||
"github.com/cs3org/reva/v2/pkg/rgrpc/todo/pool"
|
||||
"github.com/cs3org/reva/v2/pkg/storagespace"
|
||||
"github.com/cs3org/reva/v2/pkg/utils"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"github.com/google/uuid"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/config"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/connector/fileinfo"
|
||||
@@ -1206,7 +1210,7 @@ func (f *FileConnector) CheckFileInfo(ctx context.Context) (*ConnectorResponse,
|
||||
}
|
||||
}
|
||||
|
||||
breadcrumbFolderName := path.Dir(statRes.Info.Path)
|
||||
breadcrumbFolderName := path.Dir(statRes.GetInfo().GetPath())
|
||||
if breadcrumbFolderName == "." || breadcrumbFolderName == "" || breadcrumbFolderName == "/" {
|
||||
breadcrumbFolderName = statRes.GetInfo().GetSpace().GetName()
|
||||
}
|
||||
@@ -1222,6 +1226,22 @@ func (f *FileConnector) CheckFileInfo(ctx context.Context) (*ConnectorResponse,
|
||||
privateLinkURL := &url.URL{}
|
||||
*privateLinkURL = *ocisURL
|
||||
privateLinkURL.Path = path.Join(ocisURL.Path, "f", storagespace.FormatResourceID(statRes.GetInfo().GetId()))
|
||||
parentFolderURL := &url.URL{}
|
||||
*parentFolderURL = *ocisURL
|
||||
if !isPublicShare {
|
||||
parentFolderURL.Path = path.Join(ocisURL.Path, "f", storagespace.FormatResourceID(statRes.GetInfo().GetParentId()))
|
||||
} else {
|
||||
if scopes, ok := ctxpkg.ContextGetScopes(ctx); ok {
|
||||
publicShare := &link.PublicShare{}
|
||||
if err := f.getScopeByKeyPrefix(scopes, "publicshare:", publicShare); err == nil {
|
||||
parentFolderURL.Path = path.Join(ocisURL.Path, "s", publicShare.GetToken())
|
||||
} else {
|
||||
logger.Error().Err(err).Msg("CheckFileInfo: error getting public share scope")
|
||||
}
|
||||
} else {
|
||||
logger.Error().Err(err).Msg("CheckFileInfo: error getting scopes from the context")
|
||||
}
|
||||
}
|
||||
// fileinfo map
|
||||
infoMap := map[string]interface{}{
|
||||
fileinfo.KeyOwnerID: hexEncodedOwnerId,
|
||||
@@ -1231,7 +1251,7 @@ func (f *FileConnector) CheckFileInfo(ctx context.Context) (*ConnectorResponse,
|
||||
fileinfo.KeyBreadcrumbDocName: path.Base(statRes.GetInfo().GetPath()),
|
||||
// to get the folder we actually need to do a GetPath() request
|
||||
fileinfo.KeyBreadcrumbFolderName: breadcrumbFolderName,
|
||||
fileinfo.KeyBreadcrumbFolderURL: privateLinkURL.String(),
|
||||
fileinfo.KeyBreadcrumbFolderURL: parentFolderURL.String(),
|
||||
|
||||
fileinfo.KeyHostViewURL: createHostUrl("view", ocisURL, f.cfg.App.Name, statRes.GetInfo()),
|
||||
fileinfo.KeyHostEditURL: createHostUrl("write", ocisURL, f.cfg.App.Name, statRes.GetInfo()),
|
||||
@@ -1466,3 +1486,17 @@ func (f *FileConnector) adjustWopiReference(ctx context.Context, wopiContext *mi
|
||||
|
||||
return newStatRes.GetInfo(), nil
|
||||
}
|
||||
|
||||
// getScopeByKeyPrefix returns the scope from the AccessToken Scope map by key prefix
|
||||
func (f *FileConnector) getScopeByKeyPrefix(scopes map[string]*auth.Scope, keyPrefix string, m proto.Message) error {
|
||||
for k, v := range scopes {
|
||||
if strings.HasPrefix(k, keyPrefix) && v.Resource.Decoder == "json" {
|
||||
err := utils.UnmarshalJSONToProtoV1(v.Resource.Value, m)
|
||||
if err != nil {
|
||||
return fmt.Errorf("can't unmarshal public share from scope: %w", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
return fmt.Errorf("scope %s not found", keyPrefix)
|
||||
}
|
||||
@@ -10,12 +10,15 @@ import (
|
||||
"strings"
|
||||
|
||||
appproviderv1beta1 "github.com/cs3org/go-cs3apis/cs3/app/provider/v1beta1"
|
||||
auth "github.com/cs3org/go-cs3apis/cs3/auth/provider/v1beta1"
|
||||
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
|
||||
userv1beta1 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
||||
link "github.com/cs3org/go-cs3apis/cs3/sharing/link/v1beta1"
|
||||
providerv1beta1 "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
|
||||
typesv1beta1 "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
|
||||
ctxpkg "github.com/cs3org/reva/v2/pkg/ctx"
|
||||
"github.com/cs3org/reva/v2/pkg/rgrpc/status"
|
||||
"github.com/cs3org/reva/v2/pkg/utils"
|
||||
cs3mocks "github.com/cs3org/reva/v2/tests/cs3mocks/mocks"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
@@ -1686,6 +1689,11 @@ var _ = Describe("FileConnector", func() {
|
||||
OpaqueId: "opaqueid",
|
||||
SpaceId: "spaceid",
|
||||
},
|
||||
ParentId: &providerv1beta1.ResourceId{
|
||||
StorageId: "storageid",
|
||||
OpaqueId: "parentopaqueid",
|
||||
SpaceId: "spaceid",
|
||||
},
|
||||
},
|
||||
}, nil)
|
||||
|
||||
@@ -1696,7 +1704,7 @@ var _ = Describe("FileConnector", func() {
|
||||
BaseFileName: "test.txt",
|
||||
BreadcrumbDocName: "test.txt",
|
||||
BreadcrumbFolderName: "/path/to",
|
||||
BreadcrumbFolderURL: "https://ocis.example.prv/f/storageid$spaceid%21opaqueid",
|
||||
BreadcrumbFolderURL: "https://ocis.example.prv/f/storageid$spaceid%21parentopaqueid",
|
||||
UserCanNotWriteRelative: false,
|
||||
SupportsExtendedLockLength: true,
|
||||
SupportsGetLock: true,
|
||||
@@ -1755,6 +1763,11 @@ var _ = Describe("FileConnector", func() {
|
||||
OpaqueId: "opaqueid",
|
||||
SpaceId: "spaceid",
|
||||
},
|
||||
ParentId: &providerv1beta1.ResourceId{
|
||||
StorageId: "storageid",
|
||||
OpaqueId: "parentopaqueid",
|
||||
SpaceId: "spaceid",
|
||||
},
|
||||
// Other properties aren't used for now.
|
||||
},
|
||||
}, nil)
|
||||
@@ -1796,6 +1809,109 @@ var _ = Describe("FileConnector", func() {
|
||||
Expect(response.Body.(*fileinfo.Collabora)).To(Equal(expectedFileInfo))
|
||||
})
|
||||
|
||||
It("Stat success guests", func() {
|
||||
ResourceId := &providerv1beta1.ResourceId{
|
||||
StorageId: "storageid",
|
||||
OpaqueId: "opaqueid",
|
||||
SpaceId: "spaceid",
|
||||
}
|
||||
|
||||
// add user's opaque to include public-share-role
|
||||
u := &userv1beta1.User{}
|
||||
u.Opaque = &typesv1beta1.Opaque{
|
||||
Map: map[string]*typesv1beta1.OpaqueEntry{
|
||||
"public-share-role": {
|
||||
Decoder: "plain",
|
||||
Value: []byte("viewer"),
|
||||
},
|
||||
},
|
||||
}
|
||||
// Create a new "scope share" to only expose the required fields `ResourceId` and `Token` to the scope.
|
||||
scopeShare := &link.PublicShare{ResourceId: ResourceId, Token: "ABC123"}
|
||||
val, err := utils.MarshalProtoV1ToJSON(scopeShare)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
scopes := map[string]*auth.Scope{
|
||||
"publicshare:ABC123": {
|
||||
Resource: &typesv1beta1.OpaqueEntry{
|
||||
Decoder: "json",
|
||||
Value: val,
|
||||
},
|
||||
Role: auth.Role(appproviderv1beta1.ViewMode_VIEW_MODE_VIEW_ONLY), //
|
||||
},
|
||||
}
|
||||
// change view mode to view only
|
||||
wopiCtx.ViewMode = appproviderv1beta1.ViewMode_VIEW_MODE_VIEW_ONLY
|
||||
|
||||
ctx := middleware.WopiContextToCtx(context.Background(), wopiCtx)
|
||||
ctx = ctxpkg.ContextSetUser(ctx, u)
|
||||
ctx = ctxpkg.ContextSetScopes(ctx, scopes)
|
||||
|
||||
gatewayClient.On("Stat", mock.Anything, mock.Anything).Times(1).Return(&providerv1beta1.StatResponse{
|
||||
Status: status.NewOK(ctx),
|
||||
Info: &providerv1beta1.ResourceInfo{
|
||||
Owner: &userv1beta1.UserId{
|
||||
Idp: "customIdp",
|
||||
OpaqueId: "aabbcc",
|
||||
Type: userv1beta1.UserType_USER_TYPE_PRIMARY,
|
||||
},
|
||||
Size: uint64(998877),
|
||||
Mtime: &typesv1beta1.Timestamp{
|
||||
Seconds: uint64(16273849),
|
||||
},
|
||||
Path: "/path/to/test.txt",
|
||||
Id: ResourceId,
|
||||
ParentId: &providerv1beta1.ResourceId{
|
||||
StorageId: "storageid",
|
||||
OpaqueId: "parentopaqueid",
|
||||
SpaceId: "spaceid",
|
||||
},
|
||||
// Other properties aren't used for now.
|
||||
},
|
||||
}, nil)
|
||||
|
||||
// change wopi app provider
|
||||
cfg.App.Name = "OnlyOffice"
|
||||
cfg.App.Product = "OnlyOffice"
|
||||
|
||||
expectedFileInfo := &fileinfo.OnlyOffice{
|
||||
Version: "v162738490",
|
||||
BaseFileName: "test.txt",
|
||||
BreadcrumbDocName: "test.txt",
|
||||
BreadcrumbFolderName: "/path/to",
|
||||
BreadcrumbFolderURL: "https://ocis.example.prv/s/ABC123",
|
||||
DisablePrint: true,
|
||||
UserCanNotWriteRelative: false,
|
||||
SupportsLocks: true,
|
||||
SupportsUpdate: true,
|
||||
SupportsRename: true,
|
||||
IsAnonymousUser: true,
|
||||
UserCanRename: false,
|
||||
UserCanReview: false,
|
||||
UserCanWrite: false,
|
||||
EnableInsertRemoteImage: false,
|
||||
UserID: "guest-zzz000",
|
||||
UserFriendlyName: "guest zzz000",
|
||||
FileSharingURL: "https://ocis.example.prv/f/storageid$spaceid%21opaqueid?details=sharing",
|
||||
FileVersionURL: "https://ocis.example.prv/f/storageid$spaceid%21opaqueid?details=versions",
|
||||
HostEditURL: "https://ocis.example.prv/external-onlyoffice/path/to/test.txt?fileId=storageid%24spaceid%21opaqueid&view_mode=write",
|
||||
PostMessageOrigin: "https://ocis.example.prv",
|
||||
}
|
||||
|
||||
response, err := fc.CheckFileInfo(ctx)
|
||||
|
||||
// UserID and UserFriendlyName have random Ids generated which are impossible to guess
|
||||
// Check both separately
|
||||
Expect(response.Body.(*fileinfo.OnlyOffice).UserID).To(HavePrefix(hex.EncodeToString([]byte("guest-"))))
|
||||
Expect(response.Body.(*fileinfo.OnlyOffice).UserFriendlyName).To(HavePrefix("Guest "))
|
||||
// overwrite UserID and UserFriendlyName here for easier matching
|
||||
response.Body.(*fileinfo.OnlyOffice).UserID = "guest-zzz000"
|
||||
response.Body.(*fileinfo.OnlyOffice).UserFriendlyName = "guest zzz000"
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(response.Status).To(Equal(200))
|
||||
Expect(response.Body.(*fileinfo.OnlyOffice)).To(Equal(expectedFileInfo))
|
||||
})
|
||||
|
||||
It("Stat success authenticated user", func() {
|
||||
// change view mode to view only
|
||||
wopiCtx.ViewMode = appproviderv1beta1.ViewMode_VIEW_MODE_VIEW_ONLY
|
||||
@@ -1830,6 +1946,11 @@ var _ = Describe("FileConnector", func() {
|
||||
OpaqueId: "opaqueid",
|
||||
SpaceId: "spaceid",
|
||||
},
|
||||
ParentId: &providerv1beta1.ResourceId{
|
||||
StorageId: "storageid",
|
||||
OpaqueId: "parentopaqueid",
|
||||
SpaceId: "spaceid",
|
||||
},
|
||||
},
|
||||
}, nil)
|
||||
|
||||
@@ -1898,6 +2019,11 @@ var _ = Describe("FileConnector", func() {
|
||||
OpaqueId: "opaqueid",
|
||||
SpaceId: "spaceid",
|
||||
},
|
||||
ParentId: &providerv1beta1.ResourceId{
|
||||
StorageId: "storageid",
|
||||
OpaqueId: "parentopaqueid",
|
||||
SpaceId: "spaceid",
|
||||
},
|
||||
},
|
||||
}, nil)
|
||||
|
||||
@@ -1906,7 +2032,7 @@ var _ = Describe("FileConnector", func() {
|
||||
BaseFileName: "test.txt",
|
||||
BreadcrumbDocName: "test.txt",
|
||||
BreadcrumbFolderName: "/path/to",
|
||||
BreadcrumbFolderURL: "https://ocis.example.prv/f/storageid$spaceid%21opaqueid",
|
||||
BreadcrumbFolderURL: "https://ocis.example.prv/f/storageid$spaceid%21parentopaqueid",
|
||||
UserCanNotWriteRelative: false,
|
||||
SupportsLocks: true,
|
||||
SupportsUpdate: true,
|
||||
|
||||
@@ -120,18 +120,20 @@ func WopiContextAuthMiddleware(cfg *config.Config, st microstore.Store, next htt
|
||||
http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
user, _, err := tokenManager.DismantleToken(ctx, wopiContextAccessToken)
|
||||
user, scopes, err := tokenManager.DismantleToken(ctx, wopiContextAccessToken)
|
||||
if err != nil {
|
||||
wopiLogger.Error().Err(err).Msg("failed to dismantle reva token manager")
|
||||
http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
|
||||
claims.WopiContext.AccessToken = wopiContextAccessToken
|
||||
|
||||
ctx = context.WithValue(ctx, wopiContextKey, claims.WopiContext)
|
||||
// authentication for the CS3 api
|
||||
ctx = metadata.AppendToOutgoingContext(ctx, ctxpkg.TokenHeader, claims.WopiContext.AccessToken)
|
||||
ctx = ctxpkg.ContextSetUser(ctx, user)
|
||||
ctx = ctxpkg.ContextSetScopes(ctx, scopes)
|
||||
|
||||
// include additional info in the context's logger
|
||||
wopiLogger = wopiLogger.With().
|
||||
|
||||
@@ -104,6 +104,7 @@ func (vh *VerifyHandler) Verify(accessToken, url, timestamp, sig64, oldSig64 str
|
||||
return err
|
||||
}
|
||||
pubkeys = newpubkeys
|
||||
vh.cachedKeys = newpubkeys
|
||||
}
|
||||
|
||||
// build and hash the expected proof
|
||||
@@ -195,6 +196,8 @@ func (vh *VerifyHandler) generateProof(accessToken, url, timestamp string) []byt
|
||||
// The PubKeys returned might be either nil (with the non-nil error), or might
|
||||
// contain only a PubKeys.Key field (the PubKeys.OldKey might be nil)
|
||||
func (vh *VerifyHandler) fetchPublicKeys(logger *zerolog.Logger) (*PubKeys, error) {
|
||||
logger.Debug().Str("WopiAppUrl", vh.discoveryURL).Msg("WopiDiscovery: requesting new public keys")
|
||||
|
||||
httpClient := http.Client{
|
||||
Transport: &http.Transport{
|
||||
TLSClientConfig: &tls.Config{
|
||||
@@ -220,7 +223,7 @@ func (vh *VerifyHandler) fetchPublicKeys(logger *zerolog.Logger) (*PubKeys, erro
|
||||
Str("WopiAppUrl", vh.discoveryURL).
|
||||
Int("HttpCode", httpResp.StatusCode).
|
||||
Msg("WopiDiscovery: wopi app url failed with unexpected code")
|
||||
return nil, err
|
||||
return nil, errors.New("wopi app url failed with unexpected code")
|
||||
}
|
||||
|
||||
doc := etree.NewDocument()
|
||||
|
||||
@@ -2,9 +2,11 @@ package service
|
||||
|
||||
import (
|
||||
gatewayv1beta1 "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
|
||||
"github.com/cs3org/reva/v2/pkg/rgrpc/todo/pool"
|
||||
microstore "go-micro.dev/v4/store"
|
||||
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/config"
|
||||
microstore "go-micro.dev/v4/store"
|
||||
)
|
||||
|
||||
// Option defines a single option function.
|
||||
@@ -12,11 +14,11 @@ type Option func(o *Options)
|
||||
|
||||
// Options defines the available options for this package.
|
||||
type Options struct {
|
||||
Logger log.Logger
|
||||
Config *config.Config
|
||||
AppURLs map[string]map[string]string
|
||||
Gwc gatewayv1beta1.GatewayAPIClient
|
||||
Store microstore.Store
|
||||
Logger log.Logger
|
||||
Config *config.Config
|
||||
AppURLs map[string]map[string]string
|
||||
GatewaySelector pool.Selectable[gatewayv1beta1.GatewayAPIClient]
|
||||
Store microstore.Store
|
||||
}
|
||||
|
||||
// newOptions initializes the available default options.
|
||||
@@ -51,10 +53,10 @@ func AppURLs(val map[string]map[string]string) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// GatewayAPIClient provides a function to set the GatewayAPIClient option.
|
||||
func GatewayAPIClient(val gatewayv1beta1.GatewayAPIClient) Option {
|
||||
// GatewaySelector provides a function to set the GatewaySelector option.
|
||||
func GatewaySelector(val pool.Selectable[gatewayv1beta1.GatewayAPIClient]) Option {
|
||||
return func(o *Options) {
|
||||
o.Gwc = val
|
||||
o.GatewaySelector = val
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,13 +16,13 @@ import (
|
||||
"github.com/cs3org/reva/v2/pkg/rgrpc/todo/pool"
|
||||
"github.com/cs3org/reva/v2/pkg/storagespace"
|
||||
"github.com/cs3org/reva/v2/pkg/utils"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/wopisrc"
|
||||
microstore "go-micro.dev/v4/store"
|
||||
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/config"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/helpers"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/middleware"
|
||||
microstore "go-micro.dev/v4/store"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/wopisrc"
|
||||
)
|
||||
|
||||
// NewHandler creates a new grpc service implementing the OpenInApp interface
|
||||
@@ -33,33 +33,33 @@ func NewHandler(opts ...Option) (*Service, func(), error) {
|
||||
}
|
||||
options := newOptions(opts...)
|
||||
|
||||
gwc := options.Gwc
|
||||
gatewaySelector := options.GatewaySelector
|
||||
var err error
|
||||
if gwc == nil {
|
||||
gwc, err = pool.GetGatewayServiceClient(options.Config.CS3Api.Gateway.Name)
|
||||
if gatewaySelector == nil {
|
||||
gatewaySelector, err = pool.GatewaySelector(options.Config.CS3Api.Gateway.Name)
|
||||
if err != nil {
|
||||
return nil, teardown, err
|
||||
}
|
||||
}
|
||||
|
||||
return &Service{
|
||||
id: options.Config.GRPC.Namespace + "." + options.Config.Service.Name + "." + options.Config.App.Name,
|
||||
appURLs: options.AppURLs,
|
||||
logger: options.Logger,
|
||||
config: options.Config,
|
||||
gwc: gwc,
|
||||
store: options.Store,
|
||||
id: options.Config.GRPC.Namespace + "." + options.Config.Service.Name + "." + options.Config.App.Name,
|
||||
appURLs: options.AppURLs,
|
||||
logger: options.Logger,
|
||||
config: options.Config,
|
||||
gatewaySelector: gatewaySelector,
|
||||
store: options.Store,
|
||||
}, teardown, nil
|
||||
}
|
||||
|
||||
// Service implements the OpenInApp interface
|
||||
type Service struct {
|
||||
id string
|
||||
appURLs map[string]map[string]string
|
||||
logger log.Logger
|
||||
config *config.Config
|
||||
gwc gatewayv1beta1.GatewayAPIClient
|
||||
store microstore.Store
|
||||
id string
|
||||
appURLs map[string]map[string]string
|
||||
logger log.Logger
|
||||
config *config.Config
|
||||
gatewaySelector pool.Selectable[gatewayv1beta1.GatewayAPIClient]
|
||||
store microstore.Store
|
||||
}
|
||||
|
||||
// OpenInApp will implement the OpenInApp interface of the app provider
|
||||
@@ -73,7 +73,13 @@ func (s *Service) OpenInApp(
|
||||
meReq := &gatewayv1beta1.WhoAmIRequest{
|
||||
Token: req.GetAccessToken(),
|
||||
}
|
||||
meResp, err := s.gwc.WhoAmI(ctx, meReq)
|
||||
gwc, err := s.gatewaySelector.Next()
|
||||
if err != nil {
|
||||
s.logger.Error().Err(err).Msg("OpenInApp: could not select a gateway client")
|
||||
return nil, err
|
||||
}
|
||||
|
||||
meResp, err := gwc.WhoAmI(ctx, meReq)
|
||||
if err == nil {
|
||||
if meResp.GetStatus().GetCode() == rpcv1beta1.Code_CODE_OK {
|
||||
user = meResp.GetUser()
|
||||
|
||||
@@ -5,12 +5,6 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/cs3org/reva/v2/pkg/utils"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
"github.com/stretchr/testify/mock"
|
||||
|
||||
appproviderv1beta1 "github.com/cs3org/go-cs3apis/cs3/app/provider/v1beta1"
|
||||
authpb "github.com/cs3org/go-cs3apis/cs3/auth/provider/v1beta1"
|
||||
gatewayv1beta1 "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
|
||||
@@ -18,10 +12,16 @@ import (
|
||||
rpcv1beta1 "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
|
||||
providerv1beta1 "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
|
||||
types "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
|
||||
|
||||
"github.com/cs3org/reva/v2/pkg/rgrpc/status"
|
||||
"github.com/cs3org/reva/v2/pkg/utils"
|
||||
cs3mocks "github.com/cs3org/reva/v2/tests/cs3mocks/mocks"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
"github.com/stretchr/testify/mock"
|
||||
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/mocks"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/config"
|
||||
service "github.com/owncloud/ocis/v2/services/collaboration/pkg/service/grpc/v0"
|
||||
)
|
||||
@@ -77,23 +77,26 @@ var _ = Describe("Discovery", func() {
|
||||
cfg = &config.Config{}
|
||||
gatewayClient = &cs3mocks.GatewayAPIClient{}
|
||||
|
||||
gatewaySelector := mocks.NewSelectable[gatewayv1beta1.GatewayAPIClient](GinkgoT())
|
||||
gatewaySelector.On("Next").Return(gatewayClient, nil)
|
||||
|
||||
srv, srvTear, _ = service.NewHandler(
|
||||
service.Logger(log.NopLogger()),
|
||||
service.Config(cfg),
|
||||
service.AppURLs(map[string]map[string]string{
|
||||
"view": map[string]string{
|
||||
"view": {
|
||||
".pdf": "https://test.server.prv/hosting/wopi/word/view",
|
||||
".djvu": "https://test.server.prv/hosting/wopi/word/view",
|
||||
".docx": "https://test.server.prv/hosting/wopi/word/view",
|
||||
".xls": "https://test.server.prv/hosting/wopi/cell/view",
|
||||
".xlsb": "https://test.server.prv/hosting/wopi/cell/view",
|
||||
},
|
||||
"edit": map[string]string{
|
||||
"edit": {
|
||||
".docx": "https://test.server.prv/hosting/wopi/word/edit",
|
||||
".invalid": "://test.server.prv/hosting/wopi/cell/edit",
|
||||
},
|
||||
}),
|
||||
service.GatewayAPIClient(gatewayClient),
|
||||
service.GatewaySelector(gatewaySelector),
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"net/url"
|
||||
"path"
|
||||
|
||||
"github.com/golang-jwt/jwt/v4"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
"github.com/owncloud/ocis/v2/services/collaboration/pkg/config"
|
||||
)
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@ Aggregating share information is one of the most time consuming operations in OC
|
||||
|
||||
To save network trips the sharing implementation can cache the stat requests with an in memory cache or in Redis. It will shorten the response time by the network round-trip overhead at the cost of the API only eventually being updated.
|
||||
|
||||
Setting `FRONTEND_OCS_RESOURCE_INFO_CACHE_TTL=60` would cache the stat info for 60 seconds. Increasing this value makes sense for large deployments with thousands of active users that keep the cache up to date. Low frequency usage scenarios should not expect a noticeable improvement.
|
||||
Setting `FRONTEND_OCS_RESOURCE_INFO_CACHE_TTL=60` (deprecated) would cache the stat info for 60 seconds. Increasing this value makes sense for large deployments with thousands of active users that keep the cache up to date. Low frequency usage scenarios should not expect a noticeable improvement.
|
||||
|
||||
## Scalability
|
||||
|
||||
While the frontend service does not persist any data, it does cache information about files and filesystem (`Stat()`) responses and user information. Therefore, multiple instances of this service can be spawned in a bigger deployment like when using container orchestration with Kubernetes, when configuring `FRONTEND_OCS_RESOURCE_INFO_CACHE_STORE` and the related config options.
|
||||
While the frontend service does not persist any data, it does cache information about files and filesystem (`Stat()`) responses and user information. Therefore, multiple instances of this service can be spawned in a bigger deployment like when using container orchestration with Kubernetes, when configuring `FRONTEND_OCS_RESOURCE_INFO_CACHE_STORE` (deprecated) and the related config options.
|
||||
|
||||
## Define Read-Only Attributes
|
||||
|
||||
@@ -46,7 +46,7 @@ You can find more details regarding available attributes at the [libre-graph-api
|
||||
|
||||
## Caching
|
||||
|
||||
The `frontend` service can use a configured store via `FRONTEND_OCS_STAT_CACHE_STORE`. Possible stores are:
|
||||
The `frontend` service can use a configured store via `FRONTEND_OCS_STAT_CACHE_STORE` (deprecated). Possible stores are:
|
||||
- `memory`: Basic in-memory store and the default.
|
||||
- `redis-sentinel`: Stores data in a configured Redis Sentinel cluster.
|
||||
- `nats-js-kv`: Stores data using key-value-store feature of [nats jetstream](https://docs.nats.io/nats-concepts/jetstream/key-value-store)
|
||||
|
||||
@@ -123,26 +123,26 @@ type DataGateway struct {
|
||||
}
|
||||
|
||||
type OCS struct {
|
||||
Prefix string `yaml:"prefix" env:"FRONTEND_OCS_PREFIX" desc:"URL path prefix for the OCS service. Note that the string must not start with '/'." introductionVersion:"pre5.0"`
|
||||
SharePrefix string `yaml:"share_prefix" env:"FRONTEND_OCS_SHARE_PREFIX" desc:"Path prefix for shares as part of an ocis resource. Note that the path must start with '/'." introductionVersion:"pre5.0"`
|
||||
HomeNamespace string `yaml:"home_namespace" env:"FRONTEND_OCS_PERSONAL_NAMESPACE" desc:"Home namespace identifier." introductionVersion:"pre5.0"`
|
||||
AdditionalInfoAttribute string `yaml:"additional_info_attribute" env:"FRONTEND_OCS_ADDITIONAL_INFO_ATTRIBUTE" desc:"Additional information attribute for the user like {{.Mail}}." introductionVersion:"pre5.0"`
|
||||
StatCacheType string `yaml:"stat_cache_type" env:"OCIS_CACHE_STORE;FRONTEND_OCS_STAT_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
StatCacheNodes []string `yaml:"stat_cache_nodes" env:"OCIS_CACHE_STORE_NODES;FRONTEND_OCS_STAT_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Prefix string `yaml:"prefix" env:"FRONTEND_OCS_PREFIX" desc:"URL path prefix for the OCS service. Note that the string must not start with '/'." introductionVersion:"pre5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"The OCS API is deprecated" deprecationReplacement:""`
|
||||
SharePrefix string `yaml:"share_prefix" env:"FRONTEND_OCS_SHARE_PREFIX" desc:"Path prefix for shares as part of an ocis resource. Note that the path must start with '/'." introductionVersion:"pre5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"The OCS API is deprecated" deprecationReplacement:""`
|
||||
HomeNamespace string `yaml:"home_namespace" env:"FRONTEND_OCS_PERSONAL_NAMESPACE" desc:"Home namespace identifier." introductionVersion:"pre5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"The OCS API is deprecated" deprecationReplacement:""`
|
||||
AdditionalInfoAttribute string `yaml:"additional_info_attribute" env:"FRONTEND_OCS_ADDITIONAL_INFO_ATTRIBUTE" desc:"Additional information attribute for the user like {{.Mail}}." introductionVersion:"pre5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"The OCS API is deprecated" deprecationReplacement:""`
|
||||
StatCacheType string `yaml:"stat_cache_type" env:"OCIS_CACHE_STORE;FRONTEND_OCS_STAT_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details." introductionVersion:"pre5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_STAT_CACHE_STORE, the OCS API is deprecated" deprecationReplacement:""`
|
||||
StatCacheNodes []string `yaml:"stat_cache_nodes" env:"OCIS_CACHE_STORE_NODES;FRONTEND_OCS_STAT_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_STAT_CACHE_STORE_NODES, the OCS API is deprecated" deprecationReplacement:""`
|
||||
StatCacheDatabase string `yaml:"stat_cache_database" env:"OCIS_CACHE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
StatCacheTable string `yaml:"stat_cache_table" env:"FRONTEND_OCS_STAT_CACHE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
StatCacheTTL time.Duration `yaml:"stat_cache_ttl" env:"OCIS_CACHE_TTL;FRONTEND_OCS_STAT_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
StatCacheDisablePersistence bool `yaml:"stat_cache_disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE;FRONTEND_OCS_STAT_CACHE_DISABLE_PERSISTENCE" desc:"Disable persistence of the cache. Only applies when using the 'nats-js-kv' store type. Defaults to false." introductionVersion:"5.0"`
|
||||
StatCacheAuthUsername string `yaml:"stat_cache_auth_username" env:"OCIS_CACHE_AUTH_USERNAME;FRONTEND_OCS_STAT_CACHE_AUTH_USERNAME" desc:"The username to use for authentication. Only applies when using the 'nats-js-kv' store type." introductionVersion:"5.0"`
|
||||
StatCacheAuthPassword string `yaml:"stat_cache_auth_password" env:"OCIS_CACHE_AUTH_PASSWORD;FRONTEND_OCS_STAT_CACHE_AUTH_PASSWORD" desc:"The password to use for authentication. Only applies when using the 'nats-js-kv' store type." introductionVersion:"5.0"`
|
||||
StatCacheTable string `yaml:"stat_cache_table" env:"FRONTEND_OCS_STAT_CACHE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"The OCS API is deprecated" deprecationReplacement:""`
|
||||
StatCacheTTL time.Duration `yaml:"stat_cache_ttl" env:"OCIS_CACHE_TTL;FRONTEND_OCS_STAT_CACHE_TTL" desc:"Default time to live for user info in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details." introductionVersion:"pre5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_STAT_CACHE_TTL, the OCS API is deprecated" deprecationReplacement:""`
|
||||
StatCacheDisablePersistence bool `yaml:"stat_cache_disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE;FRONTEND_OCS_STAT_CACHE_DISABLE_PERSISTENCE" desc:"Disable persistence of the cache. Only applies when using the 'nats-js-kv' store type. Defaults to false." introductionVersion:"5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_STAT_CACHE_DISABLE_PERSISTENCE, the OCS API is deprecated" deprecationReplacement:""`
|
||||
StatCacheAuthUsername string `yaml:"stat_cache_auth_username" env:"OCIS_CACHE_AUTH_USERNAME;FRONTEND_OCS_STAT_CACHE_AUTH_USERNAME" desc:"The username to use for authentication. Only applies when using the 'nats-js-kv' store type." introductionVersion:"5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_STAT_CACHE_AUTH_USERNAME, the OCS API is deprecated" deprecationReplacement:""`
|
||||
StatCacheAuthPassword string `yaml:"stat_cache_auth_password" env:"OCIS_CACHE_AUTH_PASSWORD;FRONTEND_OCS_STAT_CACHE_AUTH_PASSWORD" desc:"The password to use for authentication. Only applies when using the 'nats-js-kv' store type." introductionVersion:"5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_STAT_CACHE_AUTH_PASSWORD, the OCS API is deprecated" deprecationReplacement:""`
|
||||
|
||||
CacheWarmupDriver string `yaml:"cache_warmup_driver,omitempty"` // not supported by the oCIS product, therefore not part of docs
|
||||
CacheWarmupDrivers CacheWarmupDrivers `yaml:"cache_warmup_drivers,omitempty"` // not supported by the oCIS product, therefore not part of docs
|
||||
EnableDenials bool `yaml:"enable_denials" env:"FRONTEND_OCS_ENABLE_DENIALS" desc:"EXPERIMENTAL: enable the feature to deny access on folders." introductionVersion:"pre5.0"`
|
||||
ListOCMShares bool `yaml:"list_ocm_shares" env:"OCIS_ENABLE_OCM;FRONTEND_OCS_LIST_OCM_SHARES" desc:"Include OCM shares when listing shares. See the OCM service documentation for more details." introductionVersion:"5.0"`
|
||||
IncludeOCMSharees bool `yaml:"include_ocm_sharees" env:"OCIS_ENABLE_OCM;FRONTEND_OCS_INCLUDE_OCM_SHAREES" desc:"Include OCM sharees when listing sharees." introductionVersion:"5.0"`
|
||||
PublicShareMustHavePassword bool `yaml:"public_sharing_share_must_have_password" env:"OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD;FRONTEND_OCS_PUBLIC_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords on all public shares." introductionVersion:"5.0"`
|
||||
WriteablePublicShareMustHavePassword bool `yaml:"public_sharing_writeableshare_must_have_password" env:"OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD;FRONTEND_OCS_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords for writable shares. Only effective if the setting for 'passwords on all public shares' is set to false." introductionVersion:"5.0"`
|
||||
EnableDenials bool `yaml:"enable_denials" env:"FRONTEND_OCS_ENABLE_DENIALS" desc:"EXPERIMENTAL: enable the feature to deny access on folders." introductionVersion:"pre5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"The OCS API is deprecated" deprecationReplacement:""`
|
||||
ListOCMShares bool `yaml:"list_ocm_shares" env:"OCIS_ENABLE_OCM;FRONTEND_OCS_LIST_OCM_SHARES" desc:"Include OCM shares when listing shares. See the OCM service documentation for more details." introductionVersion:"5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_LIST_OCM_SHARES, the OCS API is deprecated" deprecationReplacement:""`
|
||||
IncludeOCMSharees bool `yaml:"include_ocm_sharees" env:"OCIS_ENABLE_OCM;FRONTEND_OCS_INCLUDE_OCM_SHAREES" desc:"Include OCM sharees when listing sharees." introductionVersion:"5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_INCLUDE_OCM_SHAREES, the OCS API is deprecated" deprecationReplacement:""`
|
||||
PublicShareMustHavePassword bool `yaml:"public_sharing_share_must_have_password" env:"OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD;FRONTEND_OCS_PUBLIC_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords on all public shares." introductionVersion:"5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_PUBLIC_SHARE_MUST_HAVE_PASSWORD, the OCS API is deprecated" deprecationReplacement:""`
|
||||
WriteablePublicShareMustHavePassword bool `yaml:"public_sharing_writeableshare_must_have_password" env:"OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD;FRONTEND_OCS_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords for writable shares. Only effective if the setting for 'passwords on all public shares' is set to false." introductionVersion:"5.0" deprecationVersion:"7.0.0" removalVersion:"%%NEXT_PRODUCTION_VERSION%%" deprecationInfo:"FRONTEND_OCS_PUBLIC_WRITABLE_SHARE_MUST_HAVE_PASSWORD, the OCS API is deprecated" deprecationReplacement:""`
|
||||
ShowUserEmailInResults bool `yaml:"show_email_in_results" env:"OCIS_SHOW_USER_EMAIL_IN_RESULTS" desc:"Include user email addresses in responses. If absent or set to false emails will be omitted from results. Please note that admin users can always see all email addresses." introductionVersion:"6.0.0"`
|
||||
}
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ func DefaultConfig() *config.Config {
|
||||
Cluster: "ocis-cluster",
|
||||
EnableTLS: false,
|
||||
},
|
||||
MaxConcurrency: 25,
|
||||
MaxConcurrency: 1,
|
||||
PasswordPolicy: config.PasswordPolicy{
|
||||
MinCharacters: 8,
|
||||
MinLowerCaseCharacters: 1,
|
||||
|
||||
@@ -31,6 +31,7 @@ type Config struct {
|
||||
IncludeOCMSharees bool `yaml:"include_ocm_sharees" env:"OCIS_ENABLE_OCM;GRAPH_INCLUDE_OCM_SHAREES" desc:"Include OCM sharees when listing users." introductionVersion:"5.0"`
|
||||
Events Events `yaml:"events"`
|
||||
UnifiedRoles UnifiedRoles `yaml:"unified_roles"`
|
||||
MaxConcurrency int `yaml:"max_concurrency" env:"OCIS_MAX_CONCURRENCY;GRAPH_MAX_CONCURRENCY" desc:"The maximum number of concurrent requests the service will handle." introductionVersion:"7.0.0"`
|
||||
|
||||
Keycloak Keycloak `yaml:"keycloak"`
|
||||
ServiceAccount ServiceAccount `yaml:"service_account"`
|
||||
|
||||
Loaded 100 of 721 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user