Skip to content

Host Ports description at Pod Security Standards contradicts spec for that field #44315

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

Open
joebowbeer opened this issue Dec 12, 2023 · 9 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. language/en Issues or PRs related to English language lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/auth Categorizes an issue or PR as relevant to SIG Auth.

Comments

@joebowbeer
Copy link
Contributor

joebowbeer commented Dec 12, 2023

This is a Bug Report

Problem:
The Host Ports baseline Pod Security Standard lists 0 as one of the allowed values, but the Container spec excludes the value 0. According to the container spec, the hostPort must be in the range 0 < x < 65536.

  • ports.hostPort (int32)
    Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536.

Proposed Solution:
In the Host Ports baseline policy spec, either remove 0 from the allowed list, or add an explanation as to why 0 should be allowed even though it is not in the valid range.

Page to Update:
https://kubernetes.io/docs/concepts/security/pod-security-standards

@joebowbeer joebowbeer added the kind/bug Categorizes issue or PR as related to a bug. label Dec 12, 2023
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Dec 12, 2023
@joebowbeer
Copy link
Contributor Author

Relates to #36938

@dipesh-rawat
Copy link
Member

/language en
/sig auth

@k8s-ci-robot k8s-ci-robot added language/en Issues or PRs related to English language sig/auth Categorizes an issue or PR as relevant to SIG Auth. labels Dec 13, 2023
@ghost
Copy link

ghost commented Dec 13, 2023

@joebowbeer I think rather that removing 0 mentioning reason for it would be great for compatibility and consistency for the space. This would even clear the issue of why the value is used.

@enj enj added this to SIG Auth Dec 13, 2023
@github-project-automation github-project-automation bot moved this to Needs Triage in SIG Auth Dec 13, 2023
@ibihim ibihim moved this from Needs Triage to Backlog in SIG Auth Jan 22, 2024
@ibihim
Copy link

ibihim commented Jan 22, 2024

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 22, 2024
@k8s-triage-robot
Copy link

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Close this issue with /close

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. and removed triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Jan 21, 2025
@k8s-ci-robot
Copy link
Contributor

@joebowbeer: The label triage/accepted cannot be applied. Only GitHub organization members can add the label.

In response to this:

/triage accepted

Can someone suggest additional wording?

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.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 21, 2025
@joebowbeer
Copy link
Contributor Author

joebowbeer commented Apr 21, 2025

@dipesh-rawat @ibihim @ritazh Can someone suggest additional wording?

Should I take a stab?

I don't entirely understand the explanation here:

kyverno/policies#842 (comment)

@ritazh
Copy link
Member

ritazh commented Apr 22, 2025

Go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. language/en Issues or PRs related to English language lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/auth Categorizes an issue or PR as relevant to SIG Auth.
Projects
Status: Backlog
Development

No branches or pull requests

6 participants