Skip to content

Guidelines and linting rules for OWASP API Security Top 10#582

Merged
rartych merged 5 commits intocamaraproject:mainfrom
rartych:owasp_guidelines
Feb 6, 2026
Merged

Guidelines and linting rules for OWASP API Security Top 10#582
rartych merged 5 commits intocamaraproject:mainfrom
rartych:owasp_guidelines

Conversation

@rartych
Copy link
Contributor

@rartych rartych commented Feb 2, 2026

What type of PR is this?

  • documentation

What this PR does / why we need it:

Spectral ruleset rules from the Stoplight API Stylebook implements checks for the OWASP API Security Top 10 2023.

This PR adds selected rules relevant to CAMARA APIs to CAMARA API Linting Rules Documentation in chapter 5.
It proposes modification of severity for specific rules.
For rules:

  • owasp:api4:2023-array-limit - Schema of type array must specify maxItems.
  • owasp:api4:2023-integer-limit-legacy - Schema of type integer must specify minimum and maximum.
  • owasp:api4:2023-integer-format - Schema of type integer must specify format (int32 or int64).
  • owasp:api4:2023-string-limit - Schema of type string must specify maxLength or enum.
    it is proposed to temporarily set the severity to warning with the target value error (in future CAMARA meta-release after 2026).

The clarifications related to prevention of unrestricted resource consumption in property definitions (that are checked by these 4 rules above) are added to CAMARA API Design Guide. Up to now not clear requirements were releated only to object definitions and were not validated in CAMARA API specifications.
Therefore it is proposed to validate these requirements in future CAMARA meta-release (not 2026), but make API teams aware with warning severity of linting.

CAMARA OpenAPI Linting Rules Implementation Guideline document is deprecated since centralized linting workflows are already implemented.

Which issue(s) this PR fixes:

Fixes #539

Does this PR introduce a breaking change?

  • Yes (new restrictions to string and integer properties)
  • No

Special notes for reviewers:

The feedback from teams working on esp. stable APIs is expected.

Changelog input

Guidelines and linting rules for OWASP API Security Top 10 added

Additional documentation

Updated the API linting implementation guideline to indicate that the document is deprecated and to refer to the new Reusable Workflows Implementation Guide.
Kevsy
Kevsy previously approved these changes Feb 3, 2026
Copy link
Collaborator

@Kevsy Kevsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny typo (see above) otherwise LGTM

Co-authored-by: Kevin Smith <Kevsy@users.noreply.github.com>
Copy link
Collaborator

@Kevsy Kevsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@patrice-conil patrice-conil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@PedroDiez PedroDiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rartych rartych merged commit a25f58f into camaraproject:main Feb 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review of checks for the OWASP API Security Top 10 2023 for CAMARA

4 participants