Commit 1bc9ef3
hardening(identity): round-26 UCP signing reviewer findings
verify_ucp_profile now treats explicit JSON null on JWK.use / JWK.alg as
absent (skip-on-null) rather than rejecting via joserfc's stricter
KeySet.import_key_set validation; both fields are optional per RFC 7517
and the Node sibling now uses ``!= null`` semantics, so a JWK with
``"use": null`` / ``"alg": null`` should pass language-symmetric verify.
The ``is not None`` checks above already skip null; we now also drop the
explicit-null entries before handing the JWK to joserfc so its key
parameter registry doesn't reject them downstream.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 48bced1 commit 1bc9ef3
2 files changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
433 | 437 | | |
434 | 438 | | |
435 | 439 | | |
| |||
444 | 448 | | |
445 | 449 | | |
446 | 450 | | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
447 | 456 | | |
448 | 457 | | |
449 | 458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
759 | 792 | | |
760 | 793 | | |
761 | 794 | | |
| |||
0 commit comments