Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 954 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 954 Bytes

CircleCI

fb-service-token-cache

A stand-alone microservice providing a REST endpoint from which other Form Builder platform apps (User Datastore, Submitter) can retrieve service tokens.

The authoritative source for tokens is a wrapper around kubectl get secret calls, which use the FB_ENVIRONMENT_SLUG and KUBECTL_* environment variables (see below) to construct the secret name and kubectl parameters. It will cache successful calls in Elasticache Redis for SERVICE_TOKEN_CACHE_TTL seconds.

Running tests

Prerequisites:

  • Docker
make spec

Deployment

Continuous Integration (CI) is enabled on this project via CircleCI.

On merge to main tests are executed and if green deployed to the test environment. This build can then be promoted to production