Skip to content

Use the documented DID method policy for UCAN verification - #392

Closed
samgbafa wants to merge 19 commits into
mainfrom
skgbafa/tc-1500-did-allow-list
Closed

samgbafa wants to merge 19 commits into
mainfrom
skgbafa/tc-1500-did-allow-list

Conversation

@samgbafa

@samgbafa samgbafa commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Apply the documented node DID-method policy consistently during UCAN verification. Supported methods are did:key with Ed25519 keys, did:pkh in the eip155 namespace, and Ed25519 did:jwk. Credential issuer keys remain configured separately.

The retired network_methods setting no longer changes the policy; /info reports network_methods as false.

Details: TC-1500

Naomi added 2 commits October 20, 2026 22:18
Replace the network_methods gate with a fixed allow-list: did:key, did:pkh and did:jwk. Refuse every other method, did:pkh outside the eip155 namespace, and did:key outside Ed25519, before any resolver lookup at each UCAN verification and DID resolution site. Remove the network_methods configuration logic. DidResolutionConfig stays as an empty section so existing configuration files still parse; the /info field is a constant false.

Tests: a table test over the resolution sites with a counting resolver proves refusal with zero lookups; an app-startup test checks that the retired environment variable does not enable any method.
Changelog, README, tinycloud.toml and the delegation-flow gate now describe the fixed allow-list and the retired network_methods setting.
@samgbafa

Copy link
Copy Markdown
Contributor Author

CHANGES REQUESTED: see TC-1500 (head 33a39cd)

@samgbafa

Copy link
Copy Markdown
Contributor Author

APPROVE: see TC-1500 (reviewed exact head 87de5f1)

@samgbafa

Copy link
Copy Markdown
Contributor Author

Guard check from TC-1452 (skgbafa/tc-1452-held-admission at cf100fc) merged with this branch's head (87de5f1, no conflicts). signature_primitives_are_pinned_to_reviewed_sites fails with two differences in SIGNATURE_PRIMITIVES:

  1. Missing from expected: held_email.rs :: recover_eip191_address :: recover_from_prehash. Add it.
  2. Stale in expected: policy_v3.rs :: verify_issuer_signature :: verify_bytes. The call site now uses verify_strict. Replace it with policy_v3.rs :: verify_issuer_signature :: verify_strict.

verify_strict is not in the list on this branch. Add it with the entry above.

Keep both policy_v3.rs :: ingest_status_checkpoint_unmounted :: verify_detached_ed25519 entries. There are two call sites.

The other 11 tests in did_resolution_single_entry pass with the merge. Nothing else on this branch was changed.

@samgbafa

Copy link
Copy Markdown
Contributor Author

APPROVE: see TC-1500 (reviewed exact head ce7f533)

@samgbafa samgbafa changed the title TC-1500: fixed DID method allow-list for UCAN resolution Use the documented DID method policy for UCAN verification Nov 19, 2026
@samgbafa

Copy link
Copy Markdown
Contributor Author

Superseded by #677.

@samgbafa samgbafa closed this Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant