mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 08:02:40 +00:00
jsonwebtoken 8.3's from_rsa_pem accepts private encodings (PKCS#1, PKCS#8), so a pasted private key would be stored and then served back through the settings response. Refuse any private PEM in decoding_key_from_pem, the single choke point for both the save endpoint and per-request verification. Also drop the last "canonical" references the is_scope_literal_path switch left in the JWT arm: the refusal log no longer misdiagnoses a reserved character as a malformed path, and the relocated guest_session_scopes doc carries the sentinel/label distinction for both its callers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VF3v6LA9399gNphmZaHYG3