Skip to content
Closed
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
48 changes: 46 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
ts_lint: ${{ steps.ts_lint.outputs.changes }}
ts_typecheck: ${{ steps.ts_typecheck.outputs.changes }}
go: ${{ steps.go.outputs.changes }}
portal: ${{ steps.portal.outputs.changes }}
python: ${{ steps.python.outputs.changes }}
steps:
- uses: actions/checkout@v5
Expand Down Expand Up @@ -64,6 +65,10 @@ jobs:
- 'secure/cost-service/**'
- 'packages/common/**'
- '.github/workflows/ci.yml'
'secure/kms-service':
- 'secure/kms-service/**'
- 'packages/common/**'
- '.github/workflows/ci.yml'
'secure/log-service':
- 'secure/log-service/**'
- 'packages/common/**'
Expand Down Expand Up @@ -133,6 +138,10 @@ jobs:
- 'secure/cost-service/**'
- 'packages/common/**'
- '.github/workflows/ci.yml'
'secure/kms-service':
- 'secure/kms-service/**'
- 'packages/common/**'
- '.github/workflows/ci.yml'
'secure/log-service':
- 'secure/log-service/**'
- 'packages/common/**'
Expand Down Expand Up @@ -171,6 +180,23 @@ jobs:
- 'secure/sce-unit/**'
- 'packages/go-common/**'
- '.github/workflows/ci.yml'
'secure/csav/registry-service':
- 'secure/csav/registry-service/**'
- 'packages/go-common/**'
- '.github/workflows/ci.yml'
'rads/sce/execution-service/host-tools':
- 'rads/sce/execution-service/host-tools/**'
- '.github/workflows/ci.yml'
- id: portal
uses: dorny/paths-filter@v4
with:
filters: |
'rads/transparency-portal':
- 'rads/transparency-portal/**'
- '.github/workflows/ci.yml'
'secure/transparency-portal':
- 'secure/transparency-portal/**'
- '.github/workflows/ci.yml'
- id: python
uses: dorny/paths-filter@v4
with:
Expand Down Expand Up @@ -215,6 +241,24 @@ jobs:
- run: bun run typecheck
working-directory: ${{ matrix.package }}

build-portal:
needs: changes
if: needs.changes.outputs.portal != '[]'
runs-on: blacksmith-2vcpu-ubuntu-2404
strategy:
fail-fast: false
matrix:
package: ${{ fromJSON(needs.changes.outputs.portal) }}
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.x
- run: bun install --frozen-lockfile
working-directory: ${{ matrix.package }}
- run: bun run build
working-directory: ${{ matrix.package }}

python:
needs: changes
if: needs.changes.outputs.python != '[]'
Expand All @@ -239,8 +283,8 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: "1.25"
cache-dependency-path: ${{ matrix.module }}/go.sum
go-version-file: ${{ matrix.module }}/go.mod
cache-dependency-path: ${{ matrix.module }}/go.*
- run: test -z "$(gofmt -l .)"
working-directory: ${{ matrix.module }}
- run: go vet ./...
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ __pycache__/
!/.aws/credentials.example
!/.aws/config.example
/.env
/.env.tmp
!/.env.example
/.ssh/*
!/.ssh/README.md
Expand All @@ -24,3 +25,9 @@ __pycache__/
.opencode/

secure/pdm-service/tls/

# CSV exports written by make logs-csv* and cost-csv*
/run-*.csv
/algo-*.csv
/logs-all.csv
/cost-*.csv
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ benchmark-site-deploy:
logs:
@set -u; \
pids=""; \
for target in registry-logs; do make $$target & pids="$$pids $$!"; done; \
for target in registry-logs; do $(MAKE) $$target & pids="$$pids $$!"; done; \
for group in $$(aws logs describe-log-groups --region "$(REGION)" --log-group-name-prefix /aws/lambda/ --query 'logGroups[].logGroupName' --output text); do \
case "$$group" in /aws/lambda/secure-rads-execution-service-dev-*|/aws/lambda/secure-rads-verifier-service-dev-*|/aws/lambda/secure-rads-pdm-service-dev-*|/aws/lambda/secure-rads-kms-service-dev-*|/aws/lambda/secure-rads-log-service-dev-*|/aws/lambda/secure-rads-telemetry-service-dev-*|/aws/lambda/secure-rads-cost-service-dev-*|/aws/lambda/secure-rads-result-consumer-dev-*|/aws/lambda/rads-registry-service-dev-*|/aws/lambda/rads-pdm-service-dev-*|/aws/lambda/rads-log-service-dev-*|/aws/lambda/rads-telemetry-service-dev-*|/aws/lambda/rads-cost-service-dev-*|/aws/lambda/rads-result-consumer-dev-*|/aws/lambda/rads-execution-service-dev-*) aws logs tail "$$group" --region "$(REGION)" --follow & pids="$$pids $$!";; esac; \
done; \
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,23 @@ instance. Use a dedicated research account.
- [`docs/e2e-rads.txt`](docs/e2e-rads.txt), [`docs/e2e-secure-rads.txt`](docs/e2e-secure-rads.txt) -
event-by-event plaintext flows for the build and execution phases.

## Known limitations

These are accepted as PoC scope and not fixed here.

- Registry `/upload` is open to anything allowed by the CSAV security group, with no authentication.
Rebuilding an existing `algorithmId` moves its KMS key policy to the new PCRs.
- Execution-service `POST /run` and `GET /run/{runId}` are unauthenticated and have no concurrency cap.
- Log-service subject-access read endpoints and the transparency portal authority view are public.
- Telemetry and cost ingest endpoints are unauthenticated.
- The parent host builds and sends enclave results to SQS without a signature.
- Record encryption uses AES-GCM without associated data (AAD).
- Each deploy re-derives TLS pins from the live endpoints (trust on first use).
- The deploy workflow can be dispatched from any branch, and its OIDC role is broad.
- Executor and enclave hosts have no maximum lifetime.
- Telemetry exports are unpaginated and bounded by the 6 MB Lambda response limit.
- rads DC containers run on the default Docker network.

## Ongoing work

This PoC is under active development until the paper is camera ready. Outstanding work identified
Expand Down
4 changes: 2 additions & 2 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ The event contract follows [RADS](../docs/e2e-rads.txt) and [Secure-RADS](../doc
| Attestation | — | `unit-ready` → `attested` |
| Data retrieval | `artifact-retrieved` → `records-stored-locally` | `attested` → `records-stored-locally` |
| Algorithm processing | `records-stored-locally` → `compute-completed` | `records-stored-locally` → `dc-app-completed` |
| Result delivery | `compute-completed` → `result-persisted` | `output-sent` → `result-persisted` |
| Result delivery | `compute-completed` → `result-persisted` | `dc-app-completed` → `result-persisted` |
| Total | `run-requested` → `result-persisted` | `run-requested` → `result-persisted` |

`records-fetched` precedes file serialization/writing in both trees. Secure-rads emits `records-decrypted` after decryption and `records-stored-locally` after writing the plaintext file. Its data-retrieval phase includes fetching AWS credentials, fetching records, KMS key unwrapping, record decryption, and writing the file. The CSV includes the individual event timestamps as well as the aggregate phase durations.

`executor-launched` records EC2 launch; secure-rads' `enclave-launched` records a successful `nitro-cli run-enclave`. Host and enclave run concurrently, so `enclave-started` can arrive before the host emits `enclave-launched`; enclave boot therefore ends at `enclave-started`.

Existing committed results use the earlier event contract (`data-decrypted` after the file write, and `enclave-launched` for EC2 launch). They remain historical measurements. Re-exporting those runs with the new exporter leaves phases blank where the new events are absent; deploy the aligned services, rebuild the EIFs, ship the rads host tools, and run a fresh sweep for the new contract.
Result delivery starts when the DC app finishes in both trees, so secure-rads includes the vsock stream to the parent (`dc-app-completed` → `output-sent`). The phases do not cover `run-requested` → `executor-launched` (the `RunInstances` call), so they sum to roughly 1 s less than `total`.

## Layout

Expand Down
Loading
Loading