|
It's more likely that I'm missing something than that these are bugs so I'm submitting here. If this isn't the right place, please redirect me. I ran into the following when trying to hookup my sandbox to a LiteLLM server but here's an even simpler example (based on the documentation: https://docs.nvidia.com/openshell/get-started/tutorials/first-network-policy). Relevant environment: My simple policy: When I create the sandbox and try to exercise a connection out of it there's a failure: Based on the log it seems to be finding the policy just fine: Any help appreciated. |
Replies: 3 comments
|
Your filesystem policy isn't the problem, and nothing you add to it will help —
Why the device entry can't matter: OpenSSL 3 doesn't read /* rand_unix.c */ if (wait_random_seeded()) { /* DEVRANDOM block */ }
/* crypto/rand.h */ # define DEVRANDOM_SAFE_KERNEL 4, 8
That leaves either If that raises OSError, capture the errno — OpenShell's supervisor seccomp is default-allow and Two practical notes: |
|
Thanks for the comprehensive discussion. I never would have figured this out on my own. Python os.getrandom is not available in the container so I substituted urandom. I saw some stuff that said it calls the same underlying getrandom on modern linux, but... From within the sandbox: And the minute I saw FIPS in your response (and in the openssl error above) I got suspicious. It looks to me like the sandbox is picking up the FIPS requirement from the host through /proc/sys/crypto/fips_enabled, but the container/image lacks the libraries (ossl-modules?) to support. I can ask the sysadmins if they'll temporarily disable it on the host so I can verify, but in the long term they're going to require it be enabled. I'd be grateful if you can elaborate on the underlying issues and suggest a solution. It's unclear to me if this is something that OpenShell should address, whether it's uniquely a problem on my side, or whether there's just a fundamental incompatibility that's never going to work. Thanks again. |
|
Our sysadmins termporarily rebooted the host without FIPS mode and things work properly: |
Our sysadmins termporarily rebooted the host without FIPS mode and things work properly: