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
{{ message }}
Repository navigation
[docs]: Clarify env variables are NOT "SECRET" #5676
changed the title [-]Clarify in docs that environment variables are NOT "SECRET"[/-][+][docs]: Clarify env variables are NOT "SECRET"[/+]on Nov 1, 2018
@miraage I don't believe this makes it clear that secrets will be exposed. It requires some deduction and reading. Here's an example warning message:
Don't store any secrets (such as API keys) in your React app as they'll be included in the build (meaning they can be read by anyone looking at your script/html files in dev tools). Instead, you should send requests to a separate backend (which stores your secrets) and send back the response to your React app.
I think this is an important distinction that should be immediately obvious when looking at the docs, especially for beginners. Unfortunately some misinformation is being spread online, so I think it's safe to assume that people are not finding this clear.
What's the downside of adding NOT?
Reacted by Ryan Blakeley, Dadamuga Mazino, Fernando Alex Helwanger, Olivier Vaillancourt and Abdessamad (Almo) Idrissi
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
@ianschmitz would love to! Was just waiting for agreement/feedback on the following:
Changing all to REACT_APP_NOT_SECRET_CODE
Adding a warning at the top about secrets
The following warning message:
Don't store any secrets (such as API keys) in your React app as they'll be included in the build (meaning they can be read by anyone looking at your script/html files in dev tools). Instead, you should send requests to a separate backend (which stores your secrets) and send back the response to your React app.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Activity
[-]Clarify in docs that environment variables are NOT "SECRET"[/-][+][docs]: Clarify env variables are NOT "SECRET"[/+]miraage commentedon Nov 2, 2018
Documentation says it explicitly, that this value will end up in the result bundle.
JBallin commentedon Nov 2, 2018
@miraage I don't believe this makes it clear that secrets will be exposed. It requires some deduction and reading. Here's an example warning message:
I think this is an important distinction that should be immediately obvious when looking at the docs, especially for beginners. Unfortunately some misinformation is being spread online, so I think it's safe to assume that people are not finding this clear.
What's the downside of adding
NOT?stale commentedon Dec 2, 2018
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
ianschmitz commentedon Dec 2, 2018
Would you like to submit a PR to update the docs @JBallin?
JBallin commentedon Dec 2, 2018
@ianschmitz would love to! Was just waiting for agreement/feedback on the following:
REACT_APP_NOT_SECRET_CODEianschmitz commentedon Dec 2, 2018
Sounds reasonable. Let's get a PR going and we can get some feedback from the others in there. Thanks!
stale commentedon Jan 1, 2019
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
JBallin commentedon Jan 2, 2019
There's an open PR in progress: #6062
stale commentedon Feb 7, 2019
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
JBallin commentedon Feb 9, 2019
There's an open PR in progress: #6062
Waiting for a response from maintainers.
[docs] Warn/clarify that env vars are NOT "SECRET" (#6062)
[docs] Warn/clarify that env vars are NOT "SECRET" (react#6062)
Fork update (#6)
Wizard to 3.0.1 (#28)