Skip to content

Read the settings of an instance from its status #127

Closed

Description

@l-nmch

Context

phorge-fr/Hangar#434 (PR phorge-fr/Hangar#454) lets a profile carry secure boot, nesting and SSH keys, so the Instance kind no longer defaults nesting, secureBoot and sshPublicKeys in its XRD: an absent field means the instance did not say and the profile (or Incus's default) applies. The API reads spec.nesting, spec.secureBoot and spec.sshPublicKeys and relies on the XRD defaults, so after that change an instance created through the API without secureBoot would be shown with secureBoot: false while the VM has secure boot on.

Scope

  • Read the settings in force from status.nesting, status.secureBoot and status.sshPublicKeys of the Instance, falling back to spec and then to the defaults (nesting off, secure boot on, no key) while the status is not there yet, so the API keeps working on both sides of the Hangar change.
  • Tests with both shapes of object (stored defaults, and absent fields with the status).
  • Documentation.

Must be released and deployed before phorge-fr/Hangar#454 is merged. Part of the profile settings chain, ahead of #116.

Done when

An instance read through the API shows the settings the VM really has, before and after phorge-fr/Hangar#454.

Activity

  1. added this to the 2027-Q1 milestone on Nov 11, 2026
  2. self-assigned this
    on Nov 11, 2026
  3. added
    area/api
    on Nov 11, 2026
  4. added theissue type on Nov 11, 2026
  5. l-nmch commented on Nov 11, 2026

    @l-nmch
    MemberAuthor

    /time 2h read the settings of an instance from its status, release 0.13.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/api

Type

Projects

  • Status
    No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions