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
A reason why instance would go in rescue mode ? #267
Comments
Hey @rgarrigue, are you sure you only use the os-hardening role and not the ssh-hardening role with If you're sure, can you tell me what AMI you use and what os-hardening version so I can try to reproduce this? |
I use both. About vars, I have
Here are my pinned versions
And about the AMI, I reproduced before opening this issue with this one (us-east-1)
I'm using Debian's official as listed here https://wiki.debian.org/Cloud/AmazonEC2Image/Buster, to be accurate I'm using Terraform which is looking up for the latest |
running into the same issue, it's definitely this role. I'm trying some more things, e.g. disabling the ufw stuff and will let you know if I find a solution. |
Ok, I'm eager to understand why tweaking a SSH related option would send the OS in rescue mode. |
the odd thing is that we use this without any issues on amazonlinux2, yet on Debian machines become entirely inaccessible. So it's either some problem in the role or an incompatibility with Debian/Buster. |
Ok, I now got this down to vfat being disabled via modprobe. whitelisting it
makes instances accessible again. |
the test
clearly is not enough. the path doesn't exist, yet we have a vfat device mounted
I think just checking for efi and then blindly disabling vfat is really unreasonable tbh. there should be a check for existing mount points that adds used filesystems to the whitelist. |
Thanks for debugging this @AFriemann.
Well that is the commonly accepted way to check this. At least it was, obviously it's not working anymore.
That's a great idea. Do you want to create a PR for this? |
Whitelisting vfat fixes it for me. Many thanks @AFriemann. Just out of curiosity, how did you debuggued it ? |
Brute force @rgarrigue :D Created an ami without this and checked mount points, saw vfat and from there it was pretty clear what the likely culprit was. I'll try to write a fix this week @rndmh3ro |
Only manage moduli when hardening server
Fixed by #289 |
Only manage moduli when hardening server
Hi there
This is just a question. My AWS EC2 debian 10 instances won't reboot properly, they end up in rescue mode like this
At this point, the instance is as good as dead, there's no console in EC2 to troubleshoot / resume boot.
I've no idea why it happens. Other instances are fines, the difference behing running os-hardening. Would you have any idea why it could happens ?
The text was updated successfully, but these errors were encountered: