-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
security: Add updateIdentityCredentials methods to AdvancedTlsX509KeyManager. #11358
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.
* @param period the period between successive read-and-update executions | ||
* @param unit the time unit of the initialDelay and period parameters | ||
* @param executor the execute service we use to read and update the credentials | ||
* @return an object that caller should close when the file refreshes are not needed | ||
*/ | ||
public Closeable updateIdentityCredentialsFromFile(File keyFile, File certFile, | ||
public Closeable updateIdentityCredentials(File certFile, File keyFile, |
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.
For my own understanding, why do we want to swap the order of the arguments?
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.
Resolving based on our offline conversation.
*/ | ||
@Deprecated | ||
@InlineMe(replacement = "this.updateIdentityCredentials(certs, key)") |
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.
Add the ExperimentalApi annotation to the deprecated methods so it is clear they can be deleted.
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.
Added in #11376
Two new 'updateIdentityCredentials' methods with swapped (chain, key) arguments are added. Original 'updateIdentityCredentialsFromFiles' are deprecated.