runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.83k stars 1.06k forks source link

Anonymous Approval or Regex for owners on Policies #4915

Open ehuizar1028 opened 2 months ago

ehuizar1028 commented 2 months ago

Community Note


Describe the user story We are trying to use policies to serve as a warning. Basically if plan detects a destroy, then user must approve_policy IF a destroy is detected as a measure of acknowledgement that the user knows there's a destroy, then is able to run apply. The issue is the owners functionality is limited because we cannot add GH teams from different orgs, it must be in the same org that the Atlantis is running, while also we have hundreds of users, so adding a static list is a bit cumbersome to manage.

Describe the solution you'd like We would like an anonymous_approval (or something along those lines) flag to the policy_sets that would allow anyone to approve. Or even better, support regex for team/user names list

Describe alternatives you've considered we've considered creating a dedicated GH team, with all users, and also dynamically creating a static user list, but I think adding an anonymous_approval flag would be a much cleaner solution.