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

KEP-1441: update sysadmin profile to remove CAP_SYS_ADMIN and add privileged #4234

Merged

Conversation

eiffel-fl
Copy link
Contributor

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory labels Sep 22, 2023
@k8s-ci-robot k8s-ci-robot added sig/cli Categorizes an issue or PR as relevant to SIG CLI. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 22, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @eiffel-fl. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 22, 2023
@soltysh
Copy link
Contributor

soltysh commented Sep 29, 2023

Looks like this has been updated in #4160, not sure if this one is needed. Feel free to re-open if it still is valid.

@soltysh soltysh closed this Sep 29, 2023
@eiffel-fl
Copy link
Contributor Author

Hi.

Sorry, but you went too fast.
This PR is about sysadmin while #4160 is about netadmin.
I sadly cannot re-open, can you please do?

Best regards.

@soltysh soltysh reopened this Sep 29, 2023
@soltysh
Copy link
Contributor

soltysh commented Sep 29, 2023

/ok-to-test
it's likely that since the other PR merged you might need to rebase

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 29, 2023
@ardaguclu
Copy link
Member

@eiffel-fl could you please give more details about why we need to remove CAP_SYS_ADMIN?. I think, one of the major consequence of this change is netadmin seems more privileged than sysadmin which seems to me counter-intuitive.

@eiffel-fl
Copy link
Contributor Author

@eiffel-fl could you please give more details about why we need to remove CAP_SYS_ADMIN?. I think, one of the major consequence of this change is netadmin seems more privileged than sysadmin which seems to me counter-intuitive.

Sure!
Basically this KEP upgrades sysadmin to use privileges for all case (nod, pod, etc.) rather than CAP_SYS_ADMIN.
So, sysadmin is still more privileged than netadmin as privileged should give all capabilities.
You will find more details in the discussion of this PR:
kubernetes/kubernetes#119200

…vileged

Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
@eiffel-fl
Copy link
Contributor Author

Hi!

I do not want to put pressure on anyone but a review before end of this year would be really appreciated :D!

Best regards.

@lion7
Copy link

lion7 commented Dec 18, 2023

I so needed this today (together with kubernetes/kubernetes#119200).

In my use case, I'm trying to debug a Talos Linux node (Talos has no shell, so debug pods are the only way to do diagnostics). It's just awkward to spawn my own pod when the kubectl debug --profile netadmin almost does what I want (netadmin gives privileged too, but without mounting the host filesystem). See kubernetes/kubernetes#119200 (comment) for a more detailed explanation of this use-case.

@ardaguclu
Copy link
Member

This makes sense as we discussed earlier;

/lgtm
/cc @verb

@k8s-ci-robot k8s-ci-robot requested a review from verb December 18, 2023 10:24
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 18, 2023
Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eiffel-fl, soltysh

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 16, 2024
@k8s-ci-robot k8s-ci-robot merged commit 51460ee into kubernetes:master Jan 16, 2024
3 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.30 milestone Jan 16, 2024
@eiffel-fl eiffel-fl deleted the francis/kep-1441-sysadmin-privileged branch January 22, 2024 03:09
@eiffel-fl
Copy link
Contributor Author

Thank you for the merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. sig/cli Categorizes an issue or PR as relevant to SIG CLI. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants