Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Confidential message type #99

Merged
merged 10 commits into from
Jun 18, 2024

Conversation

nesitor
Copy link
Member

@nesitor nesitor commented May 16, 2024

Problem: A user cannot create a Confidential VM because we don't support that kind of messages, that have a different schema from Instances and Programs.

Solution: Create a Confidential message schema with concrete fields.

Improvements:

  • Created Confidential message schema.
  • Moved RootfsVolume class to volume file instead of instance file to avoid circular imports. This will cause issues on aleph-vm pyaleph and aleph-sdk-python repositories.
  • Improved GitHub action test workflow to remove deprecated message of ruff tool.

…ort that kind of messages, that have a different schema from Instances and Programs.

Solution: Create a Confidential message schema with concrete fields.
@nesitor nesitor requested review from olethanh and hoh May 16, 2024 16:47
@nesitor nesitor self-assigned this May 16, 2024
@hoh
Copy link
Member

hoh commented May 29, 2024

Related, PR #100 adds features required on the host for the VM, and could be used to schedule confidential VMs on nodes that support it.

@hoh hoh added the question Further information is requested label Jun 12, 2024
@nesitor nesitor requested a review from olethanh June 18, 2024 10:05
aleph_message/models/execution/environment.py Outdated Show resolved Hide resolved
aleph_message/models/execution/environment.py Outdated Show resolved Hide resolved
aleph_message/models/execution/environment.py Show resolved Hide resolved
aleph_message/models/execution/environment.py Show resolved Hide resolved
@nesitor nesitor merged commit 904d0e5 into main Jun 18, 2024
2 checks passed
@hoh hoh deleted the andres-feature-implement_coinfidential_message branch June 18, 2024 14:28
hoh added a commit that referenced this pull request Jun 21, 2024
* Problem: A user cannot create a Confidential VM because we don't support that kind of messages, that have a different schema from Instances and Programs.

Solution: Create a Confidential message schema with concrete fields.

* Fix: Removed old implementation and Added new one using a field instead of a new message type.

* Fix: Solve code quality issues.

* Fix: Solved test issues after last changes.

* Fix: Solved code quality issues on tests caused by different black versions.

* Fix: Solve mypy issue on CI.

* Fix: Added missing firmware field for confidentials.

* Add class TrustedExecutionEnvironment

* Add comment on retro-compatibility

* Improve tests

---------

Co-authored-by: Andres D. Molins <[email protected]>
Co-authored-by: Hugo Herter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants