I am trying to use Serverless Secrets with a region other than us-east-1 (We're not allow to hold sensitive data in the US), however we noticed it just wouldn't work!
Further analysis shows that the generated _serverless_handler.js that gets deployed instantiates the decryptors before the envVars are set - so CREDSTASH_REGION is alway us-east-1
Generated code...
'use strict';
var decryptor = require('./serverless-secrets/decryptor');
var envVars = {"SERVERLESS_PROJECT":"....etc
Hi,
I am trying to use Serverless Secrets with a region other than
us-east-1
(We're not allow to hold sensitive data in the US), however we noticed it just wouldn't work! Further analysis shows that the generated_serverless_handler.js
that gets deployed instantiates the decryptors before the envVars are set - soCREDSTASH_REGION
is alwayus-east-1
Generated code...
:sob: