You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
No matter what GHE teams or individuals I list in policy owners, anyone can approve our custom policysets.
Reproduction Steps
Seen this issue since v0.26.0 and have tried it up to the latest version to date.
1. atlantis plan
2. plan fails policy check
3. user not on policy owner list runs atlantis approve_policies
4. policy get exception
To restrict the approval of custom policy exceptions to only the specified policy owners in Atlantis, you need to define the policy configuration in the server-side repo configuration. Here is an example configuration:
The owners field at the top level defines the users who can approve any policy.
Each policy_set can have its own owners field to specify users who can approve that particular policy set.
By setting the owners field, you restrict the approval of policy exceptions to the specified users. If a user who is not listed as an owner attempts to approve a policy, they will encounter an error message similar to the following:
**Approve Policies Error**
1 error occurred:
* policy set: test_policy user runatlantis is not a policy owner - please contact policy owners to approve failing policies
This ensures that only the designated policy owners can approve the exceptions, maintaining control and compliance [2][3].
Community Note
Overview of the Issue
No matter what GHE teams or individuals I list in policy owners, anyone can approve our custom policysets.
Reproduction Steps
Seen this issue since v0.26.0 and have tried it up to the latest version to date.
1.
atlantis plan
2. plan fails policy check
3. user not on policy owner list runs
atlantis approve_policies
4. policy get exception
Environment details
Repo
atlantis.yaml
file:user3 would be able to approve anything even if he was not the PR owner
The text was updated successfully, but these errors were encountered: