-
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
After PR approval, it's possible to plan and apply any directory #1508
Comments
You can configure github to dismiss approvals when further commits are added to a branch. |
atlantis is not a commit on a branch, it's a PR comment.... |
Oh, good point - sorry I misread the concern earlier. I guess the mitigation would be that anything in that other directory should automatically trigger a plan in that dir if there is any diff from |
so I open my PR..... plan my destroy changes.... and my coworker approves the plan, like so: after the approval, I run another plan on a completely unrelated module (ie: folder). Nobody sees this plan or approves itnotice, both plans were applied and auto merged, but nobody ever saw the second plan or approved it. This seems like something I'd want to button up, or else, once you get any approvals, you can plan / apply anything you want, so long as you don't push any other commits to your branch (as mentioned above). maybe this is fallout from our TG repo strategy, but our repo layout seems fairly standard from my understanding of TG. I see two obvious options so far:
|
Ok, doing a destroy plan wasn't something I'd thought of. 👍 |
+1 on |
is this still an issue with |
is there a specific PR / changelog that updated behavior? I'm on EDIT: I assume you are referring to https://www.runatlantis.io/docs/apply-requirements.html#undiverged that seems like it would solve the issue.... I don't see anything wrong with closing this now....I can always open it (or a new issue) later |
you will need to look at the changelog but we have fixed a number of issues lately |
IMO it would make sense to dismiss any approvals granted before completing all plans (as an option). |
@jasonrberk could you update and see if you are still getting the issue with the latest release? |
+1 on this, we are using the latest version of Atlantis and it's still possible to have the apply_requirement set to mergeable, approve the PR first and then create a plan that is applied afterwards without any more/new review |
sorry. I no longer work at the company where I set this all up. I might be setting it up at my new employer. If so I'll comment back, but it looks like @gregoirefra validated the concern still exists |
I'm curious if others noticed this and how they might be dealing with it.
If I run a
plan
, and get an approval, I could then run anotherplan
, in an entirely different directory (using-d
) and apply it w/o getting another approval. The gist of it is that once I get an approval on my first plan, it seems like I can plan / approve anything. Seems like theplan
command should dismiss any approvals so that I have to apply what was approved.it feels like I'm just missing something, but testing seems to indicate otherwise.
The text was updated successfully, but these errors were encountered: