Skip to content

Commit 31367ee

Browse files
Merge pull request #17874 from deads2k/rbac-06-permission
Automatic merge from submit-queue (batch tested with PRs 17744, 17840, 17874). add swagger permissions Fixes permission problem from #17872 /assign php-coder /assign simo5 @openshift/sig-security @php-coder see if this gets you to the next failure.
2 parents d62d6aa + 7310263 commit 31367ee

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pkg/authorization/apis/authorization/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var DiscoveryRule = rbac.PolicyRule{
5151
"/api", "/api/*",
5252
"/apis", "/apis/*",
5353
"/oapi", "/oapi/*",
54-
"/swaggerapi", "/swaggerapi/*", "/swagger.json",
54+
"/swaggerapi", "/swaggerapi/*", "/swagger.json", "/swagger-2.0.0.pb-v1",
5555
"/osapi", "/osapi/", // these cannot be removed until we can drop support for pre 3.1 clients
5656
"/.well-known", "/.well-known/*",
5757

test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,7 @@ items:
17801780
- /swaggerapi
17811781
- /swaggerapi/*
17821782
- /swagger.json
1783+
- /swagger-2.0.0.pb-v1
17831784
- /osapi
17841785
- /osapi/
17851786
- /.well-known
@@ -2502,6 +2503,7 @@ items:
25022503
- /swaggerapi
25032504
- /swaggerapi/*
25042505
- /swagger.json
2506+
- /swagger-2.0.0.pb-v1
25052507
- /osapi
25062508
- /osapi/
25072509
- /.well-known

test/testdata/bootstrappolicy/bootstrap_policy_file.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1942,6 +1942,7 @@ items:
19421942
- /oapi/*
19431943
- /osapi
19441944
- /osapi/
1945+
- /swagger-2.0.0.pb-v1
19451946
- /swagger.json
19461947
- /swaggerapi
19471948
- /swaggerapi/*
@@ -2738,6 +2739,7 @@ items:
27382739
- /oapi/*
27392740
- /osapi
27402741
- /osapi/
2742+
- /swagger-2.0.0.pb-v1
27412743
- /swagger.json
27422744
- /swaggerapi
27432745
- /swaggerapi/*

0 commit comments

Comments
 (0)