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

Proposal: Integrate Gatekeeper and Casbin into KubeSphere #4139

Open
1 of 5 tasks
sagilio opened this issue Aug 11, 2021 · 6 comments
Open
1 of 5 tasks

Proposal: Integrate Gatekeeper and Casbin into KubeSphere #4139

sagilio opened this issue Aug 11, 2021 · 6 comments
Labels
area/security kind/feature Categorizes issue or PR as related to a new feature. kind/proposal Categorizes issue as related to a proposal.

Comments

@sagilio
Copy link

sagilio commented Aug 11, 2021

Background

PodSecurityPolicy (PSP) has been stuck in beta since it was introduced in Kubernetes 1.3 and now it is being deprecated in Kubernetes 1.21, this starts the countdown to its removal.

Kubernetes also allows decoupling policy decisions from the inner workings of the API Server by means of admission controller webhooks, which are executed whenever a resource is created, updated or deleted, So we can use some third-party controllers to instead it.

Proposal

Gatekeeper is a validating (mutating TBA) webhook that enforces CRD-based policies executed by Open Policy Agent. We can integrate Gatekeeper to KubeSphere, and manage the common rules and policies through CRD.

Casbin is an authorization library that supports access control models like ACL, RBAC, ABAC and has many users, and the casbin community will do the best to support this feature. Trace issue: casbin/kubesphere-authz#4

I think this feature can support these points:

  • Users can add, edit, delete, enable and disable some admission policy at KubeSphere Console, like whether allow privilege container and trusted image repository, etc.
  • Users can receive the rejection notification on the KubeSphere Console.
  • Users can select the third-party controllers on config.

What things do we need to do?

/area security
/kind proposal

@ks-ci-bot ks-ci-bot added area/security kind/proposal Categorizes issue as related to a proposal. labels Aug 11, 2021
@wansir
Copy link
Member

wansir commented Aug 12, 2021

I found that casbin/kubesphere-authz is a newly launched project, It seems that not fully developed enough, until then we can invite more community users to test.

@ComradeProgrammer
Copy link

Greetings. I am actually the developer of casbin/kubesphere-authz. Indeed casbin/kubesphere-authz isn't fully developed yet, but I 've already been awared of this proposal, and currently I am actively cooperating with @sagilio. I shall do my utmost to fulfill and implement casbin/kubesphere-authz to make it keep pace with the developing schedule of ks.

@stale
Copy link

stale bot commented Dec 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

@stale stale bot added the stale No recent activity in a long period label Dec 12, 2021
@hsluoyz
Copy link

hsluoyz commented Dec 12, 2021

@sagilio @ComradeProgrammer any update on this issue?

@stale stale bot removed the stale No recent activity in a long period label Dec 12, 2021
@stale
Copy link

stale bot commented Mar 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

@stale stale bot added the stale No recent activity in a long period label Mar 12, 2022
@sagilio
Copy link
Author

sagilio commented Mar 13, 2022

/kind feature

@ks-ci-bot ks-ci-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 13, 2022
@stale stale bot removed the stale No recent activity in a long period label Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/security kind/feature Categorizes issue or PR as related to a new feature. kind/proposal Categorizes issue as related to a proposal.
Projects
None yet
Development

No branches or pull requests

5 participants