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

Enable readonlyRootFilesystem in our ECS Task config #934

Merged
merged 21 commits into from
Apr 18, 2024

Conversation

AshCorr
Copy link
Member

@AshCorr AshCorr commented Apr 17, 2024

What does this change?

  • Enable readonlyRootFilesystem on our ECS Tasks. This resolves 52 FSBP ECS.5 violations by locking down the container filesystem to prevent unexpected writes.
  • Adds ephemeral mounts for Internal Cloudquery data and User config to be written to. Functionally, each of these mounts replaces a directory in the file system that would otherwise be read-only.
  • Creates a custom Dockerfile that already contains the required AWS certificates, and a workflow to release the image, similar to prisma-migrate-image.yml

How has it been verified?

Tested in CODE against AWS and GitHub jobs. Both run without issue

@AshCorr AshCorr requested review from a team as code owners April 17, 2024 11:49
@AshCorr AshCorr changed the title Nt/ecs read only Enable readonlyRootFilesystem in our ECS Task config Apr 17, 2024
Copy link
Contributor

@tjsilver tjsilver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@NovemberTang NovemberTang merged commit 146b73a into main Apr 18, 2024
3 checks passed
@NovemberTang NovemberTang deleted the nt/ecs-read-only branch April 18, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants