@coffre/conformance 0.1.10 → 0.1.12
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/main.js +2 -17
- package/package.json +4 -4
- package/src/checks/canaries.ts +1 -1
- package/src/checks/logins.ts +1 -1
- package/src/checks/storage.ts +1 -1
package/dist/main.js
CHANGED
|
@@ -190,15 +190,6 @@ set: (member, access) => call("PATCH /access/:member", { member }, access) },
|
|
|
190
190
|
get: (code) => call("GET /device-logins/:code", { code }),
|
|
191
191
|
decide: (code, approve) => call("POST /device-logins/:code", { code }, { approve })
|
|
192
192
|
},
|
|
193
|
-
syncs: {
|
|
194
|
-
/** Where a sync can push on this instance, and what each asks for. */
|
|
195
|
-
providers: () => call("GET /syncs/providers", {}),
|
|
196
|
-
list: (path) => call("GET /syncs/:project/:environment", place(path)),
|
|
197
|
-
add: (path, input) => call("POST /syncs/:project/:environment", place(path), input),
|
|
198
|
-
update: (id, patch) => call("PATCH /syncs/by-id/:id", { id }, patch),
|
|
199
|
-
remove: (id) => call("DELETE /syncs/by-id/:id", { id }),
|
|
200
|
-
run: (id) => call("POST /syncs/by-id/:id/runs", { id })
|
|
201
|
-
},
|
|
202
193
|
audit: {
|
|
203
194
|
list: (query = {}) => call("GET /audit", {}, query),
|
|
204
195
|
verify: () => call("GET /audit/verification", {}),
|
|
@@ -782,9 +773,7 @@ const TABLES = [
|
|
|
782
773
|
"audit_chain_head",
|
|
783
774
|
"identities",
|
|
784
775
|
"credentials",
|
|
785
|
-
"device_authorizations"
|
|
786
|
-
"syncs",
|
|
787
|
-
"sync_keys"
|
|
776
|
+
"device_authorizations"
|
|
788
777
|
];
|
|
789
778
|
/** Inspect every table, including any a deployment added. Missing shared tables fail. */
|
|
790
779
|
async function tables(sql) {
|
|
@@ -1721,9 +1710,7 @@ const APP_COLUMNS = {
|
|
|
1721
1710
|
secret_versions: "id",
|
|
1722
1711
|
identities: "id",
|
|
1723
1712
|
credentials: "id",
|
|
1724
|
-
device_authorizations: "id"
|
|
1725
|
-
syncs: "id",
|
|
1726
|
-
sync_keys: "key"
|
|
1713
|
+
device_authorizations: "id"
|
|
1727
1714
|
};
|
|
1728
1715
|
async function refuses(sql, statements) {
|
|
1729
1716
|
for (const statement of statements) {
|
|
@@ -1904,8 +1891,6 @@ function getCalls({ places, secrets, members, services }) {
|
|
|
1904
1891
|
"GET /sessions": [{ params: {} }],
|
|
1905
1892
|
"GET /identities": [{ params: {} }],
|
|
1906
1893
|
"GET /device-logins/:code": [{ params: { code: "BCDF-GHJK" } }],
|
|
1907
|
-
"GET /syncs/providers": [{ params: {} }],
|
|
1908
|
-
"GET /syncs/:project/:environment": places.map((params) => ({ params })),
|
|
1909
1894
|
"GET /audit": [{
|
|
1910
1895
|
params: {},
|
|
1911
1896
|
input: { limit: 500 }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coffre/conformance",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Checks a coffre deployment from outside: what it must never do, whatever code it runs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"jose": "6.2.3",
|
|
33
33
|
"pg": "8.16.3",
|
|
34
|
-
"@coffre/cli": "0.1.
|
|
35
|
-
"@coffre/db": "0.1.
|
|
34
|
+
"@coffre/cli": "0.1.12",
|
|
35
|
+
"@coffre/db": "0.1.12"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "26.1.1",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"oauth4webapi": "3.8.8",
|
|
41
41
|
"tsdown": "0.23.0",
|
|
42
42
|
"typescript": "5.9.3",
|
|
43
|
-
"@coffre/client": "0.1.
|
|
43
|
+
"@coffre/client": "0.1.12"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsdown",
|
package/src/checks/canaries.ts
CHANGED
|
@@ -69,7 +69,7 @@ export async function canaryScan(deployment: Deployment, people: People, canarie
|
|
|
69
69
|
];
|
|
70
70
|
|
|
71
71
|
// These GETs are independent. Keep every route/caller pair, with a small
|
|
72
|
-
// number in flight so latency does not add up across all
|
|
72
|
+
// number in flight so latency does not add up across all answers.
|
|
73
73
|
const reads: { where: string; url: string; fetchAs: (url: string) => Promise<Response> }[] = [];
|
|
74
74
|
const routes = calls(people);
|
|
75
75
|
for (const { key, url } of getUrls(deployment.origin, routes)) {
|
package/src/checks/logins.ts
CHANGED
|
@@ -25,7 +25,7 @@ const IMMUTABLE = [
|
|
|
25
25
|
/** A column of each app table, for an update that would change nothing, if it were allowed. */
|
|
26
26
|
const APP_COLUMNS: Record<string, string> = {
|
|
27
27
|
projects: 'id', environments: 'id', secrets: 'id', secret_versions: 'id', identities: 'id',
|
|
28
|
-
credentials: 'id', device_authorizations: 'id',
|
|
28
|
+
credentials: 'id', device_authorizations: 'id',
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
async function refuses(sql: Sql, statements: string[]): Promise<number> {
|
package/src/checks/storage.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { expect } from '../report.ts';
|
|
|
5
5
|
|
|
6
6
|
export const TABLES = [
|
|
7
7
|
'projects', 'environments', 'secrets', 'secret_versions', 'vault_members', 'vault_grants',
|
|
8
|
-
'audit_log', 'audit_chain_head', 'identities', 'credentials', 'device_authorizations',
|
|
8
|
+
'audit_log', 'audit_chain_head', 'identities', 'credentials', 'device_authorizations',
|
|
9
9
|
] as const;
|
|
10
10
|
|
|
11
11
|
/** Inspect every table, including any a deployment added. Missing shared tables fail. */
|