Skip to content

V1.2.7 - #13

Open
gm852 wants to merge 2 commits into
mainfrom
v1.2.7
Open

V1.2.7#13
gm852 wants to merge 2 commits into
mainfrom
v1.2.7

Conversation

@gm852

@gm852 gm852 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Fixes for Headscale v0.28 API keys

What changed

  • apiKeyUtils.ts — normalize keys, classify hskey-api vs hskey-auth vs legacy, match masked prefixes, prefer expire-by-id
  • Auth — always send Bearer <normalized key>; never let caller headers drop Bearer
  • Login / add account — clearer errors (pre-auth key pasted, network vs auth, v0.28 format hint)
  • API keys screen — expire by id when available; match active key against masked prefixes
  • UI copy — points at headscale apikeys create and the hskey-api-… format

Support for Headscale v0.29

API / versioning

  • New v0.29 entry in apiVersions.ts
  • Version selectors include 0.29.x (default)
  • isV029OrHigher() helper; unknown versions fall back to v0.29

Auth (main API change)

  • Registration uses POST /api/v1/auth/register with { user, authId }
  • Approve / reject via /api/v1/auth/approve and /reject
  • Register modal accepts auth IDs or full headscale auth … commands
  • Approve / Reject buttons on v0.29

Policy / ACL

  • POST /api/v1/policy/check before save on v0.29+
  • Surfaces grants / nodeAttrs / tests / sshTests validation errors
  • ACL screen notes v0.29 policy features

Device UI

  • Expiry shows Never for null / zero-dates (v0.29 backfill)
  • Shows raw Hostname when it differs from MagicDNS givenName
  • Hides “Change user” on v0.28+ (MoveNode removed)

+ Minor QOL Fixes

@github-actions

Copy link
Copy Markdown
==================================================
||        ✅ ESLint Checks Passed! 🎉          ||
==================================================

All linting checks completed successfully. You can now request a review.

@gm852 gm852 added the enhancement New feature or request label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant