Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openshift authorization proxy: escape header key values
The authorization.openshift.io RBAC proxy is taking values from the Extra field of a UserInfo of a user that made a request against this API. The fields of the map may generally contain values that cannot appear in an HTTP header, like '/' that's commonly separating an API annotation from the API version or resource. Copy the k8s.io header escaping function and use it in the proxy that's handling the OpenShift authorization API.
- Loading branch information
Showing
1 changed file
with
111 additions
and
1 deletion.
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