{"id":19733977,"url":"https://github.com/scaleoutsystems/tee-attestation","last_synced_at":"2026-03-19T11:21:12.066Z","repository":{"id":104982480,"uuid":"485823831","full_name":"scaleoutsystems/tee-attestation","owner":"scaleoutsystems","description":"In this proof of concept we securely provision FEDn client and combiner tokens with Gramine.","archived":false,"fork":false,"pushed_at":"2022-04-26T14:36:41.000Z","size":202,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T04:09:08.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scaleoutsystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-26T14:34:33.000Z","updated_at":"2023-02-24T08:59:50.000Z","dependencies_parsed_at":"2023-05-07T11:30:37.509Z","dependency_job_id":null,"html_url":"https://github.com/scaleoutsystems/tee-attestation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scaleoutsystems/tee-attestation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaleoutsystems%2Ftee-attestation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaleoutsystems%2Ftee-attestation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaleoutsystems%2Ftee-attestation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaleoutsystems%2Ftee-attestation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scaleoutsystems","download_url":"https://codeload.github.com/scaleoutsystems/tee-attestation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaleoutsystems%2Ftee-attestation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30127217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T00:34:50.279Z","updated_at":"2026-03-05T13:02:28.290Z","avatar_url":"https://github.com/scaleoutsystems.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intel SGX Attestation via Gramine\nIn this proof of concept we securely provision FEDn client and combiner tokens with [Gramine](https://github.com/gramineproject/gramine). The `docker-compose.yalm` file simulates a scenario in which the reducer runs in a trusted environment while the combiner and clients run on an untrusted environment with Intel SGX support. A provisioning server (`sever.c`) makes use of [EPID-based remote attestation](https://gramine.readthedocs.io/en/v1.1/attestation.html#remote-attestation-flows-for-epid-and-dcap) to verify the authenticity of the provinioned enclave and passes the token using an encrypted connection.\n\n## Table of Contents\n- [Intel SGX Attestation via Gramine](#intel-sgx-attestation-via-gramine)\n  - [Table of Contents](#table-of-contents)\n  - [Running the PoC](#running-the-poc)\n  - [Known issues](#known-issues)\n\n## Running the PoC\n\nFirst you need to set up EPID credentials in the `.env` file as it follows.\n\n```bash\nRA_TLS_EPID_API_KEY=\u003cyour-primary-key\u003e\nRA_CLIENT_SPID=\u003cyour-spid\u003e\n```\n\n\u003e To get these credentials you need to create an account at: https://api.portal.trustedservices.intel.com/EPID-attestation.\n\nOnce you are done you can spin up the PoC by running:\n\n```bash\ndocker-compose up -d\n```\n\nTo check that evrything has worked as expected you can upload the dummy compute package and seed model that we provide under `resources/`.\n\n```bash\n# Upload package\ncurl -k -X POST \\\n    -F file=@resources/package.tar.gz \\\n    -F helper=\"keras\" \\\n    https://localhost:8090/context\n\n# Upload seed\ncurl -k -X POST \\\n    -F seed=@resources/seed.npz \\\n    https://localhost:8090/models\n```\n\nNow navigate to `https://localhost:8090` and verify that combiner and clients have connected successfully.\n\n## Known issues\n  - The the PoC is not setup to run the compute package in the enclave.\n  - All the services run on `localhost` with the Docker containers attaching straight to the host network.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaleoutsystems%2Ftee-attestation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscaleoutsystems%2Ftee-attestation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaleoutsystems%2Ftee-attestation/lists"}