-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auth: add region-based callback URLs for OIDC
Modifies `server.oidc_authentication.redirect_url` cluster setting to accept valid JSON strings with a `redirect_urls` field that can support region-based OIDC auth flows. In addition to a simple string callback URL, here is an example of valid JSON that this setting can accept: ``` '{ "redirect_urls": { "us-east-1": "https://localhost:8080/oidc/v1/callback", "eu-west-1": "example.com" } }' ``` Prerequisites to using the multi-region callback URLs: 1. `region` locality flag is available and set 2. `server.oidc_authentication.redirect_url` setting is set as valid JSON containing the `redirect_urls` object with a key that matches the `region` locality flag value on this node When prerequisites above are met, the `callback_uri` OAuth param is set to the region-specific value from the JSON setting upon redirect to the auth provider. If you are using region-specific configuration, and do not have the `region` locality set, or try using OIDC in a region without a corresponding entry in the JSON, OIDC will fail to run. If you are using simple string-based configuration of a single redirect URL, OIDC will always use it regardless of your region locality configuration. Be aware that the auth provider will likely need to be updated to know about all possible redirect URLs it may get triggered with. Resolves #56517 Release note (security update): Adds ability to set region-specific callback URLs in the OIDC config. The `server.oidc_authentication.redirect_url` cluster setting can now accept JSON as an alternative to the basic URL string setting. If a JSON value is set, it *must* contain a `redirect_url` key that maps to an object with key, value pairs where the key is a `region` matching an existing locality setting, and the value is a callback URL.
- Loading branch information
1 parent
10ba90c
commit 32e1c77
Showing
8 changed files
with
354 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.