-
Notifications
You must be signed in to change notification settings - Fork 312
certificate verification improvements #1122
Conversation
@@ -94,8 +102,19 @@ func (v *Verifier) VerifyDiagnosisCertificate(ctx context.Context, authApp *aamo | |||
return nil, err | |||
} | |||
|
|||
if cacheVal == nil { |
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 should never happen? I don't think we cache nil values.
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.
See line 93 - the primary lookup function can return nil
as a valid cached value now
the in memory cache implementation allows it.
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
@mikehelmick can you create an issue to remove this in the next release and block it on that milestone so we don't forget?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikehelmick, sethvargo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #1121
Proposed Changes
Release Note