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

CodeDeploy is not starting up correctly after CIS hardening #19

Open
obscurerichard opened this issue Jan 28, 2019 · 0 comments
Open

CodeDeploy is not starting up correctly after CIS hardening #19

obscurerichard opened this issue Jan 28, 2019 · 0 comments
Assignees

Comments

@obscurerichard
Copy link
Member

obscurerichard commented Jan 28, 2019

If an AMI has been prepared using Packer and Ansible with the MindPointGroup.RHEL7-CIS role applied, CodeDeploy fails to start up and no deployments happen.

Because of this, the code in #18 destined for master has that role commented out in ansible/bakery.yml:

- name: Harden Server
  hosts: 127.0.0.1
  connection: local
  become: yes
  roles:
    - extra-cis-remediation
    #- MindPointGroup.RHEL7-CIS
    - scan-openscap

@obscurerichard took a first crack at fixing this by forking https://github.com/ModusCreateOrg/ansible-aws-codedeploy-agent from https://github.com/cbdr/ansible-aws-codedeploy-agent and fixing up script download locations so that it was not running a script from /tmp which is marked with noexec with the CIS remediations. That did not seem to do the trick on its own though.

Troubleshooting this might involve looking at boot logs, adjusting timeouts, ssh'ing into an instance as it boots up, and figuring out why the CodeDeploy agent is not working as expected when the CIS baseline lockdown is in effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant