From 3847de2bdf16061d6befb81e22d1ec69d18d343e Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Mon, 8 Aug 2022 13:43:17 +0000 Subject: [PATCH] commit 03c63380da6f9632370430c4ab2680b2322d9cc4 Merge: 98769cce0 205f87f98 Author: Michael Barz Date: Mon Aug 8 15:36:34 2022 +0200 Merge pull request #4346 from wkloucek/rewrite-oidc-well-known add middleware to rewrite the /.well-known/openid-configuration endpoint for external idps --- grpc_apis/ocis/messages/search/v0/grpc.md | 2 +- grpc_apis/ocis/messages/settings/v0/grpc.md | 2 +- grpc_apis/ocis/messages/store/v0/grpc.md | 2 +- grpc_apis/ocis/messages/thumbnails/v0/grpc.md | 2 +- grpc_apis/ocis/services/search/v0/grpc.md | 2 +- grpc_apis/ocis/services/settings/v0/grpc.md | 2 +- grpc_apis/ocis/services/store/v0/grpc.md | 2 +- grpc_apis/ocis/services/thumbnails/v0/grpc.md | 2 +- services/_includes/adoc/proxy_configvars.adoc | 8 ++++++++ services/_includes/proxy-config-example.yaml | 1 + services/_includes/proxy_configvars.md | 1 + 11 files changed, 18 insertions(+), 8 deletions(-) diff --git a/grpc_apis/ocis/messages/search/v0/grpc.md b/grpc_apis/ocis/messages/search/v0/grpc.md index de2a5cc1f5a..5c21d9bfeae 100644 --- a/grpc_apis/ocis/messages/search/v0/grpc.md +++ b/grpc_apis/ocis/messages/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.search.v0" url: /grpc_apis/ocis_messages_search_v0 -date: 2022-08-08T12:47:20Z +date: 2022-08-08T13:42:21Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/settings/v0/grpc.md b/grpc_apis/ocis/messages/settings/v0/grpc.md index 6a255d3f840..34f00f051e8 100644 --- a/grpc_apis/ocis/messages/settings/v0/grpc.md +++ b/grpc_apis/ocis/messages/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.settings.v0" url: /grpc_apis/ocis_messages_settings_v0 -date: 2022-08-08T12:47:20Z +date: 2022-08-08T13:42:21Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/store/v0/grpc.md b/grpc_apis/ocis/messages/store/v0/grpc.md index 7bd03038972..ee1f0a8ccd0 100644 --- a/grpc_apis/ocis/messages/store/v0/grpc.md +++ b/grpc_apis/ocis/messages/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.store.v0" url: /grpc_apis/ocis_messages_store_v0 -date: 2022-08-08T12:47:20Z +date: 2022-08-08T13:42:21Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md index 3dd47233e68..6d9bf10b33f 100644 --- a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.thumbnails.v0" url: /grpc_apis/ocis_messages_thumbnails_v0 -date: 2022-08-08T12:47:20Z +date: 2022-08-08T13:42:21Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/search/v0/grpc.md b/grpc_apis/ocis/services/search/v0/grpc.md index 02471c31e1a..d9575602af1 100644 --- a/grpc_apis/ocis/services/search/v0/grpc.md +++ b/grpc_apis/ocis/services/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.search.v0" url: /grpc_apis/ocis_services_search_v0 -date: 2022-08-08T12:47:20Z +date: 2022-08-08T13:42:21Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/settings/v0/grpc.md b/grpc_apis/ocis/services/settings/v0/grpc.md index 189f85d5dc0..f2cba33ce0f 100644 --- a/grpc_apis/ocis/services/settings/v0/grpc.md +++ b/grpc_apis/ocis/services/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.settings.v0" url: /grpc_apis/ocis_services_settings_v0 -date: 2022-08-08T12:47:20Z +date: 2022-08-08T13:42:21Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/store/v0/grpc.md b/grpc_apis/ocis/services/store/v0/grpc.md index 97d9fb2a7b6..0ed246a2adc 100644 --- a/grpc_apis/ocis/services/store/v0/grpc.md +++ b/grpc_apis/ocis/services/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.store.v0" url: /grpc_apis/ocis_services_store_v0 -date: 2022-08-08T12:47:20Z +date: 2022-08-08T13:42:21Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/thumbnails/v0/grpc.md b/grpc_apis/ocis/services/thumbnails/v0/grpc.md index e662399c538..4edf93a619c 100644 --- a/grpc_apis/ocis/services/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/services/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.thumbnails.v0" url: /grpc_apis/ocis_services_thumbnails_v0 -date: 2022-08-08T12:47:20Z +date: 2022-08-08T13:42:20Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/services/_includes/adoc/proxy_configvars.adoc b/services/_includes/adoc/proxy_configvars.adoc index 5594f62c158..da3ee0a3a63 100644 --- a/services/_includes/adoc/proxy_configvars.adoc +++ b/services/_includes/adoc/proxy_configvars.adoc @@ -234,6 +234,14 @@ pass:[true] a| [subs=-attributes] If set to 'true', the JWKS refresh request will occur every time an unknown KEY ID (KID) is seen. Always set a 'refresh_limit' when enabling this. +|`PROXY_OIDC_REWRITE_WELLKNOWN` +a| [subs=-attributes] ++bool+ +a| [subs=-attributes] +pass:[false] +a| [subs=-attributes] +Enables rewriting the /.well-known/openid-configuration to the configured OIDC issuer. Needed by the Desktop Client, Android Client and iOS Client to discover the OIDC provider. + |`OCIS_JWT_SECRET` + `PROXY_JWT_SECRET` a| [subs=-attributes] diff --git a/services/_includes/proxy-config-example.yaml b/services/_includes/proxy-config-example.yaml index 66cf10b9ad5..1937bc8dab5 100644 --- a/services/_includes/proxy-config-example.yaml +++ b/services/_includes/proxy-config-example.yaml @@ -95,6 +95,7 @@ oidc: refresh_timeout: 10 refresh_limit: 60 refresh_unknown_kid: true + rewrite_well_known: false token_manager: jwt_secret: "" policy_selector: diff --git a/services/_includes/proxy_configvars.md b/services/_includes/proxy_configvars.md index 05b33793db7..0190b4e0a64 100644 --- a/services/_includes/proxy_configvars.md +++ b/services/_includes/proxy_configvars.md @@ -29,6 +29,7 @@ | PROXY_OIDC_JWKS_REFRESH_TIMEOUT | uint64 | 10 | The timeout in seconds for an outgoing JWKS request.| | PROXY_OIDC_JWKS_REFRESH_RATE_LIMIT | uint64 | 60 | Limits the rate in seconds at which refresh requests are performed for unknown keys. This is used to prevent malicious clients from imposing high network load on the IDP via ocis.| | PROXY_OIDC_JWKS_REFRESH_UNKNOWN_KID | bool | true | If set to 'true', the JWKS refresh request will occur every time an unknown KEY ID (KID) is seen. Always set a 'refresh_limit' when enabling this.| +| PROXY_OIDC_REWRITE_WELLKNOWN | bool | false | Enables rewriting the /.well-known/openid-configuration to the configured OIDC issuer. Needed by the Desktop Client, Android Client and iOS Client to discover the OIDC provider.| | OCIS_JWT_SECRET
PROXY_JWT_SECRET | string | | The secret to mint and validate JWT tokens.| | PROXY_ENABLE_PRESIGNEDURLS | bool | true | Allow OCS to get a signing key to sign requests.| | PROXY_ACCOUNT_BACKEND_TYPE | string | cs3 | Account backend the PROXY service should use. Currently only 'cs3' is possible here.|