-
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
feat(4157): adding option to hide UI button to disable apply commands #4158
Conversation
Hi @igaskin thanks for the contribution! A few notes:
|
sure, I can make that name change! And agreed on the API still being available, I close that off as well. Honestly I was being lazy, but your comment was the encouragement I needed. |
removed adding the
|
When the |
Agreed, it would be a great to have robust RBAC with permissions that are granular to the individual user. This PR is meant to be a easy option for Atlantis admins to restrict global locks. A proper RBAC/OIDC integration would be best fit in a separate PR. |
@lukemassa addressed comments. Please let me know if there are other changes you would like to see as part of this PR. |
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.
Looks good to me! I'll let other maintainers weigh in if they have any concerns.
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.
LGTM
…runatlantis#4158) Signed-off-by: kvanzuijlen <[email protected]>
what
Adds a flag for
--disable-global-apply-lock
, to theserver
command. The flag can be used to optional hid the "disable apply commands" button in the UI.why
In shared environments it may not be desirable to have this button available to all users. In leu of RBAC, hiding the button can be an acceptable option.
![Screenshot 2024-01-19 at 4 17 01 PM](https://private-user-images.githubusercontent.com/5673097/298238532-bfff3d8a-616a-4cd2-9ca6-76e07dce0123.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NzUyNjQsIm5iZiI6MTczOTg3NDk2NCwicGF0aCI6Ii81NjczMDk3LzI5ODIzODUzMi1iZmZmM2Q4YS02MTZhLTRjZDItOWNhNi03NmUwN2RjZTAxMjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMj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hvc3QifQ.yiJ3p3a6KgIArzJ6T0VQ_QKAxL8sJ03dPv0g87cypPY)
before
after
tests
references
#4157