Commit 82e28e2
committed
fix(starter): default trust_remote_code to false for sentence-transformers
The starter distribution set trust_remote_code: true for the
sentence-transformers embedding provider, so loading any model from the
HuggingFace Hub would execute code bundled with that repository. A compromised
or malicious model could use this to run arbitrary code on the OGX server. The
starter distribution is the template most new deployments copy, so it should
use the secure default that the config class itself documents. Restore
trust_remote_code: false and regenerate the distribution configs; deployments
that need remote code for a specific model can still opt in per provider.
Closes #6311.
Signed-off-by: Yash Anil <yashanil98@gmail.com>1 parent 189de74 commit 82e28e2
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
0 commit comments