@govuk-pay/cli 0.0.56 → 0.0.58

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.56",
3
+ "version": "0.0.58",
4
4
  "description": "GOV.UK Pay Command Line Interface",
5
5
  "bin": {
6
6
  "pay": "bin/cli.js",
@@ -73,11 +73,24 @@ async function userHandler(argv) {
73
73
  if (viewOnlyUser === undefined) {
74
74
  console.error('Failed to create a view-only user, continuing anyway since the admin user was successfully created');
75
75
  }
76
- const { otp } = totp_generator_1.TOTP.generate(user.otp_key);
76
+ if (viewOnlyUser != null) {
77
+ const { otp: viewOnlyOtp } = totp_generator_1.TOTP.generate(viewOnlyUser.otp_key);
78
+ console.log();
79
+ console.log('View only user:');
80
+ console.log(`📧 Email: ${viewOnlyUser.email}`);
81
+ console.log(`🛂 Password: ${viewOnlyUser.password}`);
82
+ console.log(`🔑 OTP key: ${viewOnlyUser.otp_key}`);
83
+ console.log(`📱 OTP token: ${viewOnlyOtp}`);
84
+ }
85
+ const { otp: adminOtp } = totp_generator_1.TOTP.generate(user.otp_key);
86
+ console.log();
87
+ console.log('Admin user:');
77
88
  console.log(`📧 Email: ${user.email}`);
78
89
  console.log(`🛂 Password: ${user.password}`);
79
90
  console.log(`🔑 OTP key: ${user.otp_key}`);
80
- console.log(`📱 OTP token: ${otp}`);
91
+ console.log(`📱 OTP token: ${adminOtp}`);
92
+ console.log();
93
+ console.log('Service:');
81
94
  console.log(`💁 Service ID: ${serviceExternalID}`);
82
95
  console.log(`💳 Card gateway account ID: ${account.external_id}`);
83
96
  console.log(`🎫 Card API token: ${apiToken}`);
@@ -33,6 +33,7 @@ exports.SERVICE_NAMES = [
33
33
  'deploy',
34
34
  'frontend',
35
35
  'ledger',
36
+ 'logging_pipeline',
36
37
  'network',
37
38
  'pact-broker',
38
39
  'pact-broker-auth',
@@ -9,5 +9,8 @@ exports.DEV_CONFIG = {
9
9
  'docker-username': 'dockerhub/concourse-username',
10
10
  'docker-access-token': 'dockerhub/concourse-access-token',
11
11
  'github-access-token': 'alphagov-pay-ci-concourse/github.com-concourse-github-personal-access-token'
12
+ },
13
+ logging_pipeline: {
14
+ splunk_hec_token: 'splunk-dev/govuk_pay_dev'
12
15
  }
13
16
  };
@@ -133,6 +133,9 @@ exports.SERVICE_SECRETS = {
133
133
  'DB_USER',
134
134
  'SENTRY_DSN'
135
135
  ],
136
+ logging_pipeline: [
137
+ 'splunk_hec_token'
138
+ ],
136
139
  network: [
137
140
  'PAGER_DUTY_CLOUDWATCH_ALB_INTEGRATION_URL'
138
141
  ],