-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sshd lens to split additional list keys (#721)
Several configuration values used for setting crypto policy were being incorrectly parsed as raw strings when they are in fact lists. Treat them as such Specifically: - GSSAPIKexAlgorithms - PubkeyAcceptedKeyTypes - CASignatureAlgorithms * Add support for sshd_config.d per @georgehansper request Co-authored-by: Edward Garbade <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,10 +100,14 @@ Match Group \"Domain users\" | |
|
||
|
||
(* Test: Sshd.lns | ||
Parse Ciphers, KexAlgorithms, HostKeyAlgorithms as lists (GH issue #69) *) | ||
Parse Ciphers, KexAlgorithms, HostKeyAlgorithms as lists (GH issue #69) | ||
Parse GSSAPIKexAlgorithms, PubkeyAcceptedKeyTypes, CASignatureAlgorithms as lists (GH PR #721) *) | ||
test Sshd.lns get "Ciphers [email protected],[email protected],aes256-ctr,aes128-ctr | ||
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1 | ||
HostKeyAlgorithms [email protected],[email protected],ssh-ed25519,ssh-rsa\n" = | ||
HostKeyAlgorithms [email protected],[email protected],ssh-ed25519,ssh-rsa | ||
GSSAPIKexAlgorithms gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256- | ||
PubkeyAcceptedKeyTypes ecdsa-sha2-nistp256,[email protected],ecdsa-sha2-nistp384 | ||
CASignatureAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\n" = | ||
{ "Ciphers" | ||
{ "1" = "[email protected]" } | ||
{ "2" = "[email protected]" } | ||
|
@@ -121,6 +125,21 @@ HostKeyAlgorithms [email protected],[email protected], | |
{ "3" = "ssh-ed25519" } | ||
{ "4" = "ssh-rsa" } | ||
} | ||
{ "GSSAPIKexAlgorithms" | ||
{ "1" = "gss-curve25519-sha256-" } | ||
{ "2" = "gss-nistp256-sha256-" } | ||
{ "3" = "gss-group14-sha256-" } | ||
} | ||
{ "PubkeyAcceptedKeyTypes" | ||
{ "1" = "ecdsa-sha2-nistp256" } | ||
{ "2" = "[email protected]" } | ||
{ "3" = "ecdsa-sha2-nistp384" } | ||
} | ||
{ "CASignatureAlgorithms" | ||
{ "1" = "ecdsa-sha2-nistp256" } | ||
{ "2" = "ecdsa-sha2-nistp384" } | ||
{ "3" = "ecdsa-sha2-nistp521" } | ||
} | ||
|
||
(* Test: Sshd.lns | ||
Keys are case-insensitive *) | ||
|