feat(validation): integrate OWASP API Security Top 10 2023 rules#145
Merged
hdamker merged 2 commits intocamaraproject:validation-frameworkfrom Apr 3, 2026
Merged
Conversation
Add 20 OWASP Spectral rules to .spectral-r4.yaml (r4.x scope only), disable 12 rules not applicable to CAMARA, and create rule metadata for all enabled rules (S-300..S-319). Implements the agreed configuration from Commonalities Linting-rules.md section 5 (issues #539, #548, #551, #552): - 8 rules at error (auth, HTTPS, 401 response, numeric IDs) - 11 rules at warn (resource consumption, mass assignment) - 1 rule at info (SSRF parameter review) - 12 rules disabled (OpenID-only, gateway-level, OAS 3.1-only) Resource consumption rules (string-limit, array-limit, integer-format, integer-limit-legacy) set to warn for 2026 with planned escalation to error in 2027 per Commonalities #551.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
enhancement/feature
What this PR does / why we need it:
Integrates the agreed OWASP API Security Top 10 2023 Spectral rules into the v1 validation framework, scoped to the r4.x ruleset (
.spectral-r4.yaml) only.@stoplight/spectral-owasp-rulesetnpm dependencyNODE_PATHbridge for npm module resolution (documented inline)Rule configuration follows Commonalities Linting-rules.md section 5 exactly:
Which issue(s) this PR fixes:
Supersedes #95 (OWASP rules — parked, v0 approach)
Related: ReleaseManagement#448 (validation framework umbrella)
Special notes for reviewers:
.spectral-r4.yamlonly —.spectral-r3.4.yamlis unchanged (frozen Fall25 ruleset)Changelog input
Additional documentation
Commonalities discussions: #539, #548, #551, #552, #596
Design Guide alignment: sections 2.2 (data definitions), 3.2 (error responses), 6.1-6.3 (security)