Skip to content

Support User Namespaces in pods #127

Closed

Description

@derekwaynecarr

Enhancement Description

Please keep this description up to date. This will help the Enhancement Team to track the evolution of the enhancement efficiently.

Activity

  1. derekwaynecarr commented on Oct 10, 2016

    @derekwaynecarr
    MemberAuthor

    This work is being done by @pweil- and is reviewed by @derekwaynecarr, it is sponsored by @kubernetes/sig-node

  2. modified the milestone: v1.5 on Oct 11, 2016
  3. added
    sig/nodeCategorizes an issue or PR as relevant to SIG Node.
    on Oct 12, 2016
  4. mdshuai commented on Oct 26, 2016

    @mdshuai
    Contributor

    @derekwaynecarr Could you help create a user story card for this feature?

  5. idvoretskyi commented on Nov 15, 2016

    @idvoretskyi
    Member

    @derekwaynecarr can you confirm that this feature targets alpha for 1.5?

  6. pweil- commented on Nov 16, 2016

    @pweil-

    @derekwaynecarr can you confirm that this feature targets alpha for 1.5?

    Yes, this feature is experimental only so it would be considered alpha.

  7. idvoretskyi commented on Dec 13, 2016

    @idvoretskyi
    Member

    @derekwaynecarr @pweil- can you confirm that this item targets beta in 1.6?

  8. adelton commented on Nov 14, 2017

    @adelton

    @derekwaynecarr, the proposal kubernetes/kubernetes#34569 was closed by bot due to inactivity.

    @pweil-, in kubernetes/kubernetes#34569 (comment) you've proposed the approach pweil-/kubernetes@16f29eb which changes the group of /var/lib/kubelet/pods to the remapped root group. Do I understand it correctly that this is currently not tracked in any pull request?

  9. adelton commented on Nov 14, 2017

    @adelton

    @pweil-, I also wonder if similar to docker's /var/lib/docker/<uid>.<gid> approach when --userns-remap is used, it might make sense to use /var/lib/kubelet/pods-<uid>.<gid> and just chown/chgroup everything in those subdirectories to the remapped <uid>.<gid>. Why did you opt for just the chgrp and not the full chown?

  10. 576 remaining items

  11. moved this from Implemented to Done in SIG Node 1.36 KEPs planningon May 12, 2026
  12. jmickey commented on May 16, 2026

    @jmickey
    Member

    Hi @rata @giuseppe 👋, v1.36 Enhancements Lead here,

    Just doing some end of release cleanup. Given that this KEP has graduated to stable and the status in kep.yaml has been updated to implemented, I will close the issue.

    /remove-label lead-opted-in
    /remove-label tracked/yes
    /close

  13. removed
    lead-opted-inDenotes that an issue has been opted in to a release
    tracked/yesDenotes an enhancement issue is actively being tracked by the Release Team
    on May 16, 2026
  14. k8s-ci-robot commented on May 16, 2026

    @k8s-ci-robot
    Contributor

    @jmickey: Closing this issue.

    Details

    In response to this:

    Hi @rata @giuseppe 👋, v1.36 Enhancements Lead here,

    Just doing some end of release cleanup. Given that this KEP has graduated to stable and the status in kep.yaml has been updated to implemented, I will close the issue.

    /remove-label lead-opted-in
    /remove-label tracked/yes
    /close

    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-sigs/prow repository.

  15. rata commented on May 21, 2026

    @rata
    Member

    We will completely remove the feature gate in upcoming releases, though. I guess it should still be close? @jmickey

  16. adelton commented on May 21, 2026

    @adelton

    @rata Do you have the UserNamespacesSupport feature gate in mind? Is the removal tracked anywhere where folks could watch / follow it?

  17. rata commented on May 21, 2026

    @rata
    Member

    Yes and another e2e gate. I'll post the things here, watch here :)

  18. jmickey commented on May 22, 2026

    @jmickey
    Member

    Hi @rata, once stable the feature gate removal doesn't require tracking by the release team. It becomes the responsibility of the owning SIG to track the 3 release cooldown and eventually removal.

  19. rata commented on May 22, 2026

    @rata
    Member

    Thanks!

  20. agusdallalba commented on Sep 17, 2026

    @agusdallalba

    What happened to this section of the KEP?

    For baseline namespaces, pods with hostUsers set to false can set any value for the capabilities.add field,
    whereas normally in a baseline namespace a pod is restricted to adding certain capabilities.

    […]

    The validation for capabilities can be relaxed in a baseline pod because capabilities
    are user namespaced in the linux kernel, and any pod does not have a seccomp profile (as baseline
    pods may not be required to, depending on the kubelet's seccompDefault configuration field)
    has access to the unshare syscall, allowing a user to create a user
    namespace in the pod, and gain the full set of capabilities within a user namespace.

    PR kubernetes/kubernetes#125198 implemented this behaviour but was closed.

    Would it be possible to add a small set of extra allowed capabilities to the baseline + not hostUsers case?

    In particular:

    • SYS_PTRACE to allow users to debug and profile their workloads in the production environment without also giving them full access to the host node.
    • NET_ADMIN to allow the cluster operator to debug the network or configure VPNs without giving himself full privileged Pod permissions.
  21. rata commented on Sep 18, 2026

    @rata
    Member

    @agusdallalba no, the feature is GA. You can propose a new KEP and a new feature gate if you want and drive that.

    However, we decided to not allow more capabilities in the PSS with userns. This is because even though is much safer than allowing them on the host,it is still not safer that not allowing them (you could potentially trigger use after free bugs and gain more privs, etc.). Sig auth was concerned with that. This way, also, userns is a net win (it's always safer than without).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/api-changeCategorizes issue or PR as related to adding, removing, or otherwise changing an APIkind/featureCategorizes issue or PR as related to a new feature.sig/nodeCategorizes an issue or PR as relevant to SIG Node.stage/stableDenotes an issue tracking an enhancement targeted for Stable/GA status

Type

No type

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions