Skip to content

Standalone microservice for caching FormBuilder service tokens in the platform namespace (for PSFA)

License

Notifications You must be signed in to change notification settings

cabinetoffice/fb-service-token-cache

 
 

Repository files navigation

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

About

Standalone microservice for caching FormBuilder service tokens in the platform namespace (for PSFA)

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Ruby 95.5%
  • Makefile 2.6%
  • Dockerfile 1.9%