Skip to content

Commit 41ea50b

Browse files
committed
eja - fixing secret scan and vale
1 parent 76ddd04 commit 41ea50b

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/instructions/code-review.instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Guidelines for the eligibility-signposting-api project — a serverless AWS Lamb
4949
## Performance
5050

5151
- **DynamoDB**: Use `query()` with `KeyConditionExpression`, never `scan()`. Partition key is `NHS_NUMBER`, sort key discriminator is `ATTRIBUTE_TYPE`.
52-
- **S3 config loading**: Campaign configs load from S3 per request. Avoid unnecessary `list_objects` or `get_object` calls.
52+
- **S3 configuration loading**: Campaign configs load from S3 per request. Avoid unnecessary `list_objects` or `get_object` calls.
5353
- **Caching**: Feature toggles use `TTLCache` (300s). New caching should follow the same pattern with appropriate TTLs.
5454
- **Lambda cold starts**: Avoid heavy imports at module level. Keep wireup service graph lean.
5555

@@ -61,5 +61,5 @@ Guidelines for the eligibility-signposting-api project — a serverless AWS Lamb
6161
## Terraform
6262

6363
- **Encryption**: All AWS resources (DynamoDB, S3, Lambda, Firehose, Secrets Manager) must use KMS CMK encryption.
64-
- **Environment parity**: Verify deletion protection and PITR are enabled for prod/preprod DynamoDB tables.
64+
- **Environment parity**: Verify deletion protection and PITR are enabled for production/pre-production DynamoDB tables.
6565
- **Safety**: Terraform changes must not destroy or replace stateful resources (DynamoDB tables, S3 buckets) unintentionally.

scripts/config/gitleaks.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ regexes = [
1616
]
1717

1818
[allowlist]
19-
paths = ['''.terraform.lock.hcl''', '''poetry.lock''', '''yarn.lock''']
19+
paths = ['''.terraform.lock.hcl''', '''poetry.lock''', '''yarn.lock''', '''.github/instructions/\*.instructions.md''']
2020
stopwords = ['''dummy_key''', '''dummy_secret''', '''192.0.0.1''', '''prance = "^25.4.8.0"''', '''25.4.8.0''']

scripts/config/vale/styles/config/vocabularies/words/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Terraform
2727
toolchain
2828
Trufflehog
2929
Uncomment
30+
Werkzeug
3031
Syncytial
3132
pyenv
3233
colima

0 commit comments

Comments
 (0)