New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 1752045: UPSTREAM: <carry>:Add a RBAC checker for external IP ranger #23783
Bug 1752045: UPSTREAM: <carry>:Add a RBAC checker for external IP ranger #23783
Conversation
|
/assign @danwinship |
c607cc9
to
0ea5b79
Compare
...bernetes/openshift-kube-apiserver/admission/network/externalipranger/externalip_admission.go
Outdated
Show resolved
Hide resolved
0ea5b79
to
04f1950
Compare
be4f251
to
b523b01
Compare
|
/retitle Bug 1752045: UPSTREAM: :Add a RBAC checker for external IP ranger |
|
@abhat: This pull request references Bugzilla bug 1752045, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
FWIW, this used to live in pkg/network, but since it's part of the kube-apiserver, vendor/... is the authoritative source. |
b523b01
to
0692712
Compare
|
Update: fixed a typo in the testname in one of the admission tests in the recent force-push. |
...bernetes/openshift-kube-apiserver/admission/network/externalipranger/externalip_admission.go
Outdated
Show resolved
Hide resolved
...bernetes/openshift-kube-apiserver/admission/network/externalipranger/externalip_admission.go
Outdated
Show resolved
Hide resolved
...tes/openshift-kube-apiserver/admission/network/externalipranger/externalip_admission_test.go
Outdated
Show resolved
Hide resolved
|
/hold I'd like to see an enhancement for this that outlines the problem, links prior art, and suggests different options for the RBAC permissions. EDIT: It should not take more than hour. Think of this as your alternative to writing it three times for dev, doc, and test. You'll be able to link everyone to a single spot. |
|
1 Is this really a namespace scoped check? |
|
We don't really expect anyone to actually be granted permission to do this. The RBAC check is just an escape hatch for cluster admins to be able to bypass the checks if absolutely needed. The design was based on what the restricted endpoints admission controller does, but that's a few years old and maybe that's no longer considered the right thing? That said:
No to all three: being able to bypass external IP restrictions in any namespace gives you the power to attack people in every namespace.
I don't know what you mean by that |
89c07e1
to
ce4d829
Compare
|
/retest |
1 similar comment
|
/retest |
In case the supplied external IPs in the service spec are valid, allow the RBAC check to override the specified ranges in the external IP range checker.
ce4d829
to
63cbd7a
Compare
|
/bugzilla refresh |
|
@abhat: This pull request references Bugzilla bug 1752045, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
...bernetes/openshift-kube-apiserver/admission/network/externalipranger/externalip_admission.go
Show resolved
Hide resolved
|
/hold cancel |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhat, danwinship, deads2k The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@abhat: All pull requests linked via external trackers have merged. Bugzilla bug 1752045 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This PR adds a RBAC checker for adding an External IP range for a service.