-
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
Atlantis arg require_approval
flag should be ignored if --allow-repo-config
is enabled
#255
Comments
Right, so basically you want to be able to have the server default to requiring approvals but allow overrides per repo. |
Yeap that is what we want. By default follow the whatever the server is configured with ie Now that I further think about this, some would assume that this idea be a security flaw if it can be overriden in the |
I am not sure where I stand on this, I feel like any option defined serverside should win in merge cases unless specifically configured to allow specific bits of config client side to win. The server is a trusted resource vs a repo is a less trusted resource and options should therefore win on the server because of the security implications. I think having serverside options to say |
Now with server-side repo config you can configure defaults on the server per-repo: https://www.runatlantis.io/docs/server-side-repo-config.html#repos-can-set-their-own-apply-requirements This should accomplish what you'd like. |
Issue
In my atlantis server, I have my executable reading a
config.yaml
which has these contentsAnd then I have a project in my
atlantis.yaml
config like soNote that
apply_requirements
has been commentted out. My aim it to allowatlantis apply
onterraform/iam/preprod
without approval.Expected Behaviour
I can run
atlantis apply
onterraform/iam/preprod
without approval.Actual Behaviour
Atlantis denies me asking that I need approval before I apply.
Workaround.
The workaround I did to get my desired behaviour was to set
require-approval
tofalse
The text was updated successfully, but these errors were encountered: