Enhanced Access to Secrets in the context.environment Object
We would like to see an improvement where secrets can be accessed as environment variables directly through the context.environment object. For example, if we have a secret called myApiKey, we would like to be able to access it in a function using context.environment.secrets.myApiKey.
This would make the process of storing and accessing environment-specific sensitive data like API keys, access tokens, etc., much more straightforward and error-proof.
As it stands, we're creating a workaround by saving env specific API keys as secrets, and then using some logic with context.environment.tag to fetch the correct environment API key. However, this approach is not ideal as it adds unnecessary complexity and is not very intuitive.
Storing environment-specific sensitive data is a common use case in almost every project. It seems like there should be a simple and straightforward solution for this.