Skip to content

Commit

Permalink
Fix configuration issues in CI script
Browse files Browse the repository at this point in the history
Fixing the configuration issues for the TPM backend in the ci.sh script.
Also moving to v1.0.0 of the Parsec service.

Signed-off-by: Ionut Mihalcea <[email protected]>
  • Loading branch information
ionut-arm committed Feb 27, 2023
1 parent 0a437eb commit 39182dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions ci/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ fi
# C Tests #
###########

cp /tmp/NVChip .
# Copy the TPM state for the SQLite KIM
cp /tmp/sqlite/NVChip .
# Start and configure TPM server
tpm_server &
sleep 5
Expand All @@ -43,7 +44,7 @@ tpm2_startup -T mssim
mkdir /run/parsec

# Install and run Parsec
git clone --branch 0.6.0 https://github.com/parallaxsecond/parsec
git clone --branch 1.0.0 https://github.com/parallaxsecond/parsec
pushd parsec
cargo build --features tpm-provider --release
./target/release/parsec -c ../ci/config.toml &
Expand Down
9 changes: 4 additions & 5 deletions ci/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ timeout = 3000 # in milliseconds
auth_type = "UnixPeerCredentials"

[[key_manager]]
name = "on-disk-manager"
manager_type = "OnDisk"
# Warning: this path is used in the CI script
store_path = "/tmp/mappings"
name = "sqlite-manager"
manager_type = "SQLite"
sqlite_db_path = "./kim-mappings/sqlite/sqlite-key-info-manager.sqlite3"

[[provider]]
provider_type = "Tpm"
key_info_manager = "on-disk-manager"
key_info_manager = "sqlite-manager"
tcti = "mssim"
owner_hierarchy_auth = "hex:74706d5f70617373" # "tpm_pass" in hex

0 comments on commit 39182dd

Please sign in to comment.