docs(policies): add multi-approver across-tags example with per-tag m… - #746
Open
am-hernandez wants to merge 1 commit into
Open
docs(policies): add multi-approver across-tags example with per-tag m…#746am-hernandez wants to merge 1 commit into
am-hernandez wants to merge 1 commit into
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
t-vila
reviewed
Jul 28, 2026
|
|
||
| #### Require multiple approvers across tags, with per-tag minimums | ||
|
|
||
| This policy allows the activity only when every approver holds at least one of three tags, with **at least 1** approver from Tag A and **at least 2** approvers from Tag B or Tag C. The leading `approvers.any(...)` establishes the eligible voter set (Tag A, B, or C), and the `approvers.filter(...).count()` clauses enforce each minimum. |
Contributor
There was a problem hiding this comment.
I feel that we're colliding multiple concepts with the 3 tag example - perhaps we should stick to only 2 ?
And also use practical tags ex:
Require at least 1 approver tagged <SECURITY_TAG_ID> and at least 2 approvers tagged <OPS_TAG_ID> to change policies.
{
"policyName": "Require 1 security + 2 ops approvers for policy changes",
"effect": "EFFECT_ALLOW",
"consensus": "approvers.any(user, user.tags.contains('<SECURITY_TAG_ID>') || user.tags.contains('<OPS_TAG_ID>')) && (approvers.filter(user, user.tags.contains('<SECURITY_TAG_ID>')).count() >= 1 && approvers.filter(user, user.tags.contains('<OPS_TAG_ID>')).count() >= 2)",
"condition": "activity.resource == 'POLICY' && (activity.action == 'CREATE' || activity.action == 'UPDATE' || activity.action == 'DELETE')"
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Access control policy example for multi-approvers.
Closes CUS-233