Skip to content

Switch the default value of secure-pod-defaults to be more secure #16137

Open

Description

@dprotaso

This is a continuation of #14029

We've introduced an intermediate setting that is secure and allows root images. We didn't switch this to the default in 1.20 but will do this for 1.21 in order to give people enough notice.

Activity

  1. added this to the v1.21.0 milestone on Oct 9, 2025
  2. dprotaso commented on Oct 21, 2025

    @dprotaso
    MemberAuthor

    cc @nader-ziada @evankanderson

    With the 1.21 release we are moving to K8s 1.33 as the min version.

    In K8s 1.33 I saw that uid mappings are an available now: https://www.cncf.io/blog/2025/07/16/securing-kubernetes-1-33-pods-the-impact-of-user-namespace-isolation/

    I wonder if this simplifies root-allowed to be the exact same as enabled - given the container can think it's root but it's not actually root on the host.

  3. evankanderson commented on Oct 21, 2025

    @evankanderson
    Member

    cc @nader-ziada @evankanderson

    With the 1.21 release we are moving to K8s 1.33 as the min version.

    In K8s 1.33 I saw that uid mappings are an available now: https://www.cncf.io/blog/2025/07/16/securing-kubernetes-1-33-pods-the-impact-of-user-namespace-isolation/

    I wonder if this simplifies root-allowed to be the exact same as enabled - given the container can think it's root but it's not actually root on the host.

    I think it's worth asking whether the pod security standards should be updated for 1.33 or later -- the goal of this feature was to allow containers to run in the restricted profile without application developer changes. Unfortunately, the restricted profile doesn't say anything about hostUsers: false at the moment, so that setting doesn't meet the "containers just work when my namespace is annotated" feature.

  4. dprotaso commented on Oct 22, 2025

    @dprotaso
    MemberAuthor

    I think it's worth asking whether the pod security standards should be updated for 1.33 or later

    Good point. Asked here: https://kubernetes.slack.com/archives/C0BP8PW9G/p1761095246021789?thread_ts=1761079761.151219&cid=C0BP8PW9G

    Unfortunately, the restricted profile doesn't say anything about hostUsers: false at the moment, so that setting doesn't meet the "containers just work when my namespace is annotated" feature.

    Yeah, another good point. It seems like the restricted profile should be updated.

  5. modified the milestones: v1.21.0, Icebox on Oct 22, 2025
  6. github-actions commented on Jan 20, 2026

    @github-actions

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  7. added
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    on Jan 20, 2026
  8. linkvt commented on Jan 20, 2026

    @linkvt
    Member

    /lifecycle frozen

  9. added
    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.
    and removed
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    on Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions