Skip to content
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

Signer usage impacted by default algorithm changes #115

Closed
abn opened this issue Oct 28, 2018 · 4 comments
Closed

Signer usage impacted by default algorithm changes #115

abn opened this issue Oct 28, 2018 · 4 comments

Comments

@abn
Copy link

abn commented Oct 28, 2018

This relates to #111 and #112. We were impacted by the change in default algorithm in our usage of TimestampSigner. The impact is probably lower as the services recovered without intervention and/or any visible user impact. We noticed it due to #112.

Raising this issue to ask if the Signer implementation also needs a fallback digest method defaulting to SHA-512 in order prevent any further breakages.

@joshfriend
Copy link

User of JSONWebSignatureSerializer here, we noticed the change when prod logs started blowing up with BadSignature exceptions being logged. Fortunately, clients just go request a new token from the login endpoint which then uses the HS512 algorithm instead of the old HS256 that used to be the default.

For now, we are just using algorithm_name="HS256" when creating the serializer, but I don't understand why the algorithm isn't inferred from the JWT header.

@joshfriend
Copy link

Oh yeah, the none algorithm 🤦‍♂️

@joshfriend
Copy link

Having educated myself about the alg header, I think that this issue should be closed since the hash algorithm change happened across a major version release and was documented in the changelog.

@davidism
Copy link
Member

1.1 went back to the original settings, 1.0 was yanked, so except for in that window during the initial 1.0 release, installing will get a release that doesn't break things. If you do need to upgrade, you can use a shim similar to #120 (comment).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants