Michael Mol
345e07c85e
Support Match prioritization
OpenSSH's Match declarations are applied first-match-wins. However, we
can't safely define two Matches that might overlap unless we first sort
the keys, as Python (and Jinja) dicts don't guarantee the order of
dict keys,
We also won't scramble the match sequence every time the user adds,
removes or renames a match, and so we give the user clearer, more
concise diffs as when they apply changes.
Finally, we leave a comment on the Match line identifying where the
Match rule came from, to assist in troubleshooting.
пре 7 година
Niels Abspoel
0913827c82
Merge pull request #93 from amendlik/freebsd11-printlastlog
PrintLastLog missing in FreeBSD 11.0
пре 7 година
Adam Mendlik
1284109335
PrintLastLog missing in FreeBSD 11.0
The fix introduced in 678cc9066c
suppresses the PrintLastLog directive for FreeBSD 10.3.
SSH on FreeBSD 11.0 also does not support PrintLastLog, so this
change suppresses it for any version >= 10.3.
пре 7 година
Javier Bértoli
c964121b54
Merge pull request #92 from alxwr/master
Test config before applying it
пре 7 година
Alexander Weidinger
162705c7ce
Test config before applying it
пре 7 година
Javier Bértoli
daf5e9464f
Merge pull request #91 from amendlik/freebsd-wheel-group
FreeBSD wheel group
пре 7 година
Adam Mendlik
7245e1aa32
Add kitchen tests for FreeBSD
пре 7 година
Adam Mendlik
0c363d284e
Update tests for compatibility with recent changes
Commit 038a51cdc8
introduced a change
where the sshd_config file is not managed unless the 'sshd_config'
pillar variable is defined. The kitchen tests did not define that
variable, so they stopped working.
This change sets a default value for 'Port' so the file is managed
by Salt.
пре 7 година
Adam Mendlik
154213560f
Correct typo in .kitchen.yml
This change has no impact on the kitchen tests, but only changes
a symbolic name from 'openssl' to 'openssh' to avoid confusion.
пре 7 година
alxwr
844e96b57b
Merge pull request #88 from alxwr/force_key_length
Opt-in to enforce RSA key length
пре 7 година
alxwr
9fddb0ea2a
Merge pull request #87 from alxwr/auth_map
openssh.auth_map
пре 7 година
Alexander Weidinger
6b23b28f52
Opt-in to enforce RSA key length
пре 7 година
Alexander Weidinger
674216d0ad
openssh.auth_map
пре 7 година
Alexander Weidinger
66c954ed66
Set correct ssh(d)_config_group for *BSD
пре 7 година
Niels Abspoel
4ec97eeb28
Merge pull request #86 from amendlik/file-mode
Add variables for file owner and mode
пре 7 година
amendlik
6d6c7a0ead
Merge branch 'master' into file-mode
пре 7 година
Niels Abspoel
044d4d646b
Merge pull request #81 from leansalt/pillar-example-update
Add secure defaults to pillar.example + secure sshd_config in defaults.yml #66
пре 7 година
Adam Mendlik
b3fd60f016
Test using default permissions for ssh_config
пре 7 година
ek9
038a51cdc8
manage sshd_config and ssh_config only if pillars are defined
пре 7 година
ek9
c03e29a498
remove Kex,MACs,Ciphers from defaults
пре 7 година
ek9
f192b91192
add more verbose warnings regarding ssh_config in pillar.example
пре 7 година
Adam Mendlik
613bea2cac
Add variables for file owner and mode
пре 7 година
Niels Abspoel
b0afda98ed
Merge pull request #85 from amendlik/test-kitchen
Add test-kitchen configuration
пре 7 година
Adam Mendlik
14cc19c941
Add test-kitchen configuration
пре 7 година
Alexander Weidinger
70461403cb
known_hosts: sort IP addresses
in order to prevent unnecessary changes due to
random ordering of dig results.
пре 7 година
Alexander Weidinger
678cc9066c
PrintLastLog missing in FreeBSD 10.3
пре 7 година
ek9
f5a74f3fa0
defaults: enable secure defaults on sshd_config
пре 7 година
ek9
ec796662bc
pillar.example: update with secure defaults for sshd_config and ssh_config
пре 7 година
ek9
d6e48f2b43
rebase based on latest update
пре 8 година
Javier Bértoli
2db9253c45
Merge pull request #82 from pepoluan/allow_list_or_string
Allow list or string for some option, and setting of ConfigBanner
пре 8 година
Javier Bértoli
893b96d023
Merge pull request #83 from llua/redhat
setup sftp correctly on RedHat-like machines
пре 8 година
Eric Cook
f4ea96f9c1
setup sftp correctly on RedHat-like machines
пре 8 година
Pandu E Poluan
18e1866ac5
Update pillar.example
`pillar.example` now contains information on how to use the
'string-or-list' feature for some options.
Also an explanation on the new `ConfigBanner` option.
пре 8 година
Pandu E Poluan
773d9ae092
Apply string-or-list processing to ssh_config
Now ssh_config also accepts string-or-list options, for serveral
keywords.
пре 8 година
Pandu E Poluan
30648d115e
Add macro to handle string or list
Added a macro to handle multivalue options entered in either string
format or list format (with auto joiner).
пре 8 година
Brian Jackson
b9689cedff
Merge pull request #79 from leansalt/server-service-control
Add ability to control SSH server service status (default: on)
пре 8 година
Florian Ermisch
bff3e5d199
Merge pull request #80 from llua/use_pam
do not set UsePAM on OpenBSD
пре 8 година
Eric Cook
686fc2c4ee
do not set UsePAM on OpenBSD
Upstream opensshd does not support PAM
пре 8 година
Forrest
086937b84f
Merge pull request #76 from freach/master
openssh.auth will produce invalid SLS definition if sshd_config configs are missing
пре 8 година
Simon Pirschel
1b69ecab2c
fix issue with stripping new line will result in invalid SLS definition if AuthorizedKeysFile is missing in sshd_config
пре 8 година
Forrest
0c06e247d5
Merge pull request #75 from freach/master
sshd won't start if AddressFamily option is specified
пре 8 година
Simon Pirschel
2a1b8fbc66
fix issue sshd won't start if AddressFamily is specified, because it must be defined before ListenAddress
пре 8 година
Forrest
ec663a6f5e
Merge pull request #51 from mathieupotier/master
Put ssh keys on configured path in sshd_config (AuthorizedKeysFile)
пре 8 година
Forrest
263575e57e
Merge pull request #74 from llua/arch_sftp
fix Subsystem directive on archlinux
пре 8 година
Eric Cook
51fd8b1391
fix Subsystem directive on archlinux
пре 8 година
Forrest
8c1d02f249
Merge pull request #73 from omltorg/updated_archlinux_pkg_name
Update name of package containing dig on ArchLinux
пре 8 година
omltorg
de66dbee97
Update name of package containing dig on ArchLinux
пре 8 година
Forrest
8d1e730907
Merge pull request #72 from kyrias/AuthKeysCmd
Add AuthorizedKeysCommand support
пре 8 година
Johannes Löthberg
a74d859992
Add AuthorizedKeysCommand to pillar.example
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
пре 8 година
Johannes Löthberg
02b52fa7cf
Add AuthorizedKeysCommand support
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
пре 8 година