Skip to content

Commit 5519c78

Browse files
Merge pull request #22730 from enj/enj/i/remove_healthz_star
Remove /healthz/* from bootstrap RBAC
2 parents 69c55bf + 9e443d4 commit 5519c78

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/cmd/server/bootstrappolicy/policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ func GetOpenshiftBootstrapClusterRoles() []rbacv1.ClusterRole {
436436
},
437437
Rules: []rbacv1.PolicyRule{
438438
// Health
439-
rbacv1helpers.NewRule("get").URLs("/healthz", "/healthz/*").RuleOrDie(),
439+
rbacv1helpers.NewRule("get").URLs("/healthz", "/healthz/").RuleOrDie(),
440440
authorizationapi.DiscoveryRule,
441441
},
442442
},

test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ items:
13131313
rules:
13141314
- nonResourceURLs:
13151315
- /healthz
1316-
- /healthz/*
1316+
- /healthz/
13171317
verbs:
13181318
- get
13191319
- nonResourceURLs:

test/testdata/bootstrappolicy/bootstrap_policy_file.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ items:
13131313
rules:
13141314
- nonResourceURLs:
13151315
- /healthz
1316-
- /healthz/*
1316+
- /healthz/
13171317
verbs:
13181318
- get
13191319
- nonResourceURLs:

0 commit comments

Comments
 (0)