We have a deployment of backstage via ADO that is failing when we try to use environment variables in the app-config.yaml.
The specific error:
Loaded config from app-config.yaml
Error: Configuration does not match schema
Config must have required property 'clientToken' { missingProperty=clientToken } at /app/datadogRum
Config must have required property 'applicationId' { missingProperty=applicationId } at /app/datadogRum
app-config.yaml:
app:
title: Backstage Title
baseUrl: baseurl.com
datadogRum:
clientToken: ${DATA_DOG_RUM_CLIENT_TOKEN}
applicationId: ${DATA_DOG_RUM_APPLICATION_ID}
In our azure-pipelines.yaml in a pre-build step we download all the keyvault secrets and grab the other values from the ADO library. The issue as it appears is that those variable values are not available when the yarn build is executed in the build step. I have read some information on the --lax option but this seems more like an ADO issue and less backstage but It would be great if someone else has run into this with ADO and has some insights.