Skip to content

An instance created with an empty list of SSH keys has none of its profile's keys #133

Closed

Description

@l-nmch

Context

Since phorge-fr/Hangar#434 an instance that says nothing about its SSH keys takes its profile's, and an instance that says an empty list has none (sshPublicKeys: [] is "no key"). The API writes sshPublicKeys on instance creation only when the list is not empty, so an instance created with [] on a profile that has keys cannot opt out of them; the PATCH of an instance does write [].

Scope

Tell an absent sshPublicKeys from an empty one on the creation of an instance (the decoding and the store), write [] when the person gave it, and keep leaving the field out when it is absent. Say in the OpenAPI and the reference page what each means. Tests with both. Check what the console sends before changing it: a client that always sends [] would then override every profile's keys, so the console must send the field only when the person typed keys.

Done when

An instance created with sshPublicKeys: [] on a profile that has keys has none of them, and one created without the field has the profile's.

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 empty SSH keys on instance creation, by a subagent, reviewed, released as 0.15.1 (estimated)

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