Description
The backend of Test Kitchen UI polls the GrowthBook REST API on startup and at a configurable interval to sync experiment configuration. The API requires a Bearer token for authentication. The token is read from the GROWTHBOOK_API_KEY environment variable at startup (see config/configuration.js in prospective MR). If the variable is not set, the application logs an error and the poller will fail to authenticate.
The placeholder <growthbook-api-key> in config.prod.yaml and config.dev.yaml documents where the value is expected. The real key must be injected via the deployment system.
Technical Notes
The API key can be found in the GrowthBook instance under Settings >> API Keys (https://growthbook.wikimedia.org/settings/keys).
Staging and production should probably use different keys depending on which GrowthBook environment they point to.
Acceptance Criteria
- Make sure that the API key is not bound to a user account
- The GROWTHBOOK_API_KEY is set as a Kubernetes secret and mounted as an environment variable in the Test Kitchen UI pod for both staging and production
- The GrowthBook poller successfully authenticates and syncs experiment configuration on startup for both staging and production