@wayai/cli 0.3.298 → 0.3.299
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/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38444,7 +38444,7 @@ function printCustomerReport(customer, dryRun) {
|
|
|
38444
38444
|
console.log(`connections: ${c.connections} (${auth}) http=${c.http} non_default_port=${c.non_default_port} wayai_host=${c.wayai_host} body_placement=${c.body_placement} literal_header_secret=${c.literal_header_secret} secret_url=${c.secret_url}`);
|
|
38445
38445
|
console.log(`policies (${customer.policies.length}; old ciphertext kept ${customer.undo_days} days for revert):`);
|
|
38446
38446
|
for (const p of customer.policies) {
|
|
38447
|
-
const subject = p.credential_id ? `credential ${p.credential_id}` : "value";
|
|
38447
|
+
const subject = p.credential_id ? `credential ${p.credential_id}` : p.headers ? `literal header ${p.headers.join(", ")} \u2192` : "value";
|
|
38448
38448
|
console.log(` ${subject} ${p.field}${p.spans_hubs ? " (SPANS HUBS)" : ""}: ${p.reasons.length > 0 ? `stays (${p.reasons.join(", ")})` : dryRun ? "would move" : "approved"}`);
|
|
38449
38449
|
if (p.policy) {
|
|
38450
38450
|
if (p.policy.legacy_origin) console.log(" LEGACY ORIGIN (http or another port, moved as it is)");
|
|
@@ -38558,7 +38558,8 @@ async function runVaultImport(flagArgs) {
|
|
|
38558
38558
|
for (const l of data.legacy_rows ?? []) console.log(` ${l.field} ${l.stored}: rows=${l.rows} (stays as stored: the vault does not hold it)`);
|
|
38559
38559
|
for (const v of data.values) {
|
|
38560
38560
|
const expiry = v.expires_at === void 0 ? "" : ` expires_at=${v.expires_at ?? "none"}`;
|
|
38561
|
-
|
|
38561
|
+
const header = v.headers ? ` (from header ${v.headers.join(", ")})` : "";
|
|
38562
|
+
console.log(` value ${v.field}${header} \u2192 ${v.secret_id ?? "-"}: ${v.outcome}${v.code ? ` (${v.code})` : ""}${expiry}`);
|
|
38562
38563
|
for (const r of v.rows) console.log(` hub=${r.hub_id} connection=${r.connection_id}: ${r.outcome}`);
|
|
38563
38564
|
}
|
|
38564
38565
|
const credentials = data.credentials ?? [];
|