Base the enclave image on Ubuntu 24.04 LTS - #9486
Merged
Merged
Conversation
Move the enclave container from python:3.12-slim (Debian 13 trixie) to Ubuntu 24.04 LTS, which ships Python 3.12 as its system interpreter -- the version the workspace already targets. Two adjustments the base change requires: python3-venv is packaged separately on Ubuntu and uv needs it to build /repo/.venv, and uv is installed from its standalone distribution rather than pip because Ubuntu marks the system interpreter externally managed (PEP 668). Verified: image builds, reports Ubuntu 24.04.4 LTS with Python 3.12.3 and uv 0.12.1, and syft_client, syft_enclaves, fastapi, uvicorn and the attestation server module all import in the built venv.
Contributor
PR title does not follow the required formatYour title must follow this pattern: Example titles:
Allowed types: Just edit your PR title above to fix this. The check will re-run automatically. See the PR guidelines for full details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the enclave container from
python:3.12-slim(Debian 13 trixie) to Ubuntu 24.04 LTS, which ships Python 3.12 as its system interpreter — the version the workspace already targets.Changes
Two adjustments the base change requires:
python3-venvis packaged separately on Ubuntu, and uv needs it to build/repo/.venv.Verified
Image builds clean, and reports:
syft_client(0.1.117),syft_enclaves,fastapi,uvicornand the attestation server module all import in the built venv.Not yet done
The enclave test suite has not been run against this image — flagged for follow-up.
Worth noting separately: both
ubuntu:24.04and the previouspython:3.12-slimare floating tags, so rebuilds can pick up a different patch level and change the attested image digest. Pinning the base by digest would make enclave builds reproducible, but that is out of scope here.