Repository navigation
fix(setup): don't count OpenVTC's own admin did:key as a persona in the context probe - #635
Merged
Merged
Conversation
…he context probe The probe listed every DID in the context, so the long-term admin did:key setup rotates into it just before probing made every fresh context read as holding one persona (#632, a regression from the move to vta/dids/list in #623). Filter to the persona methods (webvh, scid:vh), shared with the rebuild plan as context_probe::PERSONA_DID_METHODS. The class filter is not usable: the VTA only records a class for did:webs. Adds a MockVta regression test (fails on the old probe with the admin did:key reported as a persona) and checks a minted did:webvh persona still reads as occupied. Also documents the Linux runtime libraries (libpcsclite1, libdbus-1-3) the binary needs before it starts (#633). Fixes #632 Refs #633 Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
|
Backport branch created but failed to create PR. (see action log for full response) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #632. Refs #633 (documentation only; the binary build lives in the download pipeline, not here).
#632: first-time setup stops at "already in use"
context_probe::proberuns after setup has rotated the ephemeral setup DID into the long-term admindid:key, which the VTA records in the same context. Since #623 (list_dids_webvh→vta/dids/list), the probe counted every DID, so every fresh context read as "1 persona".vta/dids/listto the persona methodswebvhandscid:vh, the same set the rebuild plan already used. Both now sharecontext_probe::PERSONA_DID_METHODS, so they can't drift apart.class: "persona": the VTA records a class only fordid:webs(webvh summaries carryclass: None), so it would hide every real webvh persona and read occupied contexts as empty.Tests (
mockvta_bootstrap_e2e,--include-ignored):probe_reads_a_fresh_context_as_empty_after_admin_rotation: rotates the admin intoctx1againstMockVta, asserts the admindid:keyis listed in the context (the precondition), then asserts the probe returnsEmpty. Against the old probe it fails withOccupied { persona_dids: ["did:key:z6Mk…"] }.persona_did_webvh_mint_round_tripsnow also asserts a minteddid:webvhpersona makes the probe returnOccupied.#633: Linux runtime libraries
The README's Prerequisites gain a "Linux runtime libraries" section:
libpcsclite.so.1(fromopenpgp-card) andlibdbus-1.so.3(fromdbus-secret-service, linked dynamically, not vendored), with package names for Debian/Ubuntu, Fedora and Arch. Loading PC/SC at runtime, or shipping a no-token download, is a separate change.Needs a backport to
release/0.9: the bug ships in 0.9.0.