-
Notifications
You must be signed in to change notification settings - Fork 162
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 circular lookup when AS cert not found. #3197
Conversation
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.
Reviewed 2 of 2 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved
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.
Reviewable status: complete! all files reviewed, all discussions resolved
2a8004c
to
5403795
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.
Reviewed 2 of 2 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
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.
Reviewed 1 of 1 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @kormat)
go/lib/infra/modules/trust/trust.go, line 226 at r3 (raw file):
// XXX(kormat): Wrap ErrMissingAuthoritative with ErrNotFoundLocally to // simplify logic in LoadAuthoritativeTRC return nil, serrors.Wrap(ErrNotFoundLocally,
Why not serrors.Wrap(ErrNotFoundLocally, ErrMissingAuthoritative, "isd"...)
?
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @kormat)
go/lib/infra/modules/trust/trust.go, line 226 at r3 (raw file):
Previously, Oncilla wrote…
Why not
serrors.Wrap(ErrNotFoundLocally, ErrMissingAuthoritative, "isd"...)
?
Or rather the other way around: serrors.Wrap(ErrMissingAuthoritative, ErrNotFoundLocally, "isd"...)
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.
Reviewed 1 of 1 files at r4.
Reviewable status: complete! all files reviewed, all discussions resolved
This also changes the logic for determining if the trust store is authoritative or not for a given query. The rules are: - A CS is authoritative for certs for its own AS. - A core CS is authoritative for all AS certs in the local ISD. - A core CS is authoritative for TRCs for the local ISD. - Any non-CS infra instance is required to have _a_ version of its own cert. Also: - Make logging/errors a bit more consistent/useful in getChain.
653dc55
to
73977c2
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.
Reviewable status: complete! all files reviewed, all discussions resolved
Fixes #3194
This also changes the logic for determining if the trust store is
authoritative or not for a given query. The rules are:
Also:
This change is