-
-
Notifications
You must be signed in to change notification settings - Fork 231
feat: reduce attack surface due to packages #2006
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
base: develop
Are you sure you want to change the base?
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
eb57ec0 to
390f1a1
Compare
…ler, and is required
…move cloud-init was being removed during Ansible package cleanup despite autoremove being disabled. Rather than debug further, explicitly reinstall both critical packages before apt-mark and autoremove.
Key changes: - Set multi-user.target as default boot target to prevent graphical boot issues - Move apt-get update/upgrade to after autoremove (matching qemu script order) - Protect libevent-2.1-7t64 from autoremove (needed by PgBouncer) - Add journalctl cleanup commands for proper log rotation - Add fstrim at end to optimize disk These changes align the AWS AMI cleanup script with the QEMU cleanup script which has been working. The most critical fix is setting multi-user.target as default, which ensures the system boots properly for SSH access.
Removing packages that are not needed, with priority on items that could be security attack vector