-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[advancedTLS] Removed deprecated APIs in advancedTLS #7303
[advancedTLS] Removed deprecated APIs in advancedTLS #7303
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.
Please fix the failing tests, otherwise LGTM.
security/advancedtls/crl.go
Outdated
@@ -319,7 +183,7 @@ func fetchCRL(c *x509.Certificate, crlVerifyCrt []*x509.Certificate, cfg Revocat | |||
} | |||
return crl, nil | |||
} | |||
return fetchIssuerCRL(c.RawIssuer, crlVerifyCrt, cfg) | |||
return nil, fmt.Errorf("trying to fetch CRL but CRLProvider is 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.
Should we move this check to become the fist thing in this function?
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.
Good call, changed
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
Note: the rel notes in the PR description is only for grpc-Go releases. We would need to come up with rel notes for the advancedTLS release. Also since the fields were deprecated before the 1.0 release, i would rather not mention anything in the rel notes for 1.0 |
That's a good point - I removed release notes |
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.
As for 1.0 release, I think we should just audit everything once again. For eg: I see we have a separate module under security/advancedtls/examples/
which has a replace directive to the advancedTLS module. So after release, we should also update the go.mod to reference to the right release
This PR removes the following deprecated APIs in preparation for a 1.0 release of advancedTLS:
The first list were simply renamed
The second list are fully deprecated features in the CRL stack - use CRL providers instead. For reading a directory, the
FileWatcherCRLProvider
should be a relatively simple replacement.RELEASE NOTES: None