-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/ssh #20
Feature/ssh #20
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.
Great, thanks a lot! I think the default behavior here is too risky, we can either gate this risky behavior behind a flag, or we can force users to make sure their SSH known_hosts stuff is accurate.
spotless-changelog-lib/src/main/java/com/diffplug/spotless/changelog/GitActions.java
Outdated
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.
Sorry I didn't think to suggest this earlier, but it jumped out at me as I looked at the new commits. There might be other SSH properties that users want to override in the future, and that will be easier if we have a consistent mapping.
I think the whole thing gets a bit simpler if we do this rename:
boolean sshDisableStrictHostKeyChecking = false;
String sshStrictHostKeyChecking = "yes";
That way we can automatically support any other String modes that SSH might have someday, and it's a consistent way to override whichever ssh config properties we add support for in the future.
spotless-changelog-lib/src/main/java/com/diffplug/spotless/changelog/GitActions.java
Outdated
Show resolved
Hide resolved
spotless-changelog-lib/src/main/java/com/diffplug/spotless/changelog/GitActions.java
Outdated
Show resolved
Hide resolved
spotless-changelog-lib/src/main/java/com/diffplug/spotless/changelog/GitCfg.java
Outdated
Show resolved
Hide resolved
...g-plugin-gradle/src/main/java/com/diffplug/spotless/changelog/gradle/ChangelogExtension.java
Show resolved
Hide resolved
...elog-plugin-gradle/src/main/java/com/diffplug/spotless/changelog/gradle/ChangelogPlugin.java
Outdated
Show resolved
Hide resolved
Published in |
this can resolve #19, but actually the StrictHostKeyChecking property is set to 'no'