Skip to content

Commit

Permalink
Merge pull request #2110 from alphagov/PP-6127_add_connector_secret_s…
Browse files Browse the repository at this point in the history
…ervice

PP-6127 Add connector secret service
  • Loading branch information
danworth authored Feb 13, 2020
2 parents 910d080 + 2922a5a commit d220d1a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 31 deletions.
57 changes: 26 additions & 31 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ applications:
disk_quota: ((disk_quota))
services:
- app-catalog
- card-connector-secret-service
- sqs
- card-connector-db
env:
Expand All @@ -20,14 +21,36 @@ applications:
# Provided by the app-catalog service - see src/main/resources/env-map.yml
FRONTEND_URL: ""

# Provided by card-connector-secret-service - see src/main/resource/env-map.yml
CAPTURE_USING_SQS_FEATURE_FLAG: ""
EVENT_QUEUE_ENABLED: ""
NOTIFY_BASE_URL: ""
NOTIFY_PAYMENT_RECEIPT_EMAIL_TEMPLATE_ID: ""
NOTIFY_REFUND_ISSUED_EMAIL_TEMPLATE_ID: ""
STRIPE_TRANSACTION_FEE_PERCENTAGE: ""
AWS_ACCESS_KEY: ""
AWS_SECRET_KEY: ""
APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE: ""
APPLE_PAY_PAYMENT_PROCESSING_PRIVATE_KEY: ""
GDS_CONNECTOR_EPDQ_LIVE_URL: ""
GDS_CONNECTOR_EPDQ_TEST_URL: ""
GDS_CONNECTOR_SMARTPAY_LIVE_URL: ""
GDS_CONNECTOR_SMARTPAY_NOTIFICATION_PASSWORD: ""
GDS_CONNECTOR_SMARTPAY_NOTIFICATION_USER: ""
GDS_CONNECTOR_SMARTPAY_TEST_URL: ""
GDS_CONNECTOR_WORLDPAY_LIVE_URL: ""
GDS_CONNECTOR_WORLDPAY_TEST_URL: ""
SECURE_WORLDPAY_NOTIFICATION_DOMAIN: ""
SECURE_WORLDPAY_NOTIFICATION_ENABLED: ""
NOTIFY_API_KEY: ""


# Provided by the sqs service - see src/main/resources/env-map.yml
AWS_SQS_CAPTURE_QUEUE_URL: ""
AWS_SQS_ENDPOINT: ""
AWS_SQS_PAYMENT_EVENT_QUEUE_URL: ""

# Other sqs settings
AWS_ACCESS_KEY: ((aws_access_key))
AWS_SECRET_KEY: ((aws_secret_key))
AWS_SQS_MESSAGE_MAXIMUM_WAIT_TIME_IN_SECONDS: '20'
AWS_SQS_NON_STANDARD_SERVICE_ENDPOINT: 'true'
AWS_SQS_REGION: region-1
Expand All @@ -44,46 +67,18 @@ applications:
CAPTURE_PROCESS_SCHEDULER_INITIAL_DELAY_SECONDS: '0'
CAPTURE_PROCESS_SCHEDULER_RANDOM_INTERVAL_MAXIMUM_SECONDS: '1'
CAPTURE_PROCESS_SCHEDULER_RANDOM_INTERVAL_MINIMUM_SECONDS: '1'
CAPTURE_USING_SQS_FEATURE_FLAG: ((sqs_enabled))
DISABLE_INTERNAL_HTTPS: ((disable_internal_https))
ENVIRONMENT: ((space))
EVENT_QUEUE_ENABLED: ((sqs_enabled))

# Provided via apple-pay service
APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE: ((apple_pay_certificate))
APPLE_PAY_PAYMENT_PROCESSING_PRIVATE_KEY: ((apple_pay_key))
AUTH_READ_TIMEOUT_SECONDS: '1'

# Provide via epdq service
GDS_CONNECTOR_EPDQ_LIVE_URL: ((epdq_live_url))
GDS_CONNECTOR_EPDQ_TEST_URL: ((epdq_test_url))

# Provide via smartpay service
GDS_CONNECTOR_SMARTPAY_LIVE_URL: ((smartpay_live_url))
GDS_CONNECTOR_SMARTPAY_NOTIFICATION_PASSWORD: ((smartpay_notification_password))
GDS_CONNECTOR_SMARTPAY_NOTIFICATION_USER: ((smartpay_notification_user))
GDS_CONNECTOR_SMARTPAY_TEST_URL: ((smartpay_test_url))

# Provide via worldpay service
GDS_CONNECTOR_WORLDPAY_LIVE_URL: ((worldpay_live_url))
GDS_CONNECTOR_WORLDPAY_TEST_URL: ((worldpay_test_url))
SECURE_WORLDPAY_NOTIFICATION_DOMAIN: ((secure_worldpay_notification_domain))
SECURE_WORLDPAY_NOTIFICATION_ENABLED: ((secure_worldpay_notification_enabled))

JAVA_OPTS: -Xms512m -Xmx1G
JBP_CONFIG_JAVA_MAIN: '{ arguments: "server /home/vcap/app/config/config.yaml" }'
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 11.+ } }'
JPA_LOG_LEVEL: 'INFO'
JPA_SQL_LOG_LEVEL: 'INFO'

# Provide via notify service
NOTIFY_API_KEY: ((notify_api_key))
NOTIFY_BASE_URL: ((notify_base_url))

NOTIFY_EMAIL_ENABLED: 'true'
NOTIFY_PAYMENT_RECEIPT_EMAIL_TEMPLATE_ID: ((notify_receipt_email_template_id))
NOTIFY_REFUND_ISSUED_EMAIL_TEMPLATE_ID: ((notify_refund_email_template_id))
RUN_APP: 'true'
RUN_MIGRATION: ((run_migration))
STRIPE_TRANSACTION_FEE_PERCENTAGE: ((stripe_transaction_fee_percentage))
RUN_MIGRATION: 'false'

21 changes: 21 additions & 0 deletions src/main/resources/env-map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,24 @@ env_vars:
AWS_SQS_ENDPOINT: '.[][] | select(.name == "sqs") | .credentials.endpoint '
AWS_SQS_PAYMENT_EVENT_QUEUE_URL: '.[][] | select(.name == "sqs") | .credentials.event_queue_url '

CAPTURE_USING_SQS_FEATURE_FLAG: '.[][] | select(.name == "card-connector-secret-service") | .credentials.sqs_enabled'
EVENT_QUEUE_ENABLED: '.[][] | select(.name == "card-connector-secret-service") | .credentials.sqs_enabled'
NOTIFY_BASE_URL: '.[][] | select(.name == "card-connector-secret-service") | .credentials.notify_base_url'
NOTIFY_PAYMENT_RECEIPT_EMAIL_TEMPLATE_ID: '.[][] | select(.name == "card-connector-secret-service") | .credentials.notify_receipt_email_template_id'
NOTIFY_REFUND_ISSUED_EMAIL_TEMPLATE_ID: '.[][] | select(.name == "card-connector-secret-service") | .credentials.notify_refund_email_template_id'
STRIPE_TRANSACTION_FEE_PERCENTAGE: '.[][] | select(.name == "card-connector-secret-service") | .credentials.stripe_transaction_fee_percentage'
AWS_ACCESS_KEY: '.[][] | select(.name == "card-connector-secret-service") | .credentials.aws_access_key'
AWS_SECRET_KEY: '.[][] | select(.name == "card-connector-secret-service") | .credentials.aws_secret_key'
APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE: '.[][] | select(.name == "card-connector-secret-service") | .credentials.apple_pay_certificate'
APPLE_PAY_PAYMENT_PROCESSING_PRIVATE_KEY: '.[][] | select(.name == "card-connector-secret-service") | .credentials.apple_pay_key'
GDS_CONNECTOR_EPDQ_LIVE_URL: '.[][] | select(.name == "card-connector-secret-service") | .credentials.epdq_live_url'
GDS_CONNECTOR_EPDQ_TEST_URL: '.[][] | select(.name == "card-connector-secret-service") | .credentials.epdq_test_url'
GDS_CONNECTOR_SMARTPAY_LIVE_URL: '.[][] | select(.name == "card-connector-secret-service") | .credentials.smartpay_live_url'
GDS_CONNECTOR_SMARTPAY_NOTIFICATION_PASSWORD: '.[][] | select(.name == "card-connector-secret-service") | .credentials.smartpay_notification_password'
GDS_CONNECTOR_SMARTPAY_NOTIFICATION_USER: '.[][] | select(.name == "card-connector-secret-service") | .credentials.smartpay_notification_user'
GDS_CONNECTOR_SMARTPAY_TEST_URL: '.[][] | select(.name == "card-connector-secret-service") | .credentials.smartpay_test_url'
GDS_CONNECTOR_WORLDPAY_LIVE_URL: '.[][] | select(.name == "card-connector-secret-service") | .credentials.worldpay_live_url'
GDS_CONNECTOR_WORLDPAY_TEST_URL: '.[][] | select(.name == "card-connector-secret-service") | .credentials.worldpay_test_url'
SECURE_WORLDPAY_NOTIFICATION_DOMAIN: '.[][] | select(.name == "card-connector-secret-service") | .credentials.secure_worldpay_notification_domain'
SECURE_WORLDPAY_NOTIFICATION_ENABLED: '.[][] | select(.name == "card-connector-secret-service") | .credentials.secure_worldpay_notification_enabled'
NOTIFY_API_KEY: '.[][] | select(.name == "card-connector-secret-service") | .credentials.notify_api_key'

0 comments on commit d220d1a

Please sign in to comment.