Commit Graph

226 Commits

Author SHA1 Message Date
A.Unger 46f0d6f7e4 remove dead code 2021-08-18 14:06:02 +02:00
Alex Unger 06fda516ec Update proxy/pkg/middleware/accesslog.go
Co-authored-by: David Christofas <dchristofas@owncloud.com>
2021-08-18 14:03:19 +02:00
A.Unger 0f0d305f6d linter: fix var name 2021-08-18 11:25:44 +02:00
A.Unger 1dd4644370 fix requestid 2021-08-18 11:10:50 +02:00
A.Unger aac45a46f4 Merge branch 'master' into remake-traces 2021-08-17 13:29:05 +02:00
David Christofas ed85fedf1a update github.com/coreos/go-oidc to version 3.0.0 2021-08-13 09:55:17 +02:00
A.Unger e62a9b6a36 Merge branch 'master' into remake-traces 2021-08-13 09:43:31 +02:00
David Christofas 1cf4594211 Merge pull request #2389 from owncloud/replace-middlewares
use go-chi middlewares
2021-08-12 17:52:04 +02:00
David Christofas eacdb8fa2f Merge pull request #2386 from owncloud/switch-jwt-lib
switch jwt library
2021-08-12 17:24:57 +02:00
David Christofas 3bc60510ce use go-chi middlewares
go-chi already delivers the middlewares we need so we don't need to import other libraries for that.
2021-08-12 17:14:41 +02:00
David Christofas b8150f25b8 switch jwt library
The old library github.com/dgrijalva/jwt-go is now unmaintained and was replaced by the community maintained fork github.com/golang-jwt/jwt
2021-08-12 16:53:17 +02:00
Jörn Friedrich Dreyer 55aacdea13 update reva to ec4099da
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-08-12 11:08:10 +00:00
A.Unger 8499187315 add x-request-id to proxy root span 2021-08-12 12:13:52 +02:00
A.Unger 778ad717df config: add reva required config 2021-08-12 11:18:55 +02:00
A.Unger 8a80b990a8 safer code 2021-08-10 00:09:39 +02:00
A.Unger ad994ded16 more refactoring 2021-08-09 18:15:34 +02:00
A.Unger b13863b717 refactor traceprovider initialization 2021-08-09 18:03:01 +02:00
A.Unger fe530e9a27 prevent having a nil traceprovider 2021-08-09 17:14:36 +02:00
A.Unger 500a77f005 Merge branch 'master' into remake-traces 2021-08-09 15:52:19 +02:00
A.Unger 2bdd07e41b add test spans 2021-08-06 15:47:46 +02:00
Ishank Arora 10b9fee60e Specify primary user type for all accounts 2021-08-06 14:16:34 +02:00
A.Unger 8301a7e7a3 propagate trace from ocs to proxy 2021-08-06 13:46:54 +02:00
A.Unger 9f96321c1c add tracing middleware to proxy middleware chain 2021-08-06 13:32:25 +02:00
A.Unger 9f50776b17 enable traces in proxy 2021-08-06 13:29:40 +02:00
A.Unger 93f13388dd add OCIS_TRACING_* flags to all extensions 2021-08-06 11:51:36 +02:00
Jörn Friedrich Dreyer c3951d67c8 forward basic auth to OpenID connect token authentication endpoint
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-26 11:12:33 +00:00
Jörn Friedrich Dreyer 07bb4a179e clarify cs3 claims
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 09:42:40 +00:00
Jörn Friedrich Dreyer bea986fe26 pass only request instead of context
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 09:03:14 +00:00
Willy Kloucek a0dce56480 use cookie to enforce routing for regex and claim selector 2021-07-23 08:38:55 +00:00
Jörn Friedrich Dreyer cb70f4882f add todo for x-access-header handling
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:33:18 +00:00
Jörn Friedrich Dreyer 5c024b4543 use context from middleware in proxy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:31:10 +00:00
Jörn Friedrich Dreyer 2583c6a1a7 remove comma
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:31:10 +00:00
Jörn Friedrich Dreyer b0c742cb2f fix docs typo
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:31:10 +00:00
Jörn Friedrich Dreyer b540ccdf10 add regex rule priority, drop request from selector signature, add unit tests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:31:10 +00:00
Jörn Friedrich Dreyer 4385d3dacb add RegexSelector
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:22:40 +00:00
Jörn Friedrich Dreyer 40c8031441 add claims policy selector
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-23 08:07:17 +00:00
Jörn Friedrich Dreyer 2293403d45 use errors.Is()
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-22 16:35:31 +00:00
Jörn Friedrich Dreyer 1f3e963c29 use claims map instead of struct
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-22 09:20:36 +00:00
Jörn Friedrich Dreyer b148faada6 Merge pull request #2294 from owncloud/fix-trashbin-expected-failures
Fix Trashbin Expected Failures
2021-07-21 20:59:43 +02:00
A.Unger 74696dbd36 remove redundant line 2021-07-19 13:29:12 +02:00
A.Unger ebb67470dc ignore error explicitly 2021-07-19 11:15:37 +02:00
Jörn Friedrich Dreyer 8c7f1f01ff do not try to add the selected policy to the context
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-14 20:45:38 +00:00
Jörn Friedrich Dreyer 1dc7aac6fd proxy access log
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-14 13:14:27 +00:00
A.Unger 7ab586b2ab proxy is now aware of webdav responses 2021-07-13 15:38:44 +02:00
A.Unger bfdcc0180c fix 230, 231 - first draft 2021-07-13 14:33:24 +02:00
A.Unger ac49348b41 fix 215, 216 - first draft 2021-07-13 14:29:26 +02:00
Ishank Arora 29c5cb627a Update scope usage and add Changes for lightweight accounts 2021-07-13 13:03:06 +02:00
A.Unger cb2323e9d6 Merge branch 'master' into no-additional-init 2021-07-02 13:25:30 +02:00
A.Unger 2e28582c1b cherrypick extensions to start v1 2021-06-29 15:28:19 +02:00
Michael Barz 34e0877df7 Merge pull request #1951 from ishank011/uid-gid-user-object
Use CS3 user object fields to store UID and GID
2021-06-25 10:06:14 +02:00