fix: [ocisdev-1433] fix public share, add The grpc clients keepalive … (#13048)
* fix: [ocisdev-1433] fix public share, add The grpc clients keepalive and more (#13020) * fix: the public share configuration and fixed graceful shutdown * fix: [OCISDEV-1433] remove GRPC_MAX_CONNECTION_AGE The setting closed healthy grpc connections on a timer so that clients would redo their DNS lookup. It never helped against the failure it was reached for - a connection whose peer stopped answering - because the age limit is enforced by the server, the grace period was left at infinity so a request already in flight was never ended, and any value without a unit suffix silently disabled it again. Detecting a peer that stops answering is now the job of the grpc clients, which ping the peer while a request is in flight. The servers here got the matching enforcement policy so they accept those pings; the client side arrives with the next reva bump. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix: Added the new variable OCDAV_DISABLE_PROPFIND_PUBLIC_LINK_RESOLUTION that disable the resolution of public link shares when answering PROPFIND requests. * chore: bump reva * fix: The keepalive added to grpc clinet * chore: bump reva * build(deps): bump go 1.26.8, grpc-go dependency --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> * chore: bump pnpm dependencies * fix: avoid go vet false positive in userlog conversion.go The go.mod bump to go 1.26.8 made go vet flag loadTemplates' calls to t.Get(nt.Subject/nt.Message) as non-constant format strings, breaking the build for services/userlog/pkg/service. These are translation lookup keys, not printf format strings, so route the call through a local func value to defeat vet's static trace. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5988f8b8e6
commit
12d4423284
235 files changed
+5721
-3733
No files matched your search
@@ -19,6 +19,7 @@ env:
|
||||
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:
|
||||
|
||||
@@ -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,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,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,9 @@
|
||||
Security: Bump grpc-go dependency
|
||||
|
||||
We've updated the google.golang.org/grpc dependency to fix a reported
|
||||
denial-of-service vulnerability related to gRPC server handling of requests
|
||||
missing authority or Host headers. As no tagged release containing the fix was
|
||||
available yet, we pulled in a pre-release snapshot of grpc-go that includes it,
|
||||
which also required bumping the minimum Go version to 1.26.8.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/13020
|
||||
@@ -47,16 +47,6 @@ variables:
|
||||
default_value: ""
|
||||
description: ""
|
||||
do_ignore: true
|
||||
- rawname: _serverMaxConnectionAgeEnv
|
||||
path: ocis-pkg/service/grpc/keepalive.go:19
|
||||
foundincode: true
|
||||
name: GRPC_MAX_CONNECTION_AGE
|
||||
type: Duration
|
||||
default_value: "9223372036854775807"
|
||||
description: Timeout for GRPC connections. After timeout, a new connection will
|
||||
be established automatically. The default value is in ns and is about 2.5 mio
|
||||
h.
|
||||
do_ignore: false
|
||||
- rawname: MICRO_LOG_LEVEL
|
||||
path: ocis-pkg/log/log.go:34
|
||||
foundincode: true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module github.com/owncloud/ocis/v2
|
||||
|
||||
go 1.25.14
|
||||
go 1.26.8
|
||||
|
||||
require (
|
||||
dario.cat/mergo v1.0.2
|
||||
@@ -67,7 +67,7 @@ require (
|
||||
github.com/open-policy-agent/opa v1.19.0
|
||||
github.com/orcaman/concurrent-map v1.0.0
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20260216101009-eeac018af245
|
||||
github.com/owncloud/reva/v2 v2.0.0-20260813081456-8ed15f4851e1
|
||||
github.com/owncloud/reva/v2 v2.0.0-20261002103326-e0beaa380005
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/pkg/xattr v0.4.12
|
||||
github.com/prometheus/client_golang v1.24.1
|
||||
@@ -97,17 +97,17 @@ require (
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.45.0
|
||||
go.opentelemetry.io/otel/sdk v1.45.0
|
||||
go.opentelemetry.io/otel/trace v1.45.0
|
||||
golang.org/x/crypto v0.55.0
|
||||
golang.org/x/crypto v0.57.0
|
||||
golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f
|
||||
golang.org/x/image v0.45.0
|
||||
golang.org/x/net v0.58.0
|
||||
golang.org/x/net v0.59.0
|
||||
golang.org/x/oauth2 v0.36.0
|
||||
golang.org/x/sync v0.22.0
|
||||
golang.org/x/term v0.45.0
|
||||
golang.org/x/text v0.41.0
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d
|
||||
google.golang.org/grpc v1.83.2
|
||||
google.golang.org/protobuf v1.36.11
|
||||
golang.org/x/sync v0.23.0
|
||||
golang.org/x/term v0.46.0
|
||||
golang.org/x/text v0.42.0
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260817212433-ac3dfec99bb1
|
||||
google.golang.org/grpc v1.86.0-dev
|
||||
google.golang.org/protobuf v1.36.12
|
||||
gopkg.in/yaml.v2 v2.4.0
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
gotest.tools/v3 v3.5.2
|
||||
@@ -342,12 +342,12 @@ require (
|
||||
go.uber.org/zap v1.27.1 // indirect
|
||||
go.yaml.in/yaml/v2 v2.4.4 // indirect
|
||||
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
||||
golang.org/x/mod v0.40.0 // indirect
|
||||
golang.org/x/sys v0.47.0 // indirect
|
||||
golang.org/x/mod v0.41.0 // indirect
|
||||
golang.org/x/sys v0.48.0 // indirect
|
||||
golang.org/x/time v0.15.0 // indirect
|
||||
golang.org/x/tools v0.49.0 // indirect
|
||||
google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260928230214-8a89bd6388cc // indirect
|
||||
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect
|
||||
gopkg.in/ini.v1 v1.67.3 // indirect
|
||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
|
||||
|
||||
@@ -737,8 +737,8 @@ github.com/orcaman/concurrent-map v1.0.0 h1:I/2A2XPCb4IuQWcQhBhSwGfiuybl/J0ev9HD
|
||||
github.com/orcaman/concurrent-map v1.0.0/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI=
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20260216101009-eeac018af245 h1:JRidLTAKhnvyLMRtVtSF4lhBa0NSAOs6fof+d6JnKII=
|
||||
github.com/owncloud/libre-graph-api-go v1.0.5-0.20260216101009-eeac018af245/go.mod h1:z61VMGAJRtR1nbgXWiNoCkxUXP1B3Je9rMuJbnGd+Og=
|
||||
github.com/owncloud/reva/v2 v2.0.0-20260813081456-8ed15f4851e1 h1:4Qgzuphg6OERnBYyqmYy4cdyBBRzri4/yAy5UjpFQmg=
|
||||
github.com/owncloud/reva/v2 v2.0.0-20260813081456-8ed15f4851e1/go.mod h1:zJV1uSPyjLXGhb3JwI0EuUx8GJaq1d/NCmpuqN0U4IE=
|
||||
github.com/owncloud/reva/v2 v2.0.0-20261002103326-e0beaa380005 h1:rCvGOAPllzVaYMDipxitxgxmOMaPgTCF7Mo1fAhhxJo=
|
||||
github.com/owncloud/reva/v2 v2.0.0-20261002103326-e0beaa380005/go.mod h1:zJV1uSPyjLXGhb3JwI0EuUx8GJaq1d/NCmpuqN0U4IE=
|
||||
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c h1:rp5dCmg/yLR3mgFuSOe4oEnDDmGLROTvMragMUXpTQw=
|
||||
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c/go.mod h1:X07ZCGwUbLaax7L0S3Tw4hpejzu63ZrrQiUe6W0hcy0=
|
||||
github.com/pablodz/inotifywaitgo v0.0.12 h1:DVJJTFMDlSAdO46yisPF2vzozs/r+4k6ih8MVghq78M=
|
||||
@@ -1016,8 +1016,8 @@ golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0
|
||||
golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4=
|
||||
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
|
||||
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
|
||||
golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M=
|
||||
golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis=
|
||||
golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M=
|
||||
golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||
@@ -1055,8 +1055,8 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/mod v0.40.0 h1:hUv+3cXcdRHz08UmSiOob7sadHig73uo5bkXxQ/tvUs=
|
||||
golang.org/x/mod v0.40.0/go.mod h1:0/weTWkPWGBikyTWAX3dkjVztMmBA5hM0DH6BElSupE=
|
||||
golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c=
|
||||
golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o=
|
||||
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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
@@ -1100,8 +1100,8 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
|
||||
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
|
||||
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
|
||||
golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To=
|
||||
golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU=
|
||||
golang.org/x/net v0.59.0 h1:5zfYln+w5XCxwrnMMJPufRgNoXEaGxl0wo5GqPXyues=
|
||||
golang.org/x/net v0.59.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
@@ -1125,8 +1125,8 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ
|
||||
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
|
||||
golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
|
||||
golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
|
||||
golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
@@ -1189,8 +1189,8 @@ golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
|
||||
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
||||
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
|
||||
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
@@ -1198,8 +1198,8 @@ golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
|
||||
golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U=
|
||||
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
|
||||
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
|
||||
golang.org/x/term v0.45.0 h1:NwWyBmoJCbfTHpxrWoZ9C6/VxOf7ic219I8xZZFdrf0=
|
||||
golang.org/x/term v0.45.0/go.mod h1:9aqxs0blBcrm/n0L9QW0aRVD+ktan8ssZromtqJC43w=
|
||||
golang.org/x/term v0.46.0 h1:3+OXuTbaKDgwk8jTi3aSLHRlmWqHEUDUtxnbFigO4YE=
|
||||
golang.org/x/term v0.46.0/go.mod h1:+K02xbkittuwc0Am4abfA3Fc+XRGXkvBXNO88NCXPoc=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
@@ -1211,8 +1211,8 @@ golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
|
||||
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
||||
golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
|
||||
golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
|
||||
golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI=
|
||||
golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E=
|
||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
@@ -1327,10 +1327,10 @@ google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6D
|
||||
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7 h1:XzmzkmB14QhVhgnawEVsOn6OFsnpyxNPRY9QV01dNB0=
|
||||
google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7/go.mod h1:L43LFes82YgSonw6iTXTxXUX1OlULt4AQtkik4ULL/I=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d h1:FarXi840EJWSHYTN3ERkADbPWjl307+FGrA22KAVjjc=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d/go.mod h1:K/+WGbmBY7aNW1HDw1fJnKYo10i0DkAX6pows00dLig=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d h1:IL4hdHzcUv2l/gcg98/Rj3FbtE6axwqslOW8SW0C+S0=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260817212433-ac3dfec99bb1 h1:lrupDmKL3p5kEX1M92oan027eCKcouzjuPbH6YBK+Rs=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260817212433-ac3dfec99bb1/go.mod h1:q/3oV3jAi5vwelxsVAprMBC8BcM2zmNe+IjRGd+9/ks=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260928230214-8a89bd6388cc h1:4bNTbnb44EqGVy9HaQxSY2jnafSUdgV3qHtedvNpDKg=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260928230214-8a89bd6388cc/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
||||
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
|
||||
@@ -1344,8 +1344,8 @@ google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3Iji
|
||||
google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
|
||||
google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU=
|
||||
google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8=
|
||||
google.golang.org/grpc v1.86.0-dev h1:FLq7hcApuJeJ70J9+k0FvmXsNCwS8B2/MeAfYdy3GHY=
|
||||
google.golang.org/grpc v1.86.0-dev/go.mod h1:Ovl0ECo4xx5r4kn/6d4BPSNB7OIFuu6EAjOzjtVAKaM=
|
||||
google.golang.org/grpc/examples v0.0.0-20211102180624-670c133e568e h1:m7aQHHqd0q89mRwhwS9Bx2rjyl/hsFAeta+uGrHsQaU=
|
||||
google.golang.org/grpc/examples v0.0.0-20211102180624-670c133e568e/go.mod h1:gID3PKrg7pWKntu9Ss6zTLJ0ttC0X9IHgREOCZwbCVU=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
@@ -1362,8 +1362,8 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=
|
||||
google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
|
||||
google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc=
|
||||
google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
|
||||
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
||||
gopkg.in/cenkalti/backoff.v1 v1.1.0 h1:Arh75ttbsvlpVA7WtVpH4u9h6Zl46xuptxqLxPiSo4Y=
|
||||
gopkg.in/cenkalti/backoff.v1 v1.1.0/go.mod h1:J6Vskwqd+OMVJl8C33mmtxTBs2gyzfv7UDAkHu8BrjI=
|
||||
|
||||
@@ -61,13 +61,14 @@ type Runtime struct {
|
||||
type Config struct {
|
||||
*shared.Commons `yaml:"shared"`
|
||||
|
||||
Tracing *shared.Tracing `yaml:"tracing"`
|
||||
Log *shared.Log `yaml:"log"`
|
||||
Cache *shared.Cache `yaml:"cache"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCServiceTLS *shared.GRPCServiceTLS `yaml:"grpc_service_tls"`
|
||||
HTTPServiceTLS shared.HTTPServiceTLS `yaml:"http_service_tls"`
|
||||
Reva *shared.Reva `yaml:"reva"`
|
||||
Tracing *shared.Tracing `yaml:"tracing"`
|
||||
Log *shared.Log `yaml:"log"`
|
||||
Cache *shared.Cache `yaml:"cache"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
GRPCServiceTLS *shared.GRPCServiceTLS `yaml:"grpc_service_tls"`
|
||||
HTTPServiceTLS shared.HTTPServiceTLS `yaml:"http_service_tls"`
|
||||
Reva *shared.Reva `yaml:"reva"`
|
||||
|
||||
Mode Mode // DEPRECATED
|
||||
File string
|
||||
|
||||
@@ -55,6 +55,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil {
|
||||
cfg.GRPCClientTLS = &shared.GRPCClientTLS{}
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil {
|
||||
cfg.GRPCClientOptions = &shared.GRPCClientOptions{}
|
||||
}
|
||||
if cfg.GRPCServiceTLS == nil {
|
||||
cfg.GRPCServiceTLS = &shared.GRPCServiceTLS{}
|
||||
}
|
||||
@@ -78,6 +81,10 @@ func EnsureCommons(cfg *config.Config) {
|
||||
cfg.Commons.GRPCClientTLS = cfg.GRPCClientTLS
|
||||
}
|
||||
|
||||
if cfg.GRPCClientOptions != nil {
|
||||
cfg.Commons.GRPCClientOptions = cfg.GRPCClientOptions
|
||||
}
|
||||
|
||||
if cfg.GRPCServiceTLS != nil {
|
||||
cfg.Commons.GRPCServiceTLS = cfg.GRPCServiceTLS
|
||||
}
|
||||
|
||||
@@ -64,7 +64,11 @@ func NewTranslatorFromCommonConfig(defaultLocale string, domain string, path str
|
||||
|
||||
// Translate translates a string to the locale
|
||||
func (t Translator) Translate(str, locale string) string {
|
||||
return t.Locale(locale).Get(str)
|
||||
// str is a translation lookup key, not a printf format string; go vet's
|
||||
// non-constant format string check can't trace through a func value, so
|
||||
// assign Get to a local before calling it to avoid a false positive.
|
||||
get := t.Locale(locale).Get
|
||||
return get(str)
|
||||
}
|
||||
|
||||
// Locale returns the gotext.Locale, use `.Get` method to translate strings
|
||||
|
||||
@@ -14,6 +14,8 @@ import (
|
||||
"go-micro.dev/v4/client"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
"go.opentelemetry.io/otel/trace/noop"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/keepalive"
|
||||
)
|
||||
|
||||
// ClientOptions represent options (e.g. tls settings) for the grpc clients
|
||||
@@ -21,6 +23,7 @@ type ClientOptions struct {
|
||||
tlsMode string
|
||||
caCert string
|
||||
tp trace.TracerProvider
|
||||
kp keepalive.ClientParameters
|
||||
}
|
||||
|
||||
// Option is used to pass client options
|
||||
@@ -51,6 +54,18 @@ func WithTraceProvider(tp trace.TracerProvider) ClientOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithKeepaliveParams allows setting the grpc keepalive params for grpc clients, derived from
|
||||
// co.GRPCClientKeepaliveTime/-Timeout. Without a configured keepalive time this is a no-op and the
|
||||
// clients keep grpc's own behavior, see GetClientKeepaliveParams.
|
||||
func WithKeepaliveParams(co *shared.GRPCClientOptions) ClientOption {
|
||||
return func(o *ClientOptions) {
|
||||
if co == nil {
|
||||
return
|
||||
}
|
||||
o.kp = GetClientKeepaliveParams(co.GRPCClientKeepaliveTime, co.GRPCClientKeepaliveTimeout)
|
||||
}
|
||||
}
|
||||
|
||||
func GetClientOptions(t *shared.GRPCClientTLS) []ClientOption {
|
||||
opts := []ClientOption{
|
||||
WithTLSMode(t.Mode),
|
||||
@@ -74,6 +89,13 @@ func NewClient(opts ...ClientOption) (client.Client, error) {
|
||||
)),
|
||||
client.Wrap(autoprop.NewGoMicroClientWrapper()),
|
||||
}
|
||||
|
||||
if options.kp != (keepalive.ClientParameters{}) {
|
||||
// same mechanism the reva pool uses in grpc.NewConn (pkg/rgrpc/todo/pool/connection.go),
|
||||
// so that a black-holed peer is detected here as well instead of hanging for the caller's full timeout
|
||||
cOpts = append(cOpts, withDefaultCallOptions(mgrpcc.DialOptions(grpc.WithKeepaliveParams(options.kp))))
|
||||
}
|
||||
|
||||
switch options.tlsMode {
|
||||
case "insecure":
|
||||
if os.Getenv("OCIS_INSECURE") != "true" {
|
||||
@@ -106,3 +128,15 @@ func NewClient(opts ...ClientOption) (client.Client, error) {
|
||||
|
||||
return mgrpcc.NewClient(cOpts...), nil
|
||||
}
|
||||
|
||||
// withDefaultCallOptions applies client.CallOptions (e.g. mgrpcc.DialOptions) to the client's
|
||||
// default CallOptions. The go-micro grpc plugin only reads dial options back out of the default
|
||||
// CallOptions.Context set at construction time (not per-call CallOptions), so this is the only
|
||||
// way to make them apply to every dial the client makes.
|
||||
func withDefaultCallOptions(callOpts ...client.CallOption) client.Option {
|
||||
return func(o *client.Options) {
|
||||
for _, co := range callOpts {
|
||||
co(&o.CallOptions)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package grpc
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/shared"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go-micro.dev/v4/client"
|
||||
)
|
||||
|
||||
func TestWithDefaultCallOptionsAppliesGivenCallOptionsToDefaults(t *testing.T) {
|
||||
var applied int
|
||||
fake := client.CallOption(func(_ *client.CallOptions) {
|
||||
applied++
|
||||
})
|
||||
|
||||
opt := withDefaultCallOptions(fake, fake)
|
||||
var opts client.Options
|
||||
opt(&opts)
|
||||
|
||||
assert.Equal(t, 2, applied)
|
||||
}
|
||||
|
||||
// TestNewClientKeepaliveDialOptions ensures that keepalive params configured via
|
||||
// WithKeepaliveParams end up in the client's *default* CallOptions.Context, and only then. That
|
||||
// context is where the go-micro grpc plugin looks up the dial options on every dial (see
|
||||
// grpcClient.getGrpcDialOptions in github.com/go-micro/plugins/v4/client/grpc, which reads
|
||||
// g.opts.CallOptions.Context and ignores per-call CallOptions). Without them a black-holed peer
|
||||
// would hang the caller for as long as it allows instead of being detected by the keepalive ping.
|
||||
//
|
||||
// The dial options themselves cannot be asserted on: the plugin stores them under an unexported
|
||||
// context key, so a non-nil context is as close as this package can get from the outside.
|
||||
func TestNewClientKeepaliveDialOptions(t *testing.T) {
|
||||
// the plugin needs a registry to construct a client, and an in-memory one keeps the test
|
||||
// from reaching out to a nats-js-kv that isn't there
|
||||
t.Setenv("MICRO_REGISTRY", "memory")
|
||||
// an empty address is treated like an unset one by ocis-pkg/registry
|
||||
t.Setenv("MICRO_REGISTRY_ADDRESS", "")
|
||||
|
||||
tests := map[string]struct {
|
||||
opts []ClientOption
|
||||
wantContextSet bool
|
||||
}{
|
||||
"keepalive configured": {
|
||||
opts: []ClientOption{
|
||||
WithKeepaliveParams(&shared.GRPCClientOptions{GRPCClientKeepaliveTime: 30 * time.Second}),
|
||||
},
|
||||
wantContextSet: true,
|
||||
},
|
||||
"no keepalive option leaves grpc's own dial defaults untouched": {
|
||||
wantContextSet: false,
|
||||
},
|
||||
"keepalive option without a configured time leaves grpc's own dial defaults untouched": {
|
||||
opts: []ClientOption{WithKeepaliveParams(&shared.GRPCClientOptions{})},
|
||||
wantContextSet: false,
|
||||
},
|
||||
"keepalive option without any options leaves grpc's own dial defaults untouched": {
|
||||
opts: []ClientOption{WithKeepaliveParams(nil)},
|
||||
wantContextSet: false,
|
||||
},
|
||||
}
|
||||
|
||||
for name, tt := range tests {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
c, err := NewClient(append(GetClientOptions(&shared.GRPCClientTLS{Mode: "off"}), tt.opts...)...)
|
||||
require.NoError(t, err)
|
||||
|
||||
if tt.wantContextSet {
|
||||
assert.NotNil(t, c.Options().CallOptions.Context)
|
||||
return
|
||||
}
|
||||
assert.Nil(t, c.Options().CallOptions.Context)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,51 @@
|
||||
package grpc
|
||||
|
||||
import (
|
||||
"math"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"google.golang.org/grpc/keepalive"
|
||||
)
|
||||
|
||||
const (
|
||||
_serverMaxConnectionAgeEnv = "GRPC_MAX_CONNECTION_AGE"
|
||||
// GetClientKeepaliveParams turns the configured GRPCClientKeepaliveTime/-Timeout into grpc
|
||||
// keepalive client parameters for the go-micro based clients built in this package. Once they are
|
||||
// set, a peer that stops answering on an established connection can be told apart from one that is
|
||||
// merely slow: grpc pings it while an rpc is in flight and fails the requests on that connection
|
||||
// when no answer arrives within the timeout, instead of waiting for as long as the caller allows.
|
||||
//
|
||||
// Keepalive is strictly opt-in and driven by the keepalive time alone. Without a positive time this
|
||||
// returns the zero ClientParameters, which NewClient reads as "add no keepalive dial option at
|
||||
// all", so grpc's own behavior applies and no pings are sent - a deployment that configured nothing
|
||||
// behaves exactly as it did before this package started setting keepalive params. A positive time
|
||||
// with no usable timeout gets a working default instead, so detection cannot be left half
|
||||
// configured.
|
||||
//
|
||||
// Values are taken as configured; nothing is salvaged or second-guessed. A malformed value - '20'
|
||||
// without a unit suffix, say - is dropped by ocis-pkg/config/envdecode before it reaches this
|
||||
// function and therefore reads as "not configured" here. reva's pool.GetClientKeepaliveParams
|
||||
// (https://github.com/owncloud/reva/blob/master/pkg/rgrpc/todo/pool/keepalive.go) parses the same
|
||||
// two env vars itself for the CS3 clients and applies the same rules, so both sets of clients
|
||||
// behave identically for every input. grpc also raises any time below '10s' to '10s' on its own.
|
||||
func GetClientKeepaliveParams(grpcClientKeepaliveTime, grpcClientKeepaliveTimeout time.Duration) keepalive.ClientParameters {
|
||||
// used when a keepalive time is configured but the timeout is not usable, so that a half
|
||||
// configured setup still gives up on a dead peer rather than sitting out grpc's longer
|
||||
// stock timeout of 20s
|
||||
const _defaultKeepaliveTimeout = 10 * time.Second
|
||||
|
||||
// same default as grpc
|
||||
infinity = time.Duration(math.MaxInt64)
|
||||
_defaultMaxConnectionAge = infinity
|
||||
)
|
||||
|
||||
// GetMaxConnectionAge returns the maximum grpc connection age.
|
||||
func GetMaxConnectionAge() time.Duration {
|
||||
d, err := time.ParseDuration(os.Getenv(_serverMaxConnectionAgeEnv))
|
||||
if err != nil {
|
||||
return _defaultMaxConnectionAge
|
||||
if grpcClientKeepaliveTime <= 0 {
|
||||
// not configured: the zero value tells NewClient to skip the keepalive dial option, so
|
||||
// grpc's own behavior applies and no pings are sent
|
||||
return keepalive.ClientParameters{}
|
||||
}
|
||||
if grpcClientKeepaliveTimeout <= 0 {
|
||||
// a time without a usable timeout: fall back to a working default
|
||||
grpcClientKeepaliveTimeout = _defaultKeepaliveTimeout
|
||||
}
|
||||
|
||||
return keepalive.ClientParameters{
|
||||
Time: grpcClientKeepaliveTime,
|
||||
Timeout: grpcClientKeepaliveTimeout,
|
||||
// no pings on connections that have no rpc in flight: an idle connection has nothing
|
||||
// to rescue, and staying quiet keeps us clear of any server side ping enforcement
|
||||
PermitWithoutStream: false,
|
||||
}
|
||||
return d
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
package grpc
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/config/envdecode"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/shared"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
// must match the env tags on shared.GRPCClientOptions. GetClientKeepaliveParams itself reads no
|
||||
// environment, so these are only needed to exercise the decoding the services do before calling it.
|
||||
const (
|
||||
_clientKeepaliveTimeEnv = "GRPC_CLIENT_KEEPALIVE_TIME"
|
||||
_clientKeepaliveTimeoutEnv = "GRPC_CLIENT_KEEPALIVE_TIMEOUT"
|
||||
)
|
||||
|
||||
func TestGetClientKeepaliveParams(t *testing.T) {
|
||||
tests := map[string]struct {
|
||||
time, timeout time.Duration
|
||||
wantTime, wantTimeo time.Duration
|
||||
}{
|
||||
"nothing configured disables keepalive entirely": {
|
||||
wantTime: 0,
|
||||
wantTimeo: 0,
|
||||
},
|
||||
"nothing configured disables keepalive even if the timeout is set": {
|
||||
timeout: 5 * time.Second,
|
||||
wantTime: 0,
|
||||
wantTimeo: 0,
|
||||
},
|
||||
"a negative time disables keepalive as well": {
|
||||
time: -5 * time.Second,
|
||||
timeout: 5 * time.Second,
|
||||
wantTime: 0,
|
||||
wantTimeo: 0,
|
||||
},
|
||||
"valid values are used as configured": {
|
||||
time: 30 * time.Second,
|
||||
timeout: 5 * time.Second,
|
||||
wantTime: 30 * time.Second,
|
||||
wantTimeo: 5 * time.Second,
|
||||
},
|
||||
"a time without a timeout falls back to the working default": {
|
||||
time: 30 * time.Second,
|
||||
wantTime: 30 * time.Second,
|
||||
wantTimeo: 10 * time.Second,
|
||||
},
|
||||
"a time with a negative timeout falls back to the working default": {
|
||||
time: 30 * time.Second,
|
||||
timeout: -5 * time.Second,
|
||||
wantTime: 30 * time.Second,
|
||||
wantTimeo: 10 * time.Second,
|
||||
},
|
||||
}
|
||||
|
||||
for name, tt := range tests {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
params := GetClientKeepaliveParams(tt.time, tt.timeout)
|
||||
|
||||
assert.Equal(t, tt.wantTime, params.Time)
|
||||
assert.Equal(t, tt.wantTimeo, params.Timeout)
|
||||
assert.False(t, params.PermitWithoutStream)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// TestGetClientKeepaliveParamsAfterEnvdecode drives the two env vars through the same decoder the
|
||||
// services use, to pin down what the supported env var spellings actually produce. Only fields
|
||||
// tagged 'strict' make envdecode report a value it cannot parse, so a duration without a unit
|
||||
// suffix is dropped and reaches GetClientKeepaliveParams as a zero, which this package treats as
|
||||
// "not configured". reva's pool reads the same two env vars for the CS3 clients and arrives at the
|
||||
// same result for these inputs, so the two stay in step.
|
||||
func TestGetClientKeepaliveParamsAfterEnvdecode(t *testing.T) {
|
||||
tests := map[string]struct {
|
||||
env map[string]string
|
||||
wantTime, wantTimeo time.Duration
|
||||
}{
|
||||
"parseable values are honored": {
|
||||
env: map[string]string{
|
||||
_clientKeepaliveTimeEnv: "45s",
|
||||
_clientKeepaliveTimeoutEnv: "7s",
|
||||
},
|
||||
wantTime: 45 * time.Second,
|
||||
wantTimeo: 7 * time.Second,
|
||||
},
|
||||
"a time without a unit suffix is dropped and reads as not configured": {
|
||||
env: map[string]string{_clientKeepaliveTimeEnv: "20"},
|
||||
wantTime: 0,
|
||||
wantTimeo: 0,
|
||||
},
|
||||
"an empty time reads as not configured": {
|
||||
env: map[string]string{_clientKeepaliveTimeEnv: ""},
|
||||
wantTime: 0,
|
||||
wantTimeo: 0,
|
||||
},
|
||||
"a timeout without a unit suffix falls back but keeps the configured time": {
|
||||
env: map[string]string{
|
||||
_clientKeepaliveTimeEnv: "45s",
|
||||
_clientKeepaliveTimeoutEnv: "7",
|
||||
},
|
||||
wantTime: 45 * time.Second,
|
||||
wantTimeo: 10 * time.Second,
|
||||
},
|
||||
"a timeout alone does not enable keepalive": {
|
||||
env: map[string]string{_clientKeepaliveTimeoutEnv: "7s"},
|
||||
wantTime: 0,
|
||||
wantTimeo: 0,
|
||||
},
|
||||
}
|
||||
|
||||
for name, tt := range tests {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
for k, v := range tt.env {
|
||||
t.Setenv(k, v)
|
||||
}
|
||||
|
||||
var co shared.GRPCClientOptions
|
||||
require.NoError(t, envdecode.Decode(&co))
|
||||
|
||||
params := GetClientKeepaliveParams(co.GRPCClientKeepaliveTime, co.GRPCClientKeepaliveTimeout)
|
||||
assert.Equal(t, tt.wantTime, params.Time)
|
||||
assert.Equal(t, tt.wantTimeo, params.Timeout)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,12 @@ import (
|
||||
"github.com/owncloud/reva/v2/pkg/autoprop"
|
||||
)
|
||||
|
||||
// _minKeepalivePingInterval is the shortest keepalive ping interval we accept
|
||||
// from a client. Clients cannot ping more often than every ten seconds, so this
|
||||
// leaves headroom below that; grpc's own default would GOAWAY anything more
|
||||
// frequent than every five minutes.
|
||||
const _minKeepalivePingInterval = 5 * time.Second
|
||||
|
||||
// Service simply wraps the go-micro grpc service.
|
||||
type Service struct {
|
||||
micro.Service
|
||||
@@ -33,8 +39,11 @@ type Service struct {
|
||||
func NewServiceWithClient(client client.Client, opts ...Option) (Service, error) {
|
||||
var mServer server.Server
|
||||
sopts := newOptions(opts...)
|
||||
keepaliveParams := grpc.KeepaliveParams(keepalive.ServerParameters{
|
||||
MaxConnectionAge: GetMaxConnectionAge(), // this forces clients to reconnect after 30 seconds, triggering a new DNS lookup to pick up new IPs
|
||||
// accept the keepalive pings clients send while an rpc is in flight, so that
|
||||
// they can tell a peer that stopped answering from one that is merely slow
|
||||
keepaliveParams := grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{
|
||||
MinTime: _minKeepalivePingInterval,
|
||||
PermitWithoutStream: true,
|
||||
})
|
||||
tlsConfig := &tls.Config{}
|
||||
|
||||
|
||||
@@ -42,6 +42,22 @@ type GRPCClientTLS struct {
|
||||
CACert string `yaml:"cacert" env:"OCIS_GRPC_CLIENT_TLS_CACERT" desc:"Path/File name for the root CA certificate (in PEM format) used to validate TLS server certificates of the go-micro based grpc services." introductionVersion:"pre5.0"`
|
||||
}
|
||||
|
||||
// GRPCClientOptions holds settings that apply to the grpc clients of all services, both the
|
||||
// reva CS3 clients and the go-micro based ones.
|
||||
type GRPCClientOptions struct {
|
||||
// NOTE: you will not find GRPCMaxReceivedMessageSize being used in the code. The envvar is actually extracted in revas `pool` package: https://github.com/cs3org/reva/blob/edge/pkg/rgrpc/todo/pool/connection.go
|
||||
// It is mentioned here again so it is documented
|
||||
GRPCMaxReceivedMessageSize int `yaml:"grpc_max_received_message_size" env:"OCIS_GRPC_MAX_RECEIVED_MESSAGE_SIZE" desc:"The maximum body size for grpc requests. Defaults to '10240000' bytes (10MB). Note that large values can potentially hide errors but may lead to network timeouts. Should only be changed temporarily to regain access for large folders with 25.000+ files to copy out data." introductionVersion:"pre5.0"`
|
||||
// The two keepalive settings below apply to both the reva CS3 clients (revas `pool` package:
|
||||
// https://github.com/owncloud/reva/blob/master/pkg/rgrpc/todo/pool/keepalive.go) and the
|
||||
// go-micro based clients (GetClientKeepaliveParams in ocis-pkg/service/grpc/keepalive.go),
|
||||
// which read them independently of each other but apply the same rules, so both behave
|
||||
// identically for every input. Keepalive is off unless the time is set to a duration that
|
||||
// parses; a value without a unit suffix leaves the clients without pings.
|
||||
GRPCClientKeepaliveTime time.Duration `yaml:"grpc_client_keepalive_time" env:"GRPC_CLIENT_KEEPALIVE_TIME" desc:"How long a grpc client connection with an ongoing request may stay silent before the server is pinged to check whether it is still answering. Set a duration like '20s' to enable detection of unresponsive peers. Leaving it unset, or at '0', sends no pings at all, which is grpc's own default. Values below '10s' are raised to '10s' by grpc. Make sure to include the unit suffix, a bare number is not a valid duration." introductionVersion:"8.3.0"`
|
||||
GRPCClientKeepaliveTimeout time.Duration `yaml:"grpc_client_keepalive_timeout" env:"GRPC_CLIENT_KEEPALIVE_TIMEOUT" desc:"How long a grpc client waits for the answer to a keepalive ping before it considers the connection dead and fails all requests on it. Defaults to '10s'. Has no effect unless GRPC_CLIENT_KEEPALIVE_TIME is set. See GRPC_CLIENT_KEEPALIVE_TIME." introductionVersion:"8.3.0"`
|
||||
}
|
||||
|
||||
type GRPCServiceTLS struct {
|
||||
Enabled bool `yaml:"enabled" env:"OCIS_GRPC_TLS_ENABLED" desc:"Activates TLS for the grpc based services using the server certifcate and key configured via OCIS_GRPC_TLS_CERTIFICATE and OCIS_GRPC_TLS_KEY. If OCIS_GRPC_TLS_CERTIFICATE is not set a temporary server certificate is generated - to be used with OCIS_GRPC_CLIENT_TLS_MODE=insecure." introductionVersion:"pre5.0"`
|
||||
Cert string `yaml:"cert" env:"OCIS_GRPC_TLS_CERTIFICATE" desc:"Path/File name of the TLS server certificate (in PEM format) for the grpc services." introductionVersion:"pre5.0"`
|
||||
@@ -56,38 +72,35 @@ type HTTPServiceTLS struct {
|
||||
}
|
||||
|
||||
type Cache struct {
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_CACHE_STORE_NODES" desc:"A comma separated list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"OCIS_CACHE_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"OCIS_CACHE_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL" desc:"Time to live for events in the store. The duration can be set as number followed by a unit identifier like s, m or h." introductionVersion:"pre5.0"`
|
||||
DisablePersistence bool `yaml:"disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE" desc:"Disables persistence of the cache. Only applies when store type 'nats-js-kv' is configured. Defaults to false." introductionVersion:"5.0"`
|
||||
AuthUsername string `yaml:"auth_username" env:"OCIS_CACHE_AUTH_USERNAME" desc:"The username to use for authentication. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"pre5.0"`
|
||||
AuthPassword string `yaml:"auth_password" env:"OCIS_CACHE_AUTH_PASSWORD" desc:"The password to use for authentication. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"pre5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_CACHE_ENABLE_TLS" desc:"Activate TLS for the connection to the NATS store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_CACHE_TLS_INSECURE" desc:"Disable TLS certificate verification for the NATS store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate used to validate the NATS store TLS certificate. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_CACHE_STORE_NODES" desc:"A comma separated list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"OCIS_CACHE_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"OCIS_CACHE_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL" desc:"Time to live for events in the store. The duration can be set as number followed by a unit identifier like s, m or h." introductionVersion:"pre5.0"`
|
||||
DisablePersistence bool `yaml:"disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE" desc:"Disables persistence of the cache. Only applies when store type 'nats-js-kv' is configured. Defaults to false." introductionVersion:"5.0"`
|
||||
AuthUsername string `yaml:"auth_username" env:"OCIS_CACHE_AUTH_USERNAME" desc:"The username to use for authentication. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"pre5.0"`
|
||||
AuthPassword string `yaml:"auth_password" env:"OCIS_CACHE_AUTH_PASSWORD" desc:"The password to use for authentication. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"pre5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_CACHE_ENABLE_TLS" desc:"Activate TLS for the connection to the NATS store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_CACHE_TLS_INSECURE" desc:"Disable TLS certificate verification for the NATS store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate used to validate the NATS store TLS certificate. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
}
|
||||
|
||||
// Commons holds configuration that are common to all extensions. Each extension can then decide whether
|
||||
// to overwrite its values.
|
||||
type Commons struct {
|
||||
Log *Log `yaml:"log"`
|
||||
Tracing *Tracing `yaml:"tracing"`
|
||||
Cache *Cache `yaml:"cache"`
|
||||
GRPCClientTLS *GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCServiceTLS *GRPCServiceTLS `yaml:"grpc_service_tls"`
|
||||
HTTPServiceTLS HTTPServiceTLS `yaml:"http_service_tls"`
|
||||
OcisURL string `yaml:"ocis_url" env:"OCIS_URL" desc:"URL, where oCIS is reachable for users." introductionVersion:"pre5.0"`
|
||||
TokenManager *TokenManager `mask:"struct" yaml:"token_manager"`
|
||||
Reva *Reva `yaml:"reva"`
|
||||
MachineAuthAPIKey string `mask:"password" yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY" desc:"Machine auth API key used to validate internal requests necessary for the access to resources from other services." introductionVersion:"pre5.0"`
|
||||
TransferSecret string `mask:"password" yaml:"transfer_secret,omitempty" env:"REVA_TRANSFER_SECRET" desc:"The secret used for signing the requests towards the data gateway for up- and downloads." introductionVersion:"pre5.0"`
|
||||
SystemUserID string `yaml:"system_user_id" env:"OCIS_SYSTEM_USER_ID" desc:"ID of the oCIS storage-system system user. Admins need to set the ID for the storage-system system user in this config option which is then used to reference the user. Any reasonable long string is possible, preferably this would be an UUIDv4 format." introductionVersion:"pre5.0"`
|
||||
SystemUserAPIKey string `mask:"password" yaml:"system_user_api_key" env:"SYSTEM_USER_API_KEY" desc:"API key for all system users." introductionVersion:"pre5.0"`
|
||||
AdminUserID string `yaml:"admin_user_id" env:"OCIS_ADMIN_USER_ID" desc:"ID of a user, that should receive admin privileges. Consider that the UUID can be encoded in some LDAP deployment configurations like in .ldif files. These need to be decoded beforehand." introductionVersion:"pre5.0"`
|
||||
|
||||
// NOTE: you will not fing GRPCMaxReceivedMessageSize size being used in the code. The envvar is actually extracted in revas `pool` package: https://github.com/cs3org/reva/blob/edge/pkg/rgrpc/todo/pool/connection.go
|
||||
// It is mentioned here again so it is documented
|
||||
GRPCMaxReceivedMessageSize int `env:"OCIS_GRPC_MAX_RECEIVED_MESSAGE_SIZE" desc:"The maximum body size for grpc requests. Defaults to '10240000' bytes (10MB). Note that large values can potentially hide errors but may lead to network timeouts. Should only be changed temporarily to regain access for large folders with 25.000+ files to copy out data." introductionVersion:"pre5.0"`
|
||||
Log *Log `yaml:"log"`
|
||||
Tracing *Tracing `yaml:"tracing"`
|
||||
Cache *Cache `yaml:"cache"`
|
||||
GRPCClientTLS *GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
GRPCServiceTLS *GRPCServiceTLS `yaml:"grpc_service_tls"`
|
||||
HTTPServiceTLS HTTPServiceTLS `yaml:"http_service_tls"`
|
||||
OcisURL string `yaml:"ocis_url" env:"OCIS_URL" desc:"URL, where oCIS is reachable for users." introductionVersion:"pre5.0"`
|
||||
TokenManager *TokenManager `mask:"struct" yaml:"token_manager"`
|
||||
Reva *Reva `yaml:"reva"`
|
||||
MachineAuthAPIKey string `mask:"password" yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY" desc:"Machine auth API key used to validate internal requests necessary for the access to resources from other services." introductionVersion:"pre5.0"`
|
||||
TransferSecret string `mask:"password" yaml:"transfer_secret,omitempty" env:"REVA_TRANSFER_SECRET" desc:"The secret used for signing the requests towards the data gateway for up- and downloads." introductionVersion:"pre5.0"`
|
||||
SystemUserID string `yaml:"system_user_id" env:"OCIS_SYSTEM_USER_ID" desc:"ID of the oCIS storage-system system user. Admins need to set the ID for the storage-system system user in this config option which is then used to reference the user. Any reasonable long string is possible, preferably this would be an UUIDv4 format." introductionVersion:"pre5.0"`
|
||||
SystemUserAPIKey string `mask:"password" yaml:"system_user_api_key" env:"SYSTEM_USER_API_KEY" desc:"API key for all system users." introductionVersion:"pre5.0"`
|
||||
AdminUserID string `yaml:"admin_user_id" env:"OCIS_ADMIN_USER_ID" desc:"ID of a user, that should receive admin privileges. Consider that the UUID can be encoded in some LDAP deployment configurations like in .ldif files. These need to be decoded beforehand." introductionVersion:"pre5.0"`
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "ocis",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
||||
Generated
+9
@@ -0,0 +1,9 @@
|
||||
lockfileVersion: '9.0'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
importers:
|
||||
|
||||
.: {}
|
||||
@@ -111,7 +111,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
|
||||
grpcClient, err := ogrpc.NewClient(
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithTraceProvider(tracerProvider))...,
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithKeepaliveParams(cfg.GRPCClientOptions), ogrpc.WithTraceProvider(tracerProvider))...,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -20,8 +20,9 @@ type Config struct {
|
||||
Events Events `yaml:"events"`
|
||||
Store Store `yaml:"store"`
|
||||
|
||||
RevaGateway string `yaml:"reva_gateway" env:"OCIS_REVA_GATEWAY" desc:"CS3 gateway used to look up user metadata" introductionVersion:"5.0"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
RevaGateway string `yaml:"reva_gateway" env:"OCIS_REVA_GATEWAY" desc:"CS3 gateway used to look up user metadata" introductionVersion:"5.0"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
|
||||
HTTP HTTP `yaml:"http"`
|
||||
TokenManager *TokenManager `yaml:"token_manager"`
|
||||
@@ -47,16 +48,16 @@ type Events struct {
|
||||
|
||||
// Store configures the store to use
|
||||
type Store struct {
|
||||
Store string `yaml:"store" env:"OCIS_PERSISTENT_STORE;ACTIVITYLOG_STORE" desc:"The type of the store. Supported values are: 'memory', 'nats-js-kv', 'redis-sentinel', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;ACTIVITYLOG_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"ACTIVITYLOG_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"ACTIVITYLOG_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;ACTIVITYLOG_STORE_TTL" desc:"Time to live for events in the store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_PERSISTENT_STORE_AUTH_USERNAME;ACTIVITYLOG_STORE_AUTH_USERNAME" desc:"The username to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_PERSISTENT_STORE_AUTH_PASSWORD;ACTIVITYLOG_STORE_AUTH_PASSWORD" desc:"The password to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_PERSISTENT_STORE_ENABLE_TLS;ACTIVITYLOG_STORE_ENABLE_TLS" desc:"Activate TLS for the connection to the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_PERSISTENT_STORE_TLS_INSECURE;ACTIVITYLOG_STORE_TLS_INSECURE" desc:"Disable TLS certificate verification for the store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_PERSISTENT_STORE_TLS_ROOT_CA_CERTIFICATE;ACTIVITYLOG_STORE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate for the store TLS connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
Store string `yaml:"store" env:"OCIS_PERSISTENT_STORE;ACTIVITYLOG_STORE" desc:"The type of the store. Supported values are: 'memory', 'nats-js-kv', 'redis-sentinel', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;ACTIVITYLOG_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"ACTIVITYLOG_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"ACTIVITYLOG_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;ACTIVITYLOG_STORE_TTL" desc:"Time to live for events in the store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_PERSISTENT_STORE_AUTH_USERNAME;ACTIVITYLOG_STORE_AUTH_USERNAME" desc:"The username to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_PERSISTENT_STORE_AUTH_PASSWORD;ACTIVITYLOG_STORE_AUTH_PASSWORD" desc:"The password to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_PERSISTENT_STORE_ENABLE_TLS;ACTIVITYLOG_STORE_ENABLE_TLS" desc:"Activate TLS for the connection to the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_PERSISTENT_STORE_TLS_INSECURE;ACTIVITYLOG_STORE_TLS_INSECURE" desc:"Disable TLS certificate verification for the store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_PERSISTENT_STORE_TLS_ROOT_CA_CERTIFICATE;ACTIVITYLOG_STORE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate for the store TLS connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
}
|
||||
|
||||
// ServiceAccount is the configuration for the used service account
|
||||
|
||||
@@ -71,6 +71,10 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
|
||||
if cfg.TokenManager == nil && cfg.Commons != nil && cfg.Commons.TokenManager != nil {
|
||||
cfg.TokenManager = &config.TokenManager{
|
||||
JWTSecret: cfg.Commons.TokenManager.JWTSecret,
|
||||
|
||||
@@ -107,7 +107,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
|
||||
grpcClient, err := ogrpc.NewClient(
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithTraceProvider(traceProvider))...,
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithKeepaliveParams(cfg.GRPCClientOptions), ogrpc.WithTraceProvider(traceProvider))...,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -17,7 +17,8 @@ type Config struct {
|
||||
GRPC GRPCConfig `yaml:"grpc"`
|
||||
HTTP HTTP `yaml:"http"`
|
||||
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
|
||||
TokenManager *TokenManager `yaml:"token_manager"`
|
||||
Reva *shared.Reva `yaml:"reva"`
|
||||
|
||||
@@ -76,6 +76,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
|
||||
if cfg.Reva == nil && cfg.Commons != nil {
|
||||
cfg.Reva = structs.CopyOrZeroValue(cfg.Commons.Reva)
|
||||
|
||||
@@ -41,7 +41,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
|
||||
cfg.GrpcClient, err = ogrpc.NewClient(
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithTraceProvider(traceProvider))...,
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithKeepaliveParams(cfg.GRPCClientOptions), ogrpc.WithTraceProvider(traceProvider))...,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -18,9 +18,10 @@ type Config struct {
|
||||
Log *Log `yaml:"log"`
|
||||
Debug Debug `yaml:"debug"`
|
||||
|
||||
GRPC GRPCConfig `yaml:"grpc"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
GRPC GRPCConfig `yaml:"grpc"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
|
||||
Events Events `yaml:"events"`
|
||||
Store Store `yaml:"store"`
|
||||
@@ -37,11 +38,11 @@ type GRPCConfig struct {
|
||||
|
||||
// Store configures the store to use
|
||||
type Store struct {
|
||||
Store string `yaml:"store" env:"OCIS_PERSISTENT_STORE;EVENTHISTORY_STORE" desc:"The type of the store. Supported values are: 'memory', 'nats-js-kv', 'redis-sentinel', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;EVENTHISTORY_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"EVENTHISTORY_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"EVENTHISTORY_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;EVENTHISTORY_STORE_TTL" desc:"Time to live for events in the store. Defaults to '336h' (2 weeks). See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Store string `yaml:"store" env:"OCIS_PERSISTENT_STORE;EVENTHISTORY_STORE" desc:"The type of the store. Supported values are: 'memory', 'nats-js-kv', 'redis-sentinel', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;EVENTHISTORY_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"EVENTHISTORY_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"EVENTHISTORY_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;EVENTHISTORY_STORE_TTL" desc:"Time to live for events in the store. Defaults to '336h' (2 weeks). See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_PERSISTENT_STORE_AUTH_USERNAME;EVENTHISTORY_STORE_AUTH_USERNAME" desc:"The username to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_PERSISTENT_STORE_AUTH_PASSWORD;EVENTHISTORY_STORE_AUTH_PASSWORD" desc:"The password to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_PERSISTENT_STORE_ENABLE_TLS;EVENTHISTORY_STORE_ENABLE_TLS" desc:"Activate TLS for the connection to the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
|
||||
@@ -74,6 +74,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
|
||||
if cfg.GRPC.TLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPC.TLS = structs.CopyOrZeroValue(cfg.Commons.GRPCServiceTLS)
|
||||
|
||||
@@ -75,6 +75,7 @@ func ListenForEvents(ctx context.Context, cfg *config.Config, l log.Logger) erro
|
||||
grpcClient, err := grpc.NewClient(
|
||||
append(
|
||||
grpc.GetClientOptions(cfg.GRPCClientTLS),
|
||||
grpc.WithKeepaliveParams(cfg.GRPCClientOptions),
|
||||
grpc.WithTraceProvider(traceProvider),
|
||||
)...,
|
||||
)
|
||||
|
||||
@@ -54,10 +54,11 @@ type Config struct {
|
||||
|
||||
Middleware Middleware `yaml:"middleware"`
|
||||
|
||||
Events Events `yaml:"events"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
AutoAcceptShares bool `yaml:"auto_accept_shares" env:"FRONTEND_AUTO_ACCEPT_SHARES" desc:"Defines if shares should be auto accepted by default. Users can change this setting individually in their profile." introductionVersion:"5.0"`
|
||||
ServiceAccount ServiceAccount `yaml:"service_account" mask:"struct"`
|
||||
Events Events `yaml:"events"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
AutoAcceptShares bool `yaml:"auto_accept_shares" env:"FRONTEND_AUTO_ACCEPT_SHARES" desc:"Defines if shares should be auto accepted by default. Users can change this setting individually in their profile." introductionVersion:"5.0"`
|
||||
ServiceAccount ServiceAccount `yaml:"service_account" mask:"struct"`
|
||||
|
||||
PasswordPolicy PasswordPolicy `yaml:"password_policy"`
|
||||
Validation Validation `yaml:"validation"`
|
||||
|
||||
@@ -51,6 +51,10 @@ func Validate(cfg *config.Config) error {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
|
||||
// Set password enforcement on all public links when config is set
|
||||
if cfg.OCS.PublicShareMustHavePassword {
|
||||
cfg.OCS.WriteablePublicShareMustHavePassword = true
|
||||
|
||||
@@ -22,9 +22,10 @@ type Config struct {
|
||||
|
||||
API API `yaml:"api"`
|
||||
|
||||
Reva *shared.Reva `yaml:"reva"`
|
||||
TokenManager *TokenManager `yaml:"token_manager"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
Reva *shared.Reva `yaml:"reva"`
|
||||
TokenManager *TokenManager `yaml:"token_manager"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
|
||||
Application Application `yaml:"application"`
|
||||
Spaces Spaces `yaml:"spaces"`
|
||||
|
||||
@@ -191,6 +191,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.HTTP.TLS = cfg.Commons.HTTPServiceTLS
|
||||
|
||||
@@ -87,7 +87,7 @@ func Server(opts ...Option) (http.Service, error) {
|
||||
var roleService svc.RoleService
|
||||
var valueService settingssvc.ValueService
|
||||
var gatewaySelector pool.Selectable[gateway.GatewayAPIClient]
|
||||
grpcClient, err := grpc.NewClient(append(grpc.GetClientOptions(options.Config.GRPCClientTLS), grpc.WithTraceProvider(options.TraceProvider))...)
|
||||
grpcClient, err := grpc.NewClient(append(grpc.GetClientOptions(options.Config.GRPCClientTLS), grpc.WithKeepaliveParams(options.Config.GRPCClientOptions), grpc.WithTraceProvider(options.TraceProvider))...)
|
||||
if err != nil {
|
||||
return http.Service{}, err
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ func NewService(opts ...Option) (Graph, error) { //nolint:maintidx
|
||||
}
|
||||
|
||||
if options.PermissionService == nil {
|
||||
grpcClient, err := grpc.NewClient(append(grpc.GetClientOptions(options.Config.GRPCClientTLS), grpc.WithTraceProvider(options.TraceProvider))...)
|
||||
grpcClient, err := grpc.NewClient(append(grpc.GetClientOptions(options.Config.GRPCClientTLS), grpc.WithKeepaliveParams(options.Config.GRPCClientOptions), grpc.WithTraceProvider(options.TraceProvider))...)
|
||||
if err != nil {
|
||||
return svc, err
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/*! For license information please see 168.14897b60.chunk.js.LICENSE.txt */
|
||||
"use strict";(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[168],{4845:(e,t)=>{t.A=void 0;var n={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};t.A=n},6159:(e,t,n)=>{n.d(t,{A:()=>d});var o=n(8621),r=n(4680),i=n(1789),a=n(823),s=n(5921);const c=(0,n(8588).A)(i.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var l=i.forwardRef(function(e,t){var n=e.alt,s=e.children,l=e.classes,d=e.className,u=e.component,p=void 0===u?"div":u,f=e.imgProps,m=e.sizes,h=e.src,v=e.srcSet,g=e.variant,b=void 0===g?"circular":g,y=(0,r.A)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),w=null,A=function(e){var t=e.src,n=e.srcSet,o=i.useState(!1),r=o[0],a=o[1];return i.useEffect(function(){if(t||n){a(!1);var e=!0,o=new Image;return o.src=t,o.srcSet=n,o.onload=function(){e&&a("loaded")},o.onerror=function(){e&&a("error")},function(){e=!1}}},[t,n]),r}({src:h,srcSet:v}),x=h||v,E=x&&"error"!==A;return w=E?i.createElement("img",(0,o.A)({alt:n,src:h,srcSet:v,sizes:m,className:l.img},f)):null!=s?s:x&&n?n[0]:i.createElement(c,{className:l.fallback}),i.createElement(p,(0,o.A)({className:(0,a.A)(l.root,l.system,l[b],d,!E&&l.colorDefault),ref:t},y),w)});const d=(0,s.A)(function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}},{name:"MuiAvatar"})(l)},8198:(e,t,n)=>{n.d(t,{A:()=>S});var o=n(8621),r=n(4680),i=n(1789),a=n(823),s=n(1543),c=n(9274),l=i.createContext();const d=l;var u=n(5921),p=n(5539),f=n(6809),m=n(8861),h=i.forwardRef(function(e,t){var n=e.edge,s=void 0!==n&&n,c=e.children,l=e.classes,d=e.className,u=e.color,p=void 0===u?"default":u,h=e.disabled,v=void 0!==h&&h,g=e.disableFocusRipple,b=void 0!==g&&g,y=e.size,w=void 0===y?"medium":y,A=(0,r.A)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(f.A,(0,o.A)({className:(0,a.A)(l.root,d,"default"!==p&&l["color".concat((0,m.A)(p))],v&&l.disabled,"small"===w&&l["size".concat((0,m.A)(w))],{start:l.edgeStart,end:l.edgeEnd}[s]),centerRipple:!0,focusRipple:!b,disabled:v,ref:t},A),i.createElement("span",{className:l.label},c))});const v=(0,u.A)(function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,p.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,p.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,p.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},{name:"MuiIconButton"})(h);var g=i.forwardRef(function(e,t){var n=e.autoFocus,l=e.checked,u=e.checkedIcon,p=e.classes,f=e.className,m=e.defaultChecked,h=e.disabled,g=e.icon,b=e.id,y=e.inputProps,w=e.inputRef,A=e.name,x=e.onBlur,E=e.onChange,T=e.onFocus,k=e.readOnly,C=e.required,S=e.tabIndex,N=e.type,O=e.value,R=(0,r.A)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),M=(0,c.A)({controlled:l,default:Boolean(m),name:"SwitchBase",state:"checked"}),L=(0,s.A)(M,2),P=L[0],F=L[1],B=i.useContext(d),D=h;B&&"undefined"===typeof D&&(D=B.disabled);var I="checkbox"===N||"radio"===N;return i.createElement(v,(0,o.A)({component:"span",className:(0,a.A)(p.root,f,P&&p.checked,D&&p.disabled),disabled:D,tabIndeLine truncated
|
||||
//# sourceMappingURL=168.14897b60.chunk.js.map
|
||||
@@ -0,0 +1,24 @@
|
||||
/**!
|
||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||
* @version 1.16.1-lts
|
||||
* @license
|
||||
* Copyright (c) 2016 Federico Zivolo and contributors
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.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EAAY9G,EAAM8G,UAClBC,EAAc/G,EAAMgH,QACpBC,EAAcjH,EAAMiH,YACpB5G,EAAUL,EAAMK,QAChBC,EAAYN,EAAMM,UAClB4G,EAAiBlH,EAAMkH,eACvBC,EAAenH,EAAM6E,SACrBuC,EAAOpH,EAAMoH,KACbC,EAAKrH,EAAMqH,GACXC,EAAatH,EAAMsH,WACnBC,EAAWvH,EAAMuH,SACjBjD,EAAOtE,EAAMsE,KACbkD,EAASxH,EAAMwH,OACfC,EAAWzH,EAAMyH,SACjBC,EAAU1H,EAAM0H,QAChBC,EAAW3H,EAAM2H,SACjBC,EAAW5H,EAAM4H,SACjBC,EAAW7H,EAAM6H,SACjBjE,EAAO5D,EAAM4D,KACbkE,EAAQ9H,EAAM8H,MACd9G,GAAQC,EAAAA,EAAAA,GAAyBjB,EAAO,CAAC,YAAa,UAAW,cAAe,UAAW,YAAa,iBAAkB,WAAY,OAAQ,KAAM,aAAc,WAAY,OAAQ,SAAU,WAAY,UAAW,WAAY,WAAY,WAAY,OAAQ,UAEnQ+H,GAAiBC,EAAAA,EAAAA,GAAc,CACjCC,WAAYlB,EACZrD,QAASwE,QAAQhB,GACjB5C,KAAM,aACN6D,MAAO,YAELC,GAAkBC,EAAAA,EAAAA,GAAeN,EAAgB,GACjDf,EAAUoB,EAAgB,GAC1BE,EAAkBF,EAAgB,GAElCG,EChEG1I,EAAAA,WAAiB0E,GDgGpBM,EAAWsC,EAEXoB,GLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[685],{3343:(n,t,e)=>{"use strict";e.d(t,{zR:()=>b,TM:()=>R,yJ:()=>v,sC:()=>L,AO:()=>d,Fu:()=>m});var r=e(8621);function o(n){return"/"===n.charAt(0)}function i(n,t){for(var e=t,r=e+1,o=n.length;r<o;e+=1,r+=1)n[e]=n[r];n.pop()}const a=function(n,t){void 0===t&&(t="");var e,r=n&&n.split("/")||[],a=t&&t.split("/")||[],c=n&&o(n),u=t&&o(t),s=c||u;if(n&&o(n)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var f=a[a.length-1];e="."===f||".."===f||""===f}else e=!1;for(var l=0,p=a.length;p>=0;p--){var h=a[p];"."===h?i(a,p):".."===h?(i(a,p),l++):l&&(i(a,p),l--)}if(!s)for(;l--;l)a.unshift("..");!s||""===a[0]||a[0]&&o(a[0])||a.unshift("");var d=a.join("/");return e&&"/"!==d.substr(-1)&&(d+="/"),d};function c(n){return n.valueOf?n.valueOf():Object.prototype.valueOf.call(n)}const u=function n(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,r){return n(t,e[r])});if("object"===typeof t||"object"===typeof e){var r=c(t),o=c(e);return r!==t||o!==e?n(r,o):Object.keys(Object.assign({},t,e)).every(function(r){return n(t[r],e[r])})}return!1};var s=e(4091);function f(n){return"/"===n.charAt(0)?n:"/"+n}function l(n){return"/"===n.charAt(0)?n.substr(1):n}function p(n,t){return function(n,t){return 0===n.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(n.charAt(t.length))}(n,t)?n.substr(t.length):n}function h(n){return"/"===n.charAt(n.length-1)?n.slice(0,-1):n}function d(n){var t=n.pathname,e=n.search,r=n.hash,o=t||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function v(n,t,e,o){var i;"string"===typeof n?(i=function(n){var t=n||"/",e="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(e=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===e?"":e,hash:"#"===r?"":r}}(n),i.state=t):(void 0===(i=(0,r.A)({},n)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(c){throw c instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):c}return e&&(i.key=e),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function m(n,t){return n.pathname===t.pathname&&n.search===t.search&&n.hash===t.hash&&n.key===t.key&&u(n.state,t.state)}function y(){var n=null;var t=[];return{setPrompt:function(t){return n=t,function(){n===t&&(n=null)}},confirmTransitionTo:function(t,e,r,o){if(null!=n){var i="function"===typeof n?n(t,e):n;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(n){var e=!0;function r(){e&&n.apply(void 0,arguments)}return t.push(r),function(){e=!1,t=t.filter(function(n){return n!==r})}},notifyListeners:function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];t.forEach(function(n){return n.apply(void 0,e)})}}}var g=!("undefined"===typeof window||!window.document||!window.document.createElement);function w(n,t){t(window.confirm(n))}var x="popstate",A="hashchange";function E(){try{return window.history.state||{}}catch(n){return{}}}function b(n){void 0===n&&(n={}),g||(0,s.A)(!1);var t=window.history,e=function(){var n=window.navigator.userAgent;return(-1===n.indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=n,a=i.forceRefresh,c=void 0!==a&&a,u=i.getUserConfirmation,l=void 0===u?w:u,m=i.keyLength,b=void 0===m?6:m,C=n.basename?h(f(n.basename)):"";function O(n){var t=n||{},e=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return C&&(i=p(i,C)),v(i,r,e)}function P(){return Math.random().toString(36).substr(2,b)}var k=y();function T(n){(0,r.A)($,n),$.length=t.length,k.notifyListeners($.location,$.action)}function R(n){(function(n){return void 0===n.state&&-1===navigator.userAgent.indexOf("CriOS")})(n)||U(O(n.state))}function _(){U(O(E()))}var L=!1;function U(n){if(L)L=!1,T();else{k.confirmTransitionTo(n,"POP",l,function(t){t?T({action:"POP",location:n}):function(n){var t=$.location,e=M.indexOf(t.key);-1===e&&(e=0);var r=M.indexOf(n.key);-1===r&&(r=0);var o=e-r;o&&(L=!0,j(o))}(n)})}}var S=O(E()),M=[S.key];function I(n){return C+d(n)}function j(n){t.go(n)}var B=0;function N(n){1===(B+=n)&&1===n?(window.addEventListener(x,R),o&&window.addEventListener(A,_)):0===B&&(window.removeEventListener(x,R),o&&window.removeEventListener(A,_))}var W=!1;var $={length:t.length,action:"POP",location:S,createHref:I,push:function(n,r){var o="PUSH",i=vLine truncated
|
||||
//# sourceMappingURL=685.b3ace706.chunk.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/685.b3ace706.chunk.js","mappings":"oLAAA,SAASA,EAAWC,GAClB,MAA8B,MAAvBA,EAASC,OAAO,EACzB,CAGA,SAASC,EAAUC,EAAMC,GACvB,IAAK,IAAIC,EAAID,EAAOE,EAAID,EAAI,EAAGE,EAAIJ,EAAKK,OAAQF,EAAIC,EAAGF,GAAK,EAAGC,GAAK,EAClEH,EAAKE,GAAKF,EAAKG,GAGjBH,EAAKM,KACP,CA+DA,QA5DA,SAAyBC,EAAIC,QACdC,IAATD,IAAoBA,EAAO,IAE/B,IAkBIE,EAlBAC,EAAWJ,GAAMA,EAAGK,MAAM,MAAS,GACnCC,EAAaL,GAAQA,EAAKI,MAAM,MAAS,GAEzCE,EAAUP,GAAMX,EAAWW,GAC3BQ,EAAYP,GAAQZ,EAAWY,GAC/BQ,EAAaF,GAAWC,EAW5B,GATIR,GAAMX,EAAWW,GAEnBM,EAAYF,EACHA,EAAQN,SAEjBQ,EAAUP,MACVO,EAAY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BF,EAAG1D,QAAQ,gBAAuD,IAA/B0D,EAAG1D,QAAQ,iBAA2D,IAAjC0D,EAAG1D,QAAQ,mBAAqD,IAA1B0D,EAAG1D,QAAQ,YAAqD,IAAjC0D,EAAG1D,QAAQ,mBACtJ2C,OAAOS,SAAW,cAAeT,OAAOS,OACjD,CAmDsBS,GAChBC,KA7CsD,IALine truncated
|
||||
@@ -0,0 +1,3 @@
|
||||
/*! For license information please see 89.cc7be865.js.LICENSE.txt */
|
||||
(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[89],{3924:(e,t)=>{"use strict";t.A=void 0;var n={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"};t.A=n},1069:(e,t)=>{"use strict";t.A=void 0;var n={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};t.A=n},4184:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(8621),o=n(4680),i=n(1789),a=n(823),s=n(5921),l=n(8861),u=44,c=i.forwardRef(function(e,t){var n=e.classes,s=e.className,c=e.color,f=void 0===c?"primary":c,d=e.disableShrink,p=void 0!==d&&d,h=e.size,g=void 0===h?40:h,m=e.style,y=e.thickness,v=void 0===y?3.6:y,b=e.value,w=void 0===b?0:b,k=e.variant,x=void 0===k?"indeterminate":k,S=(0,o.A)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),E={},C={},A={};if("determinate"===x||"static"===x){var O=2*Math.PI*((u-v)/2);E.strokeDasharray=O.toFixed(3),A["aria-valuenow"]=Math.round(w),E.strokeDashoffset="".concat(((100-w)/100*O).toFixed(3),"px"),C.transform="rotate(-90deg)"}return i.createElement("div",(0,r.A)({className:(0,a.A)(n.root,s,"inherit"!==f&&n["color".concat((0,l.A)(f))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[x]),style:(0,r.A)({width:g,height:g},C,m),ref:t,role:"progressbar"},A,S),i.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(u," ").concat(u)},i.createElement("circle",{className:(0,a.A)(n.circle,p&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[x]),style:E,cx:u,cy:u,r:(u-v)/2,fill:"none",strokeWidth:v})))});const f=(0,s.A)(function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}},{name:"MuiCircularProgress",flip:!1})(c)},2532:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(8621),o=n(1543),i=n(4680),a=n(1789),s=n(5035),l=n(7996),u=n(5534),c=n(9067),f=n(9239),d={entering:{opacity:1},entered:{opacity:1}},p={enter:l.p0.enteringScreen,exit:l.p0.leavingScreen};const h=a.forwardRef(function(e,t){var n=e.children,l=e.disableStrictModeCompat,h=void 0!==l&&l,g=e.in,m=e.onEnter,y=e.onEntered,v=e.onEntering,b=e.onExit,w=e.onExited,k=e.onExiting,x=e.style,S=e.TransitionComponent,E=void 0===S?s.Ay:S,C=e.timeout,A=void 0===C?p:C,O=(0,i.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),P=(0,u.A)(),N=P.unstable_strictMode&&!h,R=a.useRef(null),L=(0,f.A)(n.ref,t),T=(0,f.A)(N?R:void 0,L),_=function(e){return function(t,n){if(e){var r=N?[R.current,t]:[t,n],i=(0,o.A)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},j=_(v),I=_(function(e,t){(0,c.q)(e);var n=(0,c.c)({style:x,timeout:A},{mode:"enter"});e.style.webkitTransition=P.transitions.create("opacity",n),e.style.transition=P.transitions.create("opacity",n),m&&m(e,t)}),M=_(y),D=_(k),F=_(function(e){var t=(0,c.c)({style:x,timeout:A},{mode:"exit"});e.style.webkitTransition=P.transitions.create("opacity",t),e.style.transition=P.transitions.create("opacity",t),b&&b(e)}),z=_(w);return a.createElement(E,(0,r.A)({appear:!0,in:g,nodeRef:N?R:void 0,onEnter:I,onEntered:M,onEntering:j,onExit:F,onExited:z,onExiting:D,timeout:A},O),function(e,t){return a.cloneElement(n,(0,r.A)({style:(0,r.A)({opacity:0,visibility:"exited"!==e||g?void 0:"hidden"},d[e],x,n.props.style),ref:T},t))})})},5539:(e,t,n)=>{"use strict";n.d(t,{X4:()=>u,a:()=>f,e$:()=>c,eM:()=>s});var r=n(9557);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].lengLine truncated
|
||||
//# sourceMappingURL=89.cc7be865.js.map
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react-is.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-shim/with-selector.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A better abstraction over CSS.
|
||||
*
|
||||
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
||||
* @website https://github.com/cssinjs/jss
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/** @license React v0.20.2
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v16.13.1
|
||||
* react-is.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/89.cc7be865.js","mappings":";oGAKAA,EAAQ,OAAU,EAClB,IAgBIC,EAhBW,CACb,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACLC,KAAM,UACNC,KAAM,UACNC,KAAM,UACNC,KAAM,WAGRL,EAAQ,EAAUC,C,4BClBlBD,EAAQ,OAAU,EAClB,IAgBIC,EAhBM,CACR,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACLC,KAAM,UACNC,KAAM,UACNC,KAAM,UACNC,KAAM,WAGRL,EAAQ,EAAUC,C,8GCfdK,EAAO,GAsGPC,EAAgCC,EAAAA,WAAiB,SAA0BC,EAAOC,GACpF,IAAIC,EAAUF,EAAME,QAChBC,EAAYH,EAAMG,UAClBC,EAAeJ,EAAMK,MACrBA,OAAyB,IAAjBD,EAA0B,UAAYA,EAC9CE,EAAuBN,EAAMO,cAC7BA,OAAyC,IAAzBD,GAA0CA,EAC1DE,EAAcR,EAAMS,KACpBA,OAAuB,IAAhBD,EAAyB,GAAKA,EACrCE,EAAQV,EAAMU,MACdC,EAAmBX,EAAMY,UACzBA,OAAiC,IAArBD,EAA8B,IAAMA,EAChDE,EAAeb,EAAMc,MACrBA,OAAyB,IAAjBD,EAA0B,EAAIA,EACtCE,EAAiBf,EAAMgB,QACvBA,OAA6B,IAAnBD,EAA4B,gBAAkBA,EACxDE,GAAQC,EAAAA,EAAAA,GAAyBlB,EA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BlB,GAC7CoC,EAAgBlB,EAA6Bd,GAC7CiC,EAAanB,EAA6B,SAAUQ,GACtD,IAAIK,GAAkBC,EAAAA,EAAAA,GAAmB,CACvC5G,MAAOA,EACPqF,QAASA,GACR,CACDwB,KAAM,SAERP,EAAKtG,MAAM8G,iBAAmBlE,EAAMG,YAAYC,OAAO,UAAW2D,GAClEL,EAAKtG,MAAM8C,WAAaF,EAAMG,YAAYC,OAAO,UAAW2D,GAExD7B,GACFA,EAAOwB,EAEX,GACIY,EAAepB,EAA6Bf,GAChD,OAAoB1F,EAAAA,cAAoB6F,GAAqB7D,EAAAA,EAAAA,GAAS,CACpE8F,QAAQ,EACRzC,GAAID,EACJgB,QAASF,EAAyBE,OAAUI,EAC5ClB,QAAS8B,EACT7B,UAAWmC,EACXlC,WAAY2B,EACZ1B,OAAQmC,EACRlC,SAAUmC,EACVlC,UAAWgC,EACX3B,QAASA,GACR9E,GAAQ,SAAU6G,EAAOC,GAC1B,OAAoBhI,EAAAA,aAAmBiF,GAAUjD,EAAAA,EAAAA,GAAS,CACxDrB,OAAOqB,EAAAA,EAAAA,GAAS,CACdyC,QAAS,EACTwD,WAAsB,WAAVF,GAAuB3C,OAAoBoB,EAAX,UAC3CjC,EAAOwD,GAAQpH,EAAOsE,EAAShF,MAAMU,OACxCT,IAAKqG,GACJyB,GACL,EACF,E,wFC/GA,SAASE,EAAMnH,GACb,IAAIoH,EAAMC,UAAUC,OAAS,QAAsB7B,IAAjB4B,UAAU,GAAmBA,UAAU,GAAK,EAC1EE,EAAMF,UAAUC,OAAS,QAAsB7B,IAAjB4B,UAAU,GAAmBA,UAAU,GAAK,EAQ9E,OAAO5G,KAAK2G,IAAI3G,KAAK8G,IAAIH,EAAKpH,GAAQuH,EACLine truncated
|
||||
@@ -0,0 +1,3 @@
|
||||
/*! For license information please see 913.7f29e955.chunk.js.LICENSE.txt */
|
||||
(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[913],{9452:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(4680),o=n(8621),i=n(1789),a=n(823),s=n(5921),c=n(5539),l=n(6809),u=n(8861),d=i.forwardRef(function(e,t){var n=e.children,s=e.classes,c=e.className,d=e.color,f=void 0===d?"default":d,p=e.component,h=void 0===p?"button":p,m=e.disabled,g=void 0!==m&&m,b=e.disableElevation,y=void 0!==b&&b,v=e.disableFocusRipple,w=void 0!==v&&v,E=e.endIcon,x=e.focusVisibleClassName,S=e.fullWidth,R=void 0!==S&&S,O=e.size,A=void 0===O?"medium":O,C=e.startIcon,T=e.type,_=void 0===T?"button":T,P=e.variant,k=void 0===P?"text":P,N=(0,r.A)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),j=C&&i.createElement("span",{className:(0,a.A)(s.startIcon,s["iconSize".concat((0,u.A)(A))])},C),D=E&&i.createElement("span",{className:(0,a.A)(s.endIcon,s["iconSize".concat((0,u.A)(A))])},E);return i.createElement(l.A,(0,o.A)({className:(0,a.A)(s.root,s[k],c,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(k).concat((0,u.A)(f))],"medium"!==A&&[s["".concat(k,"Size").concat((0,u.A)(A))],s["size".concat((0,u.A)(A))]],y&&s.disableElevation,g&&s.disabled,R&&s.fullWidth),component:h,disabled:g,focusRipple:!w,focusVisibleClassName:(0,a.A)(s.focusVisible,x),ref:t,type:_},N),i.createElement("span",{className:s.label},j,n,D))});const f=(0,s.A)(function(e){return{root:(0,o.A)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,c.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,c.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,c.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,c.X4)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,c.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,c.X4)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,c.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typoLine truncated
|
||||
//# sourceMappingURL=913.7f29e955.chunk.js.map
|
||||
@@ -0,0 +1,5 @@
|
||||
/*!
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/913.7f29e955.chunk.js","mappings":";2MAiSIA,EAAsBC,EAAAA,WAAiB,SAAgBC,EAAOC,GAChE,IAAIC,EAAWF,EAAME,SACjBC,EAAUH,EAAMG,QAChBC,EAAYJ,EAAMI,UAClBC,EAAeL,EAAMM,MACrBA,OAAyB,IAAjBD,EAA0B,UAAYA,EAC9CE,EAAmBP,EAAMQ,UACzBA,OAAiC,IAArBD,EAA8B,SAAWA,EACrDE,EAAkBT,EAAMU,SACxBA,OAA+B,IAApBD,GAAqCA,EAChDE,EAAwBX,EAAMY,iBAC9BA,OAA6C,IAA1BD,GAA2CA,EAC9DE,EAAwBb,EAAMc,mBAC9BA,OAA+C,IAA1BD,GAA2CA,EAChEE,EAAcf,EAAMgB,QACpBC,EAAwBjB,EAAMiB,sBA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AAMC,WAAW8C,QAAQ,KAIrCK,mBAAoB,CAClB/C,QAAS,WACTyC,SAAU9C,EAAMC,WAAW8C,QAAQ,KAIrCM,UAAW,CAAC,EAGZC,UAAW,CAAC,EAGZ5E,UAAW,CACT2C,MAAO,QAITvC,UAAW,CACTwC,QAAS,UACTiC,YAAa,EACbC,YAAa,EACb,kBAAmB,CACjBA,YAAa,IAKjBjF,QAAS,CACP+C,QAAS,UACTiC,aAAc,EACdC,WAAY,EACZ,kBAAmB,CACjBD,aAAc,IAKlBE,cAAe,CACb,oBAAqB,CACnBX,SAAU,KAKdY,eAAgB,CACd,oBAAqB,CACnBZ,SAAU,KAKda,cAAe,CACb,oBAAqB,CACnBb,SAAU,KAIlB,EAkJkC,CAChCc,KAAM,aADRLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[78],{7778:e=>{e.exports=JSON.parse('{"konnect":{"consent":{"message":"<0><0><0></0></0></0> m\xf6chte","allowButton":{"label":"Einverstanden"},"question":"<1><0></0></1> den Zugriff gestatten?","consequence":"Wenn Sie Einverstanden klicken, erh\xe4lt die App Zugriff auf Ihre Informationen.","cancelButton":{"label":"Abbrechen"},"tooltip":{"client":"Wenn Sie \\"Einverstanden\\" klicken werden Sie zu {{redirectURI}} weitergeleitet"},"headline":"Hallo {{displayName}}"},"chooseaccount":{"useOther":{"persona":{"label":"?"},"label":"Anderes Konto"},"headline":"Konto ausw\xe4hlen","subHeader":"das angemeldet werden soll"},"scopeDescription":{"aliasBasic":"Zugriff auf Ihre grundlegenden Benutzerinformationen","offlineAccess":"Dauerhaften Zugriff (l\xe4uft nicht ab)","scope":"Geltungsbereich: {{scope}}"},"login":{"usernameField":{"label":"Benutzername","placeholder":{"email":"E-Mail","identity":"Identit\xe4t","username":"Benutzername"}},"nextButton":{"label":"Weiter"},"passwordField":{"label":"Passwort"},"retryButton":{"label":"Wiederholen"},"headline":"Anmelden"},"error":{"login":{"validate":{"missingUsername":"Geben Sie einen g\xfcltigen Wert ein.","missingPassword":"Geben Sie ein Passwort ein."},"failed":"Anmeldung fehlgeschlagen. Bitte \xfcberpr\xfcfen Sie Ihre Eingabe und versuchen Sie es noch einmal."},"http":{"networkError":"Netzwerkfehler. Bitte pr\xfcfen Sie Ihre Verbindung und versuchen Sie es noch einmal.","unexpectedResponseStatus":"Unerwartete HTTP-Antwort: {{status}}. Bitte pr\xfcfen Sie Ihre Verbindung und versuchen Sie es noch einmal.","unexpectedResponseState":"Unerwarteter Antwort-Status: {{state}}"}},"loading":{"error":{"headline":"Verbindung zum Server fehlgeschlagen"}},"goodbye":{"headline":"Bis bald","confirm":{"headline":"Hallo {{displayName}}","subHeader":"Bitte best\xe4tigen Sie, dass Sie sich abmelden m\xf6chten"},"message":{"confirm":"Klicken Sie auf die Schaltfl\xe4che unten um sich aus Ihrem Konto abzumelden.","close":"Sie k\xf6nnen dieses Fenster jetzt schlie\xdfen."},"signoutButton":{"label":"Abmelden"},"subHeader":"sie sind jetzt abgemeldet"},"welcome":{"signoutButton":{"label":"Abmelden"},"headline":"Willkommen {{displayName}}","message":"Sie sind angemeldet - super!"}}}')},6089:e=>{e.exports=JSON.parse('{"konnect":{"consent":{"allowButton":{},"cancelButton":{},"tooltip":{}},"chooseaccount":{"useOther":{"persona":{}}},"scopeDescription":{},"login":{"usernameField":{"placeholder":{}},"nextButton":{},"passwordField":{},"retryButton":{}},"error":{"login":{"validate":{}},"http":{}},"loading":{"error":{}},"goodbye":{"confirm":{},"message":{},"signoutButton":{}},"welcome":{"signoutButton":{}}}}')},9633:e=>{e.exports=JSON.parse('{"konnect":{"consent":{"message":"<0><0><0></0></0></0> souhaite","allowButton":{"label":"Autoriser"},"question":"Autoriser <1><0></0></1> \xe0 faire cela?","consequence":"En cliquant, vous autoriser l\'app \xe0 acc\xe9der \xe0 vos informations.","cancelButton":{"label":"Annuler"},"tooltip":{"client":"En cliquant \\"Autoriser\\" vous serez redirig\xe9 vers: {{redirectURI}}"},"headline":"Bonjour {{displayName}}"},"chooseaccount":{"useOther":{"persona":{"label":"?"},"label":"Utiliser un autre compte"},"headline":"Choisir un compte","subHeader":"identification"},"scopeDescription":{"aliasBasic":"Consulter les informations de base de votre compte","offlineAccess":"Conserver les autorisations d\'acc\xe8s \xe0 l\'avenir","scope":"Port\xe9e : {{scope}}"},"login":{"usernameField":{"placeholder":{"username":"Utilisateur"}},"nextButton":{"label":"Suivant"},"passwordField":{"label":"Mot de passe"},"retryButton":{"label":"R\xe9essayer"},"headline":"Identification"},"error":{"login":{"validate":{"missingPassword":"Saisir un mot de passe."},"failed":"Echec de connexion. V\xe9rifier vos identifiants et essayer \xe0 nouveau."},"http":{"networkError":"Erreur r\xe9seau. V\xe9rifier votre connexion, et r\xe9essayer.","unexpectedResponseStatus":"Erreur HTTP inattendue : {{status}}. V\xe9rifier votre connexion et r\xe9essayer.","unexpectedResponseState":"Erreur d\'\xe9tat inattendue : {{state}}"}},"loading":{"error":{"headline":"La connexion au serveur a \xe9chou\xe9"}},"goodbye":{"headline":"Au revoir","confirm":{"headline":"Bonjour {{displayName}}","subHeader":"confirmer votre d\xe9connexion"},"message":{"confirm":"Cliquer le bouton ci-dessous, pour quitter.","close":"Vous pouvez fermer cette fen\xeatre \xe0 pr\xe9sent."},"signoutButton":{"label":"Quitter"},"subHeader":"vous avez \xe9t\xe9 d\xe9connect\xe9"},"welcome":{"signoutButton":{"label":"Quitter"},"headline":"Bienvenue {{displayName}}","message":"Magnifique - Vous \xeates connect\xe9!"}}}')},1708:e=>{e.exports=JSON.parse('{"konnect":{"consent":{"allowButton":{},"cancelButton":{},"tooltip":{}},"chooseaccount":{"useOther":{"persona":{}}},"scopeDescription":{},"login":{"usernameField":{"placeholder":{}},"nextButton":{},"passwordField":{},"retryButtonLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
"use strict";(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[469],{5848:(e,t,n)=>{n.d(t,{Du:()=>g,E7:()=>p,hn:()=>m,we:()=>d});var r=n(9713),o=n(4956),a=n(2575),s=n(8421),c=n(8620),i=n(8608);function l(e){return{type:i.l3,error:e}}function u(){return{type:i.fg}}function d(e){const{success:t,username:n,displayName:r}=e;return{type:i.FK,state:!0===t,username:n,displayName:r,hello:e}}function p(){return function(e,t){e(u());const{flow:n,query:i}=t().common,p=(0,a.k)((0,o.i)(n,i));return r.A.post("./identifier/_/hello",p,{headers:{"Kopano-Konnect-XSRF":"1"}}).then(e=>{switch(e.status){case 200:return e.data;case 204:return{success:!1,state:e.headers["kopano-konnect-state"]};default:throw new s.Eg(s.Rg,e)}}).then(t=>{if(t.state!==p.state)throw new s.Eg(s.ov,t);return e(d(t)),Promise.resolve(t)}).catch(t=>{t=(0,c.r)(t),e(l(t))})}}function m(){return function(e){return e(l(null)),e(p())}}function g(){return function(e){e(u()),e({type:i.MX});const t=(0,a.k)({});return r.A.post("./identifier/_/logoff",t,{headers:{"Kopano-Konnect-XSRF":"1"}}).then(e=>{if(200===e.status)return e.data;throw new s.Eg(s.Rg,e)}).then(n=>{if(n.state!==t.state)throw new s.Eg(s.ov,n);var r;return e((r=!0===n.success,{type:i.uK,state:r})),Promise.resolve(n)}).catch(t=>{t=(0,c.r)(t),e(l(t))})}}},8620:(e,t,n)=>{n.d(t,{r:()=>o});var r=n(8421);function o(e){return e.request&&(e=e.response?new r.Eg(r.Rg,e.response):new r.Eg(r.Sr)),e}},4411:(e,t,n)=>{n.d(t,{A:()=>N});var r=n(4680),o=n(1789),a=n(6374),s=n.n(a),c=n(6095),i=n(5921),l=n(424),u=n(5010),d=n(7111),p=n(7012),m=n(6842),g=n(9452),h=n(8322),f=n.n(h),v=n(5848),y=n(8421);class w extends o.PureComponent{render(){const{error:e,t:t}=this.props;return o.createElement(l.A,{item:!0,align:"center"},f()(null===e)(()=>o.createElement(p.A,{className:"oc-progress"})),f()(null!==e)(()=>o.createElement("div",null,o.createElement(m.A,{className:"oc-light",variant:"h5",gutterBottom:!0,align:"center"},t("konnect.loading.error.headline","Failed to connect to server")),o.createElement(m.A,{align:"center",color:"error"},o.createElement(y.Kw,{error:e})),o.createElement(g.A,{autoFocus:!0,color:"primary",variant:"outlined",className:"oc-button-primary oc-mt-l",onClick:e=>this.retry(e)},t("konnect.login.retryButton.label","Retry")))))}retry(e){e.preventDefault(),this.props.dispatch((0,v.hn)())}}const k=(0,d.Ng)(e=>{const{error:t}=e.common;return{error:t}})((0,c.CI)()(w));var E=n(6636);const b=["classes","withoutLogo","withoutPadding","loading","children","className"],A=e=>{var t;const{classes:n,withoutLogo:a,withoutPadding:i,loading:d,children:p,className:m}=e,g=(0,r.A)(e,b),{theme:h}=(0,o.useContext)(E.O),f=h&&!a?o.createElement("img",{src:"/"+(null===(t=h.common)||void 0===t?void 0:t.logo),className:"oc-logo",alt:"ownCloud Logo"}):null,v=d?o.createElement(k,null):i?p:o.createElement(u.A,null,p);return o.createElement(l.A,Object.assign({container:!0,justifyContent:"center",alignItems:"center",direction:"column",spacing:0,className:s()(n.root,m)},g),o.createElement("div",{className:n.wrapper},o.createElement("div",{className:n.content},f,v)),o.createElement("footer",{className:"oc-footer-message"},o.createElement(c.x6,{i18nKey:"konnect.footer.slogan"},o.createElement("strong",null,"ownCloud")," - a safe home for all your data")))};A.defaultProps={withoutLogo:!1,withoutPadding:!1,loading:!1};const N=(0,i.A)(e=>({root:{display:"flex",flex:1},content:{position:"relative",width:"100%"},actions:{marginTop:-40,justifyContent:"flex-start",paddingLeft:e.spacing(3),paddingRight:e.spacing(3)},wrapper:{width:"100%",maxWidth:300,display:"flex",flex:1,alignItems:"center"}}))(A)},1446:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var r=n(1789),o=n(7111),a=n(6095),s=n(8322),c=n.n(s),i=n(5921),l=n(9452),u=n(6842),d=n(6562),p=n(4411),m=n(5848);class g extends r.PureComponent{componentDidMount(){this.props.dispatch((0,m.E7)())}render(){const{classes:e,branding:t,hello:n,t:o}=this.props,a=null===n;return r.createElement(p.A,{loading:a,branding:t},c()(null!==n&&!n.state)(()=>r.createElement("div",null,r.createElement(u.A,{variant:"h5",component:"h3"},o("konnect.goodbye.headline","Goodbye")),r.createElement(u.A,{variant:"subtitle1",className:e.subHeader},o("konnect.goodbye.subHeader","you have been signed out from your account")),r.createElement(u.A,{gutterBottom:!0},o("konnect.goodbye.message.close","You can close this window now.")))),c()(null!==n&&!0===n.state)(()=>r.createElement("div",null,r.createElement(u.A,{variant:"h5",component:"h3"},o("konnect.goodbye.confirm.headline","Hello {{displayName}}",{displayName:n.displayName})),r.createElement(u.A,{variant:"subtitle1",className:e.subHeader},o("konnect.goodbye.confirm.subHeader","please confirm sign out")),r.createElement(u.A,{gutterBottom:!0},o("konnect.goodbye.message.confirm","Press the button below, to sign out from your account now.")),r.createElement(d.A,null,r.createElement("div",{className:e.wrapper},r.createElement(l.A,{color:"secondary",variant:"outlined",clLine truncated
|
||||
//# sourceMappingURL=containers-goodbye.03a6ec24.chunk.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/containers-goodbye.03a6ec24.chunk.js","mappings":"oNAaO,SAASA,EAAaC,GAC3B,MAAO,CACLC,KAAMC,EAAAA,GACNF,QAEJ,CAEO,SAASG,IACd,MAAO,CACLF,KAAMC,EAAAA,GAEV,CAEO,SAASE,EAAaC,GAC3B,MAAM,QAAEC,EAAO,SAAEC,EAAQ,YAAEC,GAAgBH,EAE3C,MAAO,CACLJ,KAAMC,EAAAA,GACNO,OAAmB,IAAZH,EACPC,WACAC,cACAH,QAEJ,CAEO,SAASK,IACd,OAAO,SAASC,EAAUC,GACxBD,EAASR,KAET,MAAM,KAAEU,EAAI,MAAEC,GAAUF,IAAWG,OAE7BC,GAAIC,EAAAA,EAAAA,IAAuBC,EAAAA,EAAAA,GAAgBL,EAAMC,IACvD,OAAOK,EAAAA,EAAMC,KAAK,uBAAwBJ,EAAG,CAC3CK,QAAS,CACP,sBAAuB,OAExBC,KAAKC,IACN,OAAQA,EAASC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AAM,SAAEgG,EAAQ,MAAEpG,GAAUI,EAAMM,OAElC,MAAO,CACL0F,WACApG,UAIJ,EAAwCwF,EAAAA,EAAAA,GApGzBrB,IAAK,CAClBmC,UAAW,CACTM,aAAczC,EAAMc,QAAQ,IAE9BG,QAAS,CACPU,UAAW3B,EAAMc,QAAQ,GACzBU,SAAU,Line truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
"use strict";(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[587],{5848:(e,t,n)=>{n.d(t,{Du:()=>h,E7:()=>d,hn:()=>p,we:()=>m});var r=n(9713),o=n(4956),a=n(2575),s=n(8421),c=n(8620),i=n(8608);function l(e){return{type:i.l3,error:e}}function u(){return{type:i.fg}}function m(e){const{success:t,username:n,displayName:r}=e;return{type:i.FK,state:!0===t,username:n,displayName:r,hello:e}}function d(){return function(e,t){e(u());const{flow:n,query:i}=t().common,d=(0,a.k)((0,o.i)(n,i));return r.A.post("./identifier/_/hello",d,{headers:{"Kopano-Konnect-XSRF":"1"}}).then(e=>{switch(e.status){case 200:return e.data;case 204:return{success:!1,state:e.headers["kopano-konnect-state"]};default:throw new s.Eg(s.Rg,e)}}).then(t=>{if(t.state!==d.state)throw new s.Eg(s.ov,t);return e(m(t)),Promise.resolve(t)}).catch(t=>{t=(0,c.r)(t),e(l(t))})}}function p(){return function(e){return e(l(null)),e(d())}}function h(){return function(e){e(u()),e({type:i.MX});const t=(0,a.k)({});return r.A.post("./identifier/_/logoff",t,{headers:{"Kopano-Konnect-XSRF":"1"}}).then(e=>{if(200===e.status)return e.data;throw new s.Eg(s.Rg,e)}).then(n=>{if(n.state!==t.state)throw new s.Eg(s.ov,n);var r;return e((r=!0===n.success,{type:i.uK,state:r})),Promise.resolve(n)}).catch(t=>{t=(0,c.r)(t),e(l(t))})}}},8620:(e,t,n)=>{n.d(t,{r:()=>o});var r=n(8421);function o(e){return e.request&&(e=e.response?new r.Eg(r.Rg,e.response):new r.Eg(r.Sr)),e}},4411:(e,t,n)=>{n.d(t,{A:()=>N});var r=n(4680),o=n(1789),a=n(6374),s=n.n(a),c=n(6095),i=n(5921),l=n(424),u=n(5010),m=n(7111),d=n(7012),p=n(6842),h=n(9452),g=n(8322),f=n.n(g),w=n(5848),E=n(8421);class v extends o.PureComponent{render(){const{error:e,t:t}=this.props;return o.createElement(l.A,{item:!0,align:"center"},f()(null===e)(()=>o.createElement(d.A,{className:"oc-progress"})),f()(null!==e)(()=>o.createElement("div",null,o.createElement(p.A,{className:"oc-light",variant:"h5",gutterBottom:!0,align:"center"},t("konnect.loading.error.headline","Failed to connect to server")),o.createElement(p.A,{align:"center",color:"error"},o.createElement(E.Kw,{error:e})),o.createElement(h.A,{autoFocus:!0,color:"primary",variant:"outlined",className:"oc-button-primary oc-mt-l",onClick:e=>this.retry(e)},t("konnect.login.retryButton.label","Retry")))))}retry(e){e.preventDefault(),this.props.dispatch((0,w.hn)())}}const b=(0,m.Ng)(e=>{const{error:t}=e.common;return{error:t}})((0,c.CI)()(v));var k=n(6636);const y=["classes","withoutLogo","withoutPadding","loading","children","className"],A=e=>{var t;const{classes:n,withoutLogo:a,withoutPadding:i,loading:m,children:d,className:p}=e,h=(0,r.A)(e,y),{theme:g}=(0,o.useContext)(k.O),f=g&&!a?o.createElement("img",{src:"/"+(null===(t=g.common)||void 0===t?void 0:t.logo),className:"oc-logo",alt:"ownCloud Logo"}):null,w=m?o.createElement(b,null):i?d:o.createElement(u.A,null,d);return o.createElement(l.A,Object.assign({container:!0,justifyContent:"center",alignItems:"center",direction:"column",spacing:0,className:s()(n.root,p)},h),o.createElement("div",{className:n.wrapper},o.createElement("div",{className:n.content},f,w)),o.createElement("footer",{className:"oc-footer-message"},o.createElement(c.x6,{i18nKey:"konnect.footer.slogan"},o.createElement("strong",null,"ownCloud")," - a safe home for all your data")))};A.defaultProps={withoutLogo:!1,withoutPadding:!1,loading:!1};const N=(0,i.A)(e=>({root:{display:"flex",flex:1},content:{position:"relative",width:"100%"},actions:{marginTop:-40,justifyContent:"flex-start",paddingLeft:e.spacing(3),paddingRight:e.spacing(3)},wrapper:{width:"100%",maxWidth:300,display:"flex",flex:1,alignItems:"center"}}))(A)},7327:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Z});var r=n(1789),o=n(7111),a=n(2410),s=n(5921),c=n(4411),i=n(3526),l=n(5848),u=n(6095),m=n(8322),d=n.n(m),p=n(9452),h=n(4184),g=n(4845),f=n(6842),w=n(5928);const E=e=>{const t=e.label,n=e.extraClassName;return delete e.label,delete e.extraClassName,r.createElement("div",null,r.createElement("label",{className:"oc-label",htmlFor:e.id},t),r.createElement("input",Object.assign({className:"oc-input ".concat(n||"")},e,{placeholder:e.placeholder?e.placeholder:null})))};var v=n(9713),b=n(5504),k=n(4956),y=n(2575),A=n(8421),N=n(8608),x=n(8620);function C(e){return{type:N.tG,errors:e}}function _(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1";return function(r,o){r(function(e,t){return{type:N.Gz,username:e,password:t}}(e,t)),r((0,l.we)({username:e}));const{flow:a,query:s}=o().common,c=[];switch(n){case"1":c.push(e,t,n);break;case"0":c.push(e,"",n)}const i=(0,y.k)({params:c,hello:(0,k.i)(a,s)});return v.A.post("./identifier/_/logon",i,{headers:{"Kopano-Konnect-XSRF":"1"}}).then(e=>{switch(e.status){case 200:return e.data;case 204:return{success:!1,state:e.headers["kopano-konnect-state"],errors:{http:new Error(A.vV)}};default:throw new A.Eg(A.Rg,e)}}).then(t=>{if(t.state!==i.state)throw new A.Eg(A.ov,t);let{hello:n}=t;return n||(n={success:t.success,username:e}),r((0,l.we)(n)),r(fuLine truncated
|
||||
//# sourceMappingURL=containers-login.e8addc4c.chunk.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/containers-login.e8addc4c.chunk.js","mappings":"oNAaO,SAASA,EAAaC,GAC3B,MAAO,CACLC,KAAMC,EAAAA,GACNF,QAEJ,CAEO,SAASG,IACd,MAAO,CACLF,KAAMC,EAA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EAAG,CAC3CK,QAAS,CACP,sBAAuB,OAExBC,KAAKC,IACN,OAAQA,EAASC,QACf,KAAK,IAEH,OAAOD,EAASE,KAClB,KAAK,IAEH,MAAO,CACLnB,SAAS,EACTG,MAAOc,EAASF,QAAQ,wBACxByF,OAAQ,CACNU,KAAM,IAAIC,MAAMC,EAAAA,MAGtB,QAEE,MAAM,IAAIhG,EAAAA,GAAcC,EAAAA,GAAuCJ,MAElED,KAAKC,IACN,GAAIA,EAASd,QAAUO,EAAEP,MACvB,MAAM,IAAIiB,EAAAA,GAAcE,EAAAA,GAAsCL,GAGhE,IAAI,MAAElB,GAAUkB,EAShB,OARKlB,IACHA,EAAQ,CACNC,QAASiB,EAASjB,QAClBC,aAGJI,GAASP,EAAAA,EAAAA,IAAaC,IACtBM,EA1FC,SAAsBgH,GAC3B,MAAM,QAAErH,EAAO,OAAEwG,GAAWa,EAE5B,MAAO,CACL1H,KAAMC,EAAAA,GACNI,UACAwG,SAEJ,CAkFec,CAAarG,IACfM,QAAQC,QAAQP,KACtBQ,MAAM/B,Line truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
"use strict";(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[256],{5848:(e,t,n)=>{n.d(t,{Du:()=>g,E7:()=>m,hn:()=>p,we:()=>d});var r=n(9713),o=n(4956),a=n(2575),s=n(8421),c=n(8620),i=n(8608);function l(e){return{type:i.l3,error:e}}function u(){return{type:i.fg}}function d(e){const{success:t,username:n,displayName:r}=e;return{type:i.FK,state:!0===t,username:n,displayName:r,hello:e}}function m(){return function(e,t){e(u());const{flow:n,query:i}=t().common,m=(0,a.k)((0,o.i)(n,i));return r.A.post("./identifier/_/hello",m,{headers:{"Kopano-Konnect-XSRF":"1"}}).then(e=>{switch(e.status){case 200:return e.data;case 204:return{success:!1,state:e.headers["kopano-konnect-state"]};default:throw new s.Eg(s.Rg,e)}}).then(t=>{if(t.state!==m.state)throw new s.Eg(s.ov,t);return e(d(t)),Promise.resolve(t)}).catch(t=>{t=(0,c.r)(t),e(l(t))})}}function p(){return function(e){return e(l(null)),e(m())}}function g(){return function(e){e(u()),e({type:i.MX});const t=(0,a.k)({});return r.A.post("./identifier/_/logoff",t,{headers:{"Kopano-Konnect-XSRF":"1"}}).then(e=>{if(200===e.status)return e.data;throw new s.Eg(s.Rg,e)}).then(n=>{if(n.state!==t.state)throw new s.Eg(s.ov,n);var r;return e((r=!0===n.success,{type:i.uK,state:r})),Promise.resolve(n)}).catch(t=>{t=(0,c.r)(t),e(l(t))})}}},8620:(e,t,n)=>{n.d(t,{r:()=>o});var r=n(8421);function o(e){return e.request&&(e=e.response?new r.Eg(r.Rg,e.response):new r.Eg(r.Sr)),e}},4411:(e,t,n)=>{n.d(t,{A:()=>x});var r=n(4680),o=n(1789),a=n(6374),s=n.n(a),c=n(6095),i=n(5921),l=n(424),u=n(5010),d=n(7111),m=n(7012),p=n(6842),g=n(9452),h=n(8322),f=n.n(h),v=n(5848),w=n(8421);class k extends o.PureComponent{render(){const{error:e,t:t}=this.props;return o.createElement(l.A,{item:!0,align:"center"},f()(null===e)(()=>o.createElement(m.A,{className:"oc-progress"})),f()(null!==e)(()=>o.createElement("div",null,o.createElement(p.A,{className:"oc-light",variant:"h5",gutterBottom:!0,align:"center"},t("konnect.loading.error.headline","Failed to connect to server")),o.createElement(p.A,{align:"center",color:"error"},o.createElement(w.Kw,{error:e})),o.createElement(g.A,{autoFocus:!0,color:"primary",variant:"outlined",className:"oc-button-primary oc-mt-l",onClick:e=>this.retry(e)},t("konnect.login.retryButton.label","Retry")))))}retry(e){e.preventDefault(),this.props.dispatch((0,v.hn)())}}const y=(0,d.Ng)(e=>{const{error:t}=e.common;return{error:t}})((0,c.CI)()(k));var E=n(6636);const A=["classes","withoutLogo","withoutPadding","loading","children","className"],N=e=>{var t;const{classes:n,withoutLogo:a,withoutPadding:i,loading:d,children:m,className:p}=e,g=(0,r.A)(e,A),{theme:h}=(0,o.useContext)(E.O),f=h&&!a?o.createElement("img",{src:"/"+(null===(t=h.common)||void 0===t?void 0:t.logo),className:"oc-logo",alt:"ownCloud Logo"}):null,v=d?o.createElement(y,null):i?m:o.createElement(u.A,null,m);return o.createElement(l.A,Object.assign({container:!0,justifyContent:"center",alignItems:"center",direction:"column",spacing:0,className:s()(n.root,p)},g),o.createElement("div",{className:n.wrapper},o.createElement("div",{className:n.content},f,v)),o.createElement("footer",{className:"oc-footer-message"},o.createElement(c.x6,{i18nKey:"konnect.footer.slogan"},o.createElement("strong",null,"ownCloud")," - a safe home for all your data")))};N.defaultProps={withoutLogo:!1,withoutPadding:!1,loading:!1};const x=(0,i.A)(e=>({root:{display:"flex",flex:1},content:{position:"relative",width:"100%"},actions:{marginTop:-40,justifyContent:"flex-start",paddingLeft:e.spacing(3),paddingRight:e.spacing(3)},wrapper:{width:"100%",maxWidth:300,display:"flex",flex:1,alignItems:"center"}}))(N)},2894:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var r=n(1789),o=n(7111),a=n(6095),s=n(5921),c=n(9452),i=n(6842),l=n(6562),u=n(4411),d=n(5848);class m extends r.PureComponent{render(){const{classes:e,branding:t,hello:n,t:o}=this.props,a=null===n;return r.createElement(u.A,{loading:a,branding:t},r.createElement(i.A,{variant:"h5",component:"h3",className:"oc-light"},o("konnect.welcome.headline","Welcome {{displayName}}",{displayName:n.displayName})),r.createElement(i.A,{variant:"subtitle1",className:e.subHeader+" oc-light"},n.username),r.createElement(i.A,{gutterBottom:!0,className:"oc-light"},o("konnect.welcome.message","You are signed in - awesome!")),r.createElement(l.A,null,r.createElement(c.A,{color:"secondary",className:e.button,variant:"contained",onClick:e=>this.logoff(e)},o("konnect.welcome.signoutButton.label","Sign out"))))}logoff(e){e.preventDefault(),this.props.dispatch((0,d.Du)()).then(e=>{const{history:t}=this.props;e.success&&t.push("/identifier")})}}const p=(0,o.Ng)(e=>{const{branding:t,hello:n}=e.common;return{branding:t,hello:n}})((0,s.A)(e=>({button:{margin:e.spacing(1),minWidth:100},subHeader:{marginBottom:e.spacing(5)}}))((0,a.CI)()(m)))},8421:(e,t,n)=>{n.d(t,{Eg:()=>p,Kw:()=>h,L$:()=>c,MX:()=>i,Rg:()=>d,Sr:()=>u,ov:()=>m,vV:()=>l});var r=n(6278),o=n(6095),a=n(764),s=n.n(a);const c="konnect.error.login.validate.missinLine truncated
|
||||
//# sourceMappingURL=containers-welcome.404c7295.chunk.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/containers-welcome.404c7295.chunk.js","mappings":"oNAaO,SAASA,EAAaC,GAC3B,MAAO,CACLC,KAAMC,EAAAA,GACNF,QAEJ,CAEO,SAASG,IACd,MAAO,CACLF,KAAMC,EAAAA,GAEV,CAEO,SAASE,EAAaC,GAC3B,MAAM,QAAEC,EAAO,SAAEC,EAAQ,YAAEC,GAAgBH,EAE3C,MAAO,CACLJ,KAAMC,EAAAA,GACNO,OAAmB,IAAZH,EACPC,WACAC,cACAH,QAEJ,CAEO,SAASK,IACd,OAAO,SAASC,EAAUC,GACxBD,EAASR,KAET,MAAM,KAAEU,EAAI,MAAEC,GAAUF,IAAWG,OAE7BC,GAAIC,EAAAA,EAAAA,IAAuBC,EAAAA,EAAAA,GAAgBL,EAAMC,IACvD,OAAOK,EAAAA,EAAMC,KAAK,uBAAwBJ,EAAG,CAC3CK,QAAS,CACP,sBAAuB,OAExBC,KAAKC,IACN,OAAQA,EAASC,QACf,KAAK,IAEH,OAAOD,EAASE,KAClB,KAAK,IAEH,MAAO,CACLnB,SAAS,EACTG,MAAOc,EAASF,QAAQ,yBAE5B,QAEE,MAAM,IAAIK,EAAAA,GAAcC,EAAAA,GAAuCJ,MAElED,KAAKC,IACN,GAAIA,EAASd,QAAUO,EAAEP,MACvB,MAAM,IAAIiB,EAAAA,GAAcE,EAAAA,GAAsCL,GAIhE,OADAZ,EAASP,EAAamB,IACfM,QAAQC,QAAQP,KACtBQ,MAAM/B,IACPA,GAAQgC,EAAAA,EAAAA,GAAiBhC,GAEzBW,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AAWgB,EAAQ4C,OACnB1D,QAAQ,YACRM,QAAUC,GAAUhB,KAAKoE,OAAOpD,IAE/BjB,EAAE,sCAAuC,cAKpD,CAEAqE,MAAAA,CAAOpD,GACLA,EAAME,iBAENlB,KAAKC,MAAM/B,UAASuB,EAAAA,EAAAA,OAAiBZ,KAAMC,IACzC,MAAM,QAAEuF,GAAYrE,KAAKC,MAErBnB,EAASjB,SACXwG,EAAQC,KAAK,gBAGnB,EAcF,MASA,GAAenD,EAAAA,EAAAA,IATUnD,IACvB,MAAM,SAAE+F,EAAQ,MAAEnG,GAAUI,EAAMM,OAElC,MAAO,CACLyF,WACAnG,UAIJ,EAAwCwF,EAAAA,EAAAA,GA3EzBrB,IAAK,CAClBoC,OAAQ,CACNI,OAAQxC,EAAMc,QAAQ,GACtB2B,SAAU,KAEZP,UAAW,CACTQ,aAAc1C,EAAMc,QAAQ,MAqEQO,EAAmBhC,EAAAA,EAAAA,KAAAA,CAAkB0C,I,4ICtFtE,MAAMY,EAAuC,+CACvCC,EAAuC,+CACvCC,EAAqB,6BACrBjF,EAA2B,kCAC3BT,EAAwC,8CACxCC,EAAuC,6CAG7C,MAAMF,UAAsB4F,MAGjCC,WAAAA,CAAYC,EAASC,GACnBC,MAAMF,GAAS,KAHjBC,YAASE,OAIyBA,IAA5BL,MAAMM,mBACRN,MAAMM,kBAAkBnF,KAAMf,GAEhCe,KAAKgF,OAASA,CAChB,EAIF,SAASI,EAAsBnF,GAC7B,MAAM,MAAE1C,EAAK,EAAEwC,EAAC,OAAEiF,GAAW/E,EAE7B,IAAK1C,EACH,OAAO,KAGT,MAAM8H,EAAK9H,EAAM8H,GAAK9H,EAAM8H,GAAK9H,EAAMwH,QACjCO,EAAoB/C,OAAOC,OAAO,CAAC,EAAG,CLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
"use strict";(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[316],{9189:(e,t,n)=>{n.r(t),n.d(t,{default:()=>E});var a=n(1789),l=n(7111),r=n(3685),o=n(2410),c=n(4680),h=n(3526);const i=["component","hello"],s=e=>{let{component:t,hello:n}=e,l=(0,c.A)(e,i);return a.createElement(o.qh,Object.assign({},l,{render:e=>n?a.createElement(t,e):a.createElement(h.A,{target:"/identifier"})}))},m=(0,a.lazy)(()=>Promise.all([n.e(913),n.e(168),n.e(587)]).then(n.bind(n,7327))),d=(0,a.lazy)(()=>Promise.all([n.e(913),n.e(256)]).then(n.bind(n,2894))),p=(0,a.lazy)(()=>Promise.all([n.e(913),n.e(469)]).then(n.bind(n,1446))),u=e=>{let{hello:t}=e;return a.createElement(o.dO,null,a.createElement(s,{path:"/welcome",exact:!0,component:d,hello:t}),a.createElement(o.qh,{path:"/goodbye",exact:!0,component:p}),a.createElement(o.qh,{path:"/",component:m}))};class b extends a.PureComponent{render(){const{hello:e,pathPrefix:t}=this.props;return a.createElement(r.Kd,{basename:t},a.createElement(u,{hello:e}))}reload(e){e.preventDefault(),window.location.reload()}}const E=(0,l.Ng)(e=>{const{hello:t,updateAvailable:n,pathPrefix:a}=e.common;return{hello:t,updateAvailable:n,pathPrefix:a}})(b)},3526:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(4680),l=n(1789),r=n(2410);const o=["target","location"],c=(0,r.y)(e=>{let{target:t,location:n}=e,c=(0,a.A)(e,o);const h={pathname:t,search:n.search,hash:n.hash};return l.createElement(r.rd,Object.assign({to:h},c))})}}]);
|
||||
//# sourceMappingURL=identifier-main.87045827.chunk.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/identifier-main.87045827.chunk.js","mappings":"mOAqBA,EAfqBA,IAAA,IAAGC,UAAWC,EAAM,MAAEC,GAAgBH,EAANI,GAAIC,EAAAA,EAAAA,GAAAL,EAAAM,GAAA,OACvDC,EAAAA,cAACC,EAAAA,GAAKC,OAAAC,OAAA,GAAKN,EAAI,CAAEO,OAAQC,GACvBT,EACEI,EAAAA,cAACL,EAAWU,GAEZL,EAAAA,cAACM,EAAAA,EAAiB,CAACC,OAAO,oBCJ1BC,GAAaC,EAAAA,EAAAA,MAAK,IACtB,gEACIC,GAAeD,EAAAA,EAAAA,MAAK,IACxB,uDACIE,GAAeF,EAAAA,EAAAA,MAAK,IACxB,uDA0BF,EAxBehB,IAAA,IAAC,MAAEG,GAAmCH,EAAA,OACnDO,EAAAA,cAACY,EAAAA,GAAM,KACLZ,EAAAA,cAACa,EAAY,CACXC,KAAK,WACLC,OAAK,EACLrB,UAAWgB,EACXd,MAAOA,IAETI,EAAAA,cAACC,EAAAA,GAAK,CACJa,KAAK,WACLC,OAAK,EACLrB,UAAWiB,IAEbX,EAAAA,cAACC,EAAAA,GAAK,CACJa,KAAK,IACLpB,UAAWc,MCrBjB,MAAMQ,UAAaC,EAAAA,cACjBb,MAAAA,GACE,MAAM,MAAER,EAAK,WAAEsB,GAAeC,KAAKd,MAEnC,OACEL,EAAAA,cAACoB,EAAAA,GAAa,CAACC,SAAUH,GACvBlB,EAAAA,cAACsB,EAAM,CAAC1B,MAAOA,IAGrB,CAEA2B,MAAAA,CAAOC,GACLA,EAAMC,iBAENC,OAAOC,SAASJ,QAClB,EAWF,MAUA,GAAeK,EAAAA,EAAAA,IAVUC,IACvB,MAAM,MAAEjC,EAAK,gBAAEkC,EAAe,WAAEZ,GAAeW,EAAME,OAErD,MAAO,CACLnC,QACAkC,kBACAZ,eAIJ,CAAwCF,E,kGCtBxC,GAAegB,EAAAA,EAAAA,GAjBWvC,IAAkC,IAAjC,OAACc,EAAM,SAAEoB,GAAkBlC,EAALI,GAAIC,EAAAA,EAAAA,GAAAL,EAAAM,GACnD,MAAMkC,EAAK,CACTC,SAAU3B,EACV4B,OAAQR,EAASQ,OACjBC,KAAMT,EAASS,MAGjB,OACEpC,EAAAA,cAACqC,EAAAA,GAAQnC,OAAAC,OAAA,CAAC8B,GAAIA,GAAQpC,K","sources":["components/PrivateRoute.jsx","Routes.jsx","Main.jsx","components/RedirectWithQuery.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Route } from 'react-router-dom';\n\nimport RedirectWithQuery from './RedirectWithQuery';\n\nconst PrivateRoute = ({ component: Target, hello, ...rest }) => (\n <Route {...rest} render={props => (\n hello ? (\n <Target {...props}/>\n ) : (\n <RedirectWithQuery target='/identifier' />\n )\n )}/>\n);\n\nPrivateRoute.propTypes = {\n component: PropTypes.elementType.isRequired,\n hello: PropTypes.object\n};\n\nexport default PrivateRoute;\n","import React, { ReactElement, lazy } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Route, Switch } from 'react-router-dom';\n\nimport PrivateRoute from './components/PrivateRoute';\n\nconst AsyncLogin = lazy(() =>\n import(/* webpackChunkName: \"containers-login\" */ './containers/Login'));\nconst AsyncWelcome = lazy(() =>\n import(/* webpackChunkName: \"containers-welcome\" */ './containers/Welcome'));\nconst AsyncGoodbye = lazy(() =>\n import(/* webpackChunkName: \"containers-goodbye\" */ './containers/Goodbye'));\n\nconst Routes = ({ hello }: {hello: PropTypes.object}): ReactElement => (\n <Switch>\n <PrivateRoute\n path=\"/welcome\"\n exact\n component={AsyncWelcome}\n hello={hello}\n />\n <Route\n path=\"/goodbye\"\n exact\n component={AsyncGoodbye}\n />\n <Route\n path=\"/\"\n component={AsyncLogin}\n />\n </Switch>\n);\n\nRoutes.propTypes = {\n hello: PropTypes.object\n};\n\nexport default Routes;\n","import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\n\nimport { BrowserRouter } from 'react-router-dom';\n\nimport Routes from './Routes';\n\nclass Main extends PureComponent {\n render() {\n const { hello, pathPrefix } = this.props;\n\n return (\n <BrowserRouter basename={pathPrefix}>\n <Routes hello={hello}/>\n </BrowserRouter>\n );\n }\n\n reload(event) {\n event.preventDefault();\n\n window.location.reload();\n }\n}\n\nMain.propTypes = {\n classes: PropTypes.object.isRequired,\n\n hello: PropTypes.object,\n updateAvailable: PropTypes.bool.isRequired,\n pathPrefix: PropTypes.string.isRequired\n};\n\nconst mapStateToProps = (state) => {\n const { hello, updateAvailable, pathPrefix } = state.common;\n\n return {\n hello,\n updateAvailable,\n pathPrefix\n };\n};\n\nexport default connect(mapStateToProps)(Main);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withRouter } from 'react-router';\nimport { Redirect } from 'react-router-dom';\n\nconst RedirectWithQuery = ({target, location, ...rest}) => {\n const to = {\n pathname: target,\n search: location.search,\n hash: location.hash\n };\n\n return (\n <Redirect to={to} {...rest}></Redirect>\n );\n};\n\nRedirectWithQuery.propTypes = {\n target: PropTypes.string.isRequired,\n location: PropTypes.object.isRequired\n};\n\nexport default withRouter(RedirectWithQuery);\n"],"names":["_ref","component","Target","hello","rest","_objectWithoutProperties","_excluded","React","Route","Object","assign","render","props","RedirectWithQuery","target","AsyncLogin","lazy","AsyncWelcome","AsyncGoodbye","Switch","PrivateRoute","path","exact","Main","PureComponent","pathPrefix","this","BrowserRouter","basename","Routes","reload","event","preventDefault","window","location","connect","state","updateAvailable","common","withRouter","to","pathname","search","hash","Redirect"],"sourceRoot":""}
|
||||
@@ -0,0 +1,2 @@
|
||||
(this.webpackChunkidentifier=this.webpackChunkidentifier||[]).push([[792],{8608:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>d,FK:()=>o,Gm:()=>h,Gz:()=>s,HF:()=>u,MX:()=>E,US:()=>i,fg:()=>a,h1:()=>c,l3:()=>r,pT:()=>m,tG:()=>l,uK:()=>g});const r="RECEIVE_ERROR",a="RESET_HELLO",o="RECEIVE_HELLO",l="RECEIVE_VALIDATE_LOGON",s="REQUEST_LOGON",i="RECEIVE_LOGON",c="UPDATE_INPUT",u="REQUEST_CONSENT_ALLOW",d="REQUEST_CONSENT_CANCEL",m="RECEIVE_CONSENT",E="REQUEST_LOGOFF",g="RECEIVE_LOGOFF",h="SERVICE_WORKER_NEW_CONTENT"},6018:(e,t,n)=>{"use strict";var r=n(1789),a=n(9317),o=n(7111),l=n(6312),s=n(6095),i=n(9729),c=n(5647),u=n(5504),d=n(8364);const m="ui_locales",E="ui_locale",g="lico.identifier_ui_locale",h=["en-GB","en",...d.map(e=>e.locale)],f={name:"queryUiLocales",lookup:e=>{const t=u.A.parse(document.location.search)[m];if(t)return Array.isArray(t)?t:t.split(" ")}},O=new c.A;O.addDetector(f),l.Ay.use((0,i.A)((e,t,r)=>{n(9220)("./".concat(e,"/").concat(t,".json")).then(e=>{r(null,e)}).catch(e=>{r(e,null)})})).use(O).use(s.r9).init({fallbackLng:"en-GB",supportedLngs:[...h],cleanCode:!0,returnEmptyString:!1,debug:!1,detection:{order:[f.name,"cookie","localStorage","navigator"],lookupCookie:E,lookupLocalStorage:g,caches:["localStorage"]},interpolation:{escapeValue:!1}});var p=n(8306),_=n(2532),b=n(4184);const N=(0,n(1142).A)(()=>({root:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})),A=()=>{const e=N();return r.createElement("div",{className:e.root},r.createElement(_.A,{in:!0,style:{transitionDelay:"800ms"},unmountOnExit:!0},r.createElement(b.A,{size:70,thickness:1})))},v={NODE_ENV:"production",PUBLIC_URL:"."}.REACT_APP_KOPANO_BUILD||"0.0.0-no-proper-build";var S=n(6636),y=n(1351),C=n(3924),L=n(1069);const R={50:"#e5f7fd",100:"#ccf0fc",200:"#99e1f9",300:"#66d1f6",400:"#33c2f3",500:"#00b3f0",600:"#14a9e7",700:"#1e98d7",800:"#188cc8",900:"#0d74b6",A100:"#96e8ff",A200:"#6ddaff",A400:"#56cbff",A700:"#48acf0"},T=C.A,I=L.A,j=(0,y.D)({palette:{primary:R,secondary:T,error:I,contrastThreshold:2.4,tonalOffset:.2},typography:{useNextVariants:!0,button:{textTransform:"none",fontSize:"1rem"}}}),w=(0,r.lazy)(()=>Promise.all([n.e(685),n.e(316)]).then(n.bind(n,9189)));console.info("Kopano Identifier build version: ".concat(v));const k=e=>{let{bgImg:t}=e;const[n,a]=(0,r.useState)(null),[o,l]=(0,r.useState)(null),[s,i]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{(async()=>{try{const e=await fetch("/config.json"),t=await e.json();l(t);const n=await fetch(t.theme),r=await n.json();a(r)}catch(e){console.error("Error fetching config/theme data:",e)}finally{i(!1)}})()},[]),s?r.createElement(A,null):r.createElement(S.O.Provider,{value:{theme:n,config:o}},r.createElement("div",{className:"oc-login-bg",style:{backgroundImage:t?"url(".concat(t,")"):void 0}},r.createElement(p.A,{theme:j},r.createElement(r.Suspense,{fallback:r.createElement(A,null)},r.createElement(w,null)))))};var G=n(553),U=n(3508),D=(n(9322),n(8608));const P=u.A.parse(document.location.search),F=P.flow||"";delete P.flow;const V=(()=>{const e=document.getElementById("root");let t=e?e.getAttribute("data-path-prefix"):null;return t&&"__PATH_PREFIX__"!==t||(t="/signin/v1"),t})(),x=(()=>{const e=document.getElementById("root");let t=e?e.getAttribute("passwort-reset-link"):null;return t&&"__PASSWORD_RESET_LINK__"!==t||(t=""),t})(),z={hello:null,branding:null,error:null,flow:F,query:P,updateAvailable:!1,pathPrefix:V,passwordResetLink:x};const K=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case D.l3:return Object.assign({},e,{error:t.error});case D.fg:return Object.assign({},e,{hello:null,branding:null});case D.FK:return Object.assign({},e,{hello:{state:t.state,username:t.username,displayName:t.displayName,details:t.hello},branding:t.hello.branding?t.hello.branding:e.branding});case D.Gm:return Object.assign({},e,{updateAvailable:!0});default:return e}};const B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loading:"",username:"",password:"",errors:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case D.tG:return Object.assign({},e,{errors:t.errors,loading:""});case D.HF:case D.Ag:case D.Gz:return Object.assign({},e,{loading:t.type,errors:{}});case D.pT:case D.US:return Object.assign({},e,{errors:!t.success&&t.errors?t.errors:{},loading:""});case D.uK:return Object.assign({},e,{username:"",password:""});case D.h1:return delete e.errors[t.name],Object.assign({},e,{[t.name]:t.value});default:return e}},H=(0,G.HY)({common:K,login:B}),M=[U.A];const Q=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||G.Zz,W=(0,G.y$)(H,Q((0,G.Tw)(...M))),X=document.getElementById("root"),q=X.getAttribute("data-bg-img");a.render(r.createElement(r.StrictMode,null,r.createElement(o.Kq,{store:W},r.createElement(k,{bgImg:q}))),X)},6636:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r=(0,n(1789).createContext)({theme:null,config:null})},9220:(e,t,n)=>{var r={"./de/translatioLine truncated
|
||||
//# sourceMappingURL=main.80d332e1.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/main.80d332e1.js","mappings":"qOAAO,MAAMA,EAAgB,gBAEhBC,EAAc,cAEdC,EAAgB,gBAEhBC,EAAyB,yBACzBC,EAAgB,gBAEhBC,EAAgB,gBAChBC,EAAe,eAEfC,EAAwB,wBACxBC,EAAyB,yBAEzBC,EAAkB,kBAElBC,EAAiB,iBAEjBC,EAAiB,iBAEjBC,EAA6B,4B,4HCTnC,MCFDC,EACgB,aADhBA,EAEgB,YAFhBA,EAGsB,4BAGtBC,EAAqB,CAAC,QAAS,QDJAC,ECIiBC,IAAKC,GAClDA,EAAOA,SAGVC,EAAyC,CAC7CC,KAAM,iBACNC,OAASC,IACP,MACMC,EADQC,EAAAA,EAAYC,MAAMC,SAASC,SAASC,QACzBd,GACzB,GAAKS,EAGL,OAAIM,MAAMC,QAAQP,GACTA,EAEAA,EAAWQ,MAAM,OAKxBC,EAAmB,IAAIC,EAAAA,EAC7BD,EAAiBE,YAAYf,GAE7BgB,EAAAA,GAAAA,KACOC,EAAAA,EAAAA,GAAmB,CAACC,EAAUC,EAAWC,KAC5C,QAI6B,KAA3BC,OACaH,EAAQ,KAAAG,OAAIF,EAAS,UAEjCG,KAAMC,IACLH,EAAS,KAAMG,KAEhBC,MAAOC,IACNL,EAASK,EAAO,WAGrBC,IAAIb,GACJa,IAAIC,EAAAA,IAGJC,KAAK,CAC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AoBG,EAAEvK,EAAKiKLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
(()=>{"use strict";var e={},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,(()=>{var e=[];r.O=(t,n,o,i)=>{if(!n){var a=1/0;for(d=0;d<e.length;d++){n=e[d][0],o=e[d][1],i=e[d][2];for(var c=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(r.O).every(e=>r.O[e](n[l]))?n.splice(l--,1):(c=!1,i<a&&(a=i));if(c){e.splice(d--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[n,o,i]}})(),r.F={},r.E=e=>{Object.keys(r.F).map(t=>{r.F[t](e)})},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"===typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"===typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,r.d(i,a),i}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"static/js/"+({78:"all-i18n-data",256:"containers-welcome",316:"identifier-main",469:"containers-goodbye",587:"containers-login"}[e]||e)+"."+{78:"a8e8cc22",168:"14897b60",256:"404c7295",316:"87045827",469:"03a6ec24",587:"e8addc4c",685:"b3ace706",913:"7f29e955"}[e]+".chunk.js",r.miniCssF=e=>{},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="identifier:";r.l=(n,o,i,a)=>{if(e[n])e[n].push(o);else{var c,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),d=0;d<u.length;d++){var f=u[d];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+i){c=f;break}}c||(l=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,r.nc&&c.setAttribute("nonce",r.nc),c.setAttribute("data-webpack",t+i),c.src=n),e[n]=[o];var s=(t,r)=>{c.onerror=c.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach(e=>e(r)),t)return t(r)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),l&&document.head.appendChild(c)}}})(),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="./",(()=>{var e={577:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else if(577!=t){var i=new Promise((r,n)=>o=e[t]=[r,n]);n.push(o[2]=i);var a=r.p+r.u(t),c=new Error;r.l(a,n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",c.name="ChunkLoadError",c.type=i,c.request=a,o[1](c)}},"chunk-"+t,t)}else e[t]=0},r.F.j=t=>{if((!r.o(e,t)||void 0===e[t])&&577!=t){e[t]=null;var n=document.createElement("link");r.nc&&n.setAttribute("nonce",r.nc),n.rel="prefetch",n.as="script",n.href=r.p+r.u(t),document.head.appendChild(n)}},r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,a=n[0],c=n[1],l=n[2],u=0;if(a.some(t=>0!==e[t])){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(l)var d=l(r)}for(t&&t(n);u<a.length;u++)i=a[u],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(d)},n=this.webpackChunkidentifier=this.webpackChunkidentifier||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})()})();
|
||||
//# sourceMappingURL=runtime-main.20eef8fb.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/js/runtime-main.20eef8fb.js","mappings":"4BACIA,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUM,KAAKF,EAAOD,QAASC,EAAQA,EAAOD,QAASJ,GAGpEK,EAAOD,OACf,CAGAJ,EAAoBQ,EAAIF,E,MCzBxB,IAAIG,EAAW,GACfT,EAAoBU,EAAI,CAACC,EAAQC,EAAUC,EAAIC,KAC9C,IAAGF,EAAH,CAMA,IAAIG,EAAeC,IACnB,IAASC,EAAI,EAAGA,EAAIR,EAASS,OAAQD,IAAK,CACrCL,EAAWH,EAASQ,GAAG,GACvBJ,EAAKJ,EAASQ,GAAG,GACjBH,EAAWL,EAASQ,GAAG,GAE3B,IAJA,IAGIE,GAAY,EACPC,EAAI,EAAGA,EAAIR,EAASM,OAAQE,MACpB,EAAXN,GAAsBC,GAAgBD,IAAaO,OAAOC,KAAKtB,EAAoBU,GAAGa,MAAOC,GAASxB,EAAoBU,EAAEc,GAAKZ,EAASQ,KAC9IR,EAASa,OAAOL,IAAK,IAErBD,GAAY,EACTL,EAAWC,IAAcA,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EAAoB4G,EAAI5G,EAAoB+D,EAAElC,GAC1DoD,SALine truncated
|
||||
@@ -368,10 +368,14 @@ func (idp *IDP) basePage(r *http.Request, title, headline string) (basePageData,
|
||||
})
|
||||
lang := detectLocale(r)
|
||||
t := idp.translator.Locale(lang)
|
||||
// title and headline are translation lookup keys, not printf format strings;
|
||||
// go vet's non-constant format string check can't trace through a func value,
|
||||
// so assign Get to a local before calling it to avoid a false positive.
|
||||
get := t.Get
|
||||
return basePageData{
|
||||
Lang: lang,
|
||||
Title: t.Get(title),
|
||||
Headline: t.Get(headline),
|
||||
Title: get(title),
|
||||
Headline: get(headline),
|
||||
Nonce: rndm.GenerateRandomString(32),
|
||||
PathPrefix: "/signin/v1",
|
||||
BgImgURL: idp.bgImgURL,
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"fileNames":["./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","./node_modules/.pnpLine truncated
|
||||
@@ -51,6 +51,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
grpcClient, err := grpc.NewClient(
|
||||
append(
|
||||
grpc.GetClientOptions(&cfg.GRPCClientTLS),
|
||||
grpc.WithKeepaliveParams(&cfg.GRPCClientOptions),
|
||||
grpc.WithTraceProvider(traceProvider),
|
||||
)...,
|
||||
)
|
||||
|
||||
@@ -20,9 +20,10 @@ type Config struct {
|
||||
|
||||
WebUIURL string `yaml:"ocis_url" env:"OCIS_URL;NOTIFICATIONS_WEB_UI_URL" desc:"The public facing URL of the oCIS Web UI, used e.g. when sending notification eMails" introductionVersion:"pre5.0"`
|
||||
|
||||
Notifications Notifications `yaml:"notifications"`
|
||||
GRPCClientTLS shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
ServiceAccount ServiceAccount `yaml:"service_account" mask:"struct"`
|
||||
Notifications Notifications `yaml:"notifications"`
|
||||
GRPCClientTLS shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
ServiceAccount ServiceAccount `yaml:"service_account" mask:"struct"`
|
||||
|
||||
Context context.Context `yaml:"-"`
|
||||
|
||||
@@ -71,11 +72,11 @@ type ServiceAccount struct {
|
||||
|
||||
// Store configures the store to use
|
||||
type Store struct {
|
||||
Store string `yaml:"store" env:"OCIS_PERSISTENT_STORE;NOTIFICATIONS_STORE" desc:"The type of the store. Supported values are: 'memory', 'nats-js-kv', 'redis-sentinel', 'noop'. See the text description for details." introductionVersion:"7.1.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;NOTIFICATIONS_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"7.1.0"`
|
||||
Database string `yaml:"database" env:"NOTIFICATIONS_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"7.1.0"`
|
||||
Table string `yaml:"table" env:"NOTIFICATIONS_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"7.1.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;NOTIFICATIONS_STORE_TTL" desc:"Time to live for notifications in the store. Defaults to '336h' (2 weeks). See the Environment Variable Types description for more details." introductionVersion:"7.1.0"`
|
||||
Store string `yaml:"store" env:"OCIS_PERSISTENT_STORE;NOTIFICATIONS_STORE" desc:"The type of the store. Supported values are: 'memory', 'nats-js-kv', 'redis-sentinel', 'noop'. See the text description for details." introductionVersion:"7.1.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;NOTIFICATIONS_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"7.1.0"`
|
||||
Database string `yaml:"database" env:"NOTIFICATIONS_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"7.1.0"`
|
||||
Table string `yaml:"table" env:"NOTIFICATIONS_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"7.1.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;NOTIFICATIONS_STORE_TTL" desc:"Time to live for notifications in the store. Defaults to '336h' (2 weeks). See the Environment Variable Types description for more details." introductionVersion:"7.1.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_PERSISTENT_STORE_AUTH_USERNAME;NOTIFICATIONS_STORE_AUTH_USERNAME" desc:"The username to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"7.1.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_PERSISTENT_STORE_AUTH_PASSWORD;NOTIFICATIONS_STORE_AUTH_PASSWORD" desc:"The password to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"7.1.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_PERSISTENT_STORE_ENABLE_TLS;NOTIFICATIONS_STORE_ENABLE_TLS" desc:"Activate TLS for the connection to the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
|
||||
@@ -80,6 +80,10 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.Notifications.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.Notifications.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
|
||||
if cfg.GRPCClientOptions == (shared.GRPCClientOptions{}) && cfg.Commons != nil && cfg.Commons.GRPCClientOptions != nil {
|
||||
cfg.GRPCClientOptions = *cfg.Commons.GRPCClientOptions
|
||||
}
|
||||
}
|
||||
|
||||
// Sanitize sanitizes the configuration
|
||||
|
||||
@@ -21,15 +21,19 @@ var (
|
||||
func NewTextTemplate(mt MessageTemplate, locale, defaultLocale string, translationPath string, vars map[string]string) (MessageTemplate, error) {
|
||||
var err error
|
||||
t := l10n.NewTranslatorFromCommonConfig(defaultLocale, _domain, translationPath, _translationFS, "l10n/locale").Locale(locale)
|
||||
mt.Subject, err = composeMessage(t.Get(mt.Subject), vars)
|
||||
// the translated fields below are translation lookup keys, not printf format
|
||||
// strings; go vet's non-constant format string check can't trace through a
|
||||
// func value, so assign Get to a local before calling it to avoid a false positive.
|
||||
get := t.Get
|
||||
mt.Subject, err = composeMessage(get(mt.Subject), vars)
|
||||
if err != nil {
|
||||
return mt, err
|
||||
}
|
||||
mt.Greeting, err = composeMessage(t.Get(mt.Greeting), vars)
|
||||
mt.Greeting, err = composeMessage(get(mt.Greeting), vars)
|
||||
if err != nil {
|
||||
return mt, err
|
||||
}
|
||||
mt.MessageBody, err = composeMessage(t.Get(mt.MessageBody), vars)
|
||||
mt.MessageBody, err = composeMessage(get(mt.MessageBody), vars)
|
||||
if err != nil {
|
||||
return mt, err
|
||||
}
|
||||
@@ -37,7 +41,7 @@ func NewTextTemplate(mt MessageTemplate, locale, defaultLocale string, translati
|
||||
if mt.CallToAction != "" {
|
||||
// Some templates have an empty call-to-action. We don't want to translate
|
||||
// an empty key and get an unexpected message.
|
||||
mt.CallToAction, err = composeMessage(t.Get(mt.CallToAction), vars)
|
||||
mt.CallToAction, err = composeMessage(get(mt.CallToAction), vars)
|
||||
if err != nil {
|
||||
return mt, err
|
||||
}
|
||||
@@ -49,22 +53,26 @@ func NewTextTemplate(mt MessageTemplate, locale, defaultLocale string, translati
|
||||
func NewHTMLTemplate(mt MessageTemplate, locale, defaultLocale string, translationPath string, vars map[string]string) (MessageTemplate, error) {
|
||||
var err error
|
||||
t := l10n.NewTranslatorFromCommonConfig(defaultLocale, _domain, translationPath, _translationFS, "l10n/locale").Locale(locale)
|
||||
mt.Subject, err = composeMessage(t.Get(mt.Subject), vars)
|
||||
// the translated fields below are translation lookup keys, not printf format
|
||||
// strings; go vet's non-constant format string check can't trace through a
|
||||
// func value, so assign Get to a local before calling it to avoid a false positive.
|
||||
get := t.Get
|
||||
mt.Subject, err = composeMessage(get(mt.Subject), vars)
|
||||
if err != nil {
|
||||
return mt, err
|
||||
}
|
||||
mt.Greeting, err = composeMessage(newlineToBr(t.Get(mt.Greeting)), vars)
|
||||
mt.Greeting, err = composeMessage(newlineToBr(get(mt.Greeting)), vars)
|
||||
if err != nil {
|
||||
return mt, err
|
||||
}
|
||||
mt.MessageBody, err = composeMessage(newlineToBr(t.Get(mt.MessageBody)), vars)
|
||||
mt.MessageBody, err = composeMessage(newlineToBr(get(mt.MessageBody)), vars)
|
||||
if err != nil {
|
||||
return mt, err
|
||||
}
|
||||
if mt.CallToAction != "" {
|
||||
// Some templates have an empty call-to-action. We don't want to translate
|
||||
// an empty key and get an unexpected message.
|
||||
mt.CallToAction, err = composeMessage(callToActionToHTML(t.Get(mt.CallToAction)), vars)
|
||||
mt.CallToAction, err = composeMessage(callToActionToHTML(get(mt.CallToAction)), vars)
|
||||
if err != nil {
|
||||
return mt, err
|
||||
}
|
||||
@@ -80,18 +88,22 @@ func NewGroupedTextTemplate(gmt GroupedMessageTemplate, vars map[string]string,
|
||||
|
||||
var err error
|
||||
t := l10n.NewTranslatorFromCommonConfig(defaultLocale, _domain, translationPath, _translationFS, "l10n/locale").Locale(locale)
|
||||
gmt.Subject, err = composeMessage(t.Get(gmt.Subject), vars)
|
||||
// the translated fields below are translation lookup keys, not printf format
|
||||
// strings; go vet's non-constant format string check can't trace through a
|
||||
// func value, so assign Get to a local before calling it to avoid a false positive.
|
||||
get := t.Get
|
||||
gmt.Subject, err = composeMessage(get(gmt.Subject), vars)
|
||||
if err != nil {
|
||||
return gmt, err
|
||||
}
|
||||
gmt.Greeting, err = composeMessage(t.Get(gmt.Greeting), vars)
|
||||
gmt.Greeting, err = composeMessage(get(gmt.Greeting), vars)
|
||||
if err != nil {
|
||||
return gmt, err
|
||||
}
|
||||
|
||||
bodyParts := make([]string, 0, len(mtsVars))
|
||||
for i, mt := range mts {
|
||||
bodyPart, err := composeMessage(t.Get(mt.MessageBody), mtsVars[i])
|
||||
bodyPart, err := composeMessage(get(mt.MessageBody), mtsVars[i])
|
||||
if err != nil {
|
||||
return gmt, err
|
||||
}
|
||||
@@ -109,18 +121,22 @@ func NewGroupedHTMLTemplate(gmt GroupedMessageTemplate, vars map[string]string,
|
||||
|
||||
var err error
|
||||
t := l10n.NewTranslatorFromCommonConfig(defaultLocale, _domain, translationPath, _translationFS, "l10n/locale").Locale(locale)
|
||||
gmt.Subject, err = composeMessage(t.Get(gmt.Subject), vars)
|
||||
// the translated fields below are translation lookup keys, not printf format
|
||||
// strings; go vet's non-constant format string check can't trace through a
|
||||
// func value, so assign Get to a local before calling it to avoid a false positive.
|
||||
get := t.Get
|
||||
gmt.Subject, err = composeMessage(get(gmt.Subject), vars)
|
||||
if err != nil {
|
||||
return gmt, err
|
||||
}
|
||||
gmt.Greeting, err = composeMessage(newlineToBr(t.Get(gmt.Greeting)), vars)
|
||||
gmt.Greeting, err = composeMessage(newlineToBr(get(gmt.Greeting)), vars)
|
||||
if err != nil {
|
||||
return gmt, err
|
||||
}
|
||||
|
||||
bodyParts := make([]string, 0, len(mtsVars))
|
||||
for i, mt := range mts {
|
||||
bodyPart, err := composeMessage(t.Get(mt.MessageBody), mtsVars[i])
|
||||
bodyPart, err := composeMessage(get(mt.MessageBody), mtsVars[i])
|
||||
if err != nil {
|
||||
return gmt, err
|
||||
}
|
||||
|
||||
@@ -71,6 +71,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
ocdav.WebdavNamespace(cfg.WebdavNamespace),
|
||||
ocdav.OCMNamespace(cfg.OCMNamespace),
|
||||
ocdav.AllowDepthInfinity(cfg.AllowPropfindDepthInfinity),
|
||||
ocdav.DisablePropfindPublicLinkResolution(cfg.DisablePropfindPublicLinkResolution),
|
||||
ocdav.SharesNamespace(cfg.SharesNamespace),
|
||||
ocdav.Timeout(cfg.Timeout),
|
||||
ocdav.Insecure(cfg.Insecure),
|
||||
|
||||
@@ -38,6 +38,8 @@ type Config struct {
|
||||
Status Status `yaml:"-"`
|
||||
|
||||
AllowPropfindDepthInfinity bool `yaml:"allow_propfind_depth_infinity" env:"OCDAV_ALLOW_PROPFIND_DEPTH_INFINITY" desc:"Allow the use of depth infinity in PROPFINDS. When enabled, a propfind will traverse through all subfolders. If many subfolders are expected, depth infinity can cause heavy server load and/or delayed response times." introductionVersion:"pre5.0"`
|
||||
|
||||
DisablePropfindPublicLinkResolution bool `yaml:"disable_propfind_public_link_resolution" env:"OCDAV_DISABLE_PROPFIND_PUBLIC_LINK_RESOLUTION" desc:"Disable the resolution of public link shares when answering PROPFIND requests. When disabled, the oc:share-type property will not be populated with public link share information, which can reduce load on services for large collections." introductionVersion:"8.3.0"`
|
||||
}
|
||||
|
||||
type Log struct {
|
||||
|
||||
@@ -35,7 +35,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
cfg.GrpcClient, err = ogrpc.NewClient(ogrpc.GetClientOptions(cfg.GRPCClientTLS)...)
|
||||
cfg.GrpcClient, err = ogrpc.NewClient(append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithKeepaliveParams(cfg.GRPCClientOptions))...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -20,8 +20,9 @@ type Config struct {
|
||||
|
||||
HTTP HTTP `yaml:"http"`
|
||||
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
|
||||
SigningKeys *SigningKeys `yaml:"signing_keys"`
|
||||
|
||||
@@ -32,9 +33,9 @@ type Config struct {
|
||||
|
||||
// SigningKeys is a store configuration.
|
||||
type SigningKeys struct {
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE;OCS_PRESIGNEDURL_SIGNING_KEYS_STORE" desc:"The type of the signing key store. Supported values are: 'redis-sentinel' and 'nats-js-kv'. See the text description for details." introductionVersion:"5.0"`
|
||||
Nodes []string `yaml:"addresses" env:"OCIS_CACHE_STORE_NODES;OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES" desc:"A list of nodes to access the configured store. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_TTL" desc:"Default time to live for signing keys. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE;OCS_PRESIGNEDURL_SIGNING_KEYS_STORE" desc:"The type of the signing key store. Supported values are: 'redis-sentinel' and 'nats-js-kv'. See the text description for details." introductionVersion:"5.0"`
|
||||
Nodes []string `yaml:"addresses" env:"OCIS_CACHE_STORE_NODES;OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES" desc:"A list of nodes to access the configured store. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_TTL" desc:"Default time to live for signing keys. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_CACHE_AUTH_USERNAME;OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_AUTH_USERNAME" desc:"The username to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_CACHE_AUTH_PASSWORD;OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_AUTH_PASSWORD" desc:"The password to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_CACHE_ENABLE_TLS;OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_ENABLE_TLS" desc:"Activate TLS for the connection to the signing key store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
|
||||
@@ -87,6 +87,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
}
|
||||
|
||||
// Sanitize sanitizes the configuration
|
||||
|
||||
@@ -64,6 +64,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
grpcClient, err := grpc.NewClient(
|
||||
append(
|
||||
grpc.GetClientOptions(cfg.GRPCClientTLS),
|
||||
grpc.WithKeepaliveParams(cfg.GRPCClientOptions),
|
||||
grpc.WithTraceProvider(traceProvider),
|
||||
)...,
|
||||
)
|
||||
|
||||
@@ -9,17 +9,18 @@ import (
|
||||
|
||||
// Config combines all available configuration parts.
|
||||
type Config struct {
|
||||
Commons *shared.Commons `yaml:"-"` // don't use this directly as configuration for a service
|
||||
GRPC GRPC `yaml:"grpc"`
|
||||
Service Service `yaml:"-"`
|
||||
Debug Debug `yaml:"debug"`
|
||||
Events Events `yaml:"events"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
Context context.Context `yaml:"-"`
|
||||
Log *Log `yaml:"log"`
|
||||
Engine Engine `yaml:"engine"`
|
||||
Postprocessing Postprocessing `yaml:"postprocessing"`
|
||||
Tracing *Tracing `yaml:"tracing"`
|
||||
Commons *shared.Commons `yaml:"-"` // don't use this directly as configuration for a service
|
||||
GRPC GRPC `yaml:"grpc"`
|
||||
Service Service `yaml:"-"`
|
||||
Debug Debug `yaml:"debug"`
|
||||
Events Events `yaml:"events"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
Context context.Context `yaml:"-"`
|
||||
Log *Log `yaml:"log"`
|
||||
Engine Engine `yaml:"engine"`
|
||||
Postprocessing Postprocessing `yaml:"postprocessing"`
|
||||
Tracing *Tracing `yaml:"tracing"`
|
||||
}
|
||||
|
||||
// Service defines the available service configuration.
|
||||
|
||||
@@ -57,6 +57,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
if cfg.GRPC.TLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPC.TLS = structs.CopyOrZeroValue(cfg.Commons.GRPCServiceTLS)
|
||||
}
|
||||
|
||||
@@ -93,6 +93,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
cfg.GrpcClient, err = grpc.NewClient(
|
||||
append(
|
||||
grpc.GetClientOptions(cfg.GRPCClientTLS),
|
||||
grpc.WithKeepaliveParams(cfg.GRPCClientOptions),
|
||||
grpc.WithTraceProvider(traceProvider))...)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -20,9 +20,10 @@ type Config struct {
|
||||
|
||||
HTTP HTTP `yaml:"http"`
|
||||
|
||||
Reva *shared.Reva `yaml:"reva"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
Reva *shared.Reva `yaml:"reva"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
|
||||
RoleQuotas map[string]uint64 `yaml:"role_quotas"`
|
||||
Policies []Policy `yaml:"policies"`
|
||||
@@ -138,17 +139,17 @@ type MFAConfig struct {
|
||||
|
||||
// Cache is a TTL cache configuration.
|
||||
type Cache struct {
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE;PROXY_OIDC_USERINFO_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"addresses" env:"OCIS_CACHE_STORE_NODES;PROXY_OIDC_USERINFO_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"OCIS_CACHE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"PROXY_OIDC_USERINFO_CACHE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;PROXY_OIDC_USERINFO_CACHE_TTL" desc:"Default time to live for user info in the user info cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
DisablePersistence bool `yaml:"disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE;PROXY_OIDC_USERINFO_CACHE_DISABLE_PERSISTENCE" desc:"Disables persistence of the cache. Only applies when store type 'nats-js-kv' is configured. Defaults to false." introductionVersion:"pre5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_CACHE_AUTH_USERNAME;PROXY_OIDC_USERINFO_CACHE_AUTH_USERNAME" desc:"The username to authenticate with the cache. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_CACHE_AUTH_PASSWORD;PROXY_OIDC_USERINFO_CACHE_AUTH_PASSWORD" desc:"The password to authenticate with the cache. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_CACHE_ENABLE_TLS;PROXY_OIDC_USERINFO_CACHE_ENABLE_TLS" desc:"Activate TLS for the connection to the cache store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_CACHE_TLS_INSECURE;PROXY_OIDC_USERINFO_CACHE_TLS_INSECURE" desc:"Disable TLS certificate verification for the cache store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE;PROXY_OIDC_USERINFO_CACHE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate for the cache store TLS connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE;PROXY_OIDC_USERINFO_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"addresses" env:"OCIS_CACHE_STORE_NODES;PROXY_OIDC_USERINFO_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"OCIS_CACHE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"PROXY_OIDC_USERINFO_CACHE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;PROXY_OIDC_USERINFO_CACHE_TTL" desc:"Default time to live for user info in the user info cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
DisablePersistence bool `yaml:"disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE;PROXY_OIDC_USERINFO_CACHE_DISABLE_PERSISTENCE" desc:"Disables persistence of the cache. Only applies when store type 'nats-js-kv' is configured. Defaults to false." introductionVersion:"pre5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_CACHE_AUTH_USERNAME;PROXY_OIDC_USERINFO_CACHE_AUTH_USERNAME" desc:"The username to authenticate with the cache. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_CACHE_AUTH_PASSWORD;PROXY_OIDC_USERINFO_CACHE_AUTH_PASSWORD" desc:"The password to authenticate with the cache. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_CACHE_ENABLE_TLS;PROXY_OIDC_USERINFO_CACHE_ENABLE_TLS" desc:"Activate TLS for the connection to the cache store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_CACHE_TLS_INSECURE;PROXY_OIDC_USERINFO_CACHE_TLS_INSECURE" desc:"Disable TLS certificate verification for the cache store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE;PROXY_OIDC_USERINFO_CACHE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate for the cache store TLS connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
}
|
||||
|
||||
// RoleAssignment contains the configuration for how to assign roles to users during login
|
||||
@@ -198,15 +199,15 @@ type PreSignedURL struct {
|
||||
|
||||
// SigningKeys is a store configuration.
|
||||
type SigningKeys struct {
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE" desc:"The type of the signing key store. Supported values are: 'redis-sentinel' and 'nats-js-kv'. See the text description for details." introductionVersion:"5.0"`
|
||||
Nodes []string `yaml:"addresses" env:"OCIS_CACHE_STORE_NODES;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES" desc:"A list of nodes to access the configured store. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_TTL" desc:"Default time to live for signing keys. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
|
||||
DisablePersistence bool `yaml:"disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_DISABLE_PERSISTENCE" desc:"Disables persistence of the store. Only applies when store type 'nats-js-kv' is configured. Defaults to true." introductionVersion:"5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_CACHE_AUTH_USERNAME;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_AUTH_USERNAME" desc:"The username to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_CACHE_AUTH_PASSWORD;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_AUTH_PASSWORD" desc:"The password to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_CACHE_ENABLE_TLS;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_ENABLE_TLS" desc:"Activate TLS for the connection to the signing key store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_CACHE_TLS_INSECURE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_TLS_INSECURE" desc:"Disable TLS certificate verification for the signing key store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate for the signing key store TLS connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE" desc:"The type of the signing key store. Supported values are: 'redis-sentinel' and 'nats-js-kv'. See the text description for details." introductionVersion:"5.0"`
|
||||
Nodes []string `yaml:"addresses" env:"OCIS_CACHE_STORE_NODES;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES" desc:"A list of nodes to access the configured store. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_TTL" desc:"Default time to live for signing keys. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
|
||||
DisablePersistence bool `yaml:"disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_DISABLE_PERSISTENCE" desc:"Disables persistence of the store. Only applies when store type 'nats-js-kv' is configured. Defaults to true." introductionVersion:"5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_CACHE_AUTH_USERNAME;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_AUTH_USERNAME" desc:"The username to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_CACHE_AUTH_PASSWORD;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_AUTH_PASSWORD" desc:"The password to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_CACHE_ENABLE_TLS;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_ENABLE_TLS" desc:"Activate TLS for the connection to the signing key store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_CACHE_TLS_INSECURE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_TLS_INSECURE" desc:"Disable TLS certificate verification for the signing key store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate for the signing key store TLS connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
}
|
||||
|
||||
// ClaimsSelectorConf is the config for the claims-selector
|
||||
|
||||
@@ -336,6 +336,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
}
|
||||
|
||||
// Sanitize sanitizes the configuration
|
||||
|
||||
@@ -49,6 +49,7 @@ func Index(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
grpcClient, err := grpc.NewClient(
|
||||
append(grpc.GetClientOptions(cfg.GRPCClientTLS),
|
||||
grpc.WithKeepaliveParams(cfg.GRPCClientOptions),
|
||||
grpc.WithTraceProvider(traceProvider),
|
||||
)...,
|
||||
)
|
||||
|
||||
@@ -36,7 +36,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
|
||||
cfg.GrpcClient, err = ogrpc.NewClient(
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithTraceProvider(traceProvider))...,
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithKeepaliveParams(cfg.GRPCClientOptions), ogrpc.WithTraceProvider(traceProvider))...,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -22,12 +22,13 @@ type Config struct {
|
||||
|
||||
TokenManager *TokenManager `yaml:"token_manager"`
|
||||
|
||||
Reva *shared.Reva `yaml:"reva"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
Events Events `yaml:"events"`
|
||||
Engine Engine `yaml:"engine"`
|
||||
Extractor Extractor `yaml:"extractor"`
|
||||
ContentExtractionSizeLimit uint64 `yaml:"content_extraction_size_limit" env:"SEARCH_CONTENT_EXTRACTION_SIZE_LIMIT" desc:"Maximum file size in bytes that is allowed for content extraction." introductionVersion:"pre5.0"`
|
||||
Reva *shared.Reva `yaml:"reva"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
Events Events `yaml:"events"`
|
||||
Engine Engine `yaml:"engine"`
|
||||
Extractor Extractor `yaml:"extractor"`
|
||||
ContentExtractionSizeLimit uint64 `yaml:"content_extraction_size_limit" env:"SEARCH_CONTENT_EXTRACTION_SIZE_LIMIT" desc:"Maximum file size in bytes that is allowed for content extraction." introductionVersion:"pre5.0"`
|
||||
|
||||
ServiceAccount ServiceAccount `yaml:"service_account" mask:"struct"`
|
||||
|
||||
|
||||
@@ -97,6 +97,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
if cfg.GRPC.TLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPC.TLS = structs.CopyOrZeroValue(cfg.Commons.GRPCServiceTLS)
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
cfg.GrpcClient, err = ogrpc.NewClient(
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithTraceProvider(traceProvider))...,
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithKeepaliveParams(cfg.GRPCClientOptions), ogrpc.WithTraceProvider(traceProvider))...,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -22,8 +22,9 @@ type Config struct {
|
||||
HTTP HTTP `yaml:"http"`
|
||||
GRPC GRPCConfig `yaml:"grpc"`
|
||||
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
|
||||
Metadata Metadata `yaml:"metadata_config"`
|
||||
BundlesPath string `yaml:"bundles_path" env:"SETTINGS_BUNDLES_PATH" desc:"The path to a JSON file with a list of bundles. If not defined, the default bundles will be loaded." introductionVersion:"pre5.0"`
|
||||
@@ -56,16 +57,16 @@ type Metadata struct {
|
||||
|
||||
// Cache configures the cache of the Metadata store
|
||||
type Cache struct {
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE;SETTINGS_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"addresses" env:"OCIS_CACHE_STORE_NODES;SETTINGS_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"OCIS_CACHE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
FileTable string `yaml:"files_table" env:"SETTINGS_FILE_CACHE_TABLE" desc:"The database table the store should use for the file cache." introductionVersion:"pre5.0"`
|
||||
DirectoryTable string `yaml:"directories_table" env:"SETTINGS_DIRECTORY_CACHE_TABLE" desc:"The database table the store should use for the directory cache." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;SETTINGS_CACHE_TTL" desc:"Default time to live for entries in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
DisablePersistence bool `yaml:"disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE;SETTINGS_CACHE_DISABLE_PERSISTENCE" desc:"Disables persistence of the cache. Only applies when store type 'nats-js-kv' is configured. Defaults to false." introductionVersion:"5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_CACHE_AUTH_USERNAME;SETTINGS_CACHE_AUTH_USERNAME" desc:"The username to authenticate with the cache. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_CACHE_AUTH_PASSWORD;SETTINGS_CACHE_AUTH_PASSWORD" desc:"The password to authenticate with the cache. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_CACHE_ENABLE_TLS;SETTINGS_CACHE_ENABLE_TLS" desc:"Activate TLS for the connection to the cache store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_CACHE_TLS_INSECURE;SETTINGS_CACHE_TLS_INSECURE" desc:"Disable TLS certificate verification for the cache store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE;SETTINGS_CACHE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate for the cache store TLS connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
Store string `yaml:"store" env:"OCIS_CACHE_STORE;SETTINGS_CACHE_STORE" desc:"The type of the cache store. Supported values are: 'memory', 'redis-sentinel', 'nats-js-kv', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"addresses" env:"OCIS_CACHE_STORE_NODES;SETTINGS_CACHE_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"OCIS_CACHE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
FileTable string `yaml:"files_table" env:"SETTINGS_FILE_CACHE_TABLE" desc:"The database table the store should use for the file cache." introductionVersion:"pre5.0"`
|
||||
DirectoryTable string `yaml:"directories_table" env:"SETTINGS_DIRECTORY_CACHE_TABLE" desc:"The database table the store should use for the directory cache." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;SETTINGS_CACHE_TTL" desc:"Default time to live for entries in the cache. Only applied when access tokens has no expiration. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
DisablePersistence bool `yaml:"disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE;SETTINGS_CACHE_DISABLE_PERSISTENCE" desc:"Disables persistence of the cache. Only applies when store type 'nats-js-kv' is configured. Defaults to false." introductionVersion:"5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_CACHE_AUTH_USERNAME;SETTINGS_CACHE_AUTH_USERNAME" desc:"The username to authenticate with the cache. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_CACHE_AUTH_PASSWORD;SETTINGS_CACHE_AUTH_PASSWORD" desc:"The password to authenticate with the cache. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_CACHE_ENABLE_TLS;SETTINGS_CACHE_ENABLE_TLS" desc:"Activate TLS for the connection to the cache store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSInsecure bool `yaml:"tls_insecure" env:"OCIS_CACHE_TLS_INSECURE;SETTINGS_CACHE_TLS_INSECURE" desc:"Disable TLS certificate verification for the cache store connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
TLSRootCACertificate string `yaml:"tls_root_ca_certificate" env:"OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE;SETTINGS_CACHE_TLS_ROOT_CA_CERTIFICATE" desc:"Path to the PEM-encoded root CA certificate for the cache store TLS connection. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
}
|
||||
@@ -115,6 +115,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
if cfg.GRPC.TLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPC.TLS = structs.CopyOrZeroValue(cfg.Commons.GRPCServiceTLS)
|
||||
}
|
||||
|
||||
@@ -687,6 +687,10 @@ func formatPermissionName(setting *settingsmsg.Setting) string {
|
||||
}
|
||||
|
||||
func translateBundle(bundle *settingsmsg.Bundle, t l10n.OcisLocale) *settingsmsg.Bundle {
|
||||
// the translated values below are translation lookup keys, not printf format
|
||||
// strings; go vet's non-constant format string check can't trace through a
|
||||
// func value, so assign Get to a local before calling it to avoid a false positive.
|
||||
get := t.Get
|
||||
for i, set := range bundle.GetSettings() {
|
||||
switch set.GetId() {
|
||||
default:
|
||||
@@ -695,7 +699,7 @@ func translateBundle(bundle *settingsmsg.Bundle, t l10n.OcisLocale) *settingsmsg
|
||||
// translate interval names ('Instant', 'Daily', 'Weekly', 'Never')
|
||||
value := set.GetSingleChoiceValue()
|
||||
for i, v := range value.GetOptions() {
|
||||
value.Options[i].DisplayValue = t.Get(v.GetDisplayValue())
|
||||
value.Options[i].DisplayValue = get(v.GetDisplayValue())
|
||||
}
|
||||
set.Value = &settingsmsg.Setting_SingleChoiceValue{SingleChoiceValue: value}
|
||||
fallthrough
|
||||
@@ -709,9 +713,9 @@ func translateBundle(bundle *settingsmsg.Bundle, t l10n.OcisLocale) *settingsmsg
|
||||
defaults.SettingUUIDProfileEventSpaceDeleted,
|
||||
defaults.SettingUUIDProfileEventPostprocessingStepFinished:
|
||||
// translate event names ('Share Received', 'Share Removed', ...)
|
||||
set.DisplayName = t.Get(set.GetDisplayName())
|
||||
set.DisplayName = get(set.GetDisplayName())
|
||||
// translate event descriptions ('Notify me when I receive a share', ...)
|
||||
set.Description = t.Get(set.GetDescription())
|
||||
set.Description = get(set.GetDescription())
|
||||
bundle.Settings[i] = set
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,8 @@ type Config struct {
|
||||
PublicSharingDrivers PublicSharingDrivers `yaml:"public_sharing_drivers"`
|
||||
WriteableShareMustHavePassword bool `yaml:"public_sharing_writeableshare_must_have_password" env:"OCIS_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD;SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords on Uploader, Editor or Contributor shares." introductionVersion:"5.0"`
|
||||
PublicShareMustHavePassword bool `yaml:"public_sharing_share_must_have_password" env:"OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD;SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD" desc:"Set this to true if you want to enforce passwords on all public shares." introductionVersion:"5.0"`
|
||||
EnableExpiredSharesCleanup bool `yaml:"enable_expired_shares_cleanup"`
|
||||
EnableExpiredSharesCleanup bool `yaml:"enable_expired_shares_cleanup" env:"OCIS_SHARING_ENABLE_EXPIRED_SHARES_CLEANUP;SHARING_ENABLE_EXPIRED_SHARES_CLEANUP" desc:"Enable the periodic removal of expired public shares. When disabled, expired shares are still hidden from listings but never actually deleted." introductionVersion:"8.3.0"`
|
||||
JanitorRunInterval int `yaml:"janitor_run_interval" env:"OCIS_SHARING_JANITOR_RUN_INTERVAL;SHARING_JANITOR_RUN_INTERVAL" desc:"Interval in seconds between two runs of the janitor that permanently deletes expired public shares. Defaults to '3600' (1 hour). Only relevant when OCIS_SHARING_ENABLE_EXPIRED_SHARES_CLEANUP is enabled." introductionVersion:"8.3.0"`
|
||||
EnableUserSharing bool `yaml:"enable_user_sharing" env:"OCIS_ENABLE_USER_SHARING" desc:"Enables direct sharing with users and groups. When disabled, creating new user or group shares is rejected. Public link sharing is not affected." introductionVersion:"8.2.0"`
|
||||
EnablePublicSharing bool `yaml:"enable_public_sharing" env:"OCIS_ENABLE_PUBLIC_SHARING" desc:"Enables public link sharing. When disabled, creating new public links is rejected. Direct sharing with users and groups is not affected." introductionVersion:"8.2.0"`
|
||||
PasswordPolicy PasswordPolicy `yaml:"password_policy"`
|
||||
|
||||
@@ -77,6 +77,7 @@ func DefaultConfig() *config.Config {
|
||||
EnableTLS: false,
|
||||
},
|
||||
EnableExpiredSharesCleanup: true,
|
||||
JanitorRunInterval: 3600,
|
||||
PublicShareMustHavePassword: true,
|
||||
EnableUserSharing: true,
|
||||
EnablePublicSharing: true,
|
||||
|
||||
@@ -125,6 +125,7 @@ func SharingConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string]
|
||||
"service_user_idp": cfg.PublicSharingDrivers.JSONCS3.SystemUserIDP,
|
||||
"machine_auth_apikey": cfg.PublicSharingDrivers.JSONCS3.SystemUserAPIKey,
|
||||
"enable_expired_shares_cleanup": cfg.EnableExpiredSharesCleanup,
|
||||
"janitor_run_interval": cfg.JanitorRunInterval,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -36,7 +36,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
cfg.GrpcClient, err = ogrpc.NewClient(ogrpc.GetClientOptions(cfg.GRPCClientTLS)...)
|
||||
cfg.GrpcClient, err = ogrpc.NewClient(append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithKeepaliveParams(cfg.GRPCClientOptions))...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -21,8 +21,9 @@ type Config struct {
|
||||
GRPC GRPCConfig `yaml:"grpc"`
|
||||
HTTP HTTP `yaml:"http"`
|
||||
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
|
||||
Thumbnail Thumbnail `yaml:"thumbnail"`
|
||||
|
||||
|
||||
@@ -90,6 +90,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
if cfg.GRPC.TLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPC.TLS = structs.CopyOrZeroValue(cfg.Commons.GRPCServiceTLS)
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
|
||||
grpcClient, err := ogrpc.NewClient(
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithTraceProvider(tracerProvider))...,
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS), ogrpc.WithKeepaliveParams(cfg.GRPCClientOptions), ogrpc.WithTraceProvider(tracerProvider))...,
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -17,8 +17,9 @@ type Config struct {
|
||||
Log *Log `yaml:"log"`
|
||||
Debug Debug `yaml:"debug"`
|
||||
|
||||
HTTP HTTP `yaml:"http"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
HTTP HTTP `yaml:"http"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
|
||||
TokenManager *TokenManager `yaml:"token_manager"`
|
||||
|
||||
@@ -40,11 +41,11 @@ type Config struct {
|
||||
|
||||
// Persistence configures the store to use
|
||||
type Persistence struct {
|
||||
Store string `yaml:"store" env:"OCIS_PERSISTENT_STORE;USERLOG_STORE" desc:"The type of the store. Supported values are: 'memory', 'nats-js-kv', 'redis-sentinel', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;USERLOG_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"USERLOG_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"USERLOG_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;USERLOG_STORE_TTL" desc:"Time to live for events in the store. Defaults to '336h' (2 weeks). See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Store string `yaml:"store" env:"OCIS_PERSISTENT_STORE;USERLOG_STORE" desc:"The type of the store. Supported values are: 'memory', 'nats-js-kv', 'redis-sentinel', 'noop'. See the text description for details." introductionVersion:"pre5.0"`
|
||||
Nodes []string `yaml:"nodes" env:"OCIS_PERSISTENT_STORE_NODES;USERLOG_STORE_NODES" desc:"A list of nodes to access the configured store. This has no effect when 'memory' store is configured. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
Database string `yaml:"database" env:"USERLOG_STORE_DATABASE" desc:"The database name the configured store should use." introductionVersion:"pre5.0"`
|
||||
Table string `yaml:"table" env:"USERLOG_STORE_TABLE" desc:"The database table the store should use." introductionVersion:"pre5.0"`
|
||||
TTL time.Duration `yaml:"ttl" env:"OCIS_PERSISTENT_STORE_TTL;USERLOG_STORE_TTL" desc:"Time to live for events in the store. Defaults to '336h' (2 weeks). See the Environment Variable Types description for more details." introductionVersion:"pre5.0"`
|
||||
AuthUsername string `yaml:"username" env:"OCIS_PERSISTENT_STORE_AUTH_USERNAME;USERLOG_STORE_AUTH_USERNAME" desc:"The username to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
AuthPassword string `yaml:"password" env:"OCIS_PERSISTENT_STORE_AUTH_PASSWORD;USERLOG_STORE_AUTH_PASSWORD" desc:"The password to authenticate with the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"5.0"`
|
||||
EnableTLS bool `yaml:"enable_tls" env:"OCIS_PERSISTENT_STORE_ENABLE_TLS;USERLOG_STORE_ENABLE_TLS" desc:"Activate TLS for the connection to the store. Only applies when store type 'nats-js-kv' is configured." introductionVersion:"8.3.0"`
|
||||
|
||||
@@ -73,6 +73,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
|
||||
if cfg.TokenManager == nil && cfg.Commons != nil && cfg.Commons.TokenManager != nil {
|
||||
cfg.TokenManager = &config.TokenManager{
|
||||
|
||||
@@ -471,7 +471,11 @@ func composeMessage(nt NotificationTemplate, locale, defaultLocale, path string,
|
||||
|
||||
func loadTemplates(nt NotificationTemplate, locale, defaultLocale, path string) (string, string) {
|
||||
t := l10n.NewTranslatorFromCommonConfig(defaultLocale, _domain, path, _translationFS, "l10n/locale").Locale(locale)
|
||||
return t.Get(nt.Subject), t.Get(nt.Message)
|
||||
// nt.Subject and nt.Message are translation lookup keys, not printf format strings;
|
||||
// go vet's non-constant format string check can't trace through a func value, so
|
||||
// assign Get to a local before calling it to avoid a false positive.
|
||||
get := t.Get
|
||||
return get(nt.Subject), get(nt.Message)
|
||||
}
|
||||
|
||||
func executeTemplate(raw string, vars map[string]interface{}) (string, error) {
|
||||
|
||||
@@ -36,6 +36,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
cfg.GrpcClient, err = ogrpc.NewClient(
|
||||
append(ogrpc.GetClientOptions(cfg.GRPCClientTLS),
|
||||
ogrpc.WithKeepaliveParams(cfg.GRPCClientOptions),
|
||||
ogrpc.WithTraceProvider(traceProvider),
|
||||
)...)
|
||||
if err != nil {
|
||||
|
||||
@@ -17,8 +17,9 @@ type Config struct {
|
||||
Log *Log `yaml:"log"`
|
||||
Debug Debug `yaml:"debug"`
|
||||
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
GRPCClientTLS *shared.GRPCClientTLS `yaml:"grpc_client_tls"`
|
||||
GRPCClientOptions *shared.GRPCClientOptions `yaml:"grpc_client_options"`
|
||||
GrpcClient client.Client `yaml:"-"`
|
||||
|
||||
HTTP HTTP `yaml:"http"`
|
||||
|
||||
|
||||
@@ -73,6 +73,9 @@ func EnsureDefaults(cfg *config.Config) {
|
||||
if cfg.GRPCClientTLS == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientTLS = structs.CopyOrZeroValue(cfg.Commons.GRPCClientTLS)
|
||||
}
|
||||
if cfg.GRPCClientOptions == nil && cfg.Commons != nil {
|
||||
cfg.GRPCClientOptions = structs.CopyOrZeroValue(cfg.Commons.GRPCClientOptions)
|
||||
}
|
||||
|
||||
if cfg.Commons != nil {
|
||||
cfg.HTTP.TLS = cfg.Commons.HTTPServiceTLS
|
||||
|
||||
vendor/github.com/owncloud/reva/v2/internal/grpc/services/publicshareprovider/publicshareprovider.go
Generated
Vendored
+10
-2
@@ -100,10 +100,18 @@ func getShareManager(c *config) (publicshare.Manager, error) {
|
||||
return nil, errtypes.NotFound("driver not found: " + c.Driver)
|
||||
}
|
||||
|
||||
// TODO(labkode): add ctx to Close.
|
||||
func (s *service) Close() error {
|
||||
return nil
|
||||
cm, ok := s.sm.(publicshare.ClosableManager)
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
defer cancel()
|
||||
|
||||
return cm.Close(ctx)
|
||||
}
|
||||
|
||||
func (s *service) UnprotectedEndpoints() []string {
|
||||
return []string{"/cs3.sharing.link.v1beta1.LinkAPI/GetPublicShareByToken"}
|
||||
}
|
||||
|
||||
Generated
Vendored
+12
-11
@@ -21,17 +21,18 @@ type Config struct {
|
||||
Timeout int64 `mapstructure:"timeout"`
|
||||
Insecure bool `mapstructure:"insecure"`
|
||||
// If true, HTTP COPY will expect the HTTP-TPC (third-party copy) headers
|
||||
EnableHTTPTpc bool `mapstructure:"enable_http_tpc"`
|
||||
PublicURL string `mapstructure:"public_url"`
|
||||
FavoriteStorageDriver string `mapstructure:"favorite_storage_driver"`
|
||||
FavoriteStorageDrivers map[string]map[string]interface{} `mapstructure:"favorite_storage_drivers"`
|
||||
Version string `mapstructure:"version"`
|
||||
VersionString string `mapstructure:"version_string"`
|
||||
Edition string `mapstructure:"edition"`
|
||||
Product string `mapstructure:"product"`
|
||||
ProductName string `mapstructure:"product_name"`
|
||||
ProductVersion string `mapstructure:"product_version"`
|
||||
AllowPropfindDepthInfinitiy bool `mapstructure:"allow_depth_infinity"`
|
||||
EnableHTTPTpc bool `mapstructure:"enable_http_tpc"`
|
||||
PublicURL string `mapstructure:"public_url"`
|
||||
FavoriteStorageDriver string `mapstructure:"favorite_storage_driver"`
|
||||
FavoriteStorageDrivers map[string]map[string]interface{} `mapstructure:"favorite_storage_drivers"`
|
||||
Version string `mapstructure:"version"`
|
||||
VersionString string `mapstructure:"version_string"`
|
||||
Edition string `mapstructure:"edition"`
|
||||
Product string `mapstructure:"product"`
|
||||
ProductName string `mapstructure:"product_name"`
|
||||
ProductVersion string `mapstructure:"product_version"`
|
||||
AllowPropfindDepthInfinitiy bool `mapstructure:"allow_depth_infinity"`
|
||||
DisablePropfindPublicLinkResolution bool `mapstructure:"disable_propfind_public_link_resolution"`
|
||||
|
||||
TransferSharedSecret string `mapstructure:"transfer_shared_secret"`
|
||||
|
||||
|
||||
Generated
Vendored
+58
-34
@@ -22,6 +22,7 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
stderr "errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
@@ -454,42 +455,14 @@ func (p *Handler) propfindResponse(ctx context.Context, w http.ResponseWriter, r
|
||||
defer span.End()
|
||||
|
||||
var linkshares map[string]struct{}
|
||||
// public link access does not show share-types
|
||||
// oc:share-type is not part of an allprops response
|
||||
if namespace != "/public" {
|
||||
// only fetch this if property was queried
|
||||
for _, prop := range pf.Prop {
|
||||
if prop.Space == net.NsOwncloud && (prop.Local == "share-types" || prop.Local == "permissions") {
|
||||
filters := make([]*link.ListPublicSharesRequest_Filter, 0, len(resourceInfos))
|
||||
for i := range resourceInfos {
|
||||
// FIXME this is expensive
|
||||
// the filters array grow by one for every file in a folder
|
||||
// TODO store public links as grants on the storage, reassembling them here is too costly
|
||||
// we can then add the filter if the file has share-types=3 in the opaque,
|
||||
// same as user / group shares for share indicators
|
||||
filters = append(filters, publicshare.ResourceIDFilter(resourceInfos[i].Id))
|
||||
}
|
||||
client, err := p.selector.Next()
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("error getting grpc client")
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
listResp, err := client.ListPublicShares(ctx, &link.ListPublicSharesRequest{Filters: filters})
|
||||
if err == nil {
|
||||
linkshares = make(map[string]struct{}, len(listResp.Share))
|
||||
for i := range listResp.Share {
|
||||
linkshares[listResp.Share[i].ResourceId.OpaqueId] = struct{}{}
|
||||
}
|
||||
} else {
|
||||
log.Error().Err(err).Msg("propfindResponse: couldn't list public shares")
|
||||
span.SetStatus(codes.Error, err.Error())
|
||||
}
|
||||
break
|
||||
}
|
||||
if !p.c.DisablePropfindPublicLinkResolution {
|
||||
var err error
|
||||
linkshares, err = p.resolveLinkshares(ctx, namespace, pf, resourceInfos, log)
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
prefer := net.ParsePrefer(r.Header.Get(net.HeaderPrefer))
|
||||
returnMinimal := prefer[net.HeaderPreferReturn] == "minimal"
|
||||
|
||||
@@ -522,6 +495,57 @@ func (p *Handler) propfindResponse(ctx context.Context, w http.ResponseWriter, r
|
||||
}
|
||||
}
|
||||
|
||||
// resolveLinkshares resolves the link shares for the given resource infos
|
||||
func (p *Handler) resolveLinkshares(ctx context.Context, namespace string, pf XML, resourceInfos []*provider.ResourceInfo, log zerolog.Logger) (map[string]struct{}, error) {
|
||||
ctx, span := appctx.GetTracerProvider(ctx).Tracer(tracerName).Start(ctx, "resolveLinkshares")
|
||||
defer span.End()
|
||||
var linkshares map[string]struct{}
|
||||
// public link access does not show share-types
|
||||
// oc:share-type is not part of an allprops response
|
||||
if namespace != "/public" {
|
||||
localCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
|
||||
defer cancel()
|
||||
// only fetch this if property was queried
|
||||
for _, prop := range pf.Prop {
|
||||
if err := localCtx.Err(); err != nil {
|
||||
if stderr.Is(err, context.DeadlineExceeded) {
|
||||
log.Info().Err(err).Msg("resolveLinkshares: deadline exceeded")
|
||||
span.SetStatus(codes.Error, err.Error())
|
||||
}
|
||||
break
|
||||
}
|
||||
if prop.Space == net.NsOwncloud && (prop.Local == "share-types" || prop.Local == "permissions") {
|
||||
filters := make([]*link.ListPublicSharesRequest_Filter, 0, len(resourceInfos))
|
||||
for i := range resourceInfos {
|
||||
// FIXME this is expensive
|
||||
// the filters array grow by one for every file in a folder
|
||||
// TODO store public links as grants on the storage, reassembling them here is too costly
|
||||
// we can then add the filter if the file has share-types=3 in the opaque,
|
||||
// same as user / group shares for share indicators
|
||||
filters = append(filters, publicshare.ResourceIDFilter(resourceInfos[i].Id))
|
||||
}
|
||||
client, err := p.selector.Next()
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("error getting grpc client")
|
||||
return nil, err
|
||||
}
|
||||
listResp, err := client.ListPublicShares(localCtx, &link.ListPublicSharesRequest{Filters: filters})
|
||||
if err == nil {
|
||||
linkshares = make(map[string]struct{}, len(listResp.Share))
|
||||
for i := range listResp.Share {
|
||||
linkshares[listResp.Share[i].ResourceId.OpaqueId] = struct{}{}
|
||||
}
|
||||
} else {
|
||||
log.Error().Err(err).Msg("propfindResponse: couldn't list public shares")
|
||||
span.SetStatus(codes.Error, err.Error())
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
return linkshares, nil
|
||||
}
|
||||
|
||||
// TODO this is just a stat -> rename
|
||||
func (p *Handler) statSpace(ctx context.Context, ref *provider.Reference, metadataKeys, fieldMaskPaths []string) (*provider.ResourceInfo, *rpc.Status, error) {
|
||||
client, err := p.selector.Next()
|
||||
|
||||
Loaded 100 of 235 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user