Compare commits
118
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7f9cac8ce | ||
|
|
01b441f639 | ||
|
|
dbfd742112 | ||
|
|
8cc1953d55 | ||
|
|
ad3b71e0d7 | ||
|
|
aca3df1078 | ||
|
|
686aa52fe7 | ||
|
|
db40ce2a02 | ||
|
|
f6236debaf | ||
|
|
13bb950ee3 | ||
|
|
29b620a4fb | ||
|
|
17ae8fbac0 | ||
|
|
8ac40ec030 | ||
|
|
cde8eda368 | ||
|
|
ffabec20f8 | ||
|
|
3829f5cfc6 | ||
|
|
8cbe43b3bb | ||
|
|
fcbfecf376 | ||
|
|
e3916a06ea | ||
|
|
6172ce5495 | ||
|
|
4282e66a6d | ||
|
|
d725a6f499 | ||
|
|
fb07886cd0 | ||
|
|
3b5acbf9f7 | ||
|
|
cdb3ba2f67 | ||
|
|
359b145c9d | ||
|
|
9d9a03747c | ||
|
|
6950f47885 | ||
|
|
f28552c629 | ||
|
|
67deb75f7d | ||
|
|
8951c623ae | ||
|
|
5344650298 | ||
|
|
8481d02fa5 | ||
|
|
845ed39133 | ||
|
|
70d99100a3 | ||
|
|
b0d2d53538 | ||
|
|
9def991c40 | ||
|
|
00449d3104 | ||
|
|
c099c8a356 | ||
|
|
b6dea02d1a | ||
|
|
0b9e2d9d58 | ||
|
|
e23737705e | ||
|
|
84ea676e1b | ||
|
|
2617422fd8 | ||
|
|
af145c25de | ||
|
|
28a04cc6af | ||
|
|
62ef3cce3f | ||
|
|
a7f34f338f | ||
|
|
c9f2a39eb7 | ||
|
|
168133f1f2 | ||
|
|
5b29a68fe2 | ||
|
|
1189d16de8 | ||
|
|
52424f5bfb | ||
|
|
b6b15955f0 | ||
|
|
9be36f0aee | ||
|
|
c552176388 | ||
|
|
f35c67f653 | ||
|
|
19ef1df702 | ||
|
|
30827044c0 | ||
|
|
93377d96c0 | ||
|
|
a984af216d | ||
|
|
39bb128c91 | ||
|
|
da7fd073dc | ||
|
|
c04811347f | ||
|
|
9bc0fec20f | ||
|
|
b8afa41bfe | ||
|
|
aa9a9f5518 | ||
|
|
8ebf837037 | ||
|
|
3b36d53d32 | ||
|
|
cd4927d809 | ||
|
|
a5748fe4ca | ||
|
|
5e96cbc17e | ||
|
|
e425d3ac23 | ||
|
|
919b363406 | ||
|
|
bb5c6c2c92 | ||
|
|
b55ed779f3 | ||
|
|
b2ec35e817 | ||
|
|
75426a75bf | ||
|
|
01bb23fa83 | ||
|
|
5586e75e40 | ||
|
|
dc754e6732 | ||
|
|
b88c93d0c6 | ||
|
|
a25c3d6f3c | ||
|
|
1bdcf0ac51 | ||
|
|
6c0e5a11c2 | ||
|
|
bd39e43995 | ||
|
|
c745579032 | ||
|
|
89743ee287 | ||
|
|
3c663bcf95 | ||
|
|
b1a3042019 | ||
|
|
b15815f2ca | ||
|
|
77e5b9840f | ||
|
|
fd6c7b7139 | ||
|
|
bb1a31623b | ||
|
|
462165a5b6 | ||
|
|
8ad90c49ce | ||
|
|
0d069f907b | ||
|
|
2702ca3650 | ||
|
|
170dfb1c7d | ||
|
|
b22b0ad91e | ||
|
|
226be8f259 | ||
|
|
6bede1a396 | ||
|
|
8b783a2deb | ||
|
|
09c5335fd7 | ||
|
|
ec115d8a01 | ||
|
|
2c36f90403 | ||
|
|
ddf573e745 | ||
|
|
85c60a73fa | ||
|
|
de492f72de | ||
|
|
145602769a | ||
|
|
4adc095b17 | ||
|
|
205817edcc | ||
|
|
b090c82d3c | ||
|
|
6049f6cb25 | ||
|
|
e9dbafafa4 | ||
|
|
57fae291b7 | ||
|
|
9c2da587da | ||
|
|
f2c73cdc45 |
No files matched your search
+3
-1
@@ -1,5 +1,7 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.25.7
|
||||
go 1.24
|
||||
|
||||
toolchain go1.24.0
|
||||
|
||||
require github.com/vektra/mockery/v2 v2.53.5
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=b707d0483800b22522df8734b12e02eaec108a37
|
||||
WEB_COMMITID=39d6215da6daa184cd2365966915a659bdbd2c8b
|
||||
WEB_BRANCH=stable-12.3
|
||||
+201
-346
@@ -43,9 +43,6 @@ KEYCLOAK_IMAGE = "quay.io/keycloak/keycloak:26.2.5"
|
||||
POSTGRES_ALPINE_IMAGE = "postgres:alpine3.18"
|
||||
TRIVY_IMAGE = "aquasec/trivy:latest"
|
||||
K3D_IMAGE = "ghcr.io/k3d-io/k3d:5-dind"
|
||||
CODACY_COVERAGE_REPORTER = "codacy/codacy-coverage-reporter:latest"
|
||||
CS3ORG_WOPISERVER = "cs3org/wopiserver:v10.4.0"
|
||||
OC_CI_WOPI_VALIDATOR = "owncloudci/wopi-validator"
|
||||
|
||||
# the hugo version needs to be the same as in owncloud.github.io
|
||||
OC_CI_HUGO_STATIC_IMAGE = "hugomods/hugo:base-0.129.0"
|
||||
@@ -77,10 +74,6 @@ FED_OCIS_SERVER_NAME = "federation-%s" % OCIS_SERVER_NAME
|
||||
OCIS_FED_URL = "https://%s:10200" % FED_OCIS_SERVER_NAME
|
||||
OCIS_FED_DOMAIN = "%s:10200" % FED_OCIS_SERVER_NAME
|
||||
|
||||
# urls for k8s deployment
|
||||
OCIS_URL_K8S = "https://%s" % OCIS_SERVER_NAME
|
||||
OCIS_FED_URL_K8S = "https://%s" % FED_OCIS_SERVER_NAME
|
||||
|
||||
# emails
|
||||
EMAIL_PORT = "8025"
|
||||
EMAIL_SMTP_PORT = "1025"
|
||||
@@ -119,7 +112,6 @@ config = {
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"k8s": True,
|
||||
"emailNeeded": True,
|
||||
"extraEnvironment": {
|
||||
"EMAIL_HOST": EMAIL_SMTP_HOST,
|
||||
@@ -166,7 +158,6 @@ config = {
|
||||
"apiActivities",
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
},
|
||||
"groupAndSearch1": {
|
||||
"suites": [
|
||||
@@ -211,7 +202,6 @@ config = {
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"k8s": True,
|
||||
},
|
||||
"sharingNgLinkShare": {
|
||||
"suites": [
|
||||
@@ -241,9 +231,9 @@ config = {
|
||||
"ocm": {
|
||||
"suites": [
|
||||
"apiOcm",
|
||||
"apiServiceAvailability",
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"withRemotePhp": [False],
|
||||
"federationServer": True,
|
||||
"emailNeeded": True,
|
||||
@@ -282,7 +272,6 @@ config = {
|
||||
"apiCollaboration",
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"withRemotePhp": [False],
|
||||
"collaborationServiceNeeded": True,
|
||||
"extraServerEnvironment": {
|
||||
@@ -292,7 +281,6 @@ config = {
|
||||
"cliCommands": {
|
||||
"suites": [
|
||||
"cliCommands",
|
||||
"apiServiceAvailability",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
@@ -310,7 +298,6 @@ config = {
|
||||
"NOTIFICATIONS_DEBUG_ADDR": "0.0.0.0:9174",
|
||||
"ANTIVIRUS_SCANNER_TYPE": "clamav",
|
||||
"ANTIVIRUS_CLAMAV_SOCKET": "tcp://clamav:3310",
|
||||
"ANTIVIRUS_DEBUG_ADDR": "0.0.0.0:9277",
|
||||
"OCIS_ADD_RUN_SERVICES": "antivirus,notifications",
|
||||
},
|
||||
},
|
||||
@@ -376,7 +363,6 @@ config = {
|
||||
"coreApiWebdavMove2",
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
},
|
||||
"7": {
|
||||
"suites": [
|
||||
@@ -899,7 +885,6 @@ def uploadScanResults(ctx):
|
||||
"git checkout $DRONE_COMMIT",
|
||||
],
|
||||
},
|
||||
] + skipIfUnchanged(ctx, "unit-tests") + [
|
||||
{
|
||||
"name": "sync-from-cache",
|
||||
"image": MINIO_MC,
|
||||
@@ -912,7 +897,7 @@ def uploadScanResults(ctx):
|
||||
},
|
||||
{
|
||||
"name": "codacy",
|
||||
"image": CODACY_COVERAGE_REPORTER,
|
||||
"image": "codacy/codacy-coverage-reporter:latest",
|
||||
"environment": {
|
||||
"CODACY_PROJECT_TOKEN": {
|
||||
"from_secret": "codacy_token",
|
||||
@@ -1126,108 +1111,36 @@ def localApiTestPipeline(ctx):
|
||||
for storage in params["storages"]:
|
||||
for run_with_remote_php in params["withRemotePhp"]:
|
||||
run_on_k8s = params["k8s"] and ctx.build.event == "cron"
|
||||
|
||||
####################
|
||||
# SETUP STEPS #
|
||||
####################
|
||||
setup_steps = skipIfUnchanged(ctx, "acceptance-tests")
|
||||
if params["tikaNeeded"]:
|
||||
setup_steps += waitForServices("tika", ["tika:9998"])
|
||||
if params["antivirusNeeded"]:
|
||||
setup_steps += waitForServices("clamav", ["clamav:3310"])
|
||||
if params["emailNeeded"]:
|
||||
setup_steps += waitForServices("email", ["%s:%s" % (EMAIL_SMTP_HOST, EMAIL_PORT)])
|
||||
if params["collaborationServiceNeeded"]:
|
||||
setup_steps += waitForServices("online-offices", ["collabora:9980", "onlyoffice:443", "fakeoffice:8080"])
|
||||
|
||||
ocis_url = OCIS_URL
|
||||
if run_on_k8s:
|
||||
enable_auth_app = False
|
||||
if "OCIS_ADD_RUN_SERVICES" in params["extraServerEnvironment"]:
|
||||
enable_auth_app = "auth-app" in params["extraServerEnvironment"]["OCIS_ADD_RUN_SERVICES"]
|
||||
setup_steps += ocisServerK8s(
|
||||
params["federationServer"],
|
||||
params["antivirusNeeded"],
|
||||
params["emailNeeded"],
|
||||
params["tikaNeeded"],
|
||||
params["collaborationServiceNeeded"],
|
||||
enable_auth_app,
|
||||
)
|
||||
ocis_url = "https://%s" % OCIS_SERVER_NAME
|
||||
|
||||
if params["collaborationServiceNeeded"]:
|
||||
setup_steps += exposeNodePortsK8s([
|
||||
["collaboration-collabora", 9300],
|
||||
["collaboration-fakeoffice", 9300],
|
||||
["collaboration-onlyoffice", 9300],
|
||||
["collaboration-fakeoffice", 9304],
|
||||
])
|
||||
else:
|
||||
setup_steps += restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin")
|
||||
setup_steps += ocisServer(
|
||||
storage,
|
||||
extra_server_environment = params["extraServerEnvironment"],
|
||||
with_wrapper = True,
|
||||
tika_enabled = params["tikaNeeded"],
|
||||
volumes = [stepVolumeOcisStorage],
|
||||
)
|
||||
|
||||
if params["federationServer"]:
|
||||
setup_steps += ocisServer(
|
||||
storage,
|
||||
deploy_type = "federation",
|
||||
extra_server_environment = params["extraServerEnvironment"],
|
||||
)
|
||||
if params["collaborationServiceNeeded"]:
|
||||
setup_steps += wopiCollaborationService("fakeoffice") + \
|
||||
wopiCollaborationService("collabora") + \
|
||||
wopiCollaborationService("onlyoffice") + \
|
||||
ocisHealthCheck("wopi", ["wopi-collabora:9304", "wopi-onlyoffice:9304", "wopi-fakeoffice:9304"])
|
||||
|
||||
####################
|
||||
# SERVICES #
|
||||
####################
|
||||
services = []
|
||||
if params["tikaNeeded"]:
|
||||
services += tikaService()
|
||||
if params["emailNeeded"]:
|
||||
services += emailService()
|
||||
if params["antivirusNeeded"]:
|
||||
services += clamavService()
|
||||
if params["collaborationServiceNeeded"]:
|
||||
services += fakeOffice() + collaboraService() + onlyofficeService()
|
||||
if run_on_k8s:
|
||||
services += k3sCluster(ocm = params["federationServer"])
|
||||
if params["federationServer"]:
|
||||
services += k3sCluster(name = FED_OCIS_SERVER_NAME, ocm = True)
|
||||
|
||||
####################
|
||||
# PIPELINE #
|
||||
####################
|
||||
pipeline_name = "%s-%s" % ("CLI" if name.startswith("cli") else "API", name)
|
||||
if run_with_remote_php:
|
||||
pipeline_name += "-withRemotePhp"
|
||||
if run_on_k8s:
|
||||
pipeline_name += "-k8s"
|
||||
pipeline = {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": pipeline_name,
|
||||
"name": "%s-%s%s%s" % ("CLI" if name.startswith("cli") else "API", name, "-withRemotePhp" if run_with_remote_php else "", "-k8s" if run_on_k8s else ""),
|
||||
"platform": {
|
||||
"os": "linux",
|
||||
"arch": "amd64",
|
||||
},
|
||||
"steps": setup_steps +
|
||||
localApiTests(
|
||||
name,
|
||||
params["suites"],
|
||||
storage,
|
||||
params["extraEnvironment"],
|
||||
run_with_remote_php,
|
||||
k8s = run_on_k8s,
|
||||
) +
|
||||
"steps": skipIfUnchanged(ctx, "acceptance-tests") +
|
||||
([] if run_on_k8s else restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin")) +
|
||||
(tikaService() if params["tikaNeeded"] and not run_on_k8s else tikaServiceK8s() if params["tikaNeeded"] and run_on_k8s else []) +
|
||||
(waitForServices("online-offices", ["collabora:9980", "onlyoffice:443", "fakeoffice:8080"]) if params["collaborationServiceNeeded"] else []) +
|
||||
(waitK3sCluster() + (enableAntivirusServiceK8s() if params["antivirusNeeded"] and run_on_k8s else []) + (emailServiceK8s() if params["emailNeeded"] and run_on_k8s else []) + prepareOcisDeployment() + setupOcisConfigMaps() + deployOcis() + waitForOcis(ocis_url = ocis_url) + ociswrapper() + waitForOciswrapper() if run_on_k8s else ocisServer(storage, extra_server_environment = params["extraServerEnvironment"], with_wrapper = True, tika_enabled = params["tikaNeeded"], volumes = ([stepVolumeOcisStorage]))) +
|
||||
(waitForClamavService() if params["antivirusNeeded"] and not run_on_k8s else exposeAntivirusServiceK8s() if params["antivirusNeeded"] and run_on_k8s else []) +
|
||||
(waitForEmailService() if params["emailNeeded"] and not run_on_k8s else exposeEmailServiceK8s() if params["emailNeeded"] and run_on_k8s else []) +
|
||||
(ocisServer(storage, deploy_type = "federation", extra_server_environment = params["extraServerEnvironment"]) if params["federationServer"] else []) +
|
||||
((wopiCollaborationService("fakeoffice") + wopiCollaborationService("collabora") + wopiCollaborationService("onlyoffice")) if params["collaborationServiceNeeded"] else []) +
|
||||
(ocisHealthCheck("wopi", ["wopi-collabora:9304", "wopi-onlyoffice:9304", "wopi-fakeoffice:9304"]) if params["collaborationServiceNeeded"] else []) +
|
||||
localApiTests(name, params["suites"], storage, params["extraEnvironment"], run_with_remote_php, ocis_url = ocis_url, k8s = run_on_k8s) +
|
||||
apiTestFailureLog() +
|
||||
(generateCoverageFromAPITest(ctx, name) if not run_on_k8s else []),
|
||||
"services": services,
|
||||
"depends_on": [] if run_on_k8s else getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"services": (k3sCluster() if run_on_k8s else []) +
|
||||
(emailService() if params["emailNeeded"] and not run_on_k8s else []) +
|
||||
(clamavService() if params["antivirusNeeded"] and not run_on_k8s else []) +
|
||||
((fakeOffice() + collaboraService() + onlyofficeService()) if params["collaborationServiceNeeded"] else []),
|
||||
"depends_on": getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
@@ -1280,30 +1193,22 @@ def generateCoverageFromAPITest(ctx, name):
|
||||
},
|
||||
]
|
||||
|
||||
def localApiTests(name, suites, storage = "ocis", extra_environment = {}, with_remote_php = False, k8s = False):
|
||||
def localApiTests(name, suites, storage = "ocis", extra_environment = {}, with_remote_php = False, ocis_url = OCIS_URL, k8s = False):
|
||||
test_dir = "%s/tests/acceptance" % dirs["base"]
|
||||
expected_failures_file = "%s/expected-failures-localAPI-on-%s-storage.md" % (test_dir, storage.upper())
|
||||
wrapper_url = "http://%s:5200" % OCIS_SERVER_NAME
|
||||
ocis_url = OCIS_URL
|
||||
ocis_fed_url = OCIS_FED_URL
|
||||
|
||||
if k8s:
|
||||
ocis_url = OCIS_URL_K8S
|
||||
ocis_fed_url = OCIS_FED_URL_K8S
|
||||
wrapper_url = "http://ociswrapper:5200"
|
||||
|
||||
environment = {
|
||||
"TEST_SERVER_URL": ocis_url,
|
||||
"TEST_SERVER_FED_URL": ocis_fed_url,
|
||||
"TEST_SERVER_FED_URL": OCIS_FED_URL,
|
||||
"OCIS_REVA_DATA_ROOT": "%s" % (dirs["ocisRevaDataRoot"] if storage == "owncloud" else ""),
|
||||
"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": wrapper_url,
|
||||
"OCIS_WRAPPER_URL": "http://ociswrapper:5200" if k8s else "http://%s:5200" % OCIS_SERVER_NAME,
|
||||
"WITH_REMOTE_PHP": with_remote_php,
|
||||
"COLLABORATION_SERVICE_URL": "http://ocis-server:9304" if k8s else "http://wopi-fakeoffice:9300",
|
||||
"COLLABORATION_SERVICE_URL": "http://wopi-fakeoffice:9300",
|
||||
"K8S": k8s,
|
||||
}
|
||||
|
||||
@@ -1380,7 +1285,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType):
|
||||
wopiServer = [
|
||||
{
|
||||
"name": "wopi-fakeoffice",
|
||||
"image": CS3ORG_WOPISERVER,
|
||||
"image": "cs3org/wopiserver:v10.4.0",
|
||||
"detach": True,
|
||||
"commands": [
|
||||
"cp %s/tests/config/drone/wopiserver.conf /etc/wopi/wopiserver.conf" % (dirs["base"]),
|
||||
@@ -1399,7 +1304,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType):
|
||||
for testgroup in testgroups:
|
||||
validatorTests.append({
|
||||
"name": "wopiValidatorTests-%s" % testgroup,
|
||||
"image": OC_CI_WOPI_VALIDATOR,
|
||||
"image": "owncloudci/wopi-validator",
|
||||
"commands": [
|
||||
"export WOPI_TOKEN=$(cat accesstoken)",
|
||||
"echo $WOPI_TOKEN",
|
||||
@@ -1415,7 +1320,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType):
|
||||
for builtinOnlyGroup in builtinOnlyTestGroups:
|
||||
validatorTests.append({
|
||||
"name": "wopiValidatorTests-%s" % builtinOnlyGroup,
|
||||
"image": OC_CI_WOPI_VALIDATOR,
|
||||
"image": "owncloudci/wopi-validator",
|
||||
"commands": [
|
||||
"export WOPI_TOKEN=$(cat accesstoken)",
|
||||
"echo $WOPI_TOKEN",
|
||||
@@ -1509,50 +1414,8 @@ def coreApiTestPipeline(ctx):
|
||||
expected_failures_file = "%s/expected-failures-API-on-%s-storage.md" % (test_dir, storage.upper())
|
||||
run_on_k8s = params["k8s"] and ctx.build.event == "cron"
|
||||
ocis_url = OCIS_URL
|
||||
wrapper_url = "http://%s:5200" % OCIS_SERVER_NAME
|
||||
|
||||
####################
|
||||
# SETUP STEPS #
|
||||
####################
|
||||
setup_steps = skipIfUnchanged(ctx, "acceptance-tests")
|
||||
if params["tikaNeeded"]:
|
||||
setup_steps += waitForServices("tika", ["tika:9998"])
|
||||
if params["antivirusNeeded"]:
|
||||
setup_steps += waitForServices("clamav", ["clamav:3310"])
|
||||
if params["emailNeeded"]:
|
||||
setup_steps += waitForServices("email", ["%s:%s" % (EMAIL_SMTP_HOST, EMAIL_PORT)])
|
||||
|
||||
if run_on_k8s:
|
||||
ocis_url = OCIS_URL_K8S
|
||||
wrapper_url = "http://ociswrapper:5200"
|
||||
|
||||
setup_steps += ocisServerK8s(antivirus = params["antivirusNeeded"], email = params["emailNeeded"])
|
||||
else:
|
||||
setup_steps += restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin")
|
||||
setup_steps += ocisServer(
|
||||
storage,
|
||||
extra_server_environment = params["extraServerEnvironment"],
|
||||
with_wrapper = True,
|
||||
tika_enabled = params["tikaNeeded"],
|
||||
volumes = ([stepVolumeOcisStorage]),
|
||||
)
|
||||
|
||||
####################
|
||||
# SERVICES #
|
||||
####################
|
||||
services = []
|
||||
if params["tikaNeeded"]:
|
||||
services += tikaService()
|
||||
if params["emailNeeded"]:
|
||||
services += emailService()
|
||||
if params["antivirusNeeded"]:
|
||||
services += clamavService()
|
||||
if run_on_k8s:
|
||||
services += k3sCluster()
|
||||
|
||||
####################
|
||||
# PIPELINE #
|
||||
####################
|
||||
ocis_url = "https://%s" % OCIS_SERVER_NAME
|
||||
pipeline = {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
@@ -1561,7 +1424,12 @@ def coreApiTestPipeline(ctx):
|
||||
"os": "linux",
|
||||
"arch": "amd64",
|
||||
},
|
||||
"steps": setup_steps +
|
||||
"steps": skipIfUnchanged(ctx, "acceptance-tests") +
|
||||
([] if run_on_k8s else restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin")) +
|
||||
(tikaService() if params["tikaNeeded"] else []) +
|
||||
(waitForClamavService() if params["antivirusNeeded"] else []) +
|
||||
(waitForEmailService() if params["emailNeeded"] else []) +
|
||||
(waitK3sCluster() + prepareOcisDeployment() + setupOcisConfigMaps() + deployOcis() + waitForOcis(ocis_url = ocis_url) + ociswrapper() + waitForOciswrapper() if run_on_k8s else ocisServer(storage, extra_server_environment = params["extraServerEnvironment"], with_wrapper = True, tika_enabled = params["tikaNeeded"], volumes = ([stepVolumeOcisStorage]))) +
|
||||
[
|
||||
{
|
||||
"name": "run-api-tests",
|
||||
@@ -1575,7 +1443,7 @@ def coreApiTestPipeline(ctx):
|
||||
"ACCEPTANCE_TEST_TYPE": "core-api",
|
||||
"EXPECTED_FAILURES_FILE": expected_failures_file,
|
||||
"UPLOAD_DELETE_WAIT_TIME": "1" if storage == "owncloud" else 0,
|
||||
"OCIS_WRAPPER_URL": wrapper_url,
|
||||
"OCIS_WRAPPER_URL": "http://ociswrapper:5200" if run_on_k8s else "http://%s:5200" % OCIS_SERVER_NAME,
|
||||
"WITH_REMOTE_PHP": run_with_remote_php,
|
||||
"K8S": run_on_k8s,
|
||||
},
|
||||
@@ -1588,8 +1456,10 @@ def coreApiTestPipeline(ctx):
|
||||
] +
|
||||
apiTestFailureLog() +
|
||||
([] if run_on_k8s else generateCoverageFromAPITest(ctx, name)),
|
||||
"services": services,
|
||||
"depends_on": [] if run_on_k8s else getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"services": (emailService() if params["emailNeeded"] else []) +
|
||||
(clamavService() if params["antivirusNeeded"] else []) +
|
||||
(k3sCluster() if run_on_k8s else []),
|
||||
"depends_on": getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
@@ -1699,14 +1569,13 @@ def e2eTestPipeline(ctx):
|
||||
})
|
||||
|
||||
services = postgresService() if params["keycloakNeeded"] else []
|
||||
services += tikaService() if params["tikaNeeded"] else []
|
||||
|
||||
steps_before = \
|
||||
skipIfUnchanged(ctx, "e2e-tests") + \
|
||||
restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin/ocis") + \
|
||||
restoreWebCache() + \
|
||||
restoreWebPnpmCache() + \
|
||||
(waitForServices("tika", ["tika:9998"]) if params["tikaNeeded"] else []) + \
|
||||
(tikaService() if params["tikaNeeded"] else []) + \
|
||||
(keycloakService() if params["keycloakNeeded"] else []) + \
|
||||
ocisServer(extra_server_environment = extra_server_environment, with_wrapper = not params["keycloakNeeded"], tika_enabled = params["tikaNeeded"], debug = False, external_idp = params["keycloakNeeded"])
|
||||
|
||||
@@ -1850,7 +1719,7 @@ def multiServiceE2ePipeline(ctx):
|
||||
restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin/ocis") + \
|
||||
restoreWebCache() + \
|
||||
restoreWebPnpmCache() + \
|
||||
waitForServices("tika", ["tika:9998"]) + \
|
||||
tikaService() + \
|
||||
ocisServer(extra_server_environment = extra_server_environment, tika_enabled = params["tikaNeeded"], debug = False) + \
|
||||
storage_users_services + \
|
||||
[{
|
||||
@@ -1884,7 +1753,6 @@ def multiServiceE2ePipeline(ctx):
|
||||
},
|
||||
pipelineVolumeGo,
|
||||
],
|
||||
"services": tikaService(),
|
||||
})
|
||||
return pipelines
|
||||
|
||||
@@ -2605,7 +2473,7 @@ def documentation():
|
||||
},
|
||||
"pages_directory": "docs/hugo/content/",
|
||||
"copy_contents": "true",
|
||||
"target_branch": "docs",
|
||||
"target_branch": "docs-stable-8.0",
|
||||
"delete": "true",
|
||||
},
|
||||
"when": {
|
||||
@@ -2869,53 +2737,6 @@ def startOcisService(service = None, name = None, environment = {}, volumes = []
|
||||
},
|
||||
]
|
||||
|
||||
def ocisServerK8s(federation = False, antivirus = False, email = False, tika = False, wopi = False, auth_app = False):
|
||||
name = OCIS_SERVER_NAME
|
||||
url = OCIS_URL_K8S
|
||||
fed_name = FED_OCIS_SERVER_NAME
|
||||
fed_url = OCIS_FED_URL_K8S
|
||||
|
||||
steps = []
|
||||
expose_ext_server_step = []
|
||||
external_servers = []
|
||||
|
||||
environment = {
|
||||
"ENABLE_ANTIVIRUS": antivirus,
|
||||
"ENABLE_EMAIL": email,
|
||||
"ENABLE_TIKA": tika,
|
||||
"ENABLE_WOPI": wopi,
|
||||
"ENABLE_OCM": federation,
|
||||
"ENABLE_AUTH_APP": auth_app,
|
||||
}
|
||||
|
||||
if antivirus:
|
||||
external_servers.append(["clamav", 3310])
|
||||
if tika:
|
||||
external_servers.append(["tika", 9998])
|
||||
if email:
|
||||
external_servers.append([EMAIL_SMTP_HOST, EMAIL_SMTP_PORT])
|
||||
if wopi:
|
||||
external_servers += [["collabora", 9980], ["fakeoffice", 8080], ["onlyoffice", 443]]
|
||||
|
||||
if external_servers:
|
||||
expose_ext_server_step = exposeExternalServersK8s(external_servers)
|
||||
|
||||
steps += prepareChartsK8s(environment)
|
||||
|
||||
steps += waitK3sCluster(name) + \
|
||||
(waitK3sCluster(fed_name) if federation else []) + \
|
||||
setupConfigMapsK8s(name) + \
|
||||
(setupConfigMapsK8s(fed_name) if federation else []) + \
|
||||
expose_ext_server_step + \
|
||||
deployOcisK8s(name) + \
|
||||
(deployOcisK8s(fed_name) if federation else []) + \
|
||||
streamOcisLogsK8s(name) + \
|
||||
(streamOcisLogsK8s(fed_name) if federation else []) + \
|
||||
waitForOcis(name, url) + \
|
||||
(waitForOcis(fed_name, fed_url) if federation else []) + \
|
||||
ociswrapperK8s(name)
|
||||
return steps
|
||||
|
||||
def redis():
|
||||
return [
|
||||
{
|
||||
@@ -3212,6 +3033,7 @@ def uploadAPITestCoverageReport(ctx):
|
||||
],
|
||||
"status": [
|
||||
"success",
|
||||
"failure",
|
||||
],
|
||||
},
|
||||
}
|
||||
@@ -3608,12 +3430,30 @@ def emailService():
|
||||
"image": AXLLENT_MAILPIT,
|
||||
}]
|
||||
|
||||
def waitForEmailService():
|
||||
return [{
|
||||
"name": "wait-for-email",
|
||||
"image": OC_CI_WAIT_FOR,
|
||||
"commands": [
|
||||
"wait-for -it email:%s -t 600" % EMAIL_PORT,
|
||||
],
|
||||
}]
|
||||
|
||||
def clamavService():
|
||||
return [{
|
||||
"name": "clamav",
|
||||
"image": OC_CI_CLAMAVD,
|
||||
}]
|
||||
|
||||
def waitForClamavService():
|
||||
return [{
|
||||
"name": "wait-for-clamav",
|
||||
"image": OC_CI_WAIT_FOR,
|
||||
"commands": [
|
||||
"wait-for -it clamav:3310 -t 600",
|
||||
],
|
||||
}]
|
||||
|
||||
def fakeOffice():
|
||||
return [
|
||||
{
|
||||
@@ -3627,11 +3467,10 @@ def fakeOffice():
|
||||
},
|
||||
]
|
||||
|
||||
def wopiCollaborationService(name, ocis_url = OCIS_URL):
|
||||
def wopiCollaborationService(name):
|
||||
service_name = "wopi-%s" % name
|
||||
|
||||
environment = {
|
||||
"OCIS_URL": ocis_url,
|
||||
"MICRO_REGISTRY": "nats-js-kv",
|
||||
"MICRO_REGISTRY_ADDRESS": "%s:9233" % OCIS_SERVER_NAME,
|
||||
"COLLABORATION_LOG_LEVEL": "debug",
|
||||
@@ -3669,6 +3508,13 @@ def tikaService():
|
||||
"name": "tika",
|
||||
"type": "docker",
|
||||
"image": APACHE_TIKA,
|
||||
"detach": True,
|
||||
}, {
|
||||
"name": "wait-for-tika-service",
|
||||
"image": OC_CI_WAIT_FOR,
|
||||
"commands": [
|
||||
"wait-for -it tika:9998 -t 300",
|
||||
],
|
||||
}]
|
||||
|
||||
def apiTestFailureLog():
|
||||
@@ -3829,7 +3675,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://%s" % OCIS_SERVER_NAME,
|
||||
"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",
|
||||
@@ -3945,85 +3791,76 @@ def trivyScan(ctx):
|
||||
},
|
||||
}
|
||||
|
||||
def k3sCluster(name = OCIS_SERVER_NAME, ocm = False):
|
||||
peer_name = OCIS_SERVER_NAME if name == FED_OCIS_SERVER_NAME else FED_OCIS_SERVER_NAME
|
||||
commands = []
|
||||
log_dir = "%s/logs-%s" % (dirs["base"], name)
|
||||
|
||||
commands.extend([
|
||||
"nohup dockerd-entrypoint.sh &",
|
||||
"until docker ps 2>&1 > /dev/null; do sleep 1s; done",
|
||||
# create ocis logs dir
|
||||
"mkdir -p %s && chmod 777 %s" % (log_dir, log_dir),
|
||||
# create cluster
|
||||
"k3d cluster create %s --api-port %s:33199 " % (name, name) +
|
||||
"-p '80:80@loadbalancer' -p '443:443@loadbalancer' -p '9100-9399:30100-30399@loadbalancer' " +
|
||||
"--k3s-arg '--tls-san=k3d@server:*' --k3s-arg '--disable=metrics-server@server:*' " +
|
||||
"-v %s:/logs" % log_dir,
|
||||
# wait for services to be ready
|
||||
"until kubectl get deployment coredns -n kube-system -o go-template='{{.status.availableReplicas}}' | grep -v -e '<no value>'; do sleep 1s; done",
|
||||
"until kubectl get deployment traefik -n kube-system -o go-template='{{.status.availableReplicas}}' | grep -v -e '<no value>'; do sleep 1s; done",
|
||||
"k3d kubeconfig get %s > kubeconfig-$${DRONE_BUILD_NUMBER}-%s.yaml" % (name, name),
|
||||
"chmod 0600 kubeconfig-$${DRONE_BUILD_NUMBER}-%s.yaml" % name,
|
||||
"printf '@@@@@@@@@@@@@@@@@@@@@@@\\n@@@@ k3d is ready @@@@\\n@@@@@@@@@@@@@@@@@@@@@@@\\n'",
|
||||
# add dns rewrite rule
|
||||
"kubectl create configmap coredns-custom -n kube-system " +
|
||||
"--from-literal='rewritehost.override=rewrite name exact %s host.k3d.internal'" % name,
|
||||
"kubectl -n kube-system rollout restart deployment coredns",
|
||||
])
|
||||
|
||||
if ocm:
|
||||
commands.extend([
|
||||
# wait for peer
|
||||
"until getent hosts %s >/dev/null 2>&1; do echo 'Waiting for %s...'; sleep 2; done" % (peer_name, peer_name),
|
||||
# create namespace
|
||||
"kubectl create namespace ocis || true",
|
||||
"bash %s/tests/config/k8s/expose-external-svc.sh -n ocis %s:443" % (dirs["base"], peer_name),
|
||||
])
|
||||
|
||||
commands.extend([
|
||||
"printf '@@@@@@@@@@@@@@@@@@@@@@@\\n@@@@ k3d is ready @@@@\\n@@@@@@@@@@@@@@@@@@@@@@@\\n'",
|
||||
# watch events
|
||||
"kubectl get events -Aw",
|
||||
])
|
||||
|
||||
def k3sCluster():
|
||||
return [{
|
||||
"name": name,
|
||||
"name": OCIS_SERVER_NAME,
|
||||
"image": K3D_IMAGE,
|
||||
"user": "root",
|
||||
"privileged": True,
|
||||
"commands": commands,
|
||||
"commands": [
|
||||
"git clone --single-branch --branch main --depth 1 https://github.com/owncloud/ocis-charts.git",
|
||||
"nohup dockerd-entrypoint.sh &",
|
||||
"until docker ps 2>&1 > /dev/null; do sleep 1s; done",
|
||||
# create cluster
|
||||
"k3d cluster create drone --api-port %s:33199 " % OCIS_SERVER_NAME +
|
||||
"-p '80:80@loadbalancer' -p '443:443@loadbalancer' -p '9100-9399:30100-30399@loadbalancer' " +
|
||||
"--k3s-arg '--tls-san=k3d@server:*' --k3s-arg '--disable=metrics-server@server:*'",
|
||||
# wait for services to be ready
|
||||
"until kubectl get deployment coredns -n kube-system -o go-template='{{.status.availableReplicas}}' | grep -v -e '<no value>'; do sleep 1s; done",
|
||||
"until kubectl get deployment traefik -n kube-system -o go-template='{{.status.availableReplicas}}' | grep -v -e '<no value>'; do sleep 1s; done",
|
||||
"k3d kubeconfig get drone > kubeconfig-$${DRONE_BUILD_NUMBER}.yaml",
|
||||
"chmod 0600 kubeconfig-$${DRONE_BUILD_NUMBER}.yaml",
|
||||
"printf '@@@@@@@@@@@@@@@@@@@@@@@\n@@@@ k3d is ready @@@@\n@@@@@@@@@@@@@@@@@@@@@@@\n'",
|
||||
# add dns rewrite rule
|
||||
"kubectl create configmap coredns-custom -n kube-system " +
|
||||
"--from-literal='rewritehost.override=rewrite name exact %s host.k3d.internal'" % OCIS_SERVER_NAME,
|
||||
"kubectl -n kube-system rollout restart deployment coredns",
|
||||
# watch events
|
||||
"kubectl get events -Aw",
|
||||
],
|
||||
}]
|
||||
|
||||
def waitK3sCluster(name = OCIS_SERVER_NAME):
|
||||
step_name = "wait-cluster-" + name
|
||||
def waitK3sCluster():
|
||||
return [{
|
||||
"name": step_name,
|
||||
"name": "wait-cluster",
|
||||
"image": K3D_IMAGE,
|
||||
"user": "root",
|
||||
"commands": [
|
||||
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}-%s.yaml" % name,
|
||||
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}.yaml",
|
||||
"timeout 300 bash -c 'until test -f $${KUBECONFIG}; do sleep 1; done'",
|
||||
"kubectl config view",
|
||||
"kubectl get pods -A",
|
||||
],
|
||||
}]
|
||||
|
||||
def prepareChartsK8s(environment = []):
|
||||
def prepareOcisDeployment():
|
||||
commands = [
|
||||
# build ocis wrapper
|
||||
"make -C %s build" % dirs["ocisWrapper"],
|
||||
# get ocis charts
|
||||
"[ ! -d %s/ocis-charts ] && " % dirs["base"] +
|
||||
"git clone --single-branch -b main --depth 1 https://github.com/owncloud/ocis-charts.git",
|
||||
# prepare charts for the tests
|
||||
"bash %s/tests/config/k8s/setup.sh %s/ocis-charts" % (dirs["base"], dirs["base"]),
|
||||
"mv %s/tests/config/drone/k8s/values.yaml %s/ocis-charts/charts/ocis/ci/deployment-values.yaml" % (dirs["base"], dirs["base"]),
|
||||
"cp -r %s/tests/config/drone/k8s/authbasic %s/ocis-charts/charts/ocis/templates/" % (dirs["base"], dirs["base"]),
|
||||
"cd %s/ocis-charts" % dirs["base"],
|
||||
"sed -i '/{{- define \"ocis.basicServiceTemplates\" -}}/a\\\\ {{- $_ := set .scope \"appNameAuthBasic\" \"authbasic\" -}}' ./charts/ocis/templates/_common/_tplvalues.tpl",
|
||||
"sed -i '/- name: IDM_ADMIN_PASSWORD/{n;N;N;N;d;}' ./charts/ocis/templates/idm/deployment.yaml",
|
||||
"sed -i '/- name: IDM_ADMIN_PASSWORD/a\\\\\\n value: \"admin\"' ./charts/ocis/templates/idm/deployment.yaml",
|
||||
"sed -i '/- name: STORAGE_PUBLICLINK_DEBUG_ADDR/i\\\\ {{- include \"ocis.persistentStore\" . | nindent 12 }}\\\n' ./charts/ocis/templates/storagepubliclink/deployment.yaml",
|
||||
"sed -i '/- name: PROXY_HTTP_ADDR/i\\\\ - name: PROXY_ENABLE_BASIC_AUTH\\\n value: \"true\"' ./charts/ocis/templates/proxy/deployment.yaml",
|
||||
"sed -i 's|/etc/ocis/sharing-banned-passwords.txt|config/drone/banned-password-list.txt|' ./charts/ocis/templates/sharing/deployment.yaml",
|
||||
"sed -i 's|- name: configs|- name: banned-passwords|' ./charts/ocis/templates/sharing/deployment.yaml",
|
||||
"sed -i 's|mountPath: /etc/ocis$|mountPath: /etc/ocis/config/drone|' ./charts/ocis/templates/sharing/deployment.yaml",
|
||||
"sed -i 's|name: sharing-banned-passwords-{{ .appName }}|name: sharing-banned-passwords|' ./charts/ocis/templates/sharing/deployment.yaml",
|
||||
"sed -i 's|/etc/ocis/sharing-banned-passwords.txt|config/drone/banned-password-list.txt|' ./charts/ocis/templates/frontend/deployment.yaml",
|
||||
"sed -i 's|- name: configs|- name: banned-passwords|' ./charts/ocis/templates/frontend/deployment.yaml",
|
||||
"sed -i 's|mountPath: /etc/ocis$|mountPath: /etc/ocis/config/drone|' ./charts/ocis/templates/frontend/deployment.yaml",
|
||||
"sed -i 's|name: sharing-banned-passwords-{{ .appName }}|name: sharing-banned-passwords|' ./charts/ocis/templates/frontend/deployment.yaml",
|
||||
# Patch thumbnails deployment to mount Unicode fonts (ConfigMaps created in k3sCluster)
|
||||
"sed -i '/- name: THUMBNAILS_TRANSFER_TOKEN/i\\\\ - name: THUMBNAILS_TXT_FONTMAP_FILE\\\n value: /etc/ocis/fontsMap.json\\\n' ./charts/ocis/templates/thumbnails/deployment.yaml",
|
||||
"sed -i '/volumeMounts:/a\\\\ - name: ocis-fonts-ttf\\\n mountPath: /etc/ocis/fonts\\\n - name: ocis-fonts-map\\\n mountPath: /etc/ocis/fontsMap.json\\\n subPath: fontsMap.json' ./charts/ocis/templates/thumbnails/deployment.yaml",
|
||||
"sed -i '/volumes:/a\\\\ - name: ocis-fonts-ttf\\\n configMap:\\\n name: ocis-fonts-ttf\\\n - name: ocis-fonts-map\\\n configMap:\\\n name: ocis-fonts-map' ./charts/ocis/templates/thumbnails/deployment.yaml",
|
||||
]
|
||||
|
||||
return [{
|
||||
"name": "prepare-ocis-deployment",
|
||||
"image": OC_CI_GOLANG,
|
||||
"environment": environment,
|
||||
"image": "owncloudci/golang:1.25",
|
||||
"commands": commands,
|
||||
"volumes": [
|
||||
{
|
||||
@@ -4033,106 +3870,124 @@ def prepareChartsK8s(environment = []):
|
||||
],
|
||||
}]
|
||||
|
||||
def setupConfigMapsK8s(name = OCIS_SERVER_NAME):
|
||||
step_name = "setup-configmaps-" + name
|
||||
|
||||
def setupOcisConfigMaps():
|
||||
commands = [
|
||||
"export KUBECONFIG=%s/kubeconfig-$${DRONE_BUILD_NUMBER}-%s.yaml" % (dirs["base"], name),
|
||||
"export KUBECONFIG=%s/kubeconfig-$${DRONE_BUILD_NUMBER}.yaml" % dirs["base"],
|
||||
# Create namespace for oCIS deployment
|
||||
"kubectl create namespace ocis || true",
|
||||
"kubectl create configmap -n ocis sharing-banned-passwords --from-file=banned-password-list.txt=%s/tests/config/drone/banned-password-list.txt" % dirs["base"],
|
||||
# Setup Unicode font support for thumbnails - create ConfigMaps
|
||||
"echo '{\"defaultFont\": \"/etc/ocis/fonts/NotoSans.ttf\"}' > %s/fontsMap.json" % dirs["base"],
|
||||
"kubectl create configmap -n ocis ocis-fonts-ttf --from-file=%s/tests/config/drone/NotoSans.ttf" % dirs["base"],
|
||||
"kubectl create configmap -n ocis ocis-fonts-map --from-file=%s/fontsMap.json" % dirs["base"],
|
||||
]
|
||||
|
||||
return [{
|
||||
"name": step_name,
|
||||
"name": "setup-configmaps",
|
||||
"image": K3D_IMAGE,
|
||||
"user": "root",
|
||||
"commands": commands,
|
||||
}]
|
||||
|
||||
def deployOcisK8s(name = OCIS_SERVER_NAME):
|
||||
step_name = "deploy-" + name
|
||||
|
||||
def deployOcis():
|
||||
return [{
|
||||
"name": step_name,
|
||||
"image": OC_CI_GOLANG,
|
||||
"name": "deploy-ocis",
|
||||
"image": "owncloudci/golang:1.25",
|
||||
"commands": [
|
||||
"export KUBECONFIG=%s/kubeconfig-$${DRONE_BUILD_NUMBER}-%s.yaml" % (dirs["base"], name),
|
||||
"export KUBECONFIG=%s/kubeconfig-$${DRONE_BUILD_NUMBER}.yaml" % dirs["base"],
|
||||
"cd %s/ocis-charts" % dirs["base"],
|
||||
# update external domain
|
||||
"sed -i 's|externalDomain:.*|externalDomain: %s|' ./charts/ocis/ci/deployment-values.yaml" % name,
|
||||
# deploy ocis
|
||||
"make helm-install-atomic",
|
||||
],
|
||||
}]
|
||||
|
||||
def streamOcisLogsK8s(name = OCIS_SERVER_NAME):
|
||||
return [{
|
||||
"name": "%s-logs" % name,
|
||||
"image": OC_CI_ALPINE,
|
||||
"detach": True,
|
||||
"commands": [
|
||||
"until test -f logs-%s/ocis.log; do sleep 10s; done" % name,
|
||||
"tail -f logs-%s/ocis.log" % name,
|
||||
"volumes": [
|
||||
{
|
||||
"name": "gopath",
|
||||
"path": "/go",
|
||||
},
|
||||
],
|
||||
}]
|
||||
|
||||
def ociswrapperK8s(name = OCIS_SERVER_NAME, ocis_url = OCIS_URL_K8S):
|
||||
def enableAntivirusServiceK8s():
|
||||
return [{
|
||||
"name": "enable-antivirus-service",
|
||||
"image": OC_CI_ALPINE,
|
||||
"commands": [
|
||||
"cp -r %s/tests/config/drone/k8s/clamav %s/ocis-charts/charts/ocis/templates/" % (dirs["base"], dirs["base"]),
|
||||
"sed -i '/^ virusscan:/,/^ *[^ ]/ s/enabled: .*/enabled: true/' %s/tests/config/drone/k8s/values.yaml" % dirs["base"],
|
||||
"sed -i '/name: ANTIVIRUS_SCANNER_TYPE/{n;s/value: *\"icap\"/value: \"clamav\"/}' %s/ocis-charts/charts/ocis/templates/antivirus/deployment.yaml" % dirs["base"],
|
||||
"sed -i '/- name: ANTIVIRUS_SCANNER_TYPE/i\\\\ - name: ANTIVIRUS_CLAMAV_SOCKET\\\n value: \"tcp://clamav:3310\"' %s/ocis-charts/charts/ocis/templates/antivirus/deployment.yaml" % dirs["base"],
|
||||
],
|
||||
}]
|
||||
|
||||
def emailServiceK8s():
|
||||
return [{
|
||||
"name": "copy-%s-service" % EMAIL_SMTP_HOST,
|
||||
"image": OC_CI_ALPINE,
|
||||
"commands": [
|
||||
"cp -r %s/tests/config/drone/k8s/mailpit %s/ocis-charts/charts/ocis/templates/" % (dirs["base"], dirs["base"]),
|
||||
],
|
||||
}]
|
||||
|
||||
def exposeEmailServiceK8s():
|
||||
return [{
|
||||
"name": EMAIL_SMTP_HOST,
|
||||
"image": K3D_IMAGE,
|
||||
"commands": [
|
||||
"kubectl port-forward svc/mailpit %s:%s -n ocis" % (EMAIL_PORT, EMAIL_PORT),
|
||||
"kubectl port-forward svc/mailpit 9174:9174 -n ocis",
|
||||
],
|
||||
"detach": True,
|
||||
}]
|
||||
|
||||
def exposeAntivirusServiceK8s():
|
||||
return [{
|
||||
"name": "expose-antivirus-service",
|
||||
"image": K3D_IMAGE,
|
||||
"commands": [
|
||||
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}.yaml",
|
||||
"until test -f $${KUBECONFIG}; do sleep 1s; done",
|
||||
# expose antivirus service via NodePort
|
||||
"kubectl -n ocis expose deployment antivirus --type=NodePort --port=9277 --name=antivirus-np",
|
||||
"kubectl -n ocis patch svc antivirus-np -p '{\"spec\":{\"ports\":[{\"port\":9277,\"nodePort\":30277}]}}'",
|
||||
],
|
||||
}]
|
||||
|
||||
def ociswrapper():
|
||||
return [{
|
||||
"name": "ociswrapper",
|
||||
"image": K3D_IMAGE,
|
||||
"detach": True,
|
||||
"user": "root",
|
||||
"commands": [
|
||||
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}-%s.yaml" % name,
|
||||
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}.yaml",
|
||||
"until test -f $${KUBECONFIG}; do sleep 1s; done",
|
||||
"%s/bin/ociswrapper serve --url %s --admin-username admin --admin-password admin --skip-ocis-run" % (dirs["ocisWrapper"], ocis_url),
|
||||
"kubectl get pods -A",
|
||||
"kubectl get ingress -A",
|
||||
"kubectl describe pods $(kubectl get pods -n ocis -l app=antivirus -o jsonpath=\"{.items[0].metadata.name}\") -n ocis",
|
||||
"kubectl describe pods $(kubectl get pods -n ocis -l app=postprocessing -o jsonpath=\"{.items[0].metadata.name}\") -n ocis",
|
||||
"%s/bin/ociswrapper serve --url https://%s --admin-username admin --admin-password admin --skip-ocis-run" % (dirs["ocisWrapper"], OCIS_SERVER_NAME),
|
||||
],
|
||||
}, {
|
||||
"detach": True,
|
||||
}]
|
||||
|
||||
def waitForOciswrapper(url = "http://ociswrapper:5200", depends_on = []):
|
||||
return [{
|
||||
"name": "wait-for-wrapper",
|
||||
"image": OC_CI_ALPINE,
|
||||
"commands": [
|
||||
"timeout 60 bash -c 'while [ $(curl -sk " +
|
||||
"http://ociswrapper:5200 " +
|
||||
"%s " % url +
|
||||
"-w %{http_code} -o /dev/null) != 404 ]; do sleep 1; done'",
|
||||
],
|
||||
"depends_on": depends_on,
|
||||
}]
|
||||
|
||||
def exposeNodePortsK8s(services = [], name = OCIS_SERVER_NAME):
|
||||
commands = []
|
||||
for idx, service in enumerate(services):
|
||||
deploy_name = service[0]
|
||||
service_port = str(service[1])
|
||||
node_port = service_port.replace("9", "30", 1)
|
||||
|
||||
# there can be multiple collaboration services
|
||||
if service_port == "9300" and "collaboration" in deploy_name:
|
||||
node_port = "3030%d" % idx
|
||||
service_name = "%s-%s-np" % (deploy_name, node_port)
|
||||
commands.append("kubectl -n ocis expose deployment %s --type=NodePort --port=%s --name=%s" % (deploy_name, service_port, service_name))
|
||||
commands.append("kubectl -n ocis patch svc %s -p '{\"spec\":{\"ports\":[{\"port\":%s,\"nodePort\":%s}]}}'" % (service_name, service_port, node_port))
|
||||
|
||||
def tikaServiceK8s():
|
||||
return [{
|
||||
"name": "expose-nodeports",
|
||||
"image": K3D_IMAGE,
|
||||
"name": "tika",
|
||||
"type": "docker",
|
||||
"image": OC_CI_ALPINE,
|
||||
"commands": [
|
||||
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}-%s.yaml" % name,
|
||||
"until test -f $${KUBECONFIG}; do sleep 1s; done",
|
||||
] + commands,
|
||||
}]
|
||||
|
||||
def exposeExternalServersK8s(servers = [], name = OCIS_SERVER_NAME):
|
||||
servers_arg = []
|
||||
for server in servers:
|
||||
servers_arg.append("%s:%s" % (server[0], str(server[1])))
|
||||
servers_arg = ",".join(servers_arg)
|
||||
|
||||
return [{
|
||||
"name": "expose-external-servers",
|
||||
"image": K3D_IMAGE,
|
||||
"commands": [
|
||||
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}-%s.yaml" % name,
|
||||
"until test -f $${KUBECONFIG}; do sleep 1s; done",
|
||||
"bash %s/tests/config/k8s/expose-external-svc.sh -n ocis %s" % (dirs["base"], servers_arg),
|
||||
"until test -f %s/ocis-charts/charts/ocis/templates/search/deployment.yaml; do sleep 1s; done" % dirs["base"],
|
||||
"cp -r %s/tests/config/drone/k8s/tika %s/ocis-charts/charts/ocis/templates/" % (dirs["base"], dirs["base"]),
|
||||
"sed -i '/^[[:space:]]*storagesystem:/i\\\\ search:\\\n extractor:\\\n type: \"tika\"\\\n tika:\\\n url: \"http://tika:9998\"\\\n persistence:\\\n enabled: true\\\n accessModes:\\\n - ReadWriteOnce' %s/tests/config/drone/k8s/values.yaml" % dirs["base"],
|
||||
],
|
||||
}]
|
||||
@@ -55,8 +55,7 @@ branches:
|
||||
require_code_owner_reviews: false
|
||||
required_status_checks:
|
||||
strict: false
|
||||
contexts:
|
||||
- continuous-integration/drone/pr
|
||||
contexts: []
|
||||
enforce_admins: null
|
||||
restrictions:
|
||||
apps: []
|
||||
@@ -74,8 +73,7 @@ branches:
|
||||
require_code_owner_reviews: false
|
||||
required_status_checks:
|
||||
strict: false
|
||||
contexts:
|
||||
- continuous-integration/drone/pr
|
||||
contexts: []
|
||||
enforce_admins: null
|
||||
restrictions:
|
||||
apps: []
|
||||
|
||||
@@ -0,0 +1,603 @@
|
||||
name: Acceptance Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
name: build-and-test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
tools: composer
|
||||
|
||||
- name: Pre-checks and generate
|
||||
run: |
|
||||
# Phase 1 — I/O + light CPU, no contention between tasks.
|
||||
# wa (I/O wait) will spike during npm/pnpm downloads.
|
||||
# Expected avg load: ~50-60 % CPU on 2 vCPU.
|
||||
vmstat 2 > /tmp/vmstat-phase1.log & MONITOR_PID=$!
|
||||
|
||||
(make vendor-bin-codestyle && make vendor-bin-codesniffer && make test-php-style && make check-env-var-annotations) > /tmp/php-style.log 2>&1 & PIDS=($!)
|
||||
(npm install -g @gherlint/gherlint@1.1.0 && make test-gherkin-lint) > /tmp/gherkin.log 2>&1 & PIDS+=($!)
|
||||
bash tests/acceptance/check-deleted-suites-in-expected-failure.sh > /tmp/suites.log 2>&1 & PIDS+=($!)
|
||||
make govulncheck > /tmp/govulncheck.log 2>&1 & PIDS+=($!)
|
||||
make ci-node-generate > /tmp/node-gen.log 2>&1 & PIDS+=($!)
|
||||
make ci-go-generate > /tmp/go-gen.log 2>&1 & PIDS+=($!)
|
||||
make changelog-lint > /tmp/changelog-lint.log 2>&1 & PIDS+=($!)
|
||||
|
||||
FAILED=0
|
||||
for PID in "${PIDS[@]}"; do wait "$PID" || FAILED=1; done
|
||||
kill $MONITOR_PID 2>/dev/null; wait $MONITOR_PID 2>/dev/null || true
|
||||
|
||||
# How to read the load line:
|
||||
# busy — % of time CPUs were doing work (100% = fully saturated)
|
||||
# runq — processes waiting for a CPU turn; runq >> nCPU means tasks
|
||||
# compete and each runs slower (runq 10 on 2 vCPU = ~5× slower)
|
||||
# wa — % waiting on disk/network; wa > 20% = I/O bound, not CPU bound
|
||||
# → high wa: add more parallel tasks; high runq: reduce them
|
||||
awk '/^[ ]*[0-9]/ { busy=100-$15; sum_b+=busy; if(busy>pk_b)pk_b=busy;
|
||||
sum_r+=$1; if($1>pk_r) pk_r=$1; sum_wa+=$16; n++ }
|
||||
END { printf "=== phase 1 load (2 vCPU): avg busy %d%% peak %d%% | avg runq %.0f peak %d | avg wa %d%%\n",
|
||||
sum_b/n, pk_b, sum_r/n, pk_r, sum_wa/n }' /tmp/vmstat-phase1.log
|
||||
|
||||
echo "=== php-style ===" && cat /tmp/php-style.log
|
||||
echo "=== gherkin ===" && cat /tmp/gherkin.log
|
||||
echo "=== suites ===" && cat /tmp/suites.log
|
||||
echo "=== govulncheck ===" && cat /tmp/govulncheck.log
|
||||
echo "=== ci-node-generate ===" && cat /tmp/node-gen.log
|
||||
echo "=== ci-go-generate ===" && cat /tmp/go-gen.log
|
||||
echo "=== changelog-lint ===" && cat /tmp/changelog-lint.log
|
||||
|
||||
exit $FAILED
|
||||
|
||||
- name: Build, lint and test
|
||||
run: |
|
||||
# Phase 2 — all three are CPU-bound Go compilation on 2 vCPU.
|
||||
# They compete for CPU (expect id < 10, load ~95 %) but share the
|
||||
# Go build cache within this runner, so make test reuses artifacts
|
||||
# from the ocis build. Critical path = ocis build (~300 s).
|
||||
vmstat 2 > /tmp/vmstat-phase2.log & MONITOR_PID=$!
|
||||
|
||||
make ci-golangci-lint > /tmp/golangci-lint.log 2>&1 & PIDS=($!)
|
||||
make -C ocis build > /tmp/ocis-build.log 2>&1 & PIDS+=($!)
|
||||
make test > /tmp/unit-tests.log 2>&1 & PIDS+=($!)
|
||||
|
||||
FAILED=0
|
||||
for PID in "${PIDS[@]}"; do wait "$PID" || FAILED=1; done
|
||||
kill $MONITOR_PID 2>/dev/null; wait $MONITOR_PID 2>/dev/null || true
|
||||
|
||||
# Signal: busy=saturated runq>>2=tasks competing(slows each) wa>20%=I/O bound
|
||||
awk '/^[ ]*[0-9]/ { busy=100-$15; sum_b+=busy; if(busy>pk_b)pk_b=busy;
|
||||
sum_r+=$1; if($1>pk_r) pk_r=$1; sum_wa+=$16; n++ }
|
||||
END { printf "=== phase 2 load (2 vCPU): avg busy %d%% peak %d%% | avg runq %.0f peak %d | avg wa %d%%\n",
|
||||
sum_b/n, pk_b, sum_r/n, pk_r, sum_wa/n }' /tmp/vmstat-phase2.log
|
||||
|
||||
echo "=== golangci-lint ==="&& cat /tmp/golangci-lint.log
|
||||
echo "=== ocis build ===" && cat /tmp/ocis-build.log
|
||||
echo "=== unit tests ===" && cat /tmp/unit-tests.log
|
||||
|
||||
exit $FAILED
|
||||
|
||||
local-api-tests:
|
||||
name: ${{ matrix.suite }}
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
suite:
|
||||
# contract & locks
|
||||
- apiContract
|
||||
- apiLocks
|
||||
# settings & notifications (needs email)
|
||||
- apiSettings
|
||||
- apiNotification
|
||||
- apiCors
|
||||
# graph
|
||||
- apiGraphUser
|
||||
- apiGraph
|
||||
- apiGraphGroup
|
||||
# spaces & dav
|
||||
- apiSpaces
|
||||
- apiSpacesShares
|
||||
- apiSpacesDavOperation
|
||||
- apiDownloads
|
||||
- apiAsyncUpload
|
||||
- apiDepthInfinity
|
||||
- apiArchiver
|
||||
- apiActivities
|
||||
# search
|
||||
- apiSearch1
|
||||
- apiSearch2
|
||||
- apiSearchContent # needs Tika
|
||||
# sharing
|
||||
- apiSharingNgShares
|
||||
- apiReshare
|
||||
- apiSharingNgPermissions
|
||||
- apiSharingNgAdditionalShareRole
|
||||
- apiSharingNgDriveInvitation
|
||||
- apiSharingNgItemInvitation
|
||||
- apiSharingNgDriveLinkShare
|
||||
- apiSharingNgItemLinkShare
|
||||
- apiSharingNgLinkShareManagement
|
||||
# auth
|
||||
- apiAuthApp
|
||||
# antivirus (needs ClamAV)
|
||||
- apiAntivirus
|
||||
# federation (needs email + federation ocis)
|
||||
- apiOcm
|
||||
# collaboration (needs WOPI)
|
||||
- apiCollaboration
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
tools: composer
|
||||
|
||||
- name: Cache libcurl 8.12.0
|
||||
id: cache-libcurl
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
||||
with:
|
||||
path: /opt/libcurl
|
||||
key: libcurl-8.12.0-${{ runner.os }}
|
||||
|
||||
- name: Install libcurl 8.12.0 build dependencies
|
||||
# Always run: libvips-dev is needed at runtime (govips thumbnails) and for
|
||||
# pkg-config --exists vips to succeed so oCIS is built with ENABLE_VIPS=true.
|
||||
# Skipping this on cache hit would cause oCIS to fall back to the imaging library.
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libssl-dev libnghttp2-dev libpsl-dev libldap-dev libssh-dev zlib1g-dev libvips-dev
|
||||
|
||||
- name: Compile libcurl 8.12.0 from source
|
||||
if: steps.cache-libcurl.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd /tmp
|
||||
curl -sLO https://curl.se/download/curl-8.12.0.tar.gz
|
||||
tar xzf curl-8.12.0.tar.gz
|
||||
cd curl-8.12.0
|
||||
./configure --with-ssl --with-zlib --with-nghttp2 --prefix=/opt/libcurl --enable-versioned-symbols --silent
|
||||
make -j$(nproc) --silent
|
||||
sudo make install --silent
|
||||
|
||||
- name: Restore libcurl ldconfig
|
||||
# Always run: on cache hit the .so files are restored to /opt/libcurl/lib but
|
||||
# /etc/ld.so.cache on the fresh runner doesn't know about them yet.
|
||||
# Without ldconfig, PHP's curl extension can't find libcurl even though it's present.
|
||||
run: |
|
||||
echo "/opt/libcurl/lib" | sudo tee /etc/ld.so.conf.d/libcurl-8.conf
|
||||
sudo ldconfig
|
||||
/opt/libcurl/bin/curl --version | head -1
|
||||
php -r '
|
||||
$v = curl_version()["version"];
|
||||
echo "PHP curl: $v\n";
|
||||
if (version_compare($v, "8.12.0", "<")) {
|
||||
fwrite(STDERR, "FATAL: PHP sees libcurl $v, need >= 8.12.0\n");
|
||||
exit(1);
|
||||
}
|
||||
'
|
||||
|
||||
- name: Run ${{ matrix.suite }}
|
||||
run: BEHAT_SUITES=${{ matrix.suite }} python3 tests/acceptance/run-github.py
|
||||
|
||||
cli-tests:
|
||||
needs: [build-and-test]
|
||||
name: ${{ matrix.suite }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
suite:
|
||||
- cliCommands,apiServiceAvailability # grouped like drone; needs ClamAV + email
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
tools: composer
|
||||
|
||||
- name: Run ${{ matrix.suite }}
|
||||
run: BEHAT_SUITES="${{ matrix.suite }}" python3 tests/acceptance/run-github.py
|
||||
|
||||
ldap-pool-tests:
|
||||
needs: [build-and-test]
|
||||
name: ldapPool-${{ matrix.suite }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
suite:
|
||||
- apiGraphUser,apiGraph,apiGraphGroup
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
tools: composer
|
||||
|
||||
- name: Run ${{ matrix.suite }} with OCIS_LDAP_POOL_ENABLED=true
|
||||
run: BEHAT_SUITES="${{ matrix.suite }}" OCIS_LDAP_POOL_ENABLED=true python3 tests/acceptance/run-github.py
|
||||
|
||||
core-api-tests:
|
||||
name: ${{ matrix.suite }}
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
suite:
|
||||
- "coreApiAuth,coreApiCapabilities,coreApiFavorites,coreApiMain,coreApiVersions"
|
||||
- "coreApiShareManagementBasicToShares,coreApiShareManagementToShares"
|
||||
- "coreApiSharees"
|
||||
- "coreApiSharePublicLink2"
|
||||
- "coreApiShareOperationsToShares1,coreApiShareOperationsToShares2,coreApiSharePublicLink1,coreApiShareCreateSpecialToShares1,coreApiShareCreateSpecialToShares2,coreApiShareUpdateToShares"
|
||||
- "coreApiTrashbin,coreApiTrashbinRestore,coreApiWebdavEtagPropagation1,coreApiWebdavEtagPropagation2"
|
||||
- "coreApiWebdavDelete,coreApiWebdavOperations,coreApiWebdavMove2"
|
||||
- "coreApiWebdavProperties"
|
||||
- "coreApiWebdavMove1,coreApiWebdavPreviews,coreApiWebdavUpload,coreApiWebdavUploadTUS"
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
tools: composer
|
||||
|
||||
- name: Cache libcurl 8.12.0
|
||||
id: cache-libcurl
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
||||
with:
|
||||
path: /opt/libcurl
|
||||
key: libcurl-8.12.0-${{ runner.os }}
|
||||
|
||||
- name: Install libcurl 8.12.0 build dependencies
|
||||
# Always run: libvips-dev is needed at runtime (govips thumbnails) and for
|
||||
# pkg-config --exists vips to succeed so oCIS is built with ENABLE_VIPS=true.
|
||||
# Skipping this on cache hit would cause oCIS to fall back to the imaging library.
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libssl-dev libnghttp2-dev libpsl-dev libldap-dev libssh-dev zlib1g-dev libvips-dev
|
||||
|
||||
- name: Compile libcurl 8.12.0 from source
|
||||
if: steps.cache-libcurl.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd /tmp
|
||||
curl -sLO https://curl.se/download/curl-8.12.0.tar.gz
|
||||
tar xzf curl-8.12.0.tar.gz
|
||||
cd curl-8.12.0
|
||||
./configure --with-ssl --with-zlib --with-nghttp2 --prefix=/opt/libcurl --enable-versioned-symbols --silent
|
||||
make -j$(nproc) --silent
|
||||
sudo make install --silent
|
||||
|
||||
- name: Restore libcurl ldconfig
|
||||
# Always run: on cache hit the .so files are restored to /opt/libcurl/lib but
|
||||
# /etc/ld.so.cache on the fresh runner doesn't know about them yet.
|
||||
# Without ldconfig, PHP's curl extension can't find libcurl even though it's present.
|
||||
run: |
|
||||
echo "/opt/libcurl/lib" | sudo tee /etc/ld.so.conf.d/libcurl-8.conf
|
||||
sudo ldconfig
|
||||
/opt/libcurl/bin/curl --version | head -1
|
||||
php -r '
|
||||
$v = curl_version()["version"];
|
||||
echo "PHP curl: $v\n";
|
||||
if (version_compare($v, "8.12.0", "<")) {
|
||||
fwrite(STDERR, "FATAL: PHP sees libcurl $v, need >= 8.12.0\n");
|
||||
exit(1);
|
||||
}
|
||||
'
|
||||
|
||||
- name: Run ${{ matrix.suite }}
|
||||
run: >
|
||||
BEHAT_SUITES="${{ matrix.suite }}"
|
||||
ACCEPTANCE_TEST_TYPE=core-api
|
||||
WITH_REMOTE_PHP=true
|
||||
python3 tests/acceptance/run-github.py
|
||||
|
||||
e2e-tests:
|
||||
name: e2e-${{ matrix.suite }}
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- suite: part-1
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 1"
|
||||
- suite: part-2
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 2"
|
||||
- suite: part-3
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 3"
|
||||
- suite: part-4
|
||||
args: "--total-parts 4 --xsuites search,app-provider,ocm,keycloak --run-part 4"
|
||||
- suite: search
|
||||
args: "--suites search"
|
||||
tika: true
|
||||
- suite: keycloak
|
||||
args: "--suites journeys,keycloak"
|
||||
keycloak: true
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
# 24.16.0 breaks playwright install (yauzl zip extraction hangs); pin to last known good.
|
||||
# https://github.com/microsoft/playwright/issues/40724
|
||||
node-version: "24.15.0"
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
- name: Generate code
|
||||
run: |
|
||||
pnpm config set store-dir ./.pnpm-store
|
||||
make ci-node-generate
|
||||
env:
|
||||
CHROMEDRIVER_SKIP_DOWNLOAD: "true"
|
||||
|
||||
- name: Cache Playwright Chromium
|
||||
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: playwright-chromium-${{ hashFiles('.drone.env') }}
|
||||
|
||||
# --- Tika (search suite only) ---
|
||||
- name: Start Tika
|
||||
if: matrix.tika == true
|
||||
run: |
|
||||
docker run -d --name tika --network host apache/tika:3.2.2.0-full
|
||||
timeout 120 bash -c 'until curl -sf http://localhost:9998; do sleep 2; done'
|
||||
echo "tika ready."
|
||||
|
||||
# --- Keycloak (keycloak suite only) ---
|
||||
- name: Generate Keycloak certs
|
||||
if: matrix.keycloak == true
|
||||
run: |
|
||||
mkdir -p keycloak-certs
|
||||
openssl req -x509 -newkey rsa:2048 \
|
||||
-keyout keycloak-certs/keycloakkey.pem \
|
||||
-out keycloak-certs/keycloakcrt.pem \
|
||||
-nodes -days 365 -subj '/CN=keycloak'
|
||||
chmod -R 777 keycloak-certs
|
||||
|
||||
- name: Start Postgres
|
||||
if: matrix.keycloak == true
|
||||
run: |
|
||||
docker run -d --name postgres --network host \
|
||||
-e POSTGRES_DB=keycloak \
|
||||
-e POSTGRES_USER=keycloak \
|
||||
-e POSTGRES_PASSWORD=keycloak \
|
||||
postgres:alpine3.18
|
||||
timeout 30 bash -c 'until docker exec postgres pg_isready -U keycloak; do sleep 1; done'
|
||||
|
||||
- name: Start Keycloak
|
||||
if: matrix.keycloak == true
|
||||
run: |
|
||||
# Patch realm: replace Drone Docker hostname with localhost IP
|
||||
sed 's|https://ocis-server:9200|https://127.0.0.1:9200|g' \
|
||||
tests/config/drone/ocis-ci-realm.dist.json > /tmp/ocis-realm.json
|
||||
docker run -d --name keycloak --network host \
|
||||
-e OCIS_DOMAIN=https://127.0.0.1:9200 \
|
||||
-e KC_HOSTNAME=localhost \
|
||||
-e KC_PORT=8443 \
|
||||
-e KC_DB=postgres \
|
||||
-e "KC_DB_URL=jdbc:postgresql://localhost:5432/keycloak" \
|
||||
-e KC_DB_USERNAME=keycloak \
|
||||
-e KC_DB_PASSWORD=keycloak \
|
||||
-e KC_FEATURES=impersonation \
|
||||
-e KC_BOOTSTRAP_ADMIN_USERNAME=admin \
|
||||
-e KC_BOOTSTRAP_ADMIN_PASSWORD=admin \
|
||||
-e KC_HTTPS_CERTIFICATE_FILE=/keycloak-certs/keycloakcrt.pem \
|
||||
-e KC_HTTPS_CERTIFICATE_KEY_FILE=/keycloak-certs/keycloakkey.pem \
|
||||
-v "$(pwd)/keycloak-certs:/keycloak-certs:ro" \
|
||||
-v "/tmp/ocis-realm.json:/opt/keycloak/data/import/oCIS-realm.json:ro" \
|
||||
quay.io/keycloak/keycloak:26.2.5 \
|
||||
start-dev --proxy-headers xforwarded \
|
||||
--spi-connections-http-client-default-disable-trust-manager=true \
|
||||
--import-realm --health-enabled=true
|
||||
timeout 300 bash -c 'until curl -skf https://localhost:9000/health/ready; do sleep 3; done' \
|
||||
|| (echo "=== keycloak logs ===" && docker logs keycloak --tail 80 && exit 1)
|
||||
echo "keycloak ready."
|
||||
|
||||
- name: Run e2e-${{ matrix.suite }}
|
||||
run: E2E_ARGS="${{ matrix.args }}" python3 tests/acceptance/run-e2e.py
|
||||
env:
|
||||
TIKA_NEEDED: ${{ matrix.tika == true && 'true' || 'false' }}
|
||||
KEYCLOAK_NEEDED: ${{ matrix.keycloak == true && 'true' || 'false' }}
|
||||
|
||||
litmus:
|
||||
name: litmus
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- name: Run litmus
|
||||
run: python3 tests/acceptance/run-litmus.py
|
||||
|
||||
cs3api:
|
||||
name: cs3api
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- name: Run cs3api validator
|
||||
run: python3 tests/acceptance/run-cs3api.py
|
||||
|
||||
wopi-builtin:
|
||||
name: wopi-builtin
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- name: Run WOPI validator (builtin)
|
||||
run: python3 tests/acceptance/run-wopi.py --type builtin
|
||||
|
||||
wopi-cs3:
|
||||
name: wopi-cs3
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
- name: Run WOPI validator (cs3)
|
||||
run: python3 tests/acceptance/run-wopi.py --type cs3
|
||||
|
||||
external-ldap-tests:
|
||||
name: external-ldap-smoke
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
# web/idp assets must be embedded for `ocis server` to come up (same as run-github.py)
|
||||
- name: Generate assets
|
||||
run: make ci-node-generate
|
||||
|
||||
- name: Build oCIS
|
||||
run: make -C ocis build
|
||||
|
||||
# Boots an external osixia LDAP + oCIS (embedded idm excluded) and runs the
|
||||
# smoke scope against the graph API — exercises the external-directory
|
||||
# read-after-write / retry path (OCISDEV-1030/1032/1033) that the embedded-idm
|
||||
# acceptance jobs never hit.
|
||||
- name: Run external-LDAP smoke
|
||||
run: tests/ldap-smoke/run.sh
|
||||
|
||||
external-ldap-distributed-tests:
|
||||
name: external-ldap-distributed-smoke
|
||||
needs: [build-and-test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
||||
|
||||
# web/idp assets must be embedded for `ocis server` to come up (same as run-github.py)
|
||||
- name: Generate assets
|
||||
run: make ci-node-generate
|
||||
|
||||
- name: Build oCIS
|
||||
run: make -C ocis build
|
||||
|
||||
# Distributed LDAP topology (proxy over an async syncrepl replica + write master);
|
||||
# the replication lag exercises the retry / read-after-write path (OCISDEV-1030/1032/1033).
|
||||
- name: Run external-LDAP distributed smoke
|
||||
run: tests/ldap-smoke-distributed/run.sh
|
||||
|
||||
all-acceptance-tests:
|
||||
needs: [local-api-tests, cli-tests, ldap-pool-tests, core-api-tests, litmus, cs3api, wopi-builtin, wopi-cs3, e2e-tests, external-ldap-tests, external-ldap-distributed-tests]
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check all jobs passed
|
||||
run: |
|
||||
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
@@ -0,0 +1,49 @@
|
||||
name: k6 Load Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, edited]
|
||||
schedule:
|
||||
- cron: '0 4 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
k6-load-test:
|
||||
name: k6-load-test
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: owncloudci/alpine:latest
|
||||
if: >-
|
||||
github.event_name == 'schedule' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
contains(github.event.pull_request.title || '', 'k6-test'))
|
||||
env:
|
||||
SSH_OCIS_REMOTE: ${{ secrets.SSH_OCIS_REMOTE }}
|
||||
SSH_OCIS_USERNAME: ${{ secrets.SSH_OCIS_USERNAME }}
|
||||
SSH_OCIS_PASSWORD: ${{ secrets.SSH_OCIS_PASSWORD }}
|
||||
TEST_SERVER_URL: ${{ secrets.TEST_SERVER_URL }}
|
||||
SSH_K6_REMOTE: ${{ secrets.SSH_K6_REMOTE }}
|
||||
SSH_K6_USERNAME: ${{ secrets.SSH_K6_USERNAME }}
|
||||
SSH_K6_PASSWORD: ${{ secrets.SSH_K6_PASSWORD }}
|
||||
OCIS_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Install SSH dependencies
|
||||
run: apk add --no-cache openssh-client sshpass
|
||||
|
||||
- name: Run k6 load tests
|
||||
run: sh tests/config/drone/run_k6_tests.sh
|
||||
|
||||
- name: Retrieve OCIS logs
|
||||
if: always()
|
||||
run: sh tests/config/drone/run_k6_tests.sh --ocis-log
|
||||
|
||||
- name: Show Grafana dashboard link
|
||||
if: always()
|
||||
run: |
|
||||
echo "Grafana Dashboard: https://grafana.k6.infra.owncloud.works"
|
||||
@@ -0,0 +1,342 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
branches:
|
||||
- 'feat/release-pipeline**'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version_override:
|
||||
description: 'Version override (leave empty to auto-detect from latest tag)'
|
||||
type: string
|
||||
default: ''
|
||||
|
||||
env:
|
||||
NODE_VERSION: '24'
|
||||
PNPM_VERSION: '10.28.1'
|
||||
GOLANG_BUILD_IMAGE: 'golang:1.25.13-alpine3.23@sha256:42fc3368d1c50170a452f2bf4a1dfd292a065870c3f258d799aad4316671cb69'
|
||||
|
||||
jobs:
|
||||
determine-release-type:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
version: ${{ steps.info.outputs.version }}
|
||||
is_prerelease: ${{ steps.info.outputs.is_prerelease }}
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
if: ${{ github.ref_type == 'branch' || (github.event_name == 'workflow_dispatch' && inputs.version_override == '') }}
|
||||
with:
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
|
||||
- id: info
|
||||
run: |
|
||||
next_dev() {
|
||||
# If latest tag is already a pre-release (e.g. v8.0.2-dev.1), reuse its base
|
||||
# version (8.0.2-dev.1) so repeated branch runs don't bump the patch counter.
|
||||
# If latest tag is a production release (e.g. v8.0.1), increment patch (8.0.2-dev.1).
|
||||
local tag=$(git tag --sort=-version:refname | grep -m1 '^v' || echo "v0.0.0")
|
||||
local ver="${tag#v}"
|
||||
if [[ "$ver" == *"-"* ]]; then
|
||||
echo "${ver%%-*}-dev.1"
|
||||
else
|
||||
IFS='.' read -r M m p <<< "$ver"
|
||||
echo "${M}.${m}.$((p + 1))-dev.1"
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||
VERSION="${{ inputs.version_override }}"
|
||||
[[ -z "$VERSION" ]] && VERSION=$(next_dev)
|
||||
elif [[ "${{ github.ref_type }}" == "branch" ]]; then
|
||||
VERSION=$(next_dev)
|
||||
else
|
||||
VERSION="${GITHUB_REF#refs/tags/v}"
|
||||
fi
|
||||
|
||||
[[ "$VERSION" == *"-"* ]] && IS_PRERELEASE=true || IS_PRERELEASE=false
|
||||
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "is_prerelease=$IS_PRERELEASE" >> $GITHUB_OUTPUT
|
||||
|
||||
generate-code:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- run: npm install --silent -g yarn npx --force
|
||||
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
|
||||
with:
|
||||
version: ${{ env.PNPM_VERSION }}
|
||||
- run: pnpm config set store-dir ./.pnpm-store && make ci-node-generate
|
||||
env:
|
||||
CHROMEDRIVER_SKIP_DOWNLOAD: 'true'
|
||||
- run: make ci-go-generate
|
||||
env:
|
||||
BUF_TOKEN: ${{ secrets.BUF_API_TOKEN }}
|
||||
- name: bump LatestTag
|
||||
run: |
|
||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
||||
sed -i "s/LatestTag = \".*\"/LatestTag = \"$VERSION\"/" ocis-pkg/version/version.go
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: |
|
||||
.
|
||||
!.git
|
||||
retention-days: 1
|
||||
|
||||
# Builds the release image locally and runs the Trivy security gate against it.
|
||||
# Image publishing to Docker Hub happens in a separate repository; this job only
|
||||
# builds (load, no push) so the vulnerability gate still blocks a bad release.
|
||||
docker-build:
|
||||
name: docker-build (${{ matrix.arch }})
|
||||
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
|
||||
needs: [determine-release-type, generate-code, security-scan-trivy]
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [amd64, arm64]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
||||
- id: goversion
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
ALPINE_VERSION=$(grep '^FROM.*alpine:' ocis/docker/Dockerfile.linux.${{ matrix.arch }} | grep -o 'alpine:[0-9.]*' | cut -d: -f2 | cut -d. -f1,2)
|
||||
docker run --rm \
|
||||
-v "${{ github.workspace }}:/workspace" \
|
||||
-w /workspace \
|
||||
"golang:${{ steps.goversion.outputs.go-version }}-alpine${ALPINE_VERSION}" \
|
||||
sh -c "apk add --no-cache bash gcc musl-dev vips-dev make git && \
|
||||
git config --global --add safe.directory /workspace && \
|
||||
CGO_ENABLED=1 ENABLE_VIPS=true VERSION=${{ needs.determine-release-type.outputs.version }} \
|
||||
make -C ocis release-linux-docker-${{ matrix.arch }}"
|
||||
- id: tags
|
||||
run: |
|
||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
||||
ARCH="${{ matrix.arch }}"
|
||||
printf "tags<<EOF\n%s\nEOF\n" \
|
||||
"owncloud/ocis:${VERSION}-linux-${ARCH}" >> $GITHUB_OUTPUT
|
||||
- id: build
|
||||
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
||||
with:
|
||||
context: ocis
|
||||
file: ocis/docker/Dockerfile.linux.${{ matrix.arch }}
|
||||
platforms: linux/${{ matrix.arch }}
|
||||
load: true
|
||||
push: false
|
||||
provenance: false
|
||||
build-args: |
|
||||
REVISION=${{ github.sha }}
|
||||
VERSION=${{ needs.determine-release-type.outputs.version }}
|
||||
tags: ${{ steps.tags.outputs.tags }}
|
||||
- id: trivy
|
||||
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
continue-on-error: true
|
||||
with:
|
||||
image-ref: ${{ steps.tags.outputs.tags }}
|
||||
format: table
|
||||
exit-code: 1
|
||||
severity: HIGH,CRITICAL
|
||||
ignore-unfixed: true
|
||||
skip-files: /usr/bin/gomplate,/usr/bin/wait-for
|
||||
hide-progress: true
|
||||
env:
|
||||
TRIVY_IGNOREFILE: .trivyignore
|
||||
- name: Block on vulnerabilities
|
||||
if: steps.trivy.outcome == 'failure'
|
||||
run: |
|
||||
echo "::error title=Security scan blocked release::Image ${{ steps.tags.outputs.tags }} has HIGH or CRITICAL vulnerabilities (see Trivy report above). Fix all findings before releasing."
|
||||
exit 1
|
||||
|
||||
build-binaries:
|
||||
name: build-binaries (${{ matrix.os }})
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, generate-code]
|
||||
strategy:
|
||||
matrix:
|
||||
os: [linux, darwin]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
make -C ocis release-${{ matrix.os }} OUTPUT=${{ needs.determine-release-type.outputs.version }}
|
||||
make -C ocis release-finish
|
||||
if [[ "${{ matrix.os }}" == "linux" ]]; then
|
||||
cp assets/End-User-License-Agreement-for-ownCloud-Infinite-Scale.pdf ocis/dist/release/
|
||||
fi
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: binaries-${{ matrix.os }}
|
||||
path: ocis/dist/release/*
|
||||
retention-days: 1
|
||||
|
||||
security-scan-trivy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
with:
|
||||
scan-type: fs
|
||||
format: table
|
||||
exit-code: 1
|
||||
severity: CRITICAL,HIGH
|
||||
trivy-config: .trivy.yaml
|
||||
|
||||
license-check:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, generate-code]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force
|
||||
- run: make ci-node-check-licenses && make ci-node-save-licenses
|
||||
- run: make ci-go-check-licenses && make ci-go-save-licenses
|
||||
- run: tar -czf third-party-licenses.tar.gz -C third-party-licenses .
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: third-party-licenses.tar.gz
|
||||
retention-days: 1
|
||||
|
||||
generate-changelog:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type]
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
make changelog CHANGELOG_VERSION=$(echo "${{ needs.determine-release-type.outputs.version }}" | cut -d'-' -f1)
|
||||
# calens produces empty output when no versioned changelog directory exists (e.g. dev builds).
|
||||
# Fall back to a pointer to the unreleased entries.
|
||||
if [[ $(wc -l < ocis/dist/CHANGELOG.md) -lt 5 ]]; then
|
||||
echo "Development release — no release notes yet. See [unreleased changes](https://github.com/owncloud/ocis/tree/master/changelog/unreleased/)." > ocis/dist/CHANGELOG.md
|
||||
fi
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: changelog
|
||||
path: ocis/dist/CHANGELOG.md
|
||||
retention-days: 1
|
||||
|
||||
create-github-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy, docker-build]
|
||||
steps:
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: changelog
|
||||
path: .
|
||||
- uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
|
||||
with:
|
||||
tag_name: v${{ needs.determine-release-type.outputs.version }}
|
||||
name: v${{ needs.determine-release-type.outputs.version }}
|
||||
body_path: CHANGELOG.md
|
||||
prerelease: ${{ needs.determine-release-type.outputs.is_prerelease == 'true' }}
|
||||
files: release-assets/*
|
||||
|
||||
audit-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- determine-release-type
|
||||
- generate-code
|
||||
- docker-build
|
||||
- build-binaries
|
||||
- security-scan-trivy
|
||||
- license-check
|
||||
- generate-changelog
|
||||
- create-github-release
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
- run: |
|
||||
python3 scripts/audit-release.py \
|
||||
--version "${{ needs.determine-release-type.outputs.version }}" \
|
||||
--dir release-assets/ \
|
||||
--github-release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
needs:
|
||||
- determine-release-type
|
||||
- generate-code
|
||||
- docker-build
|
||||
- build-binaries
|
||||
- security-scan-trivy
|
||||
- license-check
|
||||
- generate-changelog
|
||||
- create-github-release
|
||||
- audit-release
|
||||
steps:
|
||||
- run: |
|
||||
[[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]] \
|
||||
&& STATUS="FAILURE" || STATUS="SUCCESS"
|
||||
[[ "${{ github.event_name }}" == "schedule" ]] \
|
||||
&& SOURCE="nightly-${{ github.ref_name }}" \
|
||||
|| SOURCE="${{ github.ref_type == 'tag' && format('tag {0}', github.ref_name) || github.ref_name }}"
|
||||
SHA="${{ github.sha }}"
|
||||
MSG="${STATUS} [${{ github.repository }}#${SHA:0:8}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) (${SOURCE}) by **${{ github.triggering_actor }}**"
|
||||
[[ -z "${{ secrets.MATRIX_HOMESERVER }}" ]] && { echo "MATRIX_HOMESERVER not set, skipping notification"; exit 0; }
|
||||
curl -sf -X PUT \
|
||||
-H "Authorization: Bearer ${{ secrets.MATRIX_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"msgtype\":\"m.text\",\"body\":\"${MSG}\"}" \
|
||||
"${{ secrets.MATRIX_HOMESERVER }}/_matrix/client/r0/rooms/${{ secrets.MATRIX_ROOMID }}/send/m.room.message/$(date +%s)"
|
||||
@@ -1,32 +0,0 @@
|
||||
name: Weekly Pipeline Report
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
branches:
|
||||
- feat/ci-report-tool
|
||||
schedule:
|
||||
- cron: "0 8 * * 1" # Every Monday at 8:00 AM UTC
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
generate-report:
|
||||
name: Generate Pipeline Report
|
||||
runs-on: ubuntu-latest
|
||||
container: golang:1.25-alpine
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run CI Reporter
|
||||
working-directory: tools/ci-reporter
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Review the pipelines in last 14 days before the dorne logs expire
|
||||
run: |
|
||||
GOWORK=off go run ./cmd/list-failed-commits \
|
||||
--github-token "$GITHUB_TOKEN" \
|
||||
--since 14d \
|
||||
--max-commits 9999999
|
||||
@@ -64,4 +64,3 @@ go.work.sum
|
||||
.envrc
|
||||
CLAUDE.md
|
||||
.claude/
|
||||
.agents/
|
||||
@@ -1,67 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
# The following grep will filter out every line containing an `env` annotation.
|
||||
# It will ignore every line that already has a valid `introductionVersion` annotation.
|
||||
|
||||
RED=$(echo -e "\033[0;31m")
|
||||
GREEN=$(echo -e "\033[0;32m")
|
||||
NORM=$(echo -e "\033[0m")
|
||||
|
||||
# create a here doc function to be printed in case of introductionVersion annotation errors
|
||||
# note that tabs are used intentionally. they are removed by cat but are required to make the code readable.
|
||||
print_introduction_version_examples() {
|
||||
cat <<-EOL
|
||||
${GREEN}Valid examples:${NORM}
|
||||
|
||||
introductionVersion:"pre5.0"
|
||||
introductionVersion:"5.0"
|
||||
introductionVersion:"4.9.3-rc5"
|
||||
introductionVersion:"5.0.1-cheesecake"
|
||||
introductionVersion:"5.10.100.15"
|
||||
introductionVersion:"0.0"
|
||||
introductionVersion:"releaseX" # acceptable alphabetical version
|
||||
introductionVersion:"Addams" # another alphabetical example such as a release name
|
||||
|
||||
${RED}Invalid examples:${NORM}
|
||||
|
||||
introductionVersion:"5.0cheesecake"
|
||||
introductionVersion:"5"
|
||||
introductionVersion:"5blueberry"
|
||||
introductionVersion:"5-lasagna"
|
||||
introductionVersion:"4.9.3rc5"
|
||||
|
||||
See the dev docs for more details: https://owncloud.dev/services/general-info/envvars/envvar-naming-scopes/
|
||||
EOL
|
||||
}
|
||||
# The following grep will filter out every line containing an `env` annotation
|
||||
# it will ignore every line that already has a valid `introductionVersion` annotation
|
||||
#
|
||||
# valid examples:
|
||||
#
|
||||
# introductionVersion:"pre5.0"
|
||||
# introductionVersion:"5.0"
|
||||
# introductionVersion:"4.9.3-rc5"
|
||||
# introductionVersion:"5.0.1-cheesecake"
|
||||
# introductionVersion:"5.10.100.15"
|
||||
# introductionVersion:"0.0"
|
||||
# introductionVersion:"releaseX" # acceptable alphabetical version
|
||||
# introductionVersion:"Addams" # another alphabetical example
|
||||
#
|
||||
# invalid examples:
|
||||
#
|
||||
# introductionVersion:"5.0cheesecake"
|
||||
# introductionVersion:"5"
|
||||
# introductionVersion:"5blueberry"
|
||||
# introductionVersion:"5-lasagna"
|
||||
# introductionVersion:"4.9.3rc5"
|
||||
|
||||
ERROR=0
|
||||
|
||||
SEMVER_REGEX="([0-9]|[1-9][0-9]*)(\.([0-9]|[1-9][0-9]*)){1,2}(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?"
|
||||
ALPHA_REGEX="[A-Za-z]+[A-Za-z0-9-]*"
|
||||
|
||||
QI=$(git grep -n "env:" -- '*.go' |grep -v -P "introductionVersion:\"($SEMVER_REGEX|(pre5\\.0)|($ALPHA_REGEX))\""|grep -v "_test.go"|grep -v "vendor/")
|
||||
|
||||
# add a new line after each hit, eol identified via "´ which only appears at the end of each envvar string definition
|
||||
QUERY_INTRO=$(echo "${QI}" | sed "s#\"\`#\"\`\n#g")
|
||||
|
||||
QUERY_INTRO=$(git grep -n "env:" -- '*.go' |grep -v -P "introductionVersion:\"($SEMVER_REGEX|(pre5\\.0)|($ALPHA_REGEX))\""|grep -v "_test.go"|grep -v "vendor/")
|
||||
RESULTS_INTRO=$(echo "${QUERY_INTRO}"|wc -l)
|
||||
|
||||
echo "Checking introductionVersion annotations"
|
||||
|
||||
if [ "${QUERY_INTRO}" != "" ] && [ "${RESULTS_INTRO}" -gt 0 ]; then
|
||||
echo
|
||||
echo "==============================================================================================="
|
||||
echo ${RED}"The following ${RESULTS_INTRO} items contain invalid or missing introductionVersion annotation(s):"${NORM}
|
||||
echo "The following ${RESULTS_INTRO} items contain an invalid or missing introductionVersion annotation:"
|
||||
echo "==============================================================================================="
|
||||
echo
|
||||
echo "$QUERY_INTRO"
|
||||
echo
|
||||
print_introduction_version_examples
|
||||
echo
|
||||
ERROR=1
|
||||
else
|
||||
echo "All introductionVersion annotations are valid"
|
||||
echo
|
||||
fi
|
||||
|
||||
# The following grep will filter out every line containing an `env` annotation
|
||||
@@ -70,13 +45,9 @@ fi
|
||||
QUERY_DESC=$(git grep -n "env:" -- '*.go' |grep -v -P "desc:\".{10,}\""|grep -v "_test.go"|grep -v "vendor/")
|
||||
|
||||
RESULTS_DESC=$(echo "${QUERY_DESC}"|wc -l)
|
||||
|
||||
echo "Checking description annotations"
|
||||
|
||||
if [ "${QUERY_DESC}" != "" ] && [ "${RESULTS_DESC}" -gt 0 ]; then
|
||||
echo
|
||||
echo "==============================================================================================="
|
||||
echo ${RED}"The following ${RESULTS_DESC} items contain invalid or missing description annotation:"${NORM}
|
||||
echo "The following ${RESULTS_DESC} items contain an invalid or missing description annotation:"
|
||||
echo "==============================================================================================="
|
||||
echo "$QUERY_DESC"
|
||||
ERROR=1
|
||||
|
||||
+1
-5
@@ -29,11 +29,7 @@ ifndef OUTPUT
|
||||
endif
|
||||
|
||||
ifndef VERSION
|
||||
ifneq ($(DRONE_TAG),)
|
||||
VERSION ?= $(subst v,,$(DRONE_TAG))
|
||||
else
|
||||
STRING ?= $(shell git rev-parse --short HEAD)
|
||||
endif
|
||||
STRING ?= $(shell git rev-parse --short HEAD)
|
||||
endif
|
||||
|
||||
ifndef DATE
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
scan:
|
||||
skip-files:
|
||||
- vendor/github.com/crewjam/saml/xmlenc/fuzz.go
|
||||
@@ -0,0 +1,6 @@
|
||||
# Trivy vulnerability ignore file
|
||||
# Add CVE IDs or file paths here to suppress known/accepted findings.
|
||||
# See: https://aquasecurity.github.io/trivy/latest/docs/configuration/filtering/#trivyignore
|
||||
|
||||
CVE-2026-32284 # github.com/shamaton/msgpack/v2 v2.4.0 — no fix available upstream
|
||||
vendor/github.com/crewjam/saml/xmlenc/fuzz.go # test RSA key used in fuzz corpus, not a real secret
|
||||
+455
-312
@@ -1,6 +1,12 @@
|
||||
# Table of Contents
|
||||
|
||||
* [Changelog for unreleased](#changelog-for-unreleased-unreleased)
|
||||
* [Changelog for 8.0.8](#changelog-for-808-2026-08-20)
|
||||
* [Changelog for 8.0.7](#changelog-for-807-2026-07-31)
|
||||
* [Changelog for 8.0.6](#changelog-for-806-2026-07-15)
|
||||
* [Changelog for 8.0.5](#changelog-for-805-2026-06-18)
|
||||
* [Changelog for 8.0.4](#changelog-for-804-2026-05-22)
|
||||
* [Changelog for 8.0.2](#changelog-for-802-2026-04-30)
|
||||
* [Changelog for 8.0.1](#changelog-for-801-2026-03-09)
|
||||
* [Changelog for 8.0.0](#changelog-for-800-2026-02-13)
|
||||
* [Changelog for 7.3.1](#changelog-for-731-2025-11-24)
|
||||
* [Changelog for 7.3.0](#changelog-for-730-2025-10-13)
|
||||
@@ -39,8 +45,8 @@
|
||||
* [Changelog for 3.0.0](#changelog-for-300-2023-06-06)
|
||||
* [Changelog for 2.0.0](#changelog-for-200-2022-11-30)
|
||||
* [Changelog for 1.20.0](#changelog-for-1200-2022-04-13)
|
||||
* [Changelog for 1.19.0](#changelog-for-1190-2022-03-29)
|
||||
* [Changelog for 1.19.1](#changelog-for-1191-2022-03-29)
|
||||
* [Changelog for 1.19.0](#changelog-for-1190-2022-03-29)
|
||||
* [Changelog for 1.18.0](#changelog-for-1180-2022-03-03)
|
||||
* [Changelog for 1.17.0](#changelog-for-1170-2022-02-16)
|
||||
* [Changelog for 1.16.0](#changelog-for-1160-2021-12-10)
|
||||
@@ -61,61 +67,422 @@
|
||||
* [Changelog for 1.1.0](#changelog-for-110-2021-01-22)
|
||||
* [Changelog for 1.0.0](#changelog-for-100-2020-12-17)
|
||||
|
||||
# Changelog for [unreleased] (UNRELEASED)
|
||||
# Changelog for [8.0.8] (2026-08-20)
|
||||
|
||||
The following sections list the changes for unreleased.
|
||||
The following sections list the changes for 8.0.8.
|
||||
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v8.0.0...master
|
||||
[8.0.8]: https://github.com/owncloud/ocis/compare/v8.0.7...v8.0.8
|
||||
|
||||
## Summary
|
||||
|
||||
* Security - Add X-XSS-Protection header: [#12092](https://github.com/owncloud/ocis/pull/12092)
|
||||
* Bugfix - Fix postprocessing resume command --restart flag: [#11692](https://github.com/owncloud/ocis/issues/11692)
|
||||
* Bugfix - Don't use hardcoded groupOfNames in group creation: [#11776](https://github.com/owncloud/ocis/pull/11776)
|
||||
* Bugfix - Translation for some email notifications: [#11979](https://github.com/owncloud/ocis/pull/11979)
|
||||
* Bugfix - Rework monitoring in the ocis_full deployment example: [#11995](https://github.com/owncloud/ocis/pull/11995)
|
||||
* Bugfix - Extract metadata from oversized files and fix ISO field: [#12000](https://github.com/owncloud/ocis/pull/12000)
|
||||
* Bugfix - Make tag unassignment idempotent and handle publish failures: [#12001](https://github.com/owncloud/ocis/pull/12001)
|
||||
* Bugfix - Expose the signature-auth attribute: [#12016](https://github.com/owncloud/ocis/pull/12016)
|
||||
* Bugfix - Fix CSP blocking bundled KaTeX font: [#12070](https://github.com/owncloud/ocis/pull/12070)
|
||||
* Bugfix - Fix case-sensitive photo metadata search: [#12078](https://github.com/owncloud/ocis/pull/12078)
|
||||
* Bugfix - Prevent incomplete Tika extractions from permanently blocking re-index: [#12095](https://github.com/owncloud/ocis/pull/12095)
|
||||
* Bugfix - Use O(1) document lookup instead of full search during reindexing: [#12096](https://github.com/owncloud/ocis/pull/12096)
|
||||
* Bugfix - Fix IDP build on FreeBSD by disabling absolute Babel runtime: [#12114](https://github.com/owncloud/ocis/pull/12114)
|
||||
* Bugfix - Don't index failed uploads: [#12121](https://github.com/owncloud/ocis/pull/12121)
|
||||
* Enhancement - Add web extensions deployment configuration: [#11940](https://github.com/owncloud/ocis/pull/11940)
|
||||
* Enhancement - Add AI-assisted development guide: [#11941](https://github.com/owncloud/ocis/pull/11941)
|
||||
* Enhancement - Bump Web to 12.3.1: [#12015](https://github.com/owncloud/ocis/pull/12015)
|
||||
* Enhancement - Add space ID to incoming shares: [#12024](https://github.com/owncloud/ocis/pull/12024)
|
||||
* Enhancement - Add spaceid to REPORT: [#12028](https://github.com/owncloud/ocis/pull/12028)
|
||||
* Enhancement - Bump Reva version: [#12051](https://github.com/owncloud/ocis/pull/12051)
|
||||
* Enhancement - Add ResourceID field to UploadReady event: [#12060](https://github.com/owncloud/ocis/pull/12060)
|
||||
* Enhancement - Support numeric range queries in KQL: [#12094](https://github.com/owncloud/ocis/pull/12094)
|
||||
* Enhancement - Add blobstore CLI commands to storage-users service: [#12102](https://github.com/owncloud/ocis/pull/12102)
|
||||
* Enhancement - Optimize search index after bulk reindexing: [#12104](https://github.com/owncloud/ocis/pull/12104)
|
||||
* Enhancement - Update images in the ocis_full deployment example: [#12123](https://github.com/owncloud/ocis/pull/12123)
|
||||
* Security - Bump golang.org/x/image to v0.45.0: [#12808](https://github.com/owncloud/ocis/pull/12808)
|
||||
* Security - Bump Go to 1.25.13: [#12832](https://github.com/owncloud/ocis/pull/12832)
|
||||
* Bugfix - Cache LDAP instance mapper lookups: [#12823](https://github.com/owncloud/ocis/pull/12823)
|
||||
* Bugfix - Fix share metadata corruption during concurrent share operations: [#12621](https://github.com/owncloud/ocis/pull/12621)
|
||||
* Enhancement - Add TLS support for NATS store and registry connections: [#12765](https://github.com/owncloud/ocis/pull/12765)
|
||||
|
||||
## Details
|
||||
|
||||
* Security - Add X-XSS-Protection header: [#12092](https://github.com/owncloud/ocis/pull/12092)
|
||||
* Security - Bump golang.org/x/image to v0.45.0: [#12808](https://github.com/owncloud/ocis/pull/12808)
|
||||
|
||||
Added the X-XSS-Protection header set to "0" to explicitly disable the
|
||||
deprecated browser XSS filter, which can introduce side-channel vulnerabilities.
|
||||
Modern XSS protection is provided through the Content-Security-Policy header.
|
||||
Upgraded golang.org/x/image from v0.44.0 to v0.45.0 to address
|
||||
GO-2026-6222: excessive memory allocation during VP8L decoding.
|
||||
|
||||
This change addresses security audit findings requiring explicit configuration
|
||||
of HTTP security headers per OWASP recommendations.
|
||||
https://github.com/owncloud/ocis/pull/12808
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12092
|
||||
* Security - Bump Go to 1.25.13: [#12832](https://github.com/owncloud/ocis/pull/12832)
|
||||
|
||||
* Bugfix - Fix postprocessing resume command --restart flag: [#11692](https://github.com/owncloud/ocis/issues/11692)
|
||||
Fixes a stdlib CVE vulnerability flagged by the release image scan.
|
||||
|
||||
The `--restart` / `-r` flag for `ocis postprocessing resume` was broken due to a
|
||||
flag name mismatch (`retrigger` vs `restart`) and silently did nothing. This has
|
||||
been fixed and the command now prints a confirmation message on success.
|
||||
https://github.com/owncloud/ocis/pull/12832
|
||||
|
||||
https://github.com/owncloud/ocis/issues/11692
|
||||
https://github.com/owncloud/ocis/pull/12002
|
||||
* Bugfix - Cache LDAP instance mapper lookups: [#12823](https://github.com/owncloud/ocis/pull/12823)
|
||||
|
||||
In multi-instance deployments, resolving a user's instance name/ID during
|
||||
`GET /graph/v1.0/users` (and group member expansion) issued a fresh, uncached
|
||||
LDAP search per instance/guest attribute value on every request. Under load
|
||||
this multiplied into large numbers of redundant LDAP round-trips per page of
|
||||
users, saturating the LDAP connection pool and causing request timeouts. The
|
||||
LDAP identity backend now caches instance mapper lookups, including negative
|
||||
(not-found) results, for a configurable TTL
|
||||
(`OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL`, default 60s).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12823
|
||||
|
||||
* Bugfix - Fix share metadata corruption during concurrent share operations: [#12621](https://github.com/owncloud/ocis/pull/12621)
|
||||
|
||||
When multiple sharing service replicas processed share operations concurrently
|
||||
for the same user, the share metadata could become corrupted with references to
|
||||
missing data, making all shares inaccessible to that user. The received share
|
||||
cache now uses compare-and-swap (etag) validation to detect concurrent writes
|
||||
and retries gracefully, preventing metadata corruption.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12621
|
||||
|
||||
* Enhancement - Add TLS support for NATS store and registry connections: [#12765](https://github.com/owncloud/ocis/pull/12765)
|
||||
|
||||
All `nats-js-kv` store, cache, and service registry connections now support
|
||||
TLS. Configure via `OCIS_CACHE_ENABLE_TLS`, `OCIS_PERSISTENT_STORE_ENABLE_TLS`,
|
||||
and `MICRO_REGISTRY_ENABLE_TLS`, with corresponding `*_TLS_INSECURE` and
|
||||
`*_TLS_ROOT_CA_CERTIFICATE` variants per connection type.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12765
|
||||
|
||||
# Changelog for [8.0.7] (2026-07-31)
|
||||
|
||||
The following sections list the changes for 8.0.7.
|
||||
|
||||
[8.0.7]: https://github.com/owncloud/ocis/compare/v8.0.6...v8.0.7
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Return correct issuerAssignedId on /me: [#12635](https://github.com/owncloud/ocis/pull/12635)
|
||||
* Bugfix - Log unmapped thumbnail errors and always report a sabredav exception: [#12663](https://github.com/owncloud/ocis/pull/12663)
|
||||
* Enhancement - Eliminate redundant LDAP read-after-write on create and update: [#12618](https://github.com/owncloud/ocis/pull/12618)
|
||||
* Enhancement - Add an opt-in bounded LDAP connection pool: [#12660](https://github.com/owncloud/ocis/pull/12660)
|
||||
* Enhancement - Retry LDAP operations against a lagging replica: [#12672](https://github.com/owncloud/ocis/pull/12672)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Return correct issuerAssignedId on /me: [#12635](https://github.com/owncloud/ocis/pull/12635)
|
||||
|
||||
The `/graph/v1.0/me` endpoint reported the internal user UUID as
|
||||
`identities[].issuerAssignedId` instead of the issuer-assigned identity (the
|
||||
OIDC `sub`). The endpoint took a fast path that built the user model from the
|
||||
CS3 user in the request context, which does not carry the external identity, so
|
||||
it fell back to the internal UUID. `/me` now always resolves the user through
|
||||
the identity backend, which reads the stored external identity and returns the
|
||||
correct value. Group memberships are still only expanded when `$expand=memberOf`
|
||||
is requested.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12635
|
||||
|
||||
* Bugfix - Log unmapped thumbnail errors and always report a sabredav exception: [#12663](https://github.com/owncloud/ocis/pull/12663)
|
||||
|
||||
The webdav service logged failures of the thumbnails service at debug level
|
||||
only. Errors which are not a property of the requested file, such as the
|
||||
thumbnails service being unreachable, were therefore invisible at production log
|
||||
levels: a complete preview outage produced HTTP 500 responses without a single
|
||||
log line explaining them. Unmapped errors are now logged at error level, while
|
||||
expected per-file outcomes such as an unsupported file type or a file still
|
||||
being processed stay at debug level. Two of the four thumbnail handlers also
|
||||
logged without the request context, so their messages carried no request id.
|
||||
|
||||
In addition, `codesEnum` only mapped four status codes, so error responses for
|
||||
all other codes were rendered with an empty `<s:exception></s:exception>`
|
||||
element. The missing entries for 403, 425 and 429 have been added and any
|
||||
remaining unmapped code now falls back to a generic exception name, so clients
|
||||
always receive a usable exception.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12663
|
||||
|
||||
* Enhancement - Eliminate redundant LDAP read-after-write on create and update: [#12618](https://github.com/owncloud/ocis/pull/12618)
|
||||
|
||||
The graph LDAP backend no longer re-reads an entry immediately after writing it
|
||||
just to recover the entry ID for the response. When oCIS generates the ID itself
|
||||
(GRAPH_LDAP_SERVER_UUID disabled), the create response is now synthesized from
|
||||
the data already sent to the directory, and update responses are built by
|
||||
folding the applied modifications onto the entry that was read before the write.
|
||||
This avoids a round-trip that, against a replicated directory reached through a
|
||||
proxy, could hit a lagging replica and fail or return stale data.
|
||||
|
||||
When the directory assigns the ID (GRAPH_LDAP_SERVER_UUID enabled), creates keep
|
||||
the existing read-back, since the generated ID cannot otherwise be recovered.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12618
|
||||
|
||||
* Enhancement - Add an opt-in bounded LDAP connection pool: [#12660](https://github.com/owncloud/ocis/pull/12660)
|
||||
|
||||
The auth-basic, users, groups and graph services can now be switched from a
|
||||
single long-lived reconnecting LDAP connection to a bounded pool of connections,
|
||||
so concurrent requests no longer serialize on one socket. Connections are dialed
|
||||
and bound lazily on checkout, unhealthy connections are discarded and lazily
|
||||
re-dialed rather than eagerly reconnected, and checkout blocks with a
|
||||
configurable timeout once the pool is exhausted.
|
||||
|
||||
Pooling is off by default and fully backwards compatible. Enable it per service
|
||||
via 'OCIS_LDAP_POOL_ENABLED' (or the service-specific
|
||||
'<SERVICE>_LDAP_POOL_ENABLED' override), and tune it with 'OCIS_LDAP_POOL_SIZE'
|
||||
(default 5) and 'OCIS_LDAP_POOL_CHECKOUT_TIMEOUT' (default 30s).
|
||||
|
||||
The graph service's identity backend now shares the same LDAP client
|
||||
implementation used by the reva auth/user/group managers instead of maintaining
|
||||
its own separate reconnecting client.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12660
|
||||
|
||||
* Enhancement - Retry LDAP operations against a lagging replica: [#12672](https://github.com/owncloud/ocis/pull/12672)
|
||||
|
||||
The graph LDAP backend can now retry operations against a replicated directory
|
||||
where a write to the primary is followed by a read that lands on a replica which
|
||||
has not yet caught up. This covers the read-back that recovers a
|
||||
directory-assigned ID after a create (GRAPH_LDAP_SERVER_UUID enabled), which is
|
||||
retried until the entry becomes visible. The retry count and backoff are tunable
|
||||
through `GRAPH_LDAP_RETRY_MAX_COUNT`, `GRAPH_LDAP_RETRY_BASE_DELAY` and
|
||||
`GRAPH_LDAP_RETRY_MAX_DELAY`; the defaults keep the previous behaviour (a single
|
||||
immediate retry with no delay), so existing deployments are unaffected.
|
||||
|
||||
Retries now distinguish reads from writes: a write is no longer retried on a
|
||||
network error, which can surface after the request was already sent and would
|
||||
otherwise apply the mutation twice.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12672
|
||||
|
||||
# Changelog for [8.0.6] (2026-07-15)
|
||||
|
||||
The following sections list the changes for 8.0.6.
|
||||
|
||||
[8.0.6]: https://github.com/owncloud/ocis/compare/v8.0.5...v8.0.6
|
||||
|
||||
## Summary
|
||||
|
||||
* Security - Upgrade libvips to 8.18.4: [#12596](https://github.com/owncloud/ocis/pull/12596)
|
||||
* Security - Upgrade Go to 1.25.12: [#12602](https://github.com/owncloud/ocis/pull/12602)
|
||||
* Enhancement - Allow disabling the last sign-in timestamp update: [#12522](https://github.com/owncloud/ocis/pull/12522)
|
||||
|
||||
## Details
|
||||
|
||||
* Security - Upgrade libvips to 8.18.4: [#12596](https://github.com/owncloud/ocis/pull/12596)
|
||||
|
||||
Bumped libvips to 8.18.4 in all Docker images. The previous pin (8.18.3-r0) was
|
||||
dropped from the Alpine edge/community repository, which broke the image build.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12596
|
||||
|
||||
* Security - Upgrade Go to 1.25.12: [#12602](https://github.com/owncloud/ocis/pull/12602)
|
||||
|
||||
Bumped the Go toolchain used to build the release binaries and Docker images
|
||||
from 1.25.11 to 1.25.12. Go 1.25.11 is affected by CVE-2026-39822 (os.Root
|
||||
symlink following allows directory traversal), which is fixed in 1.25.12 and was
|
||||
blocking the release image security scan.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12602
|
||||
|
||||
* Enhancement - Allow disabling the last sign-in timestamp update: [#12522](https://github.com/owncloud/ocis/pull/12522)
|
||||
|
||||
The graph service maintains the 'oCLastSignInTimestamp' LDAP attribute of a user
|
||||
on every sign-in (when the LDAP identity backend has write access). This can
|
||||
cause a significant amount of LDAP write load, especially when the proxy's OIDC
|
||||
userinfo cache has a short TTL and sign-in events are emitted frequently.
|
||||
|
||||
A new setting 'OCIS_LDAP_UPDATE_LAST_SIGNIN_DATE' /
|
||||
'GRAPH_LDAP_UPDATE_LAST_SIGNIN_DATE' (default 'true') allows disabling the
|
||||
update of the last sign-in timestamp without having to disable all LDAP writes
|
||||
('OCIS_LDAP_SERVER_WRITE_ENABLED') or the graph events consumer. When set to
|
||||
'false' the graph service no longer listens for 'UserSignedIn' events and does
|
||||
not write the 'oCLastSignInTimestamp' attribute.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/9942
|
||||
https://github.com/owncloud/ocis/pull/12522
|
||||
|
||||
# Changelog for [8.0.5] (2026-06-18)
|
||||
|
||||
The following sections list the changes for 8.0.5.
|
||||
|
||||
[8.0.5]: https://github.com/owncloud/ocis/compare/v8.0.4...v8.0.5
|
||||
|
||||
## Summary
|
||||
|
||||
* Security - Bump Go to 1.25.11: [#12446](https://github.com/owncloud/ocis/pull/12446)
|
||||
* Security - Upgrade libvips to 8.18.3: [#12446](https://github.com/owncloud/ocis/pull/12446)
|
||||
* Bugfix - Education user delete no longer 404s and leaves the LDAP entry behind: [#12395](https://github.com/owncloud/ocis/pull/12395)
|
||||
* Bugfix - Recover from permanently-closed NATS connections in the nats-js-kv store: [#12401](https://github.com/owncloud/ocis/pull/12401)
|
||||
|
||||
## Details
|
||||
|
||||
* Security - Bump Go to 1.25.11: [#12446](https://github.com/owncloud/ocis/pull/12446)
|
||||
|
||||
Fixes CVE-2026-42504, a stdlib MIME header decoding vulnerability flagged by the
|
||||
release image scan.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12446
|
||||
|
||||
* Security - Upgrade libvips to 8.18.3: [#12446](https://github.com/owncloud/ocis/pull/12446)
|
||||
|
||||
Bumped libvips to 8.18.3 in all Docker images. The previous pin (8.18.2-r0) was
|
||||
dropped from the Alpine edge/community repository, which broke the image build.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12446
|
||||
|
||||
* Bugfix - Education user delete no longer 404s and leaves the LDAP entry behind: [#12395](https://github.com/owncloud/ocis/pull/12395)
|
||||
|
||||
`DELETE /graph/v1.0/education/users/{id}` previously returned a 404 without
|
||||
removing the user. The education user delete handler used `user.GetExternalID()`
|
||||
for the backend DELETE, while the regular `/users` handler and the pre-v8.0 code
|
||||
path used `user.GetId()`. With the default `RequireExternalID=false`, the LDAP
|
||||
backend looked up the user by name-or-UUID, so the externalID never matched, the
|
||||
LDAP entry was never removed, and the response was a 404. This is now fixed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12395
|
||||
|
||||
* Bugfix - Recover from permanently-closed NATS connections in the nats-js-kv store: [#12401](https://github.com/owncloud/ocis/pull/12401)
|
||||
|
||||
The `nats-js-kv` go-micro store plugin's `hasConn()` only checked whether the
|
||||
connection object was non-nil, not whether it was still alive. Once the
|
||||
underlying NATS client exhausted its reconnect attempts (e.g. a NATS pod restart
|
||||
longer than the client's reconnect window), the connection stayed non-nil but
|
||||
permanently closed. Because connection initialization is gated on `!hasConn()`,
|
||||
it never re-ran, so every subsequent KV operation failed with `nats: connection
|
||||
closed` until the affected pod was restarted.
|
||||
|
||||
This surfaced as several user-visible failures backed by the NATS KV cache, e.g.
|
||||
all spaces becoming invisible (`storage-users` `ListStorageSpaces`) and download
|
||||
failures from missing signing keys (`ocs`).
|
||||
|
||||
The store plugin now treats a closed connection as no connection, so the next
|
||||
operation transparently re-initializes it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12401
|
||||
|
||||
# Changelog for [8.0.4] (2026-05-22)
|
||||
|
||||
The following sections list the changes for 8.0.4.
|
||||
|
||||
[8.0.4]: https://github.com/owncloud/ocis/compare/v8.0.2...v8.0.4
|
||||
|
||||
## Summary
|
||||
|
||||
* Security - Upgrade libvips to 8.18.2: [#12301](https://github.com/owncloud/ocis/pull/12301)
|
||||
* Security - Bump Go to 1.25.10: [#12306](https://github.com/owncloud/ocis/pull/12306)
|
||||
* Bugfix - SpaceEditorWithoutTrashbin roles now correctly allow file editing: [#12346](https://github.com/owncloud/ocis/pull/12346)
|
||||
|
||||
## Details
|
||||
|
||||
* Security - Upgrade libvips to 8.18.2: [#12301](https://github.com/owncloud/ocis/pull/12301)
|
||||
|
||||
Bumped libvips to 8.18.2 in all Docker images to pick up the fix for a stack
|
||||
buffer overflow.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12301
|
||||
|
||||
* Security - Bump Go to 1.25.10: [#12306](https://github.com/owncloud/ocis/pull/12306)
|
||||
|
||||
Fixes CVE-2026-33811, CVE-2026-33814, CVE-2026-39820, CVE-2026-39836,
|
||||
CVE-2026-42499.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12306
|
||||
|
||||
* Bugfix - SpaceEditorWithoutTrashbin roles now correctly allow file editing: [#12346](https://github.com/owncloud/ocis/pull/12346)
|
||||
|
||||
Fixed a bug where the *WithoutTrashbin space editor roles were rendered as
|
||||
read-only in the Web frontend. The OCS PermissionWrite bit was not set for these
|
||||
roles because the RoleFromResourcePermissions round-trip required
|
||||
RestoreRecycleItem, which these roles intentionally omit.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12346
|
||||
|
||||
# Changelog for [8.0.2] (2026-04-30)
|
||||
|
||||
The following sections list the changes for 8.0.2.
|
||||
|
||||
[8.0.2]: https://github.com/owncloud/ocis/compare/v8.0.1...v8.0.2
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Fix OCM share permission change notification: [#12190](https://github.com/owncloud/ocis/pull/12190)
|
||||
* Bugfix - Fix the internal links: [#12231](https://github.com/owncloud/ocis/pull/12231)
|
||||
* Bugfix - Return 200 OK for WOPI Lock requests in read-only and view-only modes: [#12257](https://github.com/owncloud/ocis/pull/12257)
|
||||
* Bugfix - Fix space management middleware removing users from spaces on download: [#12285](https://github.com/owncloud/ocis/pull/12285)
|
||||
* Enhancement - Add spaceid to REPORT: [#12241](https://github.com/owncloud/ocis/pull/12241)
|
||||
* Enhancement - Allow multiple objectClasses on group creation: [#12242](https://github.com/owncloud/ocis/pull/12242)
|
||||
* Enhancement - Add SpaceEditorWithoutVersionsWithoutTrashbin space membership role: [#12245](https://github.com/owncloud/ocis/pull/12245)
|
||||
* Enhancement - Bump Web to 12.3.3: [#13705](https://github.com/owncloud/web/pull/13705)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Fix OCM share permission change notification: [#12190](https://github.com/owncloud/ocis/pull/12190)
|
||||
|
||||
Fix the OCM share permission change notification handling.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12190
|
||||
|
||||
* Bugfix - Fix the internal links: [#12231](https://github.com/owncloud/ocis/pull/12231)
|
||||
|
||||
We fixed the internal links access control
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12231
|
||||
|
||||
* Bugfix - Return 200 OK for WOPI Lock requests in read-only and view-only modes: [#12257](https://github.com/owncloud/ocis/pull/12257)
|
||||
|
||||
OnlyOffice sends a WOPI Lock request when opening any document, even when the
|
||||
user only has read access. The WOPI Lock handler was attempting to acquire a CS3
|
||||
write lock regardless of the view mode, causing a permission error for read-only
|
||||
tokens that OnlyOffice displayed as an error message on load.
|
||||
|
||||
The Lock handler now returns 200 OK immediately for READ_ONLY and VIEW_ONLY view
|
||||
modes without attempting to acquire a lock, consistent with the WOPI spec.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12257
|
||||
|
||||
* Bugfix - Fix space management middleware removing users from spaces on download: [#12285](https://github.com/owncloud/ocis/pull/12285)
|
||||
|
||||
The space management middleware ran on every authenticated request, including
|
||||
signed URL requests used for file downloads. Since signed URL auth does not
|
||||
carry OIDC claims, the middleware interpreted the absence of claims as "user
|
||||
should have no space access" and removed the user from all project spaces. On
|
||||
the next OIDC request the user was re-added, causing an oscillating add/remove
|
||||
cycle that led to intermittent download failures and transient "space not found"
|
||||
errors.
|
||||
|
||||
The middleware now skips reconciliation entirely when no OIDC claims are present
|
||||
in the request context.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12285
|
||||
https://github.com/owncloud/ocis/pull/12285
|
||||
|
||||
* Enhancement - Add spaceid to REPORT: [#12241](https://github.com/owncloud/ocis/pull/12241)
|
||||
|
||||
Added the `spaceid` to the REPORT responses. This is aligning the `REPORT`
|
||||
method with the `PROPFIND` method.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12241
|
||||
|
||||
* Enhancement - Allow multiple objectClasses on group creation: [#12242](https://github.com/owncloud/ocis/pull/12242)
|
||||
|
||||
Added support for configuring additional LDAP objectClasses when creating
|
||||
groups. The new `OCIS_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES` /
|
||||
`GRAPH_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES` environment variable accepts a list
|
||||
of extra objectClasses that are set alongside the primary
|
||||
`GRAPH_LDAP_GROUP_OBJECTCLASS` when a new group is created in LDAP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12242
|
||||
|
||||
* Enhancement - Add SpaceEditorWithoutVersionsWithoutTrashbin space membership role: [#12245](https://github.com/owncloud/ocis/pull/12245)
|
||||
|
||||
Added a new space membership role "Can edit"
|
||||
(SpaceEditorWithoutVersionsWithoutTrashbin) that grants full editor permissions
|
||||
(create, upload, download, edit, move, delete) on a space without access to file
|
||||
versions or the trashbin.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12245
|
||||
|
||||
* Enhancement - Bump Web to 12.3.3: [#13705](https://github.com/owncloud/web/pull/13705)
|
||||
|
||||
- Bugfix [owncloud/web#13638](https://github.com/owncloud/web/pull/13638): Share
|
||||
button not usable when role dropdown text is too long - Bugfix
|
||||
[owncloud/web#13667](https://github.com/owncloud/web/pull/13667): Shared with
|
||||
does not show members - Bugfix
|
||||
[owncloud/web#13680](https://github.com/owncloud/web/pull/13680): Escape strings
|
||||
when returned from server
|
||||
|
||||
https://github.com/owncloud/web/pull/13705
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.3
|
||||
|
||||
# Changelog for [8.0.1] (2026-03-09)
|
||||
|
||||
The following sections list the changes for 8.0.1.
|
||||
|
||||
[8.0.1]: https://github.com/owncloud/ocis/compare/v8.0.0...v8.0.1
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Don't use hardcoded groupOfNames in group creation: [#11776](https://github.com/owncloud/ocis/pull/11776)
|
||||
* Bugfix - Expose the signature-auth attribute: [#12052](https://github.com/owncloud/ocis/pull/12052)
|
||||
* Bugfix - Don't write empty externalID to LDAP: [#12085](https://github.com/owncloud/ocis/pull/12085)
|
||||
* Enhancement - Bump Web to 12.3.2: [#12074](https://github.com/owncloud/ocis/pull/12074)
|
||||
* Enhancement - Bump reva: [#12097](https://github.com/owncloud/ocis/pull/12097)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Don't use hardcoded groupOfNames in group creation: [#11776](https://github.com/owncloud/ocis/pull/11776)
|
||||
|
||||
@@ -125,262 +492,39 @@ The following sections list the changes for unreleased.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11776
|
||||
|
||||
* Bugfix - Translation for some email notifications: [#11979](https://github.com/owncloud/ocis/pull/11979)
|
||||
|
||||
Some email notifications showed a wrong translated message that shouldn't
|
||||
appear. It's fixed so that message won't appear anymore.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11979
|
||||
|
||||
* Bugfix - Rework monitoring in the ocis_full deployment example: [#11995](https://github.com/owncloud/ocis/pull/11995)
|
||||
|
||||
The ocis_full deployment example has been basically reworked for how to provide
|
||||
monitoring.
|
||||
|
||||
We now have: - a singe place for the definition of the tracing envvars for all
|
||||
ocis related container services - an easy and modular setup defining which
|
||||
sources should be inlcuded in monitoring via .env - comments describing the
|
||||
setup for the ease extending it - the monitoring definition in .env has been
|
||||
moved to the bottom and the compose_file assembly has monitoring as last entry
|
||||
now to guarantee nothing gets overwritten by accident
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11995
|
||||
|
||||
* Bugfix - Extract metadata from oversized files and fix ISO field: [#12000](https://github.com/owncloud/ocis/pull/12000)
|
||||
|
||||
Two issues were found in the Tika content extractor:
|
||||
|
||||
1. Files exceeding `SEARCH_CONTENT_EXTRACTION_SIZE_LIMIT` (default 20MB) were
|
||||
skipped entirely — no EXIF, no photo metadata, no image dimensions were
|
||||
extracted. This particularly affected Pixel Motion Photos (`.MP.jpg`) which
|
||||
embed an MP4 video making them 3-9MB. Since EXIF metadata lives in the JPEG
|
||||
header (first few KB), a truncated stream is sufficient. The extractor now wraps
|
||||
the download in `io.LimitReader` instead of skipping Tika, sending only the
|
||||
first N bytes for metadata extraction.
|
||||
|
||||
2. The ISO speed field was read from `"Base ISO"`, a Canon-specific Tika field
|
||||
(sensor base sensitivity). Most cameras — Pixel, iPhone, Samsung — provide
|
||||
ISO via the standard `"exif:IsoSpeedRatings"` field. The extractor now checks
|
||||
`exif:IsoSpeedRatings` first and falls back to `Base ISO` for Canon
|
||||
compatibility.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12000
|
||||
|
||||
* Bugfix - Make tag unassignment idempotent and handle publish failures: [#12001](https://github.com/owncloud/ocis/pull/12001)
|
||||
|
||||
The DELETE tags endpoint now returns success when the requested tag is already
|
||||
absent from the file's metadata, instead of returning HTTP 400 with a misleading
|
||||
error message. The TagsRemoved event is always published so the search index
|
||||
stays in sync even when file metadata and the search index are out of sync. If
|
||||
event publishing fails, the metadata change is rolled back and HTTP 500 is
|
||||
returned to avoid leaving the system in an inconsistent state.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12001
|
||||
|
||||
* Bugfix - Expose the signature-auth attribute: [#12016](https://github.com/owncloud/ocis/pull/12016)
|
||||
* Bugfix - Expose the signature-auth attribute: [#12052](https://github.com/owncloud/ocis/pull/12052)
|
||||
|
||||
Expose the "oc:signature-auth" attribute for the subfolders in the public link
|
||||
propfinds. This is a necessary change to be able to support archive downloads in
|
||||
password protected public links.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12016
|
||||
https://github.com/owncloud/ocis/pull/12052
|
||||
|
||||
* Bugfix - Fix CSP blocking bundled KaTeX font: [#12070](https://github.com/owncloud/ocis/pull/12070)
|
||||
* Bugfix - Don't write empty externalID to LDAP: [#12085](https://github.com/owncloud/ocis/pull/12085)
|
||||
|
||||
The default Content Security Policy blocked the bundled KaTeX math font (used by
|
||||
the md-editor) because it is inlined as a `data:` URI in the Web UI CSS. Added
|
||||
`data:` to the `font-src` directive to resolve the console error on every page
|
||||
load. Users with custom CSP files (`PROXY_CSP_CONFIG_FILE_LOCATION`) will need
|
||||
to add `data:` to their `font-src` directive manually.
|
||||
When creating new users in the graph service, the externalID attribute was being
|
||||
written to LDAP even when it was empty. Now, the externalID attribute is only
|
||||
written when it has a non-empty value.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12070
|
||||
https://github.com/owncloud/ocis/pull/12085
|
||||
|
||||
* Bugfix - Fix case-sensitive photo metadata search: [#12078](https://github.com/owncloud/ocis/pull/12078)
|
||||
* Enhancement - Bump Web to 12.3.2: [#12074](https://github.com/owncloud/ocis/pull/12074)
|
||||
|
||||
Searching for photo metadata fields like camera make/model was case-sensitive,
|
||||
so searching for "google" would not match a camera make stored as "Google".
|
||||
Changed the photo string field analyzer from `keyword` to `lowercaseKeyword` so
|
||||
both indexed values and search terms are lowercased. Existing Bleve indexes need
|
||||
to be rebuilt after this change.
|
||||
- Enhancement
|
||||
[owncloud/ocis#11963](https://github.com/owncloud/ocis/issues/11963): Use
|
||||
signature auth
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12078
|
||||
https://github.com/owncloud/ocis/pull/12074
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.2
|
||||
|
||||
* Bugfix - Prevent incomplete Tika extractions from permanently blocking re-index: [#12095](https://github.com/owncloud/ocis/pull/12095)
|
||||
* Enhancement - Bump reva: [#12097](https://github.com/owncloud/ocis/pull/12097)
|
||||
|
||||
When Tika returned HTTP 200 but its child processes (OCR, ImageMagick) failed
|
||||
due to resource limits, the search index received metadata but no content. The
|
||||
document was written to Bleve with the correct mtime, and subsequent reindexes
|
||||
skipped it because the id+mtime check passed. This left files permanently stuck
|
||||
as "indexed" with no searchable content.
|
||||
Bumped reva to the latest version. This includes a refactoring of the scope
|
||||
expansion and verification logic, as well as a fix for the signature-auth
|
||||
propfind attribute that now correctly supports archive downloads in
|
||||
password-protected public links.
|
||||
|
||||
Two fixes are applied:
|
||||
|
||||
1. Validate Tika responses: if `MetaRecursive()` returns an empty metadata list,
|
||||
it is now treated as an extraction error so the document is not written to the
|
||||
index.
|
||||
|
||||
2. Add an `Extracted` field to indexed resources. It is set to `true` only after
|
||||
successful extraction. The reindex skip check now requires `Extracted:true`, so
|
||||
incompletely indexed documents are automatically re-processed on the next
|
||||
reindex run.
|
||||
|
||||
Note: existing search indexes will trigger a full re-extraction on the next
|
||||
reindex because documents written before this change lack the `Extracted` field.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
https://github.com/owncloud/ocis/pull/12095
|
||||
|
||||
* Bugfix - Use O(1) document lookup instead of full search during reindexing: [#12096](https://github.com/owncloud/ocis/pull/12096)
|
||||
|
||||
The `IndexSpace` bulk reindexer was using a full KQL search query per file to
|
||||
check whether re-extraction was needed. On large indexes this query took
|
||||
600–950ms each, making a 61,000-file space take ~13.5 hours just to walk.
|
||||
Replaced the per-file `Search()` call with an O(1) `Lookup()` using Bleve's
|
||||
`DocIDQuery`, then comparing mtime and extraction status in memory. This reduces
|
||||
per-file check time from ~800ms to <1ms.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
https://github.com/owncloud/ocis/pull/12096
|
||||
|
||||
* Bugfix - Fix IDP build on FreeBSD by disabling absolute Babel runtime: [#12114](https://github.com/owncloud/ocis/pull/12114)
|
||||
|
||||
The `babel-preset-react-app` preset defaults to `absoluteRuntime: true`, which
|
||||
hardcodes absolute paths to `@babel/runtime` helpers. These paths fail to
|
||||
resolve on non-Linux platforms like FreeBSD. Setting `absoluteRuntime: false`
|
||||
makes Babel resolve the runtime relative to the source file, which works across
|
||||
all platforms.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12065
|
||||
https://github.com/owncloud/ocis/pull/12114
|
||||
|
||||
* Bugfix - Don't index failed uploads: [#12121](https://github.com/owncloud/ocis/pull/12121)
|
||||
|
||||
The search service was indexing uploads even when they failed. This caused
|
||||
unnecessary index operations for incomplete or errored file transfers. The fix
|
||||
skips indexing when the UploadReady event indicates the upload has failed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12121
|
||||
|
||||
* Enhancement - Add web extensions deployment configuration: [#11940](https://github.com/owncloud/ocis/pull/11940)
|
||||
|
||||
We added deployment configuration for the photo-addon and advanced-search web
|
||||
extensions to the ocis_full example. This includes Docker compose files for both
|
||||
extensions and CSP configuration for OpenStreetMap tiles required by the
|
||||
photo-addon map feature.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11940
|
||||
|
||||
* Enhancement - Add AI-assisted development guide: [#11941](https://github.com/owncloud/ocis/pull/11941)
|
||||
|
||||
A new guide has been added to the oCIS documentation demonstrating how to build
|
||||
web extensions using AI-assisted development with Claude AI. The guide covers
|
||||
MCP connector setup, a five-phase development workflow, debugging techniques,
|
||||
and contribution workflows.
|
||||
|
||||
This approach has been validated through real contributions including PR #11912
|
||||
(photo metadata search backend) and web extensions PRs #305 and #306.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11941
|
||||
|
||||
* Enhancement - Bump Web to 12.3.1: [#12015](https://github.com/owncloud/ocis/pull/12015)
|
||||
|
||||
Bugfix [owncloud/web#13553](https://github.com/owncloud/web/pull/13553): Search
|
||||
Text Overalps With Search Icon In The Search Bar
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12015
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.1
|
||||
|
||||
* Enhancement - Add space ID to incoming shares: [#12024](https://github.com/owncloud/ocis/pull/12024)
|
||||
|
||||
Added the `spaceId` to the incoming shares. This is aligning the graph API with
|
||||
the WebDAV API where the clients can use `spaceid` property. This change allows
|
||||
clients to get the space ID directly instead of having to parse the resource ID.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12024
|
||||
|
||||
* Enhancement - Add spaceid to REPORT: [#12028](https://github.com/owncloud/ocis/pull/12028)
|
||||
|
||||
Added the `spaceid` to the REPORT responses. This is aligning the `REPORT`
|
||||
method with the `PROPFIND` method.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12028
|
||||
|
||||
* Enhancement - Bump Reva version: [#12051](https://github.com/owncloud/ocis/pull/12051)
|
||||
|
||||
Bumped reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12051
|
||||
https://github.com/owncloud/ocis/pull/12087
|
||||
|
||||
* Enhancement - Add ResourceID field to UploadReady event: [#12060](https://github.com/owncloud/ocis/pull/12060)
|
||||
|
||||
The UploadReady NATS event now includes a `ResourceID` field containing the
|
||||
file's actual resource identifier (with the correct node OpaqueId). Previously,
|
||||
only `FileRef` was available, whose `ResourceId.OpaqueId` is set to the space
|
||||
root ID (required for CS3 gateway path resolution). Consumers that need the
|
||||
file's unique identifier for Graph API or WebDAV operations can now use
|
||||
`ResourceID.OpaqueId` directly.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12056
|
||||
https://github.com/owncloud/ocis/pull/12060
|
||||
https://github.com/owncloud/reva/pull/547
|
||||
https://github.com/owncloud/reva/pull/560
|
||||
|
||||
* Enhancement - Support numeric range queries in KQL: [#12094](https://github.com/owncloud/ocis/pull/12094)
|
||||
|
||||
The KQL parser now supports numeric range queries using comparison operators
|
||||
(>=, <=, >, <) on numeric fields. Previously, range operators only worked with
|
||||
DateTime values, causing queries like `size>=1048576` or `photo.iso>=100` to
|
||||
silently fail by falling through to free-text search.
|
||||
|
||||
Affected numeric fields: Size, photo.iso, photo.fNumber, photo.focalLength,
|
||||
photo.orientation.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
https://github.com/owncloud/ocis/pull/12094
|
||||
|
||||
* Enhancement - Add blobstore CLI commands to storage-users service: [#12102](https://github.com/owncloud/ocis/pull/12102)
|
||||
|
||||
Added two new CLI commands under `ocis storage-users blobstore` to help
|
||||
operators verify and inspect the configured blobstore without needing direct
|
||||
access to the underlying storage system.
|
||||
|
||||
`blobstore check` performs a full upload/download/delete round-trip using a
|
||||
random payload. The payload size is configurable via `--blob-size` and accepts
|
||||
human-readable values such as `64`, `1KB` or `4MiB` (default: 64 bytes).
|
||||
|
||||
`blobstore get` downloads a specific blob by its ID to verify it is readable.
|
||||
The blob can be identified either with `--blob-id` and `--space-id`, or by
|
||||
passing the raw blob path from a log line directly via `--path`. Both the s3ng
|
||||
key format (`<spaceID>/<pathified_blobID>`) and the ocis filesystem path format
|
||||
(`…/spaces/<pathified_spaceID>/blobs/<pathified_blobID>`) are accepted. When
|
||||
using the s3ng driver without a known blob size, an automatic retry with the
|
||||
actual size is performed on a size mismatch.
|
||||
|
||||
Both commands read the existing service configuration, so they always target the
|
||||
same blobstore as the running service. Only the `ocis` and `s3ng` storage
|
||||
drivers are supported.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12102
|
||||
|
||||
* Enhancement - Optimize search index after bulk reindexing: [#12104](https://github.com/owncloud/ocis/pull/12104)
|
||||
|
||||
After an `IndexSpace` walk completes, the search engine now triggers a segment
|
||||
merge (compaction) on the bleve index. Over time, writes create multiple index
|
||||
segments that degrade query performance. The new `Optimize()` method calls
|
||||
bleve's `ForceMerge` to consolidate all segments into one, improving subsequent
|
||||
search and lookup speed. This is especially beneficial after bulk reindexing
|
||||
large spaces.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
https://github.com/owncloud/ocis/pull/12104
|
||||
|
||||
* Enhancement - Update images in the ocis_full deployment example: [#12123](https://github.com/owncloud/ocis/pull/12123)
|
||||
|
||||
- Update the docker images for core services and web-extensions - Moving all
|
||||
default image definitions (latest) into the .env file for consistency
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12123
|
||||
https://github.com/owncloud/ocis/pull/12097
|
||||
|
||||
# Changelog for [8.0.0] (2026-02-13)
|
||||
|
||||
@@ -422,7 +566,7 @@ The following sections list the changes for 8.0.0.
|
||||
* Enhancement - Update the traefik image for some deployment examples: [#11915](https://github.com/owncloud/ocis/pull/11915)
|
||||
* Enhancement - Add users instances: [#11925](https://github.com/owncloud/ocis/pull/11925)
|
||||
* Enhancement - Introduce external shares permission: [#11931](https://github.com/owncloud/ocis/pull/11931)
|
||||
* Enhancement - Update to go 1.25: [#12011](https://github.com/owncloud/ocis/pull/12011)
|
||||
* Enhancement - Update to go 1.25: [#12004](https://github.com/owncloud/ocis/pull/12004)
|
||||
* Enhancement - Bump Web to 12.3.1: [#12016](https://github.com/owncloud/ocis/pull/12016)
|
||||
* Enhancement - Bump Web to 12.3.0: [#13519](https://github.com/owncloud/web/pull/13519)
|
||||
|
||||
@@ -725,11 +869,10 @@ The following sections list the changes for 8.0.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11931
|
||||
|
||||
* Enhancement - Update to go 1.25: [#12011](https://github.com/owncloud/ocis/pull/12011)
|
||||
* Enhancement - Update to go 1.25: [#12004](https://github.com/owncloud/ocis/pull/12004)
|
||||
|
||||
We have updated go to version 1.25 and alpine to version 3.23.3
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12011
|
||||
https://github.com/owncloud/ocis/pull/12004
|
||||
|
||||
* Enhancement - Bump Web to 12.3.1: [#12016](https://github.com/owncloud/ocis/pull/12016)
|
||||
@@ -10358,7 +10501,7 @@ The following sections list the changes for 2.0.0.
|
||||
* Enhancement - Update linkshare capabilities: [#3579](https://github.com/owncloud/ocis/pull/3579)
|
||||
* Enhancement - Wrap metadata storage with dedicated reva gateway: [#3602](https://github.com/owncloud/ocis/pull/3602)
|
||||
* Enhancement - Align service naming: [#3606](https://github.com/owncloud/ocis/pull/3606)
|
||||
* Enhancement - Added `share_jail` and `projects` feature flags in spaces capability: [#3626](https://github.com/owncloud/ocis/pull/3626)
|
||||
* Enhancement - Added share_jail and projects feature flags in spaces capability: [#3626](https://github.com/owncloud/ocis/pull/3626)
|
||||
* Enhancement - Add initial version of the search extensions: [#3635](https://github.com/owncloud/ocis/pull/3635)
|
||||
* Enhancement - Don't setup demo role assignments on default: [#3661](https://github.com/owncloud/ocis/issues/3661)
|
||||
* Enhancement - Restrict admins from self-removal: [#3713](https://github.com/owncloud/ocis/issues/3713)
|
||||
@@ -11483,7 +11626,7 @@ The following sections list the changes for 2.0.0.
|
||||
https://github.com/owncloud/ocis/issues/3603
|
||||
https://github.com/owncloud/ocis/pull/3606
|
||||
|
||||
* Enhancement - Added `share_jail` and `projects` feature flags in spaces capability: [#3626](https://github.com/owncloud/ocis/pull/3626)
|
||||
* Enhancement - Added share_jail and projects feature flags in spaces capability: [#3626](https://github.com/owncloud/ocis/pull/3626)
|
||||
|
||||
We've added feature flags to the `spaces` capability to indicate to clients
|
||||
which features are supposed to be shown to users.
|
||||
@@ -12755,7 +12898,7 @@ The following sections list the changes for 2.0.0.
|
||||
|
||||
The following sections list the changes for 1.20.0.
|
||||
|
||||
[1.20.0]: https://github.com/owncloud/ocis/compare/v1.19.0...v1.20.0
|
||||
[1.20.0]: https://github.com/owncloud/ocis/compare/v1.19.1...v1.20.0
|
||||
|
||||
## Summary
|
||||
|
||||
@@ -12929,11 +13072,29 @@ The following sections list the changes for 1.20.0.
|
||||
https://github.com/owncloud/ocis/pull/3509
|
||||
https://github.com/owncloud/web/releases/tag/v5.4.0
|
||||
|
||||
# Changelog for [1.19.1] (2022-03-29)
|
||||
|
||||
The following sections list the changes for 1.19.1.
|
||||
|
||||
[1.19.1]: https://github.com/owncloud/ocis/compare/v1.19.0...v1.19.1
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419)
|
||||
|
||||
URLs for Special items (space image, readme) were broken.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/3419
|
||||
|
||||
# Changelog for [1.19.0] (2022-03-29)
|
||||
|
||||
The following sections list the changes for 1.19.0.
|
||||
|
||||
[1.19.0]: https://github.com/owncloud/ocis/compare/v1.19.1...v1.19.0
|
||||
[1.19.0]: https://github.com/owncloud/ocis/compare/v1.18.0...v1.19.0
|
||||
|
||||
## Summary
|
||||
|
||||
@@ -13107,24 +13268,6 @@ The following sections list the changes for 1.19.0.
|
||||
https://github.com/owncloud/ocis/pull/3375
|
||||
https://github.com/owncloud/web/releases/tag/v5.3.0
|
||||
|
||||
# Changelog for [1.19.1] (2022-03-29)
|
||||
|
||||
The following sections list the changes for 1.19.1.
|
||||
|
||||
[1.19.1]: https://github.com/owncloud/ocis/compare/v1.18.0...v1.19.1
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Return correct special item urls: [#3419](https://github.com/owncloud/ocis/pull/3419)
|
||||
|
||||
URLs for Special items (space image, readme) were broken.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/3419
|
||||
|
||||
# Changelog for [1.18.0] (2022-03-03)
|
||||
|
||||
The following sections list the changes for 1.18.0.
|
||||
@@ -15599,7 +15742,7 @@ The following sections list the changes for 1.2.0.
|
||||
* Change - Update ownCloud Web to v2.0.0: [#1661](https://github.com/owncloud/ocis/pull/1661)
|
||||
* Enhancement - Introduce ADR: [#1042](https://github.com/owncloud/ocis/pull/1042)
|
||||
* Enhancement - Functionality to map home directory to different storage providers: [#1186](https://github.com/owncloud/ocis/pull/1186)
|
||||
* Enhancement - Use a default protocol parameter instead of explicitly disabling tus: [#1331](https://github.com/cs3org/reva/pull/1331)
|
||||
* Enhancement - Use default upload protocol instead of explicitly disabling tus: [#1331](https://github.com/cs3org/reva/pull/1331)
|
||||
* Enhancement - Switch to opencontainers annotation scheme: [#1381](https://github.com/owncloud/ocis/pull/1381)
|
||||
* Enhancement - Update reva to v1.5.2-0.20210125114636-0c10b333ee69: [#1482](https://github.com/owncloud/ocis/pull/1482)
|
||||
* Enhancement - Migrate ocis-graph to ocis monorepo: [#1594](https://github.com/owncloud/ocis/pull/1594)
|
||||
@@ -15683,7 +15826,7 @@ The following sections list the changes for 1.2.0.
|
||||
https://github.com/owncloud/ocis/pull/1186
|
||||
https://github.com/cs3org/reva/pull/1142
|
||||
|
||||
* Enhancement - Use a default protocol parameter instead of explicitly disabling tus: [#1331](https://github.com/cs3org/reva/pull/1331)
|
||||
* Enhancement - Use default upload protocol instead of explicitly disabling tus: [#1331](https://github.com/cs3org/reva/pull/1331)
|
||||
|
||||
https://github.com/cs3org/reva/pull/1331
|
||||
https://github.com/owncloud/ocis/pull/1374
|
||||
|
||||
+3
-2
@@ -30,8 +30,9 @@ RUN make ci-go-generate build ENABLE_VIPS=true
|
||||
|
||||
FROM alpine:3.23.3
|
||||
|
||||
RUN apk add --no-cache attr ca-certificates curl mailcap tree vips && \
|
||||
echo 'hosts: files dns' >| /etc/nsswitch.conf
|
||||
RUN apk add --no-cache attr ca-certificates curl mailcap tree \
|
||||
&& apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community "vips=8.18.5-r0" \
|
||||
&& echo 'hosts: files dns' >| /etc/nsswitch.conf
|
||||
|
||||
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
|
||||
org.label-schema.name="ownCloud Infinite Scale" \
|
||||
|
||||
@@ -326,6 +326,17 @@ endif
|
||||
mkdir -p ocis/dist
|
||||
$(CALENS) --version $(CHANGELOG_VERSION) -o ocis/dist/CHANGELOG.md
|
||||
|
||||
.PHONY: changelog-lint
|
||||
changelog-lint:
|
||||
@FAILED=0; \
|
||||
while IFS= read -r -d '' f; do \
|
||||
title=$$(head -1 "$$f"); \
|
||||
if [ $${#title} -gt 80 ]; then \
|
||||
echo "$$f: title too long ($${#title}/80)"; FAILED=1; \
|
||||
fi; \
|
||||
done < <(find changelog -mindepth 2 -name "*.md" -print0); \
|
||||
exit $$FAILED
|
||||
|
||||
.PHONY: changelog-csv
|
||||
changelog-csv: $(CALENS)
|
||||
mkdir -p ocis/dist
|
||||
@@ -333,7 +344,7 @@ changelog-csv: $(CALENS)
|
||||
|
||||
.PHONY: govulncheck
|
||||
govulncheck: $(GOVULNCHECK)
|
||||
$(GOVULNCHECK) ./...
|
||||
scripts/govulncheck-wrapper.sh $(GOVULNCHECK)
|
||||
|
||||
.PHONY: l10n-push
|
||||
l10n-push:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Enhancement: Use a default protocol parameter instead of explicitly disabling tus
|
||||
Enhancement: Use default upload protocol instead of explicitly disabling tus
|
||||
|
||||
https://github.com/cs3org/reva/pull/1331
|
||||
https://github.com/owncloud/ocis/pull/1374
|
||||
@@ -1,4 +1,4 @@
|
||||
Enhancement: Added `share_jail` and `projects` feature flags in spaces capability
|
||||
Enhancement: Added share_jail and projects feature flags in spaces capability
|
||||
|
||||
We've added feature flags to the `spaces` capability to indicate to clients which features are supposed to be shown to users.
|
||||
|
||||
|
||||
@@ -2,5 +2,4 @@ Enhancement: Update to go 1.25
|
||||
|
||||
We have updated go to version 1.25 and alpine to version 3.23.3
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12011
|
||||
https://github.com/owncloud/ocis/pull/12004
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Bump reva
|
||||
|
||||
Bumped reva to the latest version. This includes a refactoring of the
|
||||
scope expansion and verification logic, as well as a fix for the
|
||||
signature-auth propfind attribute that now correctly supports archive
|
||||
downloads in password-protected public links.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12097
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Bump Web to 12.3.2
|
||||
|
||||
- Enhancement [owncloud/ocis#11963](https://github.com/owncloud/ocis/issues/11963): Use signature auth
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12074
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.2
|
||||
File renamed without changes.
@@ -0,0 +1,6 @@
|
||||
Bugfix: Don't write empty externalID to LDAP
|
||||
|
||||
When creating new users in the graph service, the externalID attribute was being written to LDAP even when it was empty.
|
||||
Now, the externalID attribute is only written when it has a non-empty value.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12085
|
||||
+1
-1
@@ -3,4 +3,4 @@ Bugfix: Expose the signature-auth attribute
|
||||
Expose the "oc:signature-auth" attribute for the subfolders in the public link propfinds.
|
||||
This is a necessary change to be able to support archive downloads in password protected public links.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12016
|
||||
https://github.com/owncloud/ocis/pull/12052
|
||||
@@ -0,0 +1,7 @@
|
||||
Enhancement: Add SpaceEditorWithoutVersionsWithoutTrashbin space membership role
|
||||
|
||||
Added a new space membership role "Can edit" (SpaceEditorWithoutVersionsWithoutTrashbin)
|
||||
that grants full editor permissions (create, upload, download, edit, move, delete) on a
|
||||
space without access to file versions or the trashbin.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12245
|
||||
+1
-1
@@ -2,4 +2,4 @@ Enhancement: Add spaceid to REPORT
|
||||
|
||||
Added the `spaceid` to the REPORT responses. This is aligning the `REPORT` method with the `PROPFIND` method.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12028
|
||||
https://github.com/owncloud/ocis/pull/12241
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Bump Web to 12.3.3
|
||||
|
||||
- Bugfix [owncloud/web#13638](https://github.com/owncloud/web/pull/13638): Share button not usable when role dropdown text is too long
|
||||
- Bugfix [owncloud/web#13667](https://github.com/owncloud/web/pull/13667): Shared with does not show members
|
||||
- Bugfix [owncloud/web#13680](https://github.com/owncloud/web/pull/13680): Escape strings when returned from server
|
||||
|
||||
https://github.com/owncloud/web/pull/13705
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.3
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Allow multiple objectClasses on group creation
|
||||
|
||||
Added support for configuring additional LDAP objectClasses when creating groups.
|
||||
The new `OCIS_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES` / `GRAPH_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES`
|
||||
environment variable accepts a list of extra objectClasses that are set alongside the
|
||||
primary `GRAPH_LDAP_GROUP_OBJECTCLASS` when a new group is created in LDAP.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12242
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix the internal links
|
||||
|
||||
We fixed the internal links access control
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12231
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix OCM share permission change notification
|
||||
|
||||
Fix the OCM share permission change notification handling.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12190
|
||||
@@ -0,0 +1,15 @@
|
||||
Bugfix: Fix space management middleware removing users from spaces on download
|
||||
|
||||
The space management middleware ran on every authenticated request, including
|
||||
signed URL requests used for file downloads. Since signed URL auth does not
|
||||
carry OIDC claims, the middleware interpreted the absence of claims as "user
|
||||
should have no space access" and removed the user from all project spaces.
|
||||
On the next OIDC request the user was re-added, causing an oscillating
|
||||
add/remove cycle that led to intermittent download failures and transient
|
||||
"space not found" errors.
|
||||
|
||||
The middleware now skips reconciliation entirely when no OIDC claims are
|
||||
present in the request context.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12285
|
||||
https://github.com/owncloud/ocis/issues/12285
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Return 200 OK for WOPI Lock requests in read-only and view-only modes
|
||||
|
||||
OnlyOffice sends a WOPI Lock request when opening any document, even when
|
||||
the user only has read access. The WOPI Lock handler was attempting to acquire
|
||||
a CS3 write lock regardless of the view mode, causing a permission error for
|
||||
read-only tokens that OnlyOffice displayed as an error message on load.
|
||||
|
||||
The Lock handler now returns 200 OK immediately for READ_ONLY and VIEW_ONLY
|
||||
view modes without attempting to acquire a lock, consistent with the WOPI spec.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12257
|
||||
@@ -0,0 +1,6 @@
|
||||
Security: Bump Go to 1.25.10
|
||||
|
||||
Fixes CVE-2026-33811, CVE-2026-33814, CVE-2026-39820, CVE-2026-39836,
|
||||
CVE-2026-42499.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12306
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: SpaceEditorWithoutTrashbin roles now correctly allow file editing
|
||||
|
||||
Fixed a bug where the *WithoutTrashbin space editor roles were rendered as read-only
|
||||
in the Web frontend. The OCS PermissionWrite bit was not set for these roles because
|
||||
the RoleFromResourcePermissions round-trip required RestoreRecycleItem, which these
|
||||
roles intentionally omit.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12346
|
||||
@@ -0,0 +1,6 @@
|
||||
Security: Upgrade libvips to 8.18.2
|
||||
|
||||
Bumped libvips to 8.18.2 in all Docker images to pick up the fix for a
|
||||
stack buffer overflow.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12301
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Education user delete no longer 404s and leaves the LDAP entry behind
|
||||
|
||||
`DELETE /graph/v1.0/education/users/{id}` previously returned a 404 without
|
||||
removing the user. The education user delete handler used `user.GetExternalID()` for the backend
|
||||
DELETE, while the regular `/users` handler and the pre-v8.0 code path used
|
||||
`user.GetId()`. With the default `RequireExternalID=false`, the LDAP backend
|
||||
looked up the user by name-or-UUID, so the externalID never matched, the LDAP
|
||||
entry was never removed, and the response was a 404. This is now fixed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12395
|
||||
@@ -0,0 +1,18 @@
|
||||
Bugfix: Recover from permanently-closed NATS connections in the nats-js-kv store
|
||||
|
||||
The `nats-js-kv` go-micro store plugin's `hasConn()` only checked whether the
|
||||
connection object was non-nil, not whether it was still alive. Once the
|
||||
underlying NATS client exhausted its reconnect attempts (e.g. a NATS pod
|
||||
restart longer than the client's reconnect window), the connection stayed
|
||||
non-nil but permanently closed. Because connection initialization is gated on
|
||||
`!hasConn()`, it never re-ran, so every subsequent KV operation failed with
|
||||
`nats: connection closed` until the affected pod was restarted.
|
||||
|
||||
This surfaced as several user-visible failures backed by the NATS KV cache,
|
||||
e.g. all spaces becoming invisible (`storage-users` `ListStorageSpaces`) and
|
||||
download failures from missing signing keys (`ocs`).
|
||||
|
||||
The store plugin now treats a closed connection as no connection, so the next
|
||||
operation transparently re-initializes it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12401
|
||||
@@ -0,0 +1,6 @@
|
||||
Security: Bump Go to 1.25.11
|
||||
|
||||
Fixes CVE-2026-42504, a stdlib MIME header decoding vulnerability flagged by
|
||||
the release image scan.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12446
|
||||
@@ -0,0 +1,7 @@
|
||||
Security: Upgrade libvips to 8.18.3
|
||||
|
||||
Bumped libvips to 8.18.3 in all Docker images. The previous pin (8.18.2-r0)
|
||||
was dropped from the Alpine edge/community repository, which broke the image
|
||||
build.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12446
|
||||
@@ -0,0 +1,16 @@
|
||||
Enhancement: Allow disabling the last sign-in timestamp update
|
||||
|
||||
The graph service maintains the 'oCLastSignInTimestamp' LDAP attribute of a user
|
||||
on every sign-in (when the LDAP identity backend has write access). This can
|
||||
cause a significant amount of LDAP write load, especially when the proxy's OIDC
|
||||
userinfo cache has a short TTL and sign-in events are emitted frequently.
|
||||
|
||||
A new setting 'OCIS_LDAP_UPDATE_LAST_SIGNIN_DATE' / 'GRAPH_LDAP_UPDATE_LAST_SIGNIN_DATE'
|
||||
(default 'true') allows disabling the update of the last sign-in timestamp
|
||||
without having to disable all LDAP writes ('OCIS_LDAP_SERVER_WRITE_ENABLED') or
|
||||
the graph events consumer. When set to 'false' the graph service no longer
|
||||
listens for 'UserSignedIn' events and does not write the 'oCLastSignInTimestamp'
|
||||
attribute.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12522
|
||||
https://github.com/owncloud/ocis/issues/9942
|
||||
@@ -0,0 +1,8 @@
|
||||
Security: Upgrade Go to 1.25.12
|
||||
|
||||
Bumped the Go toolchain used to build the release binaries and Docker images
|
||||
from 1.25.11 to 1.25.12. Go 1.25.11 is affected by CVE-2026-39822 (os.Root
|
||||
symlink following allows directory traversal), which is fixed in 1.25.12 and
|
||||
was blocking the release image security scan.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12602
|
||||
@@ -0,0 +1,7 @@
|
||||
Security: Upgrade libvips to 8.18.4
|
||||
|
||||
Bumped libvips to 8.18.4 in all Docker images. The previous pin (8.18.3-r0)
|
||||
was dropped from the Alpine edge/community repository, which broke the image
|
||||
build.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12596
|
||||
@@ -0,0 +1,19 @@
|
||||
Enhancement: Add an opt-in bounded LDAP connection pool
|
||||
|
||||
The auth-basic, users, groups and graph services can now be switched from a
|
||||
single long-lived reconnecting LDAP connection to a bounded pool of connections,
|
||||
so concurrent requests no longer serialize on one socket. Connections are dialed
|
||||
and bound lazily on checkout, unhealthy connections are discarded and lazily
|
||||
re-dialed rather than eagerly reconnected, and checkout blocks with a configurable
|
||||
timeout once the pool is exhausted.
|
||||
|
||||
Pooling is off by default and fully backwards compatible. Enable it per service
|
||||
via 'OCIS_LDAP_POOL_ENABLED' (or the service-specific '<SERVICE>_LDAP_POOL_ENABLED'
|
||||
override), and tune it with 'OCIS_LDAP_POOL_SIZE' (default 5) and
|
||||
'OCIS_LDAP_POOL_CHECKOUT_TIMEOUT' (default 30s).
|
||||
|
||||
The graph service's identity backend now shares the same LDAP client
|
||||
implementation used by the reva auth/user/group managers instead of maintaining
|
||||
its own separate reconnecting client.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12660
|
||||
@@ -0,0 +1,14 @@
|
||||
Enhancement: Eliminate redundant LDAP read-after-write on create and update
|
||||
|
||||
The graph LDAP backend no longer re-reads an entry immediately after writing it
|
||||
just to recover the entry ID for the response. When oCIS generates the ID itself
|
||||
(GRAPH_LDAP_SERVER_UUID disabled), the create response is now synthesized from the
|
||||
data already sent to the directory, and update responses are built by folding the
|
||||
applied modifications onto the entry that was read before the write. This avoids a
|
||||
round-trip that, against a replicated directory reached through a proxy, could hit
|
||||
a lagging replica and fail or return stale data.
|
||||
|
||||
When the directory assigns the ID (GRAPH_LDAP_SERVER_UUID enabled), creates keep
|
||||
the existing read-back, since the generated ID cannot otherwise be recovered.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12618
|
||||
@@ -0,0 +1,16 @@
|
||||
Enhancement: Retry LDAP operations against a lagging replica
|
||||
|
||||
The graph LDAP backend can now retry operations against a replicated directory
|
||||
where a write to the primary is followed by a read that lands on a replica which
|
||||
has not yet caught up. This covers the read-back that recovers a directory-assigned
|
||||
ID after a create (GRAPH_LDAP_SERVER_UUID enabled), which is retried until the entry
|
||||
becomes visible. The retry count and backoff are tunable through
|
||||
`GRAPH_LDAP_RETRY_MAX_COUNT`, `GRAPH_LDAP_RETRY_BASE_DELAY` and
|
||||
`GRAPH_LDAP_RETRY_MAX_DELAY`; the defaults keep the previous behaviour (a single
|
||||
immediate retry with no delay), so existing deployments are unaffected.
|
||||
|
||||
Retries now distinguish reads from writes: a write is no longer retried on a network
|
||||
error, which can surface after the request was already sent and would otherwise apply
|
||||
the mutation twice.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12672
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Return correct issuerAssignedId on /me
|
||||
|
||||
The `/graph/v1.0/me` endpoint reported the internal user UUID as
|
||||
`identities[].issuerAssignedId` instead of the issuer-assigned identity (the
|
||||
OIDC `sub`). The endpoint took a fast path that built the user model from the
|
||||
CS3 user in the request context, which does not carry the external identity, so
|
||||
it fell back to the internal UUID. `/me` now always resolves the user through
|
||||
the identity backend, which reads the stored external identity and returns the
|
||||
correct value. Group memberships are still only expanded when
|
||||
`$expand=memberOf` is requested.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12635
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
Bugfix: Log unmapped thumbnail errors and always report a sabredav exception
|
||||
|
||||
The webdav service logged failures of the thumbnails service at debug level only.
|
||||
Errors which are not a property of the requested file, such as the thumbnails
|
||||
service being unreachable, were therefore invisible at production log levels: a
|
||||
complete preview outage produced HTTP 500 responses without a single log line
|
||||
explaining them. Unmapped errors are now logged at error level, while expected
|
||||
per-file outcomes such as an unsupported file type or a file still being
|
||||
processed stay at debug level. Two of the four thumbnail handlers also logged
|
||||
without the request context, so their messages carried no request id.
|
||||
|
||||
In addition, `codesEnum` only mapped four status codes, so error responses for
|
||||
all other codes were rendered with an empty `<s:exception></s:exception>`
|
||||
element. The missing entries for 403, 425 and 429 have been added and any
|
||||
remaining unmapped code now falls back to a generic exception name, so clients
|
||||
always receive a usable exception.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12663
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: Cache LDAP instance mapper lookups
|
||||
|
||||
In multi-instance deployments, resolving a user's instance name/ID during
|
||||
`GET /graph/v1.0/users` (and group member expansion) issued a fresh, uncached
|
||||
LDAP search per instance/guest attribute value on every request. Under load
|
||||
this multiplied into large numbers of redundant LDAP round-trips per page of
|
||||
users, saturating the LDAP connection pool and causing request timeouts. The
|
||||
LDAP identity backend now caches instance mapper lookups, including negative
|
||||
(not-found) results, for a configurable TTL
|
||||
(`OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL`, default 60s).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12823
|
||||
@@ -0,0 +1,9 @@
|
||||
Bugfix: Fix share metadata corruption during concurrent share operations
|
||||
|
||||
When multiple sharing service replicas processed share operations concurrently
|
||||
for the same user, the share metadata could become corrupted with references to
|
||||
missing data, making all shares inaccessible to that user. The received share
|
||||
cache now uses compare-and-swap (etag) validation to detect concurrent writes
|
||||
and retries gracefully, preventing metadata corruption.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12621
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Add TLS support for NATS store and registry connections
|
||||
|
||||
All `nats-js-kv` store, cache, and service registry connections now support
|
||||
TLS. Configure via `OCIS_CACHE_ENABLE_TLS`, `OCIS_PERSISTENT_STORE_ENABLE_TLS`,
|
||||
and `MICRO_REGISTRY_ENABLE_TLS`, with corresponding `*_TLS_INSECURE` and
|
||||
`*_TLS_ROOT_CA_CERTIFICATE` variants per connection type.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12765
|
||||
@@ -0,0 +1,5 @@
|
||||
Security: Bump Go to 1.25.13
|
||||
|
||||
Fixes a stdlib CVE vulnerability flagged by the release image scan.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12832
|
||||
@@ -0,0 +1,6 @@
|
||||
Security: Bump golang.org/x/image to v0.45.0
|
||||
|
||||
Upgraded golang.org/x/image from v0.44.0 to v0.45.0 to address
|
||||
GO-2026-6222: excessive memory allocation during VP8L decoding.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12808
|
||||
@@ -1,7 +0,0 @@
|
||||
Bugfix: Don't index failed uploads
|
||||
|
||||
The search service was indexing uploads even when they failed. This caused
|
||||
unnecessary index operations for incomplete or errored file transfers. The fix
|
||||
skips indexing when the UploadReady event indicates the upload has failed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12121
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Remove the unmarshalable request body field from graph log messages
|
||||
|
||||
We've removed the `body` field from the log messages of the graph service's HTTP
|
||||
handlers. The field was set from `http.Request.Body`, an `io.ReadCloser`, which
|
||||
can never be serialized into a useful log value.
|
||||
|
||||
The tracing middleware replaces the request body with a wrapper that carries an
|
||||
exported function field, so serializing it failed outright and the log line was
|
||||
emitted with `"body": "marshaling error: json: unsupported type: func(int64)"`
|
||||
instead of the payload. Without the tracing middleware the field serialized to an
|
||||
empty object. In both cases the intended payload was never logged.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12918
|
||||
@@ -0,0 +1,28 @@
|
||||
Bugfix: Release the quota of upload sessions with unreadable node metadata
|
||||
|
||||
When an upload's target node lost its metadata, e.g. because an ancestor was
|
||||
moved to the trash while the upload was still in flight, the upload could never
|
||||
finish processing. It stayed in "Processing" forever, could not be downloaded or
|
||||
deleted, and kept consuming the space quota.
|
||||
|
||||
Cleaning such a session up with `ocis storage-users uploads sessions --clean`
|
||||
did not help either: it removed the uploaded bytes and the session info file
|
||||
before failing to revert the node, so it destroyed the only copy of the data
|
||||
without releasing any quota.
|
||||
|
||||
Cleanup now reverts the node before removing anything irreversible and falls
|
||||
back to the session metadata when the node cannot be read, so the quota is
|
||||
released and the orphaned node is removed. If the quota cannot be released the
|
||||
upload is kept so it can be retried instead of being lost.
|
||||
|
||||
A new `--orphaned` filter lists the affected sessions:
|
||||
|
||||
```
|
||||
ocis storage-users uploads sessions --orphaned
|
||||
ocis storage-users uploads sessions --orphaned --clean
|
||||
```
|
||||
|
||||
Note that evaluating the filter reads the node metadata of every session, so it
|
||||
is only done when the flag is set.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12739
|
||||
@@ -0,0 +1,25 @@
|
||||
Bugfix: Keep shares visible in sharedWithMe when a resource cannot be statted
|
||||
|
||||
The graph `sharedWithMe` handler resolves each received share by fanning out a per-resource
|
||||
`Stat` call with a concurrency limit, all sharing the request context. When a `Stat` failed
|
||||
for any reason (slow or stuck downstream, deleted space, gateway error, deadline exceeded)
|
||||
the worker logged at debug and returned without emitting a drive item, so the share was
|
||||
silently omitted from the response and the handler still returned `200 OK` with a partial,
|
||||
non-deterministic list. A single chronically-slow share could therefore make other,
|
||||
recently-accepted shares intermittently invisible, and repeated calls returned different
|
||||
subsets of the user's shares.
|
||||
|
||||
The handler now:
|
||||
|
||||
- bounds each per-share `Stat` with its own timeout derived from the request context, so one
|
||||
slow resource can no longer consume the deadline shared by all the other shares. The bound
|
||||
is configurable via `GRAPH_RECEIVED_SHARES_STAT_TIMEOUT` (default `10s`);
|
||||
- returns a degraded drive item built from the data already present in the share record
|
||||
(ids, permissions, grantees, timestamps, mountpoint name) when the resource cannot be statted
|
||||
due to a transient or indeterminate failure (timeout, slow or unavailable downstream), so the
|
||||
share stays visible instead of intermittently disappearing. A genuinely missing resource or
|
||||
revoked access (for example after the sharer was deleted) still drops the share, as before;
|
||||
- logs the dropped/degraded shares at warning level with a per-request count for operator
|
||||
visibility.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12430
|
||||
@@ -1,7 +0,0 @@
|
||||
Enhancement: Bump Reva version
|
||||
|
||||
bumped reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12051
|
||||
https://github.com/owncloud/ocis/pull/12087
|
||||
https://github.com/owncloud/ocis/pull/12137
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Add Keycloak to the ocis_full deployment example
|
||||
|
||||
Added Keycloak to the ocis_full deployment example.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12139
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Add space ID to incoming shares
|
||||
|
||||
Added the `spaceId` to the incoming shares. This is aligning the graph API with the WebDAV API where the clients can use `spaceid` property.
|
||||
This change allows clients to get the space ID directly instead of having to parse the resource ID.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12024
|
||||
@@ -1,11 +0,0 @@
|
||||
Enhancement: Add AI-assisted development guide
|
||||
|
||||
A new guide has been added to the oCIS documentation demonstrating how to build
|
||||
web extensions using AI-assisted development with Claude AI. The guide covers
|
||||
MCP connector setup, a five-phase development workflow, debugging techniques,
|
||||
and contribution workflows.
|
||||
|
||||
This approach has been validated through real contributions including PR #11912
|
||||
(photo metadata search backend) and web extensions PRs #305 and #306.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11941
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Bump Web to 12.3.1
|
||||
|
||||
Bugfix [owncloud/web#13553](https://github.com/owncloud/web/pull/13553): Search Text Overalps With Search Icon In The Search Bar
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12015
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.1
|
||||
@@ -1,13 +0,0 @@
|
||||
Enhancement: Support numeric range queries in KQL
|
||||
|
||||
The KQL parser now supports numeric range queries using comparison
|
||||
operators (>=, <=, >, <) on numeric fields. Previously, range operators
|
||||
only worked with DateTime values, causing queries like `size>=1048576`
|
||||
or `photo.iso>=100` to silently fail by falling through to free-text
|
||||
search.
|
||||
|
||||
Affected numeric fields: Size, photo.iso, photo.fNumber,
|
||||
photo.focalLength, photo.orientation.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12094
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
@@ -0,0 +1,10 @@
|
||||
Enhancement: Add TLS support for the frontend stat cache store connection
|
||||
|
||||
The frontend service was the only remaining place where a `nats-js-kv` store
|
||||
connection could not be secured. Its OCS stat cache forwarded the store type,
|
||||
nodes, database, table, TTL and credentials to reva, but not the TLS settings,
|
||||
so the connection stayed plaintext with no operator toggle to change it. The
|
||||
stat cache now honours `OCIS_CACHE_ENABLE_TLS`, `OCIS_CACHE_TLS_INSECURE` and
|
||||
`OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE` like every other cache and store.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12777
|
||||
@@ -1,11 +0,0 @@
|
||||
Enhancement: Optimize search index after bulk reindexing
|
||||
|
||||
After an `IndexSpace` walk completes, the search engine now triggers a
|
||||
segment merge (compaction) on the bleve index. Over time, writes create
|
||||
multiple index segments that degrade query performance. The new
|
||||
`Optimize()` method calls bleve's `ForceMerge` to consolidate all
|
||||
segments into one, improving subsequent search and lookup speed. This is
|
||||
especially beneficial after bulk reindexing large spaces.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12104
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
@@ -1,24 +0,0 @@
|
||||
Enhancement: Add blobstore CLI commands to storage-users service
|
||||
|
||||
Added two new CLI commands under `ocis storage-users blobstore` to help
|
||||
operators verify and inspect the configured blobstore without needing
|
||||
direct access to the underlying storage system.
|
||||
|
||||
`blobstore check` performs a full upload/download/delete round-trip using
|
||||
a random payload. The payload size is configurable via `--blob-size` and
|
||||
accepts human-readable values such as `64`, `1KB` or `4MiB` (default: 64 bytes).
|
||||
|
||||
`blobstore get` downloads a specific blob by its ID to verify it is
|
||||
readable. The blob can be identified either with `--blob-id` and
|
||||
`--space-id`, or by passing the raw blob path from a log line directly
|
||||
via `--path`. Both the s3ng key format
|
||||
(`<spaceID>/<pathified_blobID>`) and the ocis filesystem path format
|
||||
(`…/spaces/<pathified_spaceID>/blobs/<pathified_blobID>`) are accepted.
|
||||
When using the s3ng driver without a known blob size, an automatic retry
|
||||
with the actual size is performed on a size mismatch.
|
||||
|
||||
Both commands read the existing service configuration, so they always
|
||||
target the same blobstore as the running service. Only the `ocis` and
|
||||
`s3ng` storage drivers are supported.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12102
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Add web extensions deployment configuration
|
||||
|
||||
We added deployment configuration for the photo-addon and advanced-search web
|
||||
extensions to the ocis_full example. This includes Docker compose files for
|
||||
both extensions and CSP configuration for OpenStreetMap tiles required by the
|
||||
photo-addon map feature.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11940
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix CSP blocking bundled KaTeX font
|
||||
|
||||
The default Content Security Policy blocked the bundled KaTeX math font (used by the md-editor) because it is inlined as a `data:` URI in the Web UI CSS. Added `data:` to the `font-src` directive to resolve the console error on every page load. Users with custom CSP files (`PROXY_CSP_CONFIG_FILE_LOCATION`) will need to add `data:` to their `font-src` directive manually.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12070
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Make tag unassignment idempotent and handle publish failures
|
||||
|
||||
The DELETE tags endpoint now returns success when the requested tag is already absent from the file's metadata, instead of returning HTTP 400 with a misleading error message. The TagsRemoved event is always published so the search index stays in sync even when file metadata and the search index are out of sync. If event publishing fails, the metadata change is rolled back and HTTP 500 is returned to avoid leaving the system in an inconsistent state.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12001
|
||||
@@ -1,10 +0,0 @@
|
||||
Bugfix: Fix IDP build on FreeBSD by disabling absolute Babel runtime
|
||||
|
||||
The `babel-preset-react-app` preset defaults to `absoluteRuntime: true`,
|
||||
which hardcodes absolute paths to `@babel/runtime` helpers. These paths
|
||||
fail to resolve on non-Linux platforms like FreeBSD. Setting
|
||||
`absoluteRuntime: false` makes Babel resolve the runtime relative to
|
||||
the source file, which works across all platforms.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12114
|
||||
https://github.com/owncloud/ocis/issues/12065
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Correct introduction version for OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL
|
||||
|
||||
We changed the documented introduction version of the
|
||||
OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL from 8.0.0 to 8.3.0.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12949
|
||||
@@ -1,10 +0,0 @@
|
||||
Enhancement: Log effective data and config paths at startup
|
||||
|
||||
oCIS now logs the effective data path and config path at startup so
|
||||
operators can immediately verify that data is written to the expected
|
||||
location. This helps catch misconfigured Docker volume mounts where
|
||||
data silently falls back to an ephemeral container path instead of
|
||||
the intended persistent mount.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12117
|
||||
https://github.com/owncloud/ocis/issues/12044
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Translation for some email notifications
|
||||
|
||||
Some email notifications showed a wrong translated message that shouldn't appear.
|
||||
It's fixed so that message won't appear anymore.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11979
|
||||
@@ -1,8 +0,0 @@
|
||||
Bugfix: Fix postprocessing resume command --restart flag
|
||||
|
||||
The `--restart` / `-r` flag for `ocis postprocessing resume` was broken due to a flag
|
||||
name mismatch (`retrigger` vs `restart`) and silently did nothing. This has been fixed
|
||||
and the command now prints a confirmation message on success.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/11692
|
||||
https://github.com/owncloud/ocis/pull/12002
|
||||
@@ -1,26 +0,0 @@
|
||||
Bugfix: Prevent incomplete Tika extractions from permanently blocking re-index
|
||||
|
||||
When Tika returned HTTP 200 but its child processes (OCR, ImageMagick)
|
||||
failed due to resource limits, the search index received metadata but
|
||||
no content. The document was written to Bleve with the correct mtime,
|
||||
and subsequent reindexes skipped it because the id+mtime check passed.
|
||||
This left files permanently stuck as "indexed" with no searchable
|
||||
content.
|
||||
|
||||
Two fixes are applied:
|
||||
|
||||
1. Validate Tika responses: if `MetaRecursive()` returns an empty
|
||||
metadata list, it is now treated as an extraction error so the
|
||||
document is not written to the index.
|
||||
|
||||
2. Add an `Extracted` field to indexed resources. It is set to `true`
|
||||
only after successful extraction. The reindex skip check now requires
|
||||
`Extracted:true`, so incompletely indexed documents are automatically
|
||||
re-processed on the next reindex run.
|
||||
|
||||
Note: existing search indexes will trigger a full re-extraction on the
|
||||
next reindex because documents written before this change lack the
|
||||
`Extracted` field.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12095
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Use O(1) document lookup instead of full search during reindexing
|
||||
|
||||
The `IndexSpace` bulk reindexer was using a full KQL search query per file
|
||||
to check whether re-extraction was needed. On large indexes this query
|
||||
took 600–950ms each, making a 61,000-file space take ~13.5 hours just to
|
||||
walk. Replaced the per-file `Search()` call with an O(1) `Lookup()` using
|
||||
Bleve's `DocIDQuery`, then comparing mtime and extraction status in memory.
|
||||
This reduces per-file check time from ~800ms to <1ms.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12096
|
||||
https://github.com/owncloud/ocis/issues/12093
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix case-sensitive photo metadata search
|
||||
|
||||
Searching for photo metadata fields like camera make/model was case-sensitive, so searching for "google" would not match a camera make stored as "Google". Changed the photo string field analyzer from `keyword` to `lowercaseKeyword` so both indexed values and search terms are lowercased. Existing Bleve indexes need to be rebuilt after this change.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12078
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Always descend into directories during space reindexing
|
||||
|
||||
The search indexer's `IndexSpace` walk previously used `filepath.SkipDir`
|
||||
to skip entire directory subtrees when the directory itself was already
|
||||
indexed. After a failed or interrupted indexing run (e.g. Tika crash),
|
||||
this caused thousands of unindexed files to be permanently skipped
|
||||
because the parent directory's mtime had not changed. The indexer now
|
||||
always descends into directories, relying on the O(1) per-file DocID
|
||||
lookup to skip already-indexed files efficiently.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12119
|
||||
@@ -1,19 +0,0 @@
|
||||
Bugfix: Extract metadata from oversized files and fix ISO field
|
||||
|
||||
Two issues were found in the Tika content extractor:
|
||||
|
||||
1. Files exceeding `SEARCH_CONTENT_EXTRACTION_SIZE_LIMIT` (default 20MB)
|
||||
were skipped entirely — no EXIF, no photo metadata, no image dimensions
|
||||
were extracted. This particularly affected Pixel Motion Photos (`.MP.jpg`)
|
||||
which embed an MP4 video making them 3-9MB. Since EXIF metadata lives in
|
||||
the JPEG header (first few KB), a truncated stream is sufficient. The
|
||||
extractor now wraps the download in `io.LimitReader` instead of skipping
|
||||
Tika, sending only the first N bytes for metadata extraction.
|
||||
|
||||
2. The ISO speed field was read from `"Base ISO"`, a Canon-specific Tika
|
||||
field (sensor base sensitivity). Most cameras — Pixel, iPhone, Samsung —
|
||||
provide ISO via the standard `"exif:IsoSpeedRatings"` field. The extractor
|
||||
now checks `exif:IsoSpeedRatings` first and falls back to `Base ISO` for
|
||||
Canon compatibility.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12000
|
||||
@@ -1,11 +0,0 @@
|
||||
Security: Add X-XSS-Protection header
|
||||
|
||||
Added the X-XSS-Protection header set to "0" to explicitly disable the
|
||||
deprecated browser XSS filter, which can introduce side-channel
|
||||
vulnerabilities. Modern XSS protection is provided through the
|
||||
Content-Security-Policy header.
|
||||
|
||||
This change addresses security audit findings requiring explicit
|
||||
configuration of HTTP security headers per OWASP recommendations.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12092
|
||||
@@ -1,13 +0,0 @@
|
||||
Enhancement: Add ResourceID field to UploadReady event
|
||||
|
||||
The UploadReady NATS event now includes a `ResourceID` field containing the
|
||||
file's actual resource identifier (with the correct node OpaqueId). Previously,
|
||||
only `FileRef` was available, whose `ResourceId.OpaqueId` is set to the space
|
||||
root ID (required for CS3 gateway path resolution). Consumers that need the
|
||||
file's unique identifier for Graph API or WebDAV operations can now use
|
||||
`ResourceID.OpaqueId` directly.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12060
|
||||
https://github.com/owncloud/ocis/issues/12056
|
||||
https://github.com/owncloud/reva/pull/547
|
||||
https://github.com/owncloud/reva/pull/560
|
||||
@@ -1,12 +0,0 @@
|
||||
Bugfix: Rework monitoring in the ocis_full deployment example
|
||||
|
||||
The ocis_full deployment example has been basically reworked for how to provide monitoring.
|
||||
|
||||
We now have:
|
||||
- a singe place for the definition of the tracing envvars for all ocis related container services
|
||||
- an easy and modular setup defining which sources should be inlcuded in monitoring via .env
|
||||
- comments describing the setup for the ease extending it
|
||||
- the monitoring definition in .env has been moved to the bottom and the compose_file assembly
|
||||
has monitoring as last entry now to guarantee nothing gets overwritten by accident
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11995
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Update images in the ocis_full deployment example
|
||||
|
||||
- Update the docker images for core services and web-extensions
|
||||
- Moving all default image definitions (latest) into the .env file for consistency
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12123
|
||||
@@ -12,7 +12,7 @@ INSECURE=true
|
||||
# Note: Traefik is always enabled and can't be disabled.
|
||||
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
|
||||
# release notes: https://github.com/traefik/traefik/releases
|
||||
TRAEFIK_DOCKER_TAG=v3.6.10
|
||||
TRAEFIK_DOCKER_TAG=v3.6.7
|
||||
# Serve Traefik dashboard.
|
||||
# Defaults to "false".
|
||||
TRAEFIK_DASHBOARD=
|
||||
@@ -45,7 +45,7 @@ OCIS=:ocis.yml
|
||||
OCIS_DOCKER_IMAGE=owncloud/ocis
|
||||
# The oCIS container version.
|
||||
# Defaults to "latest" and points to the latest stable tag.
|
||||
OCIS_DOCKER_TAG=latest
|
||||
OCIS_DOCKER_TAG=
|
||||
# Domain of oCIS, where you can find the frontend.
|
||||
# Defaults to "ocis.owncloud.test"
|
||||
OCIS_DOMAIN=
|
||||
@@ -94,9 +94,6 @@ S3NG_BUCKET=
|
||||
# For testing purposes, add local minio S3 storage to the docker-compose file.
|
||||
# The leading colon is required to enable the service.
|
||||
#S3NG_MINIO=:minio.yml
|
||||
# Set the desired docker image tag or digest.
|
||||
# Defaults to "latest"
|
||||
MINIO_DOCKER_TAG=latest
|
||||
# Minio domain. Defaults to "minio.owncloud.test".
|
||||
MINIO_DOMAIN=
|
||||
|
||||
@@ -148,14 +145,8 @@ START_ADDITIONAL_SERVICES="notifications"
|
||||
# External Sites needs additional config, see the following files for more details.
|
||||
# - config/ocis/apps.yaml
|
||||
# - config/ocis/csp.yaml
|
||||
# Photo-addon provides a photo gallery with timeline view, EXIF metadata display, and map view.
|
||||
# Important, the Photo-addon requires that TIKA is enabled
|
||||
#PHOTOADDON=:web_extensions/photo-addon.yml
|
||||
# Advanced-search provides comprehensive search filtering with the KQL query builder.
|
||||
# Important, Advanced-search requires that TIKA is enabled
|
||||
#ADVANCEDSEARCH=:web_extensions/advanced-search.yml
|
||||
#IMPORTER=:web_extensions/importer.yml
|
||||
# The importer needs additional COMPANION config, see the following lines for more details.
|
||||
# The importer needs additional config, see the following lines for more details.
|
||||
## The docker image to be used for uppy companion.
|
||||
# owncloud has built a container with public link import support.
|
||||
COMPANION_IMAGE=
|
||||
@@ -167,26 +158,6 @@ COMPANION_ONEDRIVE_KEY=
|
||||
COMPANION_ONEDRIVE_SECRET=
|
||||
|
||||
|
||||
### Keycloak Settings ###
|
||||
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
|
||||
# release notes: https://github.com/keycloak/keycloak/releases
|
||||
KEYCLOAK_DOCKER_TAG=26.2.5
|
||||
# Domain of Keycloak, where you can find the management and authentication frontend. Defaults to "keycloak.owncloud.test"
|
||||
KEYCLOAK_DOMAIN=
|
||||
# Realm which to be used with oCIS. Defaults to "oCIS"
|
||||
KEYCLOAK_REALM=
|
||||
# Admin user login name. Defaults to "admin"
|
||||
KEYCLOAK_ADMIN_USER=
|
||||
# Admin user login password. Defaults to "admin"
|
||||
KEYCLOAK_ADMIN_PASSWORD=
|
||||
# Enable tracing in Keycloak. Traces will be sent to "http://jaeger:4317". Defaults to "false"
|
||||
KEYCLOAK_TRACING=
|
||||
|
||||
# Enable Keycloak manually if you want to use it
|
||||
# Note: the leading colon is required to enable the service.
|
||||
#KEYCLOAK=:keycloak.yml
|
||||
|
||||
|
||||
## Default Enabled Services ##
|
||||
|
||||
### Apache Tika Content Analysis Toolkit ###
|
||||
@@ -194,8 +165,8 @@ KEYCLOAK_TRACING=
|
||||
# Note: the leading colon is required to enable the service.
|
||||
TIKA=:tika.yml
|
||||
# Set the desired docker image tag or digest.
|
||||
# Defaults to "latest-full"
|
||||
TIKA_DOCKER_TAG=latest-full
|
||||
# Defaults to "latest"
|
||||
TIKA_IMAGE=
|
||||
|
||||
### IMPORTANT Note for Online Office Apps ###
|
||||
# To avoid app interlocking issues, you should select only one app to be active/configured.
|
||||
@@ -208,7 +179,7 @@ TIKA_DOCKER_TAG=latest-full
|
||||
COLLABORA=:collabora.yml
|
||||
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
|
||||
# release notes: https://www.collaboraonline.com/release-notes/
|
||||
COLLABORA_DOCKER_TAG=25.04.9.3.1
|
||||
COLLABORA_DOCKER_TAG=25.04.8.1.1
|
||||
# Domain of Collabora, where you can find the frontend.
|
||||
# Defaults to "collabora.owncloud.test"
|
||||
COLLABORA_DOMAIN=
|
||||
@@ -233,6 +204,12 @@ COLLABORA_SSL_VERIFICATION=false
|
||||
# and configure the service as required.
|
||||
|
||||
|
||||
### Debugging - Monitoring ###
|
||||
# Please see documentation at: https://owncloud.dev/ocis/deployment/monitoring-tracing/
|
||||
# Note: the leading colon is required to enable the service.
|
||||
#MONITORING=:monitoring_tracing/monitoring.yml
|
||||
|
||||
|
||||
### 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.
|
||||
@@ -240,7 +217,7 @@ COLLABORA_SSL_VERIFICATION=false
|
||||
#CLAMAV=:clamav.yml
|
||||
# Image version of the ClamAV container.
|
||||
# Defaults to "latest"
|
||||
CLAMAV_DOCKER_TAG=latest
|
||||
CLAMAV_DOCKER_TAG=
|
||||
|
||||
|
||||
### OnlyOffice Settings ###
|
||||
@@ -253,7 +230,7 @@ CLAMAV_DOCKER_TAG=latest
|
||||
ONLYOFFICE_IMAGE=onlyoffice/documentserver
|
||||
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
|
||||
# release notes: https://github.com/ONLYOFFICE/DocumentServer/releases
|
||||
ONLYOFFICE_DOCKER_TAG=9.3.1.1
|
||||
ONLYOFFICE_DOCKER_TAG=9.2.1.1
|
||||
|
||||
# EE only: the path to your license file on the host.
|
||||
# To activate a license file, comment ONLYOFFICE_DEACTIVATE_LICENSE. Otherwise, it <must> stay uncommented.
|
||||
@@ -280,21 +257,11 @@ ONLYOFFICE_DOMAIN=
|
||||
MAIL_SERVER_DOMAIN=
|
||||
# The recommended (and tested) version to pull. If no version is used, it pulls "latest"
|
||||
# release notes: https://github.com/axllent/mailpit/releases
|
||||
MAIL_SERVER_DOCKER_TAG=v1.29.3
|
||||
|
||||
|
||||
### Debugging - Monitoring ###
|
||||
# Please see documentation at: https://owncloud.dev/ocis/deployment/monitoring-tracing/
|
||||
# Note: the leading colon is required to enable the service.
|
||||
#MONITORING=:monitoring_tracing/monitoring.yml
|
||||
# Uncomment to extend monitoring for the Collabora and OnlyOffice services if enabled above
|
||||
# Note that the value must match the filenames in the monitoring_tracing folder, do not change
|
||||
#MONITORING_COLLABORATION=m_collaboration.yml
|
||||
#MONITORING_COLLABORATION_OO=m_collaboration-oo.yml
|
||||
MAIL_SERVER_DOCKER_TAG=v1.28.0
|
||||
|
||||
|
||||
## IMPORTANT ##
|
||||
# This MUST be the last line as it assembles the supplemental compose files to be used.
|
||||
# ALL supplemental configs must be added here, whether commented or not.
|
||||
# Each var must either be empty or contain :path/file.yml
|
||||
COMPOSE_FILE=docker-compose.yml${OCIS:-}${TIKA:-}${S3NG:-}${S3NG_MINIO:-}${COLLABORA:-}${IMPORTER:-}${CLAMAV:-}${ONLYOFFICE:-}${EXTENSIONS:-}${UNZIP:-}${DRAWIO:-}${JSONVIEWER:-}${PROGRESSBARS:-}${EXTERNALSITES:-}${PHOTOADDON:-}${ADVANCEDSEARCH:-}${MAIL_SERVER:-}${MONITORING:-}${KEYCLOAK:-}
|
||||
COMPOSE_FILE=docker-compose.yml${OCIS:-}${TIKA:-}${S3NG:-}${S3NG_MINIO:-}${COLLABORA:-}${MONITORING:-}${IMPORTER:-}${CLAMAV:-}${ONLYOFFICE:-}${EXTENSIONS:-}${UNZIP:-}${DRAWIO:-}${JSONVIEWER:-}${PROGRESSBARS:-}${EXTERNALSITES:-}${MAIL_SERVER:-}
|
||||
@@ -15,11 +15,4 @@ This deployment example is documented in two locations for different audiences:
|
||||
Providing details which are more developer focused. This description can also be used when deviating from the default.\
|
||||
Note that this examples uses self signed certificates and is intended for testing purposes.
|
||||
|
||||
## Optional Services
|
||||
|
||||
### Keycloak
|
||||
|
||||
Keycloak can be optionally enabled by uncommenting the corresponding variables in the `.env` file:
|
||||
- `KEYCLOAK=:keycloak.yml`
|
||||
|
||||
Note that Keycloak requires the default `ocis` Identity Provider to be disabled, which is automatically handled when the `keycloak.yml` configuration is used.
|
||||
@@ -13,7 +13,7 @@ services:
|
||||
- "clamav-socket:/var/run/clamav"
|
||||
|
||||
clamav:
|
||||
image: clamav/clamav:${CLAMAV_DOCKER_TAG}
|
||||
image: clamav/clamav:${CLAMAV_DOCKER_TAG:-latest}
|
||||
# release notes: https://blog.clamav.net
|
||||
networks:
|
||||
ocis-net:
|
||||
|
||||
@@ -12,7 +12,7 @@ services:
|
||||
GRAPH_AVAILABLE_ROLES: "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,aa97fe03-7980-45ac-9e50-b325749fd7e6"
|
||||
|
||||
collaboration:
|
||||
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG}
|
||||
image: ${OCIS_DOCKER_IMAGE:-owncloud/ocis}:${OCIS_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
ocis-net:
|
||||
depends_on:
|
||||
@@ -49,7 +49,7 @@ services:
|
||||
restart: always
|
||||
|
||||
collabora:
|
||||
image: collabora/code:${COLLABORA_DOCKER_TAG}
|
||||
image: collabora/code:${COLLABORA_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
ocis-net:
|
||||
environment:
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
{
|
||||
"clientId": "e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD",
|
||||
"name": "ownCloud Android app",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"secret": "dInFYGV33xKzhbRmpqQltYNdfLdJIfJ9L5ISoKhNoT9qZftpdWSP71VrpGR9pmoD",
|
||||
"redirectUris": [
|
||||
"oc://android.owncloud.com"
|
||||
],
|
||||
"webOrigins": [],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": false,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"post.logout.redirect.uris": "+",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"profile",
|
||||
"roles",
|
||||
"groups",
|
||||
"basic",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
{
|
||||
"clientId": "3keLfua0olYvW1zKXTDB3OjAMPEYWEQNuiscli395GKJOiPnPURNQWGvGCJZf4Hw",
|
||||
"name": "Cyberduck",
|
||||
"description": "",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"secret": "yoqICbLIeYbpZPqDH4D8k4NKb04HqnrWBntEeVZEQ5gO1RmaUlln0Aqu1dj2UoF4",
|
||||
"redirectUris": [
|
||||
"x-cyberduck-action:oauth",
|
||||
"x-mountainduck-action:oauth"
|
||||
],
|
||||
"webOrigins": [],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": false,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"oauth2.device.authorization.grant.enabled": "false",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"oidc.ciba.grant.enabled": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"profile",
|
||||
"roles",
|
||||
"groups",
|
||||
"basic",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
{
|
||||
"clientId": "xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69",
|
||||
"name": "ownCloud Desktop Client",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"secret": "UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh",
|
||||
"redirectUris": [
|
||||
"http://127.0.0.1:*",
|
||||
"http://localhost:*"
|
||||
],
|
||||
"webOrigins": [],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": false,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"post.logout.redirect.uris": "+",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"profile",
|
||||
"roles",
|
||||
"groups",
|
||||
"basic",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
{
|
||||
"clientId": "mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1",
|
||||
"name": "ownCloud iOS app",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"secret": "KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx",
|
||||
"redirectUris": [
|
||||
"oc://ios.owncloud.com"
|
||||
],
|
||||
"webOrigins": [],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": false,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"post.logout.redirect.uris": "+",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"profile",
|
||||
"roles",
|
||||
"groups",
|
||||
"basic",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
{
|
||||
"clientId": "web",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"rootUrl": "https://ocis.owncloud.test",
|
||||
"adminUrl": "https://ocis.owncloud.test",
|
||||
"baseUrl": "",
|
||||
"surrogateAuthRequired": false,
|
||||
"enabled": true,
|
||||
"alwaysDisplayInConsole": false,
|
||||
"clientAuthenticatorType": "client-secret",
|
||||
"redirectUris": [
|
||||
"https://ocis.owncloud.test/*"
|
||||
],
|
||||
"webOrigins": [
|
||||
"https://ocis.owncloud.test"
|
||||
],
|
||||
"notBefore": 0,
|
||||
"bearerOnly": false,
|
||||
"consentRequired": false,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
"directAccessGrantsEnabled": true,
|
||||
"serviceAccountsEnabled": false,
|
||||
"publicClient": true,
|
||||
"frontchannelLogout": false,
|
||||
"protocol": "openid-connect",
|
||||
"attributes": {
|
||||
"saml.assertion.signature": "false",
|
||||
"saml.force.post.binding": "false",
|
||||
"saml.multivalued.roles": "false",
|
||||
"saml.encrypt": "false",
|
||||
"post.logout.redirect.uris": "+",
|
||||
"oauth2.device.authorization.grant.enabled": "false",
|
||||
"backchannel.logout.revoke.offline.tokens": "false",
|
||||
"saml.server.signature": "false",
|
||||
"saml.server.signature.keyinfo.ext": "false",
|
||||
"exclude.session.state.from.auth.response": "false",
|
||||
"oidc.ciba.grant.enabled": "false",
|
||||
"backchannel.logout.url": "https://ocis.owncloud.test/backchannel_logout",
|
||||
"backchannel.logout.session.required": "true",
|
||||
"client_credentials.use_refresh_token": "false",
|
||||
"saml_force_name_id_format": "false",
|
||||
"saml.client.signature": "false",
|
||||
"tls.client.certificate.bound.access.tokens": "false",
|
||||
"saml.authnstatement": "false",
|
||||
"display.on.consent.screen": "false",
|
||||
"saml.onetimeuse.condition": "false"
|
||||
},
|
||||
"authenticationFlowBindingOverrides": {},
|
||||
"fullScopeAllowed": true,
|
||||
"nodeReRegistrationTimeout": -1,
|
||||
"defaultClientScopes": [
|
||||
"web-origins",
|
||||
"profile",
|
||||
"roles",
|
||||
"groups",
|
||||
"basic",
|
||||
"email"
|
||||
],
|
||||
"optionalClientScopes": [
|
||||
"address",
|
||||
"phone",
|
||||
"offline_access",
|
||||
"microprofile-jwt"
|
||||
],
|
||||
"access": {
|
||||
"view": true,
|
||||
"configure": true,
|
||||
"manage": true
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
printenv
|
||||
# replace oCIS domain in keycloak realm import
|
||||
mkdir /opt/keycloak/data/import
|
||||
sed -e "s/ocis.owncloud.test/${OCIS_DOMAIN}/g" /opt/keycloak/data/import-dist/ocis-realm.json > /opt/keycloak/data/import/oCIS-realm.json
|
||||
|
||||
# run original docker-entrypoint
|
||||
/opt/keycloak/bin/kc.sh "$@"
|
||||
File diff suppressed because it is too large.
Load diff
@@ -7,15 +7,10 @@ directives:
|
||||
- 'https://${COMPANION_DOMAIN|companion.owncloud.test}/'
|
||||
- 'wss://${COMPANION_DOMAIN|companion.owncloud.test}/'
|
||||
- 'https://raw.githubusercontent.com/owncloud/awesome-ocis/'
|
||||
# In contrary to bash and docker the default is given after the | character
|
||||
- 'https://${KEYCLOAK_DOMAIN|keycloak.owncloud.test}/'
|
||||
# Photo-addon: OpenStreetMap tile requests
|
||||
- 'https://*.tile.openstreetmap.org'
|
||||
default-src:
|
||||
- '''none'''
|
||||
font-src:
|
||||
- '''self'''
|
||||
- 'data:'
|
||||
frame-ancestors:
|
||||
- '''self'''
|
||||
frame-src:
|
||||
@@ -35,8 +30,6 @@ directives:
|
||||
# In contrary to bash and docker the default is given after the | character
|
||||
- 'https://${ONLYOFFICE_DOMAIN|onlyoffice.owncloud.test}/'
|
||||
- 'https://${COLLABORA_DOMAIN|collabora.owncloud.test}/'
|
||||
# Photo-addon: OpenStreetMap tiles for map view
|
||||
- 'https://*.tile.openstreetmap.org'
|
||||
manifest-src:
|
||||
- '''self'''
|
||||
media-src:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:${TRAEFIK_DOCKER_TAG}
|
||||
image: traefik:${TRAEFIK_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
ocis-net:
|
||||
command:
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
---
|
||||
services:
|
||||
traefik:
|
||||
networks:
|
||||
ocis-net:
|
||||
aliases:
|
||||
- ${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}
|
||||
|
||||
ocis:
|
||||
environment:
|
||||
# Keycloak IDP specific configuration
|
||||
PROXY_AUTOPROVISION_ACCOUNTS: "true"
|
||||
PROXY_ROLE_ASSIGNMENT_DRIVER: "oidc"
|
||||
OCIS_OIDC_ISSUER: https://${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}/realms/${KEYCLOAK_REALM:-oCIS}
|
||||
PROXY_OIDC_REWRITE_WELLKNOWN: "true"
|
||||
WEB_OIDC_CLIENT_ID: ${OCIS_OIDC_CLIENT_ID:-web}
|
||||
PROXY_USER_OIDC_CLAIM: "preferred_username"
|
||||
PROXY_USER_CS3_CLAIM: "username"
|
||||
OCIS_EXCLUDE_RUN_SERVICES: "idp"
|
||||
GRAPH_ASSIGN_DEFAULT_USER_ROLE: "false"
|
||||
GRAPH_USERNAME_MATCH: "none"
|
||||
KEYCLOAK_DOMAIN: ${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}
|
||||
WEB_OIDC_SCOPE: "openid profile email acr"
|
||||
|
||||
postgres:
|
||||
image: postgres:alpine
|
||||
networks:
|
||||
ocis-net:
|
||||
volumes:
|
||||
- keycloak_postgres_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: keycloak
|
||||
POSTGRES_USER: keycloak
|
||||
POSTGRES_PASSWORD: keycloak
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
keycloak:
|
||||
image: quay.io/keycloak/keycloak:${KEYCLOAK_DOCKER_TAG}
|
||||
networks:
|
||||
ocis-net:
|
||||
command: ["start", "--spi-connections-http-client-default-disable-trust-manager=${INSECURE:-false}", "--import-realm"]
|
||||
entrypoint: ["/bin/sh", "/opt/keycloak/bin/docker-entrypoint-override.sh"]
|
||||
volumes:
|
||||
- "./config/keycloak/docker-entrypoint-override.sh:/opt/keycloak/bin/docker-entrypoint-override.sh"
|
||||
- "./config/keycloak/ocis-realm.dist.json:/opt/keycloak/data/import-dist/ocis-realm.json"
|
||||
environment:
|
||||
OCIS_DOMAIN: ${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
KC_HOSTNAME: ${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}
|
||||
KC_DB: postgres
|
||||
KC_DB_URL: "jdbc:postgresql://postgres:5432/keycloak"
|
||||
KC_DB_USERNAME: keycloak
|
||||
KC_DB_PASSWORD: keycloak
|
||||
KC_FEATURES: impersonation,opentelemetry
|
||||
KC_BOOTSTRAP_ADMIN_USERNAME: ${KEYCLOAK_ADMIN_USER:-admin}
|
||||
KC_BOOTSTRAP_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD:-admin}
|
||||
# as replacement of --proxy=edge
|
||||
KC_PROXY_HEADERS: xforwarded
|
||||
KC_HTTP_ENABLED: true
|
||||
# tracing
|
||||
KC_TRACING_ENABLED: ${KEYCLOAK_TRACING:-false}
|
||||
KC_TRACING_ENDPOINT: http://jaeger:4317
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.keycloak.entrypoints=https"
|
||||
- "traefik.http.routers.keycloak.rule=Host(`${KEYCLOAK_DOMAIN:-keycloak.owncloud.test}`)"
|
||||
- "traefik.http.routers.keycloak.tls.certresolver=http"
|
||||
- "traefik.http.routers.keycloak.service=keycloak"
|
||||
- "traefik.http.services.keycloak.loadbalancer.server.port=8080"
|
||||
depends_on:
|
||||
- postgres
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
keycloak_postgres_data:
|
||||
@@ -8,7 +8,7 @@ services:
|
||||
NOTIFICATIONS_SMTP_INSECURE: "true"
|
||||
|
||||
mailserver:
|
||||
image: axllent/mailpit:${MAIL_SERVER_DOCKER_TAG}
|
||||
image: axllent/mailpit:${MAIL_SERVER_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
- ocis-net
|
||||
ports:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
services:
|
||||
minio:
|
||||
image: minio/minio:${MINIO_DOCKER_TAG}
|
||||
image: minio/minio:latest
|
||||
# release notes: https://github.com/minio/minio/releases
|
||||
networks:
|
||||
ocis-net:
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# this file has ho compose configuration on purpose
|
||||
# it is required to be present and used in the monitoring.yml file
|
||||
# with this, we can mimic missing conditional rendering
|
||||
# DO NOT DELETE OR ADD CONTENT !
|
||||
@@ -1,13 +0,0 @@
|
||||
# define the collaboration monitoring for onlyoffice
|
||||
# the filename must match the value in the .env file
|
||||
services:
|
||||
collaboration-oo:
|
||||
extends:
|
||||
# add common tracing envvars for collaboration-oo (onlyoffice)
|
||||
# note that the path is relative because the file is included
|
||||
file: tracing_env.yml
|
||||
service: common_monitoring_environment
|
||||
environment:
|
||||
# as onlyoffice runs as a single process, all <debug>/metrics endpoints
|
||||
# will expose the same metrics, so it's sufficient to query one endpoint
|
||||
COLLABORATION_DEBUG_ADDR: 0.0.0.0:9304
|
||||
Loaded 100 of 2873 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user