Repository navigation
Add device external identities and org iroh endpoints - #1
Merged
Merged
Conversation
This was referenced Aug 17, 2026
Adds CLI support for the two concepts introduced in nerves-hub/nerves_hub_web#2899: - `nh iroh-endpoint` (alias `iroh`): list / register / show / delete an organization's iroh endpoint ids, addressed by the endpoint id. - `nh device external-identities` (alias `identities`): list the keys a device reports holding on other networks, with --service/--instance filters. Read-only, mirroring the server's read-only endpoint. internal/api gains ExternalIdentity / IrohEndpoint types and the matching request methods. Registration takes an optional --user-email and --detail key=value metadata. The server endpoints are from an unmerged PR and will 404 until it ships. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
joshk
force-pushed
the
feat/external-identities-and-iroh-endpoints
branch
from
August 21, 2026 01:10
fda3689 to
a79dfdd
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.
What
Adds
nhCLI support for the two concepts introduced in nerves-hub/nerves_hub_web#2899:nh iroh-endpoint(aliasiroh) withlist/register/show/delete, managing an organization's registry of iroh endpoint ids, addressed by the endpoint id itself (not a row id).nh device external-identities <device>(aliasidentities), a read-only list of the keys a device reports holding on networks NervesHub does not run (iroh / NetBird / Tailscale / WireGuard), with--serviceand--instancefilters.Both honour
-o jsonand the usual--org/--productscoping.nh iroh-endpointlist—--owner device|user|none,--search <text>register <identifier>—--instance,--user-email, repeatable--detail key=valueshow <identifier>,delete <identifier>(with-y/ confirmation)API
internal/api/external_identity.goaddsExternalIdentity,IrohEndpoint, andIrohEndpointOwnertypes plus the request methods for:GET /orgs/:org/products/:product/devices/:identifier/external_identitiesGET /orgs/:org/iroh_endpointsPOST /orgs/:org/iroh_endpointsGET /orgs/:org/iroh_endpoints/:identifierDELETE /orgs/:org/iroh_endpoints/:identifierServer dependency
Tests
11 new tests cover request paths/methods/query/body, table + JSON output,
--ownerand--detailvalidation, and delete confirm/abort. Full suite,go vet, andgofmtare green.🤖 Generated with Claude Code