-
Notifications
You must be signed in to change notification settings - Fork 67
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
fix: enforce host checking before exchanging a refresh token #2069
Conversation
Signed-off-by: Binbin Li <[email protected]>
Codecov ReportAttention: Patch coverage is
|
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.
scope using regex is problematic because ^.*.azurecr.io$
matches maliciou.anotherazurecr.io
since .
does not just mean .
as it means any character.
I'd suggest using wildcard DNS records.
|
||
var predicates []*regexp.Regexp | ||
if len(hostScope) == 0 { | ||
re, err := regexp.Compile("^" + defaultHostScope + "$") |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames
Signed-off-by: Binbin Li <[email protected]>
5a146f9
to
39af35f
Compare
623838f
to
965a1cf
Compare
Signed-off-by: Binbin Li <[email protected]>
965a1cf
to
429f09b
Compare
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 with suggestions
Signed-off-by: Binbin Li <[email protected]>
9966dc2
to
bea6135
Compare
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
Signed-off-by: Binbin Li <[email protected]>
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.
Thanks for the fix
Signed-off-by: Binbin Li <[email protected]>
…2071) Signed-off-by: Binbin Li <[email protected]>
Signed-off-by: Binbin Li <[email protected]>
Signed-off-by: Binbin Li <[email protected]>
…2081) Signed-off-by: Binbin Li <[email protected]>
…2072) Signed-off-by: Binbin Li <[email protected]> Signed-off-by: Akash Singhal <[email protected]> Signed-off-by: Shahram Kalantari <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Akash Singhal <[email protected]> Co-authored-by: Shahram Kalantari <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Description
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when the PR gets merged):Fixes #
Type of change
Please delete options that are not relevant.
main
branch)Checklist:
Post Merge Requirements
Helm Chart Change