Commit 05018cc
fix(identity): validate kid/kty are non-empty strings in UCPSigningKey.from_jwk
Previously only checked key presence, not type. A JWK with kid=None or
kid="" would fall through to the dataclass and serialize to invalid JSON
during JCS canonicalization (signing would still succeed, producing a
profile that verifiers cannot parse). Tighter validation matches the node
sibling's `typeof jwk.kid !== 'string' || !jwk.kid` check.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1b40810 commit 05018cc
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments