Skip to content

fix: enforce UUID IDs and HTTPS file URI validation in A2ASession, … - #12

Merged
benclarkeio merged 1 commit into
mainfrom
fix/uuid-id-and-https-file-uri-validation
Apr 9, 2026
Merged

fix: enforce UUID IDs and HTTPS file URI validation in A2ASession, …#12
benclarkeio merged 1 commit into
mainfrom
fix/uuid-id-and-https-file-uri-validation

Conversation

@benclarkeio

Copy link
Copy Markdown
Contributor

LocalFileStore, and JSONTaskStore

  • add shared storage identifier helpers in Python and JavaScript for UUID validation and remote file URI parsing
  • validate taskId, artifactId, and messageId as UUIDs before using them in A2ASession, LocalFileStore, and JSONTaskStore
  • align A2ASession file input handling with LocalFileStore by rejecting non-HTTPS remote file URIs at the session boundary
  • keep path-safety checks for filesystem-backed storage and route storage code through the shared helpers
  • export the new LocalFileStore option and fetch types from the JavaScript package entry points
  • update Python and JavaScript tests to use UUID fixtures and cover invalid IDs, invalid task lookups, and rejected remote file URIs

…`LocalFileStore`, and `JSONTaskStore`

- add shared storage identifier helpers in Python and JavaScript for UUID validation and remote file URI parsing
- validate `taskId`, `artifactId`, and `messageId` as UUIDs before using them in `A2ASession`, `LocalFileStore`, and `JSONTaskStore`
- align `A2ASession` file input handling with `LocalFileStore` by rejecting non-HTTPS remote file URIs at the session boundary
- keep path-safety checks for filesystem-backed storage and route storage code through the shared helpers
- export the new `LocalFileStore` option and fetch types from the JavaScript package entry points
- update Python and JavaScript tests to use UUID fixtures and cover invalid IDs, invalid task lookups, and rejected remote file URIs
@benclarkeio
benclarkeio merged commit 6cab2c9 into main Apr 9, 2026
6 of 7 checks passed
@benclarkeio
benclarkeio deleted the fix/uuid-id-and-https-file-uri-validation branch April 9, 2026 17:58
@github-actions github-actions Bot mentioned this pull request Apr 9, 2026
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.

1 participant