Skip to content

Commit

Permalink
init: create project template
Browse files Browse the repository at this point in the history
1. Create directory skeleton
2. Create template for VMSDK
3. Add some initial design doc and diagrams

Signed-off-by: Lu, Ken <[email protected]>
  • Loading branch information
kenplusplus committed Dec 4, 2023
1 parent 6083de3 commit 9c4c00e
Show file tree
Hide file tree
Showing 9 changed files with 92 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2",
"ignorepaths": [
".github/",
".git/"
],
"ignorewords": [],
"ignoreRegExpList": [
"/```[\\s\\S]*?```/g",
"/`[\\s\\S]*?`/g"
],
"import": [],
"dictionarydefinitions": [],
"dictionaries": [],
"words": [
"ccnp",
"containerd",
"daemonset",
"Eventlog",
"grpcurl",
"kustomization",
"NFD",
"proto",
"quoteserver",
"RTMR",
"TDVM",
"udev",
"PCCS",
"DCAP",
"distros",
"PCKID",
"pccs",
"pckcache",
"sysfs"
]
}
22 changes: 22 additions & 0 deletions .github/workflows/doclint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Document Scan

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
scan_doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@v2
with:
files: |
**/*.md
*.md
config: .github/cspell.json
verbose: true
incremental_files_only: false
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CC Trusted API

The project help to access and process the trusted primitives (measurement, eventlog,
quote) in confidential computing environment. It support multiple language flavors.

It also provides back-end tool, IMA template, services to produce the diverse TCBs
according to deployment.

![](docs/cc-trusted-api-overview.png)
Binary file added docs/cc-trusted-api-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/cc-trusted-primitives-vendor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions samples/CCTrustedInspect/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Inspect Tool

Get and dump the trusted primitives like measurement, event log, quote. With different
back-end SDK, the inspected TCB could be VM base, container or cluster.
1 change: 1 addition & 0 deletions utils/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Utilities
8 changes: 8 additions & 0 deletions vmsdk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

# SDK for CC Trusted API in Confidential VM

In confidential VM, the trusted primitives (measurement, eventlog, quote) normally
can be accessed via device node like /dev/tpm0, sysfs etc, and different vendor
may provides the different definitions.

![](/docs/cc-trusted-primitives-vendor.png)
12 changes: 12 additions & 0 deletions vmsdk/python/cctrusted/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
Package to provide CC trusted API for confidential VM
"""

def get_measurements():
pass

def get_eventlog():
pass

def get_quote():
pass

0 comments on commit 9c4c00e

Please sign in to comment.