ModusCreateOrg / ModusCreateOrg/devops-infra-demo

CodeDeploy is not starting up correctly after CIS hardening

Open
#19 0 comments 0 reactions 1 assignee View on GitHub

@obscurerichard is already working on this.

Since Nov 8, 2019.

bug help wanted
Dominant language
Shell
Stars
34
Forks
19
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.