The toolbelt, when used under a CI/CD headless scenario could not complete the
scehma:apply deployment and fails with an
HTTP 401: Unauthorized error.is thrown.
The tools should apply the schema and complete it with a success code even if the schema apply is asynchronous.
The tool should be able to skip “token validation” when using the credentials from the
FOREST_ENV_SECRET env variable since this specifically means we have credentials to access the env even if not via a specific user login. (it’s a tool running this command).
the tool executes the schema apply using the credentials from the environment variable
FOREST_ENV_SECRET but when trying to check the job status it looks for a login token locally and unable to find it. This leads to an empty “authorization bearer token” header on the
/api/jobs/JOBID api call that fails with a 401 HTTP error.
Finally, the tools throwes ane exception failing the entire command (although the schema apply actually succeeds to complete asynchronously).
Execute forest schema apply Reading "./.forestadmin-schema.json"... Using the forest environment secret found in the environment variable "FOREST_ENV_SECRET" Sending "./.forestadmin-schema.json"... HTTP 401: Unauthorized
Please provide any relevant information about your setup.
- Package Version: forest-cli v1.6.0