@senticor/hive 1.131.0 → 1.132.0
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.
- package/hive.cjs +19 -7
- package/package.json +1 -1
package/hive.cjs
CHANGED
|
@@ -9673,6 +9673,16 @@ function describeAppliedTenant(selection) {
|
|
|
9673
9673
|
return `Sent X-Hive-Tenant: ${selection.value} (${selection.source}, from ${selection.origin})`;
|
|
9674
9674
|
}
|
|
9675
9675
|
|
|
9676
|
+
// src/lib/break-glass.ts
|
|
9677
|
+
init_cjs_shims();
|
|
9678
|
+
var sent = false;
|
|
9679
|
+
function recordBreakGlass(reason) {
|
|
9680
|
+
sent = reason !== null;
|
|
9681
|
+
}
|
|
9682
|
+
function breakGlassSent() {
|
|
9683
|
+
return sent;
|
|
9684
|
+
}
|
|
9685
|
+
|
|
9676
9686
|
// src/lib/errors.ts
|
|
9677
9687
|
var CliCommandError = class extends Error {
|
|
9678
9688
|
exitCode;
|
|
@@ -9758,7 +9768,8 @@ function remoteFailureRemediation(data) {
|
|
|
9758
9768
|
return scope + "The requested tenant is not in your active memberships. " + (pinned ? "It is a saved pin, not something this command asked for \u2014 run 'hive config clear --tenant' to drop it. " : "If the tenant is saved in CLI config, run 'hive config clear --tenant'. ") + "Platform-scoped commands (hive org *, hive admin list|grant|revoke) ignore a pin already; for other platform-admin operations (mission create) omit --tenant / HIVE_TENANT. Run 'hive diag authz' to list memberships and optionally pin one with 'hive config use --tenant=<displayKey>'.";
|
|
9759
9769
|
}
|
|
9760
9770
|
if (code === "MISSION_NOT_FOUND") {
|
|
9761
|
-
return scope + "The mission id was not found in the CURRENT tenant scope. A mission is only visible under the tenant it was created in \u2014 check you are using the same --tenant / HIVE_TENANT (or self-tenant) as at create time. Run 'hive mission list --tenant <tenant>' to find the scope that owns it."
|
|
9771
|
+
return scope + "The mission id was not found in the CURRENT tenant scope. A mission is only visible under the tenant it was created in \u2014 check you are using the same --tenant / HIVE_TENANT (or self-tenant) as at create time. Run 'hive mission list --tenant <tenant>' to find the scope that owns it." + // #503: since #501 a platform admin who is not a member gets this 404 too.
|
|
9772
|
+
(breakGlassSent() ? "" : ' A platform admin who is not a member of the mission reaches it with --break-glass "<ticket reference>", audited.');
|
|
9762
9773
|
}
|
|
9763
9774
|
return void 0;
|
|
9764
9775
|
}
|
|
@@ -10000,6 +10011,7 @@ function ctx(args, opts = {}) {
|
|
|
10000
10011
|
applied: tenant !== null
|
|
10001
10012
|
});
|
|
10002
10013
|
const breakGlass = resolveBreakGlass(args);
|
|
10014
|
+
recordBreakGlass(breakGlass);
|
|
10003
10015
|
if (breakGlass && shouldEmitHuman(args)) {
|
|
10004
10016
|
noteOnce(`Note: breaking glass ("${breakGlass}"): admin access beyond your mission memberships, audited with this reason.`);
|
|
10005
10017
|
}
|
|
@@ -10271,7 +10283,7 @@ var globalArgs = {
|
|
|
10271
10283
|
apiUrl: { type: "string", description: "API base URL (env: HIVE_API_URL)" },
|
|
10272
10284
|
tenant: { type: "string", description: "Tenant selector: tenant displayKey (e.g. 'bms') or UUID, sent as X-Hive-Tenant. The legacy 'tenant:<key>' form is retired (env: HIVE_TENANT)" },
|
|
10273
10285
|
caFile: { type: "string", description: "PEM CA bundle to trust for self-signed/on-prem TLS (env: HIVE_CA_FILE; or set NODE_EXTRA_CA_CERTS)" },
|
|
10274
|
-
breakGlass: { type: "string", description: "Platform admins: reach missions beyond your memberships, audited with this reason (1-200 characters), sent as X-Hive-Break-Glass (env: HIVE_BREAK_GLASS)" },
|
|
10286
|
+
breakGlass: { type: "string", description: "Platform admins: reach missions beyond your memberships, audited with this reason: a ticket reference, no personal data (1-200 characters), sent as X-Hive-Break-Glass (env: HIVE_BREAK_GLASS)" },
|
|
10275
10287
|
insecure: { type: "boolean", description: "Skip TLS verification PROCESS-WIDE (incl. child processes like upgrade downloads) \u2014 DANGEROUS, trusted host only (env: HIVE_TLS_INSECURE)" },
|
|
10276
10288
|
format: { type: "string", description: "Output: json | table | yaml (default: table)" },
|
|
10277
10289
|
json: { type: "boolean", description: "Alias for --format json" },
|
|
@@ -10458,22 +10470,22 @@ var artifactName = injectedString(
|
|
|
10458
10470
|
true ? "hive-cli" : void 0
|
|
10459
10471
|
) || String(process.env.HIVE_CLI_ARTIFACT_NAME || "hive-cli").trim() || "hive-cli";
|
|
10460
10472
|
var packageVersion = injectedString(
|
|
10461
|
-
true ? "1.
|
|
10473
|
+
true ? "1.132.0" : void 0
|
|
10462
10474
|
) || String(process.env.HIVE_CLI_PACKAGE_VERSION || "").trim() || readPackageVersion();
|
|
10463
10475
|
var releaseVersion = injectedString(
|
|
10464
|
-
true ? "1.
|
|
10476
|
+
true ? "1.132.0" : void 0
|
|
10465
10477
|
) || String(process.env.HIVE_CLI_RELEASE_VERSION || "").trim() || packageVersion || "dev";
|
|
10466
10478
|
var releaseChannel = injectedString(
|
|
10467
10479
|
true ? "final" : void 0
|
|
10468
10480
|
) || String(process.env.HIVE_CLI_RELEASE_CHANNEL || "").trim() || (releaseVersion.includes("-rc.") ? "rc" : releaseVersion === "dev" ? "dev" : "final");
|
|
10469
10481
|
var buildCommit = injectedString(
|
|
10470
|
-
true ? "
|
|
10482
|
+
true ? "0df6dc8d14dc4effc5459e082d9eac117d375c28" : void 0
|
|
10471
10483
|
) || String(process.env.HIVE_CLI_BUILD_COMMIT || "").trim() || "unknown";
|
|
10472
10484
|
var buildTimestamp = injectedString(
|
|
10473
|
-
true ? "2026-11-
|
|
10485
|
+
true ? "2026-11-10T11:27:57Z" : void 0
|
|
10474
10486
|
) || String(process.env.HIVE_CLI_BUILD_TIMESTAMP || "").trim() || "unknown";
|
|
10475
10487
|
var ociRef = injectedString(
|
|
10476
|
-
true ? "registry.onstackit.cloud/senticor/hive-cli:1.
|
|
10488
|
+
true ? "registry.onstackit.cloud/senticor/hive-cli:1.132.0" : void 0
|
|
10477
10489
|
) || String(process.env.HIVE_CLI_OCI_REF || "").trim() || `registry.onstackit.cloud/senticor/${artifactName}:${releaseVersion}`;
|
|
10478
10490
|
var RELEASE_INFO = Object.freeze({
|
|
10479
10491
|
packageVersion,
|