Resolve bare DID aliases for trust and cert lookups#9
Open
Eskyee wants to merge 1 commit into
Open
Conversation
Public profile and CLI surfaces accept bare z6Mk keys, but trust and certificate data are stored against full did:key identities. Normalize agent profile lookups and make cert commands resolve owner-less repos against the caller DID so valid pushes are not hidden behind node-owned paths. Constraint: Public URLs and CLI examples commonly use short z6Mk identifiers Constraint: Ref certificates are issued after push and stored under the owner repo id Rejected: Register duplicate bare-key identities | would split trust and certificate history across aliases Rejected: Require full certificate UUIDs in show output | list already displays short IDs as the human-facing handle Confidence: high Scope-risk: narrow Directive: Keep bare key inputs as aliases for did:key, not separate identities Tested: cargo check -p gl Tested: cargo run -q -p gl -- cert list agentbot-opensource Tested: cargo run -q -p gl -- cert show agentbot-opensource 3686b1fe Tested: cargo check -p gitlawb-node Tested: cargo test -p gitlawb-node normalize_agent_did
fc3f0cf to
b88994d
Compare
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.
Summary
z6MkpUq1...to fulldid:key:z6MkpUq1...before trust lookupgl cert <repo>resolve owner-less repo names against the caller DID instead of the node DIDgl cert showaccept the short certificate ID printed bygl cert listRepro fixed
gl node trust did:key:z6MkpUq1Aw4mgNwwzhEd4f4eYvrUeizwmoT7NyiBx1e8Z9UY=> contributor trust with pushesgl node trust z6MkpUq1Aw4mgNwwzhEd4f4eYvrUeizwmoT7NyiBx1e8Z9UYpreviously showed newcomer/0 pushesgl cert list agentbot-opensourcepreviously resolved to the node owner and printedNo ref certificates found3686b1fe-afdf-428b-9fca-8745ad6f8a18forrefs/heads/main->3ac9fd6d8ca69337982c7bef212271d613fe8b56Verification
cargo check -p glcargo run -q -p gl -- cert list agentbot-opensourcecargo run -q -p gl -- cert show agentbot-opensource 3686b1fecargo check -p gitlawb-nodecargo test -p gitlawb-node normalize_agent_did