-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[confighttp] Add option to include query params in auth context (#10445)
This PR adds a new option to the ServerConfig's Auth option, allowing users to specify a list of query parameters to add to the sources of auth data, in addition to HTTP headers. Instead of simply adding all parameters, which might be numeruous, we require users to specify which ones to include. Auth extensions don't need to be changed, but should document which attributes they expect to find in the context and how to configure confighttp to accomplish that. Fixes #4806 Signed-off-by: Juraci Paixão Kröhling <[email protected]> --------- Signed-off-by: Juraci Paixão Kröhling <[email protected]>
- Loading branch information
1 parent
e590ed1
commit 7d5b1ba
Showing
7 changed files
with
105 additions
and
20 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.chloggen/jpkroehling-add-query-params-to-authcontext-api.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
change_type: 'enhancement' | ||
component: confighttp | ||
note: Add option to include query params in auth context | ||
issues: [4806] |
10 changes: 10 additions & 0 deletions
10
.chloggen/jpkroehling-add-query-params-to-authcontext.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
change_type: 'breaking' | ||
component: confighttp | ||
note: Auth data type signature has changed | ||
subtext: | | ||
As part of the linked PR, the `auth` attribute was moved from `configauth.Authentication` | ||
to a new `AuthConfig`, which contains a `configauth.Authentication`. For end-users, this | ||
is a non-breaking change. For users of the API, create a new AuthConfig using the | ||
`configauth.Authentication` instance that was being used before. | ||
issues: [4806] | ||
change_logs: [api] |
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
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