You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MYAPP_HELLO=world deno run '--allow-env=MYAPP_*'<(echo 'console.log(Deno.env.get("MYAPP_HELLO"))')
This should permit access to MYAPP_HELLO instead of refusing access.
Allowing this will make the list of permitted environment variables more maintainable, while ensuring that environment variables from the host system ($USER, $HOME, $PATH, etc.) remain blocked. This is similar to features like Vite's support for environment variables, where only environment variables with a given prefix (VITE_) will be bundled in, thus providing protection against unintended environment variables being allowed.
The text was updated successfully, but these errors were encountered:
This would be amazing. Prefixing environment values with an app identifier is good practice anyway, so that'd make both the list of permissions more manageable, and promote conventions around variable naming.
This should permit access to
MYAPP_HELLO
instead of refusing access.Allowing this will make the list of permitted environment variables more maintainable, while ensuring that environment variables from the host system (
$USER
,$HOME
,$PATH
, etc.) remain blocked. This is similar to features like Vite's support for environment variables, where only environment variables with a given prefix (VITE_
) will be bundled in, thus providing protection against unintended environment variables being allowed.The text was updated successfully, but these errors were encountered: