fix(argo-cd): Make argocd-server /home/argocd/.aws writeable when using readOnlyRootFilesystem=false security context#1006
Merged
yann-soubeyrand merged 1 commit intoargoproj:masterfrom Nov 6, 2021
Conversation
…g readOnlyRootFilesystem=false security context Signed-off-by: Simon Ninon <simon.ninon@gmail.com>
yann-soubeyrand
approved these changes
Nov 6, 2021
nielstenboom
pushed a commit
to promaton/argo-helm
that referenced
this pull request
Nov 15, 2021
…g readOnlyRootFilesystem=false security context (argoproj#1006) Signed-off-by: Simon Ninon <simon.ninon@gmail.com> Signed-off-by: Niels ten Boom <nielstenboom@gmail.com>
reinvantveer
pushed a commit
to reinvantveer/argo-helm
that referenced
this pull request
Dec 2, 2021
…g readOnlyRootFilesystem=false security context (argoproj#1006) Signed-off-by: Simon Ninon <simon.ninon@gmail.com>
terrych0u
pushed a commit
to terrych0u/argo-helm
that referenced
this pull request
Dec 23, 2021
…g readOnlyRootFilesystem=false security context (argoproj#1006) Signed-off-by: Simon Ninon <simon.ninon@gmail.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
We are running argo with
containerSecurityContext.readOnlyRootFilesystemset totrue.However, a bunch of things are not loading on the ArgoCD Dashboard (logs, events, manifests, ...) when doing so. When looking at the argocd server logs, we found the following error:
The reason is that ArgoCD server is calling the AWS CLI, and AWS CLI needs to store some credentials under
~/.aws/cache/*.json. Note that this~/.aws/cachefolder is not configurable with AWS (other than updating$HOME, which would impact ArgoCD), so we can't just use some environment variables likeAWS_CONFIG_FILEto make AWS CLI write stuff under/tmp.Our current workaround is to set the following helm values:
We were thinking that it might be useful to directly set these when enabling
server.readOnlyRootFilesystemsince others might run in the same issue.Testing
I followed the testing steps in the contributing guidelines, once with
server.readOnlyRootFilesystemset to false, and another time withserver.readOnlyRootFilesystem.In both cases, I verified the configuration with
kubectl describe podsand SSH'd into the server container to verify the volume configuration.Checklist
Changes are automatically published when merged to
master. They are not published on branches.