Skip to content

Commit 15f3c95

Browse files
H. Furkan BozkurtKiro Agent
authored andcommitted
chore: address AutoSDE + fix build
1 parent 419de8e commit 15f3c95

8 files changed

Lines changed: 16 additions & 10 deletions

File tree

plugins/aws-core/skills/aws-amplify/references/ai.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ const schema = a.schema({
6767
These constraints are asymmetric and frequently confused. Getting them wrong
6868
causes the CDK synthesis to fail with a non-obvious TypeError.
6969

70+
> **Security:** Conversation history sent to Amazon Bedrock may contain PII. Do not log full request/response payloads in production. Enable CloudWatch Logs encryption (KMS) and set appropriate retention policies for any logs that may capture inference data.
71+
7072
### Backend Integration
7173

7274
AI conversation and generation routes are part of your data schema. Import into `amplify/backend.ts`:

plugins/aws-core/skills/aws-amplify/references/data-backend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ a.model({ /* fields */ }).authorization(allow => [
6262
])
6363
```
6464

65-
> **Security note:** `allow.guest()` permits unauthenticated access. Only use for intentionally public, non-sensitive data. Prefer `allow.authenticated()` or `allow.owner()` for sensitive resources. See [Amplify authorization best practices](https://docs.amplify.aws/react/build-a-backend/data/customize-authz/) and [Amazon Cognito Identity Pool security](https://docs.aws.amazon.com/cognito/latest/developerguide/identity-pools.html) for guidance on choosing the right authorization strategy.
65+
> **Security note:** `allow.guest()` and `allow.publicApiKey()` both permit unauthenticated access. Only use for intentionally public, non-sensitive data. Prefer `allow.authenticated()` or `allow.owner()` for sensitive resources. See [Amplify authorization best practices](https://docs.amplify.aws/react/build-a-backend/data/customize-authz/) and [Amazon Cognito Identity Pool security](https://docs.aws.amazon.com/cognito/latest/developerguide/identity-pools.html) for guidance on choosing the right authorization strategy.
6666
6767
Per-field authorization overrides model-level rules:
6868

plugins/aws-core/skills/aws-amplify/references/deployment.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,10 @@ aws amplify start-job --app-id "$APP_ID" --branch-name main --job-type RELEASE
156156
**Sandbox:** Set secrets via CLI:
157157

158158
```bash
159-
echo "<value>" | npx ampx sandbox secret set MY_API_KEY
159+
npx ampx sandbox secret set MY_API_KEY
160160
```
161161

162-
You **MUST** pipe the value via stdin — without the pipe, the command
163-
prompts interactively.
162+
> **Security:** Avoid passing secret values as CLI arguments or via `echo` — these appear in shell history and `/proc`. Instead, use `ampx sandbox secret set MY_SECRET` which prompts for input interactively, or pipe from a secure source: `aws ssm get-parameter --name /path/to/secret --with-decryption --query Parameter.Value --output text | ampx sandbox secret set MY_SECRET --from-stdin`
164163

165164
This stores the secret for your personal sandbox environment.
166165
**Branch environments (production):** Set secrets via the `ampx` CLI:
@@ -181,7 +180,7 @@ aws amplify update-app --app-id "$APP_ID" \
181180
> For sensitive values (API keys, tokens), use `npx ampx sandbox secret set`
182181
> (sandbox) or `npx ampx secret set --branch` (production) which stores in
183182
> SSM SecureString.
184-
183+
>
185184
> **Note:** Under the hood, Amplify Gen2 `secret()` references are backed by AWS Systems Manager Parameter Store (SecureString parameters). Review access policies on the `/amplify/` parameter path in your account to ensure only authorized roles can read production secrets.
186185

187186
Reference secrets in functions using `secret()` — see

plugins/aws-core/skills/aws-amplify/references/storage-mobile.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Imports: `amplify_flutter` + `amplify_storage_s3`. All paths wrapped with `Stora
1515
| Presigned URL | `Amplify.Storage.getUrl(path: const StoragePath.fromString('public/file.jpg'))` |
1616
| Remove | `Amplify.Storage.remove(path: const StoragePath.fromString('public/file.jpg'))` |
1717

18+
> **Security:** Amplify Gen2 enables S3 server-side encryption (SSE-S3) by default. All transfers use HTTPS (TLS in transit). For sensitive data, configure SSE-KMS with a customer-managed key via CDK overrides.
19+
1820
Upload progress — use the `onProgress` callback parameter:
1921

2022
```dart

skills/foundations/aws-amplify/references/ai.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ const schema = a.schema({
6767
These constraints are asymmetric and frequently confused. Getting them wrong
6868
causes the CDK synthesis to fail with a non-obvious TypeError.
6969

70+
> **Security:** Conversation history sent to Amazon Bedrock may contain PII. Do not log full request/response payloads in production. Enable CloudWatch Logs encryption (KMS) and set appropriate retention policies for any logs that may capture inference data.
71+
7072
### Backend Integration
7173

7274
AI conversation and generation routes are part of your data schema. Import into `amplify/backend.ts`:

skills/foundations/aws-amplify/references/data-backend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ a.model({ /* fields */ }).authorization(allow => [
6262
])
6363
```
6464

65-
> **Security note:** `allow.guest()` permits unauthenticated access. Only use for intentionally public, non-sensitive data. Prefer `allow.authenticated()` or `allow.owner()` for sensitive resources. See [Amplify authorization best practices](https://docs.amplify.aws/react/build-a-backend/data/customize-authz/) and [Amazon Cognito Identity Pool security](https://docs.aws.amazon.com/cognito/latest/developerguide/identity-pools.html) for guidance on choosing the right authorization strategy.
65+
> **Security note:** `allow.guest()` and `allow.publicApiKey()` both permit unauthenticated access. Only use for intentionally public, non-sensitive data. Prefer `allow.authenticated()` or `allow.owner()` for sensitive resources. See [Amplify authorization best practices](https://docs.amplify.aws/react/build-a-backend/data/customize-authz/) and [Amazon Cognito Identity Pool security](https://docs.aws.amazon.com/cognito/latest/developerguide/identity-pools.html) for guidance on choosing the right authorization strategy.
6666
6767
Per-field authorization overrides model-level rules:
6868

skills/foundations/aws-amplify/references/deployment.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,10 @@ aws amplify start-job --app-id "$APP_ID" --branch-name main --job-type RELEASE
156156
**Sandbox:** Set secrets via CLI:
157157

158158
```bash
159-
echo "<value>" | npx ampx sandbox secret set MY_API_KEY
159+
npx ampx sandbox secret set MY_API_KEY
160160
```
161161

162-
You **MUST** pipe the value via stdin — without the pipe, the command
163-
prompts interactively.
162+
> **Security:** Avoid passing secret values as CLI arguments or via `echo` — these appear in shell history and `/proc`. Instead, use `ampx sandbox secret set MY_SECRET` which prompts for input interactively, or pipe from a secure source: `aws ssm get-parameter --name /path/to/secret --with-decryption --query Parameter.Value --output text | ampx sandbox secret set MY_SECRET --from-stdin`
164163

165164
This stores the secret for your personal sandbox environment.
166165
**Branch environments (production):** Set secrets via the `ampx` CLI:
@@ -181,7 +180,7 @@ aws amplify update-app --app-id "$APP_ID" \
181180
> For sensitive values (API keys, tokens), use `npx ampx sandbox secret set`
182181
> (sandbox) or `npx ampx secret set --branch` (production) which stores in
183182
> SSM SecureString.
184-
183+
>
185184
> **Note:** Under the hood, Amplify Gen2 `secret()` references are backed by AWS Systems Manager Parameter Store (SecureString parameters). Review access policies on the `/amplify/` parameter path in your account to ensure only authorized roles can read production secrets.
186185

187186
Reference secrets in functions using `secret()` — see

skills/foundations/aws-amplify/references/storage-mobile.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Imports: `amplify_flutter` + `amplify_storage_s3`. All paths wrapped with `Stora
1515
| Presigned URL | `Amplify.Storage.getUrl(path: const StoragePath.fromString('public/file.jpg'))` |
1616
| Remove | `Amplify.Storage.remove(path: const StoragePath.fromString('public/file.jpg'))` |
1717

18+
> **Security:** Amplify Gen2 enables S3 server-side encryption (SSE-S3) by default. All transfers use HTTPS (TLS in transit). For sensitive data, configure SSE-KMS with a customer-managed key via CDK overrides.
19+
1820
Upload progress — use the `onProgress` callback parameter:
1921

2022
```dart

0 commit comments

Comments
 (0)