Skip to content

Commit

Permalink
sgx: only start aesmd socket in hw mode, not simulation (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Sep 4, 2024
1 parent beb9d65 commit 8812619
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ running [Faasm](https://github.com/faasm/faasm) cluster.
To install `faasmctl` you need a working `pip` (virtual-)environment. Then:

```bash
pip install faasmctl==0.46.1
pip install faasmctl==0.46.2
```

## Usage
Expand Down
7 changes: 6 additions & 1 deletion faasmctl/util/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@ def deploy_compose_cluster(faasm_checkout, workers, mount_source, ini_file):
# In a compose cluster with SGX in HW mode, we need to manually set-up
# the AESMD volume and socket for remote attestation (in a k8s deployment
# on AKS, this is done automatically for us)
must_start_sgx_aesmd = "FAASM_WASM_VM" in env and env["FAASM_WASM_VM"] == "sgx"
is_sgx_deployment = "FAASM_WASM_VM" in env and env["FAASM_WASM_VM"] == "sgx"
is_hw_mode = (
"FAASM_WORKER_IMAGE" in env
and "worker-sgx-sim" not in env["FAASM_WORKER_IMAGE"]
)
must_start_sgx_aesmd = is_sgx_deployment and is_hw_mode

if must_start_sgx_aesmd:
docker_cmd = [
Expand Down
2 changes: 1 addition & 1 deletion faasmctl/util/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FAASMCTL_VERSION = "0.46.1"
FAASMCTL_VERSION = "0.46.2"


def get_version():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "faasmctl"
version = "0.46.1"
version = "0.46.2"
authors = [
{ name="Faasm Team", email="[email protected]" },
]
Expand Down

0 comments on commit 8812619

Please sign in to comment.