Skip to main content
phir1
Silver ⭐️⭐️
January 5, 2024
Solved

CML Python Package Installation Security

Hello,

I've noticed how the CML Terminal lets you install Python packages on the 'Net using pip.

(A gcc compiler is even available!)

Isn't that a security risk?

Is there a way to only allow package installation from an in-house repository?

Many thanks.

Gopinath
GopinathAnswer
Gold ⭐️⭐️
January 8, 2024

pip index url can be configured as an admin environment variable, but users can override the same with the project environment variable or manual override.

utmost way is to make the cluster air gapped. As long as the cluster has internet gateway, sessions can reach internet to pull the packages

1 reply

Gopinath
Gold ⭐️⭐️
GopinathAnswer
Gold ⭐️⭐️
January 8, 2024

pip index url can be configured as an admin environment variable, but users can override the same with the project environment variable or manual override.

utmost way is to make the cluster air gapped. As long as the cluster has internet gateway, sessions can reach internet to pull the packages

Translate