Skip to content

appliance register - #114

Merged
ecksun merged 4 commits into
masterfrom
appliance-register
Aug 14, 2026
Merged

appliance register#114
ecksun merged 4 commits into
masterfrom
appliance-register

Conversation

@ecksun

@ecksun ecksun commented Aug 14, 2026

Copy link
Copy Markdown
Contributor
  • Add appliance token subcommand
  • Support core appliance tokens
  • Add appliance register subcommand
  • Support registering core appliances

ecksun added 4 commits August 14, 2026 13:24
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
ecksun force-pushed the appliance-register branch from c679a5f to acae4f6 Compare August 14, 2026 11:24
@ecksun
ecksun merged commit acae4f6 into master Aug 14, 2026
8 checks passed
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.

2 participants