You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes will be done to providers in the cnquery repo and to the policy in the cnspec-policies repo, which is why I thought the above issue nails it :D
Describe the bug
You can have directives that apply contextually in the sshd config. The way cnspec parses this file can result in false positives or false negatives.
To Reproduce
Steps to reproduce the behavior:
Match Group games
PermitRootLogin no
sshd.config.params[PermitRootLogin]
sshd.config.params[PermitRootLogin]: "no"
Expected behavior
It should report the configuration as empty, or better yet - the default of prohibit-password, like you'd get from sshd -T:
Another problem here is that if you uncomment the main configuration option you get this:
So if you have a test for
=="no"
like linux-security does, then it fails even though it should pass.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: