Skip to content

APS-3732 Path-level validation for sdx related routes - #262

Merged
phowells merged 2 commits into
devfrom
feature/sdx-path-level-validation
May 1, 2026
Merged

APS-3732 Path-level validation for sdx related routes#262
phowells merged 2 commits into
devfrom
feature/sdx-path-level-validation

Conversation

@phowells

@phowells phowells commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Description

Add path-level validation to the gwa-api so that there is path exclusivity for a gateway to support the service paths.

Implemented validation methods and unit tests
Added validation check to v1 and v2 publish endpoints

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • [ X] New feature (non-breaking change which adds functionality)
  • Documentation (non-breaking change with enhancements to documentation)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • [ X] I have checked that unit tests pass locally with my changes
  • [ X] I have added tests that prove my fix is effective or that my feature works
  • [X ] I have added necessary documentation (if appropriate)

Further comments

- implemented validation methods and unit tests
- added validation check to endpoints
@phowells
phowells force-pushed the feature/sdx-path-level-validation branch from a13cc9e to d2d8bc8 Compare April 1, 2026 20:00
@phowells
phowells requested a review from ikethecoder April 1, 2026 20:02
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

🔔 Friendly reminder: The following reviewers still need to review this PR: @ikethecoder

PS: @sdqdadat

elif do_validate_upstreams and (host in perm_upstreams) is False:
errors.append("service upstream is invalid (e6)")

def validate_route_paths(yaml, ns_attributes, do_validate_route_paths: bool = False):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like validate_route_paths function is defined twice?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Cut and paste error. Removed.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3 Security Hotspots
57.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@phowells
phowells requested a review from ikethecoder April 13, 2026 16:00
@phowells
phowells merged commit 0f9ebd1 into dev May 1, 2026
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants