-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
docs: Explicit restrictions of atlantis user apply to the --data-dir flag #2915
docs: Explicit restrictions of atlantis user apply to the --data-dir flag #2915
Conversation
Previous branch was branched from master, I suppose that's why the circle-ci job failed.. |
Please do not close the old PR and open a new one just to resolve a test issue. This adds to the notifications. We usually rerun an inconsistent test if it fails. Now that this is open and the other is closed, please keep this one open until it's ready to merge. |
Seems to work now :) |
Thank you. We deleted the |
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.
This is technically not true as the Default Date Dir is set to ~/.atlantis
Line 143 in 6ca3604
DefaultDataDir = "~/.atlantis" |
What should probably be addressed is the fact that most shells use tilde as an expression to expand the user's home directory. It's a shortcut and we really should be using an absolute path instead of a relative one here as it causes confusion with functionality based on the shell the user is using.
Changing default is a big deal and could have unintended consequences as people could be relying on unintended behavior of their shell, but for consistency I think it's worth a breaking change.
Hmm that's right indeed, this also seems to conflict with the hardcoded absolute path in the Docker base. What do you suggest? I don't plan on changing the |
I don't expect you to, maybe instead of changing the wording from |
I've reverted it back to |
Thank you, just to note it is |
My bad, was a bit too quick @GenPage. Thanks for being sharp 👍 |
No worries that's what PRs are for! |
what
As the atlantis user is restricted to the home directory of atlantis (
/home/atlantis
), setting the--data-dir
flag to another path will result in a permission denied error.I've updated the documentation to be more explicit on this common pitfall.
why
This is a common made mistake as we nowhere document how restricted the atlantis user is, I had to look at the docker-base to understand why, what and where the atlantis user permissions were applied.
tests
references
--data-dir
is not/home/atlantis
results in permission denied #2903--data-dir
flag #2908