Skip to content

feat: add console device registration for local profile activation#1231

Merged
madhavilosetty-intel merged 1 commit intonextfrom
device-registry
Apr 13, 2026
Merged

feat: add console device registration for local profile activation#1231
madhavilosetty-intel merged 1 commit intonextfrom
device-registry

Conversation

@madhavilosetty-intel
Copy link
Copy Markdown
Contributor

Add orchestrate With Console flow so local profile activation (--profile file --auth-endpoint) registers the device with the console.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the local profile activation flow to optionally register the device with the Console (when --profile is used locally alongside Console auth flags / --auth-endpoint), and extends local deactivation to optionally delete the device from the Console when auth is provided.

Changes:

  • Add “orchestrate with Console” logic to local profile activation, including password resolution, optional Console authentication, device registration, and cleanup on CIRA failure.
  • Update local deactivation to preserve an HTTP(S) --url for Console deletion while still executing the local unprovision path, and optionally delete the device from the Console after local deactivation.
  • Add/extend unit tests for the new activation/deactivation Console behaviors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pkg/heci/linux.go Formatting-only change (blank line).
internal/rps/rps.go Formatting-only change (blank line).
internal/commands/deactivate.go Preserve Console URL during --local, pre-resolve GUID, and optionally delete device from Console after local deactivation.
internal/commands/deactivate_test.go Add tests for Console URL preservation, Console deletion behavior, and update mocks for GUID resolution.
internal/commands/activate/activate.go Add local “orchestrate with Console” flow: resolve passwords, optionally authenticate/register device, and update TLS flag resolution.
internal/commands/activate/activate_test.go Update tests for resolveConsoleInfo signature change and add coverage for local Console URL validation + local TLS enforcement.
internal/cli/cli_test.go Formatting-only change (blank line).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/commands/deactivate.go Outdated
Comment thread internal/commands/deactivate.go Outdated
Comment thread internal/commands/activate/activate.go Outdated
@madhavilosetty-intel madhavilosetty-intel force-pushed the device-registry branch 2 times, most recently from c944089 to 9ac64ee Compare March 31, 2026 17:07
@rsdmike rsdmike force-pushed the device-registry branch 3 times, most recently from d495fc5 to 186b3f6 Compare April 13, 2026 20:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/commands/deactivate.go
Comment thread internal/commands/activate/activate.go Outdated
Comment thread internal/commands/deactivate_test.go Outdated
@madhavilosetty-intel
Copy link
Copy Markdown
Contributor Author

  • Device appears in console before activation completes
  • Re-activation updates existing device
  • Deactivation deletes device from console
  • Tested on both AMT 19 and AMT 15
rpc.exe activate --local --profile <./yourfile.yaml> --key <yourkey> --auth-endpoint <protocol>://<console-address>:<port>/api/v1/authorize --auth-username=<username> --auth-password=<password> --skip-amt-cert-check -v

rpc.exe deactivate --local --auth-endpoint <protocol>://<console-address>:<port>/api/v1/authorize --auth-username=<username> --auth-password=<password> --skip-amt-cert-check -v

Add orchestrateWithConsole flow so local profile activation (--profile file --auth-endpoint)
registers the device with the console.
@madhavilosetty-intel madhavilosetty-intel merged commit 1ea6567 into next Apr 13, 2026
13 checks passed
@madhavilosetty-intel madhavilosetty-intel deleted the device-registry branch April 13, 2026 23:11
RosieAMT pushed a commit that referenced this pull request Apr 13, 2026
# [3.0.0-beta.16](v3.0.0-beta.15...v3.0.0-beta.16) (2026-04-13)

### Features

* add console device registration for local profile activation ([#1231](#1231)) ([1ea6567](1ea6567))
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.

3 participants