Implement an OCC loop to update IAM policy bindings #539
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
When working with IAM policies, applications typically want to do something like "add this member to that role". Because the IAM only support "change all the policies", applications need make multiple RPCs, something like:
get_iam_policy(...)
to get the current IAM policyset_iam_policy(...)
.The IAM policy may change between steps 1 and 3, without some pre-condition that sequence of steps may overwrite the other changes. So the code becomes:
get_iam_policy(..)
to get the current IAM policyset_iam_policy(...)
and with theetag
obtained in (1) to avoid overwritesABORTED
that indicates a separate change, go back to step (1)The text was updated successfully, but these errors were encountered: