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

Allow opencost-ui to run with a read-only root filesystem #2521

Merged
merged 2 commits into from Feb 12, 2024

Conversation

kaitimmer
Copy link
Contributor

@kaitimmer kaitimmer commented Feb 9, 2024

What does this PR change?

Allow to run with a read-only root file system.

This is important for people who need to run this in Kubernetes with a policy set that only allows pods that have this set:

          securityContext:
            readOnlyRootFilesystem: true

Does this PR relate to any other PRs?

No

How will this PR impact users?

It does not directly affect users. The container continues to run with the same behavior as before. The only difference is, that now one can mount an emptyDir to /var/www and have the root filesystem read-only.

Does this PR address any GitHub or Zendesk issues?

How was this PR tested?

Does this PR require changes to documentation?

Setting this in the Helm charts as a default would be possible. I guess that would make sense from a security point of view.

Copy link

vercel bot commented Feb 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
opencost ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2024 9:54am

Signed-off-by: Kai Timmer <email@kaitimmer.de>
Signed-off-by: Kai Timmer <kai@staffbase.com>
@mattray mattray added opencost OpenCost issues vs. external/downstream P1 Estimated Priority (P0 is highest, P4 is lowest) E2 Estimated level of Effort (1 is easiest, 4 is hardest) labels Feb 12, 2024
@mattray
Copy link
Collaborator

mattray commented Feb 12, 2024

@kaitimmer thanks for the submission. I'll test it and verify it doesn't cause a regression

Copy link
Collaborator

@mattray mattray left a comment

Choose a reason for hiding this comment

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

Works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2 Estimated level of Effort (1 is easiest, 4 is hardest) needs-follow-up opencost OpenCost issues vs. external/downstream P1 Estimated Priority (P0 is highest, P4 is lowest)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants