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

Add workaround for the network issue of the keyprovider #87

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions key-provider-build/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
gramine-sealing-key-provider:
container_name: gramine-sealing-key-provider
network_mode: host
build:
context: .
dockerfile: Dockerfile
Expand All @@ -10,8 +9,16 @@ services:
- "/dev/sgx_enclave:/dev/sgx_enclave"
- "/dev/sgx_provision:/dev/sgx_provision"
volumes:
- "/etc/sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf"
environment:
- SGX=1
- "./sgx_default_qcnl.conf:/etc/sgx_default_qcnl.conf"
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "3443:3443"
- "127.0.0.1:3443:3443"

# proxy to access the local pccs for the aesm service
# The local PCCS is supposed to be running on the host machine and listening on 127.0.0.1:8081
pccs-proxy:
image: alpine/socat
container_name: pccs-proxy
network_mode: host
command: TCP-LISTEN:8082,bind=172.17.0.1,fork,reuseaddr TCP:127.0.0.1:8081
9 changes: 9 additions & 0 deletions key-provider-build/sgx_default_qcnl.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"pccs_url": "https://host.docker.internal:8082/sgx/certification/v4/",
"use_secure_cert": false,
"retry_times": 6,
"retry_delay": 10,
"pck_cache_expire_hours": 168,
"verify_collateral_cache_expire_hours": 168,
"local_cache_only": false
}
Loading