modly icon indicating copy to clipboard operation
modly copied to clipboard

HF token reaches every extension's environment

Open lightningpixel opened this issue 1 week ago • 0 comments

The Hugging Face token is set in the FastAPI process env (HF_TOKEN / HUGGING_FACE_HUB_TOKEN), and ExtensionProcess._build_env() copies that whole env into every extension worker, so any third-party extension can read it.

Only pass it to the processes that need it (downloads), the same way remote extensions get only their own declared secrets.

lightningpixel avatar Nov 20 '26 12:11 lightningpixel