OpenParable
Skip to content
← Back to skills

Resource Bounds Dos

Testing & Quality
resource-bounds-dos

Resource Bounds Dos is an Agent Skill for testing & quality published in the kubernetes-sigs/kueue repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Flag missing resource bounds / DoS resistance — uncapped loops or allocations, missing timeouts, reconciler-wedging input, unbounded metric cardinality (CWE-400, CWE-770).

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/kubernetes-sigs/kueue/blob/HEAD/cmd/experimental/skills/reviewer/security/resource-bounds-dos/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/resource-bounds-dos, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Skill: Resource Bounds / DoS Resistance (CWE-400, CWE-770)

  • Loops over user-supplied slices (PodSets, ResourceGroups, Flavors, cohort children, admission checks) without a documented webhook-enforced cap or explicit length check.
  • make([]T, n) / make(map[K]V, n) where n comes from user data without a sanity cap.
  • Outbound API or HTTP calls without context.WithTimeout (or a bounded inherited reconcile context).
  • Invalid .spec.interval-style fields that could wedge the reconciler for the entire kind (CVE-2022-39272 pattern). Failures from invalid CR content must surface to status, not crash-loop.
  • New metrics with unbounded label cardinality — workload_name, pod_name, namespace+name composites, annotation values as labels.