Description
EDIT: My original feature request was already done, see the next comments for discussion of the updated title.
I made a script that calls an API on my local network, and it needs a url and an api key to do that.
The problem is i would like to backup this script to git (with the rest of my config) and be able to share it with others in a usable format, but my url and api is hard coded in clear text.
I looked at Accessing YAML configuration and it seems like an okay solution, but it doesn't seem like it's supposed to contain any sensitive data, and putting it in .gitignore would mean the config is not backed up.
If i could read the api key from secrets.yaml all sensitive data would be kept in a single file.
I think it would be preferable to whitelist the secrets each pyscript script/app has access to in pyscript.config so a malicious app can't access everything.
Whitelisting could also double as place to map the (arbitrarily named) secrets to the variable inside the script.
pyscript.config
could look something like this:
pyscript:
allowed_secrets:
- my_app:
- my_whitelisted_secret: my_variable_the_secret_is_mapped_to
apps:
...