-
Notifications
You must be signed in to change notification settings - Fork 732
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
playbook makes OS undetectable #124
Comments
With what account do you run inspec? The message |
The account is ec2-user. It works before I run the playbook, but then fails after the playbook has been run with the above output. To clarify, that is the user I'm connecting with, the ssh user. Not the user on my local machine. |
FYI, this passes before the playbook is run but not after. |
I'll spin up a instance on AWS and check it. |
We're also seeing this with the official Centos 6 image. Inspec runs fine on a bare box, but after applying this playbook, the test fails with: |
Adding the default user of your AMI to the ignore_users seems to do the trick. So for us: Would be good if this could be included in this list from the auto-detected user, or even just added to the readme. |
Thanks for the clarification, @HenryTheHamster.
For centos-machines it seems to be the user I also do not want to exclude a list of users as this would weaken the hardening. So I guess your proposal to add this to the readme is the best option. Would you mind opening a PR for this? |
I launched an AWS Linux AMI, ami-275ffe31, which is their ECS-optimized image. Inspec detects it as a AWS box. But then when I run this playbook, Inspec can no longer detect the OS. When I run Inspec detect after running this playbook, I get:
Is this expected behavior? Or has anyone else seen similar behavior? I basically can't use Inspec anymore after running this playbook.
The text was updated successfully, but these errors were encountered: