@camstack/system 1.2.398 → 1.2.400
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -88038,18 +88038,6 @@ var KEY_TO_SECTION = {
|
|
|
88038
88038
|
};
|
|
88039
88039
|
/** Bytes of a generated cluster secret (D802) — 256 bits, base64url (43 chars). */
|
|
88040
88040
|
var GENERATED_SECRET_BYTES = 32;
|
|
88041
|
-
var STATE_LABELS = {
|
|
88042
|
-
authenticated: "authenticated",
|
|
88043
|
-
legacy: "legacy hash only — update the agent",
|
|
88044
|
-
unauthenticated: "not authenticated — enter the cluster secret in this agent"
|
|
88045
|
-
};
|
|
88046
|
-
/** The Cluster page's live line per node (D802). Mode is always enforced (D821). */
|
|
88047
|
-
function describeMeshStatus(status) {
|
|
88048
|
-
if (status === null) return "The mesh status is available on the hub only.";
|
|
88049
|
-
const head = "Enforced: a node that has not authenticated is refused.";
|
|
88050
|
-
if (status.nodes.length === 0) return `${head}\nNo other node is connected.`;
|
|
88051
|
-
return `${head}\n${status.nodes.map((n) => `• ${n.nodeId}: ${STATE_LABELS[n.state] ?? n.state}`).join("\n")}`;
|
|
88052
|
-
}
|
|
88053
88041
|
/**
|
|
88054
88042
|
* Auth keys holding a list of networks (CIDR or single address). A save with
|
|
88055
88043
|
* an entry that does not parse is REFUSED whole: dropping it would trust less
|
|
@@ -88286,13 +88274,7 @@ var SystemConfigAddon = class extends require_dist.BaseAddon {
|
|
|
88286
88274
|
type: "password",
|
|
88287
88275
|
key: CLUSTER_SECRET_FIELD,
|
|
88288
88276
|
label: "Cluster secret",
|
|
88289
|
-
description: "
|
|
88290
|
-
}, {
|
|
88291
|
-
type: "info",
|
|
88292
|
-
key: "meshAuthStatus",
|
|
88293
|
-
label: "Mesh authentication",
|
|
88294
|
-
content: describeMeshStatus(getProcessMeshAuthStatus()),
|
|
88295
|
-
variant: "info"
|
|
88277
|
+
description: "Reveal and copy into each agent to pair. Saving a new value rotates it for every agent."
|
|
88296
88278
|
}]
|
|
88297
88279
|
}
|
|
88298
88280
|
] };
|
|
@@ -88028,18 +88028,6 @@ var KEY_TO_SECTION = {
|
|
|
88028
88028
|
};
|
|
88029
88029
|
/** Bytes of a generated cluster secret (D802) — 256 bits, base64url (43 chars). */
|
|
88030
88030
|
var GENERATED_SECRET_BYTES = 32;
|
|
88031
|
-
var STATE_LABELS = {
|
|
88032
|
-
authenticated: "authenticated",
|
|
88033
|
-
legacy: "legacy hash only — update the agent",
|
|
88034
|
-
unauthenticated: "not authenticated — enter the cluster secret in this agent"
|
|
88035
|
-
};
|
|
88036
|
-
/** The Cluster page's live line per node (D802). Mode is always enforced (D821). */
|
|
88037
|
-
function describeMeshStatus(status) {
|
|
88038
|
-
if (status === null) return "The mesh status is available on the hub only.";
|
|
88039
|
-
const head = "Enforced: a node that has not authenticated is refused.";
|
|
88040
|
-
if (status.nodes.length === 0) return `${head}\nNo other node is connected.`;
|
|
88041
|
-
return `${head}\n${status.nodes.map((n) => `• ${n.nodeId}: ${STATE_LABELS[n.state] ?? n.state}`).join("\n")}`;
|
|
88042
|
-
}
|
|
88043
88031
|
/**
|
|
88044
88032
|
* Auth keys holding a list of networks (CIDR or single address). A save with
|
|
88045
88033
|
* an entry that does not parse is REFUSED whole: dropping it would trust less
|
|
@@ -88276,13 +88264,7 @@ var SystemConfigAddon = class extends BaseAddon {
|
|
|
88276
88264
|
type: "password",
|
|
88277
88265
|
key: CLUSTER_SECRET_FIELD,
|
|
88278
88266
|
label: "Cluster secret",
|
|
88279
|
-
description: "
|
|
88280
|
-
}, {
|
|
88281
|
-
type: "info",
|
|
88282
|
-
key: "meshAuthStatus",
|
|
88283
|
-
label: "Mesh authentication",
|
|
88284
|
-
content: describeMeshStatus(getProcessMeshAuthStatus()),
|
|
88285
|
-
variant: "info"
|
|
88267
|
+
description: "Reveal and copy into each agent to pair. Saving a new value rotates it for every agent."
|
|
88286
88268
|
}]
|
|
88287
88269
|
}
|
|
88288
88270
|
] };
|