appliance register - #114
Merged
Merged
Conversation
ecksun
commented
Aug 14, 2026
Contributor
- Add appliance token subcommand
- Support core appliance tokens
- Add appliance register subcommand
- Support registering core appliances
Creates the single-use, time-limited secret that an appliance uses to register itself with Nimbra Edge.
The token endpoint takes a realm, so expose it as --type edge|core rather than hardcoding edge. Core secrets are only accepted for the system group, so default --group to that instead of the group of the current user.
Connects to an edge-os appliance and points it at this Nimbra Edge installation using a freshly minted appliance token. Credentials for the appliance are prompted for when running interactively, defaulting to the admin user, or taken from EDGE_APPLIANCE_USER and EDGE_APPLIANCE_PASSWORD. The appliance API is not the Edge API, so its client lives here rather than in edge.rs.
Pass --type core to register a device as a core video appliance rather than an edge one, mirroring the flag on the token subcommand. The realm decides both the secret and the role the appliance is configured with, and core registrations default to the system group for the same reason core secrets do.
ecksun
force-pushed
the
appliance-register
branch
from
August 14, 2026 11:24
c679a5f to
acae4f6
Compare
pierrelefevre
approved these changes
Aug 14, 2026
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.