-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cdh: use b64url encoding in sealed-secrets JWS #794
cdh: use b64url encoding in sealed-secrets JWS #794
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to change the base64 coding alphabet, we need also change the following things to keep it all consistent. Seems that those are STANDARD
for now. Btw is there any reason to change the code alphabet? I am not familiar with the convention of base64.
The base64 encoding and examples in the doc: https://github.com/confidential-containers/guest-components/blob/main/confidential-data-hub/docs/SEALED_SECRET.md
The generation code: https://github.com/confidential-containers/guest-components/blob/main/confidential-data-hub/secret/src/secret/mod.rs#L70
afaik, all of the JW* family use b64-url encoding. some characters in the b64 set are hard to process (e.g. as query params in urls)
thx. will fix the docs. but the generation code should be fixed in this PR, no? |
The payload of the JWS should be encoded/decoded with b64url and no padding. Signed-off-by: Magnus Kulke <[email protected]>
727d1c5
to
79198ba
Compare
Yes, it should be fixed also in the PR imo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mkulke No else found from myside. Sry too as my first glance did not catch the part that you already had fixed. |
The payload of the JWS should be encoded/decoded with b64url and no padding.