@reyemtech/nimbus 2.12.6 → 3.0.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/README.md +2 -0
- package/dist/cjs/cli/migrate-cnpg-ownership.d.ts +43 -0
- package/dist/cjs/cli/migrate-cnpg-ownership.d.ts.map +1 -0
- package/dist/cjs/cli/migrate-cnpg-ownership.js +67 -0
- package/dist/cjs/cli/migrate-cnpg-ownership.js.map +1 -0
- package/dist/cjs/cli/migrate-cnpg-roles.d.ts +92 -0
- package/dist/cjs/cli/migrate-cnpg-roles.d.ts.map +1 -0
- package/dist/cjs/cli/migrate-cnpg-roles.js +337 -0
- package/dist/cjs/cli/migrate-cnpg-roles.js.map +1 -0
- package/dist/cjs/cli/migrate-cnpg.d.ts +38 -0
- package/dist/cjs/cli/migrate-cnpg.d.ts.map +1 -0
- package/dist/cjs/cli/migrate-cnpg.js +258 -0
- package/dist/cjs/cli/migrate-cnpg.js.map +1 -0
- package/dist/cjs/cli/migrate-exec.d.ts +45 -0
- package/dist/cjs/cli/migrate-exec.d.ts.map +1 -0
- package/dist/cjs/cli/migrate-exec.js +104 -0
- package/dist/cjs/cli/migrate-exec.js.map +1 -0
- package/dist/cjs/cli/migrate-psql.d.ts +125 -0
- package/dist/cjs/cli/migrate-psql.d.ts.map +1 -0
- package/dist/cjs/cli/migrate-psql.js +213 -0
- package/dist/cjs/cli/migrate-psql.js.map +1 -0
- package/dist/cjs/cli/migrate-report.d.ts +27 -0
- package/dist/cjs/cli/migrate-report.d.ts.map +1 -0
- package/dist/cjs/cli/migrate-report.js +29 -0
- package/dist/cjs/cli/migrate-report.js.map +1 -0
- package/dist/cjs/cli/migrate-superuser.d.ts +22 -0
- package/dist/cjs/cli/migrate-superuser.d.ts.map +1 -0
- package/dist/cjs/cli/migrate-superuser.js +73 -0
- package/dist/cjs/cli/migrate-superuser.js.map +1 -0
- package/dist/cjs/cli/migrate.d.ts +37 -0
- package/dist/cjs/cli/migrate.d.ts.map +1 -0
- package/dist/cjs/cli/migrate.js +67 -0
- package/dist/cjs/cli/migrate.js.map +1 -0
- package/dist/cjs/cli.d.ts +1 -0
- package/dist/cjs/cli.d.ts.map +1 -1
- package/dist/cjs/cli.js +6 -0
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/operator/cnpg-common.d.ts +56 -0
- package/dist/cjs/operator/cnpg-common.d.ts.map +1 -0
- package/dist/cjs/operator/cnpg-common.js +82 -0
- package/dist/cjs/operator/cnpg-common.js.map +1 -0
- package/dist/cjs/operator/cnpg-database.d.ts +66 -0
- package/dist/cjs/operator/cnpg-database.d.ts.map +1 -0
- package/dist/cjs/operator/cnpg-database.js +296 -0
- package/dist/cjs/operator/cnpg-database.js.map +1 -0
- package/dist/cjs/operator/cnpg-roles.d.ts +173 -0
- package/dist/cjs/operator/cnpg-roles.d.ts.map +1 -0
- package/dist/cjs/operator/cnpg-roles.js +225 -0
- package/dist/cjs/operator/cnpg-roles.js.map +1 -0
- package/dist/cjs/operator/cnpg.d.ts.map +1 -1
- package/dist/cjs/operator/cnpg.js +50 -162
- package/dist/cjs/operator/cnpg.js.map +1 -1
- package/dist/cjs/operator/connection-uri.d.ts +44 -0
- package/dist/cjs/operator/connection-uri.d.ts.map +1 -0
- package/dist/cjs/operator/connection-uri.js +49 -0
- package/dist/cjs/operator/connection-uri.js.map +1 -0
- package/dist/cjs/operator/credentials.d.ts +76 -0
- package/dist/cjs/operator/credentials.d.ts.map +1 -0
- package/dist/cjs/operator/credentials.js +106 -0
- package/dist/cjs/operator/credentials.js.map +1 -0
- package/dist/cjs/operator/database-options.d.ts +121 -0
- package/dist/cjs/operator/database-options.d.ts.map +1 -0
- package/dist/cjs/operator/database-options.js +131 -0
- package/dist/cjs/operator/database-options.js.map +1 -0
- package/dist/cjs/operator/grants/postgres-job.d.ts +109 -0
- package/dist/cjs/operator/grants/postgres-job.d.ts.map +1 -0
- package/dist/cjs/operator/grants/postgres-job.js +232 -0
- package/dist/cjs/operator/grants/postgres-job.js.map +1 -0
- package/dist/cjs/operator/grants/postgres-sql.d.ts +130 -0
- package/dist/cjs/operator/grants/postgres-sql.d.ts.map +1 -0
- package/dist/cjs/operator/grants/postgres-sql.js +305 -0
- package/dist/cjs/operator/grants/postgres-sql.js.map +1 -0
- package/dist/cjs/operator/grants/privileges.d.ts +24 -0
- package/dist/cjs/operator/grants/privileges.d.ts.map +1 -0
- package/dist/cjs/operator/grants/privileges.js +35 -0
- package/dist/cjs/operator/grants/privileges.js.map +1 -0
- package/dist/cjs/operator/grants/role-config.d.ts +80 -0
- package/dist/cjs/operator/grants/role-config.d.ts.map +1 -0
- package/dist/cjs/operator/grants/role-config.js +134 -0
- package/dist/cjs/operator/grants/role-config.js.map +1 -0
- package/dist/cjs/operator/index.d.ts +1 -1
- package/dist/cjs/operator/index.d.ts.map +1 -1
- package/dist/cjs/operator/index.js.map +1 -1
- package/dist/cjs/operator/interfaces.d.ts +223 -1
- package/dist/cjs/operator/interfaces.d.ts.map +1 -1
- package/dist/cjs/operator/interfaces.js.map +1 -1
- package/dist/cjs/operator/mariadb-common.d.ts +99 -0
- package/dist/cjs/operator/mariadb-common.d.ts.map +1 -0
- package/dist/cjs/operator/mariadb-common.js +141 -0
- package/dist/cjs/operator/mariadb-common.js.map +1 -0
- package/dist/cjs/operator/mariadb-database.d.ts +65 -0
- package/dist/cjs/operator/mariadb-database.d.ts.map +1 -0
- package/dist/cjs/operator/mariadb-database.js +285 -0
- package/dist/cjs/operator/mariadb-database.js.map +1 -0
- package/dist/cjs/operator/mariadb-roles.d.ts +264 -0
- package/dist/cjs/operator/mariadb-roles.d.ts.map +1 -0
- package/dist/cjs/operator/mariadb-roles.js +366 -0
- package/dist/cjs/operator/mariadb-roles.js.map +1 -0
- package/dist/cjs/operator/mariadb.d.ts.map +1 -1
- package/dist/cjs/operator/mariadb.js +35 -147
- package/dist/cjs/operator/mariadb.js.map +1 -1
- package/dist/cjs/operator/neo4j-common.d.ts +62 -0
- package/dist/cjs/operator/neo4j-common.d.ts.map +1 -0
- package/dist/cjs/operator/neo4j-common.js +89 -0
- package/dist/cjs/operator/neo4j-common.js.map +1 -0
- package/dist/cjs/operator/neo4j-database.d.ts +88 -0
- package/dist/cjs/operator/neo4j-database.d.ts.map +1 -0
- package/dist/cjs/operator/neo4j-database.js +274 -0
- package/dist/cjs/operator/neo4j-database.js.map +1 -0
- package/dist/cjs/operator/neo4j-roles.d.ts +203 -0
- package/dist/cjs/operator/neo4j-roles.d.ts.map +1 -0
- package/dist/cjs/operator/neo4j-roles.js +298 -0
- package/dist/cjs/operator/neo4j-roles.js.map +1 -0
- package/dist/cjs/operator/neo4j.d.ts.map +1 -1
- package/dist/cjs/operator/neo4j.js +32 -132
- package/dist/cjs/operator/neo4j.js.map +1 -1
- package/dist/cjs/operator/resource-identity.d.ts +170 -0
- package/dist/cjs/operator/resource-identity.d.ts.map +1 -0
- package/dist/cjs/operator/resource-identity.js +231 -0
- package/dist/cjs/operator/resource-identity.js.map +1 -0
- package/dist/cjs/operator/role-registry.d.ts +85 -0
- package/dist/cjs/operator/role-registry.d.ts.map +1 -0
- package/dist/cjs/operator/role-registry.js +72 -0
- package/dist/cjs/operator/role-registry.js.map +1 -0
- package/dist/cjs/types/errors.d.ts +3 -0
- package/dist/cjs/types/errors.d.ts.map +1 -1
- package/dist/cjs/types/errors.js +3 -0
- package/dist/cjs/types/errors.js.map +1 -1
- package/dist/esm/cli/migrate-cnpg-ownership.d.ts +43 -0
- package/dist/esm/cli/migrate-cnpg-ownership.d.ts.map +1 -0
- package/dist/esm/cli/migrate-cnpg-ownership.js +67 -0
- package/dist/esm/cli/migrate-cnpg-ownership.js.map +1 -0
- package/dist/esm/cli/migrate-cnpg-roles.d.ts +92 -0
- package/dist/esm/cli/migrate-cnpg-roles.d.ts.map +1 -0
- package/dist/esm/cli/migrate-cnpg-roles.js +337 -0
- package/dist/esm/cli/migrate-cnpg-roles.js.map +1 -0
- package/dist/esm/cli/migrate-cnpg.d.ts +38 -0
- package/dist/esm/cli/migrate-cnpg.d.ts.map +1 -0
- package/dist/esm/cli/migrate-cnpg.js +258 -0
- package/dist/esm/cli/migrate-cnpg.js.map +1 -0
- package/dist/esm/cli/migrate-exec.d.ts +45 -0
- package/dist/esm/cli/migrate-exec.d.ts.map +1 -0
- package/dist/esm/cli/migrate-exec.js +104 -0
- package/dist/esm/cli/migrate-exec.js.map +1 -0
- package/dist/esm/cli/migrate-psql.d.ts +125 -0
- package/dist/esm/cli/migrate-psql.d.ts.map +1 -0
- package/dist/esm/cli/migrate-psql.js +213 -0
- package/dist/esm/cli/migrate-psql.js.map +1 -0
- package/dist/esm/cli/migrate-report.d.ts +27 -0
- package/dist/esm/cli/migrate-report.d.ts.map +1 -0
- package/dist/esm/cli/migrate-report.js +29 -0
- package/dist/esm/cli/migrate-report.js.map +1 -0
- package/dist/esm/cli/migrate-superuser.d.ts +22 -0
- package/dist/esm/cli/migrate-superuser.d.ts.map +1 -0
- package/dist/esm/cli/migrate-superuser.js +73 -0
- package/dist/esm/cli/migrate-superuser.js.map +1 -0
- package/dist/esm/cli/migrate.d.ts +37 -0
- package/dist/esm/cli/migrate.d.ts.map +1 -0
- package/dist/esm/cli/migrate.js +67 -0
- package/dist/esm/cli/migrate.js.map +1 -0
- package/dist/esm/cli.d.ts +1 -0
- package/dist/esm/cli.d.ts.map +1 -1
- package/dist/esm/cli.js +6 -0
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/operator/cnpg-common.d.ts +56 -0
- package/dist/esm/operator/cnpg-common.d.ts.map +1 -0
- package/dist/esm/operator/cnpg-common.js +82 -0
- package/dist/esm/operator/cnpg-common.js.map +1 -0
- package/dist/esm/operator/cnpg-database.d.ts +66 -0
- package/dist/esm/operator/cnpg-database.d.ts.map +1 -0
- package/dist/esm/operator/cnpg-database.js +296 -0
- package/dist/esm/operator/cnpg-database.js.map +1 -0
- package/dist/esm/operator/cnpg-roles.d.ts +173 -0
- package/dist/esm/operator/cnpg-roles.d.ts.map +1 -0
- package/dist/esm/operator/cnpg-roles.js +225 -0
- package/dist/esm/operator/cnpg-roles.js.map +1 -0
- package/dist/esm/operator/cnpg.d.ts.map +1 -1
- package/dist/esm/operator/cnpg.js +50 -162
- package/dist/esm/operator/cnpg.js.map +1 -1
- package/dist/esm/operator/connection-uri.d.ts +44 -0
- package/dist/esm/operator/connection-uri.d.ts.map +1 -0
- package/dist/esm/operator/connection-uri.js +49 -0
- package/dist/esm/operator/connection-uri.js.map +1 -0
- package/dist/esm/operator/credentials.d.ts +76 -0
- package/dist/esm/operator/credentials.d.ts.map +1 -0
- package/dist/esm/operator/credentials.js +106 -0
- package/dist/esm/operator/credentials.js.map +1 -0
- package/dist/esm/operator/database-options.d.ts +121 -0
- package/dist/esm/operator/database-options.d.ts.map +1 -0
- package/dist/esm/operator/database-options.js +131 -0
- package/dist/esm/operator/database-options.js.map +1 -0
- package/dist/esm/operator/grants/postgres-job.d.ts +109 -0
- package/dist/esm/operator/grants/postgres-job.d.ts.map +1 -0
- package/dist/esm/operator/grants/postgres-job.js +232 -0
- package/dist/esm/operator/grants/postgres-job.js.map +1 -0
- package/dist/esm/operator/grants/postgres-sql.d.ts +130 -0
- package/dist/esm/operator/grants/postgres-sql.d.ts.map +1 -0
- package/dist/esm/operator/grants/postgres-sql.js +305 -0
- package/dist/esm/operator/grants/postgres-sql.js.map +1 -0
- package/dist/esm/operator/grants/privileges.d.ts +24 -0
- package/dist/esm/operator/grants/privileges.d.ts.map +1 -0
- package/dist/esm/operator/grants/privileges.js +35 -0
- package/dist/esm/operator/grants/privileges.js.map +1 -0
- package/dist/esm/operator/grants/role-config.d.ts +80 -0
- package/dist/esm/operator/grants/role-config.d.ts.map +1 -0
- package/dist/esm/operator/grants/role-config.js +134 -0
- package/dist/esm/operator/grants/role-config.js.map +1 -0
- package/dist/esm/operator/index.d.ts +1 -1
- package/dist/esm/operator/index.d.ts.map +1 -1
- package/dist/esm/operator/index.js.map +1 -1
- package/dist/esm/operator/interfaces.d.ts +223 -1
- package/dist/esm/operator/interfaces.d.ts.map +1 -1
- package/dist/esm/operator/interfaces.js.map +1 -1
- package/dist/esm/operator/mariadb-common.d.ts +99 -0
- package/dist/esm/operator/mariadb-common.d.ts.map +1 -0
- package/dist/esm/operator/mariadb-common.js +141 -0
- package/dist/esm/operator/mariadb-common.js.map +1 -0
- package/dist/esm/operator/mariadb-database.d.ts +65 -0
- package/dist/esm/operator/mariadb-database.d.ts.map +1 -0
- package/dist/esm/operator/mariadb-database.js +285 -0
- package/dist/esm/operator/mariadb-database.js.map +1 -0
- package/dist/esm/operator/mariadb-roles.d.ts +264 -0
- package/dist/esm/operator/mariadb-roles.d.ts.map +1 -0
- package/dist/esm/operator/mariadb-roles.js +366 -0
- package/dist/esm/operator/mariadb-roles.js.map +1 -0
- package/dist/esm/operator/mariadb.d.ts.map +1 -1
- package/dist/esm/operator/mariadb.js +35 -147
- package/dist/esm/operator/mariadb.js.map +1 -1
- package/dist/esm/operator/neo4j-common.d.ts +62 -0
- package/dist/esm/operator/neo4j-common.d.ts.map +1 -0
- package/dist/esm/operator/neo4j-common.js +89 -0
- package/dist/esm/operator/neo4j-common.js.map +1 -0
- package/dist/esm/operator/neo4j-database.d.ts +88 -0
- package/dist/esm/operator/neo4j-database.d.ts.map +1 -0
- package/dist/esm/operator/neo4j-database.js +274 -0
- package/dist/esm/operator/neo4j-database.js.map +1 -0
- package/dist/esm/operator/neo4j-roles.d.ts +203 -0
- package/dist/esm/operator/neo4j-roles.d.ts.map +1 -0
- package/dist/esm/operator/neo4j-roles.js +298 -0
- package/dist/esm/operator/neo4j-roles.js.map +1 -0
- package/dist/esm/operator/neo4j.d.ts.map +1 -1
- package/dist/esm/operator/neo4j.js +32 -132
- package/dist/esm/operator/neo4j.js.map +1 -1
- package/dist/esm/operator/resource-identity.d.ts +170 -0
- package/dist/esm/operator/resource-identity.d.ts.map +1 -0
- package/dist/esm/operator/resource-identity.js +231 -0
- package/dist/esm/operator/resource-identity.js.map +1 -0
- package/dist/esm/operator/role-registry.d.ts +85 -0
- package/dist/esm/operator/role-registry.d.ts.map +1 -0
- package/dist/esm/operator/role-registry.js +72 -0
- package/dist/esm/operator/role-registry.js.map +1 -0
- package/dist/esm/types/errors.d.ts +3 -0
- package/dist/esm/types/errors.d.ts.map +1 -1
- package/dist/esm/types/errors.js +3 -0
- package/dist/esm/types/errors.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Machine-readable `psql` output for the `nimbus migrate` checks.
|
|
4
|
+
*
|
|
5
|
+
* `psql -tAc` prints columns separated by `|` and escapes nothing, so a value
|
|
6
|
+
* containing that character is indistinguishable from a column boundary. A role
|
|
7
|
+
* called `read|er` — legal in PostgreSQL, which quotes identifiers — produced a
|
|
8
|
+
* line with ten fields where the parser expected nine, and the row was dropped.
|
|
9
|
+
* The check could then report that every role matches the adoption baseline
|
|
10
|
+
* while having skipped precisely the role whose attributes `DatabaseRole`
|
|
11
|
+
* adoption would reset: a false all-clear from the tool whose entire purpose is
|
|
12
|
+
* catching that.
|
|
13
|
+
*
|
|
14
|
+
* {@link toJsonRowsQuery} wraps a row-returning query so PostgreSQL renders the
|
|
15
|
+
* whole result as one JSON document, which escapes delimiters, quotes and
|
|
16
|
+
* newlines for us. The documented query itself is kept verbatim as the wrapped
|
|
17
|
+
* subquery, so this check and the manual procedure in
|
|
18
|
+
* `docs/cnpg-declarative-databases.md` still cannot drift apart.
|
|
19
|
+
*
|
|
20
|
+
* Nothing here drops a row it cannot read. {@link parseJsonRows} returns the
|
|
21
|
+
* rows it understood **and** a warning for everything else, which the caller
|
|
22
|
+
* surfaces as a WARN naming the row rather than silently omitting it.
|
|
23
|
+
*
|
|
24
|
+
* @module cli/migrate-psql
|
|
25
|
+
*/
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.toJsonRowsQuery = toJsonRowsQuery;
|
|
28
|
+
exports.parseJsonRows = parseJsonRows;
|
|
29
|
+
exports.readString = readString;
|
|
30
|
+
exports.readNullableString = readNullableString;
|
|
31
|
+
exports.readBoolean = readBoolean;
|
|
32
|
+
exports.readNumber = readNumber;
|
|
33
|
+
exports.readStringArray = readStringArray;
|
|
34
|
+
/** Alias the wrapped query's rows are aggregated under. */
|
|
35
|
+
const ROWS_ALIAS = "nimbus_row";
|
|
36
|
+
/** Longest fragment of unparseable output echoed back in a warning. */
|
|
37
|
+
const MAX_REPORTED_LENGTH = 200;
|
|
38
|
+
/**
|
|
39
|
+
* Wrap a row-returning query so `psql -tAc` emits a single JSON array.
|
|
40
|
+
*
|
|
41
|
+
* `json_agg` over `row_to_json` renders every column with its own name and
|
|
42
|
+
* escapes anything a value might contain, so no `|`, newline or quote in a role
|
|
43
|
+
* or database name can shift a field boundary. `coalesce` keeps the output a
|
|
44
|
+
* valid document (`[]`) when the query matches nothing, rather than the empty
|
|
45
|
+
* string `json_agg` returns for no rows.
|
|
46
|
+
*
|
|
47
|
+
* The query is embedded verbatim, so the constant a check runs stays byte-equal
|
|
48
|
+
* to the one the migration guide tells an operator to run by hand.
|
|
49
|
+
*
|
|
50
|
+
* @param query - A row-returning `SELECT`, without a trailing semicolon
|
|
51
|
+
* @returns A query returning one row with one JSON-array column
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* toJsonRowsQuery("SELECT datname FROM pg_database");
|
|
56
|
+
* // SELECT coalesce(json_agg(row_to_json(nimbus_row)), '[]'::json)
|
|
57
|
+
* // FROM (SELECT datname FROM pg_database) AS nimbus_row
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
function toJsonRowsQuery(query) {
|
|
61
|
+
return (`SELECT coalesce(json_agg(row_to_json(${ROWS_ALIAS})), '[]'::json) ` +
|
|
62
|
+
`FROM (${query}) AS ${ROWS_ALIAS}`);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Render a value into a warning without pasting an entire query result into the
|
|
66
|
+
* report.
|
|
67
|
+
*
|
|
68
|
+
* @param value - Value to describe
|
|
69
|
+
* @returns A short, single-line rendering, truncated with an ellipsis
|
|
70
|
+
*/
|
|
71
|
+
function describeValue(value) {
|
|
72
|
+
const rendered = typeof value === "string" ? value : JSON.stringify(value);
|
|
73
|
+
const oneLine = (rendered ?? String(value)).replace(/\s+/g, " ").trim();
|
|
74
|
+
return oneLine.length > MAX_REPORTED_LENGTH
|
|
75
|
+
? `${oneLine.slice(0, MAX_REPORTED_LENGTH)}…`
|
|
76
|
+
: oneLine;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Parse the output of a {@link toJsonRowsQuery} query into row objects.
|
|
80
|
+
*
|
|
81
|
+
* A row that cannot be used is reported, never dropped: the caller turns each
|
|
82
|
+
* warning into a WARN line, so an unreadable row downgrades the check instead of
|
|
83
|
+
* quietly shrinking the set it claims to have inspected.
|
|
84
|
+
*
|
|
85
|
+
* @param stdout - Raw `psql -tAc` output
|
|
86
|
+
* @param subject - What the query was reading, named in warnings (e.g. "pg_roles")
|
|
87
|
+
* @returns The object rows, and a warning for anything unusable
|
|
88
|
+
*/
|
|
89
|
+
function parseJsonRows(stdout, subject) {
|
|
90
|
+
const text = stdout.trim();
|
|
91
|
+
if (text === "") {
|
|
92
|
+
return {
|
|
93
|
+
rows: [],
|
|
94
|
+
warnings: [`the ${subject} query returned no output; nothing was checked.`],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
let parsed;
|
|
98
|
+
try {
|
|
99
|
+
parsed = JSON.parse(text);
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
103
|
+
return {
|
|
104
|
+
rows: [],
|
|
105
|
+
warnings: [
|
|
106
|
+
`could not parse the ${subject} query output as JSON (${reason}): ${describeValue(text)}`,
|
|
107
|
+
],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
if (!Array.isArray(parsed)) {
|
|
111
|
+
return {
|
|
112
|
+
rows: [],
|
|
113
|
+
warnings: [
|
|
114
|
+
`the ${subject} query returned ${describeValue(parsed)}, which is not a list of rows.`,
|
|
115
|
+
],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
const rows = [];
|
|
119
|
+
const warnings = [];
|
|
120
|
+
parsed.forEach((element, index) => {
|
|
121
|
+
if (typeof element === "object" && element !== null && !Array.isArray(element)) {
|
|
122
|
+
rows.push(element);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
warnings.push(`${subject} row ${index + 1} is not an object and was not checked: ${describeValue(element)}`);
|
|
126
|
+
});
|
|
127
|
+
return { rows, warnings };
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Read a column that must hold a non-empty string.
|
|
131
|
+
*
|
|
132
|
+
* @param row - Parsed row
|
|
133
|
+
* @param column - Column name
|
|
134
|
+
* @returns The value, or undefined when absent, empty, or another type
|
|
135
|
+
*/
|
|
136
|
+
function readString(row, column) {
|
|
137
|
+
const value = row[column];
|
|
138
|
+
return typeof value === "string" && value.length > 0 ? value : undefined;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Read a column that may legitimately hold SQL `NULL`.
|
|
142
|
+
*
|
|
143
|
+
* A nullable column has three states this parser must keep apart: a value, an
|
|
144
|
+
* explicit `NULL` — which is data, not a failure (`rolvaliduntil` NULL is how
|
|
145
|
+
* PostgreSQL spells "this password never expires") — and a column that is absent
|
|
146
|
+
* or of the wrong type, which is unreadable. Only the last may warn, so `null`
|
|
147
|
+
* is returned as itself rather than collapsed into the `undefined` that
|
|
148
|
+
* {@link readString} uses for "could not read this".
|
|
149
|
+
*
|
|
150
|
+
* An empty string is a value here, unlike in {@link readString}: `COMMENT ON
|
|
151
|
+
* ROLE … IS ''` is a real, if pointless, state and must not read as unreadable.
|
|
152
|
+
*
|
|
153
|
+
* @param row - Parsed row
|
|
154
|
+
* @param column - Column name
|
|
155
|
+
* @returns The value, `null` for a SQL `NULL`, or undefined when the column is
|
|
156
|
+
* absent or of another type
|
|
157
|
+
*/
|
|
158
|
+
function readNullableString(row, column) {
|
|
159
|
+
if (!(column in row)) {
|
|
160
|
+
return undefined;
|
|
161
|
+
}
|
|
162
|
+
const value = row[column];
|
|
163
|
+
if (value === null) {
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
return typeof value === "string" ? value : undefined;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Read a column that must hold a JSON boolean.
|
|
170
|
+
*
|
|
171
|
+
* PostgreSQL's `boolean` renders as a JSON boolean, not as psql's `t`/`f`, so a
|
|
172
|
+
* `"t"` here means the query was not the wrapped JSON one.
|
|
173
|
+
*
|
|
174
|
+
* @param row - Parsed row
|
|
175
|
+
* @param column - Column name
|
|
176
|
+
* @returns The value, or undefined when absent or another type
|
|
177
|
+
*/
|
|
178
|
+
function readBoolean(row, column) {
|
|
179
|
+
const value = row[column];
|
|
180
|
+
return typeof value === "boolean" ? value : undefined;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Read a column that must hold a finite JSON number.
|
|
184
|
+
*
|
|
185
|
+
* @param row - Parsed row
|
|
186
|
+
* @param column - Column name
|
|
187
|
+
* @returns The value, or undefined when absent, not finite, or another type
|
|
188
|
+
*/
|
|
189
|
+
function readNumber(row, column) {
|
|
190
|
+
const value = row[column];
|
|
191
|
+
return typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Read a column that must hold an array of strings.
|
|
195
|
+
*
|
|
196
|
+
* A PostgreSQL `text[]` renders as a JSON array, so role memberships arrive
|
|
197
|
+
* already separated — a membership containing a comma or a `|` can no longer
|
|
198
|
+
* blur into its neighbour the way it could in psql's `{a,b}` array text.
|
|
199
|
+
*
|
|
200
|
+
* @param row - Parsed row
|
|
201
|
+
* @param column - Column name
|
|
202
|
+
* @returns The values, or undefined when absent or not an array of strings
|
|
203
|
+
*/
|
|
204
|
+
function readStringArray(row, column) {
|
|
205
|
+
const value = row[column];
|
|
206
|
+
if (!Array.isArray(value)) {
|
|
207
|
+
return undefined;
|
|
208
|
+
}
|
|
209
|
+
return value.every((element) => typeof element === "string")
|
|
210
|
+
? value
|
|
211
|
+
: undefined;
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=migrate-psql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-psql.js","sourceRoot":"","sources":["../../../src/cli/migrate-psql.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;AA8BH,0CAKC;AAoCD,sCA4CC;AASD,gCAGC;AAoBD,gDAYC;AAYD,kCAGC;AASD,gCAGC;AAaD,0CAWC;AAhND,2DAA2D;AAC3D,MAAM,UAAU,GAAG,YAAY,CAAC;AAEhC,uEAAuE;AACvE,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEhC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,eAAe,CAAC,KAAa;IAC3C,OAAO,CACL,wCAAwC,UAAU,kBAAkB;QACpE,SAAS,KAAK,QAAQ,UAAU,EAAE,CACnC,CAAC;AACJ,CAAC;AAUD;;;;;;GAMG;AACH,SAAS,aAAa,CAAC,KAAc;IACnC,MAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC3E,MAAM,OAAO,GAAG,CAAC,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,C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AC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,GAA4B,EAAE,MAAc;IACrE,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACjF,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,eAAe,CAC7B,GAA4B,EAC5B,MAAc;IAEd,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,OAAO,KAAK,QAAQ,CAAC;QACnE,CAAC,CAAE,KAAkB;QACrB,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared report types for `nimbus migrate` — the PASS/WARN/FAIL vocabulary
|
|
3
|
+
* every check section reports in, and the printer that renders one.
|
|
4
|
+
*
|
|
5
|
+
* @module cli/migrate-report
|
|
6
|
+
*/
|
|
7
|
+
/** Section verdicts printed by `nimbus migrate`. */
|
|
8
|
+
export declare const CHECK_STATUS: {
|
|
9
|
+
readonly PASS: "PASS";
|
|
10
|
+
readonly WARN: "WARN";
|
|
11
|
+
readonly FAIL: "FAIL";
|
|
12
|
+
};
|
|
13
|
+
/** A section verdict: "PASS", "WARN", or "FAIL". */
|
|
14
|
+
export type CheckStatus = (typeof CHECK_STATUS)[keyof typeof CHECK_STATUS];
|
|
15
|
+
/** Result of one pre-flight check section. */
|
|
16
|
+
export interface ISectionResult {
|
|
17
|
+
readonly status: CheckStatus;
|
|
18
|
+
readonly lines: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Print one report section in `[STATUS] title` form, indenting its detail lines.
|
|
22
|
+
*
|
|
23
|
+
* @param title - Section heading
|
|
24
|
+
* @param section - Section result to print
|
|
25
|
+
*/
|
|
26
|
+
export declare function printSection(title: string, section: ISectionResult): void;
|
|
27
|
+
//# sourceMappingURL=migrate-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-report.d.ts","sourceRoot":"","sources":["../../../src/cli/migrate-report.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oDAAoD;AACpD,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,oDAAoD;AACpD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E,8CAA8C;AAC9C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,CAKzE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shared report types for `nimbus migrate` — the PASS/WARN/FAIL vocabulary
|
|
4
|
+
* every check section reports in, and the printer that renders one.
|
|
5
|
+
*
|
|
6
|
+
* @module cli/migrate-report
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.CHECK_STATUS = void 0;
|
|
10
|
+
exports.printSection = printSection;
|
|
11
|
+
/** Section verdicts printed by `nimbus migrate`. */
|
|
12
|
+
exports.CHECK_STATUS = {
|
|
13
|
+
PASS: "PASS",
|
|
14
|
+
WARN: "WARN",
|
|
15
|
+
FAIL: "FAIL",
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Print one report section in `[STATUS] title` form, indenting its detail lines.
|
|
19
|
+
*
|
|
20
|
+
* @param title - Section heading
|
|
21
|
+
* @param section - Section result to print
|
|
22
|
+
*/
|
|
23
|
+
function printSection(title, section) {
|
|
24
|
+
console.log(`\n[${section.status}] ${title}`);
|
|
25
|
+
for (const line of section.lines) {
|
|
26
|
+
console.log(` ${line}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=migrate-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-report.js","sourceRoot":"","sources":["../../../src/cli/migrate-report.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAwBH,oCAKC;AA3BD,oDAAoD;AACvC,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAWX;;;;;GAKG;AACH,SAAgB,YAAY,CAAC,KAAa,EAAE,OAAuB;IACjE,OAAO,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE,CAAC,CAAC;IAC9C,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QACjC,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `{cluster}-superuser` Secret consumer check for `nimbus migrate`.
|
|
3
|
+
*
|
|
4
|
+
* `superuserAccess` now defaults to `false`. On an existing cluster this makes
|
|
5
|
+
* CNPG set the `postgres` password to NULL and delete the `{cluster}-superuser`
|
|
6
|
+
* Secret — the one change in this release that mutates live cluster state and
|
|
7
|
+
* that no Pulumi alias can shim. Any out-of-band consumer of that Secret needs
|
|
8
|
+
* a human decision, not an automated fix, so this only ever greps for it.
|
|
9
|
+
*
|
|
10
|
+
* @module cli/migrate-superuser
|
|
11
|
+
*/
|
|
12
|
+
import type { ISectionResult } from "./migrate-report.js";
|
|
13
|
+
/** Secret name suffix that disappears when `superuserAccess` is `false`. */
|
|
14
|
+
export declare const SUPERUSER_SECRET_SUFFIX = "-superuser";
|
|
15
|
+
/**
|
|
16
|
+
* Grep the working directory for references to the `{cluster}-superuser` Secret.
|
|
17
|
+
*
|
|
18
|
+
* @returns PASS when nothing references the Secret, WARN otherwise (or when
|
|
19
|
+
* the scan itself could not run)
|
|
20
|
+
*/
|
|
21
|
+
export declare function checkSuperuserConsumers(): ISectionResult;
|
|
22
|
+
//# sourceMappingURL=migrate-superuser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-superuser.d.ts","sourceRoot":"","sources":["../../../src/cli/migrate-superuser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB,eAAe,CAAC;AAKpD;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,cAAc,CAgDxD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* `{cluster}-superuser` Secret consumer check for `nimbus migrate`.
|
|
4
|
+
*
|
|
5
|
+
* `superuserAccess` now defaults to `false`. On an existing cluster this makes
|
|
6
|
+
* CNPG set the `postgres` password to NULL and delete the `{cluster}-superuser`
|
|
7
|
+
* Secret — the one change in this release that mutates live cluster state and
|
|
8
|
+
* that no Pulumi alias can shim. Any out-of-band consumer of that Secret needs
|
|
9
|
+
* a human decision, not an automated fix, so this only ever greps for it.
|
|
10
|
+
*
|
|
11
|
+
* @module cli/migrate-superuser
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.SUPERUSER_SECRET_SUFFIX = void 0;
|
|
15
|
+
exports.checkSuperuserConsumers = checkSuperuserConsumers;
|
|
16
|
+
const migrate_exec_js_1 = require("./migrate-exec.js");
|
|
17
|
+
const migrate_report_js_1 = require("./migrate-report.js");
|
|
18
|
+
/** Secret name suffix that disappears when `superuserAccess` is `false`. */
|
|
19
|
+
exports.SUPERUSER_SECRET_SUFFIX = "-superuser";
|
|
20
|
+
/** Exit code GNU/BSD grep uses when the pattern matches nothing (not an error for us). */
|
|
21
|
+
const GREP_NO_MATCH_EXIT_CODE = 1;
|
|
22
|
+
/**
|
|
23
|
+
* Grep the working directory for references to the `{cluster}-superuser` Secret.
|
|
24
|
+
*
|
|
25
|
+
* @returns PASS when nothing references the Secret, WARN otherwise (or when
|
|
26
|
+
* the scan itself could not run)
|
|
27
|
+
*/
|
|
28
|
+
function checkSuperuserConsumers() {
|
|
29
|
+
const result = (0, migrate_exec_js_1.runCommand)("grep", [
|
|
30
|
+
"-rn",
|
|
31
|
+
"--exclude-dir=node_modules",
|
|
32
|
+
"--exclude-dir=dist",
|
|
33
|
+
"-e",
|
|
34
|
+
exports.SUPERUSER_SECRET_SUFFIX,
|
|
35
|
+
".",
|
|
36
|
+
]);
|
|
37
|
+
if (result.ok) {
|
|
38
|
+
const matches = (0, migrate_exec_js_1.splitNonEmptyLines)(result.stdout);
|
|
39
|
+
return {
|
|
40
|
+
status: migrate_report_js_1.CHECK_STATUS.WARN,
|
|
41
|
+
lines: [
|
|
42
|
+
`Found ${matches.length} reference(s) to "${exports.SUPERUSER_SECRET_SUFFIX}" outside node_modules/ and dist/:`,
|
|
43
|
+
...matches.map((match) => ` ${match}`),
|
|
44
|
+
"superuserAccess now defaults to false. On an existing cluster this makes CNPG set the",
|
|
45
|
+
"postgres password to NULL and delete the {cluster}-superuser Secret. Review each hit",
|
|
46
|
+
"above for an out-of-band consumer; if one needs it, set superuserAccess: true explicitly",
|
|
47
|
+
"before upgrading.",
|
|
48
|
+
],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (result.reason === "not-found") {
|
|
52
|
+
return {
|
|
53
|
+
status: migrate_report_js_1.CHECK_STATUS.WARN,
|
|
54
|
+
lines: [
|
|
55
|
+
`"grep" was not found on PATH; could not scan for "${exports.SUPERUSER_SECRET_SUFFIX}" consumers.`,
|
|
56
|
+
"Search your working directory manually before upgrading.",
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
if (result.exitCode === GREP_NO_MATCH_EXIT_CODE) {
|
|
61
|
+
return {
|
|
62
|
+
status: migrate_report_js_1.CHECK_STATUS.PASS,
|
|
63
|
+
lines: [
|
|
64
|
+
`No references to "${exports.SUPERUSER_SECRET_SUFFIX}" found outside node_modules/ and dist/.`,
|
|
65
|
+
],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
status: migrate_report_js_1.CHECK_STATUS.WARN,
|
|
70
|
+
lines: [`Could not complete the scan: ${result.message}`],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=migrate-superuser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-superuser.js","sourceRoot":"","sources":["../../../src/cli/migrate-superuser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAkBH,0DAgDC;AAhED,uDAAmE;AACnE,2DAAmD;AAGnD,4EAA4E;AAC/D,QAAA,uBAAuB,GAAG,YAAY,CAAC;AAEpD,0FAA0F;AAC1F,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAElC;;;;;GAKG;AACH,SAAgB,uBAAuB;IACrC,MAAM,MAAM,GAAG,IAAA,4BAAU,EAAC,MAAM,EAAE;QAChC,KAAK;QACL,4BAA4B;QAC5B,oBAAoB;QACpB,IAAI;QACJ,+BAAuB;QACvB,GAAG;KACJ,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;QACd,MAAM,OAAO,GAAG,IAAA,oCAAkB,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAClD,OAAO;YACL,MAAM,EAAE,gCAAY,CAAC,IAAI;YACzB,KAAK,EAAE;gBACL,SAAS,OAAO,CAAC,MAAM,qBAAqB,+BAAuB,oCAAoC;gBACvG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC;gBACvC,uFAAuF;gBACvF,sFAAsF;gBACtF,0FAA0F;gBAC1F,mBAAmB;aACpB;SACF,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO;YACL,MAAM,EAAE,gCAAY,CAAC,IAAI;YACzB,KAAK,EAAE;gBACL,qDAAqD,+BAAuB,cAAc;gBAC1F,0DAA0D;aAC3D;SACF,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,CAAC,QAAQ,KAAK,uBAAuB,EAAE,CAAC;QAChD,OAAO;YACL,MAAM,EAAE,gCAAY,CAAC,IAAI;YACzB,KAAK,EAAE;gBACL,qBAAqB,+BAAuB,0CAA0C;aACvF;SACF,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM,EAAE,gCAAY,CAAC,IAAI;QACzB,KAAK,EAAE,CAAC,gCAAgC,MAAM,CAAC,OAAO,EAAE,CAAC;KAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read-only pre-flight checks for the declarative database roles migration.
|
|
3
|
+
*
|
|
4
|
+
* Nimbus 3.0 replaces the CNPG bootstrap Job with `Database` / `DatabaseRole`
|
|
5
|
+
* custom resources (see `docs/cnpg-declarative-databases.md`). Pulumi resource
|
|
6
|
+
* names are preserved, so the upgrade itself is a no-op for most stacks — but
|
|
7
|
+
* two things can surprise an operator on adoption: a hand-tweaked role losing
|
|
8
|
+
* an attribute the manifest omits, and the `{cluster}-superuser` Secret being
|
|
9
|
+
* deleted when `superuserAccess` falls back to its new default of `false`.
|
|
10
|
+
*
|
|
11
|
+
* This module only ever reads: `kubectl get`, `kubectl exec … psql -tAc`, and
|
|
12
|
+
* a filesystem `grep` (see `migrate-exec.ts`, `migrate-cnpg.ts`,
|
|
13
|
+
* `migrate-superuser.ts`). It never runs `kubectl apply/patch/delete/edit`,
|
|
14
|
+
* `pulumi up`, or writes to any file — it is safe to run against a production
|
|
15
|
+
* cluster before deciding whether to upgrade.
|
|
16
|
+
*
|
|
17
|
+
* @module cli/migrate
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Run every read-only pre-flight check for the declarative database roles migration
|
|
21
|
+
* and print a PASS/WARN/FAIL report.
|
|
22
|
+
*
|
|
23
|
+
* This command never mutates anything: no `kubectl apply/patch/delete/edit`, no
|
|
24
|
+
* `pulumi up`, and no writes to the user's files or Pulumi state. It only shells
|
|
25
|
+
* out to `kubectl get`, `kubectl exec … psql -tAc`, and `grep`.
|
|
26
|
+
*
|
|
27
|
+
* @param version - Target nimbus version, echoed in the report header
|
|
28
|
+
* @returns `1` if any check FAILs, `0` otherwise (including when checks WARN)
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const exitCode = runMigrateChecks("v3");
|
|
33
|
+
* process.exit(exitCode);
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare function runMigrateChecks(version: string): number;
|
|
37
|
+
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/cli/migrate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAWH;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAgCxD"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Read-only pre-flight checks for the declarative database roles migration.
|
|
4
|
+
*
|
|
5
|
+
* Nimbus 3.0 replaces the CNPG bootstrap Job with `Database` / `DatabaseRole`
|
|
6
|
+
* custom resources (see `docs/cnpg-declarative-databases.md`). Pulumi resource
|
|
7
|
+
* names are preserved, so the upgrade itself is a no-op for most stacks — but
|
|
8
|
+
* two things can surprise an operator on adoption: a hand-tweaked role losing
|
|
9
|
+
* an attribute the manifest omits, and the `{cluster}-superuser` Secret being
|
|
10
|
+
* deleted when `superuserAccess` falls back to its new default of `false`.
|
|
11
|
+
*
|
|
12
|
+
* This module only ever reads: `kubectl get`, `kubectl exec … psql -tAc`, and
|
|
13
|
+
* a filesystem `grep` (see `migrate-exec.ts`, `migrate-cnpg.ts`,
|
|
14
|
+
* `migrate-superuser.ts`). It never runs `kubectl apply/patch/delete/edit`,
|
|
15
|
+
* `pulumi up`, or writes to any file — it is safe to run against a production
|
|
16
|
+
* cluster before deciding whether to upgrade.
|
|
17
|
+
*
|
|
18
|
+
* @module cli/migrate
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.runMigrateChecks = runMigrateChecks;
|
|
22
|
+
const migrate_cnpg_js_1 = require("./migrate-cnpg.js");
|
|
23
|
+
const migrate_report_js_1 = require("./migrate-report.js");
|
|
24
|
+
const migrate_superuser_js_1 = require("./migrate-superuser.js");
|
|
25
|
+
/**
|
|
26
|
+
* Run every read-only pre-flight check for the declarative database roles migration
|
|
27
|
+
* and print a PASS/WARN/FAIL report.
|
|
28
|
+
*
|
|
29
|
+
* This command never mutates anything: no `kubectl apply/patch/delete/edit`, no
|
|
30
|
+
* `pulumi up`, and no writes to the user's files or Pulumi state. It only shells
|
|
31
|
+
* out to `kubectl get`, `kubectl exec … psql -tAc`, and `grep`.
|
|
32
|
+
*
|
|
33
|
+
* @param version - Target nimbus version, echoed in the report header
|
|
34
|
+
* @returns `1` if any check FAILs, `0` otherwise (including when checks WARN)
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* const exitCode = runMigrateChecks("v3");
|
|
39
|
+
* process.exit(exitCode);
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
function runMigrateChecks(version) {
|
|
43
|
+
console.log(`Nimbus declarative database roles pre-flight (target: ${version})`);
|
|
44
|
+
console.log("Read-only checks — nothing below mutates your cluster, files, or Pulumi state.");
|
|
45
|
+
const crdOutcome = (0, migrate_cnpg_js_1.checkCnpgCrds)();
|
|
46
|
+
(0, migrate_report_js_1.printSection)(`1. CloudNativePG CRDs (${migrate_cnpg_js_1.CNPG_DATABASE_CRD_NAME}, ${migrate_cnpg_js_1.CNPG_DATABASE_ROLE_CRD_NAME})`, crdOutcome.section);
|
|
47
|
+
const { roleSection, ownershipSection } = (0, migrate_cnpg_js_1.checkClusterState)(crdOutcome.clusterReachable);
|
|
48
|
+
(0, migrate_report_js_1.printSection)("2. Role attributes vs. nimbus baseline", roleSection);
|
|
49
|
+
(0, migrate_report_js_1.printSection)("3. Database ownership", ownershipSection);
|
|
50
|
+
const superuserSection = (0, migrate_superuser_js_1.checkSuperuserConsumers)();
|
|
51
|
+
(0, migrate_report_js_1.printSection)(`4. "${migrate_superuser_js_1.SUPERUSER_SECRET_SUFFIX}" Secret consumers`, superuserSection);
|
|
52
|
+
const sections = [crdOutcome.section, roleSection, ownershipSection, superuserSection];
|
|
53
|
+
const hasFailure = sections.some((section) => section.status === migrate_report_js_1.CHECK_STATUS.FAIL);
|
|
54
|
+
const hasWarning = sections.some((section) => section.status === migrate_report_js_1.CHECK_STATUS.WARN);
|
|
55
|
+
console.log("");
|
|
56
|
+
if (hasFailure) {
|
|
57
|
+
console.log("Result: FAIL — resolve the FAIL item(s) above before upgrading.");
|
|
58
|
+
return 1;
|
|
59
|
+
}
|
|
60
|
+
if (hasWarning) {
|
|
61
|
+
console.log("Result: PASS WITH WARNINGS — review the WARN item(s) above before upgrading.");
|
|
62
|
+
return 0;
|
|
63
|
+
}
|
|
64
|
+
console.log("Result: PASS — no issues found.");
|
|
65
|
+
return 0;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=migrate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../../src/cli/migrate.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;AA4BH,4CAgCC;AA1DD,uDAK2B;AAC3B,2DAAiE;AACjE,iEAA0F;AAE1F;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,gBAAgB,CAAC,OAAe;IAC9C,OAAO,CAAC,GAAG,CAAC,yDAAyD,OAAO,GAAG,CAAC,CAAC;IACjF,OAAO,CAAC,GAAG,CAAC,gFAAgF,CAAC,CAAC;IAE9F,MAAM,UAAU,GAAG,IAAA,+BAAa,GAAE,CAAC;IACnC,IAAA,gCAAY,EACV,0BAA0B,wCAAsB,KAAK,6CAA2B,GAAG,EACnF,UAAU,CAAC,OAAO,CACnB,CAAC;IAEF,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,IAAA,mCAAiB,EAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IACzF,IAAA,gCAAY,EAAC,wCAAwC,EAAE,WAAW,CAAC,CAAC;IACpE,IAAA,gCAAY,EAAC,uBAAuB,EAAE,gBAAgB,CAAC,CAAC;IAExD,MAAM,gBAAgB,GAAG,IAAA,8CAAuB,GAAE,CAAC;IACnD,IAAA,gCAAY,EAAC,OAAO,8CAAuB,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;IAEnF,MAAM,QAAQ,GAAG,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;IACvF,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,KAAK,gCAAY,CAAC,IAAI,CAAC,CAAC;IACpF,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,KAAK,gCAAY,CAAC,IAAI,CAAC,CAAC;IAEpF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,iEAAiE,CAAC,CAAC;QAC/E,OAAO,CAAC,CAAC;IACX,CAAC;IACD,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,8EAA8E,CAAC,CAAC;QAC5F,OAAO,CAAC,CAAC;IACX,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;IAC/C,OAAO,CAAC,CAAC;AACX,CAAC"}
|
package/dist/esm/cli.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* npx @reyemtech/nimbus install azure → npm install @pulumi/azure-native
|
|
9
9
|
* npx @reyemtech/nimbus install aws azure → npm install @pulumi/aws @pulumi/azure-native
|
|
10
10
|
* npx @reyemtech/nimbus check → reports which providers are installed/missing
|
|
11
|
+
* npx @reyemtech/nimbus migrate [version] → read-only pre-flight checks before upgrading
|
|
11
12
|
*
|
|
12
13
|
* @module cli
|
|
13
14
|
*/
|
package/dist/esm/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AAEA
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;GAYG"}
|
package/dist/esm/cli.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* npx @reyemtech/nimbus install azure → npm install @pulumi/azure-native
|
|
10
10
|
* npx @reyemtech/nimbus install aws azure → npm install @pulumi/aws @pulumi/azure-native
|
|
11
11
|
* npx @reyemtech/nimbus check → reports which providers are installed/missing
|
|
12
|
+
* npx @reyemtech/nimbus migrate [version] → read-only pre-flight checks before upgrading
|
|
12
13
|
*
|
|
13
14
|
* @module cli
|
|
14
15
|
*/
|
|
@@ -18,6 +19,7 @@ const fs_1 = require("fs");
|
|
|
18
19
|
const path_1 = require("path");
|
|
19
20
|
const templates_js_1 = require("./cli/templates.js");
|
|
20
21
|
const azure_prompts_js_1 = require("./cli/azure-prompts.js");
|
|
22
|
+
const migrate_js_1 = require("./cli/migrate.js");
|
|
21
23
|
const PROVIDER_PACKAGES = {
|
|
22
24
|
aws: ["@pulumi/aws"],
|
|
23
25
|
azure: ["@pulumi/azure-native"],
|
|
@@ -174,12 +176,16 @@ async function main() {
|
|
|
174
176
|
case "check":
|
|
175
177
|
await check();
|
|
176
178
|
break;
|
|
179
|
+
case "migrate":
|
|
180
|
+
process.exit((0, migrate_js_1.runMigrateChecks)(args[1] ?? "v3"));
|
|
181
|
+
break;
|
|
177
182
|
default:
|
|
178
183
|
console.log("@reyemtech/nimbus CLI\n");
|
|
179
184
|
console.log("Commands:");
|
|
180
185
|
console.log(" new <name> <template> Scaffold a new project from a template");
|
|
181
186
|
console.log(" install <provider> [provider...] Install cloud provider packages");
|
|
182
187
|
console.log(" check Check which providers are installed");
|
|
188
|
+
console.log(" migrate [version] Read-only pre-flight checks before upgrading");
|
|
183
189
|
console.log(`\nAvailable providers: ${ALL_PROVIDERS.join(", ")}`);
|
|
184
190
|
console.log(`Available templates: ${templates_js_1.TEMPLATE_NAMES.join(", ")}`);
|
|
185
191
|
if (command && command !== "help" && command !== "--help" && command !== "-h") {
|
package/dist/esm/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";;AAEA
|
|
1
|
+
{"version":3,"file":"cli.js","s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;gBAC9E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;IACL,CAAC;AACH,CAAC;AAED,KAAK,IAAI,EAAE,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export { type CacheEngine, type CacheMode, type CacheArchitecture, type ICacheCo
|
|
|
29
29
|
export type { ILifecycleRule, ICorsRule, IObjectStorageConfig, IObjectStorage } from "./storage";
|
|
30
30
|
export type { IBackupReplicationConfig, IBackupTargetConfig, IBackupTarget } from "./backup";
|
|
31
31
|
export { createBackupTarget } from "./backup";
|
|
32
|
-
export type { OperatorType, EnvironmentOverrides, IBackupDefaults, IOperatorConfig, IOperatorClusterConfig, IOperatorDatabaseConfig, IDatabaseInstance, IClusterInstance, IOperator, IMinIOOperator, IMinIOBucket, IMinIOBucketConfig, IMinIOIngressConfig, } from "./operator";
|
|
32
|
+
export type { OperatorType, EnvironmentOverrides, IBackupDefaults, IOperatorConfig, IOperatorClusterConfig, IOperatorDatabaseConfig, IDatabaseInstance, IDatabaseGrant, IDatabaseRole, IDatabaseRoleConfig, ReclaimPolicy, IClusterInstance, IOperator, IMinIOOperator, IMinIOBucket, IMinIOBucketConfig, IMinIOIngressConfig, } from "./operator";
|
|
33
33
|
export { createOperator, createMinioIngress, OPERATOR_TYPES } from "./operator";
|
|
34
34
|
export type { INeo4jClusterConfig } from "./operator";
|
|
35
35
|
export type { QueueEngine, QueueMode, QueueType, IQueueConfig, IQueue } from "./queue";
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,eAAe,EACf,eAAe,EACf,cAAc,EACd,eAAe,EACf,aAAa,EACb,kBAAkB,GACnB,M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mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,EAAE,mBAAmB,EAAE,KAAK,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGzF,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,oBAAoB,EACpB,eAAe,GAChB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EACL,aAAa,EACb,aAAa,EACb,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,eAAe,EACf,YAAY,GACb,MAAM,aAAa,CAAC"}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;AAEH,aAAa;AACb,iCAWiB;AANf,wGAAA,eAAe,OAAA;AACf,wGAAA,eAAe,OAAA;AACf,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,2GAAA,kBAAkB,OAAA;AAGpB,iCASi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