Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 3 min read

Which Model Grants Survive a Group Membership Change?

Suppose an access review asks whether removing Sam from the editors group would change the list of team models assigned to Sam. The current export names Atlas and Birch. That list alone cannot answer the question: Sam mi

Suppose an access review asks whether removing Sam from the editors group would change the list of team models assigned to Sam. The current export names Atlas and Birch. That list alone cannot answer the question: Sam might have a personal grant for Atlas, a group grant for Atlas, or both.

Keep the path that produced each assignment

Kubernetes RBAC is a limited analogy, not a model of this worksheet. The documentation says RBAC combines grants additively. RoleBindings and ClusterRoleBindings are the objects that grant permissions: a RoleBinding grants permissions to its subjects in its namespace even when it refers to a ClusterRole, and a ClusterRoleBinding grants the referenced role's permissions cluster-wide. Removing one binding may leave equivalent access through another grant. The worksheet borrows only that overlap idea: the same model-use action can have more than one grant path. Kubernetes RBAC reference

The worksheet uses invented grants for one workspace, one model-use action and one level of group membership. An assignment exists in this example whenever at least one applicable grant supplies it.

Take the grants and memberships from the same snapshot. Here is the complete grant list for the example. The proposed change leaves all three grant rows in place.

Grant ID Recipient kind Recipient ID Model
G1 Person Sam Atlas
G2 Group Editors Atlas
G3 Group Editors Birch

The only membership in the original snapshot is Sam's membership in Editors. The proposed snapshot contains no memberships. This is the entire membership list in each case.

Work one model at a time

First copy the grant IDs addressed directly to Sam beside their models. Next find each of Sam's groups in the same snapshot and copy the grants addressed to those groups. Keep the grant IDs distinct, then count the models with at least one remaining grant. For the proposed snapshot, repeat those steps using the new membership list.

Model Original grant paths for Sam Proposed grant paths for Sam Change in assignment
Atlas G1 direct, G2 via Editors G1 direct Retained
Birch G3 via Editors None Lost

Cross-check the totals. Three paths originally supplied two models. Removing the membership cuts two paths, G2 and G3, and leaves one path to Atlas. Only Birch loses its last path. In a review ticket, β€œtwo paths removed” and β€œone model lost” are separate, reproducible findings. Someone who starts with the list of model names alone cannot reconstruct either path to Atlas.

The Kubernetes source supports the general additive-grant property. It does not establish that any particular product assigns Atlas or Birch, or that a backend enforces these grants. The table's outcomes are internal to this invented worksheet.

Observation-based check

Inputs: the three grant rows, the original membership list (Sam in Editors), and the proposed membership list (empty). Observe the path sets: original Atlas has G1 and G2; original Birch has G3; proposed Atlas has G1; proposed Birch has none. Count distinct models with at least one path: original 2, proposed 1. If Birch remains after membership removal, either a direct grant or another group path is present, or the membership list was not applied. If Atlas disappears, G1 is missing or was filtered out. If the count reports three models, check for double-counting paths rather than models. This is a paper check, not a code or product test.

A manual variant is to ignore G2 before changing membership: G1 still supplies Atlas and G3 still supplies Birch. Then ignore G2 and remove only the membership: Birch disappears. The two edits affect different records, even though both remove a path from Sam through Editors to Atlas.

Leave unknowns visible

For your own worksheet, add the snapshot time, workspace and action to the heading. Preserve both recipient kind and ID so that a person and a group with the same display name are not merged. If the membership export is missing, mark group-derived paths unknown. An empty, complete export and an unavailable export support different conclusions. For policies involving nested groups, exclusions or expiry, this one-level worksheet needs additional rules before its totals can be used.

Label the result β€œderived assignments” when handing it over. It describes the grants in a snapshot and supplies no observation of a particular request.

AI assistance disclosure: This article was created with AI assistance. A team preparing material about MonkeyAI commissioned the article. The article is a general worksheet; it makes no implementation claim about MonkeyAI and no adoption recommendation.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.