Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bb656871f | ||
|
|
b1611f0dd0 | ||
|
|
031201f700 | ||
|
|
5924dad81e | ||
|
|
d0e963cf9c | ||
|
|
efd8af74bf | ||
|
|
843019ec3d | ||
|
|
e7f3f5f4b6 |
No files matched your search
@@ -11,4 +11,3 @@
|
||||
!variables.env
|
||||
|
||||
*tmp.mod
|
||||
*tmp.sum
|
||||
+6
-5
@@ -1,13 +1,14 @@
|
||||
# Project Development Dependencies.
|
||||
|
||||
This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by <https://github.com/bwplotka/bingo>.
|
||||
This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo.
|
||||
|
||||
* Run `bingo get` to install all tools having each own module file in this directory.
|
||||
* Run `bingo get <tool>` to install `<tool>` that have own module file in this directory.
|
||||
* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use `\$(<UPPER_CASE_TOOL_NAME>)` variable where `<tool>` is the .bingo/`<tool>.mod`.
|
||||
* Run `bingo get <tool>` to install <tool> that have own module file in this directory.
|
||||
* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $(<upper case tool name>) variable where <tool> is the .bingo/<tool>.mod.
|
||||
* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool.
|
||||
* See <https://github.com/bwplotka/bingo> or -h on how to add, remove or change binaries dependencies.
|
||||
* For go: Import `.bingo/variables.go` to for variable names.
|
||||
* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies.
|
||||
|
||||
## Requirements
|
||||
|
||||
* Go 1.24.x or 1.25.x
|
||||
* Go 1.14+
|
||||
+23
-29
@@ -1,16 +1,10 @@
|
||||
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.10. DO NOT EDIT.
|
||||
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.9. DO NOT EDIT.
|
||||
# All tools are designed to be build inside $GOBIN.
|
||||
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
|
||||
GOPATH ?= $(shell go env GOPATH)
|
||||
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
|
||||
GO ?= $(shell which go)
|
||||
|
||||
# Ensure bingo-managed tools are always built for the host platform,
|
||||
# even when GOOS/GOARCH are set for cross-compilation of other targets.
|
||||
GOHOSTOS ?= $(shell $(GO) env GOHOSTOS)
|
||||
GOHOSTARCH ?= $(shell $(GO) env GOHOSTARCH)
|
||||
GOHOSTARM ?= $(shell $(GO) env GOHOSTARM)
|
||||
|
||||
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
|
||||
# will be used; reinstalling only if needed.
|
||||
# For example for bingo variable:
|
||||
@@ -23,99 +17,99 @@ GOHOSTARM ?= $(shell $(GO) env GOHOSTARM)
|
||||
# @echo "Running bingo"
|
||||
# @$(BINGO) <flags/args..>
|
||||
#
|
||||
BINGO := $(GOBIN)/bingo-v0.10.0
|
||||
BINGO := $(GOBIN)/bingo-v0.9.0
|
||||
$(BINGO): $(BINGO_DIR)/bingo.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/bingo-v0.10.0"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.10.0 "github.com/bwplotka/bingo"
|
||||
@echo "(re)installing $(GOBIN)/bingo-v0.9.0"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=bingo.mod -o=$(GOBIN)/bingo-v0.9.0 "github.com/bwplotka/bingo"
|
||||
|
||||
BUF := $(GOBIN)/buf-v1.39.0
|
||||
$(BUF): $(BINGO_DIR)/buf.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/buf-v1.39.0"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v1.39.0 "github.com/bufbuild/buf/cmd/buf"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buf.mod -o=$(GOBIN)/buf-v1.39.0 "github.com/bufbuild/buf/cmd/buf"
|
||||
|
||||
BUILDIFIER := $(GOBIN)/buildifier-v0.0.0-20220323134444-a9f46b2bb3de
|
||||
$(BUILDIFIER): $(BINGO_DIR)/buildifier.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/buildifier-v0.0.0-20220323134444-a9f46b2bb3de"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=buildifier.mod -o=$(GOBIN)/buildifier-v0.0.0-20220323134444-a9f46b2bb3de "github.com/bazelbuild/buildtools/buildifier"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildifier.mod -o=$(GOBIN)/buildifier-v0.0.0-20220323134444-a9f46b2bb3de "github.com/bazelbuild/buildtools/buildifier"
|
||||
|
||||
CALENS := $(GOBIN)/calens-v0.4.0
|
||||
$(CALENS): $(BINGO_DIR)/calens.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/calens-v0.4.0"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=calens.mod -o=$(GOBIN)/calens-v0.4.0 "github.com/restic/calens"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=calens.mod -o=$(GOBIN)/calens-v0.4.0 "github.com/restic/calens"
|
||||
|
||||
GO_LICENSES := $(GOBIN)/go-licenses-v1.5.0
|
||||
$(GO_LICENSES): $(BINGO_DIR)/go-licenses.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/go-licenses-v1.5.0"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=go-licenses.mod -o=$(GOBIN)/go-licenses-v1.5.0 "github.com/google/go-licenses"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=go-licenses.mod -o=$(GOBIN)/go-licenses-v1.5.0 "github.com/google/go-licenses"
|
||||
|
||||
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.64.6
|
||||
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/golangci-lint-v1.64.6"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.64.6 "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.64.6 "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
||||
|
||||
GOVULNCHECK := $(GOBIN)/govulncheck-v1.1.4
|
||||
GOVULNCHECK := $(GOBIN)/govulncheck-v1.0.1
|
||||
$(GOVULNCHECK): $(BINGO_DIR)/govulncheck.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/govulncheck-v1.1.4"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=govulncheck.mod -o=$(GOBIN)/govulncheck-v1.1.4 "golang.org/x/vuln/cmd/govulncheck"
|
||||
@echo "(re)installing $(GOBIN)/govulncheck-v1.0.1"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=govulncheck.mod -o=$(GOBIN)/govulncheck-v1.0.1 "golang.org/x/vuln/cmd/govulncheck"
|
||||
|
||||
MOCKERY := $(GOBIN)/mockery-v2.53.5
|
||||
MOCKERY := $(GOBIN)/mockery-v2.52.3
|
||||
$(MOCKERY): $(BINGO_DIR)/mockery.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/mockery-v2.53.5"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=mockery.mod -o=$(GOBIN)/mockery-v2.53.5 "github.com/vektra/mockery/v2"
|
||||
@echo "(re)installing $(GOBIN)/mockery-v2.52.3"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=mockery.mod -o=$(GOBIN)/mockery-v2.52.3 "github.com/vektra/mockery/v2"
|
||||
|
||||
PIGEON := $(GOBIN)/pigeon-v1.2.1
|
||||
$(PIGEON): $(BINGO_DIR)/pigeon.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/pigeon-v1.2.1"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=pigeon.mod -o=$(GOBIN)/pigeon-v1.2.1 "github.com/mna/pigeon"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=pigeon.mod -o=$(GOBIN)/pigeon-v1.2.1 "github.com/mna/pigeon"
|
||||
|
||||
PROTOC_GEN_DOC := $(GOBIN)/protoc-gen-doc-v1.5.1
|
||||
$(PROTOC_GEN_DOC): $(BINGO_DIR)/protoc-gen-doc.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-doc-v1.5.1"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=protoc-gen-doc.mod -o=$(GOBIN)/protoc-gen-doc-v1.5.1 "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-doc.mod -o=$(GOBIN)/protoc-gen-doc-v1.5.1 "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc"
|
||||
|
||||
PROTOC_GEN_GO := $(GOBIN)/protoc-gen-go-v1.28.1
|
||||
$(PROTOC_GEN_GO): $(BINGO_DIR)/protoc-gen-go.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-go-v1.28.1"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.28.1 "google.golang.org/protobuf/cmd/protoc-gen-go"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-go.mod -o=$(GOBIN)/protoc-gen-go-v1.28.1 "google.golang.org/protobuf/cmd/protoc-gen-go"
|
||||
|
||||
PROTOC_GEN_MICRO := $(GOBIN)/protoc-gen-micro-v1.0.0
|
||||
$(PROTOC_GEN_MICRO): $(BINGO_DIR)/protoc-gen-micro.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-micro-v1.0.0"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v1.0.0 "github.com/go-micro/generator/cmd/protoc-gen-micro"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-micro.mod -o=$(GOBIN)/protoc-gen-micro-v1.0.0 "github.com/go-micro/generator/cmd/protoc-gen-micro"
|
||||
|
||||
PROTOC_GEN_MICROWEB := $(GOBIN)/protoc-gen-microweb-v0.0.0-20250812083720-c9765347567d
|
||||
$(PROTOC_GEN_MICROWEB): $(BINGO_DIR)/protoc-gen-microweb.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-microweb-v0.0.0-20250812083720-c9765347567d"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20250812083720-c9765347567d "github.com/owncloud/protoc-gen-microweb"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-microweb.mod -o=$(GOBIN)/protoc-gen-microweb-v0.0.0-20250812083720-c9765347567d "github.com/owncloud/protoc-gen-microweb"
|
||||
|
||||
PROTOC_GEN_OPENAPIV2 := $(GOBIN)/protoc-gen-openapiv2-v2.13.0
|
||||
$(PROTOC_GEN_OPENAPIV2): $(BINGO_DIR)/protoc-gen-openapiv2.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-gen-openapiv2-v2.13.0"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=protoc-gen-openapiv2.mod -o=$(GOBIN)/protoc-gen-openapiv2-v2.13.0 "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-gen-openapiv2.mod -o=$(GOBIN)/protoc-gen-openapiv2-v2.13.0 "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"
|
||||
|
||||
PROTOC_GO_INJECT_TAG := $(GOBIN)/protoc-go-inject-tag-v1.4.0
|
||||
$(PROTOC_GO_INJECT_TAG): $(BINGO_DIR)/protoc-go-inject-tag.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/protoc-go-inject-tag-v1.4.0"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=protoc-go-inject-tag.mod -o=$(GOBIN)/protoc-go-inject-tag-v1.4.0 "github.com/favadi/protoc-go-inject-tag"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=protoc-go-inject-tag.mod -o=$(GOBIN)/protoc-go-inject-tag-v1.4.0 "github.com/favadi/protoc-go-inject-tag"
|
||||
|
||||
REFLEX := $(GOBIN)/reflex-v0.3.1
|
||||
$(REFLEX): $(BINGO_DIR)/reflex.mod
|
||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||
@echo "(re)installing $(GOBIN)/reflex-v0.3.1"
|
||||
@cd $(BINGO_DIR) && GOWORK=off GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) GOARM=$(GOHOSTARM) $(GO) build -mod=mod -modfile=reflex.mod -o=$(GOBIN)/reflex-v0.3.1 "github.com/cespare/reflex"
|
||||
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=reflex.mod -o=$(GOBIN)/reflex-v0.3.1 "github.com/cespare/reflex"
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.24.9
|
||||
go 1.17
|
||||
|
||||
require github.com/bwplotka/bingo v0.10.0
|
||||
require github.com/bwplotka/bingo v0.9.0
|
||||
@@ -10,10 +10,7 @@ github.com/bwplotka/bingo v0.8.0 h1:Cx9eQb+ed9aU7sbrmZagomKx+wYor9y5z5HM91bvp1U=
|
||||
github.com/bwplotka/bingo v0.8.0/go.mod h1:eXPFwhZ92mmOUBk6F7aKcAJoq8HX88Ju3wLZKwtNKEw=
|
||||
github.com/bwplotka/bingo v0.9.0 h1:slnsdJYExR4iRalHR6/ZiYnr9vSazOuFGmc2LdX293g=
|
||||
github.com/bwplotka/bingo v0.9.0/go.mod h1:GxC/y/xbmOK5P29cn+B3HuOSw0s2gruddT3r+rDizDw=
|
||||
github.com/bwplotka/bingo v0.10.0 h1:NhodmVTA5T6prv7ZDRbr8wMOKlUE14GsKBaKlioBd58=
|
||||
github.com/bwplotka/bingo v0.10.0/go.mod h1:dFsm4aLJesa7lAhddUS0yLuuCKeM5n+GIPT7K9yycu4=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/creack/pty v1.1.15/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
|
||||
@@ -21,8 +18,6 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs=
|
||||
github.com/efficientgo/core v1.0.0-rc.0/go.mod h1:kQa0V74HNYMfuJH6jiPiwNdpWXl4xd/K4tzlrcvYDQI=
|
||||
github.com/efficientgo/core v1.0.0-rc.3 h1:X6CdgycYWDcbYiJr1H1+lQGzx13o7bq3EUkbB9DsSPc=
|
||||
github.com/efficientgo/core v1.0.0-rc.3/go.mod h1:FfGdkzWarkuzOlY04VY+bGfb1lWrjaL6x/GLcQ4vJps=
|
||||
github.com/efficientgo/tools/core v0.0.0-20210201220623-8118984754c2 h1:GD19G/vhEa8amDJDBYcTaFXZjxKed67Ev0ZFPHdd/LQ=
|
||||
github.com/efficientgo/tools/core v0.0.0-20210201220623-8118984754c2/go.mod h1:cFZoHUhKg31xkPnPjhPKFtevnx0Xcg67ptBRxbpaxtk=
|
||||
github.com/efficientgo/tools/core v0.0.0-20220225185207-fe763185946b h1:ZHiD4/yE4idlbqvAO6iYCOYRzOMRpxkW+FKasRA3tsQ=
|
||||
@@ -34,8 +29,6 @@ github.com/google/renameio v1.0.1/go.mod h1:t/HQoYBZSsWSNK35C6CO/TpPLDVWvxOHboWU
|
||||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
||||
github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=
|
||||
github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
||||
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
|
||||
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
|
||||
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
|
||||
@@ -56,13 +49,8 @@ github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD
|
||||
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
|
||||
github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU=
|
||||
github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM=
|
||||
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
|
||||
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
|
||||
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
|
||||
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
@@ -76,8 +64,6 @@ golang.org/x/mod v0.5.1 h1:OJxoQ/rynoF0dcCdI7cLPktw/hR2cueqYfjm43oqK38=
|
||||
golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
|
||||
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
|
||||
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA=
|
||||
golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
@@ -99,8 +85,6 @@ golang.org/x/sys v0.0.0-20220330033206-e17cdc41300f h1:rlezHXNlxYWvBCzNses9Dlc7n
|
||||
golang.org/x/sys v0.0.0-20220330033206-e17cdc41300f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
|
||||
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
|
||||
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
golang.org/x/term v0.0.0-20191110171634-ad39bd3f0407 h1:5zh5atpUEdIc478E/ebrIaHLKcfVvG6dL/fGv7BcMoM=
|
||||
golang.org/x/term v0.0.0-20191110171634-ad39bd3f0407/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
||||
golang.org/x/term v0.0.0-20210916214954-140adaaadfaf/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
@@ -108,8 +92,6 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols=
|
||||
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
|
||||
golang.org/x/term v0.36.0 h1:zMPR+aF8gfksFprF/Nc/rd1wRS1EI6nDBGyWAvDzx2Q=
|
||||
golang.org/x/term v0.36.0/go.mod h1:Qu394IJq6V6dCBRgwqshf3mPF85AqzYEzofzRdZkWss=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
@@ -126,7 +108,6 @@ gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
mvdan.cc/editorconfig v0.1.1-0.20200121172147-e40951bde157/go.mod h1:Ge4atmRUYqueGppvJ7JNrtqpqokoJEFxYbP0Z+WeKS8=
|
||||
mvdan.cc/editorconfig v0.2.0/go.mod h1:lvnnD3BNdBYkhq+B4uBuFFKatfp02eB6HixDvEz91C0=
|
||||
mvdan.cc/sh/v3 v3.2.4 h1:+fZaWcXWRjYAvqzEKoDhDM3DkxdDUykU2iw0VMKFe9s=
|
||||
@@ -135,5 +116,3 @@ mvdan.cc/sh/v3 v3.4.3 h1:zbuKH7YH9cqU6PGajhFFXZY7dhPXcDr55iN/cUAqpuw=
|
||||
mvdan.cc/sh/v3 v3.4.3/go.mod h1:p/tqPPI4Epfk2rICAe2RoaNd8HBSJ8t9Y2DA9yQlbzY=
|
||||
mvdan.cc/sh/v3 v3.7.0 h1:lSTjdP/1xsddtaKfGg7Myu7DnlHItd3/M2tomOcNNBg=
|
||||
mvdan.cc/sh/v3 v3.7.0/go.mod h1:K2gwkaesF/D7av7Kxl0HbF5kGOd2ArupNTX3X44+8l8=
|
||||
mvdan.cc/sh/v3 v3.12.0 h1:ejKUR7ONP5bb+UGHGEG/k9V5+pRVIyD+LsZz7o8KHrI=
|
||||
mvdan.cc/sh/v3 v3.12.0/go.mod h1:Se6Cj17eYSn+sNooLZiEUnNNmNxg0imoYlTu4CyaGyg=
|
||||
@@ -1,5 +1,5 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.22.0
|
||||
go 1.21.4
|
||||
|
||||
require golang.org/x/vuln v1.1.4 // cmd/govulncheck
|
||||
require golang.org/x/vuln v1.0.1 // cmd/govulncheck
|
||||
@@ -1,22 +1,10 @@
|
||||
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
|
||||
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4=
|
||||
golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
|
||||
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
|
||||
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
|
||||
golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
|
||||
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
|
||||
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
|
||||
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/telemetry v0.0.0-20240522233618-39ace7a40ae7 h1:FemxDzfMUcK2f3YY4H+05K9CDzbSVr2+q/JKN45pey0=
|
||||
golang.org/x/telemetry v0.0.0-20240522233618-39ace7a40ae7/go.mod h1:pRgIJT+bRLFKnoM1ldnzKoxTIn14Yxz928LQRYYgIN0=
|
||||
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 h1:Vve/L0v7CXXuxUmaMGIEK/dEeq7uiqb5qBgQrZzIE7E=
|
||||
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM=
|
||||
golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE=
|
||||
golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588=
|
||||
golang.org/x/vuln v1.0.1 h1:KUas02EjQK5LTuIx1OylBQdKKZ9jeugs+HiqO5HormU=
|
||||
golang.org/x/vuln v1.0.1/go.mod h1:bb2hMwln/tqxg32BNY4CcxHWtHXuYa3SbIBmtsyjxtM=
|
||||
golang.org/x/vuln v1.1.4 h1:Ju8QsuyhX3Hk8ma3CesTbO8vfJD9EvUBgHvkxHBzj0I=
|
||||
golang.org/x/vuln v1.1.4/go.mod h1:F+45wmU18ym/ca5PLTPLsSzr2KppzswxPP603ldA67s=
|
||||
+1
-1
@@ -4,4 +4,4 @@ go 1.24
|
||||
|
||||
toolchain go1.24.0
|
||||
|
||||
require github.com/vektra/mockery/v2 v2.53.5
|
||||
require github.com/vektra/mockery/v2 v2.52.3
|
||||
@@ -67,8 +67,6 @@ github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8
|
||||
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=
|
||||
github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
|
||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
@@ -214,8 +212,6 @@ github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU=
|
||||
github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA=
|
||||
github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI=
|
||||
github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg=
|
||||
github.com/spf13/viper v1.20.0 h1:zrxIyR3RQIOsarIrgL8+sAvALXul9jeEPa06Y0Ph6vY=
|
||||
github.com/spf13/viper v1.20.0/go.mod h1:P9Mdzt1zoHIG8m2eZQinpiBjo6kCmZSKBClNNqjJvu4=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
|
||||
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
|
||||
@@ -238,8 +234,6 @@ github.com/vektra/mockery/v2 v2.43.2 h1:OdivAsQL/uoQ55UnTt25tliRI8kaj5j6caHk9xaA
|
||||
github.com/vektra/mockery/v2 v2.43.2/go.mod h1:XNTE9RIu3deGAGQRVjP1VZxGpQNm0YedZx4oDs3prr8=
|
||||
github.com/vektra/mockery/v2 v2.52.3 h1:lInrh+OuJu3dY/UPFvdFmJ/lsscEnUFrTmagcRJKoWU=
|
||||
github.com/vektra/mockery/v2 v2.52.3/go.mod h1:zGDY/f6bip0Yh13GQ5j7xa43fuEoYBa4ICHEaihisHw=
|
||||
github.com/vektra/mockery/v2 v2.53.5 h1:iktAY68pNiMvLoHxKqlSNSv/1py0QF/17UGrrAMYDI8=
|
||||
github.com/vektra/mockery/v2 v2.53.5/go.mod h1:hIFFb3CvzPdDJJiU7J4zLRblUMv7OuezWsHPmswriwo=
|
||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.10. DO NOT EDIT.
|
||||
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.9. DO NOT EDIT.
|
||||
# All tools are designed to be build inside $GOBIN.
|
||||
# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk.
|
||||
GOBIN=${GOBIN:=$(go env GOBIN)}
|
||||
@@ -8,7 +8,7 @@ if [ -z "$GOBIN" ]; then
|
||||
fi
|
||||
|
||||
|
||||
BINGO="${GOBIN}/bingo-v0.10.0"
|
||||
BINGO="${GOBIN}/bingo-v0.9.0"
|
||||
|
||||
BUF="${GOBIN}/buf-v1.39.0"
|
||||
|
||||
@@ -20,9 +20,9 @@ GO_LICENSES="${GOBIN}/go-licenses-v1.5.0"
|
||||
|
||||
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.64.6"
|
||||
|
||||
GOVULNCHECK="${GOBIN}/govulncheck-v1.1.4"
|
||||
GOVULNCHECK="${GOBIN}/govulncheck-v1.0.1"
|
||||
|
||||
MOCKERY="${GOBIN}/mockery-v2.53.5"
|
||||
MOCKERY="${GOBIN}/mockery-v2.52.3"
|
||||
|
||||
PIGEON="${GOBIN}/pigeon-v1.2.1"
|
||||
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=39d6215da6daa184cd2365966915a659bdbd2c8b
|
||||
WEB_BRANCH=stable-12.3
|
||||
WEB_COMMITID=cbb93f50eead9ea82dc9e0aaba07b3e7c1a2edf8
|
||||
WEB_BRANCH=stable-12.1
|
||||
+63
-183
@@ -5,11 +5,11 @@
|
||||
# NOTE: need to be updated if new production releases are determined
|
||||
# - follow semver
|
||||
# - omit 'v' prefix
|
||||
PRODUCTION_RELEASE_TAGS = ["5.0", "7", "8"]
|
||||
PRODUCTION_RELEASE_TAGS = ["5.0", "7"]
|
||||
|
||||
# images
|
||||
ALPINE_GIT = "alpine/git:latest"
|
||||
APACHE_TIKA = "apache/tika:3.2.2.0-full"
|
||||
APACHE_TIKA = "apache/tika:2.8.0.0"
|
||||
CHKO_DOCKER_PUSHRM = "chko/docker-pushrm:1"
|
||||
COLLABORA_CODE = "collabora/code:24.04.5.1.1"
|
||||
AXLLENT_MAILPIT = "axllent/mailpit:v1.22.3"
|
||||
@@ -19,7 +19,7 @@ OC_CI_BAZEL_BUILDIFIER = "owncloudci/bazel-buildifier:latest"
|
||||
OC_CI_CLAMAVD = "owncloudci/clamavd"
|
||||
OC_CI_DRONE_ANSIBLE = "owncloudci/drone-ansible:latest"
|
||||
OC_CI_DRONE_SKIP_PIPELINE = "owncloudci/drone-skip-pipeline"
|
||||
OC_CI_GOLANG = "owncloudci/golang:1.25"
|
||||
OC_CI_GOLANG = "owncloudci/golang:1.24"
|
||||
OC_CI_NODEJS = "owncloudci/nodejs:%s"
|
||||
OC_CI_PHP = "owncloudci/php:%s"
|
||||
OC_CI_WAIT_FOR = "owncloudci/wait-for:latest"
|
||||
@@ -33,22 +33,19 @@ PLUGINS_GH_PAGES = "plugins/gh-pages:1"
|
||||
PLUGINS_GITHUB_RELEASE = "plugins/github-release:1"
|
||||
PLUGINS_GIT_ACTION = "plugins/git-action:1"
|
||||
PLUGINS_MANIFEST = "plugins/manifest:1"
|
||||
|
||||
# 1.4.0 is required due to minio compatibility
|
||||
PLUGINS_S3 = "plugins/s3:1.4.0"
|
||||
PLUGINS_S3 = "plugins/s3:1"
|
||||
PLUGINS_S3_CACHE = "plugins/s3-cache:1"
|
||||
REDIS = "redis:6-alpine"
|
||||
SONARSOURCE_SONAR_SCANNER_CLI = "sonarsource/sonar-scanner-cli:11.0"
|
||||
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"
|
||||
|
||||
# the hugo version needs to be the same as in owncloud.github.io
|
||||
OC_CI_HUGO_STATIC_IMAGE = "hugomods/hugo:base-0.129.0"
|
||||
|
||||
DEFAULT_PHP_VERSION = "8.4"
|
||||
DEFAULT_NODEJS_VERSION = "24"
|
||||
DEFAULT_NODEJS_VERSION = "22"
|
||||
|
||||
dirs = {
|
||||
"base": "/drone/src",
|
||||
@@ -70,7 +67,7 @@ dirs = {
|
||||
OCIS_SERVER_NAME = "ocis-server"
|
||||
OCIS_URL = "https://%s:9200" % OCIS_SERVER_NAME
|
||||
OCIS_DOMAIN = "%s:9200" % OCIS_SERVER_NAME
|
||||
FED_OCIS_SERVER_NAME = "federation-%s" % OCIS_SERVER_NAME
|
||||
FED_OCIS_SERVER_NAME = "federation-ocis-server"
|
||||
OCIS_FED_URL = "https://%s:10200" % FED_OCIS_SERVER_NAME
|
||||
OCIS_FED_DOMAIN = "%s:10200" % FED_OCIS_SERVER_NAME
|
||||
|
||||
@@ -111,7 +108,7 @@ config = {
|
||||
"apiCors",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
"emailNeeded": True,
|
||||
"extraEnvironment": {
|
||||
"EMAIL_HOST": EMAIL_SMTP_HOST,
|
||||
@@ -131,7 +128,7 @@ config = {
|
||||
"apiGraphUser",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
"k8s": True,
|
||||
},
|
||||
"spaces": {
|
||||
@@ -164,9 +161,10 @@ config = {
|
||||
"apiSearch1",
|
||||
"apiGraph",
|
||||
"apiGraphGroup",
|
||||
"apiServiceAvailability",
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"k8s": False,
|
||||
},
|
||||
"search2": {
|
||||
"suites": [
|
||||
@@ -175,7 +173,7 @@ config = {
|
||||
],
|
||||
"tikaNeeded": True,
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"k8s": False,
|
||||
},
|
||||
"sharingNg1": {
|
||||
"suites": [
|
||||
@@ -184,7 +182,7 @@ config = {
|
||||
"apiSharingNgPermissions",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
"k8s": True,
|
||||
},
|
||||
"sharingNgAdditionalShareRole": {
|
||||
@@ -193,7 +191,7 @@ config = {
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
},
|
||||
"sharingNgShareInvitation": {
|
||||
"suites": [
|
||||
@@ -201,7 +199,7 @@ config = {
|
||||
"apiSharingNgItemInvitation",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
},
|
||||
"sharingNgLinkShare": {
|
||||
"suites": [
|
||||
@@ -210,31 +208,29 @@ config = {
|
||||
"apiSharingNgLinkShareManagement",
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
},
|
||||
"antivirus": {
|
||||
"suites": [
|
||||
"apiAntivirus",
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"antivirusNeeded": True,
|
||||
"extraServerEnvironment": {
|
||||
"ANTIVIRUS_SCANNER_TYPE": "clamav",
|
||||
"ANTIVIRUS_CLAMAV_SOCKET": "tcp://clamav:3310",
|
||||
"POSTPROCESSING_STEPS": "virusscan",
|
||||
"OCIS_ADD_RUN_SERVICES": "antivirus",
|
||||
"ANTIVIRUS_DEBUG_ADDR": "0.0.0.0:9277",
|
||||
"ANTIVIRUS_DEBUG_ADDR": "0.0.0.0:9297",
|
||||
},
|
||||
},
|
||||
"ocm": {
|
||||
"ocmAndAuthApp": {
|
||||
"suites": [
|
||||
"apiOcm",
|
||||
"apiServiceAvailability",
|
||||
"apiAuthApp",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
"federationServer": True,
|
||||
"emailNeeded": True,
|
||||
"extraEnvironment": {
|
||||
@@ -242,7 +238,7 @@ config = {
|
||||
"EMAIL_PORT": EMAIL_PORT,
|
||||
},
|
||||
"extraServerEnvironment": {
|
||||
"OCIS_ADD_RUN_SERVICES": "ocm,notifications",
|
||||
"OCIS_ADD_RUN_SERVICES": "ocm,notifications,auth-app",
|
||||
"OCIS_ENABLE_OCM": True,
|
||||
"OCM_OCM_INVITE_MANAGER_INSECURE": True,
|
||||
"OCM_OCM_SHARE_PROVIDER_INSECURE": True,
|
||||
@@ -253,17 +249,7 @@ config = {
|
||||
"NOTIFICATIONS_SMTP_PORT": EMAIL_SMTP_PORT,
|
||||
"NOTIFICATIONS_SMTP_INSECURE": "true",
|
||||
"NOTIFICATIONS_SMTP_SENDER": EMAIL_SMTP_SENDER,
|
||||
},
|
||||
},
|
||||
"authApp": {
|
||||
"suites": [
|
||||
"apiAuthApp",
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"withRemotePhp": [False],
|
||||
"extraServerEnvironment": {
|
||||
"OCIS_ADD_RUN_SERVICES": "auth-app",
|
||||
# auth-app
|
||||
"PROXY_ENABLE_APP_AUTH": True,
|
||||
},
|
||||
},
|
||||
@@ -272,7 +258,7 @@ config = {
|
||||
"apiCollaboration",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
"collaborationServiceNeeded": True,
|
||||
"extraServerEnvironment": {
|
||||
"GATEWAY_GRPC_ADDR": "0.0.0.0:9142",
|
||||
@@ -283,7 +269,7 @@ config = {
|
||||
"cliCommands",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
"antivirusNeeded": True,
|
||||
"emailNeeded": True,
|
||||
"extraEnvironment": {
|
||||
@@ -312,8 +298,7 @@ config = {
|
||||
"coreApiVersions",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"k8s": True,
|
||||
"withRemotePhp": [True],
|
||||
},
|
||||
"2": {
|
||||
"suites": [
|
||||
@@ -322,7 +307,7 @@ config = {
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
},
|
||||
"3": {
|
||||
"suites": [
|
||||
@@ -330,8 +315,7 @@ config = {
|
||||
"coreApiSharePublicLink2",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [False],
|
||||
"k8s": True,
|
||||
"withRemotePhp": [True],
|
||||
},
|
||||
"4": {
|
||||
"suites": [
|
||||
@@ -344,7 +328,7 @@ config = {
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
"withRemotePhp": [False],
|
||||
"withRemotePhp": [True],
|
||||
},
|
||||
"5": {
|
||||
"suites": [
|
||||
@@ -379,14 +363,13 @@ config = {
|
||||
"coreApiWebdavUploadTUS",
|
||||
],
|
||||
"skip": False,
|
||||
"k8s": True,
|
||||
},
|
||||
},
|
||||
"e2eTests": {
|
||||
"part": {
|
||||
"skip": False,
|
||||
"totalParts": 4, # divide and run all suites in parts (divide pipelines)
|
||||
"xsuites": ["search", "app-provider", "ocm", "keycloak"], # suites to skip
|
||||
"xsuites": ["search", "app-provider", "oidc", "ocm", "keycloak"], # suites to skip
|
||||
},
|
||||
"search": {
|
||||
"skip": False,
|
||||
@@ -897,15 +880,12 @@ def uploadScanResults(ctx):
|
||||
},
|
||||
{
|
||||
"name": "codacy",
|
||||
"image": "codacy/codacy-coverage-reporter:latest",
|
||||
"environment": {
|
||||
"CODACY_PROJECT_TOKEN": {
|
||||
"image": PLUGINS_CODACY,
|
||||
"settings": {
|
||||
"token": {
|
||||
"from_secret": "codacy_token",
|
||||
},
|
||||
},
|
||||
"commands": [
|
||||
"/app/codacy-coverage-reporter report --force-coverage-parser go -r cache/coverage/coverage.out",
|
||||
],
|
||||
},
|
||||
{
|
||||
"name": "sonarcloud",
|
||||
@@ -1082,9 +1062,9 @@ def codestyle(ctx):
|
||||
def localApiTestPipeline(ctx):
|
||||
pipelines = []
|
||||
|
||||
with_remote_php = [False]
|
||||
with_remote_php = [True]
|
||||
if ctx.build.event == "cron" or "full-ci" in ctx.build.title.lower():
|
||||
with_remote_php.append(True)
|
||||
with_remote_php.append(False)
|
||||
|
||||
defaults = {
|
||||
"suites": {},
|
||||
@@ -1118,7 +1098,7 @@ def localApiTestPipeline(ctx):
|
||||
pipeline = {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"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 ""),
|
||||
"name": "%s-%s%s" % ("CLI" if name.startswith("cli") else "API", name, "-withoutRemotePhp" if not run_with_remote_php else ""),
|
||||
"platform": {
|
||||
"os": "linux",
|
||||
"arch": "amd64",
|
||||
@@ -1127,19 +1107,19 @@ def localApiTestPipeline(ctx):
|
||||
([] 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 []) +
|
||||
(waitK3sCluster() + 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"] else []) +
|
||||
(waitForEmailService() if params["emailNeeded"] 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": (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 []),
|
||||
"services": (emailService() if params["emailNeeded"] else []) +
|
||||
(clamavService() if params["antivirusNeeded"] else []) +
|
||||
((fakeOffice() + collaboraService() + onlyofficeService()) if params["collaborationServiceNeeded"] else []) +
|
||||
(k3sCluster() if run_on_k8s else []),
|
||||
"depends_on": getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
@@ -1382,9 +1362,9 @@ def wopiValidatorTests(ctx, storage, wopiServerType):
|
||||
def coreApiTestPipeline(ctx):
|
||||
pipelines = []
|
||||
|
||||
with_remote_php = [False]
|
||||
with_remote_php = [True]
|
||||
if ctx.build.event == "cron" or "full-ci" in ctx.build.title.lower():
|
||||
with_remote_php.append(True)
|
||||
with_remote_php.append(False)
|
||||
|
||||
defaults = {
|
||||
"suites": {},
|
||||
@@ -1419,7 +1399,7 @@ def coreApiTestPipeline(ctx):
|
||||
pipeline = {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "Core-API-%s%s%s" % (name, "-withRemotePhp" if run_with_remote_php else "", "-k8s" if run_on_k8s else ""),
|
||||
"name": "Core-API-%s%s" % (name, "-withoutRemotePhp" if not run_with_remote_php else ""),
|
||||
"platform": {
|
||||
"os": "linux",
|
||||
"arch": "amd64",
|
||||
@@ -1429,7 +1409,7 @@ def coreApiTestPipeline(ctx):
|
||||
(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]))) +
|
||||
(waitK3sCluster() + 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",
|
||||
@@ -1542,7 +1522,6 @@ def e2eTestPipeline(ctx):
|
||||
"HEADLESS": "true",
|
||||
"RETRY": "1",
|
||||
"REPORT_TRACING": "with-tracing" in ctx.build.title.lower(),
|
||||
"SKIP_A11Y_TESTS": "true",
|
||||
}
|
||||
|
||||
# configs to setup ocis with keycloak
|
||||
@@ -1729,7 +1708,6 @@ def multiServiceE2ePipeline(ctx):
|
||||
"BASE_URL_OCIS": OCIS_DOMAIN,
|
||||
"HEADLESS": "true",
|
||||
"RETRY": "1",
|
||||
"SKIP_A11Y_TESTS": "true",
|
||||
},
|
||||
"commands": [
|
||||
"cd %s/tests/e2e" % dirs["web"],
|
||||
@@ -2473,7 +2451,7 @@ def documentation():
|
||||
},
|
||||
"pages_directory": "docs/hugo/content/",
|
||||
"copy_contents": "true",
|
||||
"target_branch": "docs-stable-8.0",
|
||||
"target_branch": "docs",
|
||||
"delete": "true",
|
||||
},
|
||||
"when": {
|
||||
@@ -2757,7 +2735,7 @@ def build():
|
||||
"name": "build",
|
||||
"image": OC_CI_GOLANG,
|
||||
"commands": [
|
||||
"retry -t 3 'make -C ocis build ENABLE_VIPS=true'",
|
||||
"retry -t 3 'make -C ocis build'",
|
||||
],
|
||||
"environment": DRONE_HTTP_PROXY_ENV,
|
||||
"volumes": [stepVolumeGo],
|
||||
@@ -2770,7 +2748,7 @@ def buildDebug():
|
||||
"name": "build debug binary",
|
||||
"image": OC_CI_GOLANG,
|
||||
"commands": [
|
||||
"retry -t 3 'make -C ocis build-debug ENABLE_VIPS=true'",
|
||||
"retry -t 3 'make -C ocis build-debug'",
|
||||
],
|
||||
"environment": DRONE_HTTP_PROXY_ENV,
|
||||
"volumes": [stepVolumeGo],
|
||||
@@ -3794,7 +3772,7 @@ def trivyScan(ctx):
|
||||
def k3sCluster():
|
||||
return [{
|
||||
"name": OCIS_SERVER_NAME,
|
||||
"image": K3D_IMAGE,
|
||||
"image": "ghcr.io/k3d-io/k3d:5-dind",
|
||||
"user": "root",
|
||||
"privileged": True,
|
||||
"commands": [
|
||||
@@ -3803,7 +3781,7 @@ def k3sCluster():
|
||||
"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' " +
|
||||
"-p '80:80@loadbalancer' -p '443:443@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",
|
||||
@@ -3812,7 +3790,7 @@ def k3sCluster():
|
||||
"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 " +
|
||||
"kubectl create configmap coredns-custom --namespace 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
|
||||
@@ -3823,7 +3801,7 @@ def k3sCluster():
|
||||
def waitK3sCluster():
|
||||
return [{
|
||||
"name": "wait-cluster",
|
||||
"image": K3D_IMAGE,
|
||||
"image": "docker.io/bitnami/kubectl:1.31",
|
||||
"user": "root",
|
||||
"commands": [
|
||||
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}.yaml",
|
||||
@@ -3833,69 +3811,20 @@ def waitK3sCluster():
|
||||
],
|
||||
}]
|
||||
|
||||
def prepareOcisDeployment():
|
||||
commands = [
|
||||
"make -C %s build" % dirs["ocisWrapper"],
|
||||
"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": "owncloudci/golang:1.25",
|
||||
"commands": commands,
|
||||
"volumes": [
|
||||
{
|
||||
"name": "gopath",
|
||||
"path": "/go",
|
||||
},
|
||||
],
|
||||
}]
|
||||
|
||||
def setupOcisConfigMaps():
|
||||
commands = [
|
||||
"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": "setup-configmaps",
|
||||
"image": K3D_IMAGE,
|
||||
"user": "root",
|
||||
"commands": commands,
|
||||
}]
|
||||
|
||||
def deployOcis():
|
||||
return [{
|
||||
"name": "deploy-ocis",
|
||||
"image": "owncloudci/golang:1.25",
|
||||
"image": "owncloudci/golang:latest",
|
||||
"commands": [
|
||||
"export KUBECONFIG=%s/kubeconfig-$${DRONE_BUILD_NUMBER}.yaml" % dirs["base"],
|
||||
"make -C %s build" % dirs["ocisWrapper"],
|
||||
"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: PROXY_HTTP_ADDR/i\\\\ - name: PROXY_ENABLE_BASIC_AUTH\\\n value: \"true\"' ./charts/ocis/templates/proxy/deployment.yaml",
|
||||
"export KUBECONFIG=%s/kubeconfig-$${DRONE_BUILD_NUMBER}.yaml" % dirs["base"],
|
||||
"make helm-install-atomic",
|
||||
],
|
||||
"volumes": [
|
||||
@@ -3906,64 +3835,17 @@ def deployOcis():
|
||||
],
|
||||
}]
|
||||
|
||||
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,
|
||||
"image": "ghcr.io/k3d-io/k3d:5-dind",
|
||||
"user": "root",
|
||||
"commands": [
|
||||
"export KUBECONFIG=kubeconfig-$${DRONE_BUILD_NUMBER}.yaml",
|
||||
"until test -f $${KUBECONFIG}; do sleep 1s; done",
|
||||
"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),
|
||||
"%s/bin/ociswrapper serve --url https://ocis-server --admin-username admin --admin-password admin --skip-ocis-run" % dirs["ocisWrapper"],
|
||||
],
|
||||
"detach": True,
|
||||
}]
|
||||
@@ -3986,8 +3868,6 @@ def tikaServiceK8s():
|
||||
"type": "docker",
|
||||
"image": OC_CI_ALPINE,
|
||||
"commands": [
|
||||
"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"],
|
||||
],
|
||||
}]
|
||||
@@ -12,11 +12,3 @@ updates:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
- package-ecosystem: "docker"
|
||||
directories:
|
||||
- "/"
|
||||
- "/ocis/docker"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 2
|
||||
|
||||
@@ -55,7 +55,8 @@ branches:
|
||||
require_code_owner_reviews: false
|
||||
required_status_checks:
|
||||
strict: false
|
||||
contexts: []
|
||||
contexts:
|
||||
- continuous-integration/drone/pr
|
||||
enforce_admins: null
|
||||
restrictions:
|
||||
apps: []
|
||||
@@ -73,7 +74,8 @@ branches:
|
||||
require_code_owner_reviews: false
|
||||
required_status_checks:
|
||||
strict: false
|
||||
contexts: []
|
||||
contexts:
|
||||
- continuous-integration/drone/pr
|
||||
enforce_admins: null
|
||||
restrictions:
|
||||
apps: []
|
||||
|
||||
@@ -1,603 +0,0 @@
|
||||
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
|
||||
@@ -1,49 +0,0 @@
|
||||
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"
|
||||
@@ -1,342 +0,0 @@
|
||||
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)"
|
||||
@@ -9,8 +9,7 @@ on:
|
||||
type: boolean
|
||||
schedule:
|
||||
- cron: "0 0 * * *" # Everday at midnight
|
||||
permissions:
|
||||
contents: write
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
remove-stale-branches:
|
||||
|
||||
@@ -62,5 +62,3 @@ go.work
|
||||
go.work.sum
|
||||
.env
|
||||
.envrc
|
||||
CLAUDE.md
|
||||
.claude/
|
||||
+5
-4
@@ -3,9 +3,6 @@ IMPORT := ($OCIS_REPO)/$(NAME)
|
||||
BIN := bin
|
||||
DIST := dist
|
||||
|
||||
# Enable automatic toolchain downloads to match go.mod requirements
|
||||
export GOTOOLCHAIN := auto
|
||||
|
||||
ifeq ($(OS), Windows_NT)
|
||||
EXECUTABLE := $(NAME).exe
|
||||
UNAME := Windows
|
||||
@@ -29,7 +26,11 @@ ifndef OUTPUT
|
||||
endif
|
||||
|
||||
ifndef VERSION
|
||||
STRING ?= $(shell git rev-parse --short HEAD)
|
||||
ifneq ($(DRONE_TAG),)
|
||||
VERSION ?= $(subst v,,$(DRONE_TAG))
|
||||
else
|
||||
STRING ?= $(shell git rev-parse --short HEAD)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef DATE
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
scan:
|
||||
skip-files:
|
||||
- vendor/github.com/crewjam/saml/xmlenc/fuzz.go
|
||||
@@ -1,6 +0,0 @@
|
||||
# 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
|
||||
+29
-914
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -38,7 +38,7 @@ For simplicity reasons, this document mostly refers to the ownCloud [Infinite Sc
|
||||
|
||||
For general questions, please refer to [ownCloud's FAQs](https://owncloud.com/faq/) or ask on the [ownCloud Central Server](https://central.owncloud.org/).
|
||||
|
||||
We also have a [Matrix channel](https://matrix.to/#/#ocis:matrix.org) to answer your questions specifically about ownCloud Infinite Scale.
|
||||
We also have a [Rocket Chat Server](https://talk.owncloud.com/channel/ocis) to answer your questions specifically about ownCloud Infinite Scale.
|
||||
|
||||
## What should I know before I get started
|
||||
|
||||
|
||||
+5
-6
@@ -14,25 +14,24 @@
|
||||
# is a lot faster than the build steps below.
|
||||
|
||||
|
||||
FROM owncloudci/nodejs:24 AS generate
|
||||
FROM owncloudci/nodejs:18 AS generate
|
||||
|
||||
COPY ./ /ocis/
|
||||
|
||||
WORKDIR /ocis/ocis
|
||||
RUN make ci-node-generate
|
||||
|
||||
FROM owncloudci/golang:1.25 AS build
|
||||
FROM owncloudci/golang:1.24 AS build
|
||||
|
||||
COPY --from=generate /ocis /ocis
|
||||
|
||||
WORKDIR /ocis/ocis
|
||||
RUN make ci-go-generate build ENABLE_VIPS=true
|
||||
|
||||
FROM alpine:3.23.3
|
||||
FROM alpine:3.20
|
||||
|
||||
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
|
||||
RUN apk add --no-cache attr ca-certificates curl mailcap tree vips && \
|
||||
echo 'hosts: files dns' >| /etc/nsswitch.conf
|
||||
|
||||
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
|
||||
org.label-schema.name="ownCloud Infinite Scale" \
|
||||
|
||||
@@ -326,17 +326,6 @@ 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
|
||||
@@ -344,7 +333,7 @@ changelog-csv: $(CALENS)
|
||||
|
||||
.PHONY: govulncheck
|
||||
govulncheck: $(GOVULNCHECK)
|
||||
scripts/govulncheck-wrapper.sh $(GOVULNCHECK)
|
||||
$(GOVULNCHECK) ./...
|
||||
|
||||
.PHONY: l10n-push
|
||||
l10n-push:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# ownCloud Infinite Scale
|
||||
|
||||
[](https://app.element.io/#/room/#ocis:matrix.org)
|
||||
[](https://talk.owncloud.com/channel/infinitescale)
|
||||
[](https://drone.owncloud.com/owncloud/ocis)
|
||||
[](https://sonarcloud.io/dashboard?id=owncloud_ocis)
|
||||
[](https://sonarcloud.io/dashboard?id=owncloud_ocis)
|
||||
@@ -10,25 +11,23 @@
|
||||
[](https://hub.docker.com/r/owncloud/ocis)
|
||||
[](https://opensource.org/licenses/Apache-2.0)
|
||||
|
||||
- [ownCloud Infinite Scale](#owncloud-infinite-scale)
|
||||
- [Introduction](#introduction)
|
||||
- [Quickstart](#quickstart)
|
||||
- [Overview](#overview)
|
||||
- [Clients](#clients)
|
||||
- [Web Office Applications](#web-office-applications)
|
||||
- [Authentication](#authentication)
|
||||
- [Installation](#installation)
|
||||
- [Important Readings](#important-readings)
|
||||
- [Run ownCloud Infinite Scale](#run-owncloud-infinite-scale)
|
||||
- [Use the Official Documentation](#use-the-official-documentation)
|
||||
- [Use the ocis Repo as Source](#use-the-ocis-repo-as-source)
|
||||
- [Documentation](#documentation)
|
||||
- [Admin Documentation](#admin-documentation)
|
||||
- [Development Documentation](#development-documentation)
|
||||
- [Security](#security)
|
||||
- [Contributing](#contributing)
|
||||
- [End User License Agreement](#end-user-license-agreement)
|
||||
- [Copyright](#copyright)
|
||||
* [Introduction](#introduction)
|
||||
* [Quickstart](#quickstart)
|
||||
* [Overview](#overview)
|
||||
* [Clients](#clients)
|
||||
* [Web Office Applications](#web-office-applications)
|
||||
* [Authentication](#authentication)
|
||||
* [Installation](#installation)
|
||||
* [Important Readings](#important-readings)
|
||||
* [Run ownCloud Infinite Scale](#run-owncloud-infinite-scale)
|
||||
* [Use the Official Documentation](#use-the-official-documentation)
|
||||
* [Use the ocis Repo as Source](#use-the-ocis-repo-as-source)
|
||||
* [Documentation](#documentation)
|
||||
* [Admin Documentation](#admin-documentation)
|
||||
* [Development Documentation](#development-documentation)
|
||||
* [Security](#security)
|
||||
* [Contributing](#contributing)
|
||||
* [Copyright](#copyright)
|
||||
|
||||
## Introduction
|
||||
|
||||
@@ -108,7 +107,7 @@ See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/
|
||||
|
||||
Use this method to build and run an instance with the latest code. This is only recommended for development purposes.
|
||||
|
||||
The minimum go version required is `1.25.7`.\
|
||||
The minimum go version required is `1.24`.\
|
||||
Note that you need a C compile environment installed as a prerequisite because some dependencies, like reva, have components that require C-Go libraries and toolchains. The command installing for debian based systems is: `sudo apt install build-essential`.
|
||||
|
||||
To build and run a local instance with demo users:
|
||||
@@ -132,7 +131,7 @@ make -C ocis build
|
||||
# run with demo users
|
||||
IDM_CREATE_DEMO_USERS=true ./ocis/bin/ocis server
|
||||
|
||||
# Open your browser on http://localhost:9200 to access the bundled web-ui
|
||||
# Open your browser on http://localhost:9200 to access the bundled web-ui
|
||||
```
|
||||
|
||||
All batteries included: no external database, no external IDP needed!
|
||||
@@ -152,7 +151,7 @@ If you find a security issue, please contact [security@owncloud.com](mailto:secu
|
||||
|
||||
## Contributing
|
||||
|
||||
We are _very_ happy that oCIS does not require a Contributor License Agreement (CLA) as it is [Apache 2.0 licensed](LICENSE). We hope this will make it easier to contribute code. If you want to get in touch, most of the developers hang out in our [matrix channel](https://app.element.io/#/room/#ocis:matrix.org) or reach out to the [ownCloud central forum](https://central.owncloud.org/).
|
||||
We are _very_ happy that oCIS does not require a Contributor License Agreement (CLA) as it is [Apache 2.0 licensed](LICENSE). We hope this will make it easier to contribute code. If you want to get in touch, most of the developers hang out in our [matrix channel](https://app.element.io/#/room/#ocis:matrix.org), our [rocket chat channel](https://talk.owncloud.com/channel/infinitescale) or reach out to the [ownCloud central forum](https://central.owncloud.org/).
|
||||
|
||||
Infinite Scale is carefully internationalized so that everyone, no matter what language they speak, has a great experience. To achieve this, we rely on the help of volunteer translators. If you want to help, you can find the projects behind the following links:
|
||||
[Transifex for ownCloud web](https://app.transifex.com/owncloud-org/owncloud-web/translate/) and [Transifex for ownCloud](https://app.transifex.com/owncloud-org/owncloud/translate/) (Select the resource by filtering for `ocis-`).
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Enhancement: Use default upload protocol instead of explicitly disabling tus
|
||||
Enhancement: Use a default protocol parameter 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.
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Bump Web to 12.1.1
|
||||
|
||||
This version contains only updated translations.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11726
|
||||
https://github.com/owncloud/web/releases/tag/v12.1.1
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Bump Web to v12.1.2
|
||||
|
||||
- Bugfix [owncloud/web#13213](https://github.com/owncloud/web/pull/13213): Do not disable sharing of resources when managing spaces via claims
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11836
|
||||
https://github.com/owncloud/web/releases/tag/v12.1.2
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Add CLI to clean orphned grants
|
||||
|
||||
Add CLI `ocis shares clean-orphaned-grants` to find and optionally remove storage grants without corresponding share-manager entries.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11804
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Add CLI to move stuck uploads
|
||||
|
||||
In some cases of saturated disk usage ocis metadata may get stuck. This command relieves this case.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11762
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Add users instances
|
||||
|
||||
The user endpoint now returns the instances that the user is either a member or a guest of and the cross instance reference.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11925
|
||||
@@ -1,5 +0,0 @@
|
||||
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/12004
|
||||
@@ -1,5 +0,0 @@
|
||||
Change: Remove deprecated OCIS_SHOW_USER_EMAIL_IN_RESULTS
|
||||
|
||||
Deprecated OCIS_SHOW_USER_EMAIL_IN_RESULTS environment variable was removed from frontend service config. Use OCIS_USER_SEARCH_DISPLAYED_ATTRIBUTES instead to control which user attributes are displayed in search results.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11942
|
||||
@@ -1,10 +0,0 @@
|
||||
Bugfix: Replace obsolete docker image in the deployment example
|
||||
|
||||
In the ocis_ldap deployment example, we were using the bitnami/openldap docker
|
||||
image. This image isn't available any longer, so the example couldn't be
|
||||
deployed as intended.
|
||||
|
||||
We've replaced the docker image with the osixia/openldap image and we've
|
||||
adjusted some of the configuration of the openldap image.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11828
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Added a graph endpoint alias
|
||||
|
||||
We added a graph endpoint alias that uses the unified roles instead of cs3 roles
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11871
|
||||
@@ -1,12 +0,0 @@
|
||||
Enhancement: Implement brute force protection for public links
|
||||
|
||||
Public links will be protected by default, allowing up to 5 wrong password
|
||||
attempts per hour. If such rate is exceeded, the link will be blocked for
|
||||
all the users until the failure rate goes below the configured threshold
|
||||
(5 failures per hour by default, as said).
|
||||
|
||||
The failure rate is configurable, so it can be 10 failures each 2 hours
|
||||
or 3 failures per minute.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11864
|
||||
https://github.com/owncloud/reva/pull/460
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Bump Reva
|
||||
|
||||
This updates the ownCloud Reva dependency to commit `a122a9538794530267743edfd5dc67b48aa90325`.
|
||||
Changelog: https://github.com/owncloud/reva/compare/751223b32d4852c73a43388f6f55308c2065afeb...a122a9538794530267743edfd5dc67b48aa90325
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11808
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Bump Reva
|
||||
|
||||
This updates the ownCloud Reva dependency to include brute force protection for public links. The feature implements rate-limiting that blocks access to password-protected public shares after exceeding a configurable maximum number of failed authentication attempts within a time window.
|
||||
|
||||
https://github.com/owncloud/reva/pull/460
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Bump Reva
|
||||
|
||||
This updates the ownCloud Reva dependency to commit `82c22e954c1cdabb62a14fbe5c1a4ec3e1dabd45`.
|
||||
Changelog: https://github.com/owncloud/reva/compare/cb98fe521deb55ae339d6ddc4a4b60d6d4da9e14...82c22e954c1cdabb62a14fbe5c1a4ec3e1dabd45
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11748
|
||||
@@ -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/12016
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.1
|
||||
@@ -1,16 +0,0 @@
|
||||
Enhancement: Bump Web to 12.3.0
|
||||
|
||||
|
||||
Bugfix [owncloud/web#13406](https://github.com/owncloud/web/pull/13406): Prevent overlapping search content
|
||||
Bugfix [owncloud/web#13415](https://github.com/owncloud/web/pull/13415) Filter only personal trashed spaces
|
||||
Enhancement [owncloud/web#5847](https://github.com/owncloud/web/pull/5847) Dynamic theme-color meta tag based on loaded theme
|
||||
Enhancement [owncloud/web#13412](https://github.com/owncloud/web/pull/13412) Use beta endpoint for single drive operations
|
||||
Enhancement [owncloud/web#13426](https://github.com/owncloud/web/pull/13426) Add crash page
|
||||
Enhancement [owncloud/web#13426](https://github.com/owncloud/web/pull/13426)Catch spaces loading error
|
||||
Enhancement [owncloud/web#13485](https://github.com/owncloud/web/pull/13485)Drop custom share filters
|
||||
Enhancement [owncloud/web#13499](https://github.com/owncloud/web/pull/13499)Add cross-instance reference
|
||||
Enhancement [owncloud/web#13500](https://github.com/owncloud/web/pull/13500)Add instance switcher
|
||||
|
||||
|
||||
https://github.com/owncloud/web/pull/13519
|
||||
https://github.com/owncloud/web/releases/tag/v12.3.0
|
||||
@@ -1,21 +0,0 @@
|
||||
Enhancement: Bump Web to v12.2.0
|
||||
|
||||
- Bugfix [owncloud/web#13177](https://github.com/owncloud/web/pull/13177): Fix copying public link and password on Safari
|
||||
- Bugfix [owncloud/web#13198](https://github.com/owncloud/web/pull/13198): Fix incorrect translations
|
||||
- Bugfix [owncloud/web#13203](https://github.com/owncloud/web/pull/13203): Remove duplicate resource links
|
||||
- Bugfix [owncloud/web#13213](https://github.com/owncloud/web/pull/13213): Do not disable sharing of resources when managing spaces via claims
|
||||
- Bugfix [owncloud/web#13223](https://github.com/owncloud/web/pull/13223): Fix spinner loading continuously when resource is deleted
|
||||
- Bugfix [owncloud/web#13233](https://github.com/owncloud/web/pull/13233): Include Ubuntu font
|
||||
- Bugfix [owncloud/web#13253](https://github.com/owncloud/web/pull/13253): External share ID fallback
|
||||
- Bugfix [owncloud/web#13274](https://github.com/owncloud/web/pull/13274): Handle file loading error
|
||||
- Bugfix [owncloud/web#13329](https://github.com/owncloud/web/pull/13329): Use sticky header composable in deleted files
|
||||
- Enhancement [owncloud/web#13168](https://github.com/owncloud/web/pull/13168): Hide trashed spaces
|
||||
- Enhancement [owncloud/web#13169](https://github.com/owncloud/web/pull/13169): Drop beta badge from GeoGebra pinboards
|
||||
- Enhancement [owncloud/web#13172](https://github.com/owncloud/web/pull/13172): Add Excalidraw file icon
|
||||
- Enhancement [owncloud/web#13197](https://github.com/owncloud/web/pull/13197): Add Visio file icons
|
||||
- Enhancement [owncloud/web#13224](https://github.com/owncloud/web/pull/13224): Add table caption
|
||||
- Enhancement [owncloud/web#13235](https://github.com/owncloud/web/pull/13235): Use API groups search in admin settings
|
||||
- Enhancement [owncloud/web#13296](https://github.com/owncloud/web/pull/13296): Embed mode share links with password
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11834
|
||||
https://github.com/owncloud/web/releases/tag/v12.2.0
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Force Strict-Transport-Security
|
||||
|
||||
Added `PROXY_FORCE_STRICT_TRANSPORT_SECURITY` environment variable to force emission of `Strict-Transport-Security` header on all responses, including plain HTTP requests when TLS is terminated upstream. Useful when oCIS is deployed behind a proxy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11880
|
||||
@@ -1,27 +0,0 @@
|
||||
Enhancement: Add photo EXIF metadata to search index and WebDAV results
|
||||
|
||||
We've added support for photo metadata fields in the Bleve search index and
|
||||
WebDAV REPORT responses. This enables photo gallery applications to efficiently
|
||||
query photos by their EXIF metadata and display camera information.
|
||||
|
||||
The following photo metadata fields are now indexed and searchable:
|
||||
- `photo.takenDateTime` - When the photo was taken (supports date range queries)
|
||||
- `photo.cameraMake` - Camera manufacturer (e.g., Canon, Nikon, Samsung)
|
||||
- `photo.cameraModel` - Camera model name
|
||||
- `photo.fNumber` - Aperture f-stop value
|
||||
- `photo.focalLength` - Focal length in millimeters
|
||||
- `photo.iso` - ISO sensitivity
|
||||
- `photo.orientation` - Image orientation
|
||||
- `photo.exposureNumerator` - Exposure time numerator (for shutter speed calculation)
|
||||
- `photo.exposureDenominator` - Exposure time denominator (for shutter speed calculation)
|
||||
|
||||
GPS location data is also included when available:
|
||||
- `photo.location.latitude` - GPS latitude
|
||||
- `photo.location.longitude` - GPS longitude
|
||||
- `photo.location.altitude` - GPS altitude
|
||||
|
||||
These fields are returned in WebDAV search results using the `oc:photo-*`
|
||||
property namespace, allowing web extensions to build photo timeline views,
|
||||
filter by camera, or show photos on a map.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11912
|
||||
@@ -1,11 +0,0 @@
|
||||
Enhancement: Set Referrer-Policy to no-referrer
|
||||
|
||||
Change the Referrer-Policy from 'strict-origin-when-cross-origin'
|
||||
to 'no-referrer' to enhance user privacy and security.
|
||||
|
||||
Previously, the origin was sent on cross-origin requests. This change
|
||||
completely removes the Referrer header from all outgoing requests,
|
||||
preventing any potential leakage of browsing information to third parties.
|
||||
This is a more robust approach to protecting user privacy.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11722
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Support disabling editors by extensions
|
||||
|
||||
We have extended the configuration of collaboration service to support disabling editors for specific file extensions.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11750
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Introduce external shares permission
|
||||
|
||||
Introduces a permission allowing to share between instances in multi-instance ocis. This permission is by default added to the admin and space-admin role.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11931
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Support pointer types in config environment variable decoding
|
||||
|
||||
Added support for decoding pointer types (*bool, *int, *string, etc.) in the envdecode package, allowing configuration fields to distinguish between unset (nil) and explicitly set values. Changed `WEB_OPTION_EMBED_ENABLED` from string to *bool type to enable explicit false values.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11815
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix group creation in ocis-multi example
|
||||
|
||||
Group creation was not working in ocis.ocm instance
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12019
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: OCM Specification Compliance
|
||||
|
||||
OCM Specification Compliance
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11773
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
Bugfix: Remove leading dot before checking disabled extension
|
||||
|
||||
We have fixed a bug where the leading dot was not removed before checking if an extension is disabled.
|
||||
The original behavior would have caused the `COLLABORATION_WOPI_DISABLED_EXTENSIONS` config to be ignored.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11814
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix Sharingroles
|
||||
|
||||
Sharing roles were inconsistent, now they are fixed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11898
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Fix the error handling for empty name on space update
|
||||
|
||||
Fix the error handling for empty name on space update.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11933
|
||||
https://github.com/owncloud/ocis/issues/11887
|
||||
@@ -1,7 +0,0 @@
|
||||
Bugfix: Fix error code when a user can't disable a space
|
||||
|
||||
Previously, if the user couldn't disable a space due to wrong permissions, the
|
||||
request returned a 404 error code, as if the space wasn't found even though
|
||||
the space was visible. Now it will return the expected 403 error code.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11845
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Fix user light creation
|
||||
|
||||
When trying to switch a user to user light before they logged in for the first time, an error would occur.
|
||||
The server now correctly handles this case and allows switching to user light even before the first login.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11765
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Introduce claims for multi-instance-ocis
|
||||
|
||||
Reads claims from the oidc token to add users to ocis with specific roles.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11848
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Allow sharing between instances
|
||||
|
||||
In Multi-Instance ocis it is now possible to share between instances.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11893
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Relocate Transifex resources
|
||||
|
||||
The resources for services with translations are relocated in Transifex from
|
||||
owncloud to owncloud-web. Now all ocis related resources are in one project.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11889
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Update the ocis_full deployment example images
|
||||
|
||||
* Traefik 3.6.2
|
||||
* Collabora 27.4.7.3
|
||||
* OnlyOffice 9.2.0
|
||||
* Mailpit 1.28.0
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11860
|
||||
@@ -1,8 +0,0 @@
|
||||
Enhancement: Update the ocis_full deployment example images
|
||||
|
||||
|
||||
* Traefic: v3.6.6
|
||||
* Collabora: 25.04.8.1.1
|
||||
* Onlyoffice: 9.2.1.1
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11890
|
||||
@@ -1,6 +0,0 @@
|
||||
Enhancement: Update the ocis_full deployment example traefik image
|
||||
|
||||
* Traefik: 3.6.4
|
||||
* Traefik fix for Collabora
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11867
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Update the traefik image for some deployment examples
|
||||
|
||||
* Traefik: 3.6.6 --> 3.6.7
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11915
|
||||
@@ -1,5 +0,0 @@
|
||||
Enhancement: Use externalID in Provisioning API
|
||||
|
||||
This PR adds the externalID as optional parameter to the Provisioning API that can be used as the primary identifier. It also contains a switch to enable this setting.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11799
|
||||
@@ -1,8 +0,0 @@
|
||||
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
|
||||
@@ -1,6 +0,0 @@
|
||||
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
|
||||
@@ -1,6 +0,0 @@
|
||||
Bugfix: Don't use hardcoded groupOfNames in group creation
|
||||
|
||||
Formerly, when creating a group with a different objectClass, it will always use groupOfNames instead of the one provided in the config.
|
||||
Now, the server creates groups using the objectClass defined in the config.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11776
|
||||
@@ -1,6 +0,0 @@
|
||||
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,6 +0,0 @@
|
||||
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/12052
|
||||
@@ -1,7 +0,0 @@
|
||||
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,5 +0,0 @@
|
||||
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/12241
|
||||
@@ -1,8 +0,0 @@
|
||||
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
|
||||
@@ -1,8 +0,0 @@
|
||||
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
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix the internal links
|
||||
|
||||
We fixed the internal links access control
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12231
|
||||
@@ -1,5 +0,0 @@
|
||||
Bugfix: Fix OCM share permission change notification
|
||||
|
||||
Fix the OCM share permission change notification handling.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12190
|
||||
@@ -1,15 +0,0 @@
|
||||
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
|
||||
@@ -1,11 +0,0 @@
|
||||
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
|
||||
@@ -1,6 +0,0 @@
|
||||
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
|
||||
@@ -1,8 +0,0 @@
|
||||
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
|
||||
@@ -1,6 +0,0 @@
|
||||
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
|
||||
@@ -1,10 +0,0 @@
|
||||
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
|
||||
@@ -1,18 +0,0 @@
|
||||
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
|
||||
@@ -1,6 +0,0 @@
|
||||
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
|
||||
@@ -1,7 +0,0 @@
|
||||
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
|
||||
@@ -1,16 +0,0 @@
|
||||
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
|
||||
@@ -1,8 +0,0 @@
|
||||
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
|
||||
@@ -1,7 +0,0 @@
|
||||
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
|
||||
@@ -1,19 +0,0 @@
|
||||
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
|
||||
@@ -1,14 +0,0 @@
|
||||
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
|
||||
@@ -1,16 +0,0 @@
|
||||
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
|
||||
@@ -1,13 +0,0 @@
|
||||
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
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
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
|
||||
@@ -1,12 +0,0 @@
|
||||
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
|
||||
@@ -1,9 +0,0 @@
|
||||
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
|
||||
@@ -1,8 +0,0 @@
|
||||
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
|
||||
@@ -1,5 +0,0 @@
|
||||
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
|
||||
@@ -1,6 +0,0 @@
|
||||
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,13 +0,0 @@
|
||||
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
|
||||
Loaded 100 of 3870 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user