Repository navigation
fix(client): security hardening - #480
Conversation
Follow-up hardening of path parameters. Reported internally.
🟢 Risk Classification: LOWApproval route: AI Auto-Approval Classification reasons
Operational gates
Files analysed: 3 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
There was a problem hiding this comment.
✅ Auto-approved — this PR meets all Low-risk criteria.
All checks passed, no unresolved comments, and the change classification is:
no_low_class_matchedprod_source_modified2.2.6_logical_extension:This change only tightens input validation in an existing path-encoding helper by rejecting additional character classes before encoding, without modifying any endpoint, data model, auth logic, or external integration.
wall-e 2026.06.19-02 · policy 6b4ce2b3b45a…
Security hardening and input validation in request path building.
🔴 Risk Classification: MAJORApproval route: AI Review + Human Approval Required Classification reasons
Operational gates
Files analysed: 58 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
🔵 Advisory review: Sound, but needs your judgementThis PR needs a human approval. The code itself reads as correct; whether it should land depends on context I don't have. This PR adds path-parameter validation (rejecting For you to decide
This is not an approval. wall-e cannot auto-approve this PR — it is an opinion to help whoever does. Advisory review · us.anthropic.claude-sonnet-4-6 · wall-e 2026.06.19-02 |
|



Summary
Security hardening: input validation of path parameters. Values that cannot be sent as a single path segment are rejected with a
ValueErrorbefore any request is sent.Changes
src/services/utils.js: input validation of path parameters inencodePathSegment, with aValueErrornaming the parameter.src/api/**:@throwsdocumentation of every method that takes a path parameter updated to the accepted values;Customers.getdocuments the ID or email it takes.test/services/utils.js,test/services/path-segments-unit.js: tests for the path helper and for every endpoint that takes a path parameter.README.md: error handling section documents the accepted path parameter values.API Reference
None.
Breaking changes
Path values that could not reach a valid endpoint now throw a
ValueErrorinstead of being sent (minor). ForCustomers.get, use the customer ID when the email contains a slash or a backslash.Tests
New tests fail on the default branch and pass on this branch; unit suite and the build workflow run locally are green.
Related
None.