Forward Auth with Bearer
How to verify the forward-auth-bearer middleware?
Set the
Section titled “Set the”- Apply
forward-auth-bearermiddleware on whoami in the cluster file
whoami: enabled: true auth_middleware: 'forward-auth-bearer' hostname: 'whoami-xxx.nip.io'- Update
kubee helmet -c clusertName play whoami- go to https://whoami-xxx.nip.io
- Grab the Authorization Header
Authorization: Bearer eyJhbGciOiJSU...- Decode the payload at https://jwt.io/. Example:
{ "iss": "https://dex-xxx.nip.io", "sub": "CiQwOGE4Njg0Yi1kYjg4LTRiNzMtOTBhOS0zY2QxNjYxZjU0NjYSBWxvY2Fs", "aud": "oauth2-proxy", "exp": 1739983694, "iat": 1739897294, "at_hash": "HtDam6UvwOt6h07X2-BAkw", "c_hash": "tv4WJTo8QFFBJdKPQEJHLQ", "email": "admin@example.com", "email_verified": true, "name": "admin"}