-
Notifications
You must be signed in to change notification settings - Fork 296
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
CentOS does not support ed25519; fixes #98 #151
Conversation
@alxwr unfortunate I gave up saltstack and returned to ansible, so my dev environment do not exists any more ;( |
Have performed some basic testing limited to the YAML files and --- master
+++ alxwr:issue-98
@@ -72,6 +72,7 @@
"generate_ed25519_keys": false,
"generate_rsa_keys": false,
"generate_rsa_size": 4096,
+ "host_key_algos": "ecdsa,ed25519,rsa",
"known_hosts": {
"aliases": [
"cname-to-minion.example.org",
@@ -129,6 +130,55 @@
"sshd_config_src": "salt://openssh/files/sshd_config",
"sshd_config_user": "root",
"sshd_enable": true
}
+{
+ "Hosts": {
+ "*": {
+ "AddressFamily": "any",
+ "BatchMode": "yes",
+ "CheckHostIP": "yes",
+ "Cipher": "3des",
+ "Ciphers": [
+ "[email protected]",
+ "[email protected]",
+ "[email protected]",
+ "aes256-ctr",
+ "aes192-ctr",
+ "aes128-ctr"
+ ],
+ "ConnectTimeout": 0,
+ "ForwardAgent": false,
+ "ForwardX11": false,
+ "GSSAPIAuthentication": false,
+ "GSSAPIDelegateCredentials": false,
+ "HostbasedAuthentication": false,
+ "IdentityFile": "~/.ssh/id_rsa",
+ "KexAlgorithms": [
+ "[email protected]",
+ "diffie-hellman-group-exchange-sha256",
+ "diffie-hellman-group-exchange-sha1",
+ "diffie-hellman-group14-sha1"
+ ],
+ "MACs": [
+ "[email protected]",
+ "[email protected]",
+ "[email protected]",
+ "hmac-sha2-512",
+ "hmac-sha2-256",
+ "[email protected]"
+ ],
+ "PasswordAuthentication": true,
+ "PermitLocalCommand": "no",
+ "Port": 22,
+ "Protocol": 2,
+ "RSAAuthentication": true,
+ "RhostsRSAAuthentication": false,
+ "StrictHostKeyChecking": false,
+ "Tunnel": "no",
+ "TunnelDevice": "any:any",
+ "VisualHostKey": "no"
+ }
+ }
+}
{
"AcceptEnv": "LANG LC_*", Looking at the additions, these are both expected due to: So no regressions detected for this part of the refactoring, according to this limited testing at least. Good work, @alxwr! |
I may have found a bug when using |
@alxwr @aboe76 @LloydArmstrong It looks like saltstack-formulas/redis-formula#75 really is a problem again re: |
@aboe76 @myii @javierbertoli This PR now works with both |
@alxwr Would you be able to confirm that |
Yes. I got the same message in my debug log:
|
@alxwr Upstream bug report: saltstack/salt#51605. |
@myii Thanks! |
@myii I'm running
|
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.
Tested on my setup and I see no issues.
@javierbertoli ping |
@alxwr I like this map.jinja style it looks like a merger between new and old style... |
Well, it actually is. 😄 Trying to take the best of both worlds. |
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.
It LGTM. Really nice work, @alxwr !
Merged. Thanks for the PR, @alxwr. And to @aboe76 and @javierbertoli for the reviews. |
After refactoring
map.jinja
it should now be easy to exclude certain host key algorithms for older systems.If this PR is accepted and merged, I plan on implementing an opt-out (
use_check_cmd: False
) to solve #147.Tested on Ubuntu 18.04 and FreeBSD 11.2, but I don't have a CentOS 6 here. (Should work though.)
@hudecof @kadogo Could you please test this PR?