Skip to content

Commit

Permalink
docs: remove deny in impersonation
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenGravy authored Oct 23, 2024
1 parent 22b5014 commit 8b05308
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions docs/pages/admin-guides/access-controls/guides/impersonation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ spec:
users: ['jenkins']
roles: ['jenkins']

# The deny section uses the identical format as the 'allow' section.
# The deny rules always override allow rules.
deny:
node_labels:
'*': '*'
```

Create the `role` resource:
Expand Down Expand Up @@ -207,12 +202,6 @@ spec:
where: >
equals(impersonate_role.metadata.labels["group"], "security") &&
equals(impersonate_user.metadata.labels["group"], "security")
# The deny section uses the identical format as the 'allow' section.
# The deny rules always override allow rules.
deny:
node_labels:
'*': '*'
```
Create the resources:
Expand Down Expand Up @@ -285,12 +274,6 @@ spec:
where: >
contains(user.spec.traits["group"], impersonate_role.metadata.labels["group"]) &&
contains(user.spec.traits["group"], impersonate_user.metadata.labels["group"])
# The deny section uses the identical format as the 'allow' section.
# The deny rules always override allow rules.
deny:
node_labels:
'*': '*'
```

While user traits typically come from an external identity provider, we can test
Expand Down

0 comments on commit 8b05308

Please sign in to comment.