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

Move attribute to spec as local var #142

Merged

Conversation

kiwivogel
Copy link
Contributor

This solves an unwanted sideeffect of #138 where passing an attributes.yml to inspec that doesn't contain max_auth_tries it breaks the test. This change solves that, you can now still override the attribute if you need more or less tries but you can now pass attributes again without explicitly repeating the default value (2). Also refactors to a more clear attribute name.

Move to local variable to avoid breaking test when passing additional attributes file without max_auth_tries.
Also refactored variable to sshd_max_auth_retries for clarity

Signed-off-by: kiwivogel <[email protected]>
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, I am sorry we missed this. This is a must-have-fix. Thank you @kiwivogel 🥇

@chris-rock chris-rock merged commit 1191289 into dev-sec:master Sep 19, 2019
@kiwivogel kiwivogel deleted the move-atribute-to-spec-as-local-var branch September 19, 2019 10:00
@schurzi schurzi changed the title Move atribute to spec as local var Move attribute to spec as local var Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants