Skip to content

Add kid "key id" header claim to Attempts API JWEs#7189

Merged
zachmargolis merged 2 commits intomainfrom
margolis-attempts-api-kid
Oct 21, 2022
Merged

Add kid "key id" header claim to Attempts API JWEs#7189
zachmargolis merged 2 commits intomainfrom
margolis-attempts-api-kid

Conversation

@zachmargolis
Copy link
Contributor

🎫 Ticket

N/A

🛠 Summary of changes

Adds a Key ID header claim that is in plaintext in the resulting JWE, so it can assist in future key rotations

🚀 Notes for Deployment

Include any special instructions for deployment.

**Why**: To assist in future key rotations
@zachmargolis zachmargolis requested a review from a team October 21, 2022 19:18
changelog: Internal, Attempts API, Add "kid" header claim to assist in key rotation
zip: 'DEF',
alg: 'RSA-OAEP',
enc: 'A256GCM',
kid: JWT::JWK.new(event_data_encryption_key).kid,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will probably allow us to remove the irs_attempt_api_public_key_id parameter later: https://github.com/18F/identity-idp/blob/main/config/application.yml.default#L347

Though that's a breaking schema change so we should hold off.

@zachmargolis zachmargolis merged commit 29da06d into main Oct 21, 2022
@zachmargolis zachmargolis deleted the margolis-attempts-api-kid branch October 21, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants