Skip to content

Commit 454e90c

Browse files
csegarragonzUbuntuUbuntu
authored
escrow: add experiment measuring xput/latency of different escrow designs (#13)
* more progress * few nits * load-test on snp vtpm working * few more nits * more work towards escrow experiment * streamline trustee's deployment * change parallelism * trustee results ready too * few nits * work towards accless baseline * work * as: add basic skeleton * escrow-xput-tless: use our own library for cvm guest attestation * more wip * escrow-xput: run clang-format * more clang formatting * more wip * finish as (using https) * preliminary results * rename to ubench * finish plot * self review --------- Co-authored-by: Ubuntu <tless@tless-snp-guest.bdfjndbsl0bu1dd3y1gons4ija.bx.internal.cloudapp.net> Co-authored-by: Ubuntu <tless@accless-cvm.b0bjmgz5iccu1edksfvmrtoisg.bx.internal.cloudapp.net>
1 parent 0de3019 commit 454e90c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+6436
-18
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ venv
55

66
build-native
77
build-wasm
8+
9+
ansible/inventory/vms.ini

ansible/accless.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
3+
- hosts: accless
4+
gather_facts: yes
5+
tasks:
6+
- include_tasks: tasks/accless/apt.yaml
7+
- include_tasks: tasks/util/az_guest_attestation.yaml
8+
- include_tasks: tasks/rust.yaml
9+
- include_tasks: tasks/accless/code.yaml
10+
- include_tasks: tasks/accless/rabe.yaml
11+
- include_tasks: tasks/accless/az_guest_attestation_prereq.yaml
12+
- include_tasks: tasks/accless.yaml

ansible/ansible.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[defaults]
2+
host_key_checking = False

ansible/inventory/.gitkeep

Whitespace-only changes.

ansible/mhsm.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
3+
- hosts: mhsm
4+
gather_facts: yes
5+
tasks:
6+
- include_tasks: tasks/mhsm/apt.yaml
7+
- include_tasks: tasks/util/az_guest_attestation.yaml
8+
- include_tasks: tasks/rust.yaml
9+
- include_tasks: tasks/mhsm/code.yaml
10+
- include_tasks: tasks/mhsm.yaml

ansible/tasks/accless.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
- name: "Build demo"
2+
shell: mkdir build && cd build && cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release && ninja
3+
args:
4+
chdir: "/home/{{ ansible_user }}/git/faasm/tless/ubench/escrow-xput"
5+
executable: /bin/bash
6+
7+
- name: "Generate keys"
8+
shell: ./bin/gen_keys.sh
9+
args:
10+
chdir: "/home/{{ ansible_user }}/git/faasm/tless/attestation-service"
11+
executable: /bin/bash
12+
environment:
13+
AS_URL: "{{ as_ip }}"
14+
15+
- name: "Build Attestation Service"
16+
shell: cargo build --release
17+
args:
18+
chdir: "/home/{{ ansible_user }}/git/faasm/tless/attestation-service"
19+
executable: /bin/bash
20+
environment:
21+
PATH: "/home/{{ ansible_user }}/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

ansible/tasks/accless/apt.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
- name: "Install APT depdencencies"
2+
become: yes
3+
apt:
4+
name:
5+
- build-essential
6+
- cmake
7+
- libboost-all-dev
8+
- libcurl4-openssl-dev
9+
- libjsoncpp-dev
10+
- libssl-dev
11+
- ninja-build
12+
- nlohmann-json3-dev
13+
- pkg-config
14+
- python3-venv
15+
update_cache: yes
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- name: "Install the pre-reqs"
2+
become: yes
3+
shell: bash pre-requisites.sh
4+
args:
5+
chdir: "/home/{{ ansible_user }}/git/faasm/azure-cvm-guest-attestation"
6+
executable: /bin/bash

ansible/tasks/accless/code.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
3+
- name: "Create code dir"
4+
file:
5+
path: "/home/{{ ansible_user }}/git"
6+
state: directory
7+
8+
- name: "Clone TLess repos"
9+
git:
10+
repo: "https://www.github.com/faasm/{{ item }}.git"
11+
dest: "/home/{{ ansible_user }}/git/faasm/{{ item }}"
12+
update: yes
13+
recursive: yes
14+
clone: yes
15+
force: yes
16+
accept_hostkey: yes
17+
with_items:
18+
- "tless"
19+
- "azure-cvm-guest-attestation"
20+
- "examples"
21+
- "snpguest"

ansible/tasks/accless/rabe.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- name: "Build rabe (CP-ABE) library and C++ bindings"
2+
shell: ./bin/inv_wrapper.sh rabe --native
3+
args:
4+
chdir: "/home/{{ ansible_user }}/git/faasm/examples"
5+
executable: /bin/bash
6+
environment:
7+
PATH: "/home/{{ ansible_user }}/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

0 commit comments

Comments
 (0)