mirror of
https://github.com/tale/headplane.git
synced 2026-08-18 00:57:54 +00:00
fix: handle registration keys on headscale 0.29+
Closes HP-555.
This commit is contained in:
@@ -82,6 +82,7 @@ describe("capabilitiesFor", () => {
|
||||
preAuthKeysHaveStableIds: true,
|
||||
nodeTagsAreFlat: true,
|
||||
nodeOwnerIsImmutable: true,
|
||||
registerKeyIncludesAuthReqPrefix: false,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -91,10 +92,16 @@ describe("capabilitiesFor", () => {
|
||||
);
|
||||
});
|
||||
|
||||
test("0.29.0 enables the prefixed AuthID register key", () => {
|
||||
const caps = capabilitiesFor(parseServerVersion("0.29.0"));
|
||||
expect(caps.registerKeyIncludesAuthReqPrefix).toBe(true);
|
||||
});
|
||||
|
||||
test("0.27.1 lacks every 0.28-gated capability", () => {
|
||||
const caps = capabilitiesFor(parseServerVersion("0.27.1"));
|
||||
expect(caps.preAuthKeysHaveStableIds).toBe(false);
|
||||
expect(caps.nodeTagsAreFlat).toBe(false);
|
||||
expect(caps.nodeOwnerIsImmutable).toBe(false);
|
||||
expect(caps.registerKeyIncludesAuthReqPrefix).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user