@indigoai-us/hq-cloud 6.16.19 → 6.16.20
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/bin/sync-runner.d.ts +1 -21
- package/dist/bin/sync-runner.d.ts.map +1 -1
- package/dist/bin/sync-runner.js +17 -61
- package/dist/bin/sync-runner.js.map +1 -1
- package/dist/cli/share-presign-transport.test.d.ts +22 -0
- package/dist/cli/share-presign-transport.test.d.ts.map +1 -0
- package/dist/cli/share-presign-transport.test.js +237 -0
- package/dist/cli/share-presign-transport.test.js.map +1 -0
- package/dist/cli/share.d.ts.map +1 -1
- package/dist/cli/share.js +17 -3
- package/dist/cli/share.js.map +1 -1
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js +9 -0
- package/dist/cli/sync.js.map +1 -1
- package/dist/cli/sync.test.js +123 -0
- package/dist/cli/sync.test.js.map +1 -1
- package/dist/company-vault-transport.d.ts +69 -0
- package/dist/company-vault-transport.d.ts.map +1 -0
- package/dist/company-vault-transport.js +89 -0
- package/dist/company-vault-transport.js.map +1 -0
- package/dist/company-vault-transport.test.d.ts +12 -0
- package/dist/company-vault-transport.test.d.ts.map +1 -0
- package/dist/company-vault-transport.test.js +97 -0
- package/dist/company-vault-transport.test.js.map +1 -0
- package/dist/types.d.ts +18 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Company-vault object-transport selection, in one neutral module.
|
|
3
|
+
*
|
|
4
|
+
* Every caller that pushes or pulls a COMPANY vault (`cmp_*`) — the long-running
|
|
5
|
+
* `hq-sync-runner`, AND the one-shot `share()` / `sync()` paths that hq-cli and
|
|
6
|
+
* standalone `hq sync` drive — must make the same transport decision before it
|
|
7
|
+
* resolves an entity context: company vaults use the presigned-URL transport, so
|
|
8
|
+
* `resolveEntityContext` skips `POST /sts/vend` for them (HQ-59). This module is
|
|
9
|
+
* the single home for that decision.
|
|
10
|
+
*
|
|
11
|
+
* It lives at the top of `src/` rather than under `src/bin/` on purpose:
|
|
12
|
+
* `src/bin/sync-runner.ts` already imports `src/cli/share.ts`, so if `share.ts`
|
|
13
|
+
* reached back into `sync-runner.ts` for the selection it would form an import
|
|
14
|
+
* cycle. A neutral module both sides depend on avoids that.
|
|
15
|
+
*/
|
|
16
|
+
import { type ContextRefresherFactory, type ObjectIOFactory, type PresignTransportClient } from "./object-io.js";
|
|
17
|
+
import type { VaultServiceConfig } from "./types.js";
|
|
18
|
+
/**
|
|
19
|
+
* Resolve the object-transport factory for this sync session.
|
|
20
|
+
*
|
|
21
|
+
* Company vaults (`cmp_*`) ALWAYS use the presigned-URL transport: the client
|
|
22
|
+
* holds no raw AWS credentials (it fetches short-lived signed URLs) and every
|
|
23
|
+
* read/write is authorized server-side per-file, so it never hits the 2048-char
|
|
24
|
+
* STS session-policy ceiling that produced the HQ-59 lockout. The STS-direct-S3
|
|
25
|
+
* (`S3SdkObjectIO`) path for company vaults is RETIRED — there is no env
|
|
26
|
+
* override or rollback lever that can route a company vault back to direct S3.
|
|
27
|
+
* (The former `HQ_SYNC_PRESIGN_TRANSPORT` kill-switch is gone with this change.)
|
|
28
|
+
*
|
|
29
|
+
* Personal vaults (`prs_*`) KEEP the direct-S3/STS path: the membership-gated
|
|
30
|
+
* `list`/`presign` endpoints 403 for the membership-less vend-self model, and a
|
|
31
|
+
* single-owner personal vault has no ACL-scale problem. That cmp_/prs_ split
|
|
32
|
+
* lives inside {@link presignObjectIOFactory}.
|
|
33
|
+
*
|
|
34
|
+
* Returns `null` only when the client predates the presign methods (never in a
|
|
35
|
+
* shipped build); the caller then resets to the SDK default factory.
|
|
36
|
+
*/
|
|
37
|
+
export declare function selectObjectIOFactory(client: Partial<PresignTransportClient>, refresherFor?: ContextRefresherFactory, forceRefresherFor?: ContextRefresherFactory): ObjectIOFactory | null;
|
|
38
|
+
/**
|
|
39
|
+
* Install the company-vault object transport for a caller and record the choice
|
|
40
|
+
* on `vaultConfig.companyVaultUsesPresign`.
|
|
41
|
+
*
|
|
42
|
+
* This is the single supported way to select the company-vault transport. It
|
|
43
|
+
* keeps two things that must always agree derived from ONE value: the installed
|
|
44
|
+
* `ObjectIO` factory (how bytes move) and the `companyVaultUsesPresign` flag
|
|
45
|
+
* (whether `resolveEntityContext` skips the `cmp_` STS vend). A presign-capable
|
|
46
|
+
* client installs `PresignObjectIO` for `cmp_` and sets the flag `true`; a
|
|
47
|
+
* pre-presign client installs the refresher-aware S3 factory and sets it
|
|
48
|
+
* `false`, so company vaults keep vending. They can never disagree because both
|
|
49
|
+
* come from the same `selectObjectIOFactory` result.
|
|
50
|
+
*
|
|
51
|
+
* The flag is also the record that a decision has already been made. The
|
|
52
|
+
* sync-runner sets it — `true` or an explicit `false` — on the SAME
|
|
53
|
+
* `vaultConfig` object reference it later hands down to `share()` / `sync()`, so
|
|
54
|
+
* re-entry through those one-shot paths must be a strict no-op: it must not
|
|
55
|
+
* override the runner's decision or install a second factory over the runner's.
|
|
56
|
+
* `undefined` is therefore the only "decide now" signal, and it is exactly the
|
|
57
|
+
* state a one-shot hq-cli caller (which never ran the runner's selection)
|
|
58
|
+
* arrives in — which is the defect this closes (Sentry hq-cli 7711917661): the
|
|
59
|
+
* one-shot company push kept vending STS write creds and aborted on the
|
|
60
|
+
* `POLICY_WRITE_SCOPE_TRUNCATED` 422 instead of using presign.
|
|
61
|
+
*
|
|
62
|
+
* @param deps.createClient Inject the presign-capable client. The sync-runner
|
|
63
|
+
* passes its already-built `VaultClient` so no second client is created;
|
|
64
|
+
* tests stub it. Defaults to `new VaultClient(vaultConfig)`.
|
|
65
|
+
*/
|
|
66
|
+
export declare function ensureCompanyVaultTransport(vaultConfig: VaultServiceConfig, deps?: {
|
|
67
|
+
createClient?: (config: VaultServiceConfig) => Partial<PresignTransportClient>;
|
|
68
|
+
}): void;
|
|
69
|
+
//# sourceMappingURL=company-vault-transport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-vault-transport.d.ts","sourceRoot":"","sources":["../src/company-vault-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC5B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,CAAC,sBAAsB,CAAC,EACvC,YAAY,CAAC,EAAE,uBAAuB,EACtC,iBAAiB,CAAC,EAAE,uBAAuB,GAC1C,eAAe,GAAG,IAAI,CAYxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,kBAAkB,EAC/B,IAAI,GAAE;IACJ,YAAY,CAAC,EAAE,CACb,MAAM,EAAE,kBAAkB,KACvB,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACjC,GACL,IAAI,CAyBN"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Company-vault object-transport selection, in one neutral module.
|
|
3
|
+
*
|
|
4
|
+
* Every caller that pushes or pulls a COMPANY vault (`cmp_*`) — the long-running
|
|
5
|
+
* `hq-sync-runner`, AND the one-shot `share()` / `sync()` paths that hq-cli and
|
|
6
|
+
* standalone `hq sync` drive — must make the same transport decision before it
|
|
7
|
+
* resolves an entity context: company vaults use the presigned-URL transport, so
|
|
8
|
+
* `resolveEntityContext` skips `POST /sts/vend` for them (HQ-59). This module is
|
|
9
|
+
* the single home for that decision.
|
|
10
|
+
*
|
|
11
|
+
* It lives at the top of `src/` rather than under `src/bin/` on purpose:
|
|
12
|
+
* `src/bin/sync-runner.ts` already imports `src/cli/share.ts`, so if `share.ts`
|
|
13
|
+
* reached back into `sync-runner.ts` for the selection it would form an import
|
|
14
|
+
* cycle. A neutral module both sides depend on avoids that.
|
|
15
|
+
*/
|
|
16
|
+
import { presignObjectIOFactory, setObjectIOFactory, stsObjectIOFactory, } from "./object-io.js";
|
|
17
|
+
import { refreshEntityContext, resolveEntityContext } from "./context.js";
|
|
18
|
+
import { VaultClient } from "./vault-client.js";
|
|
19
|
+
/**
|
|
20
|
+
* Resolve the object-transport factory for this sync session.
|
|
21
|
+
*
|
|
22
|
+
* Company vaults (`cmp_*`) ALWAYS use the presigned-URL transport: the client
|
|
23
|
+
* holds no raw AWS credentials (it fetches short-lived signed URLs) and every
|
|
24
|
+
* read/write is authorized server-side per-file, so it never hits the 2048-char
|
|
25
|
+
* STS session-policy ceiling that produced the HQ-59 lockout. The STS-direct-S3
|
|
26
|
+
* (`S3SdkObjectIO`) path for company vaults is RETIRED — there is no env
|
|
27
|
+
* override or rollback lever that can route a company vault back to direct S3.
|
|
28
|
+
* (The former `HQ_SYNC_PRESIGN_TRANSPORT` kill-switch is gone with this change.)
|
|
29
|
+
*
|
|
30
|
+
* Personal vaults (`prs_*`) KEEP the direct-S3/STS path: the membership-gated
|
|
31
|
+
* `list`/`presign` endpoints 403 for the membership-less vend-self model, and a
|
|
32
|
+
* single-owner personal vault has no ACL-scale problem. That cmp_/prs_ split
|
|
33
|
+
* lives inside {@link presignObjectIOFactory}.
|
|
34
|
+
*
|
|
35
|
+
* Returns `null` only when the client predates the presign methods (never in a
|
|
36
|
+
* shipped build); the caller then resets to the SDK default factory.
|
|
37
|
+
*/
|
|
38
|
+
export function selectObjectIOFactory(client, refresherFor, forceRefresherFor) {
|
|
39
|
+
if (typeof client.presign === "function" &&
|
|
40
|
+
typeof client.listFiles === "function") {
|
|
41
|
+
return presignObjectIOFactory(client, refresherFor, forceRefresherFor);
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Install the company-vault object transport for a caller and record the choice
|
|
47
|
+
* on `vaultConfig.companyVaultUsesPresign`.
|
|
48
|
+
*
|
|
49
|
+
* This is the single supported way to select the company-vault transport. It
|
|
50
|
+
* keeps two things that must always agree derived from ONE value: the installed
|
|
51
|
+
* `ObjectIO` factory (how bytes move) and the `companyVaultUsesPresign` flag
|
|
52
|
+
* (whether `resolveEntityContext` skips the `cmp_` STS vend). A presign-capable
|
|
53
|
+
* client installs `PresignObjectIO` for `cmp_` and sets the flag `true`; a
|
|
54
|
+
* pre-presign client installs the refresher-aware S3 factory and sets it
|
|
55
|
+
* `false`, so company vaults keep vending. They can never disagree because both
|
|
56
|
+
* come from the same `selectObjectIOFactory` result.
|
|
57
|
+
*
|
|
58
|
+
* The flag is also the record that a decision has already been made. The
|
|
59
|
+
* sync-runner sets it — `true` or an explicit `false` — on the SAME
|
|
60
|
+
* `vaultConfig` object reference it later hands down to `share()` / `sync()`, so
|
|
61
|
+
* re-entry through those one-shot paths must be a strict no-op: it must not
|
|
62
|
+
* override the runner's decision or install a second factory over the runner's.
|
|
63
|
+
* `undefined` is therefore the only "decide now" signal, and it is exactly the
|
|
64
|
+
* state a one-shot hq-cli caller (which never ran the runner's selection)
|
|
65
|
+
* arrives in — which is the defect this closes (Sentry hq-cli 7711917661): the
|
|
66
|
+
* one-shot company push kept vending STS write creds and aborted on the
|
|
67
|
+
* `POLICY_WRITE_SCOPE_TRUNCATED` 422 instead of using presign.
|
|
68
|
+
*
|
|
69
|
+
* @param deps.createClient Inject the presign-capable client. The sync-runner
|
|
70
|
+
* passes its already-built `VaultClient` so no second client is created;
|
|
71
|
+
* tests stub it. Defaults to `new VaultClient(vaultConfig)`.
|
|
72
|
+
*/
|
|
73
|
+
export function ensureCompanyVaultTransport(vaultConfig, deps = {}) {
|
|
74
|
+
if (vaultConfig.companyVaultUsesPresign !== undefined)
|
|
75
|
+
return;
|
|
76
|
+
const client = deps.createClient?.(vaultConfig) ?? new VaultClient(vaultConfig);
|
|
77
|
+
// Both transports get a way back to resolveEntityContext so a pass that
|
|
78
|
+
// outlives its 15-minute STS session can renew — mirrors the sync-runner,
|
|
79
|
+
// costing one extra vend per session rather than one per request.
|
|
80
|
+
const refresherFor = (uid) => () => resolveEntityContext(uid, vaultConfig);
|
|
81
|
+
const forceRefresherFor = (uid) => () => refreshEntityContext(uid, vaultConfig);
|
|
82
|
+
const objectIOFactory = selectObjectIOFactory(client, refresherFor, forceRefresherFor);
|
|
83
|
+
// A pre-presign client yields null; install the refresher-aware S3 factory so
|
|
84
|
+
// the fallback renews too (never the frozen-credential module default).
|
|
85
|
+
setObjectIOFactory(objectIOFactory ?? stsObjectIOFactory(refresherFor, forceRefresherFor));
|
|
86
|
+
// Derive the vend-skip flag from the SAME value that picked the transport.
|
|
87
|
+
vaultConfig.companyVaultUsesPresign = objectIOFactory !== null;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=company-vault-transport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-vault-transport.js","sourceRoot":"","sources":["../src/company-vault-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,GAInB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,qBAAqB,CACnC,MAAuC,EACvC,YAAsC,EACtC,iBAA2C;IAE3C,IACE,OAAO,MAAM,CAAC,OAAO,KAAK,UAAU;QACpC,OAAO,MAAM,CAAC,SAAS,KAAK,UAAU,EACtC,CAAC;QACD,OAAO,sBAAsB,CAC3B,MAAgC,EAChC,YAAY,EACZ,iBAAiB,CAClB,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,2BAA2B,CACzC,WAA+B,EAC/B,OAII,EAAE;IAEN,IAAI,WAAW,CAAC,uBAAuB,KAAK,SAAS;QAAE,OAAO;IAE9D,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,WAAW,CAAC,IAAI,IAAI,WAAW,CAAC,WAAW,CAAC,CAAC;IAEhF,wEAAwE;IACxE,0EAA0E;IAC1E,kEAAkE;IAClE,MAAM,YAAY,GAA4B,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAC1D,oBAAoB,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IACzC,MAAM,iBAAiB,GAA4B,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAC/D,oBAAoB,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IAEzC,MAAM,eAAe,GAAG,qBAAqB,CAC3C,MAAM,EACN,YAAY,EACZ,iBAAiB,CAClB,CAAC;IACF,8EAA8E;IAC9E,wEAAwE;IACxE,kBAAkB,CAChB,eAAe,IAAI,kBAAkB,CAAC,YAAY,EAAE,iBAAiB,CAAC,CACvE,CAAC;IACF,2EAA2E;IAC3E,WAAW,CAAC,uBAAuB,GAAG,eAAe,KAAK,IAAI,CAAC;AACjE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unit tests for ensureCompanyVaultTransport (Sentry hq-cli 7711917661).
|
|
3
|
+
*
|
|
4
|
+
* The helper is the single place the company-vault transport is chosen. Two
|
|
5
|
+
* things must always be derived from ONE value: the installed ObjectIO factory
|
|
6
|
+
* and the `companyVaultUsesPresign` vend-skip flag. And it must be a strict
|
|
7
|
+
* no-op once a decision has already been made — that is what keeps the
|
|
8
|
+
* sync-runner's path unchanged when the same config re-enters through
|
|
9
|
+
* share()/sync().
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=company-vault-transport.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-vault-transport.test.d.ts","sourceRoot":"","sources":["../src/company-vault-transport.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unit tests for ensureCompanyVaultTransport (Sentry hq-cli 7711917661).
|
|
3
|
+
*
|
|
4
|
+
* The helper is the single place the company-vault transport is chosen. Two
|
|
5
|
+
* things must always be derived from ONE value: the installed ObjectIO factory
|
|
6
|
+
* and the `companyVaultUsesPresign` vend-skip flag. And it must be a strict
|
|
7
|
+
* no-op once a decision has already been made — that is what keeps the
|
|
8
|
+
* sync-runner's path unchanged when the same config re-enters through
|
|
9
|
+
* share()/sync().
|
|
10
|
+
*/
|
|
11
|
+
import { describe, it, expect, afterEach, vi } from "vitest";
|
|
12
|
+
import { ensureCompanyVaultTransport, selectObjectIOFactory, } from "./company-vault-transport.js";
|
|
13
|
+
import { PresignObjectIO, S3SdkObjectIO, resolveObjectIO, setObjectIOFactory, } from "./object-io.js";
|
|
14
|
+
import { clearContextCache } from "./context.js";
|
|
15
|
+
const presignCapable = {
|
|
16
|
+
presign: () => Promise.resolve({ results: [], expiresAt: "" }),
|
|
17
|
+
listFiles: () => Promise.resolve({ objects: [], cursor: null, truncated: false }),
|
|
18
|
+
};
|
|
19
|
+
function ctx(uid) {
|
|
20
|
+
return {
|
|
21
|
+
uid,
|
|
22
|
+
slug: uid,
|
|
23
|
+
bucketName: `bucket-${uid}`,
|
|
24
|
+
region: "us-east-1",
|
|
25
|
+
credentials: {
|
|
26
|
+
accessKeyId: "AKIA",
|
|
27
|
+
secretAccessKey: "secret",
|
|
28
|
+
sessionToken: "token",
|
|
29
|
+
},
|
|
30
|
+
expiresAt: "2099-01-01T00:00:00Z",
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function baseConfig() {
|
|
34
|
+
return { apiUrl: "https://vault-api.test", authToken: "t", region: "us-east-1" };
|
|
35
|
+
}
|
|
36
|
+
afterEach(() => {
|
|
37
|
+
setObjectIOFactory(null);
|
|
38
|
+
clearContextCache();
|
|
39
|
+
});
|
|
40
|
+
describe("ensureCompanyVaultTransport", () => {
|
|
41
|
+
it("installs the presign transport and sets the flag true for a presign-capable client", () => {
|
|
42
|
+
const config = baseConfig();
|
|
43
|
+
ensureCompanyVaultTransport(config, { createClient: () => presignCapable });
|
|
44
|
+
expect(config.companyVaultUsesPresign).toBe(true);
|
|
45
|
+
// The installed factory routes company vaults to presign and personal vaults
|
|
46
|
+
// to direct-S3 — the personal-vault invariant must not be widened away.
|
|
47
|
+
expect(resolveObjectIO(ctx("cmp_acme"))).toBeInstanceOf(PresignObjectIO);
|
|
48
|
+
expect(resolveObjectIO(ctx("prs_me"))).toBeInstanceOf(S3SdkObjectIO);
|
|
49
|
+
});
|
|
50
|
+
it("keeps cmp_ on the STS path and sets the flag false for a pre-presign client", () => {
|
|
51
|
+
const config = baseConfig();
|
|
52
|
+
// A client lacking presign/listFiles → selectObjectIOFactory returns null →
|
|
53
|
+
// the refresher-aware S3 SDK fallback is installed and cmp_ must keep vending.
|
|
54
|
+
ensureCompanyVaultTransport(config, { createClient: () => ({}) });
|
|
55
|
+
expect(config.companyVaultUsesPresign).toBe(false);
|
|
56
|
+
expect(resolveObjectIO(ctx("cmp_acme"))).toBeInstanceOf(S3SdkObjectIO);
|
|
57
|
+
});
|
|
58
|
+
it("is a strict no-op when companyVaultUsesPresign is already true", () => {
|
|
59
|
+
const config = {
|
|
60
|
+
...baseConfig(),
|
|
61
|
+
companyVaultUsesPresign: true,
|
|
62
|
+
};
|
|
63
|
+
const createClient = vi.fn(() => presignCapable);
|
|
64
|
+
ensureCompanyVaultTransport(config, { createClient });
|
|
65
|
+
// No decision is re-made: the client is never built (so no factory installed)
|
|
66
|
+
// and the flag is untouched. This is what makes the runner's nested
|
|
67
|
+
// share()/sync() calls no-ops.
|
|
68
|
+
expect(createClient).not.toHaveBeenCalled();
|
|
69
|
+
expect(config.companyVaultUsesPresign).toBe(true);
|
|
70
|
+
});
|
|
71
|
+
it("is a strict no-op when companyVaultUsesPresign is already false", () => {
|
|
72
|
+
const config = {
|
|
73
|
+
...baseConfig(),
|
|
74
|
+
companyVaultUsesPresign: false,
|
|
75
|
+
};
|
|
76
|
+
const createClient = vi.fn(() => presignCapable);
|
|
77
|
+
ensureCompanyVaultTransport(config, { createClient });
|
|
78
|
+
// The explicit `false` a pre-presign runner produces must survive: cmp_ stays
|
|
79
|
+
// on the STS path.
|
|
80
|
+
expect(createClient).not.toHaveBeenCalled();
|
|
81
|
+
expect(config.companyVaultUsesPresign).toBe(false);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
describe("selectObjectIOFactory (re-exported from the neutral module)", () => {
|
|
85
|
+
it("routes cmp_ to presign and prs_ to direct-S3", () => {
|
|
86
|
+
const factory = selectObjectIOFactory(presignCapable);
|
|
87
|
+
expect(factory).not.toBeNull();
|
|
88
|
+
expect(factory(ctx("cmp_acme"))).toBeInstanceOf(PresignObjectIO);
|
|
89
|
+
expect(factory(ctx("prs_me"))).toBeInstanceOf(S3SdkObjectIO);
|
|
90
|
+
});
|
|
91
|
+
it("returns null when the client predates presign", () => {
|
|
92
|
+
expect(selectObjectIOFactory({})).toBeNull();
|
|
93
|
+
expect(selectObjectIOFactory({ presign: presignCapable.presign })).toBeNull();
|
|
94
|
+
expect(selectObjectIOFactory({ listFiles: presignCapable.listFiles })).toBeNull();
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
//# sourceMappingURL=company-vault-transport.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-vault-transport.test.js","sourceRoot":"","sources":["../src/company-vault-transport.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC7D,OAAO,EACL,2BAA2B,EAC3B,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,MAAM,CACJ,qBAAqB,CAAC,EAAE,SAAS,EAAE,cAAc,CAAC,SAAS,EAAE,CAAC,CAC/D,CAAC,QAAQ,EAAE,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -281,14 +281,25 @@ export interface VaultServiceConfig {
|
|
|
281
281
|
/**
|
|
282
282
|
* When true, COMPANY vaults (`cmp_*`) use the presigned-URL transport, so
|
|
283
283
|
* `resolveEntityContext` SKIPS `POST /sts/vend` for them and returns a
|
|
284
|
-
* credential-less context with a far-future `expiresAt` (HQ-59).
|
|
285
|
-
*
|
|
286
|
-
* vend-skip and the transport choice can never diverge. Personal vaults
|
|
287
|
-
* (`prs_*`) are unaffected — they always vend self via `/sts/vend-self`.
|
|
284
|
+
* credential-less context with a far-future `expiresAt` (HQ-59). Personal
|
|
285
|
+
* vaults (`prs_*`) are unaffected — they always vend self via `/sts/vend-self`.
|
|
288
286
|
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
287
|
+
* This flag and the installed `ObjectIO` factory are two halves of one
|
|
288
|
+
* decision and must always agree. `ensureCompanyVaultTransport`
|
|
289
|
+
* (src/company-vault-transport.ts) is the single supported way to make that
|
|
290
|
+
* decision: it installs the transport and sets this flag from the same value.
|
|
291
|
+
* Every caller that pushes or pulls a company vault routes through it — the
|
|
292
|
+
* `hq-sync-runner` AND the one-shot `share()` / `sync()` paths that hq-cli and
|
|
293
|
+
* standalone `hq sync` drive. (Before those one-shot paths were wired through
|
|
294
|
+
* it, a company push from hq-cli kept vending STS write creds and aborted on
|
|
295
|
+
* the `POLICY_WRITE_SCOPE_TRUNCATED` 422 — Sentry hq-cli 7711917661.)
|
|
296
|
+
*
|
|
297
|
+
* Tri-state: `undefined` means "no transport decision has been made yet" — the
|
|
298
|
+
* signal `ensureCompanyVaultTransport` acts on. `true` / `false` means a caller
|
|
299
|
+
* already decided (the runner mutates it on the same object it hands down), and
|
|
300
|
+
* the helper is then a strict no-op. A caller that vended its own credentials
|
|
301
|
+
* out of band (AppBar's pre-vended `entityContext` flow) never sets this and
|
|
302
|
+
* never installs a factory.
|
|
292
303
|
*/
|
|
293
304
|
companyVaultUsesPresign?: boolean;
|
|
294
305
|
}
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;OAOG;IACH,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