@reventlessdev/reventless-aws 3.0.0-alpha.297 → 3.0.0-alpha.298
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/CHANGELOG.md +8 -0
- package/package.json +3 -3
- package/src/Platform.res +1 -1
- package/src/Platform.res.mjs +2 -2
- package/src/components/Api/AppSync_Adapter.res +12 -1
- package/src/components/Api/AppSync_Adapter.res.mjs +1 -1
- package/src/components/Api/AppSync_MergedApi.res +1 -1
- package/src/components/Api/AppSync_MergedApi.res.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 3.0.0-alpha.298 (2026-08-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @reventlessdev/reventless-aws
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# 3.0.0-alpha.297 (2026-08-14)
|
|
7
15
|
|
|
8
16
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/reventless-aws",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.298",
|
|
4
4
|
"description": "AWS adapters for Reventless",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"dependencies": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@reventlessdev/rescript-jest": "1.0.0-alpha.10",
|
|
18
18
|
"@reventlessdev/rescript-node": "2.0.0-alpha.6",
|
|
19
19
|
"@reventlessdev/rescript-pulumi-aws": "2.4.0-alpha.75",
|
|
20
|
-
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.19",
|
|
21
|
-
"@reventlessdev/reventless-core": "3.0.0-alpha.233",
|
|
22
20
|
"@reventlessdev/rescript-uuid": "2.0.0-alpha.0",
|
|
21
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.233",
|
|
22
|
+
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.19",
|
|
23
23
|
"@reventlessdev/reventless-infra": "3.0.0-alpha.140",
|
|
24
24
|
"@reventlessdev/reventless-postgres": "3.0.0-alpha.97",
|
|
25
25
|
"@reventlessdev/reventless-spec": "3.0.0-alpha.113",
|
package/src/Platform.res
CHANGED
package/src/Platform.res.mjs
CHANGED
|
@@ -220,7 +220,7 @@ function MakeWithConfig(Config) {
|
|
|
220
220
|
let awsRegion = Stdlib_Option.orElse(param[1], getFromDefault("cognitoRegion"));
|
|
221
221
|
return {
|
|
222
222
|
userPoolId: userPoolId,
|
|
223
|
-
defaultAction: "
|
|
223
|
+
defaultAction: "DENY",
|
|
224
224
|
awsRegion: awsRegion
|
|
225
225
|
};
|
|
226
226
|
});
|
|
@@ -1523,7 +1523,7 @@ function Make($star) {
|
|
|
1523
1523
|
let awsRegion = Stdlib_Option.orElse(param[1], getFromDefault("cognitoRegion"));
|
|
1524
1524
|
return {
|
|
1525
1525
|
userPoolId: userPoolId,
|
|
1526
|
-
defaultAction: "
|
|
1526
|
+
defaultAction: "DENY",
|
|
1527
1527
|
awsRegion: awsRegion
|
|
1528
1528
|
};
|
|
1529
1529
|
});
|
|
@@ -533,6 +533,17 @@ let _makeApiResourceWith = (
|
|
|
533
533
|
// Auth_Cognito (cached inside Platform_Stack, so calling from each API call
|
|
534
534
|
// site — DomainApi, PlatformApi — is safe). A single Output yielding the
|
|
535
535
|
// {userPoolId, awsRegion, defaultAction} record AppSync expects.
|
|
536
|
+
//
|
|
537
|
+
// `DENY`, not `ALLOW`: an undirectived field or type is refused rather than
|
|
538
|
+
// served to any authenticated Cognito caller. This is what makes a missing
|
|
539
|
+
// directive fail closed — under `ALLOW` the group gate that was inert for the
|
|
540
|
+
// whole of `@aws_auth`'s life produced no symptom at all, because "no
|
|
541
|
+
// effective directive" and "open to everyone" were the same thing.
|
|
542
|
+
//
|
|
543
|
+
// Safe only because every field and type now carries an explicit directive
|
|
544
|
+
// (`stampUndirectivedFields` + `stampAllTypesCognito` at the assembly choke
|
|
545
|
+
// point). Verify with `scripts/check-appsync-directive-coverage.mjs` against a
|
|
546
|
+
// DEPLOYED api — it must report zero before this value is trusted.
|
|
536
547
|
let userPoolConfigOut = switch userPoolConfig {
|
|
537
548
|
| Some(config) => config
|
|
538
549
|
| None =>
|
|
@@ -541,7 +552,7 @@ let _makeApiResourceWith = (
|
|
|
541
552
|
{
|
|
542
553
|
userPoolId: c.userPoolId,
|
|
543
554
|
awsRegion: c.region,
|
|
544
|
-
defaultAction: AppSync.GraphQLApi.
|
|
555
|
+
defaultAction: AppSync.GraphQLApi.DENY,
|
|
545
556
|
}: AppSync.GraphQLApi.userPoolConfig
|
|
546
557
|
)
|
|
547
558
|
)
|
|
@@ -288,7 +288,7 @@ function _makeApiResourceWith(name, schema, userPoolConfig, opts) {
|
|
|
288
288
|
};
|
|
289
289
|
let userPoolConfigOut = userPoolConfig !== undefined ? userPoolConfig : Auth_Cognito$ReventlessAws.make(name + `-auth`, undefined).apply(c => ({
|
|
290
290
|
userPoolId: c.userPoolId,
|
|
291
|
-
defaultAction: "
|
|
291
|
+
defaultAction: "DENY",
|
|
292
292
|
awsRegion: c.region
|
|
293
293
|
}));
|
|
294
294
|
let apiArgs_schema = Stdlib_Option.map(schema, prim => prim);
|
|
@@ -100,7 +100,7 @@ let make = (~name: string, ~opts: Pulumi.ComponentResource.options): t => {
|
|
|
100
100
|
): AppSync.GraphQLApi.userPoolConfig => {
|
|
101
101
|
userPoolId: c.userPoolId,
|
|
102
102
|
awsRegion: c.region,
|
|
103
|
-
defaultAction: AppSync.GraphQLApi.
|
|
103
|
+
defaultAction: AppSync.GraphQLApi.DENY,
|
|
104
104
|
})
|
|
105
105
|
|
|
106
106
|
let mergedApi = AppSync.GraphQLApi.make(
|
|
@@ -55,7 +55,7 @@ function make(name, opts) {
|
|
|
55
55
|
let authConfigOut = Auth_Cognito$ReventlessAws.make(name + `-auth`, undefined);
|
|
56
56
|
let userPoolConfigOut = authConfigOut.apply(c => ({
|
|
57
57
|
userPoolId: c.userPoolId,
|
|
58
|
-
defaultAction: "
|
|
58
|
+
defaultAction: "DENY",
|
|
59
59
|
awsRegion: c.region
|
|
60
60
|
}));
|
|
61
61
|
let mergedApi = new (Aws.appsync.GraphQLApi)(name, {
|