Closed andrewazores closed 1 month ago
@mwangggg @aali309 ping
/build_test
Workflow started at 6/5/2024, 9:31:47 AM. View Actions Run.
No GraphQL schema changes detected.
No OpenAPI schema changes detected.
CI build and push: All tests pass ✅ (JDK17) https://github.com/cryostatio/cryostat3/actions/runs/9385079539
Welcome to Cryostat3! 👋
Before contributing, make sure you have:
main
branch[chore, ci, docs, feat, fix, test]
To recreate commits with GPG signature
git fetch upstream && git rebase --force --gpg-sign upstream/main
Related to #489
Description of the change:
If the
X-Forwarded-User
header is present in the request, use this to populate thePOST /api/v2.1/auth
response. This header may be provided to Cryostat by its auth proxy. If there is no such header (there is no proxy, or the proxy doesn't send this) then the empty string is used.Motivation for the change:
This may allow Cryostat to inform the client of the username that was provided to the auth proxy. In the case of the web-client this can be used to include the user's username in the application UI.
How to manually test:
oauth2_proxy
docs claim that theX-Forwarded-User
header should be passed, but this may not be the case when using alpha configuration? It doesn't seem that it actually gets passed with any proxy configuration I try.