@govuk-pay/cli 0.0.48 → 0.0.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/cli",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "GOV.UK Pay Command Line Interface",
5
5
  "bin": {
6
6
  "pay": "bin/cli.js",
@@ -331,6 +331,7 @@ pay-low-pass:
331
331
  DB_SUPPORT_PASSWORD_READWRITE: aws/rds/support_readwrite_users/staging/ledger_support_readwrite # pragma: allowlist secret
332
332
  SENTRY_DSN: sentry_io/ledger_dsn
333
333
  products:
334
+ DB_PASSWORD: aws/rds/application_users/staging/products
334
335
  DB_SUPPORT_PASSWORD_READONLY: aws/rds/support_readonly_users/staging/products_support_readonly # pragma: allowlist secret
335
336
  DB_SUPPORT_PASSWORD_READWRITE: aws/rds/support_readwrite_users/staging/products_support_readwrite # pragma: allowlist secret
336
337
  SENTRY_DSN: sentry_io/products_dsn
@@ -344,6 +345,7 @@ pay-low-pass:
344
345
  # the words 'Password Store'. They are not in pay-low-pass, so for now to stop them being overwritten I'm commenting them out
345
346
  # TOKEN_API_HMAC_SECRET: ""
346
347
  publicauth:
348
+ DB_PASSWORD: aws/rds/application_users/staging/publicauth
347
349
  DB_SUPPORT_PASSWORD_READONLY: aws/rds/support_readonly_users/staging/publicauth_support_readonly # pragma: allowlist secret
348
350
  DB_SUPPORT_PASSWORD_READWRITE: aws/rds/support_readwrite_users/staging/publicauth_support_readwrite # pragma: allowlist secret
349
351
  SENTRY_DSN: sentry_io/publicauth_dsn
@@ -438,6 +440,7 @@ pay-low-pass:
438
440
  product-page:
439
441
  pager_duty_cloudwatch_integration_url: pager-duty/govuk-pay-product-page/amazon-cloudwatch-integration-url
440
442
  products:
443
+ DB_PASSWORD: aws/rds/application_users/production/products
441
444
  DB_SUPPORT_PASSWORD_READONLY: aws/rds/support_readonly_users/production/products_support_readonly # pragma: allowlist secret
442
445
  DB_SUPPORT_PASSWORD_READWRITE: aws/rds/support_readwrite_users/production/products_support_readwrite # pragma: allowlist secret
443
446
  SENTRY_DSN: sentry_io/products_dsn
@@ -449,6 +452,7 @@ pay-low-pass:
449
452
  publicapi:
450
453
  SENTRY_DSN: sentry_io/publicapi_dsn
451
454
  publicauth:
455
+ DB_PASSWORD: aws/rds/application_users/production/publicauth
452
456
  DB_SUPPORT_PASSWORD_READONLY: aws/rds/support_readonly_users/production/publicauth_support_readonly # pragma: allowlist secret
453
457
  DB_SUPPORT_PASSWORD_READWRITE: aws/rds/support_readwrite_users/production/publicauth_support_readwrite # pragma: allowlist secret
454
458
  SENTRY_DSN: sentry_io/publicauth_dsn
@@ -18,6 +18,7 @@ services:
18
18
  retries: 5
19
19
  volumes:
20
20
  - {{../defaultServiceConfigsPath}}/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
21
+ - {{name}}:/var/lib/postgresql/data
21
22
  ports:
22
23
  - "{{port}}:5432"
23
24
  networks:
@@ -277,3 +278,8 @@ networks:
277
278
  driver: default
278
279
  config:
279
280
  - subnet: 172.18.0.0/24
281
+
282
+ volumes:
283
+ {{#each dbServices}}
284
+ {{name}}:
285
+ {{/each}}
@@ -443,7 +443,7 @@ async function getDbUser(environment, application, dbAccessType) {
443
443
  }
444
444
  else {
445
445
  printError('Unable to get database username from Parameter Store');
446
- return '';
446
+ throw new Error(`The parameter store parameter ${paramName} is missing in ${environment}`);
447
447
  }
448
448
  }
449
449
  function getPayLowPassDbSecretName(environment, user, dbAccessType) {