feat(formsg-sdk): well-known jwks #8002
Open
+49
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
We want to host jwks that will be used by formsg-sdk to verify the encrypted content. This is to part of the FormSG SDK key rotation initiatives. The actual heavy lifting of fetching and parsing of keys is under the formsg-sdk repo.
Closes FRM-1922
Solution
JWKS content is hosted on SSM so that we have proper versioning and quick deployment without rebuilding our codebase. We can now update SSM and redeploy for the change to take effect.
Notes: Removed
.well-known
from static host (which retrieves the static files from s3). There's nothing hosted there. To better control data expiry / cache, it is better to host it through BE.Breaking Changes
Tests
Deploy Notes
/{ENV_TYPE/*
on appropriate platform