This repository has been archived by the owner on Mar 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 185
OIDC auth uses incorrect base64 decoding #65
Comments
hanikesn
added a commit
to flix-tech/python-base
that referenced
this issue
Jun 5, 2018
According to the JWT spec base64 padding characters are stripped. Fixes kubernetes-client#65
@bpicolo, your fix is working, thanks!
|
Is this getting merged into mainline soon? I'm still seeing this error, and I cloned last week. Do we have an ETA there? Thanks. |
We are experiencing the same issue. When will it merged into main line? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We had a customer report the following error with this client:
Which appears to originate from here:
python-base/config/kube_config.py
Line 236 in 789de6a
JWTs aren't encoded using standard base64 encoding, they use URL encoding without the final padding
https://tools.ietf.org/html/rfc7515#section-2
So "hello world" should become
aGVsbG8gd29ybGQ
, notaGVsbG8gd29ybGQ=
https://play.golang.org/p/vFrVzr9uyAQPython's default base64 library doesn't handle this encoding and spits out the same exception our customer's seeing:
The text was updated successfully, but these errors were encountered: