Skip to content
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

Add support for more sshd configuration settings #58

Merged
merged 1 commit into from
Aug 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 44 additions & 4 deletions manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@
$acceptenv = undef,
$addressfamily = undef,
$allowagentforwarding = undef,
$allowgroups = undef,
$allowstreamlocalforwarding = undef,
$allowtcpforwarding = undef,
$allowusers = undef,
$authenticationmethods = undef,
$authorizedkeyscommand = undef,
$authorizedkeyscommanduser = undef,
$authorizedkeysfile = undef,
$authorizedprincipalscommand = undef,
$authorizedprincipalscommanduser = undef,
$authorizedprincipalsfile = undef,
$banner = undef,
$casignaturealgorithms = undef,
$challengeresponseauthentication = undef,
$chrootdirectory = undef,
$ciphers = undef,
Expand All @@ -23,22 +28,29 @@
$compression = undef,
$denygroups = undef,
$denyusers = undef,
$disableforwarding = undef,
$exposeauthinfo = undef,
$fingerprinthash = undef,
$forcecommand = undef,
$gatewayports = undef,
$gssapiauthentication = undef,
$gssapikeyexchange = undef,
$gssapicleanupcredentials = undef,
$gssapikeyexchange = undef,
$gssapistorecredentialsonrekey = undef,
$gssapistrictacceptorcheck = undef,
$hostbasedacceptedkeytypes = undef,
$hostbasedauthentication = undef,
$hostbasedusesnamefrompacketonly = undef,
$hostcertificate = undef,
$hostkey = undef,
$hostkeyagent = undef,
$hostkeyalgorithms = undef,
$ignorerhosts = undef,
$ignoreuserknownhosts = undef,
$ipqos = undef,
$kbdinteractiveauthentication = undef,
$kerberosauthentication = undef,
$kerberosgetafstoken = undef,
$kerberosorlocalpasswd = undef,
$kerberosticketcleanup = undef,
$kexalgorithms = undef,
Expand All @@ -51,10 +63,13 @@
$maxstartups = undef,
$passwordauthentication = undef,
$permitemptypasswords = undef,
$permitlisten = undef,
$permitopen = undef,
$permitrootlogin = 'no',
$permittty = undef,
$permittunnel = undef,
$permituserenvironment = undef,
$permituserrc = undef,
$pidfile = undef,
$port = '22',
$printlastlog = undef,
Expand All @@ -63,15 +78,20 @@
$pubkeyacceptedkeytypes = undef,
$pubkeyauthentication = undef,
$rdomain = undef,
$rekeylimit = undef,
$revokedkeys = undef,
$rhostsrsaauthentication = undef,
$rsaauthentication = undef,
$saclsupport = undef,
$serverkeybits = undef,
$setenv = undef,
$streamlocalbindmask = undef,
$streamlocalbindunlink = undef,
$strictmodes = undef,
$syslogfacility = 'AUTH',
$tcpkeepalive = undef,
$trustedusercakeys = undef,
$useblacklist = undef,
$usedns = undef,
$uselogin = undef,
$usepam = undef,
Expand All @@ -91,14 +111,19 @@
'AcceptEnv',
'AddressFamily',
'AllowAgentForwarding',
'AllowGroups',
'AllowStreamLocalForwarding',
'AllowTcpForwarding',
'AllowUsers',
'AuthenticationMethods',
'AuthorizedKeysCommand',
'AuthorizedKeysCommandUser',
'AuthorizedKeysFile',
'AuthorizedPrincipalsCommand',
'AuthorizedPrincipalsCommandUser',
'AuthorizedPrincipalsFile',
'Banner',
'CASignatureAlgorithms',
'ChallengeResponseAuthentication',
'ChrootDirectory',
'Ciphers',
Expand All @@ -107,22 +132,29 @@
'Compression',
'DenyGroups',
'DenyUsers',
'ForceCommand',
'DisableForwarding',
'ExposeAuthInfo',
'FingerprintHash',
'ForceCommand',
'GatewayPorts',
'GSSAPIAuthentication',
'GSSAPIKeyExchange',
'GSSAPICleanupCredentials',
'GSSAPIStrictAcceptorCheck',
'GSSAPIKeyExchange',
'GSSAPIStoreCredentialsOnRekey',
'GSSAPIStrictAcceptorCheck',
'HostbasedAcceptedKeyTypes',
'HostbasedAuthentication',
'HostbasedUsesNameFromPacketOnly',
'HostCertificate',
'HostKey',
'HostKeyAgent',
'HostKeyAlgorithms',
'IgnoreRhosts',
'IgnoreUserKnownHosts',
'IPQoS',
'KbdInteractiveAuthentication',
'KerberosAuthentication',
'KerberosGetAFSToken',
'KerberosOrLocalPasswd',
'KerberosTicketCleanup',
'KexAlgorithms',
Expand All @@ -136,10 +168,13 @@
'MaxStartups',
'PasswordAuthentication',
'PermitEmptyPasswords',
'PermitListen',
'PermitOpen',
'PermitRootLogin',
'PermitTTY',
'PermitTunnel',
'PermitUserEnvironment',
'PermitUserRC',
'PidFile',
'Port',
'PrintLastLog',
Expand All @@ -148,15 +183,20 @@
'PubkeyAcceptedKeyTypes',
'PubkeyAuthentication',
'RDomain',
'RekeyLimit',
'RevokedKeys',
'RhostsRSAAuthentication',
'RSAAuthentication',
'SACLSupport',
'ServerKeyBits',
'SetEnv',
'StreamLocalBindMask',
'StreamLocalBindUnlink',
'StrictModes',
'SyslogFacility',
'TCPKeepAlive',
'TrustedUserCAKeys',
'UseBlacklist',
'UseDNS',
'UseLogin',
'UsePAM',
Expand Down
24 changes: 22 additions & 2 deletions spec/classes/ssh_server_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@
AcceptEnv
AddressFamily
AllowAgentForwarding
AllowGroups
AllowStreamLocalForwarding
AllowTcpForwarding
AllowUsers
AuthenticationMethods
AuthorizedKeysCommand
AuthorizedKeysCommandUser
AuthorizedKeysFile
AuthorizedPrincipalsCommand
AuthorizedPrincipalsCommandUser
AuthorizedPrincipalsFile
Banner
CASignatureAlgorithms
ChallengeResponseAuthentication
ChrootDirectory
Ciphers
Expand All @@ -27,22 +32,29 @@
Compression
DenyGroups
DenyUsers
DisableForwarding
ExposeAuthInfo
FingerprintHash
ForceCommand
GatewayPorts
GSSAPIAuthentication
GSSAPIKeyExchange
GSSAPICleanupCredentials
GSSAPIStrictAcceptorCheck
GSSAPIKeyExchange
GSSAPIStoreCredentialsOnRekey
GSSAPIStrictAcceptorCheck
HostbasedAcceptedKeyTypes
HostbasedAuthentication
HostbasedUsesNameFromPacketOnly
HostCertificate
HostKey
HostKeyAgent
HostKeyAlgorithms
IgnoreRhosts
IgnoreUserKnownHosts
IPQoS
KbdInteractiveAuthentication
KerberosAuthentication
KerberosGetAFSToken
KerberosOrLocalPasswd
KerberosTicketCleanup
KexAlgorithms
Expand All @@ -56,26 +68,34 @@
MaxStartups
PasswordAuthentication
PermitEmptyPasswords
PermitListen
PermitOpen
PermitRootLogin
PermitTTY
PermitTunnel
PermitUserEnvironment
PermitUserRC
PidFile
Port
PrintLastLog
PrintMotd
Protocol
PubkeyAcceptedKeyTypes
PubkeyAuthentication
RekeyLimit
RevokedKeys
RhostsRSAAuthentication
RSAAuthentication
SACLSupport
ServerKeyBits
SetEnv
StreamLocalBindMask
StreamLocalBindUnlink
StrictModes
SyslogFacility
TCPKeepAlive
TrustedUserCAKeys
UseBlacklist
UseDNS
UseLogin
UsePAM
Expand Down