cdk-rds-sql 9.1.0 → 9.1.1
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/.jsii +2 -2
- package/AGENTS.md +66 -0
- package/CLAUDE.md +66 -0
- package/lib/database.js +1 -1
- package/lib/iam-grant.js +1 -1
- package/lib/provider.js +1 -1
- package/lib/role.js +1 -1
- package/lib/schema.js +1 -1
- package/lib/sql.js +1 -1
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -11289,6 +11289,6 @@
|
|
|
11289
11289
|
"symbolId": "src/sql:SqlProps"
|
|
11290
11290
|
}
|
|
11291
11291
|
},
|
|
11292
|
-
"version": "9.1.
|
|
11293
|
-
"fingerprint": "
|
|
11292
|
+
"version": "9.1.1",
|
|
11293
|
+
"fingerprint": "2JVR5sakEHON6uTnca6xJrBAe9ezH/4hFD1HtuE7yxg="
|
|
11294
11294
|
}
|
package/AGENTS.md
CHANGED
|
@@ -105,6 +105,72 @@ Projen tasks:
|
|
|
105
105
|
4. `biome`: Runs formatting and linting
|
|
106
106
|
5. `typecheck`: Runs typecheck
|
|
107
107
|
|
|
108
|
+
## GitHub Actions checks
|
|
109
|
+
|
|
110
|
+
`hk.pkl` lints workflows, Dependabot config, and composite actions with
|
|
111
|
+
jactionlint. `mise.toml` pins `jactionlint` 2.3.0 and the `shellcheck` 0.11.0
|
|
112
|
+
that jactionlint shells out to. Run that pin through mise. A `jactionlint`
|
|
113
|
+
already on `PATH` can be another version.
|
|
114
|
+
|
|
115
|
+
The hk step is `jactionlint --baseline --sarif-hide-baselined --format sarif`.
|
|
116
|
+
`.github/jactionlint.yaml` sets `baseline: auto`, so findings recorded in
|
|
117
|
+
`.github/jactionlint-baseline.json` are accepted and any other finding fails.
|
|
118
|
+
`mise run check` includes the step. To run only it:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
mise exec -- hk check --all --step jactionlint
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Refreshing the jactionlint baseline
|
|
125
|
+
|
|
126
|
+
The baseline matches by fingerprint and context hash, which include the finding
|
|
127
|
+
text. After a projen upgrade, a Dependabot action bump, or another
|
|
128
|
+
generated-workflow change, an already accepted finding can fail again because
|
|
129
|
+
the old entry still names the previous text. The old entry then matches
|
|
130
|
+
nothing. Changing `actions/setup-node@v7.0.0` to `v7.0.1` in
|
|
131
|
+
`.github/workflows/build.yml` does this for the three baselined `unpinned-uses`
|
|
132
|
+
findings in that file.
|
|
133
|
+
|
|
134
|
+
Re-baseline only for that drift, and only after confirming each new finding is
|
|
135
|
+
that stale-baseline effect and not a real regression. Commit the refreshed
|
|
136
|
+
`.github/jactionlint-baseline.json` in the same commit or pull request as the
|
|
137
|
+
workflow change. Do not refresh the baseline to hide a finding you introduced,
|
|
138
|
+
and do not edit the JSON by hand.
|
|
139
|
+
|
|
140
|
+
1. List findings the baseline does not hide, and compare them with the workflow
|
|
141
|
+
diff. Expected drift is the same rule on the same step, with the message now
|
|
142
|
+
naming the new generated text:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
mise exec -- jactionlint --baseline
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
2. List entries that no longer match anything. They are reported as
|
|
149
|
+
`unused-baseline-entry`:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
mise exec -- jactionlint --baseline-check
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
3. Rewrite the baseline. Do not pass workflow paths, and do not combine this
|
|
156
|
+
with `--baseline`. File arguments keep every other file's entries.
|
|
157
|
+
`--baseline-write` records every current finding and exits 0 even when new
|
|
158
|
+
findings exist, so review the baseline diff before committing:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
mise exec -- jactionlint --baseline-write
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
4. Confirm the hk step is clean:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
mise exec -- hk check --all --step jactionlint
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
`.github/jactionlint.yaml` mentions the same `--baseline-write` flag. Use the
|
|
171
|
+
mise form so the `mise.toml` pin is the binary that runs. Install tools with
|
|
172
|
+
`mise install` if `mise exec` cannot find `jactionlint`.
|
|
173
|
+
|
|
108
174
|
## SSL/TLS Configuration
|
|
109
175
|
|
|
110
176
|
- SSL is enabled by default
|
package/CLAUDE.md
CHANGED
|
@@ -105,6 +105,72 @@ Projen tasks:
|
|
|
105
105
|
4. `biome`: Runs formatting and linting
|
|
106
106
|
5. `typecheck`: Runs typecheck
|
|
107
107
|
|
|
108
|
+
## GitHub Actions checks
|
|
109
|
+
|
|
110
|
+
`hk.pkl` lints workflows, Dependabot config, and composite actions with
|
|
111
|
+
jactionlint. `mise.toml` pins `jactionlint` 2.3.0 and the `shellcheck` 0.11.0
|
|
112
|
+
that jactionlint shells out to. Run that pin through mise. A `jactionlint`
|
|
113
|
+
already on `PATH` can be another version.
|
|
114
|
+
|
|
115
|
+
The hk step is `jactionlint --baseline --sarif-hide-baselined --format sarif`.
|
|
116
|
+
`.github/jactionlint.yaml` sets `baseline: auto`, so findings recorded in
|
|
117
|
+
`.github/jactionlint-baseline.json` are accepted and any other finding fails.
|
|
118
|
+
`mise run check` includes the step. To run only it:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
mise exec -- hk check --all --step jactionlint
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Refreshing the jactionlint baseline
|
|
125
|
+
|
|
126
|
+
The baseline matches by fingerprint and context hash, which include the finding
|
|
127
|
+
text. After a projen upgrade, a Dependabot action bump, or another
|
|
128
|
+
generated-workflow change, an already accepted finding can fail again because
|
|
129
|
+
the old entry still names the previous text. The old entry then matches
|
|
130
|
+
nothing. Changing `actions/setup-node@v7.0.0` to `v7.0.1` in
|
|
131
|
+
`.github/workflows/build.yml` does this for the three baselined `unpinned-uses`
|
|
132
|
+
findings in that file.
|
|
133
|
+
|
|
134
|
+
Re-baseline only for that drift, and only after confirming each new finding is
|
|
135
|
+
that stale-baseline effect and not a real regression. Commit the refreshed
|
|
136
|
+
`.github/jactionlint-baseline.json` in the same commit or pull request as the
|
|
137
|
+
workflow change. Do not refresh the baseline to hide a finding you introduced,
|
|
138
|
+
and do not edit the JSON by hand.
|
|
139
|
+
|
|
140
|
+
1. List findings the baseline does not hide, and compare them with the workflow
|
|
141
|
+
diff. Expected drift is the same rule on the same step, with the message now
|
|
142
|
+
naming the new generated text:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
mise exec -- jactionlint --baseline
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
2. List entries that no longer match anything. They are reported as
|
|
149
|
+
`unused-baseline-entry`:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
mise exec -- jactionlint --baseline-check
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
3. Rewrite the baseline. Do not pass workflow paths, and do not combine this
|
|
156
|
+
with `--baseline`. File arguments keep every other file's entries.
|
|
157
|
+
`--baseline-write` records every current finding and exits 0 even when new
|
|
158
|
+
findings exist, so review the baseline diff before committing:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
mise exec -- jactionlint --baseline-write
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
4. Confirm the hk step is clean:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
mise exec -- hk check --all --step jactionlint
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
`.github/jactionlint.yaml` mentions the same `--baseline-write` flag. Use the
|
|
171
|
+
mise form so the `mise.toml` pin is the binary that runs. Install tools with
|
|
172
|
+
`mise install` if `mise exec` cannot find `jactionlint`.
|
|
173
|
+
|
|
108
174
|
## SSL/TLS Configuration
|
|
109
175
|
|
|
110
176
|
- SSL is enabled by default
|
package/lib/database.js
CHANGED
|
@@ -14,7 +14,7 @@ class ImportedDatabase extends constructs_1.Construct {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
class Database extends aws_cdk_lib_1.CustomResource {
|
|
17
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Database", version: "9.1.
|
|
17
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Database", version: "9.1.1" };
|
|
18
18
|
/**
|
|
19
19
|
* Return a Database based upon name only. Use for importing existing databases.
|
|
20
20
|
*/
|
package/lib/iam-grant.js
CHANGED
|
@@ -6,7 +6,7 @@ const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
|
6
6
|
const enum_1 = require("./enum");
|
|
7
7
|
const provider_1 = require("./provider");
|
|
8
8
|
class IamGrant extends aws_cdk_lib_1.CustomResource {
|
|
9
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.IamGrant", version: "9.1.
|
|
9
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.IamGrant", version: "9.1.1" };
|
|
10
10
|
constructor(scope, id, props) {
|
|
11
11
|
// IAM grants are only supported on DSQL
|
|
12
12
|
if (props.provider.engine !== provider_1.DatabaseEngine.DSQL) {
|
package/lib/provider.js
CHANGED
|
@@ -60,7 +60,7 @@ var DatabaseEngine;
|
|
|
60
60
|
DatabaseEngine["DSQL"] = "dsql";
|
|
61
61
|
})(DatabaseEngine || (exports.DatabaseEngine = DatabaseEngine = {}));
|
|
62
62
|
class Provider extends constructs_1.Construct {
|
|
63
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Provider", version: "9.1.
|
|
63
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Provider", version: "9.1.1" };
|
|
64
64
|
/**
|
|
65
65
|
* Import an existing provider Lambda function
|
|
66
66
|
*/
|
package/lib/role.js
CHANGED
|
@@ -83,7 +83,7 @@ class Parameters extends constructs_1.Construct {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
class Role extends constructs_1.Construct {
|
|
86
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Role", version: "9.1.
|
|
86
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Role", version: "9.1.1" };
|
|
87
87
|
/**
|
|
88
88
|
* The role name.
|
|
89
89
|
*/
|
package/lib/schema.js
CHANGED
|
@@ -5,7 +5,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
5
5
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
6
6
|
const enum_1 = require("./enum");
|
|
7
7
|
class Schema extends aws_cdk_lib_1.CustomResource {
|
|
8
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Schema", version: "9.1.
|
|
8
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Schema", version: "9.1.1" };
|
|
9
9
|
schemaName;
|
|
10
10
|
constructor(scope, id, props) {
|
|
11
11
|
super(scope, id, {
|
package/lib/sql.js
CHANGED
|
@@ -5,7 +5,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
5
5
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
6
6
|
const enum_1 = require("./enum");
|
|
7
7
|
class Sql extends aws_cdk_lib_1.CustomResource {
|
|
8
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Sql", version: "9.1.
|
|
8
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-rds-sql.Sql", version: "9.1.1" };
|
|
9
9
|
constructor(scope, id, props) {
|
|
10
10
|
super(scope, id, {
|
|
11
11
|
serviceToken: props.provider.serviceToken,
|