Skip to content
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

Add admission for some operations from edge to cloud #5456

Open
Shelley-BaoYue opened this issue Mar 7, 2024 · 1 comment · May be fixed by #5512
Open

Add admission for some operations from edge to cloud #5456

Shelley-BaoYue opened this issue Mar 7, 2024 · 1 comment · May be fixed by #5512
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@Shelley-BaoYue
Copy link
Collaborator

What would you like to be added/modified:

Add admission for some operations from edge to cloud, like pod deletion, node register.

FYI: https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/admission/noderestriction/admission.go

Why is this needed:

Security Enhancement

@Shelley-BaoYue Shelley-BaoYue added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 7, 2024
@spambot000
Copy link
Contributor

Firstly, we can admit or reject the requests within cloudhub.

2024-03-13-1106

NodeAuthorizer implements the node authorization mode. We can add the similar feature to cloudcore based on this.

RBAC authorization mode is a flexable and finer-grained authorization mode. The k8s engineers can reuse their security configurations on cloudcore. However, RBAC is complex, it cloud take us several months to implement this feature.

Secondly, we can also utilize the user impersonation mechanism. By adding special HTTP headers, cloudcore acts as the kubelet on a normal worker node. All of authorization modes are supported. However, it's hard to trace the requests from edge nodes.

2024-03-13-1106

@spambot000 spambot000 linked a pull request Apr 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants