Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
34151a1012 | ||
|
|
486fa4811c | ||
|
|
bacd899092 | ||
|
|
6c1dfdc38c | ||
|
|
390614e9d0 | ||
|
|
45e2b94b5e | ||
|
|
e609fefa8c | ||
|
|
2d8841f490 | ||
|
|
00567fa575 | ||
|
|
4f7de832a8 | ||
|
|
46684067e9 | ||
|
|
dcdf6d4854 | ||
|
|
3a62b3aafc | ||
|
|
dd3989444d | ||
|
|
5ed476c35e | ||
|
|
1ed8498d7d | ||
|
|
f6a3aa694e | ||
|
|
d2d82ba95e | ||
|
|
13d3481cfb | ||
|
|
ee5da2733f | ||
|
|
720e1ee0b3 | ||
|
|
08b6313c8b | ||
|
|
0cbd7d3401 | ||
|
|
342f5eb0f1 | ||
|
|
70f4e504b6 | ||
|
|
2db76a1c4e | ||
|
|
408c41dc83 | ||
|
|
c9856ef000 | ||
|
|
63fced12a6 | ||
|
|
e76dc49698 | ||
|
|
c17c33b6d8 | ||
|
|
66e93ceaf3 | ||
|
|
fba139fdec | ||
|
|
e0dd0e4348 | ||
|
|
710bdf380a | ||
|
|
7b83f36060 | ||
|
|
2a23956a8b | ||
|
|
9269643c0e | ||
|
|
6c8fe4ebf7 | ||
|
|
037ac76d26 | ||
|
|
9faaefa83a | ||
|
|
85700efcd1 | ||
|
|
91a8c76bdb | ||
|
|
88e2780a54 | ||
|
|
60fcb2e214 | ||
|
|
c8224fd434 | ||
|
|
69433426be | ||
|
|
9015eec558 | ||
|
|
5129853267 | ||
|
|
a669541b13 | ||
|
|
c0c15f8cab | ||
|
|
2e377bde67 | ||
|
|
703bbe1113 | ||
|
|
1347e3607d | ||
|
|
9e2a79d0f2 | ||
|
|
841dd9b948 | ||
|
|
887796c36d | ||
|
|
02c52130bb | ||
|
|
76a9cb8042 | ||
|
|
b5f843e99b | ||
|
|
be21f76688 | ||
|
|
d90dfa7085 | ||
|
|
f7453530f6 | ||
|
|
29c01920f8 | ||
|
|
0ffb415e89 | ||
|
|
cc8c1c883f | ||
|
|
90d58ae47d | ||
|
|
05fe0cf8fd | ||
|
|
b9077d96d8 | ||
|
|
de0ffcc1e5 | ||
|
|
db46163971 | ||
|
|
9143307b70 | ||
|
|
fc02922968 | ||
|
|
4b35a609ea | ||
|
|
08914a21a6 | ||
|
|
c4a6948a67 | ||
|
|
17d052ee50 | ||
|
|
07a1dbf9c3 | ||
|
|
281a1f1b46 | ||
|
|
a3f23620cc | ||
|
|
ae7464d62e | ||
|
|
784c5ecc16 | ||
|
|
9056e6fd21 | ||
|
|
4402ca161b | ||
|
|
30ff89b1de | ||
|
|
6069640d49 | ||
|
|
e92060de7e | ||
|
|
a66ae6783d | ||
|
|
3fe6545ffd | ||
|
|
9f147b8329 | ||
|
|
3d2dc1a7de | ||
|
|
52891efd4e | ||
|
|
dbf40a3dcd | ||
|
|
aa047423f9 | ||
|
|
ed40259ebf | ||
|
|
2f1946e117 | ||
|
|
60b5b9eca0 | ||
|
|
4daf1331f8 | ||
|
|
87acc90e4d | ||
|
|
738b15268d | ||
|
|
dc33f20fee | ||
|
|
6c278bf2ee | ||
|
|
9e984d5ef3 | ||
|
|
018df1c0f5 | ||
|
|
6292da31c9 | ||
|
|
69b4423300 | ||
|
|
015c67e9e6 | ||
|
|
a0fd651d67 | ||
|
|
dd7c7fce58 | ||
|
|
d8983b8163 | ||
|
|
83cc6fc95e | ||
|
|
146f08513c | ||
|
|
21dd288ac4 | ||
|
|
cdad61175d | ||
|
|
951f45f54e | ||
|
|
44a46faae0 | ||
|
|
5701e03c52 | ||
|
|
12ff0e1fcf | ||
|
|
09717f094f | ||
|
|
cb7fc967a9 | ||
|
|
deaf4b6389 | ||
|
|
51eb6039b1 | ||
|
|
02c3df5503 | ||
|
|
3148d79bfa | ||
|
|
56cf1baaa2 | ||
|
|
db41580800 | ||
|
|
f6505f57c3 | ||
|
|
2e3eb33c20 | ||
|
|
80faeabaad | ||
|
|
533b0d011b | ||
|
|
5d9d80b45b | ||
|
|
a700f0cccc | ||
|
|
0642bb1514 | ||
|
|
c6a91cdbfc | ||
|
|
4712c7c619 | ||
|
|
13abed9072 | ||
|
|
26f0bef804 | ||
|
|
7349dda508 | ||
|
|
b99e8ff0a7 | ||
|
|
d54974677e | ||
|
|
e1a0f3a1b2 | ||
|
|
1ba86e6437 |
No files matched your search
@@ -77,12 +77,6 @@ $(PIGEON): $(BINGO_DIR)/pigeon.mod
|
||||
@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"
|
||||
|
||||
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"
|
||||
|
||||
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.
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
||||
|
||||
go 1.17
|
||||
|
||||
require github.com/pseudomuto/protoc-gen-doc v1.5.1 // cmd/protoc-gen-doc
|
||||
@@ -1,169 +0,0 @@
|
||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/Masterminds/semver v1.4.2 h1:WBLTQ37jOCzSLtXNdoo8bNM8876KhNqOKvrlGITgsTc=
|
||||
github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
|
||||
github.com/Masterminds/sprig v2.15.0+incompatible h1:0gSxPGWS9PAr7U2NsQ2YQg6juRDINkUyuvbb4b2Xm8w=
|
||||
github.com/Masterminds/sprig v2.15.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o=
|
||||
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
|
||||
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
|
||||
github.com/aokoli/goutils v1.0.1 h1:7fpzNGoJ3VA8qcrm++XEE1QUe0mIwNeLa02Nwq7RDkg=
|
||||
github.com/aokoli/goutils v1.0.1/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
|
||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
|
||||
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||
github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.3.0-java h1:bV5JGEB1ouEzZa0hgVDFFiClrUEuGWRaAc/3mxR2QK0=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.3.0-java/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/gogo/protobuf v1.1.1 h1:72R+M5VuhED/KujmZVcIquuo8mBgX4oVda//DQb3PXo=
|
||||
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||
github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0=
|
||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
|
||||
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/uuid v0.0.0-20161128191214-064e2069ce9c h1:jWtZjFEUE/Bz0IeIhqCnyZ3HG6KRXSntXe4SjtuTH7c=
|
||||
github.com/google/uuid v0.0.0-20161128191214-064e2069ce9c/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y=
|
||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
||||
github.com/huandu/xstrings v1.0.0 h1:pO2K/gKgKaat5LdpAhxhluX2GPQMaI3W5FUz/I/UnWk=
|
||||
github.com/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo=
|
||||
github.com/imdario/mergo v0.3.4 h1:mKkfHkZWD8dC7WxKx3N9WCF0Y+dLau45704YQmY6H94=
|
||||
github.com/imdario/mergo v0.3.4/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
|
||||
github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007 h1:28i1IjGcx8AofiB4N3q5Yls55VEaitzuEPkFJEVgGkA=
|
||||
github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo=
|
||||
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/pseudomuto/protoc-gen-doc v1.5.0 h1:pHZp0MEiT68jrZV8js8BS7E9ZEnlSLegoQbbtXj5lfo=
|
||||
github.com/pseudomuto/protoc-gen-doc v1.5.0/go.mod h1:exDTOVwqpp30eV/EDPFLZy3Pwr2sn6hBC1WIYH/UbIg=
|
||||
github.com/pseudomuto/protoc-gen-doc v1.5.1 h1:Ah259kcrio7Ix1Rhb6u8FCaOkzf9qRBqXnvAufg061w=
|
||||
github.com/pseudomuto/protoc-gen-doc v1.5.1/go.mod h1:XpMKYg6zkcpgfpCfQ8GcWBDRtRxOmMR5w7pz4Xo+dYM=
|
||||
github.com/pseudomuto/protokit v0.2.0 h1:hlnBDcy3YEDXH7kc9gV+NLaN0cDzhDvD1s7Y6FZ8RpM=
|
||||
github.com/pseudomuto/protokit v0.2.0/go.mod h1:2PdH30hxVHsup8KpBTOXTBeMVhJZVio3Q8ViKSAXT0Q=
|
||||
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
||||
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v0.0.0-20170130113145-4d4bfba8f1d1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
|
||||
golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307 h1:O5C+XK++apFo5B+Vq4ujc/LkLwHxg9fDdgjgoIikBdA=
|
||||
golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
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=
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
google.golang.org/genproto v0.0.0-20181107211654-5fc9ac540362 h1:b69RmkJsx8NyRJsKF2mQ/AF8s4BNxwNsT4rQ3wON1U0=
|
||||
google.golang.org/genproto v0.0.0-20181107211654-5fc9ac540362/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||
google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4 h1:ysnBoUyeL/H6RCvNRhWHjKoDEmguI+mPU+qHgK8qv/w=
|
||||
google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
|
||||
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
|
||||
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM=
|
||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
|
||||
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
@@ -26,8 +26,6 @@ MOCKERY="${GOBIN}/mockery-v2.53.5"
|
||||
|
||||
PIGEON="${GOBIN}/pigeon-v1.2.1"
|
||||
|
||||
PROTOC_GEN_DOC="${GOBIN}/protoc-gen-doc-v1.5.1"
|
||||
|
||||
PROTOC_GEN_GO="${GOBIN}/protoc-gen-go-v1.28.1"
|
||||
|
||||
PROTOC_GEN_MICRO="${GOBIN}/protoc-gen-micro-v1.0.0"
|
||||
|
||||
@@ -65,6 +65,8 @@ updates:
|
||||
day: sunday
|
||||
time: '22:00'
|
||||
timezone: Etc/UTC
|
||||
cooldown:
|
||||
default-days: 7
|
||||
open-pull-requests-limit: 5
|
||||
groups:
|
||||
minor-and-patch:
|
||||
|
||||
@@ -12,7 +12,7 @@ jobs:
|
||||
outputs:
|
||||
docs-only: ${{ steps.check.outputs.docs-only }}
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
@@ -56,20 +56,20 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.33.3 --activate
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -122,7 +122,7 @@ jobs:
|
||||
exit $FAILED
|
||||
|
||||
- name: Trivy scan
|
||||
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
with:
|
||||
scan-type: fs
|
||||
format: table
|
||||
@@ -141,7 +141,9 @@ jobs:
|
||||
make ci-golangci-lint > /tmp/golangci-lint.log 2>&1 & PIDS=($!)
|
||||
( ENABLE_VIPS=true make -C ocis build-debug \
|
||||
&& mv ocis/bin/ocis-debug ocis/bin/ocis ) > /tmp/ocis-build.log 2>&1 & PIDS+=($!)
|
||||
make test > /tmp/unit-tests.log 2>&1 & PIDS+=($!)
|
||||
make test > /tmp/unit-tests.log 2>&1 & PIDS+=($!)
|
||||
# vips-tagged files live only under thumbnails; scoped run, no coverprofile.
|
||||
go test -v -tags 'enable_vips' ./services/thumbnails/... > /tmp/unit-tests-vips.log 2>&1 & PIDS+=($!)
|
||||
GOWORK=off make -C tests/ociswrapper build > /tmp/ociswrapper-build.log 2>&1 & PIDS+=($!)
|
||||
|
||||
FAILED=0
|
||||
@@ -158,11 +160,12 @@ jobs:
|
||||
echo "=== ocis build ===" && cat /tmp/ocis-build.log
|
||||
echo "=== ociswrapper build ===" && cat /tmp/ociswrapper-build.log
|
||||
echo "=== unit tests ===" && cat /tmp/unit-tests.log
|
||||
echo "=== vips unit tests ===" && cat /tmp/unit-tests-vips.log
|
||||
|
||||
exit $FAILED
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
path: |
|
||||
@@ -226,9 +229,9 @@ jobs:
|
||||
- apiCollaboration
|
||||
- apiVault
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -277,7 +280,7 @@ jobs:
|
||||
'
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -291,7 +294,7 @@ jobs:
|
||||
|
||||
- name: Upload raw coverage data
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: api-coverage-${{ matrix.suite }}
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
@@ -310,9 +313,9 @@ jobs:
|
||||
suite:
|
||||
- cliCommands,apiServiceAvailability # grouped: both need ClamAV + email services
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -325,7 +328,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -339,7 +342,7 @@ jobs:
|
||||
|
||||
- name: Upload raw coverage data
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: api-coverage-cli-${{ matrix.suite }}
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
@@ -358,9 +361,9 @@ jobs:
|
||||
suite:
|
||||
- apiGraphUser,apiGraph,apiGraphGroup
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -373,7 +376,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -387,7 +390,7 @@ jobs:
|
||||
|
||||
- name: Upload raw coverage data
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: api-coverage-ldap-pool-${{ matrix.suite }}
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
@@ -414,9 +417,9 @@ jobs:
|
||||
- "coreApiWebdavProperties"
|
||||
- "coreApiWebdavMove1,coreApiWebdavPreviews,coreApiWebdavUpload,coreApiWebdavUploadTUS"
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
|
||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
||||
with:
|
||||
php-version: "8.4"
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -465,7 +468,7 @@ jobs:
|
||||
'
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -482,7 +485,7 @@ jobs:
|
||||
|
||||
- name: Upload raw coverage data
|
||||
if: always()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: api-coverage-core-${{ matrix.suite }}
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
@@ -530,8 +533,8 @@ jobs:
|
||||
args: "--type playwright --suites vault-storage"
|
||||
vault_storage: true
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
# 24.16.0 breaks playwright install (yauzl zip extraction hangs); pin to last known good.
|
||||
# https://github.com/microsoft/playwright/issues/40724
|
||||
@@ -548,7 +551,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -680,7 +683,7 @@ jobs:
|
||||
|
||||
- name: Upload tracing result
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: playwright-traces-${{ matrix.suite }}-${{ github.run_attempt }}
|
||||
path: web/reports/e2e
|
||||
@@ -688,7 +691,7 @@ jobs:
|
||||
|
||||
- name: Upload a11y result
|
||||
if: ${{ !cancelled() }}
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: playwright-a11y-result-${{ matrix.suite }}-${{ github.run_attempt }}
|
||||
path: web/reports/e2e/a11y-report.json
|
||||
@@ -700,7 +703,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Install libvips runtime
|
||||
run: |
|
||||
@@ -709,7 +712,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -725,7 +728,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Install libvips runtime
|
||||
run: |
|
||||
@@ -734,7 +737,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -750,7 +753,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Install libvips runtime
|
||||
run: |
|
||||
@@ -759,7 +762,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -775,7 +778,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Install libvips runtime
|
||||
run: |
|
||||
@@ -784,7 +787,7 @@ jobs:
|
||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: ocis-build-artifacts
|
||||
|
||||
@@ -800,13 +803,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -833,13 +836,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
@@ -860,20 +863,20 @@ jobs:
|
||||
|
||||
acceptance-coverage:
|
||||
name: acceptance-coverage
|
||||
needs: [local-api-tests, cli-tests, ldap-pool-tests, core-api-tests]
|
||||
if: always() && github.event_name == 'pull_request'
|
||||
needs: [detect-changes, local-api-tests, cli-tests, ldap-pool-tests, core-api-tests]
|
||||
if: always() && github.event_name == 'pull_request' && needs.detect-changes.outputs.docs-only != 'true'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- name: Download raw coverage data
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
pattern: api-coverage-*
|
||||
path: ${{ env.GOCOVERDIR }}
|
||||
|
||||
@@ -10,7 +10,7 @@ jobs:
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Install REUSE tool
|
||||
run: pip install reuse
|
||||
|
||||
@@ -3,7 +3,7 @@ name: Test Deployment Examples
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 0 * * *" # every day at 00:00 UTC
|
||||
- cron: "0 1 * * *"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout ocis repo
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
repository: owncloud/ocis
|
||||
|
||||
|
||||
+369
-20
@@ -10,7 +10,10 @@ env:
|
||||
PHP_VERSION: "8.4"
|
||||
K3D_VERSION: "v5.8.3"
|
||||
HELM_VERSION: "v3.18.4"
|
||||
TEST_SERVER_DOMAIN: ocis-server
|
||||
FED_SERVER_DOMAIN: federation-ocis-server
|
||||
TEST_SERVER_URL: https://ocis-server
|
||||
FED_SERVER_URL: https://federation-ocis-server
|
||||
STORAGE_DRIVER: ocis
|
||||
OCIS_WRAPPER_URL: http://localhost:5200
|
||||
K8S: true
|
||||
@@ -39,7 +42,7 @@ jobs:
|
||||
- suite: apiGraphUser
|
||||
- suite: apiGraph
|
||||
- suite: apiGraphGroup
|
||||
# - suite: apiSpaces
|
||||
- suite: apiSpaces
|
||||
- suite: apiSpacesShares
|
||||
- suite: apiSpacesDavOperation
|
||||
- suite: apiDownloads
|
||||
@@ -49,20 +52,20 @@ jobs:
|
||||
- suite: apiActivities
|
||||
- suite: apiSearch1
|
||||
- suite: apiSearch2
|
||||
# - suite: apiSearchContent
|
||||
- suite: apiSearchContent
|
||||
- suite: apiSharingNgShares
|
||||
- suite: apiReshare
|
||||
- suite: apiSharingNgPermissions
|
||||
- suite: apiSharingNgAdditionalShareRole
|
||||
- suite: apiSharingNgDriveInvitation
|
||||
# - suite: apiSharingNgItemInvitation
|
||||
- suite: apiSharingNgItemInvitation
|
||||
- suite: apiSharingNgDriveLinkShare
|
||||
- suite: apiSharingNgItemLinkShare
|
||||
- suite: apiSharingNgLinkShareManagement
|
||||
- suite: apiAuthApp
|
||||
# - suite: apiAntivirus
|
||||
- suite: apiAntivirus
|
||||
- suite: apiOcm
|
||||
# - suite: apiCollaboration
|
||||
- suite: apiCollaboration
|
||||
- suite: apiVault
|
||||
- suite: "coreApiAuth,coreApiCapabilities,coreApiFavorites,coreApiMain,coreApiVersions"
|
||||
- suite: "coreApiShareManagementBasicToShares,coreApiShareManagementToShares"
|
||||
@@ -72,15 +75,14 @@ jobs:
|
||||
- suite: "coreApiTrashbin,coreApiTrashbinRestore,coreApiWebdavEtagPropagation1,coreApiWebdavEtagPropagation2"
|
||||
- suite: "coreApiWebdavDelete,coreApiWebdavOperations,coreApiWebdavMove2"
|
||||
- suite: "coreApiWebdavProperties"
|
||||
# - suite: "coreApiWebdavPreviews"
|
||||
- suite: "coreApiWebdavMove1,coreApiWebdavUpload,coreApiWebdavUploadTUS"
|
||||
- suite: "coreApiWebdavMove1,coreApiWebdavUpload,coreApiWebdavUploadTUS,coreApiWebdavPreviews"
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Setup PHP ${{ env.PHP_VERSION }}
|
||||
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
|
||||
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
||||
with:
|
||||
php-version: ${{ env.PHP_VERSION }}
|
||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
||||
@@ -105,7 +107,7 @@ jobs:
|
||||
|
||||
- name: Prepare hosts
|
||||
run: |
|
||||
echo "127.0.0.1 ocis-server clamav email collabora onlyoffice fakeoffice tika federation-ocis-server keycloak" \
|
||||
echo "127.0.0.1 $TEST_SERVER_DOMAIN clamav email collabora onlyoffice fakeoffice tika $FED_SERVER_DOMAIN keycloak" \
|
||||
| sudo tee -a /etc/hosts
|
||||
|
||||
- name: Spin up K3d Cluster
|
||||
@@ -181,11 +183,11 @@ jobs:
|
||||
|
||||
# patch the realm so the "web" client's redirect/origin URLs match
|
||||
# the k8s ingress domain instead of the non-k8s "localhost:9200" one
|
||||
sed 's|https://localhost:9200|https://ocis-server|g' \
|
||||
sed "s|https://localhost:9200|${TEST_SERVER_URL}|g" \
|
||||
tests/config/ci/ocis-mfa-ci-realm.dist.json > /tmp/ocis-realm.json
|
||||
|
||||
docker run -d --name keycloak --network host \
|
||||
-e OCIS_DOMAIN=https://ocis-server \
|
||||
-e OCIS_DOMAIN="$TEST_SERVER_URL" \
|
||||
-e KC_HOSTNAME=keycloak \
|
||||
-e KC_PORT=8443 \
|
||||
-e KC_DB=postgres \
|
||||
@@ -213,34 +215,99 @@ jobs:
|
||||
bash tests/config/k8s/expose-external-svc.sh keycloak:8443
|
||||
fi
|
||||
|
||||
if [[ "${{ matrix.suite }}" == "apiCollaboration" ]]; then
|
||||
# Start Collabora
|
||||
docker run -d \
|
||||
--name collabora \
|
||||
--network host \
|
||||
--entrypoint bash \
|
||||
-e DONT_GEN_SSL_CERT=set \
|
||||
-e "extra_params=--o:ssl.enable=true --o:ssl.termination=true --o:welcome.enable=false --o:net.frame_ancestors=https://127.0.0.1:9200" \
|
||||
collabora/code:25.04.7.3.1 \
|
||||
-c "coolconfig generate-proof-key && bash /start-collabora-online.sh"
|
||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:9980/hosting/discovery > /dev/null; do sleep 5; done'
|
||||
echo "collabora ready."
|
||||
|
||||
# Start OnlyOffice
|
||||
docker run -d \
|
||||
--name onlyoffice \
|
||||
-p 7443:443 \
|
||||
-e WOPI_ENABLED=true \
|
||||
-e USE_UNAUTHORIZED_STORAGE=true \
|
||||
-v "$(pwd)/tests/config/ci/only-office.json:/tmp/local.json:ro" \
|
||||
--entrypoint /bin/sh \
|
||||
onlyoffice/documentserver:9.2.1 \
|
||||
-c "set -e
|
||||
cp /tmp/local.json /etc/onlyoffice/documentserver/local.json
|
||||
openssl req -x509 -newkey rsa:4096 -keyout onlyoffice.key -out onlyoffice.crt -sha256 -days 365 -batch -nodes
|
||||
mkdir -p /var/www/onlyoffice/Data/certs
|
||||
cp onlyoffice.key /var/www/onlyoffice/Data/certs/
|
||||
cp onlyoffice.crt /var/www/onlyoffice/Data/certs/
|
||||
chmod 400 /var/www/onlyoffice/Data/certs/onlyoffice.key
|
||||
/app/ds/run-document-server.sh"
|
||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:7443/hosting/discovery > /dev/null; do sleep 5; done'
|
||||
echo "onlyoffice ready."
|
||||
|
||||
#Start FakeOffice
|
||||
docker run -d --name fakeoffice --network host \
|
||||
-v "$(pwd):/ocis:ro" \
|
||||
python:3-alpine \
|
||||
python3 -c "
|
||||
import http.server, pathlib
|
||||
body = pathlib.Path('/ocis/tests/config/ci/hosting-discovery.xml').read_bytes()
|
||||
class H(http.server.BaseHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
self.send_response(200)
|
||||
self.send_header('Content-Type', 'text/xml')
|
||||
self.end_headers()
|
||||
self.wfile.write(body)
|
||||
def log_message(self, *a): pass
|
||||
http.server.HTTPServer(('', 8080), H).serve_forever()
|
||||
"
|
||||
timeout 60 bash -c 'until curl -fsSL http://localhost:8080/hosting/discovery > /dev/null; do sleep 5; done'
|
||||
echo "fakeoffice ready."
|
||||
|
||||
bash tests/config/k8s/expose-external-svc.sh collabora:9980
|
||||
bash tests/config/k8s/expose-external-svc.sh onlyoffice:7443
|
||||
bash tests/config/k8s/expose-external-svc.sh fakeoffice:8080
|
||||
fi
|
||||
|
||||
- name: Deploy oCIS
|
||||
run: |
|
||||
cd tests/config/k8s
|
||||
kubectl get pods -n ocis-server -Aw &
|
||||
kubectl get pods -n "$TEST_SERVER_DOMAIN" -Aw &
|
||||
make deploy-ocis
|
||||
if [[ "${{ matrix.suite }}" == "apiOcm" ]]; then
|
||||
OCM=true make deploy-ocis
|
||||
fi
|
||||
|
||||
- name: Expose node ports
|
||||
if: ${{ matrix.suite == 'apiCollaboration' }}
|
||||
run: |
|
||||
bash tests/config/k8s/expose-nodeports.sh collaboration-collabora 9300 30300
|
||||
bash tests/config/k8s/expose-nodeports.sh collaboration-fakeoffice 9300 30301
|
||||
bash tests/config/k8s/expose-nodeports.sh collaboration-onlyoffice 9300 30302
|
||||
bash tests/config/k8s/expose-nodeports.sh collaboration-fakeoffice 9304 30304
|
||||
|
||||
- name: Wait for oCIS to be ready
|
||||
env:
|
||||
FILE_URL: ${{ env.TEST_SERVER_URL }}/remote.php/dav/files/admin/hello1.txt
|
||||
run: |
|
||||
kubectl wait \
|
||||
--namespace ocis-server \
|
||||
--namespace "$TEST_SERVER_DOMAIN" \
|
||||
--for=condition=Available \
|
||||
deployment \
|
||||
--all \
|
||||
--timeout=10m
|
||||
|
||||
kubectl wait \
|
||||
--namespace ocis-server \
|
||||
--namespace "$TEST_SERVER_DOMAIN" \
|
||||
--for=condition=Ready \
|
||||
pod \
|
||||
--all \
|
||||
--timeout=10m
|
||||
|
||||
kubectl get pods -n ocis-server
|
||||
kubectl get pods -n "$TEST_SERVER_DOMAIN"
|
||||
|
||||
retry() {
|
||||
local label=$1
|
||||
@@ -264,7 +331,7 @@ jobs:
|
||||
# reached via port-forward since it isn't exposed by any Service.
|
||||
# local port 19205 (not 9205): 9100-9399 is already bound on the
|
||||
# host by the k3d loadbalancer's NodePort range, see create-cluster.
|
||||
kubectl -n ocis-server port-forward deployment/proxy 19205:9205 &
|
||||
kubectl -n "$TEST_SERVER_DOMAIN" port-forward deployment/proxy 19205:9205 &
|
||||
PORT_FORWARD_PID=$!
|
||||
trap 'kill $PORT_FORWARD_PID 2>/dev/null' EXIT
|
||||
|
||||
@@ -316,7 +383,7 @@ jobs:
|
||||
run: |
|
||||
(
|
||||
while true; do
|
||||
kubectl -n ocis-server port-forward deployment/proxy 19205:9205 >> /tmp/proxy-readyz-portforward.log 2>&1
|
||||
kubectl -n "$TEST_SERVER_DOMAIN" port-forward deployment/proxy 19205:9205 >> /tmp/proxy-readyz-portforward.log 2>&1
|
||||
sleep 1
|
||||
done
|
||||
) &
|
||||
@@ -331,7 +398,7 @@ jobs:
|
||||
--admin-username admin \
|
||||
--admin-password admin \
|
||||
--skip-ocis-run \
|
||||
-n ocis-server &
|
||||
-n "$TEST_SERVER_DOMAIN" &
|
||||
|
||||
- name: Prepare expected failures
|
||||
if: startsWith( matrix.suite, 'core' )
|
||||
@@ -348,7 +415,7 @@ jobs:
|
||||
if: startsWith( matrix.suite, 'api' )
|
||||
env:
|
||||
TEST_SERVER_URL: ${{ env.TEST_SERVER_URL }}
|
||||
TEST_SERVER_FED_URL: https://federation-ocis-server
|
||||
TEST_SERVER_FED_URL: ${{ env.FED_SERVER_URL }}
|
||||
STORAGE_DRIVER: ${{ env.STORAGE_DRIVER }}
|
||||
BEHAT_SUITES: ${{ matrix.suite }}
|
||||
BEHAT_FILTER_TAGS: "~@skip&&~@skipOnGraph&&~@skipOnOcis-OCIS-Storage"
|
||||
@@ -376,3 +443,285 @@ jobs:
|
||||
WITH_REMOTE_PHP: "false"
|
||||
K8S: ${{ env.K8S }}
|
||||
run: make test-acceptance-api
|
||||
|
||||
e2e-tests:
|
||||
name: e2e-${{ matrix.suite }}-k8s
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
|
||||
if: >-
|
||||
github.event_name == 'schedule' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
contains(github.event.pull_request.title || '', 'k8s'))
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
# - suite: part-1
|
||||
# args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 1"
|
||||
- suite: part-2
|
||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 2"
|
||||
# - suite: part-3
|
||||
# args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 3"
|
||||
# - suite: part-4
|
||||
# args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 4"
|
||||
# - suite: search
|
||||
# args: "--type playwright --suites search"
|
||||
# tika: true
|
||||
# - suite: keycloak
|
||||
# args: "--type playwright --suites journeys,keycloak"
|
||||
# keycloak: true
|
||||
# - suite: mfa
|
||||
# args: "--type playwright --suites mfa"
|
||||
# mfa: true
|
||||
# - suite: oidc
|
||||
# args: "--type playwright specs/oidc/refreshToken.spec.ts"
|
||||
# oidc: true
|
||||
# - suite: oidc-iframe
|
||||
# args: "--type playwright specs/oidc/iframeTokenRenewal.spec.ts"
|
||||
# oidc_iframe: true
|
||||
- suite: app-provider
|
||||
args: "--type playwright --suites app-provider"
|
||||
collaboration: true
|
||||
- suite: ocm
|
||||
args: "--type playwright --suites ocm"
|
||||
federated: true
|
||||
# - suite: vault-storage
|
||||
# args: "--type playwright --suites vault-storage"
|
||||
# vault_storage: true
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.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.33.3 --activate
|
||||
pnpm config set store-dir ./.pnpm-store
|
||||
|
||||
- name: Cache Playwright Chromium
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
path: ~/.cache/ms-playwright
|
||||
key: playwright-chromium-${{ hashFiles('web/pnpm-lock.yaml') }}
|
||||
|
||||
- name: Download k3d
|
||||
run: |
|
||||
curl -L \
|
||||
-o k3d \
|
||||
https://github.com/k3d-io/k3d/releases/download/${{ env.K3D_VERSION }}/k3d-linux-amd64
|
||||
echo "dbaa79a76ace7f4ca230a1ff41dc7d8a5036a8ad0309e9c54f9bf3836dbe853e k3d" | sha256sum --check
|
||||
chmod +x k3d
|
||||
sudo mv k3d /usr/local/bin/
|
||||
k3d version
|
||||
|
||||
- name: Install Helm
|
||||
run: |
|
||||
curl -fsSL -o helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz https://get.helm.sh/helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
||||
tar -zxvf helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
||||
sudo mv linux-amd64/helm /usr/local/bin/helm
|
||||
helm version --short
|
||||
|
||||
- name: Prepare hosts
|
||||
run: |
|
||||
echo "127.0.0.1 $TEST_SERVER_DOMAIN clamav email collabora onlyoffice fakeoffice tika $FED_SERVER_DOMAIN keycloak" \
|
||||
| sudo tee -a /etc/hosts
|
||||
|
||||
- name: Spin up K3d Cluster
|
||||
run: make -C tests/config/k8s create-cluster
|
||||
|
||||
- name: Prepare Helm Charts
|
||||
env:
|
||||
ENABLE_WOPI: ${{ matrix.suite == 'app-provider' }}
|
||||
ENABLE_OCM: ${{ matrix.suite == 'ocm' }}
|
||||
run: |
|
||||
cd tests/config/k8s
|
||||
make prepare-charts
|
||||
if [[ "${{ matrix.suite }}" == "ocm" ]]; then
|
||||
OCM=true make prepare-charts
|
||||
fi
|
||||
|
||||
- name: Deploy Suite-Specific External Backends
|
||||
run: |
|
||||
if [[ "${{ matrix.suite }}" == "app-provider" ]]; then
|
||||
# Start Collabora
|
||||
docker run -d \
|
||||
--name collabora \
|
||||
--network host \
|
||||
--entrypoint bash \
|
||||
-e DONT_GEN_SSL_CERT=set \
|
||||
-e "extra_params=--o:ssl.enable=true --o:ssl.termination=true --o:welcome.enable=false --o:net.frame_ancestors=https://127.0.0.1:9200" \
|
||||
collabora/code:25.04.7.3.1 \
|
||||
-c "coolconfig generate-proof-key && bash /start-collabora-online.sh"
|
||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:9980/hosting/discovery > /dev/null; do sleep 5; done'
|
||||
echo "collabora ready."
|
||||
|
||||
# Start OnlyOffice
|
||||
docker run -d \
|
||||
--name onlyoffice \
|
||||
-p 7443:443 \
|
||||
--add-host "$TEST_SERVER_DOMAIN:host-gateway" \
|
||||
-e WOPI_ENABLED=true \
|
||||
-e USE_UNAUTHORIZED_STORAGE=true \
|
||||
-v "$(pwd)/tests/config/ci/only-office.json:/tmp/local.json:ro" \
|
||||
--entrypoint /bin/sh \
|
||||
onlyoffice/documentserver:9.2.1 \
|
||||
-c "set -e
|
||||
cp /tmp/local.json /etc/onlyoffice/documentserver/local.json
|
||||
openssl req -x509 -newkey rsa:4096 -keyout onlyoffice.key -out onlyoffice.crt -sha256 -days 365 -batch -nodes
|
||||
mkdir -p /var/www/onlyoffice/Data/certs
|
||||
cp onlyoffice.key /var/www/onlyoffice/Data/certs/
|
||||
cp onlyoffice.crt /var/www/onlyoffice/Data/certs/
|
||||
chmod 400 /var/www/onlyoffice/Data/certs/onlyoffice.key
|
||||
/app/ds/run-document-server.sh"
|
||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:7443/hosting/discovery > /dev/null; do sleep 5; done'
|
||||
echo "onlyoffice ready."
|
||||
|
||||
#Start FakeOffice
|
||||
docker run -d --name fakeoffice --network host \
|
||||
-v "$(pwd):/ocis:ro" \
|
||||
python:3-alpine \
|
||||
python3 -c "
|
||||
import http.server, pathlib
|
||||
body = pathlib.Path('/ocis/tests/config/ci/hosting-discovery.xml').read_bytes()
|
||||
class H(http.server.BaseHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
self.send_response(200)
|
||||
self.send_header('Content-Type', 'text/xml')
|
||||
self.end_headers()
|
||||
self.wfile.write(body)
|
||||
def log_message(self, *a): pass
|
||||
http.server.HTTPServer(('', 8080), H).serve_forever()
|
||||
"
|
||||
timeout 60 bash -c 'until curl -fsSL http://localhost:8080/hosting/discovery > /dev/null; do sleep 5; done'
|
||||
echo "fakeoffice ready."
|
||||
|
||||
bash tests/config/k8s/expose-external-svc.sh collabora:9980
|
||||
bash tests/config/k8s/expose-external-svc.sh onlyoffice:7443
|
||||
bash tests/config/k8s/expose-external-svc.sh fakeoffice:8080
|
||||
fi
|
||||
|
||||
- name: Deploy oCIS
|
||||
run: |
|
||||
cd tests/config/k8s
|
||||
kubectl get pods -n "$TEST_SERVER_DOMAIN" -Aw &
|
||||
make deploy-ocis
|
||||
if [[ "${{ matrix.suite }}" == "ocm" ]]; then
|
||||
OCM=true make deploy-ocis
|
||||
fi
|
||||
|
||||
- name: Expose node ports
|
||||
if: ${{ matrix.suite == 'app-provider' }}
|
||||
run: |
|
||||
bash tests/config/k8s/expose-nodeports.sh collaboration-collabora 9300 30300
|
||||
bash tests/config/k8s/expose-nodeports.sh collaboration-fakeoffice 9300 30301
|
||||
bash tests/config/k8s/expose-nodeports.sh collaboration-onlyoffice 9300 30302
|
||||
bash tests/config/k8s/expose-nodeports.sh collaboration-fakeoffice 9304 30304
|
||||
|
||||
- name: Wait for oCIS to be ready
|
||||
env:
|
||||
FILE_URL: ${{ env.TEST_SERVER_URL }}/remote.php/dav/files/admin/hello1.txt
|
||||
run: |
|
||||
kubectl wait \
|
||||
--namespace "$TEST_SERVER_DOMAIN" \
|
||||
--for=condition=Available \
|
||||
deployment \
|
||||
--all \
|
||||
--timeout=10m
|
||||
|
||||
kubectl wait \
|
||||
--namespace "$TEST_SERVER_DOMAIN" \
|
||||
--for=condition=Ready \
|
||||
pod \
|
||||
--all \
|
||||
--timeout=10m
|
||||
|
||||
kubectl get pods -n "$TEST_SERVER_DOMAIN"
|
||||
|
||||
retry() {
|
||||
local label=$1
|
||||
shift
|
||||
for i in {1..30}; do
|
||||
if "$@"; then
|
||||
echo "$label succeeded"
|
||||
return 0
|
||||
fi
|
||||
echo "$label attempt $i failed, retrying in 10s..."
|
||||
sleep 10
|
||||
done
|
||||
echo "$label failed after 30 attempts"
|
||||
return 1
|
||||
}
|
||||
|
||||
echo "Creating test file in oCIS..."
|
||||
|
||||
request() {
|
||||
local method=$1
|
||||
shift
|
||||
curl -ks -o /dev/null -w "%{http_code}" \
|
||||
-X "$method" \
|
||||
-u admin:admin \
|
||||
"$@" \
|
||||
"$FILE_URL"
|
||||
}
|
||||
put_file() {
|
||||
request PUT \
|
||||
-H "Content-Type: text/plain" \
|
||||
--data "Hello from GitHub Actions!"
|
||||
}
|
||||
delete_file() {
|
||||
request DELETE
|
||||
}
|
||||
check_status() {
|
||||
local expected=$1
|
||||
shift
|
||||
status=$("$@")
|
||||
[ "$status" = "$expected" ]
|
||||
}
|
||||
echo "Creating test file..."
|
||||
retry "create file (HTTP 201)" check_status 201 put_file || exit 1
|
||||
echo "Deleting test file..."
|
||||
retry "delete file (HTTP 204)" check_status 204 delete_file || exit 1
|
||||
|
||||
- name: Run e2e ${{ matrix.suite }} tests
|
||||
env:
|
||||
E2E_ARGS: "${{ matrix.args }}"
|
||||
K8S: ${{ env.K8S }}
|
||||
TEST_SERVER_URL: ${{ env.TEST_SERVER_URL }}
|
||||
COLLABORATION_NEEDED: ${{ matrix.collaboration == true && 'true' || 'false' }}
|
||||
FED_SERVER_URL: ${{ env.FED_SERVER_URL }}
|
||||
FEDERATED_NEEDED: ${{ matrix.federated == true && 'true' || 'false' }}
|
||||
run: python3 tests/acceptance/run-e2e.py
|
||||
|
||||
- name: Upload Playwright traces
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: playwright-traces-${{ matrix.suite }}-k8s-${{ github.run_attempt }}
|
||||
path: web/reports/e2e
|
||||
retention-days: 7
|
||||
|
||||
- name: Upload a11y result
|
||||
if: ${{ !cancelled() }}
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: playwright-a11y-result-${{ matrix.suite }}-k8s-${{ github.run_attempt }}
|
||||
path: web/reports/e2e/a11y-report.json
|
||||
retention-days: 7
|
||||
|
||||
- name: Upload oCIS logs
|
||||
if: always()
|
||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: ocis-logs-${{ matrix.suite }}-k8s-${{ github.run_attempt }}
|
||||
path: tests/config/k8s/logs
|
||||
retention-days: 7
|
||||
@@ -26,13 +26,14 @@ jobs:
|
||||
working-directory: web
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: 24.15.0
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
package-manager-cache: false
|
||||
|
||||
- name: Setup pnpm
|
||||
run: corepack enable && corepack prepare pnpm@10.33.3 --activate
|
||||
|
||||
+30
-200
@@ -14,11 +14,9 @@ on:
|
||||
default: ''
|
||||
|
||||
env:
|
||||
PRODUCTION_RELEASE_TAGS: '5.0,7,8'
|
||||
DOCKER_REPO_ROLLING: owncloud/ocis-rolling
|
||||
DOCKER_REPO_PRODUCTION: owncloud/ocis
|
||||
NODE_VERSION: '24'
|
||||
PNPM_VERSION: '10.28.1'
|
||||
GOLANG_BUILD_IMAGE: 'golang:1.26.8-alpine3.23@sha256:a8fa79c5bd40d880b52bd3b6d7669ecdcfd00e85facdd427d279efb5ddd79cb1'
|
||||
|
||||
jobs:
|
||||
determine-release-type:
|
||||
@@ -26,11 +24,9 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
outputs:
|
||||
version: ${{ steps.info.outputs.version }}
|
||||
is_production: ${{ steps.info.outputs.is_production }}
|
||||
is_prerelease: ${{ steps.info.outputs.is_prerelease }}
|
||||
docker_repos: ${{ steps.info.outputs.docker_repos }}
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
if: ${{ github.ref_type == 'branch' || (github.event_name == 'workflow_dispatch' && inputs.version_override == '') }}
|
||||
with:
|
||||
fetch-depth: 0
|
||||
@@ -74,38 +70,25 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
IS_PRODUCTION=false
|
||||
for TAG in ${PRODUCTION_RELEASE_TAGS//,/ }; do
|
||||
[[ "$VERSION" == "$TAG"* ]] && IS_PRODUCTION=true && break
|
||||
done
|
||||
|
||||
[[ "$VERSION" == *"-"* ]] && IS_PRERELEASE=true || IS_PRERELEASE=false
|
||||
|
||||
if [[ "$IS_PRODUCTION" == "true" && "$IS_PRERELEASE" == "false" ]]; then
|
||||
REPOS=[\"$DOCKER_REPO_ROLLING\",\"$DOCKER_REPO_PRODUCTION\"]
|
||||
else
|
||||
REPOS=[\"$DOCKER_REPO_ROLLING\"]
|
||||
fi
|
||||
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "is_production=$IS_PRODUCTION" >> $GITHUB_OUTPUT
|
||||
echo "is_prerelease=$IS_PRERELEASE" >> $GITHUB_OUTPUT
|
||||
echo "docker_repos=$REPOS" >> $GITHUB_OUTPUT
|
||||
|
||||
generate-code:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: [determine-release-type]
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- run: npm install --silent -g yarn npx --force
|
||||
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v4
|
||||
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v4
|
||||
with:
|
||||
version: ${{ env.PNPM_VERSION }}
|
||||
- run: pnpm config set store-dir ./.pnpm-store && make ci-node-generate
|
||||
@@ -118,7 +101,7 @@ jobs:
|
||||
run: |
|
||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
||||
sed -i "s/LatestTag = \".*\"/LatestTag = \"$VERSION\"/" ocis-pkg/version/version.go
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: generated-code
|
||||
path: |
|
||||
@@ -127,159 +110,6 @@ jobs:
|
||||
!web
|
||||
retention-days: 1
|
||||
|
||||
docker-build:
|
||||
if: false
|
||||
name: docker-build (${{ matrix.arch }}, ${{ matrix.repo }})
|
||||
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
|
||||
timeout-minutes: 120
|
||||
needs: [determine-release-type, generate-code, security-scan-trivy]
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [amd64, arm64]
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
||||
- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- id: goversion
|
||||
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.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 }}"
|
||||
REPO="${{ matrix.repo }}"
|
||||
ARCH="${{ matrix.arch }}"
|
||||
printf "tags<<EOF\n%s\nEOF\n" \
|
||||
"${REPO}:${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
|
||||
- name: push
|
||||
if: steps.trivy.outcome == 'success'
|
||||
run: docker push ${{ steps.tags.outputs.tags }}
|
||||
|
||||
docker-scan:
|
||||
name: docker-scan (${{ matrix.arch }}, ${{ matrix.repo }})
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
needs: [determine-release-type, docker-build]
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [amd64]
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
id: trivy
|
||||
continue-on-error: true
|
||||
with:
|
||||
image-ref: ${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-${{ matrix.arch }}
|
||||
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 ${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-${{ matrix.arch }} has HIGH or CRITICAL vulnerabilities (see Trivy report above). Fix all findings before releasing."
|
||||
exit 1
|
||||
|
||||
docker-manifest:
|
||||
if: false
|
||||
name: docker-manifest (${{ matrix.repo }})
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
needs: [determine-release-type, docker-build, docker-scan]
|
||||
strategy:
|
||||
matrix:
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- if: ${{ contains(matrix.repo, 'rolling') }}
|
||||
run: |
|
||||
docker buildx imagetools create \
|
||||
-t "${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-amd64" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-arm64"
|
||||
- if: ${{ !contains(matrix.repo, 'rolling') }}
|
||||
run: |
|
||||
docker buildx imagetools create \
|
||||
-t "${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-amd64" \
|
||||
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-arm64"
|
||||
|
||||
docker-readme:
|
||||
if: false
|
||||
name: docker-readme (${{ matrix.repo }})
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
needs: [determine-release-type, docker-manifest]
|
||||
strategy:
|
||||
matrix:
|
||||
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
repository: ${{ matrix.repo }}
|
||||
readme-filepath: ocis/README.md
|
||||
|
||||
build-binaries:
|
||||
name: build-binaries (${{ matrix.os }})
|
||||
runs-on: ubuntu-latest
|
||||
@@ -289,12 +119,12 @@ jobs:
|
||||
matrix:
|
||||
os: [linux, darwin]
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
@@ -303,7 +133,7 @@ jobs:
|
||||
if [[ "${{ matrix.os }}" == "linux" ]]; then
|
||||
cp assets/End-User-License-Agreement-for-ownCloud-Infinite-Scale.pdf ocis/dist/release/
|
||||
fi
|
||||
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: binaries-${{ matrix.os }}
|
||||
path: ocis/dist/release/*
|
||||
@@ -313,8 +143,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
||||
with:
|
||||
scan-type: fs
|
||||
format: table
|
||||
@@ -327,15 +157,15 @@ jobs:
|
||||
timeout-minutes: 60
|
||||
needs: [determine-release-type, generate-code]
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: generated-code
|
||||
path: .
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ env.NODE_VERSION }}
|
||||
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force
|
||||
@@ -346,7 +176,7 @@ jobs:
|
||||
- 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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: third-party-licenses.tar.gz
|
||||
@@ -357,10 +187,10 @@ jobs:
|
||||
timeout-minutes: 15
|
||||
needs: [determine-release-type]
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
- run: |
|
||||
@@ -370,7 +200,7 @@ jobs:
|
||||
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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||||
with:
|
||||
name: changelog
|
||||
path: ocis/dist/CHANGELOG.md
|
||||
@@ -381,23 +211,23 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy]
|
||||
steps:
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: changelog
|
||||
path: .
|
||||
- uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1
|
||||
- uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
|
||||
with:
|
||||
tag_name: v${{ needs.determine-release-type.outputs.version }}
|
||||
name: v${{ needs.determine-release-type.outputs.version }}
|
||||
@@ -417,16 +247,16 @@ jobs:
|
||||
- generate-changelog
|
||||
- create-github-release
|
||||
steps:
|
||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: binaries-linux
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: binaries-darwin
|
||||
path: release-assets
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||||
with:
|
||||
name: third-party-licenses
|
||||
path: release-assets
|
||||
|
||||
@@ -12,9 +12,10 @@ jobs:
|
||||
timeout-minutes: 5
|
||||
outputs:
|
||||
web-changed: ${{ steps.check.outputs.web-changed }}
|
||||
full-run: ${{ steps.check.outputs.full-run }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
@@ -23,16 +24,24 @@ jobs:
|
||||
env:
|
||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||
run: |
|
||||
# full-run: push to master/stable-* or an explicit [full-ci] request always run
|
||||
# everything, unscoped - same as before Nx. A normal PR gets the affected-scoped
|
||||
# path instead (see web-build-test), since only those two cases actually need every
|
||||
# project checked.
|
||||
if [[ "${{ github.event_name }}" == "push" ]]; then
|
||||
echo "web-changed=true" >> "$GITHUB_OUTPUT"
|
||||
echo "full-run=true" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if echo "$PR_TITLE" | grep -qi "\[full-ci\]"; then
|
||||
echo "web-changed=true" >> "$GITHUB_OUTPUT"
|
||||
echo "full-run=true" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "full-run=false" >> "$GITHUB_OUTPUT"
|
||||
|
||||
CHANGED_FILES=$(git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}" 2>/dev/null || git diff --name-only HEAD~1)
|
||||
|
||||
WEB_CHANGED=false
|
||||
@@ -57,15 +66,18 @@ jobs:
|
||||
working-directory: web
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
# nx affected --base=<pr-base-sha> (used below) needs that commit present locally
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
|
||||
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
||||
with:
|
||||
version: 10.33.3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: 24.15.0
|
||||
cache: pnpm
|
||||
@@ -81,16 +93,34 @@ jobs:
|
||||
run: pnpm licenses:csv && pnpm licenses:save
|
||||
|
||||
- name: Check types
|
||||
# Whole-repo, unconditional: only 5/27 projects have a per-project typecheck target
|
||||
# (nx/vite's typecheck inference needs a project's own vite.config.ts, which most
|
||||
# web-app-* packages don't have), so `nx affected -t typecheck` can't safely stand
|
||||
# in for this yet.
|
||||
run: pnpm check:types
|
||||
|
||||
- name: Check format
|
||||
run: pnpm check:format
|
||||
|
||||
- name: Lint
|
||||
run: pnpm lint
|
||||
env:
|
||||
FULL_RUN: ${{ needs.detect-web-changes.outputs.full-run }}
|
||||
run: |
|
||||
if [[ "$FULL_RUN" == "true" ]]; then
|
||||
pnpm lint
|
||||
else
|
||||
pnpm exec nx affected -t lint --base="${{ github.event.pull_request.base.sha }}"
|
||||
fi
|
||||
|
||||
- name: Run unit tests
|
||||
run: pnpm test:unit --coverage
|
||||
env:
|
||||
FULL_RUN: ${{ needs.detect-web-changes.outputs.full-run }}
|
||||
run: |
|
||||
if [[ "$FULL_RUN" == "true" ]]; then
|
||||
pnpm test:unit --coverage
|
||||
else
|
||||
pnpm exec nx affected -t test --base="${{ github.event.pull_request.base.sha }}"
|
||||
fi
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
container: golang:1.25-alpine
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
|
||||
|
||||
- name: Run CI Reporter
|
||||
working-directory: tools/ci-reporter
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
|
||||
SKIP_CONFIG_DOCS_GENERATE ?= 0
|
||||
CONFIG_DOCS_BASE_PATH ?= ../../docs/services
|
||||
|
||||
.PHONY: config-docs-generate
|
||||
config-docs-generate: #$(FLAEX)
|
||||
# since https://github.com/owncloud/ocis/pull/2708 flaex can no longer be used
|
||||
# TODO: how to document configuration
|
||||
# @if [ $(SKIP_CONFIG_DOCS_GENERATE) -ne 1 ]; then \
|
||||
# $(FLAEX) >| $(CONFIG_DOCS_BASE_PATH)/$(NAME)/configuration.md \
|
||||
# ; fi;
|
||||
|
||||
.PHONY: grpc-docs-generate
|
||||
grpc-docs-generate: buf-generate
|
||||
@@ -10,7 +10,6 @@ protoc-deps: $(BINGO)
|
||||
@cd ../.. && GOPATH="" GOBIN=".bingo" $(BINGO) get -l github.com/go-micro/generator/cmd/protoc-gen-micro
|
||||
@cd ../.. && GOPATH="" GOBIN=".bingo" $(BINGO) get -l github.com/owncloud/protoc-gen-microweb
|
||||
@cd ../.. && GOPATH="" GOBIN=".bingo" $(BINGO) get -l github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
|
||||
@cd ../.. && GOPATH="" GOBIN=".bingo" $(BINGO) get -l github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
|
||||
@cd ../.. && GOPATH="" GOBIN=".bingo" $(BINGO) get -l github.com/favadi/protoc-go-inject-tag
|
||||
|
||||
.PHONY: buf-generate
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ COPY --from=generate /ocis /ocis
|
||||
WORKDIR /ocis/ocis
|
||||
RUN make ci-go-generate build ENABLE_VIPS=true
|
||||
|
||||
FROM alpine:3.24.1
|
||||
FROM alpine:3.24.2
|
||||
|
||||
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.2-r0" \
|
||||
|
||||
@@ -181,6 +181,17 @@ go-mod-tidy:
|
||||
$(MAKE) --no-print-directory -C $$mod go-mod-tidy || exit 1; \
|
||||
done
|
||||
|
||||
# Opt in to vips-tagged sources: `ENABLE_VIPS=true
|
||||
# make test` compiles files behind `//go:build enable_vips` (e.g. thumbnails).
|
||||
TAGS ?=
|
||||
ifdef ENABLE_VIPS
|
||||
ifeq ($(strip $(TAGS)),)
|
||||
TAGS := enable_vips
|
||||
else
|
||||
TAGS := $(TAGS),enable_vips
|
||||
endif
|
||||
endif
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@go test -v -tags '$(TAGS)' -coverprofile coverage.out ./...
|
||||
|
||||
@@ -69,13 +69,15 @@ Use as URL `localhost:9200` and the user/password printed.
|
||||
|
||||
Infinite Scale allows the following ownCloud clients:
|
||||
|
||||
* [web](https://github.com/owncloud/web),
|
||||
* Web (bundled in this repository under [`web/`](web/)),
|
||||
* [Android](https://github.com/owncloud/android),
|
||||
* [iOS](https://github.com/owncloud/ios-app) and
|
||||
* [Desktop](https://github.com/owncloud/client/)
|
||||
|
||||
to synchronize and share file spaces with a scalable server backend based on [reva](https://reva.link/) using open and well-defined APIs like [WebDAV](http://www.webdav.org/) and [CS3](https://github.com/cs3org/cs3apis/).
|
||||
|
||||
The Web client used to live in the separate [owncloud/web](https://github.com/owncloud/web) repository; it is now developed in-tree here under [`web/`](web/) as part of a single-repo product (backend + web frontend). `owncloud/web` is archived and kept only as the historical record up to its final release; file web-related issues and contributions in this repository instead.
|
||||
|
||||
### Web Office Applications
|
||||
|
||||
Infinite Scale can integrate web office applications such as:
|
||||
@@ -166,5 +168,5 @@ Some builds of stable ownCloud Infinite Scale releases provided by ownCloud GmbH
|
||||
## Copyright
|
||||
|
||||
```console
|
||||
Copyright (c) 2020-2023 ownCloud GmbH <https://owncloud.com>
|
||||
Copyright (c) 2020-2026 ownCloud GmbH <https://owncloud.com>
|
||||
```
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Stop endless redirect loop when admin settings MFA step-up fails
|
||||
|
||||
The admin settings route guards required MFA via `requireAcr()`, which
|
||||
redirected to the IdP whenever the token's `acr` did not match. IdPs like
|
||||
Keycloak answer an `acr_values` request they can't satisfy with a lower `acr`
|
||||
instead of an error, so a user without a second factor at hand was trapped in a
|
||||
redirect loop. `requireAcr()` now uses the same protection as the vault: the
|
||||
step-up carries its target as OIDC state, and if the IdP answers it without the
|
||||
required `acr`, `requireAcr()` returns false. The admin settings then redirect
|
||||
to the default view and show an error message.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/13069
|
||||
https://github.com/owncloud/ocis/pull/13070
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: Announce status messages to screen readers
|
||||
|
||||
Status messages such as "copied to clipboard" or "file restored successfully"
|
||||
were not reliably read out by screen readers. The underlying announcement
|
||||
area was never cleared between messages, so a repeated or rapid message
|
||||
could be silently dropped, especially when combined with a focus change
|
||||
elsewhere on the page.
|
||||
|
||||
The announcement area is now cleared before each new message and refilled
|
||||
after a short delay, so status messages are announced consistently.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13024
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Fix AuthApp and basic auth requests with custom PROXY_USER_OIDC_CLAIM
|
||||
|
||||
We fixed AuthApp (app password) and HTTP basic auth requests returning an
|
||||
internal server error whenever PROXY_USER_OIDC_CLAIM was set to anything
|
||||
other than its default value. Both authenticators put the already
|
||||
authenticated user directly into the request context instead of faking
|
||||
incomplete claims for the account resolver to re-resolve. We also made sure
|
||||
a user who only ever authenticates this way still gets a default role
|
||||
assigned, and that these requests keep getting rejected on deployments with
|
||||
multiple instances enabled, since neither carries tenant-membership
|
||||
information.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13107
|
||||
@@ -0,0 +1,20 @@
|
||||
Bugfix: Record the acting user in the audit log's User field
|
||||
|
||||
The audit log's `User` field is documented as the UID of the user performing
|
||||
the action, but the file and folder converters filled it from the event's
|
||||
`Owner`, which reva does not set, so the field was empty on every upload,
|
||||
download, move, delete, restore and version restore. Where an event did carry
|
||||
an owner, `User` named the owner rather than the person acting, for example a
|
||||
share recipient uploading into a shared folder. Space, user and group events
|
||||
hard-coded the field to an empty string although every one of those events
|
||||
carries the actor.
|
||||
|
||||
`User` is now taken from the event's `Executant` for all of these events. The
|
||||
`Owner` field of file events is unchanged. The failed public-link access event
|
||||
still has no actor and keeps an empty `User`.
|
||||
|
||||
While adding tests for the user and group events, the group member added and
|
||||
removed messages turned out to pass the user and group ids in the wrong order,
|
||||
naming the group as the user and the user as the group; that is fixed too.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/4789
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: fixed missing accessible name on button loading spinner
|
||||
|
||||
`OcButton`'s loading spinner is a `role="img"` element, but it had no
|
||||
accessible name. This tripped an axe `role-img-alt` violation on any
|
||||
page whose e2e a11y check ran while a button was in its loading state,
|
||||
such as the public link password page's "Continue" button.
|
||||
|
||||
The spinner now gets a real accessible name ("Loading") via
|
||||
`OcSpinner`'s `ariaLabel` prop, marked `aria-live="polite"` so it is
|
||||
actively announced to screen reader users instead of only being
|
||||
described if focus happens to already be on the button.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13018
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Fix closing a shared document from the office editor
|
||||
|
||||
Closing a document or using "Open file location" in the office editor failed
|
||||
with a private link error for users who had a single file shared with them.
|
||||
The editor linked to the folder containing the file, which belongs to the
|
||||
sharer and is not accessible to the sharee. The folder link is now only
|
||||
provided if the user can access the folder, otherwise closing the editor
|
||||
leads back to oCIS.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13198
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Announce autocomplete comboboxes correctly to screen readers
|
||||
|
||||
Autocomplete fields such as the language and design selectors on the account
|
||||
page did not announce themselves as comboboxes to assistive technology. The
|
||||
combobox role and its related ARIA attributes were set on a wrapper element
|
||||
that could not receive keyboard focus, while the actual focusable input
|
||||
exposed a generic, hardcoded label instead of the field's own label.
|
||||
|
||||
The combobox role, its state attributes and the accessible name are now set
|
||||
directly on the focusable input, so screen readers announce the field as a
|
||||
combobox with the correct label.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13041
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Do not allow credentials for wildcard CORS origins
|
||||
|
||||
CORS responses no longer send `Access-Control-Allow-Credentials: true` when the
|
||||
configured origins permit any origin: an empty list, `*`, or a wildcard pattern
|
||||
such as `https://*`. In those cases credentials are dropped and a warning is
|
||||
logged. This applies across all CORS paths (the shared HTTP middleware, the reva
|
||||
interceptor used by the frontend and ocm services, ocdav, and the tus upload
|
||||
handler). Explicitly configured origins are unaffected and keep credentials, so
|
||||
intended cross-origin setups continue to work.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12983
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Show a clear error for deleted public links and files in app views
|
||||
|
||||
Opening a file via a public link in an app such as the preview, after the link
|
||||
or the file had been deleted, showed the message "Unknown error". The server
|
||||
answers with an empty 404, which the WebDAV client turns into a generic message,
|
||||
and app views that failed while loading the folder passed only that message on.
|
||||
These views now show "The resource could not be located, it may not exist
|
||||
anymore.", as the other loading paths already did.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/13138
|
||||
https://github.com/owncloud/ocis/pull/13156
|
||||
@@ -0,0 +1,9 @@
|
||||
Bugfix: Show image preview for files with spaces in the name on public links
|
||||
|
||||
The preview in the details panel was not shown for files opened via a public
|
||||
link when the file name contained spaces. The preview URL was used unquoted in a
|
||||
CSS `url()`, so the browser dropped it and never requested the thumbnail. The
|
||||
URL is now quoted.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/13137
|
||||
https://github.com/owncloud/ocis/pull/13150
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: fixed low color contrast on disabled danger buttons
|
||||
|
||||
Disabled buttons using the "danger" styling, such as the "Empty trash bin"
|
||||
button when there is nothing to delete, showed their label text with very
|
||||
low contrast against the button background, making the text hard to read.
|
||||
|
||||
The muted background color used for these buttons in a disabled state has
|
||||
been darkened, and the fading effect applied to disabled buttons no longer
|
||||
washes out the danger button background, restoring readable contrast
|
||||
between the label and the background.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12992
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Keep keyboard focus on the trigger when a dropdown closes
|
||||
|
||||
Dropdown and context menus that close on item click (e.g. the per-file "..."
|
||||
menu) removed the clicked item from the page as they closed, so keyboard
|
||||
focus fell back to the page body. Screen readers then re-announced the
|
||||
whole page, drowning out any status message the action had just triggered.
|
||||
|
||||
The dropdown now returns focus to the button that opened it when it closes,
|
||||
unless the clicked action already moved focus somewhere else on its own.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13025
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: fixed low color contrast on dropdown menu item hover text
|
||||
|
||||
Items in dropdown menus, such as the "New" file/folder menu, changed
|
||||
their text to a color meant for use as a background rather than as
|
||||
text when hovered. On top of the generic hover background used
|
||||
across the app, this produced poor contrast in some themes.
|
||||
|
||||
Hovered menu items now keep the same text color already used before
|
||||
hovering, which reads correctly against the hover background in
|
||||
every theme.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12994
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: fixed low color contrast on file name in editor topbar
|
||||
|
||||
The file name and extension shown in the topbar when a file is open,
|
||||
for example in an editor, were displayed in white on top of a light
|
||||
brand-colored background in some theme variants, making the text
|
||||
hard to read.
|
||||
|
||||
The text now uses a dark color instead, restoring readable contrast
|
||||
against that background.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12997
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: fixed low color contrast on disabled danger button text
|
||||
|
||||
Disabled filled danger buttons, such as the "Empty trash bin" button
|
||||
in the deleted files view, displayed their text and icon in a color
|
||||
too close to the background fill, making them hard to read.
|
||||
|
||||
The disabled text and icon color is now forced to white, restoring
|
||||
readable contrast against the button's background. The vault light
|
||||
theme's muted danger color was also darkened, since it was too light
|
||||
to meet contrast requirements against white text.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12998
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Disable rubber-band overscroll of the page in file apps
|
||||
|
||||
Scrolling to the top or bottom of the content in a file app such as
|
||||
OnlyOffice, Collabora or the text editor could make the whole page bounce
|
||||
along with it, including the top bar and the app frame, briefly revealing the
|
||||
blank page background behind them. The vertical elastic overscroll of the page
|
||||
is now disabled while a file is open in one of these apps, so the surrounding
|
||||
layout stays in place.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13140
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: Files no longer stay in processing after upload or copy
|
||||
|
||||
After uploading or copying files, some of them sometimes stayed greyed out as
|
||||
"processing" until the page was reloaded. This happened when processing
|
||||
finished while the file list was still being loaded: the update from the
|
||||
server was ignored and the list then showed the file as still processing.
|
||||
|
||||
Files whose processing has finished are now refreshed automatically when they
|
||||
show up in the file list as processing.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13134
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Remove the unmarshalable request body field from graph log messages
|
||||
|
||||
We've removed the `body` field from the log messages of the graph service's HTTP
|
||||
handlers. The field was set from `http.Request.Body`, an `io.ReadCloser`, which
|
||||
can never be serialized into a useful log value.
|
||||
|
||||
The tracing middleware replaces the request body with a wrapper that carries an
|
||||
exported function field, so serializing it failed outright and the log line was
|
||||
emitted with `"body": "marshaling error: json: unsupported type: func(int64)"`
|
||||
instead of the payload. Without the tracing middleware the field serialized to an
|
||||
empty object. In both cases the intended payload was never logged.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12915
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Keep /me working when the preferred language lookup fails
|
||||
|
||||
The graph service returned HTTP 500 for the whole `GET /graph/v1.0/me` response
|
||||
whenever the settings lookup for the user's preferred language failed, including
|
||||
on a transient timeout. Since `/me` is the first request the Web UI makes after
|
||||
login, that locked affected users out of oCIS entirely. The lookup failure is
|
||||
now logged at warn level and `preferredLanguage` falls back to
|
||||
`OCIS_DEFAULT_LANGUAGE`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13188
|
||||
@@ -0,0 +1,15 @@
|
||||
Bugfix: Keep bind config in sync when resetting a service user password
|
||||
|
||||
Resetting an IDM service user password with `ocis idm resetpassword
|
||||
--user-type service` only changed the entry in the IDM directory. Services such
|
||||
as auth-basic, users and groups still bound to LDAP as the `reva` service user
|
||||
using the old `bind_password` from their configuration, so after a restart
|
||||
those binds failed and regular admin login started returning 401 Unauthorized.
|
||||
|
||||
The command now rewrites the matching `bind_password` and
|
||||
`service_user_passwords` keys in `ocis.yaml` when it is present, and always
|
||||
prints the environment variables that must carry the new password for env-var
|
||||
and distributed deployments it cannot rewrite.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13176
|
||||
https://github.com/owncloud/ocis/issues/12569
|
||||
@@ -0,0 +1,25 @@
|
||||
Bugfix: Fix the LDAP master-ID filter when the base filter is empty
|
||||
|
||||
The function `EnhanceFilterWithMasterID` in `ocis-pkg/ldap/filter.go` adds a
|
||||
master-ID clause to an LDAP filter with OR. An empty filter means "no
|
||||
restriction". Before this fix, the function replaced an empty filter with a
|
||||
master-ID-only filter. This action restricted an unrestricted search to
|
||||
master-ID users only.
|
||||
|
||||
The bug broke the search for a user on another instance in multi-instance
|
||||
deployments. This search uses the Graph API endpoint `/graph/v1.0/users`.
|
||||
Multi-instance deployments use this search to find a user to share a resource
|
||||
with.
|
||||
|
||||
Now the function keeps an empty filter unchanged. The function still adds a
|
||||
master-ID clause to a filter that is not empty.
|
||||
|
||||
The `graph`, `auth-basic`, `users`, and `groups` services also use this
|
||||
function to compute their default LDAP user filter when
|
||||
`OCIS_MULTI_INSTANCE_MASTER_ID` is set. An empty user filter now means these
|
||||
services resolve or authenticate every user in the shared LDAP directory,
|
||||
not only master-ID users. Each of these services now rejects startup when
|
||||
`OCIS_MULTI_INSTANCE_MASTER_ID` is set and its own user filter is empty.
|
||||
Set an explicit `OCIS_LDAP_USER_FILTER` for every multi-instance deployment.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13100
|
||||
@@ -0,0 +1,15 @@
|
||||
Bugfix: Unify when the maintenance banner clears
|
||||
|
||||
The Web frontend showed the maintenance banner inconsistently depending on which
|
||||
HTTP client happened to make the last request: the webdav client cleared the banner
|
||||
on any error that was not a maintenance response, including a plain 404 or 500,
|
||||
while the other client only cleared it on a genuine successful response. Whether the
|
||||
banner disappeared during real maintenance could therefore depend on which request
|
||||
happened to run last.
|
||||
|
||||
Both clients now agree: the maintenance banner is only raised by the explicit
|
||||
maintenance response, and any other real response from the server clears it, since
|
||||
that is not the same as general unhealthiness. Only a transport-level failure, where
|
||||
no response is received at all, leaves the banner state untouched.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12966
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: fixed low color contrast on nav and primary button hover states
|
||||
|
||||
Non-active sidebar navigation items, as well as buttons using the
|
||||
"primary" styling, showed their text and icons in black on top of a
|
||||
dark hover background in some themes, making them hard to read while
|
||||
hovering.
|
||||
|
||||
The hover state for these elements now switches to a light color
|
||||
instead of always using black, restoring readable contrast between
|
||||
the text and the background while hovering.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12993
|
||||
@@ -0,0 +1,11 @@
|
||||
Bugfix: fixed low color contrast on notification bell badge
|
||||
|
||||
The unread notification count badge on the notification bell used a
|
||||
hardcoded red background with white text, which fell below the
|
||||
WCAG AA contrast requirement for text that size.
|
||||
|
||||
The badge now uses the design system's danger color tokens instead,
|
||||
which are already tuned to keep sufficient contrast with their
|
||||
paired text color across all theme variants.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13000
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: notification bell now announces the unread count
|
||||
|
||||
The notification bell's accessible name was a static "Notifications"
|
||||
string regardless of how many unread notifications there were. Since
|
||||
that label overrides all other content for assistive technology, screen
|
||||
reader users never heard the unread count that sighted users see on the
|
||||
bell's badge.
|
||||
|
||||
The bell's accessible name and tooltip now include the exact unread
|
||||
count, with correct singular/plural wording.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13003
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: fixed arrow-key navigation in the notification dropdown
|
||||
|
||||
Opening the notification bell's dropdown did not move keyboard focus into
|
||||
it. Arrow-key navigation only started working after an extra, unrelated
|
||||
Tab press, and pressing an arrow key too early scrolled the page instead,
|
||||
which looked like the dropdown had closed.
|
||||
|
||||
The dropdown now moves focus to its first item as soon as it opens, so
|
||||
arrow keys work immediately, matching the behavior of other click-triggered
|
||||
dropdowns in the application.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13002
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Mark all notifications as read
|
||||
|
||||
Clicking "Mark all read" in the notifications menu only cleared the list
|
||||
visually. The request sent to the server was malformed, so the notifications
|
||||
were not deleted and reappeared after a page reload. This affected the regular
|
||||
view as well as the Safe.
|
||||
|
||||
The request is now sent correctly and the notifications are removed for good.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13157
|
||||
@@ -0,0 +1,9 @@
|
||||
Bugfix: Remove federated connections
|
||||
|
||||
Removing a federated connection in the connections panel sent a malformed
|
||||
request to the server, so the connection was not actually removed and could
|
||||
reappear after a page reload.
|
||||
|
||||
The request is now sent correctly and the connection is removed for good.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13160
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: Stop logging "no user in context" for data gateway requests
|
||||
|
||||
The proxy's create-home middleware logged an error for every request that
|
||||
carried a reva token but no user. reva's internal downloads through the data
|
||||
gateway (`/data`) are such requests, so every file download added an
|
||||
error-level line. These requests are now passed on with a debug-level log.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/13101
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Purge revisions stored with whole-second timestamps
|
||||
|
||||
The revisions purge command reported a clean storage when revisions were still
|
||||
present. Revision filenames are the previous mtime formatted with
|
||||
time.RFC3339Nano, which omits fractional seconds on a whole second. Names such
|
||||
as `.REV.1601-01-01T00:00:00Z` never matched the purge pattern, so those
|
||||
revisions stayed on disk.
|
||||
|
||||
The matcher now treats the decimal point and fractional digits as optional.
|
||||
Whole-second revisions and their `.mpk` and `.mlock` companions are discovered
|
||||
and purged along with revisions that still carry a fractional timestamp.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/11167
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Recover uploads stuck in processing when the blob commit fails
|
||||
|
||||
When the final blob commit failed after postprocessing, the node kept its
|
||||
`processing` marker with no retry and no timeout. Every download then returned
|
||||
`425 Too Early`, the file could not be deleted, and its reserved size kept
|
||||
counting against the quota.
|
||||
|
||||
The commit is now retried with backoff. If it still fails, the node is reverted
|
||||
to a recoverable failed state, which clears the processing marker and releases
|
||||
the reserved quota.
|
||||
|
||||
https://github.com/owncloud/reva/pull/733
|
||||
https://github.com/owncloud/ocis/pull/12970
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Restoring an already-restored trash item now returns 404
|
||||
|
||||
Issuing a second restore request for a trash item that had already been
|
||||
restored or purged returned a 500 (internal server error) instead of a 404
|
||||
(not found). This made benign duplicate restores, such as those caused by a
|
||||
sync client retrying a request, look like server errors. The restore
|
||||
operation now reports 404 for this case, matching the existing behavior of
|
||||
purging an already-purged item.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/TODO
|
||||
@@ -0,0 +1,14 @@
|
||||
Bugfix: Restore focus after changing the account language
|
||||
|
||||
Selecting a new language in the account page's Language dropdown dropped
|
||||
keyboard focus to the page body instead of keeping it on the dropdown, and
|
||||
the confirmation message was not announced to screen readers afterward.
|
||||
|
||||
The language change triggers a fair amount of background work (reloading
|
||||
translations, switching the active language, saving the preference) before
|
||||
it finishes, which raced against the dropdown's own best-effort focus
|
||||
handling. Focus is now explicitly restored only once that work has fully
|
||||
settled, and before the confirmation message is shown, so the announcement
|
||||
is no longer cancelled by a focus change happening right after it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13045
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: fixed low color contrast on share permission dropdown hover text
|
||||
|
||||
The share permission dropdown's role options, such as "Can view" or
|
||||
"Can edit", showed their hovered text in a color too close in
|
||||
lightness to the hover background in the dark theme, making it hard
|
||||
to read.
|
||||
|
||||
The hover text color has been lightened slightly, restoring
|
||||
readable contrast between the text and the background while
|
||||
hovering.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12995
|
||||
@@ -0,0 +1,14 @@
|
||||
Bugfix: added a keyboard shortcut to move focus out of the text editor
|
||||
|
||||
Opening the text/markdown editor moved keyboard focus straight into the
|
||||
edit area, but Tab is bound to indenting rather than moving focus, so
|
||||
there was no reliable way to reach the toolbar without leaving the file
|
||||
entirely. The editor's own built-in escape hatch for this doesn't work
|
||||
on a standard Mac keyboard, since the key combo it relies on is consumed
|
||||
by macOS as a diacritic shortcut before it reaches the page.
|
||||
|
||||
Pressing Ctrl+M now moves focus from the edit area to the toolbar, the
|
||||
same way on every platform. The editor's accessible description also
|
||||
announces this shortcut for assistive technology users.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13004
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Show an error instead of "no deleted files" for inaccessible trash
|
||||
|
||||
Members of a space who are not allowed to list its trash, for example members
|
||||
with the "Can edit" role, were told that the space has no deleted files, even
|
||||
though files had been deleted. The trash view now tells the user that the
|
||||
deleted files could not be loaded and that they might lack the permission to
|
||||
view them. A trash that is really empty still shows the "no deleted files"
|
||||
message.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13105
|
||||
@@ -0,0 +1,9 @@
|
||||
Bugfix: Clarify the message for a trash the user may not access
|
||||
|
||||
When a member of a space was not allowed to list the space's deleted files, the
|
||||
trash view said the user "may not" have the permission, even though the server
|
||||
had clearly denied access. The view now states that the user does not have
|
||||
permission to view the deleted files. Other failures to load the trash show a
|
||||
generic error message instead of a guess about permissions.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13217
|
||||
@@ -0,0 +1,10 @@
|
||||
Bugfix: Clean up the trash view in the Safe
|
||||
|
||||
The trash offered a "Copy permanent link" action for deleted items, which
|
||||
cannot be linked to. The action is no longer shown for deleted items.
|
||||
|
||||
The personal space in the trash was labelled "Personal" in the Safe, while the
|
||||
rest of the interface calls it "Safe-Personal". The trash now uses the same
|
||||
name.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13136
|
||||
@@ -0,0 +1,7 @@
|
||||
Bugfix: Text and BMP file previews failed where libvips has no ImageMagick
|
||||
|
||||
Downloading the preview of a text or BMP file failed with a `500 could not get thumbnail` error on systems where libvips comes without ImageMagick support, such as minimal container images. The rendered text image was passed through a BMP encoding round-trip first, and uploaded BMP files were handed to libvips as bytes; libvips can only load BMP images via ImageMagick.
|
||||
|
||||
The rendered text image is now handed over to libvips directly from memory, and BMP files are decoded in Go before the handover, so both no longer depend on ImageMagick being installed alongside libvips.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12961
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: Explain why an upload or a duplicate does not fit the space quota
|
||||
|
||||
An upload rejected for lack of room named only the shortfall ("You need
|
||||
additional 1 MB"), and a failed duplicate was reported as a failed move with
|
||||
"Insufficient quota" underneath. Both messages now name the space and what to do
|
||||
about it, and a failed duplicate is reported as one.
|
||||
|
||||
The upload check also measured only the last file of a batch, and skipped the
|
||||
check altogether for a space with nothing left, because a remaining quota of 0
|
||||
was read as "unknown".
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12943
|
||||
@@ -0,0 +1,12 @@
|
||||
Bugfix: Return a retryable 503 when the OIDC userinfo call fails transiently
|
||||
|
||||
A transient failure of the OIDC userinfo call (a timeout, a network error or a
|
||||
5xx/429 from the IdP) was mapped to HTTP 401. Clients read the 401 as an invalid
|
||||
session and logged the user out on a brief IdP slowdown.
|
||||
|
||||
The proxy now distinguishes a transient IdP failure from an authentication
|
||||
failure and returns a retryable 503 (with Retry-After) for the former, so clients
|
||||
retry and keep their session. A genuinely invalid or expired token still returns
|
||||
401.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12999
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: Show correct message when Safe access is denied for lacking permission
|
||||
|
||||
A user without permission to use the Safe who opened the Safe URL directly was
|
||||
shown "Not logged in" with a "Log in again" button, even though they were
|
||||
still logged in. The page now shows "Access denied" with a "Continue" button
|
||||
that returns to the app for this case.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13111
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: Redirect to the default app when opening the vault root
|
||||
|
||||
Opening the vault without a path (`/vault`) showed a "not found" page, because
|
||||
only the regular root redirected to the default app. The vault root now
|
||||
redirects to the default app inside the vault, the same way the regular root
|
||||
does outside of it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13192
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: Vault share search could show ineligible users
|
||||
|
||||
Searching for a share recipient by a cross-instance reference (e.g.
|
||||
`user@school`) could return a user without vault access, letting them be
|
||||
selected in the Safe share picker before failing with an error afterward.
|
||||
Vault eligibility is now always enforced for this kind of search too.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13154
|
||||
@@ -0,0 +1,14 @@
|
||||
Bugfix: Stop endless redirect loop when vault MFA step-up fails
|
||||
|
||||
Web requested the vault MFA level via `acr_values`, which is a voluntary claim.
|
||||
IdPs like Keycloak return a token with a lower `acr` instead of an error when
|
||||
the user can't complete the second factor (none enrolled, device not at hand).
|
||||
Web then started the step-up again on every return, trapping the user in a
|
||||
redirect loop. The step-up request now carries the vault page as OIDC state. If
|
||||
the IdP answers it without the required `acr`, web stops retrying, reloads the
|
||||
page outside the vault and shows an error message there. Leaving the vault needs
|
||||
a full page load, because vault mode is fixed for the lifetime of the page.
|
||||
Returning without the IdP answering, e.g. via the browser's back button, still
|
||||
starts a new step-up.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12985
|
||||
@@ -0,0 +1,15 @@
|
||||
Bugfix: Open Safe permanent links from outside the Safe
|
||||
|
||||
A permanent link to a file in the Safe, opened in a regular Drive tab, showed
|
||||
"An error occurred while resolving the private link" instead of the file. The
|
||||
Web frontend recognized Safe files by a storage provider id that the server
|
||||
only sends to sessions already inside the Safe, so a Drive tab never redirected
|
||||
the link into the Safe.
|
||||
|
||||
The Safe storage provider id is fixed, so the frontend now uses it as a
|
||||
constant, like the share jail and OCM ids. This also keeps Safe notifications
|
||||
out of the Drive view and lets the invite form recognize Safe resources in
|
||||
Drive mode. The `vaultStorageProvider` getter of the web-pkg capability store
|
||||
is removed; use `VAULT_STORAGE_PROVIDER_ID` from web-client instead.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13001
|
||||
@@ -0,0 +1,13 @@
|
||||
Bugfix: Fix file and folder downloads in vault mode
|
||||
|
||||
Downloading a file in the vault failed with a 403 error. A download uses a
|
||||
signed link without a login token. Thus the proxy uses the stored MFA status of
|
||||
the user. The proxy did not store this status. Now the proxy stores it after it
|
||||
knows the user. A download is accepted if the user had a request with MFA within
|
||||
the MFA session duration.
|
||||
|
||||
Downloading a folder or several files in the vault failed with a 404 error. In
|
||||
vault mode, the web UI requested the signing key from a wrong address. Now the
|
||||
web UI uses the correct address.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13097
|
||||
@@ -0,0 +1,14 @@
|
||||
Bugfix: Retry WOPI rename and upload while the file is processing
|
||||
|
||||
Renaming a file or uploading its contents through the collaboration service
|
||||
failed with a 500 when the file was still being processed, for example right
|
||||
after it had been created by a PutRelativeFile request. The storage answers
|
||||
with a "too early" status in that case, which was only handled when deleting
|
||||
files.
|
||||
|
||||
The collaboration service now retries the rename and upload requests with an
|
||||
increasing waiting time until the file is ready. The delete request uses the
|
||||
same retry logic, which is now limited to 10 retries instead of waiting
|
||||
indefinitely.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13141
|
||||
@@ -9,3 +9,5 @@ https://github.com/owncloud/ocis/pull/12302
|
||||
https://github.com/owncloud/ocis/pull/12439
|
||||
https://github.com/owncloud/ocis/pull/12266
|
||||
https://github.com/owncloud/ocis/pull/12730
|
||||
https://github.com/owncloud/ocis/pull/13066
|
||||
https://github.com/owncloud/ocis/pull/13081
|
||||
@@ -0,0 +1,15 @@
|
||||
Change: Replace GRPC_MAX_CONNECTION_AGE with client keepalive
|
||||
|
||||
The grpc clients now send a keepalive ping while a request is in flight and fail
|
||||
the requests on a connection whose peer stops answering, instead of waiting for
|
||||
as long as the caller allows. This covers both the reva CS3 clients (gateway,
|
||||
storage-users, storage-shares, ...) and the go-micro based clients used for
|
||||
inter-service calls between the other oCIS services. Set GRPC_CLIENT_KEEPALIVE_TIME
|
||||
and GRPC_CLIENT_KEEPALIVE_TIMEOUT to enable and tune this; leave them unset to keep
|
||||
grpc's own default (no pings).
|
||||
|
||||
GRPC_MAX_CONNECTION_AGE has been removed. It only closed healthy connections on
|
||||
a timer, never ended a request that was already in flight, and silently did
|
||||
nothing when its value had no unit suffix.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13020
|
||||
@@ -0,0 +1,13 @@
|
||||
Change: Remove the MFA session extension popup in vault mode
|
||||
|
||||
In vault mode, the web UI showed a popup shortly before the multi-factor
|
||||
authentication session was about to expire, offering to extend or dismiss it.
|
||||
Extending only reset a timer in the browser and did not renew anything on the
|
||||
server, so the popup has been removed.
|
||||
|
||||
The frontend service no longer exposes the MFA session duration in its
|
||||
capabilities, and its `session_duration` setting has been removed. The
|
||||
`OCIS_MFA_SESSION_DURATION` environment variable is still used by the proxy
|
||||
service.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13085
|
||||
@@ -0,0 +1,9 @@
|
||||
Change: Remove the owncloudsql driver
|
||||
|
||||
We removed the deprecated `owncloudsql` driver from oCIS.
|
||||
|
||||
The services `storage-users`, `auth-basic`, `users`, `groups`, and `sharing` no
|
||||
longer accept the value `owncloudsql` for their driver. The related
|
||||
configuration sections and environment variables are removed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13191
|
||||
@@ -0,0 +1,8 @@
|
||||
Enhancement: Add Mermaid diagram editor
|
||||
|
||||
Added a dedicated split-pane editor and live preview for standalone Mermaid
|
||||
diagram files (`.mmd`/`.mermaid`). Previously Mermaid rendering only worked
|
||||
inside a fenced code block of a Markdown document; there was no way to edit
|
||||
a diagram on its own without wrapping it in Markdown first.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12676
|
||||
@@ -0,0 +1,12 @@
|
||||
Enhancement: Record tag changes in the audit log
|
||||
|
||||
Adding or removing tags on a file or folder left no trace in the audit log.
|
||||
The graph service already publishes `TagsAdded` and `TagsRemoved` events for
|
||||
every change, but only the search service listened to them.
|
||||
|
||||
The audit service now records both: `file_tags_add` and `file_tags_remove`
|
||||
entries carry the acting user, the file id and path, the space owner and the
|
||||
tags concerned. The graph service also sets the timestamp on the two events,
|
||||
which it left empty before.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/13054
|
||||
@@ -0,0 +1,14 @@
|
||||
Enhancement: Make the public share expiry janitor configurable
|
||||
|
||||
The sharing service runs a background janitor that permanently deletes
|
||||
expired public shares. Whether that cleanup runs at all could previously only
|
||||
be set in the sharing service's yaml config, and how often it ran was fixed
|
||||
internally with no way to tune it.
|
||||
|
||||
Both settings are now exposed as environment variables:
|
||||
OCIS_SHARING_ENABLE_EXPIRED_SHARES_CLEANUP toggles the cleanup (default:
|
||||
enabled, expired shares stay hidden from listings even when disabled), and
|
||||
the new OCIS_SHARING_JANITOR_RUN_INTERVAL sets the interval in seconds
|
||||
between janitor runs (default: 3600).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13020
|
||||
@@ -0,0 +1,11 @@
|
||||
Enhancement: Default 30-day expiration for vault shares
|
||||
|
||||
When a user or group share of a vault file or folder is created without an
|
||||
expiration date, the server now preconfigures a default expiration (30 days
|
||||
by default, configurable via `GRAPH_DEFAULT_VAULT_SHARE_EXPIRATION_DAYS`) to
|
||||
encourage data minimization. The sharer can override or shorten this value.
|
||||
|
||||
Non-vault shares and space memberships are exempt and stay unbounded, as
|
||||
space memberships represent a permanent organizational role.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12988
|
||||
@@ -0,0 +1,27 @@
|
||||
Enhancement: Inline images in the markdown editor
|
||||
|
||||
Uploading an image in the markdown editor did nothing at all - neither
|
||||
drag-and-drop nor the "Upload Images" toolbar button produced a result, a
|
||||
progress indicator, or an error. The feature had been deliberately suppressed
|
||||
because there was no answer to where an uploaded image should be stored, and
|
||||
because a recipient of a public link to a single markdown file has no
|
||||
permission to read an image stored next to it.
|
||||
|
||||
Images dropped or picked in the markdown editor are now encoded into the
|
||||
document itself as base64 data URIs, so a shared document carries its own
|
||||
images and needs no further permissions. Because the image bytes are now part
|
||||
of the document, two limits keep documents small enough to stay fully
|
||||
searchable: a maximum size per image, and a budget for the total size of all
|
||||
images in one document. An image that exceeds either limit is rejected with a
|
||||
notification naming the image and the limit, instead of failing silently.
|
||||
|
||||
Both limits are configurable through the text editor's app configuration as
|
||||
`maxImageSize` and `maxDocumentImageSize`, given in bytes and defaulting to
|
||||
2 MB and 10 MB respectively.
|
||||
|
||||
The editor's "Crop And Upload" entry is no longer offered. Cropping was not part
|
||||
of the reported problem, so it stays out until users ask for it, and images are
|
||||
inlined exactly as they were picked.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/12967
|
||||
https://github.com/owncloud/web/issues/12407
|
||||
@@ -0,0 +1,13 @@
|
||||
Enhancement: Add a --timeout flag to the search index command
|
||||
|
||||
`ocis search index` called the search service with a fixed 10 minute request
|
||||
timeout. The service walks the whole space inside that request, so once the
|
||||
timeout expired the walk was cancelled with "error walking the tree: context
|
||||
canceled" and everything after that point stayed unindexed. A space whose
|
||||
walk takes longer than ten minutes, for example because the content extractor
|
||||
is slow on a few files, could never be fully indexed from the command line.
|
||||
|
||||
The timeout is now a flag. `--timeout` takes a duration (default `10m`, so the
|
||||
behaviour is unchanged out of the box); `0` waits indefinitely.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/13052
|
||||
@@ -0,0 +1,14 @@
|
||||
Enhancement: Sort "Shared with me" by "Shared by"
|
||||
|
||||
The "Shared by" column in "Shared with me" can now be sorted. Items are ordered
|
||||
by the alphabetised display names of all the people who shared them, joined
|
||||
into one key, so an item shared by several people is placed consistently
|
||||
regardless of which avatar happens to display first. Clicking the column
|
||||
header again reverses the order. The order of the avatars shown in the
|
||||
column and the sidebar is unaffected.
|
||||
|
||||
Sorting by "Shared with" no longer reorders the avatars in that column. They
|
||||
used to stay sorted alphabetically after switching to another sort, until the
|
||||
page was reloaded.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13213
|
||||
@@ -0,0 +1,17 @@
|
||||
Bugfix: Hide "Shared via link" when public sharing is disabled
|
||||
|
||||
The Shares navigation (the desktop tab list and the mobile drop-down) always
|
||||
offered a "Shared via link" entry, even when public link sharing was disabled
|
||||
for the account — for example in the Vault, where the backend rejects public
|
||||
link creation and the capability `files_sharing.public.enabled` reported
|
||||
`false`. The entry led to a page that could never contain anything.
|
||||
|
||||
The Shares navigation was changed to hide the "Shared via link" entry
|
||||
whenever `files_sharing.public.enabled` is `false`. Anyone who still reached
|
||||
the via-link route directly, including through the legacy
|
||||
`/list/shared-via-link` redirect, was redirected to "Shared with me" at
|
||||
navigation time, keeping the current route scope (e.g. `vault`) intact. When
|
||||
public sharing was enabled, all three Shares navigation entries continued to
|
||||
behave exactly as before.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13005
|
||||
@@ -0,0 +1,14 @@
|
||||
Bugfix: The global variable OCIS_CACHE_DATABASE was replaced
|
||||
|
||||
Some services accepted only the global variable OCIS_CACHE_DATABASE for their
|
||||
cache database name. The default values for each service is unique that is
|
||||
why this has not been noticed until now.
|
||||
|
||||
We added a local variable for each service. The GATEWAY service now accepts
|
||||
GATEWAY_PROVIDER_CACHE_DATABASE. The PROXY service now accepts
|
||||
PROXY_OIDC_USERINFO_CACHE_DATABASE. The SETTINGS service now accepts
|
||||
SETTINGS_CACHE_DATABASE. The STORAGE-SYSTEM service now accepts
|
||||
STORAGE_SYSTEM_CACHE_DATABASE. The do not use the global variable OCIS_CACHE_DATABASE
|
||||
to avoid the cache collisions.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13158
|
||||
@@ -0,0 +1,12 @@
|
||||
Enhancement: The public link resolution flag added to PROPFIND
|
||||
|
||||
The public link resolution flag and the context timeout added to PROPFIND request
|
||||
The ocdav PROPFIND handler resolves public link shares to populate the oc:share-type property.
|
||||
A new toggle for skipping that lookup. The toggle is now exposed as
|
||||
OCDAV_DISABLE_PROPFIND_PUBLIC_LINK_RESOLUTION, which can be set to reduce load
|
||||
on services for large collections.
|
||||
Also, the bounded context was added for least public share request. Since this property is needed only
|
||||
to display an icon next to files in the list, indicating that a public link exists,
|
||||
it can be omitted if the ListPublicShares request is slow.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13020
|
||||
@@ -0,0 +1,6 @@
|
||||
Security: Bump grpc dependency
|
||||
|
||||
We've bumped the grpc dependency to fix a vulnerability that could cause a
|
||||
server panic when handling requests missing authority or Host headers.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13066
|
||||
@@ -54,6 +54,11 @@ ADMIN_PASSWORD=
|
||||
# because their passwords are public. Defaults to "false".
|
||||
# Also see: https://doc.owncloud.com/ocis/latest/deployment/general/general-info.html#demo-users-and-groups
|
||||
DEMO_USERS=
|
||||
# Enables oCIS app-passwords (via the "auth-app" service), which let clients
|
||||
# authenticate without the user's live session. Required by some optional
|
||||
# services, e.g. Workflows automations (see the "oCIS Workflows Settings"
|
||||
# section below). Defaults to "false".
|
||||
PROXY_ENABLE_APP_AUTH=
|
||||
# Define the oCIS loglevel used.
|
||||
# For more details see:
|
||||
# https://doc.owncloud.com/ocis/latest/deployment/services/env-vars-special-scope.html
|
||||
@@ -290,6 +295,38 @@ MAIL_SERVER_DOMAIN=
|
||||
MAIL_SERVER_DOCKER_TAG=v1.29.3
|
||||
|
||||
|
||||
### oCIS Workflows Settings ###
|
||||
# AI-powered file workflow automation extension. Adds a frontend extension plus
|
||||
# a backend sidecar routed at https://${OCIS_DOMAIN}/workflows/api.
|
||||
# IMPORTANT: Workflows also requires the web extensions volume, so EXTENSIONS
|
||||
# must be enabled too, see the "oCIS Web Extensions" section above. Also, if
|
||||
# you disable Workflows again later, delete the ocis-apps volume to remove
|
||||
# its stale frontend assets (same caveat as the other web extensions above).
|
||||
# IMPORTANT: If you want to use Workflows automations (scheduled/event-triggered
|
||||
# runs, as opposed to only manual "Run now"), you also MUST:
|
||||
# 1. Set PROXY_ENABLE_APP_AUTH=true in the Infinite Scale Settings above.
|
||||
# 2. Add 'auth-app' to the START_ADDITIONAL_SERVICES envvar in the Infinite
|
||||
# Scale Settings above, e.g. START_ADDITIONAL_SERVICES="notifications,auth-app".
|
||||
# Both are left disabled by default, since they widen the oCIS instance's
|
||||
# authentication surface (app-passwords) for the whole deployment, not just
|
||||
# for Workflows.
|
||||
# Note: the leading colon is required to enable the service.
|
||||
#WORKFLOWS=:workflows.yml
|
||||
# Set the desired docker image tag or digest.
|
||||
# Defaults to "latest", which tracks an unreleased, weekly-rebuilt rolling
|
||||
# build of ocis-workflows' main branch (no versioned releases exist yet).
|
||||
# Consider pinning a dated tag (e.g. "20260602") for reproducible deployments.
|
||||
WORKFLOWS_DOCKER_TAG=latest
|
||||
# LLM backend used for the AI workflow nodes. Point at any OpenAI-compatible
|
||||
# endpoint (e.g. Ollama, OpenAI, ...). Required, no default in this deployment.
|
||||
WORKFLOWS_LLM_ENDPOINT=
|
||||
WORKFLOWS_LLM_MODEL=
|
||||
WORKFLOWS_LLM_API_KEY=
|
||||
# Key used to encrypt secrets (e.g. app passwords) stored by the Workflows
|
||||
# backend. Required, generate your own with: openssl rand -base64 32
|
||||
WORKFLOWS_ENCRYPTION_KEY=
|
||||
|
||||
|
||||
### Debugging - Monitoring ###
|
||||
# Please see documentation at: https://owncloud.dev/ocis/deployment/monitoring-tracing/
|
||||
# Note: the leading colon is required to enable the service.
|
||||
@@ -304,4 +341,4 @@ MAIL_SERVER_DOCKER_TAG=v1.29.3
|
||||
# This MUST be the last line as it assembles the supplemental compose files to be used.
|
||||
# ALL supplemental configs must be added here, whether commented or not.
|
||||
# Each var must either be empty or contain :path/file.yml
|
||||
COMPOSE_FILE=docker-compose.yml${OCIS:-}${TIKA:-}${S3NG:-}${S3NG_MINIO:-}${COLLABORA:-}${IMPORTER:-}${CLAMAV:-}${ONLYOFFICE:-}${EXTENSIONS:-}${UNZIP:-}${DRAWIO:-}${JSONVIEWER:-}${PROGRESSBARS:-}${EXTERNALSITES:-}${PHOTOADDON:-}${ADVANCEDSEARCH:-}${MAIL_SERVER:-}${MONITORING:-}${KEYCLOAK:-}${VAULT_STORAGE:-}
|
||||
COMPOSE_FILE=docker-compose.yml${OCIS:-}${TIKA:-}${S3NG:-}${S3NG_MINIO:-}${COLLABORA:-}${IMPORTER:-}${CLAMAV:-}${ONLYOFFICE:-}${EXTENSIONS:-}${UNZIP:-}${DRAWIO:-}${JSONVIEWER:-}${PROGRESSBARS:-}${EXTERNALSITES:-}${PHOTOADDON:-}${ADVANCEDSEARCH:-}${MAIL_SERVER:-}${MONITORING:-}${KEYCLOAK:-}${VAULT_STORAGE:-}${WORKFLOWS:-}
|
||||
@@ -23,3 +23,14 @@ Keycloak can be optionally enabled by uncommenting the corresponding variables i
|
||||
- `KEYCLOAK=:keycloak.yml`
|
||||
|
||||
Note that Keycloak requires the default `ocis` Identity Provider to be disabled, which is automatically handled when the `keycloak.yml` configuration is used.
|
||||
|
||||
### oCIS Workflows
|
||||
|
||||
[oCIS Workflows](https://github.com/owncloud/ocis-workflows) is an AI-powered file workflow automation extension. It can be optionally enabled by uncommenting the corresponding variables in the `.env` file:
|
||||
- `WORKFLOWS=:workflows.yml`
|
||||
|
||||
Note that Workflows requires the `ocis-apps` volume provided by the web extensions configuration, so `EXTENSIONS=:web_extensions/extensions.yml` must also be enabled. You also need to set `WORKFLOWS_ENCRYPTION_KEY` (e.g. via `openssl rand -base64 32`) and point `WORKFLOWS_LLM_ENDPOINT` / `WORKFLOWS_LLM_MODEL` / `WORKFLOWS_LLM_API_KEY` at an OpenAI-compatible LLM backend.
|
||||
|
||||
To use Workflows *automations* (scheduled or event-triggered runs, rather than only manual "Run now"), the backend mints oCIS app-passwords on the user's behalf, which requires oCIS's `auth-app` service. App-password support (`PROXY_ENABLE_APP_AUTH`) and the `auth-app` service are both off by default, since they widen the oCIS instance's authentication surface, so you must explicitly:
|
||||
- Set `PROXY_ENABLE_APP_AUTH=true` in the `.env` file.
|
||||
- Add `auth-app` to `START_ADDITIONAL_SERVICES` in the `.env` file, e.g. `START_ADDITIONAL_SERVICES="notifications,auth-app"`.
|
||||
@@ -1,3 +1,6 @@
|
||||
workflows:
|
||||
config:
|
||||
backendUrl: https://${OCIS_DOMAIN|ocis.owncloud.test}/workflows/api/v1beta1
|
||||
importer:
|
||||
config:
|
||||
companionUrl: https://${COMPANION_DOMAIN|companion.owncloud.test}
|
||||
|
||||
@@ -32,6 +32,8 @@ services:
|
||||
OCIS_INSECURE: "${INSECURE:-false}"
|
||||
# basic auth (not recommended, but needed for eg. WebDav clients that do not support OpenID Connect)
|
||||
PROXY_ENABLE_BASIC_AUTH: "${PROXY_ENABLE_BASIC_AUTH:-false}"
|
||||
# app-passwords (needed e.g. for Workflows automations, see workflows.yml)
|
||||
PROXY_ENABLE_APP_AUTH: "${PROXY_ENABLE_APP_AUTH:-false}"
|
||||
# admin user password
|
||||
IDM_ADMIN_PASSWORD: "${ADMIN_PASSWORD:-admin}" # this overrides the admin password from the configuration file
|
||||
# demo users
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
---
|
||||
services:
|
||||
ocis:
|
||||
volumes:
|
||||
- ./config/ocis/apps.yaml:/etc/ocis/apps.yaml
|
||||
depends_on:
|
||||
workflows-init:
|
||||
condition: service_completed_successfully
|
||||
|
||||
workflows-init:
|
||||
image: owncloud/ocis-workflows:${WORKFLOWS_DOCKER_TAG:-latest}
|
||||
user: root
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
command: ["-c", "cp -R /web/apps/workflows /apps"]
|
||||
volumes:
|
||||
- ocis-apps:/apps
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
|
||||
workflows:
|
||||
image: owncloud/ocis-workflows:${WORKFLOWS_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
ocis-net:
|
||||
depends_on:
|
||||
ocis:
|
||||
condition: service_started
|
||||
environment:
|
||||
WORKFLOWS_OCIS_URL: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
WORKFLOWS_OCIS_INSECURE: "${INSECURE:-false}"
|
||||
WORKFLOWS_ALLOWED_ORIGIN: https://${OCIS_DOMAIN:-ocis.owncloud.test}
|
||||
WORKFLOWS_LOG_LEVEL: ${LOG_LEVEL:-info}
|
||||
WORKFLOWS_HTTP_ADDR: 0.0.0.0:9105
|
||||
WORKFLOWS_DEBUG_ADDR: 0.0.0.0:9109
|
||||
WORKFLOWS_DB_PATH: /data/workflows.db
|
||||
WORKFLOWS_LLM_ENDPOINT: ${WORKFLOWS_LLM_ENDPOINT}
|
||||
WORKFLOWS_LLM_MODEL: ${WORKFLOWS_LLM_MODEL}
|
||||
WORKFLOWS_LLM_API_KEY: ${WORKFLOWS_LLM_API_KEY}
|
||||
WORKFLOWS_ENCRYPTION_KEY: ${WORKFLOWS_ENCRYPTION_KEY}
|
||||
volumes:
|
||||
- workflows-data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost:9109/healthz"]
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.workflows.entrypoints=https"
|
||||
- "traefik.http.routers.workflows.rule=Host(`${OCIS_DOMAIN:-ocis.owncloud.test}`) && PathPrefix(`/workflows/api`)"
|
||||
- "traefik.http.routers.workflows.tls.certresolver=http"
|
||||
- "traefik.http.routers.workflows.service=workflows"
|
||||
- "traefik.http.routers.workflows.middlewares=workflows-stripprefix"
|
||||
- "traefik.http.middlewares.workflows-stripprefix.stripprefix.prefixes=/workflows"
|
||||
- "traefik.http.services.workflows.loadbalancer.server.port=9105"
|
||||
logging:
|
||||
driver: ${LOG_DRIVER:-local}
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
workflows-data:
|
||||
@@ -1,4 +0,0 @@
|
||||
hugo/
|
||||
grpc_apis/
|
||||
helpers/output/*
|
||||
services/**/_index.md
|
||||
Whitespace-only changes.
@@ -1,97 +0,0 @@
|
||||
SHELL := bash
|
||||
# we need an override so that this variable is cleanly set in this makefile
|
||||
# else it might come from somewhere else
|
||||
override HUGO := $(CURDIR)/hugo
|
||||
override HDIR := $(HUGO)/.git
|
||||
|
||||
# if the directory exists, print that we do not need to prepare
|
||||
hugo-exists:
|
||||
@if [ -d $(HDIR) ]; then \
|
||||
echo; \
|
||||
echo 'Build environment for hugo exists, nothing to setup, continuing.'; \
|
||||
fi
|
||||
|
||||
# if the directory does not extist, initialize the framework and create the theme
|
||||
$(HDIR):
|
||||
@echo 'Initialize the hugo framework and build the theme, no docs get built.'
|
||||
@mkdir -p $(HUGO)/content/
|
||||
@mkdir -p $(HUGO)/extensions/
|
||||
@mkdir -p $(HUGO)/public/
|
||||
@cd $(HUGO) && git init
|
||||
@cd $(HUGO) && git config advice.detachedHead false
|
||||
@cd $(HUGO) && git remote rm origin || true
|
||||
@cd $(HUGO) && git remote add origin https://github.com/owncloud/owncloud.github.io
|
||||
@cd $(HUGO) && git fetch --depth=1
|
||||
@cd $(HUGO) && git checkout origin/main -f
|
||||
@$(MAKE) -C $(HUGO) --no-print-directory theme
|
||||
|
||||
# print available make targets
|
||||
.PHONY: help
|
||||
.DEFAULT_GOAL := help
|
||||
help:
|
||||
@echo -e 'Available .PHONY targets: \n'
|
||||
@grep -P -o '(?<=^\.PHONY: )(.*)' Makefile | sort -u
|
||||
@echo
|
||||
|
||||
# alternative target because we also use it in the root's makefile
|
||||
.PHONY:list
|
||||
list: help
|
||||
|
||||
# Creates a symlink ../hugo → hugo/ required by the Hugo Docker image
|
||||
# (hugomods/hugo:base-0.129.0), which expects the hugo folder at the repo root.
|
||||
# CURDIR will work for make only but not when running manually in the shell
|
||||
.PHONY: docs-hugo-drone-prep
|
||||
docs-hugo-drone-prep:
|
||||
@echo
|
||||
@echo 'Linking directory hugo for drone.'
|
||||
@rm -f ../hugo
|
||||
@ln -s $(HUGO) ../hugo
|
||||
|
||||
# generate data from sources such as services
|
||||
.PHONY: docs-run-helpers
|
||||
docs-run-helpers:
|
||||
@echo
|
||||
@echo 'Generate envvar adoc and md tables for all oCIS services used for dev and admin docs'
|
||||
@pushd helpers && go run .; popd
|
||||
|
||||
# create the docs build environment
|
||||
.PHONY: docs-init
|
||||
docs-init: hugo-exists $(HDIR)
|
||||
# if there is nothing to do, stop printing that
|
||||
# another way would be https://stackoverflow.com/questions/58039810/makefiles-what-is-an-order-only-prerequisite
|
||||
@:
|
||||
|
||||
# the docs-build|serve commands require that docs-init was run first for the required data to exists
|
||||
# create a docs build
|
||||
.PHONY: docs-build
|
||||
docs-build:
|
||||
@echo
|
||||
@echo 'Building ocis for owncloud.dev'
|
||||
@$(MAKE) -C $(HUGO) --no-print-directory hugo-build
|
||||
@echo 'To view the rendered docs in the browser, run: make docs-serve'
|
||||
|
||||
# serve built docs with hugo
|
||||
.PHONY: docs-serve
|
||||
docs-serve:
|
||||
@$(MAKE) -C $(HUGO) --no-print-directory hugo-server
|
||||
|
||||
# copy required resources into hugo
|
||||
.PHONY: docs-copy
|
||||
docs-copy:
|
||||
@echo
|
||||
@echo 'Syncing required doc files and directories for the build process.'
|
||||
# brace expansion not with sh
|
||||
@rsync --delete -ax --exclude={hugo,templates,Makefile,.gitignore,README.md} ./ $(HUGO)/content/
|
||||
|
||||
# clean up docs build artifacts (removing the hugo folder)
|
||||
.PHONY: docs-clean
|
||||
docs-clean:
|
||||
# NOTE: the whitespace at the beginning of the ifeq/else/endif statements is intentional.
|
||||
@echo
|
||||
ifneq ($(shell id -u), 0)
|
||||
@echo "You must run the clean command using sudo or as root because some doc files are created by root"
|
||||
else
|
||||
@echo 'Clean up docs build artifacts'
|
||||
@rm -rf $(HUGO)
|
||||
@echo "Removed folder: $(HUGO)"
|
||||
endif
|
||||
+8
-3
@@ -1,6 +1,11 @@
|
||||
# Documentation
|
||||
# Internal Documentation Space
|
||||
|
||||
**IMPORTANT**\
|
||||
All docs helpers and their output has been migrated to the docs.owncloud.com repo.\
|
||||
Any remaining documentations will finally be migrated to the docs repo too. When done, this folder will be deleted.
|
||||
All the docs including the helpers and their output has been migrated to the [docs.owncloud.com](https://github.com/owncloud/docs.owncloud.com/tree/main/content/ocis) repo and is now part of the [oCIS documentation](https://doc.owncloud.com/) that can be viewed on the web.
|
||||
|
||||
This folder is intended for any information that is not part of the official developer documentation. Nothing in here will be transferred, either manually or automatically, to the docs repo. It is therefore a place for developers to put things that are not necessarily part of the official developer documentation.
|
||||
|
||||
Note that the [acceptance test](.github/workflows/acceptance-tests.yml) workflow omits any CI run on changed files in this folder. This is also true for [code analysis](.codacy.yml).
|
||||
|
||||
**IMPORTANT**\
|
||||
Although it may exist, you do not need to maintain any `env-vars.yaml` file in any branch. This file is obsolete in ocis, as the process has been moved to the documentation.
|
||||
@@ -1,46 +0,0 @@
|
||||
---
|
||||
title: ownCloud
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Admin Documentation
|
||||
|
||||
Before you start reading, if you are interested in:
|
||||
|
||||
- learning ocis from an admin perspective,
|
||||
- different deployment scenarios,
|
||||
- deployment examples,
|
||||
- detailed settings and more
|
||||
|
||||
we would recommend to continue with the [ownCloud Admin Documentation for Infinite Scale](https://doc.owncloud.com/ocis/latest/).
|
||||
|
||||
## Developer Documentation
|
||||
|
||||
Welcome to our developer documentation. Here you find documentation with focus for *developers*:
|
||||
|
||||
- [oCIS]({{< ref "./ocis" >}}) server
|
||||
- oCIS Services
|
||||
- Clients like:
|
||||
- [ownCloud Web](https://github.com/owncloud/ocis/tree/master/web) - the new web frontend for oCIS and ownCloud, shipped in-tree as part of oCIS
|
||||
- [ownCloud Android app](https://github.com/owncloud/android)
|
||||
- [ownCloud iOS app](https://github.com/owncloud/ios-app)
|
||||
- [ownCloud Desktop Syncing Client](https://github.com/owncloud/client)
|
||||
- Integrations
|
||||
|
||||
## We love open source
|
||||
|
||||
The oCIS server is Apache v2 licensed.
|
||||
The lower storage layer of oCIS is defined by the CS3 APIs and implemented in the REVA project. Our goal is to develop the CS3 APIs to an open standard and collaborate on the open source REVA reference implementation for CS3 APIs.
|
||||
|
||||
You can also find all client sources on [GitHub](https://github.com/owncloud/).
|
||||
|
||||
## Join the oCIS Community
|
||||
|
||||
The [server repository](https://github.com/owncloud/ocis) on [GitHub](https://www.github.com) is a good entry point to the oCIS project -- it also contains the [ownCloud Web](https://github.com/owncloud/ocis/tree/master/web) frontend source in-tree. In addition to that there are also ownCloud projects for clients for [iOS](https://github.com/owncloud/ios-app), [Android](https://github.com/owncloud/android) and the major [Desktop](https://github.com/owncloud/desktop) platforms.
|
||||
|
||||
To chat about development, join our public chat on [matrix: ownCloud Infinite Scale](https://matrix.to/#/#ocis:matrix.org).
|
||||
|
||||
If you want to help and improve ownCloud or oCIS, start coding or open issues on GitHub in the related repository.
|
||||
|
||||
We are very happy to hear your feedback and ideas!
|
||||
@@ -1,53 +0,0 @@
|
||||
---
|
||||
title: APIs
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
{{< toc-tree >}}
|
||||
|
||||
Infinite Scale provides a large set of different **application programming interfaces (APIs)**. Infinite Scale is built by microservices. That means many calls to "functions" in the code are remote calls.
|
||||
|
||||
Basically we have two different API "universes": [HTTP](http) and [gRPC](grpc_apis).
|
||||
|
||||
{{< columns >}} <!-- begin columns block -->
|
||||
|
||||
{{< figure src="/ocis/static/http-logo.png" width="70%" alt="Image sourced from https://commons.wikimedia.org/ free of licenses" >}}
|
||||
<--->
|
||||
|
||||
{{< figure src="/ocis/static/grpc-logo.png" width="70%" alt="Image sourced from https://grpc.io/ under CC 4.0 BY license" >}}
|
||||
|
||||
{{< /columns >}}
|
||||
|
||||
|
||||
For inter-service-communication we are using mostly gRPC calls because it has some advantages. In the future, clients may decide to use gRPC directly to make use of these advantages.
|
||||
|
||||
{{< figure src="/ocis/static/ocis-apis.drawio.svg" class="page-image">}}
|
||||
|
||||
## [HTTP](http)
|
||||
|
||||
HTTP APIs are mostly used for client <-> server communication. Modern applications are embracing a [RESTful](https://en.wikipedia.org/wiki/Representational_state_transfer) software architecture style. REST APIs are using the HTTP protocol to transfer data between clients and servers. All our clients talk to the Server using HTTP APIs. This has legacy reasons and is well-supported across many platforms and technologies. Infinite Scale uses an [HTTP API gateway](../services/proxy) to route client requests to the correct service.
|
||||
|
||||
### OpenAPI
|
||||
|
||||
It is best practise to define APIs and their behavior by a spec. We are using the OpenAPI standard for all new APIs. The [OpenAPI Specification](https://swagger.io/specification/), previously known as the Swagger Specification, is a specification for a machine-readable interface definition language for describing, producing, consuming and visualizing RESTful web services. Previously part of the Swagger framework, it became a separate project in 2016, overseen by the OpenAPI Initiative, an open-source collaboration project of the Linux Foundation. Swagger and some other tools can generate code, documentation and test cases from interface files.
|
||||
|
||||
### RFC
|
||||
|
||||
Some APIs have become a de facto standard and are additionally covered by an [RFC](https://en.wikipedia.org/wiki/Request_for_Comments).
|
||||
|
||||
## [gRPC](grpc_apis)
|
||||
|
||||
In gRPC, a client application can directly call methods on a server application on a different machine as if it was a local object. This makes it easier to create distributed applications based on microservices. In gRPC we can define a service and specify the methods that can be called remotely. A gRPC client has a stub that provides the same methods and types as the server.
|
||||
Infinite Scale uses a [gRPC API Gateway](../services/gateway) to route the requests to the correct service.
|
||||
|
||||
### Protobuf
|
||||
|
||||
gRPC APIs are typically defined by [Protocol buffers](https://developers.google.com/protocol-buffers/docs/overview). The different client and server stubs are created from ``*.proto`` files by code generation tools.
|
||||
|
||||
## Versioning
|
||||
|
||||
There are different standards for API versioning: Through URL, through request parameter, through custom header and through content negotiation. Ocis uses the versioning by URL concept although this creates a big code footprint. The versioning follows [SemVer](https://semver.org). We update the major version number when breaking changes are needed. Clients can decide which major version they use through the request URL. The specific implementation is documented on each API.
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
---
|
||||
title: gRPC
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/grpc_apis/
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
{{< toc-tree >}}
|
||||
|
||||
## **R**emote **P**rocedure **C**alls
|
||||
|
||||
[gRPC](https://grpc.io) is a modern open source high performance Remote Procedure Call (RPC) framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking and authentication. It is also applicable in last mile of distributed computing to connect devices, mobile applications and browsers to backend services.
|
||||
|
||||
## Advantages of gRPC
|
||||
|
||||
{{< columns >}}
|
||||
### {{< icon "gauge-high" >}} Performance
|
||||
|
||||
gRPC uses http/2 by default and is faster than REST. When using protocol buffers for encoding, the information comes on and off the wire much faster than JSON. Latency is an important factor in distributed systems. JSON encoding creates a noticeable factor of latency. For distributed systems and high data loads, gRPC can actually make an important difference. Other than that, gRPC supports multiple calls via the same channel and the connections are bidirectional. A single connection can transmit requests and responses at the same time. gRPC keeps connections open to reuse the same connection again which prevents latency and saves bandwidth.
|
||||
|
||||
<--->
|
||||
### {{< icon "helmet-safety" >}} Robustness
|
||||
|
||||
gRPC empowers better relationships between clients and servers. The rules of communication are strictly enforced. That is not the case in REST calls, where the client and the server can send and receive anything they like and hopefully the other end understands what to do with it. In gRPC, to make changes to the communication, both client and server need to change accordingly. This prevents mistakes specially in microservice architectures.
|
||||
{{< /columns >}}
|
||||
{{< columns >}}
|
||||
|
||||
### {{< icon "magnifying-glass-plus" >}} Debuggability
|
||||
|
||||
gRPC requests are re-using the same context and can be tracked or traced across multiple service boundaries.
|
||||
This helps to identify slow calls and see what is causing delays. It is possible to cancel requests which cancels
|
||||
them on all involved services.
|
||||
|
||||
<--->
|
||||
### {{< icon "boxes-stacked" >}} Microservices
|
||||
|
||||
gRPC has been evolving and has become the best option for communication between microservices because of its unmatched
|
||||
performance and its polyglot nature. One of the biggest strengths of microservices is the freedom of programming
|
||||
languages and technologies. By using gRPC we can leverage all the advantages of strictly enforced communication
|
||||
standards combined with freedom of choice between different programming languages - whichever would fit best.
|
||||
|
||||
{{< /columns >}}
|
||||
|
||||
{{< hint type=info title="gRPC Advantages" >}}
|
||||
|
||||
- http/2
|
||||
- protocol buffers
|
||||
- reusable connections
|
||||
- multi language support
|
||||
{{< /hint >}}
|
||||
|
||||
## CS3 APIs
|
||||
|
||||
{{< figure src="/ocis/static/cs3org.png" >}}
|
||||
|
||||
The [CS3 APIs](https://github.com/cs3org/cs3apis) connect storages and application providers.
|
||||
|
||||
The CS3 APIs follow Google and Uber API design guidelines, specially on error handling and naming convention. You can read more about these
|
||||
guidelines at https://cloud.google.com/apis/design/ and https://github.com/uber/prototool/blob/dev/style/README.md.
|
||||
|
||||
The CS3 APIs use [Protocol Buffers version 3 (proto3)](https://github.com/protocolbuffers/protobuf) as their
|
||||
Interface Definition Language (IDL) to define the API interface and the structure of the payload messages.
|
||||
@@ -1,11 +0,0 @@
|
||||
---
|
||||
title: Http
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
The [Hypertext Transfer Protocol (HTTP)](https://www.rfc-editor.org/rfc/rfc2616) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. HTTP is the foundation of data communication for the World Wide Web, where hypertext documents include hyperlinks to other resources that the user can easily access, for example by a mouse click or by tapping the screen in a web browser.
|
||||
|
||||
Development of HTTP was initiated by Tim Berners-Lee at CERN in 1989 and summarized in a simple document describing the behavior of a client and a server using the first HTTP protocol version that was named 0.9. That first version of HTTP protocol soon evolved into a more elaborated version that was the first draft toward a far future version 1.0
|
||||
@@ -1,142 +0,0 @@
|
||||
---
|
||||
title: Authorization
|
||||
weight: 40
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/
|
||||
geekdocFilePath: authorization.md
|
||||
---
|
||||
|
||||
In its default configuration, Infinite Scale supports three authentication methods as outlined on the [OIDC official site](https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3):
|
||||
1. Authorization Code Flow
|
||||
2. Implicit Flow
|
||||
3. Hybrid Flow
|
||||
|
||||
For detailed information on Infinite Scale's support for OpenID Connect (OIDC), please consult the [OIDC section](https://owncloud.dev/ocis/identity-provider/oidc).
|
||||
To authenticate a client app using OIDC, both `client_id` and `client_secret` are essential. Infinite Scale does not offer dynamic registration. The required data for the default [ownCloud clients](https://doc.owncloud.com/server/next/admin_manual/configuration/user/oidc/oidc.html#client-ids-secrets-and-redirect-uris) can be found in the link and are availble for the following apps:
|
||||
- Desktop
|
||||
- Android
|
||||
- iOS
|
||||
|
||||
While selecting an ownCloud client for authentication, take note of specific limitations such as the `Redirect URI`:
|
||||
|
||||
| Source | Redirect URI |
|
||||
|------|--------|
|
||||
|Android|oc://android.owncloud.com|
|
||||
|iOS|oc://ios.owncloud.com|
|
||||
|Desktop|http://127.0.0.1 <br> http://localhost |
|
||||
|
||||
In this example, the desktop app's `client_id` and `client_secret` are being used.
|
||||
|
||||
```bash
|
||||
client_id=xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69
|
||||
client_secret=UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh
|
||||
```
|
||||
|
||||
## Authorization Code Flow
|
||||
|
||||
1. Requesting authorization
|
||||
|
||||
To initiate the OIDC Code Flow, you can use tools like curl and a web browser.
|
||||
The user should be directed to a URL to authenticate and give their consent (bypassing consent is against the standard):
|
||||
|
||||
```plaintext
|
||||
https://ocis.test/signin/v1/identifier/_/authorize?client_id=client_id&scope=openid+profile+email+offline_access&response_type=code&redirect_uri=http://path-to-redirect-uri
|
||||
```
|
||||
|
||||
After a successful authentication, the browser will redirect to a URL that looks like this:
|
||||
|
||||
```plaintext
|
||||
http://path-to-redirect-uri?code=mfWsjEL0mc8gx0ftF9LFkGb__uFykaBw&scope=openid%20profile%20email%20offline_access&session_state=32b08dd...&state=
|
||||
```
|
||||
|
||||
For the next step extract the code from the URL.
|
||||
|
||||
In the above example,
|
||||
the code is `mfWsjEL0mc8gx0ftF9LFkGb__uFykaBw`
|
||||
|
||||
2. Requesting an access token
|
||||
|
||||
The next step in the OIDC Code Flow involves an HTTP POST request
|
||||
to the token endpoint of the **Infinite Scale Identity Server**.
|
||||
|
||||
```bash
|
||||
curl -vk -X POST https://ocis.test/konnect/v1/token \
|
||||
-d "grant_type=authorization_code" \
|
||||
-d "code=3a3PTcO-WWXfN3l1mDN4u7G5PzWFxatU" \
|
||||
-d "redirect_uri=http:path-to-redirect-uri" \
|
||||
-d "client_id=client_id" \
|
||||
-d "client_secret=client_secret"
|
||||
```
|
||||
|
||||
Response looks like this:
|
||||
```json
|
||||
{
|
||||
"access_token": "eyJhbGciOid...",
|
||||
"token_type": "Bearer",
|
||||
"id_token": "eyJhbGciOi...",
|
||||
"refresh_token": "eyJhbGciOiJ...",
|
||||
"expires_in": 300
|
||||
}
|
||||
```
|
||||
|
||||
3. Refreshing an access token
|
||||
|
||||
If the access token has expired, you can get a new one using the refresh token.
|
||||
```bash
|
||||
curl -vk -X POST https://ocis.test/konnect/v1/token \
|
||||
-d "grant_type=refresh_token" \
|
||||
-d "refresh_token=eyJhbGciOiJ..." \
|
||||
-d "redirect_uri=http://path-to-redirect-uri" \
|
||||
-d "client_id=client_id" \
|
||||
-d "client_secret=client_secret"
|
||||
```
|
||||
|
||||
Response looks like this:
|
||||
```json
|
||||
{
|
||||
"access_token": "eyJhbGciOi...",
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 300
|
||||
}
|
||||
```
|
||||
|
||||
## Implicit Code Flow
|
||||
|
||||
When using the implicit flow, tokens are provided in a URI fragment of the redirect URL.
|
||||
Valid values for the `response_type` request parameter are:
|
||||
|
||||
- token
|
||||
- id_token token
|
||||
|
||||
{{< hint type=warning title="Important Warning" >}}
|
||||
If you are using the implicit flow, `nonce` parameter is required in the initial `/authorize` request.
|
||||
`nonce=pL3UkpAQPZ8bTMGYOmxHY/dQABin8yrqipZ7iN0PY18=`
|
||||
|
||||
bash command to generate cryptographically random value
|
||||
```bash
|
||||
openssl rand -base64 32
|
||||
```
|
||||
{{< /hint >}}
|
||||
|
||||
The user should be directed to a URL to authenticate and give their consent (bypassing consent is against the standard):
|
||||
```bash
|
||||
https://ocis.test/signin/v1/identifier/_/authorize?client_id=client_id&scope=openid+profile+email+offline_access&response_type=id_token+token&redirect_uri=http://path-to-redirect-uri&nonce=pL3UkpAQPZ8bTMGYOmxHY/dQABin8yrqipZ7iN0PY18=
|
||||
```
|
||||
|
||||
After a successful authentication, the browser will redirect to a URL that looks like this:
|
||||
```bash
|
||||
http://path-to-redirect-uri#access_token=eyJhbGciOiJQUzI...&expires_in=300&id_token=eyJhbGciOiJ...&scope=email%20openid%20profile&session_state=c8a1019f5e054d...&state=&token_type=Bearer
|
||||
```
|
||||
|
||||
For the next step, extract the access_token from the URL.
|
||||
```bash
|
||||
access_token = 'eyJhbGciOiJQ...'
|
||||
```
|
||||
|
||||
## Hybrid Flow
|
||||
The Hybrid Flow in OpenID Connect melds features from both the Implicit and Authorization Code flows. It allows clients to directly retrieve certain tokens from the Authorization Endpoint, yet also offers the option to acquire additional tokens from the Token Endpoint.
|
||||
|
||||
The Authorization Server redirects back to the client with appropriate parameters in the response, based on the value of the response_type request parameter:
|
||||
- code token
|
||||
- code id_token
|
||||
- code id_token token
|
||||
@@ -1,72 +0,0 @@
|
||||
---
|
||||
title: "LibreGraph"
|
||||
date: 2018-05-02T00:00:00+00:00
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: _index.md
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
The LibreGraph API is a REST Api which is inspired by the [Microsoft Graph API](https://developer.microsoft.com/en-us/graph). It tries to stay compliant with the Microsoft Graph API and aims to be the Next Generation Api in Infinite Scale where we want to support most of the features of the platform.
|
||||
The [API specification](https://github.com/owncloud/libre-graph-api) is available in the OpenApi 3 standard and there are generated client and server [SDKs](https://github.com/owncloud/libre-graph-api#clients) available. You can browse the API with the [Swagger UI](https://owncloud.dev/libre-graph-api/).
|
||||
|
||||
## Calling the LibreGraph API
|
||||
|
||||
```sh
|
||||
{HTTP method} https://ocis.url/graph/{version}/{resource}?{query-parameters}
|
||||
```
|
||||
|
||||
The request component consists of:
|
||||
|
||||
| Component | Description |
|
||||
|--------------------|-------------------------------------------------------------------------|
|
||||
| {HTTP method} | The HTTP method which is used in the request. |
|
||||
| {version} | The version of the LibreGraph API used by the client. |
|
||||
| {resource} | The LibreGraph Resource which the client is referencing in the request. |
|
||||
| {query-parameters} | Optional parameters for the request to customize the response. |
|
||||
|
||||
### HTTP methods
|
||||
|
||||
| Method | Description |
|
||||
|--------|-------------------------------|
|
||||
| GET | Read data from a resource. |
|
||||
| POST | Create a new resource. |
|
||||
| PATCH | Update an existing resource. |
|
||||
| PUT | Replace an existing resource. |
|
||||
| DELETE | Delete an existing resource. |
|
||||
|
||||
The methods `GET` and `DELETE` need no request body. The methods `POST`, `PATCH` and `PUT` require a request body, normally in JSON format to provide the needed values.
|
||||
|
||||
### Version
|
||||
|
||||
Infinite Scale currently provides the version `v1.0`.
|
||||
|
||||
### Resource
|
||||
|
||||
A resource could be an entity or a complex type and is usually defined by properties. Entities are always recognizable by an `Id` property. The URL contains the resource which you are interacting with e.g. `/me/drives` or `/groups/{group-id}`.
|
||||
|
||||
Each resource could possibly require different permissions. Usually you need permissions on a higher level for creating or updating an existing resource than for reading.
|
||||
|
||||
### Query parameters
|
||||
|
||||
Query parameters can be OData system query options, or other strings that a method accepts to customize its response.
|
||||
|
||||
You can use optional OData system query options to include more or fewer properties than the default response, filter the response for items that match a custom query, or provide additional parameters for a method.
|
||||
|
||||
For example, adding the following filter parameter restricts the drives returned to only those with the driveType property of `project`.
|
||||
|
||||
```shell
|
||||
GET https://ocis.url/graph/v1.0/drives?$filter=driveType eq 'project'
|
||||
```
|
||||
For more information about OData query options please check the [API specification](https://github.com/owncloud/libre-graph-api) and the provided examples.
|
||||
|
||||
### Authorization
|
||||
|
||||
For development purposes the examples in the developer documentation use Basic Auth. It is disabled by default and should only be enabled by setting `PROXY_ENABLE_BASIC_AUTH` in [the proxy](../../../services/proxy/configuration/#environment-variables) for development or test instances.
|
||||
|
||||
To authenticate with a Bearer token or OpenID Connect access token replace the `-u user:password` Basic Auth option of curl with a `-H 'Authorization: Bearer <token>'` header. A `<token>` can be obtained by copying it from a request in the browser, although it will time out within minutes. To automatically refresh the OpenID Connect access token an ssh-agent like solution like [oidc-agent](https://github.com/indigo-dc/oidc-agent) should be used. The graph endpoints that support a preconfigured token can be found in the [API specification](https://github.com/owncloud/libre-graph-api)
|
||||
|
||||
## Resources
|
||||
|
||||
{{< toc-tree >}}
|
||||
@@ -1,275 +0,0 @@
|
||||
---
|
||||
title: Groups
|
||||
weight: 40
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: groups.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Groups API
|
||||
|
||||
The Groups API is implementing a subset of the functionality of the
|
||||
[MS Graph Group resource](https://docs.microsoft.com/en-us/graph/api/resources/group?view=graph-rest-1.0)
|
||||
The JSON representation of a Group as handled by the Groups API looks like this:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "group",
|
||||
"id": "f0d97060-da16-4b0d-9fa4-d1ec43afc5f1"
|
||||
}
|
||||
```
|
||||
|
||||
Our implementation currently supports two Attributes for a Group:
|
||||
|
||||
| Attribute | Description |
|
||||
|---------------|-----------------------------------------------------------------------------------------------------------------------------|
|
||||
| displayName | The groups name |
|
||||
| id | An unique, stable readonly identifier for the group that stays the same for the whole lifetime of the Group, usually a UUID |
|
||||
|
||||
|
||||
### Reading groups
|
||||
|
||||
#### `GET /groups`
|
||||
|
||||
Returns a list of all groups
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups' -u user:password
|
||||
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"value": [
|
||||
{
|
||||
"displayName": "group",
|
||||
"id": "38580a2e-7018-42ed-aff6-b2af0b4e9790"
|
||||
},
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
#### `GET /groups?$expand=members`
|
||||
|
||||
Returns a list of all groups including its members
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups?$expand=members' -u user:password
|
||||
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"value": [
|
||||
{
|
||||
"displayName": "group",
|
||||
"id": "38580a2e-7018-42ed-aff6-b2af0b4e9790",
|
||||
"members": [
|
||||
{
|
||||
"displayName": "user1",
|
||||
"id": "2e7b7e23-6c42-4d34-81b0-2bed34e51983",
|
||||
"mail": "user1@example.org",
|
||||
"onPremisesSamAccountName": "user1"
|
||||
},
|
||||
{
|
||||
"displayName": "user2",
|
||||
"id": "b45c9e35-0d95-4165-96bc-68bff4a316ed",
|
||||
"mail": "user2@example.org",
|
||||
"onPremisesSamAccountName": "user2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f",
|
||||
"members": [
|
||||
{
|
||||
"displayName": "user3",
|
||||
"id": "026fbfef-79ef-4f5d-887b-9eaf42777239",
|
||||
"mail": "user3@example.org",
|
||||
"onPremisesSamAccountName": "user3"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### `GET /groups/{groupid}`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f' -u user:password
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f"
|
||||
}
|
||||
```
|
||||
|
||||
#### `GET /groups/{groupid}?$expand=members`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f?$expand=members' -u user:password
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f",
|
||||
"members": [
|
||||
{
|
||||
"displayName": "user3",
|
||||
"id": "026fbfef-79ef-4f5d-887b-9eaf42777239",
|
||||
"mail": "user3@example.org",
|
||||
"onPremisesSamAccountName": "user3"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
### Getting Group Members
|
||||
|
||||
#### `GET /groups/{groupid}/members`
|
||||
|
||||
Returns a list of User objects that are members of a group.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k 'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f/members' -u user:password
|
||||
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
[
|
||||
{
|
||||
"displayName": "Test User",
|
||||
"id": "c54b0588-7157-4521-bb52-c1c8ca84ea71",
|
||||
"mail": "example@example.org",
|
||||
"onPremisesSamAccountName": "example"
|
||||
},
|
||||
{
|
||||
"displayName": "Albert Einstein",
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"mail": "einstein@example.org",
|
||||
"onPremisesSamAccountName": "einstein"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Creating / Updating Groups
|
||||
|
||||
#### `POST /groups`
|
||||
|
||||
Use this to create a new group.
|
||||
h
|
||||
##### Request Body
|
||||
|
||||
Note the missing `"id"` Attribute. It will be generated by the server:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Example Users"
|
||||
}
|
||||
```
|
||||
|
||||
##### Response
|
||||
|
||||
When successful, the response will return the new group including the newly allocated `"id"`:
|
||||
|
||||
```
|
||||
{
|
||||
"displayName": "Example Users",
|
||||
"id": "7a20f238-8a22-4458-902d-47674c317e5f"
|
||||
}
|
||||
```
|
||||
|
||||
#### `DELETE /groups/{id}`
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
curl -k --request DELETE 'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f' -u user:password
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
|
||||
#### `PATCH /groups/{id}`
|
||||
|
||||
Updating attributes of a single group is supposed to be done with a patch request. This is however currently not fully
|
||||
implemented for our write-enabled backends. The PATCH request can however be used to add multiple members to a group at once.
|
||||
See below.
|
||||
|
||||
### Adding a single member to a group
|
||||
|
||||
#### `POST /groups/{id}/members/$ref`
|
||||
|
||||
The request body contains a single attribute "`@odata.id`" referencing the new member of the group by URI. Example:
|
||||
|
||||
```
|
||||
curl -k --header "Content-Type: application/json" \
|
||||
--request POST --data \
|
||||
'{ "@odata.id": "https://localhost:9200/graph/v1.0/users/4c510ada-c86b-4815-8820-42cdf82c3d51" }' \
|
||||
'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f/members/$ref' -u user:password
|
||||
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
|
||||
### Adding multiple members in a single request
|
||||
|
||||
#### `PATCH /groups/{id}`
|
||||
|
||||
The request body contains the attribute `members@odata.bind` holding a list of URI references for the new members.
|
||||
Example:
|
||||
|
||||
```
|
||||
{
|
||||
"members@odata.bind": [
|
||||
"https://localhost:9200/graph/v1.0/users/4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"https://localhost:9200/graph/v1.0/users/c54b0588-7157-4521-bb52-c1c8ca84ea71"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
|
||||
### Removing a member
|
||||
|
||||
#### `DELETE /groups/{groupid}/members/{id}/$ref`
|
||||
|
||||
Example
|
||||
|
||||
```
|
||||
curl -k --request DELETE \
|
||||
'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f/members/4c510ada-c86b-4815-8820-42cdf82c3d51/$ref' \
|
||||
-u user:password
|
||||
```
|
||||
|
||||
When successful the API returns no response body and the HTTP status code 204 (No Content)
|
||||
@@ -1,184 +0,0 @@
|
||||
---
|
||||
title: Permissions
|
||||
weight: 50
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: permissions.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Permissions API
|
||||
|
||||
The Permissions API is implementing a subset of the functionality of the
|
||||
[MS Graph Permission resource](https://learn.microsoft.com/en-us/graph/api/resources/permission?view=graph-rest-1.0).
|
||||
|
||||
### Example Permissions
|
||||
|
||||
The JSON representation of a Drive, as handled by the Spaces API, looks like this:
|
||||
````json
|
||||
{
|
||||
"@libre.graph.permissions.roles.allowedValues": [
|
||||
{
|
||||
"id": "b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5",
|
||||
"description": "Allows reading the shared file or folder",
|
||||
"displayName": "Viewer",
|
||||
"@libre.graph.weight": 1
|
||||
},
|
||||
{
|
||||
"id": "fb6c3e19-e378-47e5-b277-9732f9de6e21",
|
||||
"description": "Allows reading and writing the shared file or folder",
|
||||
"displayName": "Editor",
|
||||
"@libre.graph.weight": 2
|
||||
},
|
||||
{
|
||||
"id": "312c0871-5ef7-4b3a-85b6-0e4074c64049",
|
||||
"description": "Allows managing a space",
|
||||
"displayName": "Manager",
|
||||
"@libre.graph.weight": 3
|
||||
},
|
||||
{
|
||||
"id": "4916f47e-66d5-49bb-9ac9-748ad00334b",
|
||||
"description": "Allows creating new files",
|
||||
"displayName": "File Drop",
|
||||
"@libre.graph.weight": 4
|
||||
}
|
||||
],
|
||||
"@libre.graph.permissions.actions.allowedValues": [
|
||||
"libre.graph/driveItem/basic/read",
|
||||
"libre.graph/driveItem/permissions/read",
|
||||
"libre.graph/driveItem/upload/create",
|
||||
"libre.graph/driveItem/standard/allTasks",
|
||||
"libre.graph/driveItem/upload/create"
|
||||
],
|
||||
"value": [
|
||||
{
|
||||
"id": "67445fde-a647-4dd4-b015-fc5dafd2821d",
|
||||
"link": {
|
||||
"type": "view",
|
||||
"webUrl": "https://cloud.example.org/s/fhGBMIkKFEHWysj"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "34646ab6-be32-43c9-89e6-987e0c237e9b",
|
||||
"roles": [
|
||||
"b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"displayName": "Albert Einstein"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "81d5bad3-3eff-410a-a2ea-eda2d14d4474",
|
||||
"roles": [
|
||||
"b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"displayName": "Albert Einstein"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "b470677e-a7f5-4304-8ef5-f5056a21fff1",
|
||||
"roles": [
|
||||
"b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c",
|
||||
"displayName": "Marie Skłodowska Curie"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "453b02be-4ec2-4e7d-b576-09fc153de812",
|
||||
"roles": [
|
||||
"fb6c3e19-e378-47e5-b277-9732f9de6e21"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"displayName": "Albert Einstein"
|
||||
}
|
||||
}
|
||||
],
|
||||
"expirationDateTime": "2018-07-15T14:00:00.000Z"
|
||||
},
|
||||
{
|
||||
"id": "86765c0d-3905-444a-9b07-76201f8cf7df",
|
||||
"roles": [
|
||||
"312c0871-5ef7-4b3a-85b6-0e4074c64049"
|
||||
],
|
||||
"grantedToV2": [
|
||||
{
|
||||
"group": {
|
||||
"id": "167cbee2-0518-455a-bfb2-031fe0621e5d",
|
||||
"displayName": "Philosophy Haters"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c42b5cbd-2d65-42cf-b0b6-fb6d2b762256",
|
||||
"grantedToV2": [
|
||||
{
|
||||
"user": {
|
||||
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
|
||||
"displayName": "Albert Einstein"
|
||||
}
|
||||
}
|
||||
],
|
||||
"@libre.graph.permissions.actions": [
|
||||
"libre.graph/driveItem/basic/read",
|
||||
"libre.graph/driveItem/path/update"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
````
|
||||
|
||||
## Creating Share Invitation / Link
|
||||
|
||||
### Create a link share `POST /drives/{drive-id}/items/{item-id}/createLink`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/CreateLink
|
||||
|
||||
### Create a user/group share `POST /drives/{drive-id}/items/{item-id}/invite`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/Invite
|
||||
|
||||
## Reading Permissions
|
||||
|
||||
### List the effective sharing permissions on a driveitem `GET /drives/{drive-id}/items/{item-id}/permissions`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/ListPermissions
|
||||
|
||||
### List Get sharing permission for a file or folder `GET /drives/{drive-id}/items/{item-id}/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/GetPermission
|
||||
|
||||
## Updating Permissions
|
||||
|
||||
### Updating sharing permission `POST /drives/{drive-id}/items/{item-id}/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/UpdatePermission
|
||||
|
||||
### Set password of permission `POST /drives/{drive-id}/items/{item-id}/permissions/{perm-id}/setPassword`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/SetPermissionPassword
|
||||
|
||||
### Deleting permission `DELETE /drives/{drive-id}/items/{item-id}/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/DeletePermission
|
||||
@@ -1,38 +0,0 @@
|
||||
---
|
||||
title: Role
|
||||
weight: 60
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: permissions.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Role API
|
||||
|
||||
The Roles API is implementing a subset of the functionality of the
|
||||
[MS Graph Role Management](https://learn.microsoft.com/en-us/graph/api/resources/rolemanagement?view=graph-rest-1.0).
|
||||
|
||||
## Role Management
|
||||
|
||||
### List roleDefinitions `GET /v1beta1/roleManagement/permissions/roleDefinitions`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/roleManagement/ListPermissionRoleDefinitions
|
||||
|
||||
### Get unifiedRoleDefinition `GET /drives/{drive-id}/items/{item-id}/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/roleManagement/GetPermissionRoleDefinition
|
||||
|
||||
## Role Assignment
|
||||
|
||||
### Get appRoleAssignments of a user `GET /v1.0/users/{user-id}/appRoleAssignments`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/user.appRoleAssignment/user.ListAppRoleAssignments
|
||||
|
||||
### Grant an appRoleAssignment to a user `POST /v1.0/users/{user-id}/appRoleAssignments`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/user.appRoleAssignment/user.CreateAppRoleAssignments
|
||||
|
||||
### Delete the appRoleAssignment from a user `DELETE /v1.0/users/{user-id}/appRoleAssignments/{appRoleAssignment-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/user.appRoleAssignment/user.DeleteAppRoleAssignments
|
||||
@@ -1,494 +0,0 @@
|
||||
---
|
||||
title: Spaces
|
||||
weight: 20
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/apis/http/graph
|
||||
geekdocFilePath: spaces.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Spaces API
|
||||
|
||||
The Spaces API is implementing a subset of the functionality of the
|
||||
[MS Graph Drives resource](https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0).
|
||||
|
||||
### Example Space
|
||||
|
||||
The JSON representation of a Drive, as handled by the Spaces API, looks like this:
|
||||
````json
|
||||
{
|
||||
"driveAlias": "project/mars",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925",
|
||||
"lastModifiedDateTime": "2023-01-24T21:19:26.417055+01:00",
|
||||
"name": "Mars",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "89ad5ad2-5fdb-4877-b8c9-601a9670b925"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"remaining": 999853685,
|
||||
"state": "normal",
|
||||
"total": 1000000000,
|
||||
"used": 146315
|
||||
},
|
||||
"root": {
|
||||
"eTag": "\"910af0061161c42d8d1224df6c4a2527\"",
|
||||
"id": "storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925"
|
||||
},
|
||||
"special": [
|
||||
{
|
||||
"eTag": "\"f97829324f63ce778095334cfeb0097b\"",
|
||||
"file": {
|
||||
"mimeType": "image/jpeg"
|
||||
},
|
||||
"id": "storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925!40171bea-3263-47a8-80ef-0ca20c37f45a",
|
||||
"lastModifiedDateTime": "2022-02-15T17:11:50.000000496+01:00",
|
||||
"name": "Mars_iStock-MR1805_20161221.jpeg",
|
||||
"size": 146250,
|
||||
"specialFolder": {
|
||||
"name": "image"
|
||||
},
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925%2189ad5ad2-5fdb-4877-b8c9-601a9670b925/.space/Mars_iStock-MR1805_20161221.jpeg"
|
||||
},
|
||||
{
|
||||
"eTag": "\"ff38b31d8f109a4fbb98ab34499a3379\"",
|
||||
"file": {
|
||||
"mimeType": "text/markdown"
|
||||
},
|
||||
"id": "storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925!e2167612-7578-46e2-8ed7-971481037bc1",
|
||||
"lastModifiedDateTime": "2023-01-24T21:10:23.661841+01:00",
|
||||
"name": "readme.md",
|
||||
"size": 65,
|
||||
"specialFolder": {
|
||||
"name": "readme"
|
||||
},
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925%2189ad5ad2-5fdb-4877-b8c9-601a9670b925/.space/readme.md"
|
||||
}
|
||||
],
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$89ad5ad2-5fdb-4877-b8c9-601a9670b925"
|
||||
}
|
||||
````
|
||||
|
||||
## Creating Spaces
|
||||
|
||||
### Create a single space `POST /drives`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives/CreateDrive
|
||||
|
||||
### Create a space item (Enable sync) `POST /drives/{drive-id}/root/children`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/CreateDriveItem
|
||||
|
||||
## Reading Spaces
|
||||
|
||||
```shell
|
||||
GET https://ocis.url/graph/{version}/{me/}drives/?{query-parameters}
|
||||
```
|
||||
|
||||
| Component | Description |
|
||||
|--------------------|------------------------------------------------------------------------------------------------------------------------|
|
||||
| {version} | The version of the LibreGraph API used by the client. |
|
||||
| {/me} | The `me` component of the part is optional. If used, you only see spaces where the acting user is a regular member of. |
|
||||
| {query-parameters} | Optional parameters for the request to customize the response. |
|
||||
|
||||
### List all spaces `GET /drives`
|
||||
|
||||
Returns a list of all available spaces, even ones where the acting user is not a regular member of. You need elevated permissions to do list all spaces. If you don't have the elevated permissions, the result is the same like `GET /me/drives`.
|
||||
|
||||
|
||||
{{< hint type=info title="Multiple Administration Personas" >}}
|
||||
|
||||
The ownCloud spaces concept draws a strict line between users which can work with the content of a space and others who have the permission to manage the space. A user which is able to manage quota and space metadata does not necessarily need to be able to access the content of a space.
|
||||
|
||||
**Space Admin**\
|
||||
There is a global user role "Space Admin" which grants users some global permissions to manage space quota and some space metadata. This Role enables the user also to disable, restore and delete spaces. He cannot manage space members.
|
||||
|
||||
**Space Manager**\
|
||||
The "Space Manager" is a user which is a regular member of a space because he has been invited. In addition to being part of a space the user can also manage the memberships of the space.
|
||||
|
||||
{{< /hint >}}
|
||||
|
||||
### List My Spaces `GET /me/drives`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/me.drives/ListMyDrives
|
||||
|
||||
## Modifying Spaces
|
||||
|
||||
Modify the properties of a space. You need elevated permissions to execute this request.
|
||||
|
||||
### Set the space quota to 5GB `PATCH /drives/{drive-id}`
|
||||
|
||||
To limit the quota of a space you need to set the `quota.total` value. The API response will give back all actual quota properties.
|
||||
|
||||
````json
|
||||
{
|
||||
"quota": {
|
||||
"remaining": 5368709120,
|
||||
"state": "normal",
|
||||
"total": 5368709120,
|
||||
"used": 0
|
||||
}
|
||||
}
|
||||
````
|
||||
|
||||
| Attribute | Description |
|
||||
|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| remaining | The remaining disk space in `bytes`. If the quota is not limited, this will show the total available disk space. |
|
||||
| state | The state of the space in regards to quota usage. This can be used for visual indicators. It can be `normal`(<75%), `nearing`(between 75% and 89%), `critical`(between 90% and 99%) and `exceeded`(100%). |
|
||||
| total | The space id. The value needs to be a space ID. |
|
||||
| used | The used disk space in bytes. |
|
||||
|
||||
{{< tabs "set-space-quota" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -L -k -X PATCH 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"quota": {
|
||||
"total": 5368709120
|
||||
}
|
||||
}'
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< tab "Response - 200 OK" >}}
|
||||
````json {hl_lines=[17]}
|
||||
{
|
||||
"description": "Marketing team resources",
|
||||
"driveAlias": "project/marketing",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"lastModifiedDateTime": "2023-01-18T17:13:48.385204589+01:00",
|
||||
"name": "Marketing",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"remaining": 5368709120,
|
||||
"state": "normal",
|
||||
"total": 5368709120,
|
||||
"used": 0
|
||||
},
|
||||
"root": {
|
||||
"eTag": "\"f91e56554fd9305db81a93778c0fae96\"",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
},
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
````
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Change the space name, subtitle and alias `PATCH /drives/{drive-id}`
|
||||
|
||||
You can change multiple space properties in one request as long as you submit a valid JSON body. Please be aware that some properties need different permissions.
|
||||
|
||||
{{< tabs "change-space-props" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -L -k -X PATCH 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"name": "Mars",
|
||||
"description": "Mission to mars",
|
||||
"driveAlias": "project/mission-to-mars"
|
||||
}'
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 200 OK" >}}
|
||||
````json {hl_lines=[2,3,7]}
|
||||
{
|
||||
"description": "Mission to mars",
|
||||
"driveAlias": "project/mission-to-mars",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"lastModifiedDateTime": "2023-01-19T14:17:36.094283+01:00",
|
||||
"name": "Mars",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"remaining": 15,
|
||||
"state": "normal",
|
||||
"total": 15,
|
||||
"used": 0
|
||||
},
|
||||
"root": {
|
||||
"eTag": "\"f5fee4fdfeedd6f98956500779eee15e\"",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
},
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
````
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
## Disabling / Deleting Spaces
|
||||
|
||||
### Disable a space `DELETE /drives/{drive-id}`
|
||||
|
||||
This operation will make the space content unavailable for all space members. No data will be deleted.
|
||||
|
||||
{{< tabs "disable-space" >}}
|
||||
{{< tab "Request" >}}
|
||||
```shell
|
||||
curl -L -k -X DELETE 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff/'
|
||||
```
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 204 No Content" >}}
|
||||
|
||||
This response has no body value.
|
||||
|
||||
A disabled space will appear in listings with a `root.deleted.state=trashed` property. The space description and the space image will not be readable anymore.
|
||||
|
||||
```json {hl_lines=[18,19,20]}
|
||||
{
|
||||
"description": "Marketing team resources",
|
||||
"driveAlias": "project/marketing",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"lastModifiedDateTime": "2023-01-19T14:17:36.094283+01:00",
|
||||
"name": "Marketing",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"total": 15
|
||||
},
|
||||
"root": {
|
||||
"deleted": {
|
||||
"state": "trashed"
|
||||
},
|
||||
"eTag": "\"f5fee4fdfeedd6f98956500779eee15e\"",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
},
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
```
|
||||
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Restore a space `PATCH /drives/{drive-id}`
|
||||
|
||||
This operation will make the space content available again to all members. No content will be changed.
|
||||
|
||||
To restore a space, the Header `Restore: T` needs to be set.
|
||||
{{< tabs "restore-space" >}}
|
||||
{{< tab "Request" >}}
|
||||
|
||||
```shell
|
||||
curl -L -X PATCH 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff/' \
|
||||
-H 'Restore: T' \
|
||||
-H 'Content-Type: text/plain' \
|
||||
--data-raw '{}'
|
||||
```
|
||||
|
||||
{{< hint type=info title="Body value" >}}
|
||||
|
||||
This request needs an empty body (--data-raw '{}') to fulfil the standard libregraph specification even when the body is not needed.
|
||||
|
||||
{{< /hint >}}
|
||||
{{< /tab >}}
|
||||
|
||||
{{< tab "Response - 200 OK" >}}
|
||||
|
||||
```json
|
||||
{
|
||||
"description": "Marketing team resources",
|
||||
"driveAlias": "project/marketing",
|
||||
"driveType": "project",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"lastModifiedDateTime": "2023-01-19T14:17:36.094283+01:00",
|
||||
"name": "Marketing",
|
||||
"owner": {
|
||||
"user": {
|
||||
"displayName": "",
|
||||
"id": "535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
},
|
||||
"quota": {
|
||||
"remaining": 15,
|
||||
"state": "normal",
|
||||
"total": 15,
|
||||
"used": 0
|
||||
},
|
||||
"root": {
|
||||
"eTag": "\"f5fee4fdfeedd6f98956500779eee15e\"",
|
||||
"id": "storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff",
|
||||
"permissions": [
|
||||
{
|
||||
"grantedToIdentities": [
|
||||
{
|
||||
"user": {
|
||||
"displayName": "Admin",
|
||||
"id": "some-admin-user-id-0000-000000000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
"manager"
|
||||
]
|
||||
}
|
||||
],
|
||||
"webDavUrl": "https://localhost:9200/dav/spaces/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
},
|
||||
"webUrl": "https://localhost:9200/f/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff"
|
||||
}
|
||||
```
|
||||
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
### Permanently delete a space `DELETE /drives/{drive-id}`
|
||||
|
||||
This operation will delete a space and all its data permanently. This is restricted to spaces which are already disabled.
|
||||
|
||||
To delete a space, the Header `Purge: T` needs to be set.
|
||||
|
||||
{{< tabs "delete-space" >}}
|
||||
{{< tab "Request" >}}
|
||||
|
||||
```shell {hl_lines=[2]}
|
||||
curl -L -X DELETE 'https://localhost:9200/graph/v1.0/drives/storage-users-1$535aa42d-a3c7-4329-9eba-5ef48fcaa3ff' \
|
||||
-H 'Purge: T'
|
||||
```
|
||||
|
||||
{{< hint type=warning title="Data will be deleted" >}}
|
||||
|
||||
This request will delete a space and all its content permanently. This operation cannot be reverted.
|
||||
|
||||
{{< /hint >}}
|
||||
|
||||
{{< /tab >}}
|
||||
{{< tab "Response - 204 No Content" >}}
|
||||
|
||||
This response has no body value.
|
||||
|
||||
{{< /tab >}}
|
||||
{{< tab "Response - 400 Bad Request" >}}
|
||||
|
||||
The space to be deleted was not disabled before.
|
||||
|
||||
```json
|
||||
{
|
||||
"error": {
|
||||
"code": "invalidRequest",
|
||||
"innererror": {
|
||||
"date": "2023-01-24T19:57:19Z",
|
||||
"request-id": "f62af40f-bc18-475e-acd7-e9008d6bd326"
|
||||
},
|
||||
"message": "error: bad request: can't purge enabled space"
|
||||
}
|
||||
}
|
||||
```
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
## Sharing Space
|
||||
|
||||
### Add member to space `POST /drives/{drive-id}/root/invite`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.permissions/Invite
|
||||
|
||||
### Sharing space as a link `POST /drives/{drive-id}/root/createLink`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/CreateLinkSpaceRoot
|
||||
|
||||
## Reading Space Permissions
|
||||
|
||||
### Listing permissions of a space `GET /drives/{drive-id}/root/permissions`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/ListPermissionsSpaceRoot
|
||||
|
||||
## Modifying / Deleting Space Permissions
|
||||
|
||||
### Update permissions of a drive `PATCH /drives/{drive-id}/root/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/UpdatePermissionSpaceRoot
|
||||
|
||||
### Set password of a link share `POST /drives/{drive-id}/root/permissions/{perm-id}/setPassword`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/SetPermissionPasswordSpaceRoot
|
||||
|
||||
### Removing acess to a space `DELETE /drives/{drive-id}/root/permissions/{perm-id}`
|
||||
|
||||
https://owncloud.dev/libre-graph-api/#/drives.root/DeletePermissionSpaceRoot
|
||||
Loaded 100 of 2080 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user