Skip to content

fix(management): harden customer-apps list route (encode TSG path segment)#189

Merged
cdot65 merged 1 commit into
mainfrom
cdot65/fix/customer-apps-list-hardening
Jul 9, 2026
Merged

fix(management): harden customer-apps list route (encode TSG path segment)#189
cdot65 merged 1 commit into
mainfrom
cdot65/fix/customer-apps-list-hardening

Conversation

@cdot65

@cdot65 cdot65 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Closes #188

What

Gap analysis against specs/mgmt_service_docs.yaml confirmed the customer-apps list route is already spec-compliant. This PR applies the one real improvement found: percent-encode the TSG ID in the list request path so a TSG ID containing URL-reserved characters can't corrupt the URL (other methods pass ids via query params, which are already encoded). Also expands the thin list test.

Changes

  • customerApps.list() wraps the TSG path segment in encodeURIComponent.
  • Tests: assert offset/limit query params (default + explicit), round-trip a populated PaginatedCustomerAppObject (customer_appId, cloud_provider, environment, api_keys_dp_info[], next_offset), and a percent-encoding regression.

Verification

format:check, lint, typecheck, preflight (0 unacknowledged drift), full Vitest suite pass locally; pre-commit hook green.

Non-breaking (patch). No behavior change for numeric TSG IDs.

🤖 Generated with Claude Code

Wrap the TSG path segment in encodeURIComponent so a TSG ID with
URL-reserved characters cannot corrupt the request URL. Expand list
tests to assert offset/limit query params, a populated
PaginatedCustomerAppObject round-trip, and the encoding regression.

Closes #188
@cdot65
cdot65 merged commit 27f62b7 into main Jul 9, 2026
4 checks passed
@cdot65
cdot65 deleted the cdot65/fix/customer-apps-list-hardening branch July 9, 2026 00:08
cdot65 added a commit that referenced this pull request Jul 9, 2026
- feat(red-team): Network Broker channel sub-client (#187)
- feat(red-team): supported-languages and target-profile error-log endpoints (#193)
- feat(model-security): read-only models sub-client (#195)
- fix(management): percent-encode TSG ID in customer-apps list path (#189)
- fix(red-team): correct Network Broker ChannelStats field names (#199)
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.

fix(management): harden customer-apps list route (encode TSG path segment) + test coverage

1 participant