Skip to content

Commit 19b2daf

Browse files
committed
test that poweruser can also read secrets in non-system namespaces
1 parent 4962df7 commit 19b2daf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/e2e/authorization.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ var _ = g.Describe("Authorization [RBAC] [Zalando]", func() {
184184
gomega.Expect(tc.output.passed).To(gomega.BeTrue(), tc.output.String())
185185
})
186186

187+
g.It("should allow read access to Secrets in namespaces other than kube-system and visibility", func() {
188+
tc.data.resources = []string{"secrets"}
189+
tc.data.namespaces = []string{"default", "teapot"}
190+
tc.data.verbs = readOperations
191+
tc.run(context.TODO(), cs, true)
192+
gomega.Expect(tc.output.passed).To(gomega.BeTrue(), tc.output.String())
193+
})
194+
187195
g.It("should deny write access to Nodes", func() {
188196
tc.data.resources = []string{"nodes"}
189197
tc.data.verbs = writeOperations

0 commit comments

Comments
 (0)