-
Notifications
You must be signed in to change notification settings - Fork 44
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
Alb jwt verifier #190
Draft
NicolasViaud
wants to merge
18
commits into
awslabs:main
Choose a base branch
from
NicolasViaud:alb-jwt-verifier
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Alb jwt verifier #190
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e7bd154
add the alb verifier and alb cache
NicolasViaud abaa61b
add default jwks uri + add unit tests
NicolasViaud 8678e7d
run prettier and linter
NicolasViaud c4e4443
add e2e tests. All e2e tests OK
NicolasViaud 7db9273
type Alb JWT Header and Payload
NicolasViaud 2c79a0d
add region check
NicolasViaud 3de4328
set albArn mandatory
NicolasViaud b9b3fcb
reach 100% test coverage for alb-cache.ts
NicolasViaud bb711e6
fix cypress test during CI/CD
NicolasViaud 09688d9
add alb arn param verification mandatory for alb-verifier
NicolasViaud 6d3abb1
Run linter and prettier
NicolasViaud aa61492
Rename AwsAlbJwksCache to AlbJwksCache to be coherent with the rest o…
NicolasViaud d2ec0f2
Clean penalitybox comment in alb cache
NicolasViaud 9c6ef0e
Change alb arn validation rules:
NicolasViaud f1439ae
add code review comments - first part
NicolasViaud 8a5242b
add code review comments - second part
NicolasViaud d1b542e
fix crypto import for web in alb cache. add transformPemToJwk functio…
NicolasViaud 211ba75
transformPemToJwk implementation for web + revert usage "sign" to "ve…
NicolasViaud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add region check
add unit test for alb-verifier.ts (reach 100% coverage)
- Loading branch information
commit 2c79a0d5c89f46852e812a4870283d27a348364f
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
This file has a lot of lines :)
Are all these tests necessary to reach 100% coverage? Maybe they are
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.
Yes, indeed :)
There is probably more than 100% coverage because I try to test more real use cases rather than wanted to do just the 100% lines coverage.
I can remove some unit test in order to reach just the 100% coverage, if you think that it will require too much effort to maintain them in the future. Remove test is definitely something simpler than create :)
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.
I haven't looked closely at this file yet, the size of it was kinda holding me off haha. Will take a closer look and have a more informed opinion.
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.
Yes, I totally understand and sorry about that.
Most of the tests are inspired from other verifiers, even in the name and in the structure, so it should be familiar.
I add also some test, and trying the same structure aswell (hierarchy of describe function)