Skip to content

Commit 51f41ed

Browse files
authored
Merge branch 'main' into feature/per-form-sns
2 parents 7f77c1e + 49f5908 commit 51f41ed

17 files changed

Lines changed: 1961 additions & 1223 deletions

.eslintrc.cjs

Lines changed: 0 additions & 266 deletions
This file was deleted.

.prettierrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/**
22
* Prettier config
3-
*
43
* @type {import('prettier').Config}
54
*/
65
module.exports = {

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -174,22 +174,23 @@ Please use a config file instead. This will give you more control over each envi
174174
The defaults can be found in [config](./src/config/index.ts). Place your config files in `runner/config`
175175
See [https://github.com/node-config/node-config#readme](https://github.com/node-config/node-config#readme) for more info.
176176

177-
| name | description | required | default | valid | notes |
178-
| --------------------- | -------------------------------------------------------------------------------- | :------: | ------- | :-------------------------: | :---------------------------------------------------------------------------------------------------------------------: |
179-
| NODE_ENV | Node environment | no | | development,test,production | |
180-
| PORT | Port number | no | 3009 | | |
181-
| NOTIFY_TEMPLATE_ID | Notify api key | yes | | | Template ID required to send form payloads via [GOV.UK Notify](https://www.notifications.service.gov.uk) email service. |
182-
| NOTIFY_API_KEY | Notify api key | yes | | | API KEY required to send form payloads via [GOV.UK Notify](https://www.notifications.service.gov.uk) email service. |
183-
| LOG_LEVEL | Log level | no | debug | trace,debug,info,error | |
184-
| PHASE_TAG | Tag to use for phase banner | no | beta | alpha, beta, empty string | |
185-
| HTTP_PROXY | HTTP proxy to use, e.g. the one from CDP. Currently used for Hapi Wreck. | no | | | |
186-
| HTTPS_PROXY | HTTPS proxy to use, e.g. the one from CDP. Currently used for Hapi Wreck. | no | | | |
187-
| NO_PROXY | HTTP proxy to use, e.g. the one from CDP. Currently used for Hapi Wreck. | no | | | |
188-
| AWS_ACCESS_KEY_ID | AWS key id | yes | dummy | | |
189-
| AWS_SECRET_ACCESS_KEY | AWS access key | yes | dummy | | |
190-
| SNS_ENDPOINT | Endpoint for SNS messaging | yes | | | |
191-
| SNS_ADAPTER_TOPIC_ARN | The SNS topic for the submission adapter - in Amazon Resource Name (ARN) format. | yes | | | |
192-
| SNS_SAVE_TOPIC_ARN | The SNS topic for the save-and-exit - in Amazon Resource Name (ARN) format. | yes | | | |
177+
| name | description | required | default | valid | notes |
178+
| ----------------------- | ----------------------------------------------------------------------------------------------------- | :------: | ------- | :-------------------------: | :---------------------------------------------------------------------------------------------------------------------: |
179+
| NODE_ENV | Node environment | no | | development,test,production | |
180+
| PORT | Port number | no | 3009 | | |
181+
| NOTIFY_TEMPLATE_ID | Notify api key | yes | | | Template ID required to send form payloads via [GOV.UK Notify](https://www.notifications.service.gov.uk) email service. |
182+
| NOTIFY_API_KEY | Notify api key | yes | | | API KEY required to send form payloads via [GOV.UK Notify](https://www.notifications.service.gov.uk) email service. |
183+
| LOG_LEVEL | Log level | no | debug | trace,debug,info,error | |
184+
| PHASE_TAG | Tag to use for phase banner | no | beta | alpha, beta, empty string | |
185+
| HTTP_PROXY | HTTP proxy to use, e.g. the one from CDP. Currently used for Hapi Wreck. | no | | | |
186+
| HTTPS_PROXY | HTTPS proxy to use, e.g. the one from CDP. Currently used for Hapi Wreck. | no | | | |
187+
| NO_PROXY | HTTP proxy to use, e.g. the one from CDP. Currently used for Hapi Wreck. | no | | | |
188+
| AWS_ACCESS_KEY_ID | AWS key id | yes | dummy | | |
189+
| AWS_SECRET_ACCESS_KEY | AWS access key | yes | dummy | | |
190+
| SNS_ENDPOINT | Endpoint for SNS messaging | yes | | | |
191+
| SNS_ADAPTER_TOPIC_ARN | The SNS topic for the submission adapter - in Amazon Resource Name (ARN) format. | yes | | | |
192+
| SNS_SAVE_TOPIC_ARN | The SNS topic for the save-and-exit - in Amazon Resource Name (ARN) format. | yes | | | |
193+
| PRIVATE_KEY_FOR_SECRETS | Base64-encoded private key (paired witht he public key from forms-manager) for decryption of secrets. | yes | | | |
193194

194195
For proxy options, see https://www.npmjs.com/package/proxy-from-env which is used by https://github.com/TooTallNate/proxy-agents/tree/main/packages/proxy-agent.
195196

@@ -216,6 +217,7 @@ USE_SINGLE_INSTANCE_CACHE=true
216217
SNS_ENDPOINT="http://localhost:4566"
217218
SNS_ADAPTER_TOPIC_ARN="arn:aws:sns:eu-west-2:000000000000:forms_runner_submission_events"
218219
SNS_SAVE_TOPIC_ARN="arn:aws:sns:eu-west-2:000000000000:forms_runner_events"
220+
PRIVATE_KEY_FOR_SECRETS="<base64-encoded-private-key>"
219221
```
220222

221223
# Testing

0 commit comments

Comments
 (0)