Skip to content

Commit 60920c1

Browse files
committed
Add flow example
Signed-off-by: Katyanna Moura <[email protected]>
1 parent cedca6e commit 60920c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/e2e/authorization.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ var _ = g.Describe("Authorization [RBAC] [Zalando]", func() {
134134
// Such requests bypass the admission controller, which only processes
135135
// mutating requests. Admission controller tests for this role are unnecessary,
136136
// as access control is fully enforced at the RBAC authorization stage.
137+
// Flow example:
138+
// 1. Request Received → RBAC checks role permissions.
139+
// 2. Read-Only Role (`GET`) → Allowed by RBAC, **skips** admission controller.
140+
// 3. Read-Only Role (`DELETE`) → Blocked by RBAC, so never reaches admission controller.
137141
g.Context("For ReadOnly group", func() {
138142
var tc testCase
139143
g.BeforeEach(func() {

0 commit comments

Comments
 (0)