Skip to content

Align API types and entrypoints with openapiv2.json spec#1

Merged
CJFWeatherhead merged 3 commits intomainfrom
align-api-with-openapiv2-spec
Apr 16, 2026
Merged

Align API types and entrypoints with openapiv2.json spec#1
CJFWeatherhead merged 3 commits intomainfrom
align-api-with-openapiv2-spec

Conversation

@CJFWeatherhead
Copy link
Copy Markdown
Member

  • Node type: replace forcedTags/invalidTags/validTags with single tags[]
  • Node type: remove lastSuccessfulUpdate (not in spec)
  • Node type: change preAuthKey from string to PreAuthKey object
  • Remove ApiMachine type and API_URL_MACHINE (legacy, not in spec)
  • Add API_URL_HEALTH for /api/v1/health endpoint
  • Remove changeNodeOwner (no /api/v1/node/{id}/user in spec)
  • Fix expirePreAuthKey to send { id } per v1ExpirePreAuthKeyRequest
  • Simplify getPreAuthKeys to single GET /api/v1/preauthkey call
  • Update NodeTags component for unified tags array
  • Remove transfer-owner UI from NodeOwner (endpoint removed)
  • Update node tag filtering in funcs.ts

- Node type: replace forcedTags/invalidTags/validTags with single tags[]
- Node type: remove lastSuccessfulUpdate (not in spec)
- Node type: change preAuthKey from string to PreAuthKey object
- Remove ApiMachine type and API_URL_MACHINE (legacy, not in spec)
- Add API_URL_HEALTH for /api/v1/health endpoint
- Remove changeNodeOwner (no /api/v1/node/{id}/user in spec)
- Fix expirePreAuthKey to send { id } per v1ExpirePreAuthKeyRequest
- Simplify getPreAuthKeys to single GET /api/v1/preauthkey call
- Update NodeTags component for unified tags array
- Remove transfer-owner UI from NodeOwner (endpoint removed)
- Update node tag filtering in funcs.ts
Headscale 0.28 stores pre-auth keys as bcrypt hashes rather than
plaintext. The full key is only available in the API response at
creation time.

- Add PreAuthKeyModal: shown after key creation with the full key
  and a copy-to-clipboard control
- UserListPreAuthKeys: trigger modal on successful key creation
- UserListPreAuthKey: display truncated hash prefix instead of
  offering a copy button (stored key is no longer usable directly)
- Deploy page: replace direct key selector with a manual paste input
  and warning that listed keys are hashed placeholders
@CJFWeatherhead CJFWeatherhead merged commit 4b83bcd into main Apr 16, 2026
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