Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
8dd12fa
[accless] E: Unify Headers Under Shared Dir
csegarragonz Nov 21, 2025
c00830c
[accli] E: Clarify ApplicationsCommand Help
csegarragonz Nov 21, 2025
ad4f89f
[scripts] E: Remove Obsolete Scripts
csegarragonz Nov 21, 2025
f1a5ffa
[accli] E: Add AttestationService Task
csegarragonz Nov 22, 2025
d132660
[scripts] E: Add Scripts To Spawn SNP cVM
csegarragonz Nov 22, 2025
568b2d1
[accli] B: Ignore Paths In Dev
csegarragonz Nov 22, 2025
fb7c366
[scripts] E: Refine SNP SetUp Scripts
csegarragonz Nov 22, 2025
3b0b054
[attestation-service] E: Log Node URL On Startup
csegarragonz Nov 22, 2025
a4f5be7
[accli] E: Add --rebuild Flag To attestation-service run
csegarragonz Nov 22, 2025
1d429a3
[accli] E: Pass /dev/sev-guest To Docker If Available
csegarragonz Nov 22, 2025
23c96fb
[applications] E: Add Preliminary Escrow-Xput Function
csegarragonz Nov 22, 2025
f4dc393
[attestation-service] E: Verify Bare-Metal SNP Reports
csegarragonz Nov 24, 2025
43df72e
[accli] E: Launch Applications By Name
csegarragonz Nov 24, 2025
61a9b90
[accless] B: Add Warning Around Mock Quote
csegarragonz Nov 24, 2025
38d44dc
[accli] E: Add Wrappers To Run In cVM
csegarragonz Nov 24, 2025
1c96ecf
[scripts] B: Make accli_wrapper.sh Resilient
csegarragonz Nov 24, 2025
ff16d9c
[scripts] E: Add Offline Disk Provisioning for SNP
csegarragonz Nov 25, 2025
d88e034
[scripts] B: Do Not Use Sudo On Workon.sh
csegarragonz Nov 25, 2025
ac6c3e4
[accli] E: Add 'dev cvm cli'
csegarragonz Nov 25, 2025
20e87e7
[accli] B: Fix Application Path
csegarragonz Nov 25, 2025
7a3c30a
[accli] B: Make Plural Of Function/Workflow
csegarragonz Nov 25, 2025
4f19bb9
[scripts] E: Refine SNP Scripts
csegarragonz Nov 25, 2025
6cd2249
[accli] E: Pass SEV_GID If /dev/sev-guest Present
csegarragonz Nov 25, 2025
be7811b
[attestation-service] E: Print Info On Start
csegarragonz Nov 25, 2025
da30430
[accli] E: Unify --as-* Flags
csegarragonz Nov 25, 2025
1da30df
[applications] B: Adapt --as-cert-path Flag
csegarragonz Nov 25, 2025
71ad626
[scripts] E: Build Accli In Snp Setup
csegarragonz Nov 25, 2025
4d02d77
[ci] E: Add SNP Bare Metal Test
csegarragonz Nov 25, 2025
43a697b
[build] E: Fix num-bigint Warning
csegarragonz Nov 25, 2025
b823653
[attestation-service] W: Clarify azcVM Regression
csegarragonz Nov 25, 2025
dfdca48
[attestation-service] B: Fix Default Cert Path
csegarragonz Nov 25, 2025
e2d4da9
[accli] B: Fix cVM Usage Script
csegarragonz Nov 25, 2025
bf40874
[scripts] W: Avoid edksetup.sh Crashing
csegarragonz Nov 25, 2025
47c63ba
[ci] B: Only Run SNP Job On Non-Draft PRs
csegarragonz Nov 25, 2025
79dedcc
[scripts] E: Refine SNP Setup Script
csegarragonz Nov 25, 2025
7e915c5
[ci] B: Install APT Deps
csegarragonz Nov 25, 2025
5128f13
[ci] B: Build AS In SNP Tests
csegarragonz Nov 25, 2025
7a144a5
[attestation-service] E: Refactor API Tests
csegarragonz Nov 26, 2025
f550f0c
[accli] E: Homogeneize AS Cert Path Parsing
csegarragonz Nov 26, 2025
d74fdb5
[applications] B: Use Mock Values From Mock Header
csegarragonz Nov 26, 2025
d46213c
[config] E: Avoid Expensive Chowns On Entry
csegarragonz Nov 26, 2025
663865e
[build] E: Bump Minor Version To 0.9.0
csegarragonz Nov 26, 2025
bfb4e67
[scripts] E: Do Not Pin Code Branch In cVM
csegarragonz Nov 26, 2025
3208837
[scripts] B: Fix Code Ownership In Ctr
csegarragonz Nov 26, 2025
7bfc09e
[accli] B: Fix Persistance In cVMs
csegarragonz Nov 26, 2025
fe6373a
[docs] E: Update README
csegarragonz Nov 26, 2025
978c737
[scripts] B: Make Sure Workon.sh Is Run In Ctr
csegarragonz Nov 26, 2025
38b5ce9
[accli] B: Create PID File Dirs In AS BG Spawn
csegarragonz Nov 26, 2025
5f35f1b
[accli] B: Fix Spawn Of Background AS
csegarragonz Nov 27, 2025
b6946f1
[scripts] E: Check Host Reqs In SNP Setup
csegarragonz Nov 27, 2025
8ca0c2c
[attestation-service] B: Properly Poll Certs
csegarragonz Nov 27, 2025
9100a3e
[ci] B: Fix Syntax Error In snp.yml
csegarragonz Nov 27, 2025
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
59 changes: 59 additions & 0 deletions .github/workflows/snp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: "SNP End-to-End Tests"

on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]


defaults:
run:
shell: bash

# Cancel previous running actions for the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
run-functions:
if: github.event.pull_request.draft == false
runs-on: [self-hosted, snp]
steps:
- name: "Check out the code"
uses: actions/checkout@v4

- name: "Run SNP setup"
run: ./scripts/accli_wrapper.sh dev cvm setup --clean

- name: "Start attestation service in the background"
run: ./scripts/accli_wrapper.sh attestation-service run --background --certs-dir ./certs --force-clean-certs --rebuild

# Fetch latest version of the code in the cVM.
- name: "Fetch code in the cVM"
run: |
# Work-out current branch name.
if [ -n "${{ github.head_ref }}" ]; then
BRANCH=${{ github.head_ref }}
else
BRANCH=${GITHUB_REF_NAME}
fi
./scripts/accli_wrapper.sh dev cvm run -- \
"git fetch origin $BRANCH && git checkout $BRANCH && git reset --hard origin/$BRANCH"

# Build SNP applications and embed the attestation service's certificate.
- name: "Build SNP applications"
run: ./scripts/accli_wrapper.sh applications build --clean --as-cert-path ./certs/cert.pem --in-cvm

- name: "Run supported SNP applications"
run: |
# First get the external IP so that we can reach the attestation-service from the cVM.
AS_URL=$(./scripts/accli_wrapper.sh attestation-service health --url "https://0.0.0.0:8443" --cert-path ./certs/cert.pem 2>&1 \
| grep "attestation service is healthy and reachable on:" | awk '{print $NF}')
echo "Got AS URL: ${AS_URL}"
./scripts/accli_wrapper.sh applications run function escrow-xput --as-url ${AS_URL} --as-cert-path ./certs/cert.pem --in-cvm

- name: "Stop attestation service in the background"
run: ./scripts/accli_wrapper.sh attestation-service stop
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Install APT deps"
run: ./scripts/apt.sh
- name: "Run Rust unit tests"
run: |
source ./scripts/workon.sh
Expand All @@ -52,9 +54,9 @@ jobs:
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Install APT deps"
run: ./scripts/apt.sh
- name: "Build C++ code"
shell: bash
run: ./scripts/accli_wrapper.sh accless build --clean
- name: "Run C++ unit tests"
shell: bash
run: ./scripts/accli_wrapper.sh accless test
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ datasets*
agent-plans

# Default path for auto-generated TLS certificates.
config/certs
config/test-certs
config/attestation-service/certs
config/attestation-service/test-certs

# Path for attestation service PID.
config/attestation-service/PID
Loading