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
APP_ENV is not set (and should probably be NEXT_PUBLIC_APP_ENV)
NEXT_PUBLIC_WEB3_STORAGE_KEYis set even though it gives the ability to create any delegation desired and could be used to erase everyone's profile images. (Also in the code where the actual delegation is created, a remove delegation is created for the space & uploads which gives a user the ability to remove others' files.)
The code for creating the delegation is in the /src/api/ folder which creates an HTTP endpoint to be contacted. When the code is accessed, however, it's imported directly into the source and not contacted out of band with a fetch to the API endpoint.
WEB3_STORAGE_PROOF isn't set either. Or, rather, I'm pretty sure it's set as NEXT_PUBLIC_WEB3_STORAGE_PROOF. Also pretty sure it also is not supposed to be exposed to the client.
What did you expect to happen?
I expected more secrets to be kept. 😼
How can we reproduce the problem (as minimally as possible)?
Umm, load the page & search the sources for something that appears in the above dump of the CONFIG object.
Is there anything else we need to know?
No response
Browser and operating system used (if applicable)
No response
The text was updated successfully, but these errors were encountered:
What happened?
If you look at the sources sent to the client, it includes a configuration object that looks like:
Note:
APP_ENV
is not set (and should probably beNEXT_PUBLIC_APP_ENV
)NEXT_PUBLIC_WEB3_STORAGE_KEY
is set even though it gives the ability to create any delegation desired and could be used to erase everyone's profile images. (Also in the code where the actual delegation is created, aremove
delegation is created for thespace
&uploads
which gives a user the ability to remove others' files.)The code for creating the delegation is in the
/src/api/
folder which creates an HTTP endpoint to be contacted. When the code is accessed, however, it's imported directly into the source and not contacted out of band with afetch
to the API endpoint.WEB3_STORAGE_PROOF
isn't set either. Or, rather, I'm pretty sure it's set asNEXT_PUBLIC_WEB3_STORAGE_PROOF
. Also pretty sure it also is not supposed to be exposed to the client.What did you expect to happen?
I expected more secrets to be kept. 😼
How can we reproduce the problem (as minimally as possible)?
Umm, load the page & search the sources for something that appears in the above dump of the
CONFIG
object.Is there anything else we need to know?
No response
Browser and operating system used (if applicable)
No response
The text was updated successfully, but these errors were encountered: