Skip to content
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

update: add support for transferring state #1

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
cdb91eb
Many improvements, SGX and native modules support (#1)
gianlu33 Jan 22, 2021
43a1506
Add Makefile for running the Docker images
gianlu33 Jan 22, 2021
8ca7621
update Makefile
gianlu33 Jan 22, 2021
5f68336
Update documentation
gianlu33 Jan 22, 2021
1d1f334
Create LICENSE
gianlu33 Jan 25, 2021
4547ddc
use python AES lib instead of aes_encryptor (#2)
gianlu33 Feb 15, 2021
acbf780
update setup.py and Makefile, add AUTHORS (#3)
gianlu33 Feb 16, 2021
0be04d0
Restructuring code, add more flexibility (#4)
gianlu33 Feb 18, 2021
dcb7971
increment version number
gianlu33 Feb 18, 2021
75485f4
fix setup.py missing entry_points
gianlu33 Feb 18, 2021
b11c8af
Fix bugs introduced in the last PR, update Remote Attestation for SGX…
gianlu33 Apr 19, 2021
e7fd3c2
Separate commands: deploy(), attest(), connect(), register(). Add imp…
gianlu33 Apr 20, 2021
21f1632
remove sleep instructions, remove sgx key() property
gianlu33 Apr 20, 2021
76a7d7a
Implement attest() function in Sancus (#8)
gianlu33 May 3, 2021
43fb7bf
Setup initial CI/CD workflow for master branch (#9)
gianlu33 Jun 1, 2021
06897ca
update workflow (#11)
gianlu33 Jun 1, 2021
52a1cb6
Fix workflow (#12)
gianlu33 Jun 1, 2021
70761e5
Improve workflow, use "reactive-base" base image for Dockerfile (#14)
gianlu33 Jun 2, 2021
7e9c84e
Workflow: improve test, fix push (#15)
gianlu33 Jun 2, 2021
4662185
Dockerfile for the fosdem image (#16)
gianlu33 Jun 2, 2021
dafb838
small fix workflow (#17)
gianlu33 Jun 2, 2021
64abd96
update cron of workflows (#18)
gianlu33 Jul 1, 2021
55cd1a1
minor: build folder for SGX/native is self.folder and not self.name
gianlu33 Jul 15, 2021
cdb3c71
add byte to the "connect" message, remove overr. in sancus.py (#22)
gianlu33 Jul 26, 2021
1302e8d
fix "data" param in encrypt_aes and decrypt_aes
gianlu33 Jul 26, 2021
ecf0eff
update rust-sgx-gen version
gianlu33 Jul 26, 2021
ba5bc84
fix binary name SGX and native
gianlu33 Jul 26, 2021
10f806a
TrustZone support (#20)
gianlu33 Jul 27, 2021
441b437
Update README.md
gianlu33 Jul 27, 2021
e566291
upgrade version
gianlu33 Jul 27, 2021
da1aea9
update actions: add sleep between output events
gianlu33 Aug 2, 2021
05f7059
add action for att-man branch
gianlu33 Aug 2, 2021
a4b8d9e
Attestation Manager integration (#24)
gianlu33 Aug 4, 2021
5d6123a
minor fix fosdem-21 example
gianlu33 Aug 4, 2021
108ed61
update SGX attestation with attestation manager
gianlu33 Aug 4, 2021
cffb616
delete files after installing with pip
gianlu33 Aug 5, 2021
03fd684
Allow hostnames in "ip_address" field of nodes (#25)
gianlu33 Aug 5, 2021
4066466
SGX attestation: use AESM_HOST, update Dockerfile.fosdem
gianlu33 Aug 5, 2021
06e87db
Manager config on a separate file (#26)
gianlu33 Aug 6, 2021
b5e125e
fix dump SGX nodes
gianlu33 Aug 6, 2021
97f9e5b
load manager info only if present in deployment descriptor
gianlu33 Aug 23, 2021
fed9f07
Fix fosdem21 example native.json to pass pipeline
gianlu33 Sep 2, 2021
8e8796f
add parameter in call and request for printing result to file
gianlu33 Sep 17, 2021
06cc4fd
update fosdem-21 example
gianlu33 Sep 28, 2021
d2397ae
small fix cli.py
gianlu33 Sep 28, 2021
70c7f05
remove useless "call()" method from Module, use Node "call()" instead
gianlu33 Oct 5, 2021
e2e3a9f
update fosdem-21 example
gianlu33 Oct 5, 2021
6fcea47
upgrade rust-sgx-gen version
gianlu33 Oct 13, 2021
56bf007
upgrade rust-sgx-gen version
gianlu33 Oct 14, 2021
b5e8d3e
Sancus: update linking of SMs according to the new sancus-compiler
gianlu33 Oct 15, 2021
4a9f8e4
Update examples and CI workflows
gianlu33 Oct 15, 2021
a49ea59
fix button-led-native example
gianlu33 Oct 18, 2021
0eec93d
give more meaningful names for output dirs
gianlu33 Oct 18, 2021
9defd6c
native/sgx: binary file name is the same as the folder, not the SM
gianlu33 Oct 18, 2021
63d69d0
sancus: fix symtab file dir
gianlu33 Oct 19, 2021
639a0e3
sgx: fix sgxs name
gianlu33 Oct 19, 2021
4842635
Create LICENSE
gianlu33 Oct 27, 2021
a143b7e
update usage of sancus libraries
gianlu33 Nov 4, 2021
46194f1
minor updates, move to "authexec" Docker repo
gianlu33 Nov 8, 2021
bc90b7b
update Makefile
gianlu33 Nov 8, 2021
0c3abc1
code formatting using autopep8
gianlu33 Nov 8, 2021
a5caffc
Fix sancus-crypto command in _calculate_key
gianlu33 Nov 8, 2021
6be939d
code improvements
gianlu33 Nov 10, 2021
da0cd7c
fix bugs introduced in previous commit
gianlu33 Nov 10, 2021
c32d1b8
default value for `files_dir` in trustzone modules
gianlu33 Nov 29, 2021
c13c68a
Add action for PRs
gianlu33 Dec 2, 2021
b30085e
update CI
gianlu33 Dec 8, 2021
65a00d1
Tzcodegen integration (#28)
sepidehpouyan Dec 8, 2021
2adb16b
Updates for new sgx-attester (#29)
gianlucascopelliti Dec 17, 2021
6219b56
print stderr if run_async_output fails (#30)
gianlucascopelliti Dec 17, 2021
87f2154
update Dockerfile
gianlucascopelliti Feb 3, 2022
fada81b
change "ip_address" to "host" in descriptor
gianlucascopelliti Apr 4, 2022
c21511b
implement Exit command
gianlucascopelliti Aug 19, 2022
0c48a95
use default values for sgx-sign
gianlucascopelliti Aug 25, 2022
4520308
refactor exit -> disable
gianlucascopelliti Aug 25, 2022
0e04b65
disable: encrypt instead of mac
gianlucascopelliti Aug 25, 2022
d18a4ab
Add support for module update & timing (#31)
gianlucascopelliti Aug 29, 2022
756da64
add time measurements for update
gianlucascopelliti Aug 29, 2022
40ff764
TZ: three-level hierarchy for keys, like Sancus
gianlucascopelliti Aug 30, 2022
cac5480
SGX: wait after attestation to let enclave open the socket
gianlucascopelliti Aug 30, 2022
ba268e1
update: support for state transfer
gianlucascopelliti Aug 30, 2022
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
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.gitignore
add_new_architectures.md
AUTHORS
LICENSE
Makefile
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Docker
on:
push:
branches:
- master
- main
schedule:
- cron: '0 0 2 */1 *' # Every month
pull_request:
workflow_dispatch: # Allow manual triggering

jobs:
build-test-publish:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@master
-
name: code-check
run: |
sudo apt update && sudo apt install pylint
pip install -r requirements.txt
cd ..
pylint reactive-tools --rcfile reactive-tools/.pylintrc
-
name: Build
id: build
if: ${{ github.event_name != 'pull_request' }}
uses: gianlu33/Publish-Docker-Github-Action@main
with:
name: authexec/reactive-tools
username: authexec
password: ${{ secrets.DOCKER_TOKEN }}
cache: ${{ github.event_name != 'schedule' }}
tag_names: true

47 changes: 47 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test
on:
pull_request:
workflow_dispatch: # Allow manual triggering

env:
SGX_IMAGE: authexec/event-manager-sgx:latest
SANCUS_IMAGE: authexec/event-manager-sancus:latest
TRUSTZONE_IMAGE: authexec/event-manager-trustzone:latest
AESM_CLIENT_IMAGE: authexec/aesm-client:latest
MANAGER_IMAGE: authexec/attestation-manager
ADMIN_IMAGE: authexec/reactive-tools:latest

jobs:
test-examples:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@master
-
name: Build image
run: |
docker build -t ${{ env.ADMIN_IMAGE }} .
-
name: Checkout examples
run: git clone https://github.com/AuthenticExecution/examples.git
-
name: Pull images
run: |
### Uncomment lines below if other Docker images are needed ###
#docker pull ${{ env.SGX_IMAGE }}
#docker pull ${{ env.MANAGER_IMAGE }}:native
#docker pull ${{ env.SANCUS_IMAGE }}
#docker pull ${{ env.TRUSTZONE_IMAGE }}
#docker pull ${{ env.AESM_CLIENT_IMAGE }}
#docker pull ${{ env.MANAGER_IMAGE }}:sgx
-
name: build button-led
timeout-minutes: 10
run: |
cd examples/button-led
shopt -s expand_aliases
alias REACTIVE_TOOLS="docker run --rm --network=host -v $(pwd):/usr/src/app/ ${{ env.ADMIN_IMAGE }} reactive-tools"
REACTIVE_TOOLS --debug build descriptor-local.json
unalias REACTIVE_TOOLS
touch completed

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__pycache__/
*.egg-info/
*.swp

build
dist

res.json
Loading