Skip to content

CLI: --jwks flag should accept file:// URLs and bare filesystem paths #10

@aeoess

Description

@aeoess

Problem

@veritasacta/verify CLI's --jwks flag currently fails on file:// URLs and bare filesystem paths with jwks_fetch_failed, accepting only HTTP/HTTPS URLs.

Local-development reproduction:

npx @veritasacta/verify test-vectors/cross-verify-bundle.json \
  --jwks test-vectors/keys/aps-ku-cross-verify.jwks
# → jwks_fetch_failed

The README under test-vectors/ documents this exact form of invocation as the local-development path, so the failure breaks every reader who tries to run the test-vector suite locally without spinning up a hosting layer first.

Proposed scope

  • Accept file:// URLs by reading the file from disk
  • Accept bare filesystem paths (relative + absolute) by interpreting them as files
  • Preserve existing HTTP/HTTPS behavior unchanged
  • Cite the resolved path in CLI output so users can confirm what was loaded

Why a separate issue

Surfaced during review of PR #7 (feat(test-vectors): APS DecisionLineageReceipt for ku_4b3f7c2a9d8e1f05). Both @aeoess and @desiorac agreed the fix belongs in the v0.7 scope alongside the draft-02 enforcement work, kept out of PR #7 to keep that PR focused. Filing here so it does not get absorbed into the draft-02 PR or lost between reviews.

Reference

— Tymofii Pidlisnyi (aeoess)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions