pgpm 4.33.0 → 4.34.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.
|
@@ -16,9 +16,13 @@ Admin Users Bootstrap Command:
|
|
|
16
16
|
Options:
|
|
17
17
|
--help, -h Show this help message
|
|
18
18
|
--cwd <directory> Working directory (default: current directory)
|
|
19
|
+
--client Also create the restricted authenticated_client role
|
|
20
|
+
(for SQL-level proxy clients: inherits from
|
|
21
|
+
authenticated; server-enforced statement_timeout)
|
|
19
22
|
|
|
20
23
|
Examples:
|
|
21
24
|
pgpm admin-users bootstrap # Initialize postgres roles
|
|
25
|
+
pgpm admin-users bootstrap --client # Also create authenticated_client
|
|
22
26
|
`;
|
|
23
27
|
exports.default = async (argv, prompter, _options) => {
|
|
24
28
|
// Show usage if explicitly requested
|
|
@@ -44,6 +48,9 @@ exports.default = async (argv, prompter, _options) => {
|
|
|
44
48
|
const init = new core_1.PgpmInit(pgEnv);
|
|
45
49
|
try {
|
|
46
50
|
await init.bootstrapRoles(db.roles);
|
|
51
|
+
if (argv.client) {
|
|
52
|
+
await init.bootstrapClientRole(db.roles);
|
|
53
|
+
}
|
|
47
54
|
log.success('postgres roles and permissions initialized successfully.');
|
|
48
55
|
}
|
|
49
56
|
finally {
|
|
@@ -14,9 +14,13 @@ Admin Users Bootstrap Command:
|
|
|
14
14
|
Options:
|
|
15
15
|
--help, -h Show this help message
|
|
16
16
|
--cwd <directory> Working directory (default: current directory)
|
|
17
|
+
--client Also create the restricted authenticated_client role
|
|
18
|
+
(for SQL-level proxy clients: inherits from
|
|
19
|
+
authenticated; server-enforced statement_timeout)
|
|
17
20
|
|
|
18
21
|
Examples:
|
|
19
22
|
pgpm admin-users bootstrap # Initialize postgres roles
|
|
23
|
+
pgpm admin-users bootstrap --client # Also create authenticated_client
|
|
20
24
|
`;
|
|
21
25
|
export default async (argv, prompter, _options) => {
|
|
22
26
|
// Show usage if explicitly requested
|
|
@@ -42,6 +46,9 @@ export default async (argv, prompter, _options) => {
|
|
|
42
46
|
const init = new PgpmInit(pgEnv);
|
|
43
47
|
try {
|
|
44
48
|
await init.bootstrapRoles(db.roles);
|
|
49
|
+
if (argv.client) {
|
|
50
|
+
await init.bootstrapClientRole(db.roles);
|
|
51
|
+
}
|
|
45
52
|
log.success('postgres roles and permissions initialized successfully.');
|
|
46
53
|
}
|
|
47
54
|
finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgpm",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PostgreSQL Package Manager - Database migration and package management CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@inquirerer/utils": "^3.3.9",
|
|
49
|
-
"@pgpmjs/core": "^6.
|
|
50
|
-
"@pgpmjs/env": "^2.26.
|
|
51
|
-
"@pgpmjs/export": "^0.26.
|
|
49
|
+
"@pgpmjs/core": "^6.27.0",
|
|
50
|
+
"@pgpmjs/env": "^2.26.1",
|
|
51
|
+
"@pgpmjs/export": "^0.26.3",
|
|
52
52
|
"@pgpmjs/logger": "^2.13.0",
|
|
53
|
-
"@pgpmjs/types": "^2.
|
|
53
|
+
"@pgpmjs/types": "^2.31.0",
|
|
54
54
|
"@pgsql/quotes": "^17.1.0",
|
|
55
55
|
"appstash": "^0.7.0",
|
|
56
56
|
"find-and-require-package-json": "^0.9.1",
|
|
57
57
|
"genomic": "^5.6.2",
|
|
58
58
|
"inquirerer": "^4.9.1",
|
|
59
59
|
"js-yaml": "^4.1.0",
|
|
60
|
-
"pg-cache": "^3.13.
|
|
60
|
+
"pg-cache": "^3.13.1",
|
|
61
61
|
"pg-env": "^1.17.0",
|
|
62
62
|
"pgsql-deparser": "^17.18.3",
|
|
63
63
|
"semver": "^7.8.1",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"pg",
|
|
77
77
|
"pgsql"
|
|
78
78
|
],
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "5a7e92e9849aa715367a33fa78a23c5f9adaefa0"
|
|
80
80
|
}
|