@fjall/components-infrastructure 0.99.1 → 0.99.4
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.
|
@@ -115,7 +115,8 @@ export declare class ClickHouseDatabase extends Construct implements IClickHouse
|
|
|
115
115
|
constructor(scope: Construct, id: string, props: ClickHouseDatabaseProps);
|
|
116
116
|
/**
|
|
117
117
|
* Returns the Fjall `Secret` wrapper for the named user. Throws with a
|
|
118
|
-
* `Known users:` list if the name is not present in the
|
|
118
|
+
* `Known users:` list if the name is not present in the construct's
|
|
119
|
+
* `schemaAdmin:` / `managedPasswords:` props.
|
|
119
120
|
*/
|
|
120
121
|
getUser(name: string): Secret;
|
|
121
122
|
/**
|
|
@@ -474,7 +474,8 @@ export class ClickHouseDatabase extends Construct {
|
|
|
474
474
|
}
|
|
475
475
|
/**
|
|
476
476
|
* Returns the Fjall `Secret` wrapper for the named user. Throws with a
|
|
477
|
-
* `Known users:` list if the name is not present in the
|
|
477
|
+
* `Known users:` list if the name is not present in the construct's
|
|
478
|
+
* `schemaAdmin:` / `managedPasswords:` props.
|
|
478
479
|
*/
|
|
479
480
|
getUser(name) {
|
|
480
481
|
const secret = this.#users.get(name);
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** ClickHouse user/profile name pattern — lowercase snake_case, leading
|
|
3
|
-
* letter only. Shared by `
|
|
3
|
+
* letter only. Shared by `ClickHouseSchemaAdminSchema.name`, the per-profile
|
|
4
4
|
* key regex applied inside `ClickHouseDatabase`'s construct-time validation
|
|
5
|
-
* (Stage 1)
|
|
5
|
+
* (Stage 1), and `MANAGED_USER_NAME_PATTERN` at
|
|
6
|
+
* `fjall/util/src/migration/clickhouseSqlUsers.ts` (drift between the three
|
|
7
|
+
* surfaces as a parse failure in the runner). Keeps the XML element names
|
|
8
|
+
* emit-safe (no escaping needed). */
|
|
6
9
|
const NAME_PATTERN = /^[a-z][a-z0-9_]*$/;
|
|
7
10
|
/**
|
|
8
11
|
* Schema-admin user — the framework's bootstrap-privileged identity that
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fjall/components-infrastructure",
|
|
3
|
-
"version": "0.99.
|
|
3
|
+
"version": "0.99.4",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"dist/index.d.ts",
|
|
28
28
|
"dist/lib"
|
|
29
29
|
],
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
30
33
|
"scripts": {
|
|
31
34
|
"clean": "rm -rf ./dist",
|
|
32
35
|
"clean:node": "rm -rf ./node_modules",
|
|
@@ -58,8 +61,8 @@
|
|
|
58
61
|
},
|
|
59
62
|
"dependencies": {
|
|
60
63
|
"@aws-sdk/client-organizations": "^3.1038.0",
|
|
61
|
-
"@fjall/generator": "^0.99.
|
|
62
|
-
"@fjall/util": "^0.99.
|
|
64
|
+
"@fjall/generator": "^0.99.4",
|
|
65
|
+
"@fjall/util": "^0.99.4",
|
|
63
66
|
"constructs": "^10.0.0",
|
|
64
67
|
"uuid": "^14.0.0"
|
|
65
68
|
},
|
|
@@ -74,5 +77,5 @@
|
|
|
74
77
|
"engines": {
|
|
75
78
|
"node": ">=18.0.0"
|
|
76
79
|
},
|
|
77
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "4d52f0059ebb467b4a63603ed397dae36811d735"
|
|
78
81
|
}
|