Commit Graph

95 Commits

Author SHA1 Message Date
Willy Kloucek
55bf175bea move config parsing in separate package for each service 2022-01-03 15:21:56 +01:00
Willy Kloucek
e0656daaa0 simplify commands and version handling 2022-01-03 13:53:27 +01:00
Willy Kloucek
6d0b754a86 improve envdecode error handling 2022-01-03 09:47:52 +01:00
Willy Kloucek
e3bfb66df1 maintain envdecode inside ocis-pkg 2022-01-03 07:49:25 +01:00
Willy Kloucek
2bcd4f5a17 directly pass env to config 2022-01-03 07:49:24 +01:00
Willy Kloucek
7abcf96ea8 revert storage, remove tracing.service and bring back common 2022-01-03 07:49:24 +01:00
Willy Kloucek
ee57288309 switch all other services to struct tag based env config 2022-01-03 07:49:24 +01:00
Willy Kloucek
6206fe2398 add missing commands and unify service / namespace options 2022-01-03 07:49:23 +01:00
A.Unger
e3e3d1ee57 runtime: removed trap goroutine and let the context cancelation do the thing 2021-12-06 12:11:48 +01:00
A.Unger
c22d3fc24d prevent gookit/config to merge proxy values with default values 2021-11-18 11:44:08 +01:00
A.Unger
f87b5bd66c removed all flagset packages 2021-11-17 11:36:28 +01:00
A.Unger
d23ab5a01a Merge branch 'master' into try-gookikt-config 2021-11-15 19:38:05 +01:00
Willy Kloucek
7dca7b4fae set only user oidc claim only if cs3 claim is userid 2021-11-15 10:31:07 +01:00
A.Unger
6391d94516 glauth 2021-11-11 13:14:19 +01:00
A.Unger
aa67106e04 sane common configurations 2021-11-11 12:51:57 +01:00
Willy Kloucek
d05df2f85e fix basic auth with custom user claim 2021-11-11 11:43:10 +01:00
A.Unger
2dd9a7b14c new config framework in proxy 2021-11-08 13:32:58 +01:00
A.Unger
e8b9186ba3 normalize glauth 2021-11-08 12:01:08 +01:00
A.Unger
0e9b6d8c52 fix log inheritance 2021-11-08 11:35:41 +01:00
A.Unger
74dae6dad9 add ocis-pkg/config default config + fix logging inheritance 2021-11-08 11:14:26 +01:00
A.Unger
6f27c1a100 refactor env unbinding to ocis-pkg 2021-11-07 20:52:36 +01:00
A.Unger
e858fa0188 define ocis_url as a shared option in ocis-pkg/config 2021-11-04 12:58:18 +01:00
A.Unger
4194da4e88 add ocis.yaml 2021-11-04 10:53:40 +01:00
A.Unger
90844c5c84 first draft of config loading exclusively using env vars 2021-11-03 14:46:38 +01:00
A.Unger
09195ffc8c use reflection to set config values from environment 2021-11-03 11:34:56 +01:00
A.Unger
ab1703c2e8 refactor around config parsing 2021-11-02 14:20:07 +01:00
A.Unger
7df000d06f parse config regardless of supervised / unsupervised 2021-10-31 00:30:48 +02:00
A.Unger
711acbb354 inherit logging config from ocis.yaml, let extensions overwrite their logging. Considering using a package level global logging... 2021-10-31 00:08:46 +02:00
A.Unger
998df71ae3 poors man struct inheritance and perpetuity 2021-10-29 23:41:41 +02:00
A.Unger
94aeefb7fd first examples of config parsing 2021-10-29 16:15:35 +02:00
A.Unger
34253fcae2 remove flagset on proxy, use default config values 2021-10-29 11:51:08 +02:00
David Christofas
c88824e7a0 run the public share auth middleware after the create home middleware
The x-access-token for public shares is scoped for only the share. That means create home would fail because the token is not valid.
2021-10-15 16:48:47 +02:00
David Christofas
5713fe81a4 add public share auth middleware 2021-10-15 16:48:43 +02:00
Willy Kloucek
68ba24ff73 fix extensions versions 2021-10-05 12:39:31 +02:00
A.Unger
6166bb5a4c Merge branch 'master' into update-bridge-docs 2021-09-29 12:09:29 +02:00
Willy Kloucek
7b30571aff switch from micro/cli/v2 to urfave/cli/v2, like https://github.com/asim/go-micro/pull/2224 2021-09-27 12:02:55 +02:00
Ishank Arora
c0d029dee3 Mint token after roles injection 2021-09-22 15:41:21 +02:00
Ishank Arora
08c51ee8c8 Use reva's Authenticate method instead of spawning token managers 2021-09-21 15:50:19 +02:00
Ralf Haferkamp
3a42fdc578 Move to go-chi/chi v5 2021-08-24 17:48:37 +02:00
Jörn Friedrich Dreyer
5554c72d9a gotta run
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-08-18 17:22:52 +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
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
A.Unger
b13863b717 refactor traceprovider initialization 2021-08-09 18:03:01 +02:00
A.Unger
2bdd07e41b add test spans 2021-08-06 15:47:46 +02:00
A.Unger
9f96321c1c add tracing middleware to proxy middleware chain 2021-08-06 13:32:25 +02: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
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
1dc7aac6fd proxy access log
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2021-07-14 13:14:27 +00:00