-
Notifications
You must be signed in to change notification settings - Fork 11
[CONTP-921] Configure read-only root filesystem for Datadog Agent #49
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
Conversation
| s.NoError(err, "Failed to parse container definitions") | ||
| s.Equal(6, len(containers), "Expected 6 containers in the task definition") | ||
| s.Equal(7, len(containers), "Expected 6 containers in the task definition") | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add an assertion here that confirms the presence of the relevant volumes and volumeMounts for ROFS?
modules/ecs_fargate/datadog.tf
Outdated
| } | ||
| ], | ||
|
|
||
| dependsOn = local.rofs_agent_depends_on, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have a dependsOn parameter defined 3 lines below. There likely is some overwriting going on? Can we merge local.rofs_agent_depends_on with local.log_router_dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah didn't see that. Thanks for catching!
8f3871b to
679a1cc
Compare
679a1cc to
06b41ef
Compare
What does this PR do?
Adds
readOnlyRootFilesystemsupport for thedatadog-agentsidecar container and added an init container, namedinit-volume, that copies /etc/datadog-agent config files to a writeable volume. This named volume is then attached to datadog-agent sidecar as a writable volumeMotivation
Read-only root filesystems (ROFS) have become a standard security measure when running containerized apps and it is important that Datadog keeps up with the latest security measures. Supporting ROFS out-of-the-box ensures customers deploying the Agent with the 'ecs-datadog' terraform module continue to keep up with security standards without any extra work from them.
Describe how you validated your changes
Additional Notes