← Back to Pull requests

build(deps): upgrade jsonwebtoken to 12.0.0 #390

Closed
unknown closed this pull request without merging on Nov 27, 2026 15:58 UTC
View on GitHub
unknown unknown commented on Nov 27, 2026 10:40 UTC
Author

Why

The proxy's FIPS startup test needs to install a rival provider in the
same process-wide jsonwebtoken provider slot that Policy uses.
Resolving both callers to 12.0.0 makes the test exercise that shared slot.

Refs praxis-proxy/praxis#1610

What

  • Upgrade the workspace dependency and the standalone crypto consumer

  • lockfile to jsonwebtoken 12.0.0. Disable default features and opt in
    to use_pem for the existing PEM key sources.
  • Propagate the new fallible HMAC key constructor as a configuration

  • error. Update test key construction and cover empty-secret rejection.
  • Classify rand_core 0.10.1 as a traits-only dependency in the FIPS graph

  • check. The new edge comes through signature 3.0.0.

    How

    jwt-openssl-fips
    ├── jsonwebtoken 12.0.0 (use_pem)
    │   └── signature 3.0.0 → rand_core 0.10.1
    └── Policy's custom CryptoProvider → OpenSSL FIPS
    

    Validation

  • make check, make lint, and make check-fips-graph passed. The locked

  • standalone
    consumer and builtins FIPS graphs resolve 12.0.0 without a software
    crypto backend. The builtins feature tree enables only use_pem on
    jsonwebtoken.
  • make test-fips-provider and make test-fips-no-provider passed. All

  • 12 jwt_fips cases passed, 11 with the provider installed and one
    without it. The tests cover eight approved algorithms across repeated
    resolver initialization and reject an already-installed rival twice.
  • All 180 JWT unit tests on the non-FIPS profile passed, including the

  • empty-secret regression.

    The local FIPS runs used a source-built OpenSSL 3.6.5 module with its
    generated integrity configuration supplied locally.

    Merge risk

    The change is reversible at the dependency level. Its runtime scope is
    JWT identity and DPoP verification, including rejection of empty shared
    secrets.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Bug Fixes
    JWT authentication now provides a clearer error when a shared secret cannot be used, including when the secret is empty. This helps identify invalid secret configuration during setup and troubleshooting. No changes to supported signing algorithms or authentication behavior are included in this update.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 295 lines (+221 / -74) across 3 files Reviewer: guicassolato Review duration: 317m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 295 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.340
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #390"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 63.1% (MEDIUM) · Higher = larger blast radius
    63.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.9% · Safe to merge
    24.9%