-
Notifications
You must be signed in to change notification settings - Fork 118
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
Rename MirroringCredential
to Credential
#1031
Conversation
Motivation: We decided to repurpose the `MirrorCredential` to manage all repository credentials, not just those specific to mirroring. To reflect this role, we should remove `Mirror` prefix from the class name. Caveat: This commit must be deployed to central dogma replicas after applying the changed from line#1030. Modifications: - Renamed `MirroringCredential` to `Credential` and moved its package. - Removed `hostnamePatterns` property in `Credential`. Result: - The renamed `Credential` class can now be used for managing various types of repository credentials, beyond just mirroring.
import com.linecorp.centraldogma.server.internal.credential.PublicKeyCredential; | ||
|
||
/** | ||
* The authentication credentials which are required when accessing the Git repositories. |
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 update Javadoc to reflect on the current usage?
server/src/main/java/com/linecorp/centraldogma/server/credential/Credential.java
Show resolved
Hide 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.
Understood that this is a simple rename, removal of hostnamePatterns
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.
👍👍
Motivation:
We decided to repurpose the
MirrorCredential
to manage all repository credentials, not just those specific to mirroring. To reflect this role, we should removeMirror
prefix from the class name.Caveat: This commit must be deployed to central dogma replicas after applying the changes from #1030.
Modifications:
MirroringCredential
toCredential
and moved its package.hostnamePatterns
property inCredential
.Result:
Credential
class can now be used for managing various types of repository credentials, beyond just mirroring.