Skip to content

Repository files navigation

Authcode-changed-consumer

Description

A Kafka consumer for events where the authentication code is changed or cancelled On the WebFiling side, a Companies House administrative user will have the ability to cancel an company’s authentication code.

Prerequisites

Environment variables

Variable Description
CHS_INTERNAL_API_KEY Internal API key used to authenticate with CHS internal endpoints
ACCOUNT_URL Base URL for the Accounts API
BOOTSTRAP_SERVER_URL Kafka broker bootstrap servers
CHS_KAFKA_ASSOCIATION_ITEMS_PER_PAGE Page size when fetching CHS association items
AUTHCODE_CANCELLATION_TOPIC Kafka topic for auth code cancellation messages
KAFKA_ERROR_TOPIC Kafka error/dead-letter topic for failed auth code cancellations
AUTHCODE_CANCELLATION_GROUP_ID Kafka consumer group ID for auth code cancellation consumer
MAX_ATTEMPTS Number of times a message is retried before being sent to error topic
BACKOFF_DELAY Delay between retries in milliseconds

Getting Started

To set up and build the service, follow these steps

  1. Clone Docker CHS Development and follow the steps in the README.
  2. Get the broker up by running chs-dev services enable authcode-changed-consumer in your terminal from the docker-chs-development directory.
  3. Run chs-dev up in terminal from the docker-chs-development directory.
  4. Run chs-dev status to confirm its running

About

A consumer for events where the auth code is changed or cancelled

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages