@adaptic/backend 0.0.1037 → 0.0.1039
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/esm/auth/credential-fields.d.ts +19 -0
- package/esm/auth/credential-fields.d.ts.map +1 -0
- package/esm/auth/credential-fields.js.map +1 -0
- package/esm/auth/credential-fields.mjs +42 -0
- package/esm/auth/credential-redaction.d.ts +56 -0
- package/esm/auth/credential-redaction.d.ts.map +1 -0
- package/esm/auth/credential-redaction.js.map +1 -0
- package/esm/auth/credential-redaction.mjs +99 -0
- package/esm/auth/mutation-authorization.d.ts +206 -0
- package/esm/auth/mutation-authorization.d.ts.map +1 -0
- package/esm/auth/mutation-authorization.js.map +1 -0
- package/esm/auth/mutation-authorization.mjs +271 -0
- package/esm/auth/nested-write-inspector.d.ts +94 -0
- package/esm/auth/nested-write-inspector.d.ts.map +1 -0
- package/esm/auth/nested-write-inspector.js.map +1 -0
- package/esm/auth/nested-write-inspector.mjs +185 -0
- package/esm/auth/nested-write-policy.d.ts +95 -0
- package/esm/auth/nested-write-policy.d.ts.map +1 -0
- package/esm/auth/nested-write-policy.js.map +1 -0
- package/esm/auth/nested-write-policy.mjs +154 -0
- package/esm/auth/service-token.d.ts +11 -1
- package/esm/auth/service-token.d.ts.map +1 -1
- package/esm/auth/service-token.js.map +1 -1
- package/esm/auth/service-token.mjs +31 -5
- package/esm/auth/token-verifier.d.ts +9 -1
- package/esm/auth/token-verifier.d.ts.map +1 -1
- package/esm/auth/token-verifier.js.map +1 -1
- package/esm/auth/user-write-content.d.ts +41 -0
- package/esm/auth/user-write-content.d.ts.map +1 -0
- package/esm/auth/user-write-content.js.map +1 -0
- package/esm/auth/user-write-content.mjs +100 -0
- package/esm/middleware/__tests__/credential-field-coverage.harness.d.ts +55 -0
- package/esm/middleware/__tests__/credential-field-coverage.harness.d.ts.map +1 -0
- package/esm/middleware/__tests__/credential-field-coverage.harness.js.map +1 -0
- package/esm/middleware/__tests__/credential-field-coverage.harness.mjs +438 -0
- package/esm/middleware/__tests__/credential-field-guard.harness.d.ts +34 -0
- package/esm/middleware/__tests__/credential-field-guard.harness.d.ts.map +1 -0
- package/esm/middleware/__tests__/credential-field-guard.harness.js.map +1 -0
- package/esm/middleware/__tests__/credential-field-guard.harness.mjs +212 -0
- package/esm/middleware/__tests__/mutation-auth-guard.harness.d.ts +49 -0
- package/esm/middleware/__tests__/mutation-auth-guard.harness.d.ts.map +1 -0
- package/esm/middleware/__tests__/mutation-auth-guard.harness.js.map +1 -0
- package/esm/middleware/__tests__/mutation-auth-guard.harness.mjs +402 -0
- package/esm/middleware/__tests__/ts-node-harness.d.ts +10 -0
- package/esm/middleware/__tests__/ts-node-harness.d.ts.map +1 -0
- package/esm/middleware/__tests__/ts-node-harness.js.map +1 -0
- package/esm/middleware/__tests__/ts-node-harness.mjs +71 -0
- package/esm/middleware/audit-logger.d.ts +18 -1
- package/esm/middleware/audit-logger.d.ts.map +1 -1
- package/esm/middleware/audit-logger.js.map +1 -1
- package/esm/middleware/audit-logger.mjs +36 -13
- package/esm/middleware/audit-payload-guard.d.ts +85 -0
- package/esm/middleware/audit-payload-guard.d.ts.map +1 -0
- package/esm/middleware/audit-payload-guard.js.map +1 -0
- package/esm/middleware/audit-payload-guard.mjs +97 -0
- package/esm/middleware/credential-field-guard.d.ts +160 -0
- package/esm/middleware/credential-field-guard.d.ts.map +1 -0
- package/esm/middleware/credential-field-guard.js.map +1 -0
- package/esm/middleware/credential-field-guard.mjs +479 -0
- package/esm/middleware/generated-type-names.d.ts +44 -0
- package/esm/middleware/generated-type-names.d.ts.map +1 -0
- package/esm/middleware/generated-type-names.js.map +1 -0
- package/esm/middleware/generated-type-names.mjs +73 -0
- package/esm/middleware/guard-log-throttle.d.ts +80 -0
- package/esm/middleware/guard-log-throttle.d.ts.map +1 -0
- package/esm/middleware/guard-log-throttle.js.map +1 -0
- package/esm/middleware/guard-log-throttle.mjs +87 -0
- package/esm/middleware/mutation-account-facts.d.ts +140 -0
- package/esm/middleware/mutation-account-facts.d.ts.map +1 -0
- package/esm/middleware/mutation-account-facts.js.map +1 -0
- package/esm/middleware/mutation-account-facts.mjs +212 -0
- package/esm/middleware/mutation-auth-guard.d.ts +82 -0
- package/esm/middleware/mutation-auth-guard.d.ts.map +1 -0
- package/esm/middleware/mutation-auth-guard.js.map +1 -0
- package/esm/middleware/mutation-auth-guard.mjs +425 -0
- package/esm/middleware/mutation-tenant-facts.d.ts +58 -0
- package/esm/middleware/mutation-tenant-facts.d.ts.map +1 -0
- package/esm/middleware/mutation-tenant-facts.js.map +1 -0
- package/esm/middleware/mutation-tenant-facts.mjs +75 -0
- package/esm/middleware/trading-policy-audit.d.ts +172 -0
- package/esm/middleware/trading-policy-audit.d.ts.map +1 -0
- package/esm/middleware/trading-policy-audit.js.map +1 -0
- package/esm/middleware/trading-policy-audit.mjs +309 -0
- package/esm/resolvers/custom/BrokerageAccountCredentialStatusResolver.d.ts +22 -0
- package/esm/resolvers/custom/BrokerageAccountCredentialStatusResolver.d.ts.map +1 -0
- package/esm/resolvers/custom/BrokerageAccountCredentialStatusResolver.js.map +1 -0
- package/esm/resolvers/custom/BrokerageAccountCredentialStatusResolver.mjs +63 -0
- package/esm/resolvers/custom/index.d.ts +1 -0
- package/esm/resolvers/custom/index.d.ts.map +1 -1
- package/esm/resolvers/custom/index.js.map +1 -1
- package/esm/resolvers/custom/index.mjs +1 -0
- package/package.json +1 -1
- package/resolvers/custom/BrokerageAccountCredentialStatusResolver.cjs +100 -0
- package/resolvers/custom/BrokerageAccountCredentialStatusResolver.d.ts +22 -0
- package/resolvers/custom/BrokerageAccountCredentialStatusResolver.d.ts.map +1 -0
- package/resolvers/custom/BrokerageAccountCredentialStatusResolver.js.map +1 -0
- package/resolvers/custom/index.cjs +4 -1
- package/resolvers/custom/index.d.ts +1 -0
- package/resolvers/custom/index.d.ts.map +1 -1
- package/resolvers/custom/index.js.map +1 -1
- package/server.cjs +40 -3
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* This middleware is implemented as an Apollo Server plugin that intercepts
|
|
9
9
|
* mutation operations and logs them to the AuditLog table.
|
|
10
10
|
*/
|
|
11
|
+
import { redactCredentials } from '../auth/credential-redaction.mjs';
|
|
11
12
|
import { logger } from '../utils/logger.mjs';
|
|
12
13
|
/** List of models that are excluded from audit logging (e.g., the audit log itself) */
|
|
13
14
|
const EXCLUDED_MODELS = new Set([
|
|
@@ -106,6 +107,11 @@ function extractRecordId(data) {
|
|
|
106
107
|
* For update operations, captures the data being set.
|
|
107
108
|
* For delete operations, captures the where clause.
|
|
108
109
|
*
|
|
110
|
+
* Stored-credential values (broker keys, OAuth / session / invite tokens) are
|
|
111
|
+
* replaced with a placeholder: an audit row is readable far more widely than
|
|
112
|
+
* the credential column, so a key copied into one is an unguarded second copy
|
|
113
|
+
* of the secret.
|
|
114
|
+
*
|
|
109
115
|
* @param operationType - The type of mutation operation
|
|
110
116
|
* @param variables - The GraphQL variables passed to the mutation
|
|
111
117
|
* @returns A JSON-serializable object representing the changed fields
|
|
@@ -113,19 +119,35 @@ function extractRecordId(data) {
|
|
|
113
119
|
function extractChangedFields(operationType, variables) {
|
|
114
120
|
if (!variables)
|
|
115
121
|
return {};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
const fields = (() => {
|
|
123
|
+
switch (operationType) {
|
|
124
|
+
case 'CREATE':
|
|
125
|
+
return { input: variables.data || variables };
|
|
126
|
+
case 'UPDATE':
|
|
127
|
+
return {
|
|
128
|
+
where: variables.where || {},
|
|
129
|
+
data: variables.data || {},
|
|
130
|
+
};
|
|
131
|
+
case 'DELETE':
|
|
132
|
+
return { where: variables.where || {} };
|
|
133
|
+
default:
|
|
134
|
+
return variables;
|
|
135
|
+
}
|
|
136
|
+
})();
|
|
137
|
+
return redactCredentials(fields);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The acting principal as recorded on an audit row. `userId` holds only a
|
|
141
|
+
* UUID subject, so a service or anonymous write needs its identity here or
|
|
142
|
+
* the row cannot say who made it.
|
|
143
|
+
*/
|
|
144
|
+
function principalMetadata(principal) {
|
|
145
|
+
if (!principal)
|
|
146
|
+
return { principalKind: 'none', principalSub: null };
|
|
147
|
+
if (principal.kind === 'server') {
|
|
148
|
+
return { principalKind: 'server', principalSub: principal.sub ?? null };
|
|
128
149
|
}
|
|
150
|
+
return { principalKind: principal.kind, principalSub: principal.sub };
|
|
129
151
|
}
|
|
130
152
|
/**
|
|
131
153
|
* Creates an Apollo Server plugin that logs all mutations to the AuditLog table.
|
|
@@ -198,6 +220,7 @@ export function createAuditLogPlugin() {
|
|
|
198
220
|
ipAddress,
|
|
199
221
|
metadata: {
|
|
200
222
|
graphqlOperationName: request.operationName || null,
|
|
223
|
+
...principalMetadata(contextValue.principal),
|
|
201
224
|
},
|
|
202
225
|
},
|
|
203
226
|
});
|
|
@@ -220,5 +243,5 @@ export function createAuditLogPlugin() {
|
|
|
220
243
|
},
|
|
221
244
|
};
|
|
222
245
|
}
|
|
223
|
-
export { parseMutationOperation, extractUserId, extractRecordId, extractChangedFields, };
|
|
246
|
+
export { parseMutationOperation, extractUserId, extractRecordId, extractChangedFields, principalMetadata, };
|
|
224
247
|
//# sourceMappingURL=audit-logger.js.map
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit payload guard: credential values inside `AuditLog` JSON payloads
|
|
3
|
+
* reach only the principals allowed to read those payloads raw.
|
|
4
|
+
*
|
|
5
|
+
* ## Why this exists
|
|
6
|
+
*
|
|
7
|
+
* The audit trail records what each mutation asked for. An audit logger that
|
|
8
|
+
* copies mutation variables verbatim stores a broker-key update's key and
|
|
9
|
+
* secret in `changedFields` (`data.APIKey.set`, `data.APISecret.set`), and a
|
|
10
|
+
* user create's nested account keys under
|
|
11
|
+
* `input.alpacaAccounts.connectOrCreate[…].create`. Redacting payloads before
|
|
12
|
+
* they are written does not reach rows already stored, and `AuditLog` is
|
|
13
|
+
* readable by any principal the endpoint admits. Without this guard the
|
|
14
|
+
* credential-field guard's server-only rule for a column is bypassed by
|
|
15
|
+
* reading its copy in the audit trail.
|
|
16
|
+
*
|
|
17
|
+
* ## What it guards
|
|
18
|
+
*
|
|
19
|
+
* 1. **Output.** For a principal that may not read payloads raw, the value a
|
|
20
|
+
* payload column resolves to on any output type that carries it
|
|
21
|
+
* (`AuditLog`, `AuditLogGroupBy`, `CreateManyAndReturnAuditLog`, …) goes
|
|
22
|
+
* through {@link redactCredentials} before it leaves the resolver: each
|
|
23
|
+
* credential-named key's value is replaced and the rest of the payload is
|
|
24
|
+
* served as stored. The rule applies where the field resolves, so it covers
|
|
25
|
+
* root reads, aliases, fragments, bulk-write return rows and any type that
|
|
26
|
+
* nests `AuditLog`.
|
|
27
|
+
* 2. **Predicates.** A filter, sort, cursor, `having`, `by` or `distinct` over
|
|
28
|
+
* a payload column is an oracle over whatever the payload holds:
|
|
29
|
+
* `changedFields: { path: ["data", "APISecret", "set"], string_starts_with: "a" }`
|
|
30
|
+
* reads a secret one character at a time without selecting it. Nothing in
|
|
31
|
+
* a JSON filter alone shows that it cannot reach a credential inside the
|
|
32
|
+
* payload, so every predicate over a payload column is refused for the
|
|
33
|
+
* same principals.
|
|
34
|
+
*
|
|
35
|
+
* `server` and `admin` principals read payloads raw; `user` and anonymous
|
|
36
|
+
* callers read them redacted. The mode is the credential-field guard's
|
|
37
|
+
* (`CREDENTIAL_FIELD_GUARD_MODE`, read per request): `shadow` serves payloads
|
|
38
|
+
* as stored and counts every read that enforcement would change, `enforce`
|
|
39
|
+
* redacts and refuses, `off` does neither.
|
|
40
|
+
*
|
|
41
|
+
* @module middleware/audit-payload-guard
|
|
42
|
+
*/
|
|
43
|
+
import type { GraphQLResolveInfo } from 'graphql';
|
|
44
|
+
import { type CredentialKeyPath } from '../auth/credential-redaction';
|
|
45
|
+
import type { BackendPrincipal } from '../auth/token-verifier';
|
|
46
|
+
/** JSON payload columns that can hold a copy of a credential, by model. */
|
|
47
|
+
export declare const AUDIT_PAYLOAD_FIELDS: ReadonlyMap<string, ReadonlySet<string>>;
|
|
48
|
+
/** Whether `principal` reads audit payloads as stored. */
|
|
49
|
+
export declare function readsAuditPayloadRaw(principal: BackendPrincipal | null): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The payload columns an output type carries as values, or `undefined`.
|
|
52
|
+
*
|
|
53
|
+
* @internal Exported for the schema-coverage test.
|
|
54
|
+
*/
|
|
55
|
+
export declare function auditPayloadOutputFieldsFor(typeName: string): ReadonlySet<string> | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The payload columns an input type's keys can reference as a predicate, or
|
|
58
|
+
* `undefined`.
|
|
59
|
+
*
|
|
60
|
+
* @internal Exported for the input walk and the schema-coverage test.
|
|
61
|
+
*/
|
|
62
|
+
export declare function auditPayloadPredicateFieldsFor(typeName: string): ReadonlySet<string> | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* The payload columns a `<Model>ScalarFieldEnum` can name, or `undefined`.
|
|
65
|
+
*
|
|
66
|
+
* @internal Exported for the input walk and the schema-coverage test.
|
|
67
|
+
*/
|
|
68
|
+
export declare function auditPayloadEnumFieldsFor(typeName: string): ReadonlySet<string> | undefined;
|
|
69
|
+
/** The payload column this resolver outputs, as `TypeName.field`, if any. */
|
|
70
|
+
export declare function auditPayloadOutputField(info: Pick<GraphQLResolveInfo, 'parentType' | 'fieldName'>): string | undefined;
|
|
71
|
+
/** A payload as a principal that may not read it raw receives it. */
|
|
72
|
+
export interface AuditPayloadRedaction {
|
|
73
|
+
/** The payload with every credential value replaced. */
|
|
74
|
+
redacted: unknown;
|
|
75
|
+
/** Where the replaced values were; empty when the payload held none. */
|
|
76
|
+
paths: CredentialKeyPath[];
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Redact one payload value and say where its credentials were.
|
|
80
|
+
*
|
|
81
|
+
* @param value - The value a payload column resolved to.
|
|
82
|
+
* @returns The redacted copy and the replaced key paths.
|
|
83
|
+
*/
|
|
84
|
+
export declare function redactAuditPayload(value: unknown): AuditPayloadRedaction;
|
|
85
|
+
//# sourceMappingURL=audit-payload-guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-payload-guard.d.ts","sourceRoot":"","sources":["../../../src/middleware/audit-payload-guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAGjB,CAAC;AAU1D,0DAA0D;AAC1D,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI,GAAG,OAAO,CAEhF;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAE7F;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAEhG;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAE3F;AAED,6EAA6E;AAC7E,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,YAAY,GAAG,WAAW,CAAC,GACzD,MAAM,GAAG,SAAS,CAIpB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CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;AACvD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,QAAgB;IACxD,OAAO,mBAAmB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AAClD,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,uBAAuB,CACrC,IAA0D;IAE1D,OAAO,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;QAChF,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE;QAC7C,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAUD;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,OAAO,EAAE,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC;AAClF,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audit payload guard: credential values inside `AuditLog` JSON payloads
|
|
3
|
+
* reach only the principals allowed to read those payloads raw.
|
|
4
|
+
*
|
|
5
|
+
* ## Why this exists
|
|
6
|
+
*
|
|
7
|
+
* The audit trail records what each mutation asked for. An audit logger that
|
|
8
|
+
* copies mutation variables verbatim stores a broker-key update's key and
|
|
9
|
+
* secret in `changedFields` (`data.APIKey.set`, `data.APISecret.set`), and a
|
|
10
|
+
* user create's nested account keys under
|
|
11
|
+
* `input.alpacaAccounts.connectOrCreate[…].create`. Redacting payloads before
|
|
12
|
+
* they are written does not reach rows already stored, and `AuditLog` is
|
|
13
|
+
* readable by any principal the endpoint admits. Without this guard the
|
|
14
|
+
* credential-field guard's server-only rule for a column is bypassed by
|
|
15
|
+
* reading its copy in the audit trail.
|
|
16
|
+
*
|
|
17
|
+
* ## What it guards
|
|
18
|
+
*
|
|
19
|
+
* 1. **Output.** For a principal that may not read payloads raw, the value a
|
|
20
|
+
* payload column resolves to on any output type that carries it
|
|
21
|
+
* (`AuditLog`, `AuditLogGroupBy`, `CreateManyAndReturnAuditLog`, …) goes
|
|
22
|
+
* through {@link redactCredentials} before it leaves the resolver: each
|
|
23
|
+
* credential-named key's value is replaced and the rest of the payload is
|
|
24
|
+
* served as stored. The rule applies where the field resolves, so it covers
|
|
25
|
+
* root reads, aliases, fragments, bulk-write return rows and any type that
|
|
26
|
+
* nests `AuditLog`.
|
|
27
|
+
* 2. **Predicates.** A filter, sort, cursor, `having`, `by` or `distinct` over
|
|
28
|
+
* a payload column is an oracle over whatever the payload holds:
|
|
29
|
+
* `changedFields: { path: ["data", "APISecret", "set"], string_starts_with: "a" }`
|
|
30
|
+
* reads a secret one character at a time without selecting it. Nothing in
|
|
31
|
+
* a JSON filter alone shows that it cannot reach a credential inside the
|
|
32
|
+
* payload, so every predicate over a payload column is refused for the
|
|
33
|
+
* same principals.
|
|
34
|
+
*
|
|
35
|
+
* `server` and `admin` principals read payloads raw; `user` and anonymous
|
|
36
|
+
* callers read them redacted. The mode is the credential-field guard's
|
|
37
|
+
* (`CREDENTIAL_FIELD_GUARD_MODE`, read per request): `shadow` serves payloads
|
|
38
|
+
* as stored and counts every read that enforcement would change, `enforce`
|
|
39
|
+
* redacts and refuses, `off` does neither.
|
|
40
|
+
*
|
|
41
|
+
* @module middleware/audit-payload-guard
|
|
42
|
+
*/
|
|
43
|
+
import { credentialKeyPaths, redactCredentials, } from '../auth/credential-redaction.mjs';
|
|
44
|
+
import { indexGeneratedTypes } from './generated-type-names.mjs';
|
|
45
|
+
/** JSON payload columns that can hold a copy of a credential, by model. */
|
|
46
|
+
export const AUDIT_PAYLOAD_FIELDS = new Map([['AuditLog', new Set(['changedFields', 'metadata'])]]);
|
|
47
|
+
/** Principal kinds that read audit payloads as stored. */
|
|
48
|
+
const RAW_READERS = new Set([
|
|
49
|
+
'server',
|
|
50
|
+
'admin',
|
|
51
|
+
]);
|
|
52
|
+
const AUDIT_PAYLOAD_TYPES = indexGeneratedTypes(AUDIT_PAYLOAD_FIELDS);
|
|
53
|
+
/** Whether `principal` reads audit payloads as stored. */
|
|
54
|
+
export function readsAuditPayloadRaw(principal) {
|
|
55
|
+
return principal !== null && RAW_READERS.has(principal.kind);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The payload columns an output type carries as values, or `undefined`.
|
|
59
|
+
*
|
|
60
|
+
* @internal Exported for the schema-coverage test.
|
|
61
|
+
*/
|
|
62
|
+
export function auditPayloadOutputFieldsFor(typeName) {
|
|
63
|
+
return AUDIT_PAYLOAD_TYPES.outputFields(typeName);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The payload columns an input type's keys can reference as a predicate, or
|
|
67
|
+
* `undefined`.
|
|
68
|
+
*
|
|
69
|
+
* @internal Exported for the input walk and the schema-coverage test.
|
|
70
|
+
*/
|
|
71
|
+
export function auditPayloadPredicateFieldsFor(typeName) {
|
|
72
|
+
return AUDIT_PAYLOAD_TYPES.predicateFields(typeName);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The payload columns a `<Model>ScalarFieldEnum` can name, or `undefined`.
|
|
76
|
+
*
|
|
77
|
+
* @internal Exported for the input walk and the schema-coverage test.
|
|
78
|
+
*/
|
|
79
|
+
export function auditPayloadEnumFieldsFor(typeName) {
|
|
80
|
+
return AUDIT_PAYLOAD_TYPES.enumFields(typeName);
|
|
81
|
+
}
|
|
82
|
+
/** The payload column this resolver outputs, as `TypeName.field`, if any. */
|
|
83
|
+
export function auditPayloadOutputField(info) {
|
|
84
|
+
return AUDIT_PAYLOAD_TYPES.outputFields(info.parentType.name)?.has(info.fieldName)
|
|
85
|
+
? `${info.parentType.name}.${info.fieldName}`
|
|
86
|
+
: undefined;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Redact one payload value and say where its credentials were.
|
|
90
|
+
*
|
|
91
|
+
* @param value - The value a payload column resolved to.
|
|
92
|
+
* @returns The redacted copy and the replaced key paths.
|
|
93
|
+
*/
|
|
94
|
+
export function redactAuditPayload(value) {
|
|
95
|
+
return { redacted: redactCredentials(value), paths: credentialKeyPaths(value) };
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=audit-payload-guard.js.map
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Credential-field guard: stored credentials resolve, and can be filtered or
|
|
3
|
+
* sorted on, only for a verified service principal.
|
|
4
|
+
*
|
|
5
|
+
* ## Why this exists
|
|
6
|
+
*
|
|
7
|
+
* The `/graphql` context admits a request that presents no bearer token as a
|
|
8
|
+
* null principal — context-level enforcement is staged per
|
|
9
|
+
* `docs/security/2026-08-23-graphql-auth-enforcement-runbook.md` because live
|
|
10
|
+
* callers still depend on that path. The generated Prisma types expose every
|
|
11
|
+
* scalar column as a plain field, including the broker API key and secret on
|
|
12
|
+
* `AlpacaAccount` and the OAuth, session and invite tokens on the auth models.
|
|
13
|
+
* With a null principal admitted, those columns are readable by anyone who can
|
|
14
|
+
* reach the endpoint.
|
|
15
|
+
*
|
|
16
|
+
* Hiding the field alone is not enough. A filter, sort or cursor over a
|
|
17
|
+
* credential column is an oracle: `where: { APISecret: { startsWith: "a" } }`
|
|
18
|
+
* answers "does any row match" without ever selecting the field, and a caller
|
|
19
|
+
* can walk the whole secret one character at a time. `groupBy` and the
|
|
20
|
+
* `_min` / `_max` aggregates return the column's value directly. So the guard
|
|
21
|
+
* covers every way a query can observe a credential, not just the field.
|
|
22
|
+
*
|
|
23
|
+
* A stored credential is only ever needed by a service acting for the
|
|
24
|
+
* platform — the engine placing an order with an account's key. No end user,
|
|
25
|
+
* admin session or anonymous caller needs the raw value, so the read surface
|
|
26
|
+
* admits `kind: "server"` only. Writes of a credential are governed by the
|
|
27
|
+
* mutation authentication guard, not here.
|
|
28
|
+
*
|
|
29
|
+
* ## What is guarded
|
|
30
|
+
*
|
|
31
|
+
* 1. **Output** — a credential field on its model type and on that model's
|
|
32
|
+
* `GroupBy` / `MinAggregate` / `MaxAggregate` output types, and on the
|
|
33
|
+
* `CreateManyAndReturn…` / `UpdateManyAndReturn…` row types a bulk write
|
|
34
|
+
* returns.
|
|
35
|
+
* 2. **Filter and sort input** — any argument that names a credential field:
|
|
36
|
+
* a key in the model's own `…Where…`, `…OrderBy…` or `…Having…` input types
|
|
37
|
+
* at any nesting depth (AND / OR / NOT, relation filters reached from other
|
|
38
|
+
* models), and a `by` / `distinct` value of the model's `ScalarFieldEnum`.
|
|
39
|
+
* 3. **Copies in audit payloads** — `AuditLog` JSON payloads hold credentials
|
|
40
|
+
* copied from mutation variables. The same middleware serves them redacted
|
|
41
|
+
* to user and anonymous principals and refuses those principals predicates
|
|
42
|
+
* over them; the rules and their reasons are in `audit-payload-guard`.
|
|
43
|
+
*
|
|
44
|
+
* ## Modes (`CREDENTIAL_FIELD_GUARD_MODE`, read on every request)
|
|
45
|
+
*
|
|
46
|
+
* - `enforce` — deny with `FORBIDDEN`. This is the default, and the value any
|
|
47
|
+
* unset or unrecognised setting resolves to: a guard whose configuration
|
|
48
|
+
* cannot be read must refuse, never admit.
|
|
49
|
+
* - `shadow` — resolve unchanged, but count and log every access `enforce`
|
|
50
|
+
* would deny. Exists only to confirm, before enforcing, that no legitimate
|
|
51
|
+
* caller reads a credential without a service principal.
|
|
52
|
+
* - `off` — no-op.
|
|
53
|
+
*
|
|
54
|
+
* @module middleware/credential-field-guard
|
|
55
|
+
*/
|
|
56
|
+
import type { MiddlewareFn } from 'type-graphql';
|
|
57
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
58
|
+
import { Counter } from 'prom-client';
|
|
59
|
+
import { CREDENTIAL_FIELDS } from '../auth/credential-fields';
|
|
60
|
+
import type { BackendPrincipal } from '../auth/token-verifier';
|
|
61
|
+
/**
|
|
62
|
+
* The stored credential columns this guard serves to a service principal
|
|
63
|
+
* only. Defined in `auth/credential-fields`, re-exported for existing callers.
|
|
64
|
+
*/
|
|
65
|
+
export { CREDENTIAL_FIELDS };
|
|
66
|
+
/** The guard's operating mode. See the module doc. */
|
|
67
|
+
export type CredentialFieldGuardMode = 'enforce' | 'shadow' | 'off';
|
|
68
|
+
/**
|
|
69
|
+
* The credential fields an input type's keys can reference as a predicate,
|
|
70
|
+
* or `undefined` when it is not a credential model's predicate type.
|
|
71
|
+
*
|
|
72
|
+
* @internal Exported for the schema-coverage test, which walks every input
|
|
73
|
+
* type in the served schema and fails if a credential column appears in a
|
|
74
|
+
* predicate type this function does not claim.
|
|
75
|
+
*/
|
|
76
|
+
export declare function credentialPredicateFieldsFor(typeName: string): ReadonlySet<string> | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* The credential fields an output type exposes as values, or `undefined`.
|
|
79
|
+
*
|
|
80
|
+
* @internal Exported for the schema-coverage test (see above).
|
|
81
|
+
*/
|
|
82
|
+
export declare function credentialOutputFieldsFor(typeName: string): ReadonlySet<string> | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* The credential values a `<Model>ScalarFieldEnum` can name, or `undefined`.
|
|
85
|
+
*
|
|
86
|
+
* @internal Exported for the schema-coverage test (see above).
|
|
87
|
+
*/
|
|
88
|
+
export declare function credentialEnumValuesFor(typeName: string): ReadonlySet<string> | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Every guarded column an argument names, as `TypeName.field` strings, split
|
|
91
|
+
* by the rule that governs it.
|
|
92
|
+
*/
|
|
93
|
+
export interface GuardedArgumentReferences {
|
|
94
|
+
/** Stored credential columns: predicates admitted for a service principal only. */
|
|
95
|
+
credential: string[];
|
|
96
|
+
/** Audit payload columns: predicates admitted for the raw-read principals only. */
|
|
97
|
+
auditPayload: string[];
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Every guarded column a field's arguments name. Both lists are empty when
|
|
101
|
+
* the field takes no arguments or names no guarded column.
|
|
102
|
+
*/
|
|
103
|
+
export declare function findGuardedArgumentReferences(info: Pick<GraphQLResolveInfo, 'parentType' | 'fieldName'>, args: Record<string, unknown>): GuardedArgumentReferences;
|
|
104
|
+
/**
|
|
105
|
+
* Every credential reference in a field's arguments, as `TypeName.field`
|
|
106
|
+
* strings. Empty when the field takes no arguments or names no credential.
|
|
107
|
+
*/
|
|
108
|
+
export declare function findCredentialArgumentReferences(info: Pick<GraphQLResolveInfo, 'parentType' | 'fieldName'>, args: Record<string, unknown>): string[];
|
|
109
|
+
/** The credential field this resolver outputs, as `TypeName.field`, if any. */
|
|
110
|
+
export declare function findCredentialOutputField(info: Pick<GraphQLResolveInfo, 'parentType' | 'fieldName'>): string | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Resolve the guard mode from `CREDENTIAL_FIELD_GUARD_MODE`. Anything other
|
|
113
|
+
* than an explicit `shadow` or `off` enforces.
|
|
114
|
+
*/
|
|
115
|
+
export declare function getCredentialFieldGuardMode(): CredentialFieldGuardMode;
|
|
116
|
+
/**
|
|
117
|
+
* Credential-surface accesses by surface, decision and principal kind. The
|
|
118
|
+
* `would_deny` series in `shadow` is the list of callers that enforcement
|
|
119
|
+
* would break; it must be empty of legitimate callers before enforcing.
|
|
120
|
+
*/
|
|
121
|
+
export declare const credentialFieldAccessTotal: Counter<"decision" | "surface" | "principal_kind">;
|
|
122
|
+
/**
|
|
123
|
+
* Audit payload accesses by principals that read payloads redacted (user and
|
|
124
|
+
* anonymous). Reads (`output`) are counted by what redaction did to them;
|
|
125
|
+
* predicates (`argument`) by whether they were refused. In `shadow`,
|
|
126
|
+
* `would_redact` with `carried_value="true"` counts reads that served a stored
|
|
127
|
+
* credential value — the exposure enforcement closes.
|
|
128
|
+
*/
|
|
129
|
+
export declare const auditPayloadAccessTotal: Counter<"decision" | "surface" | "principal_kind" | "carried_value">;
|
|
130
|
+
/** The slice of the Express request the guard reads for its log line. */
|
|
131
|
+
interface GuardRequest {
|
|
132
|
+
ip?: string;
|
|
133
|
+
headers?: Record<string, string | string[] | undefined>;
|
|
134
|
+
}
|
|
135
|
+
/** GraphQL context shape the guard reads. */
|
|
136
|
+
export interface CredentialFieldGuardContext {
|
|
137
|
+
principal?: BackendPrincipal | null;
|
|
138
|
+
req?: GuardRequest;
|
|
139
|
+
}
|
|
140
|
+
/** Options for {@link createCredentialFieldGuardMiddleware}, for tests. */
|
|
141
|
+
export interface CredentialFieldGuardOptions {
|
|
142
|
+
/** Override the mode resolver (defaults to the environment). */
|
|
143
|
+
modeProvider?: () => CredentialFieldGuardMode;
|
|
144
|
+
/** Clock for the log throttle. */
|
|
145
|
+
now?: () => number;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Create the TypeGraphQL global middleware that guards credential columns.
|
|
149
|
+
*
|
|
150
|
+
* Runs on every field. The hot path — a non-credential field with no
|
|
151
|
+
* arguments, or any field for a service principal — returns after a map
|
|
152
|
+
* lookup.
|
|
153
|
+
*
|
|
154
|
+
* @param options - Optional overrides for tests.
|
|
155
|
+
* @returns A {@link MiddlewareFn} for `buildSchema({ globalMiddlewares })`.
|
|
156
|
+
*/
|
|
157
|
+
export declare function createCredentialFieldGuardMiddleware(options?: CredentialFieldGuardOptions): MiddlewareFn<CredentialFieldGuardContext>;
|
|
158
|
+
/** @internal Test hook: forget the log throttle state. */
|
|
159
|
+
export declare function resetCredentialFieldGuardLogThrottle(): void;
|
|
160
|
+
//# sourceMappingURL=credential-field-guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-field-guard.d.ts","sourceRoot":"","sources":["../../../src/middleware/credential-field-guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAOL,KAAK,kBAAkB,EACxB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO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ED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,wBAAwB,CAItE;AAWD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,oDAQrC,CAAC;AAKH;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,sEASlC,CAAC;AAmMH,yEAAyE;AACzE,UAAU,YAAY;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;CACzD;AAED,6CAA6C;AAC7C,MAAM,WAAW,2BAA2B;IAC1C,SAAS,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACpC,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB;AAED,2EAA2E;AAC3E,MAAM,WAAW,2BAA2B;IAC1C,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,wBAAwB,CAAC;IAC9C,kCAAkC;IAClC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AA6BD;;;;;;;;;GASG;AACH,wBAAgB,oCAAoC,CAClD,OAAO,GAAE,2BAAgC,GACxC,YAAY,CAAC,2BAA2B,CAAC,CAsG3C;AAED,0DAA0D;AAC1D,wBAAgB,oCAAoC,IAAI,IAAI,CAE3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-field-guard.js","sourceRoot":"","sources":["../../../src/middleware/credential-field-guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAGH,OAAO,EACL,eAAe,EACf,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACX,eAAe,GAGhB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM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