-
Notifications
You must be signed in to change notification settings - Fork 74
feat: on-chain TCB policy with dcap-qvl two-phase verification #538
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
Draft
kvinwang
wants to merge
10
commits into
master
Choose a base branch
from
policy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
bc5c574
feat: upgrade dcap-qvl to policy branch and add on-chain TCB policy s…
kvinwang 6f22de1
fix: address PR review - separate policy API, remove tdx_report()
kvinwang 879ba19
refactor: use upstream ppid() accessor instead of supplemental()
kvinwang 945b330
fix: use explicit match arms instead of wildcard for DstackVerifiedRe…
kvinwang 27c5d55
test: add auth-eth tests for IAppTcbPolicy and policy API endpoints
kvinwang 2dab2f8
test: add KMS unit tests and cross-language serde contract tests
kvinwang df262e5
ci: extract tests into dedicated workflow and add auth-eth tests
kvinwang 3d35952
test: add KMS E2E integration tests with TCB policy validation
kvinwang c006e36
ci: add KMS E2E tests to CI workflow
kvinwang c8cfc35
Potential fix for code scanning alert no. 24: Workflow does not conta…
kvinwang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,3 @@ jobs: | |
|
|
||
| - name: Cargo fmt check | ||
| run: cargo fmt --check --all | ||
|
|
||
| - name: Run tests | ||
| run: ./run-tests.sh | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network> | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| name: Tests | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master, next, dev-* ] | ||
| pull_request: | ||
| branches: [ master, next, dev-* ] | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| rust-tests: | ||
| name: Rust tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: 1.92.0 | ||
|
|
||
| - name: Run tests | ||
| run: ./run-tests.sh | ||
|
|
||
| auth-eth-tests: | ||
| name: auth-eth tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '18' | ||
| cache: 'npm' | ||
| cache-dependency-path: kms/auth-eth/package-lock.json | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| cd kms/auth-eth | ||
| npm ci | ||
|
|
||
| - name: Run tests | ||
| run: | | ||
| cd kms/auth-eth | ||
| npm test | ||
|
|
||
| kms-e2e-tests: | ||
|
||
| name: KMS E2E tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: 1.92.0 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '18' | ||
| cache: 'npm' | ||
| cache-dependency-path: kms/auth-eth/package-lock.json | ||
|
|
||
| - name: Run KMS E2E tests | ||
| run: bash kms/e2e/run-e2e.sh | ||
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.