Input Validation
Testing & Qualityinput-validationInput Validation 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 input validation at trust boundaries — user-settable CR fields, webhook payloads, labels, annotations, or untrusted deserialization (CWE-20, CWE-502).
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- 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/input-validation/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/input-validation, 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: Missing Input Validation at Trust Boundaries
- New user-settable fields on a CR, webhook payload, label, or annotation used without explicit validation (length, regex, enum, parse).
- Strings from
obj.Spec,obj.Annotations,obj.Labels, or webhook request bodies consumed directly. Reconciler code must still nil-check optional fields the webhook has already validated. - Untrusted input re-parsed with permissive deserializers
(
yaml.Unmarshal(..., interface{}),gob, generic JSON intomap[string]interface{}). Hard violation (CWE-20, CWE-502).