Skip to content

CAMARA_common.yaml - alignment with OWASP and other linting rules#590

Open
rartych wants to merge 6 commits intocamaraproject:mainfrom
rartych:Limiting_CAMARA_Common
Open

CAMARA_common.yaml - alignment with OWASP and other linting rules#590
rartych wants to merge 6 commits intocamaraproject:mainfrom
rartych:Limiting_CAMARA_Common

Conversation

@rartych
Copy link
Contributor

@rartych rartych commented Feb 19, 2026

What type of PR is this?

  • enhancement/feature

What this PR does / why we need it:

CAMARA_common.yaml includes schema definitions that raise linter errors when used in CAMARA API specifications.
New OWASP API linting rules will raise additional erros related to unrestricted string/integer properties.
This PR:

Which issue(s) this PR fixes:

Fixes #584

Does this PR introduce a breaking change?

  • Yes
  • No

Restrictions for string/integer properties

Special notes for reviewers:

Changelog input

CAMARA_common.yaml aligned with OWASP and other linting rules

Additional documentation

https://github.com/camaraproject/Commonalities/blob/main/documentation/Linting-rules.md#5-owasp-api-security-top-10-2023-rules

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

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
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

@tlohmar tlohmar left a comment

Choose a reason for hiding this comment

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

Looks generally good. Is there some recommendations, how to select a length restrictions, e.g. for identifiers like the NAI?

NetworkAccessIdentifier:
description: A public identifier addressing a subscription in a mobile network. In 3GPP terminology, it corresponds to the GPSI formatted with the External Identifier ({Local Identifier}@{Domain Identifier}). Unlike the telephone number, the network access identifier is not subjected to portability ruling in force, and is individually managed by each operator.
type: string
maxLength: 253
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 253 and not 255?
253 feels a bit short, why not 1024 or 2048?

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.

Align CAMARA_common.yaml with OWASP requirements

5 participants