-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide mechanism for autopopulating node.js process.env #3311
base: main
Are you sure you want to change the base?
Conversation
122a5b8
to
d08499e
Compare
00c74b2
to
f6f3f64
Compare
f6f3f64
to
7f531ca
Compare
7f531ca
to
5356dc7
Compare
e6519ab
to
09a9009
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@irvinebroque can we discuss this?
I oppose this change of it exposed secrets to the world via process.env
To be clear... the change puts any |
@jasnell I think the following info needs to be added to the PR description (I can not edit it): This PR
Once the description has been added, it would be nice to create an issue on https://github.com/cloudflare/cloudflare-docs to ask this to be documented when merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I really insist on this: All bindings which render to a plain string must be treated equivalently. We cannot have the behavior change based on the way the value was originally specified in config, because this is changing the abstraction in a way that has already been seen to break multiple tools and adds new constraints to our implementation going forward. The abstraction is that env
contains JavaScript values; whether they were transmitted as simple text, JSON, v8 serilaization, etc. is not revealed to the application.
Autopopulates the process.env from bindings in local dev. A similar PR will be needed internally to enable it there as it won't be automatic.
8ba527b
to
fc16af8
Compare
Moved back to draft due to continued backend discussion on how the implementation intersects with non-nodejs-compat related aspects of the runtime. |
Autopopulates the process.env from bindings in local dev. A similar PR will be needed internally to enable it there as it won't be automatic.
See caveats: #3311 (comment)