forked from parallaxsecond/parsec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All of the remaining edits made to the parsec service while I've been on placement, some may not be working but I believe that all relevent test currently pass. Signed-off-by: Sam Davis <[email protected]>
- Loading branch information
Showing
15 changed files
with
464 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
32 changes: 32 additions & 0 deletions
32
e2e_tests/tests/all_providers/config/tomls/attestation_ecc.toml
This file contains 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,32 @@ | ||
[core_settings] | ||
# The CI already timestamps the logs | ||
log_timestamp = false | ||
log_error_details = true | ||
|
||
# The container runs the Parsec service as root, so make sure we disable root | ||
# checks. | ||
allow_root = true | ||
|
||
[listener] | ||
listener_type = "DomainSocket" | ||
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing | ||
# that the service does not hang for very big values of body or authentication length. | ||
timeout = 3000 # in milliseconds | ||
socket_path = "/tmp/parsec.sock" | ||
|
||
[authenticator] | ||
auth_type = "Direct" | ||
|
||
[[key_manager]] | ||
name = "on-disk-manager" | ||
manager_type = "OnDisk" | ||
store_path = "./mappings" | ||
|
||
[[provider]] | ||
provider_type = "Tpm" | ||
key_info_manager = "on-disk-manager" | ||
tcti = "mssim:host=127.0.0.1,port=2321" | ||
owner_hierarchy_auth = "" | ||
endorsement_hierarchy_auth = "" | ||
root_of_trust = {pcr_list = [0,1,2] ,pcr_hash_alg = "Sha256"} | ||
attesting_key = "Ecc" |
31 changes: 31 additions & 0 deletions
31
e2e_tests/tests/all_providers/config/tomls/attestation_none.toml
This file contains 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,31 @@ | ||
[core_settings] | ||
# The CI already timestamps the logs | ||
log_timestamp = false | ||
log_error_details = true | ||
|
||
# The container runs the Parsec service as root, so make sure we disable root | ||
# checks. | ||
allow_root = true | ||
|
||
[listener] | ||
listener_type = "DomainSocket" | ||
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing | ||
# that the service does not hang for very big values of body or authentication length. | ||
timeout = 3000 # in milliseconds | ||
socket_path = "/tmp/parsec.sock" | ||
|
||
[authenticator] | ||
auth_type = "Direct" | ||
|
||
[[key_manager]] | ||
name = "on-disk-manager" | ||
manager_type = "OnDisk" | ||
store_path = "./mappings" | ||
|
||
[[provider]] | ||
provider_type = "Tpm" | ||
key_info_manager = "on-disk-manager" | ||
tcti = "mssim:host=127.0.0.1,port=2321" | ||
owner_hierarchy_auth = "" | ||
endorsement_hierarchy_auth = "" | ||
root_of_trust = {pcr_list = [0,1,2] ,pcr_hash_alg = "Sha256"} |
32 changes: 32 additions & 0 deletions
32
e2e_tests/tests/all_providers/config/tomls/attestation_rsa.toml
This file contains 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,32 @@ | ||
[core_settings] | ||
# The CI already timestamps the logs | ||
log_timestamp = false | ||
log_error_details = true | ||
|
||
# The container runs the Parsec service as root, so make sure we disable root | ||
# checks. | ||
allow_root = true | ||
|
||
[listener] | ||
listener_type = "DomainSocket" | ||
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing | ||
# that the service does not hang for very big values of body or authentication length. | ||
timeout = 3000 # in milliseconds | ||
socket_path = "/tmp/parsec.sock" | ||
|
||
[authenticator] | ||
auth_type = "Direct" | ||
|
||
[[key_manager]] | ||
name = "on-disk-manager" | ||
manager_type = "OnDisk" | ||
store_path = "./mappings" | ||
|
||
[[provider]] | ||
provider_type = "Tpm" | ||
key_info_manager = "on-disk-manager" | ||
tcti = "mssim:host=127.0.0.1,port=2321" | ||
owner_hierarchy_auth = "" | ||
endorsement_hierarchy_auth = "" | ||
root_of_trust = {pcr_list = [0,1,2] ,pcr_hash_alg = "Sha256"} | ||
attesting_key = "Rsa" |
31 changes: 31 additions & 0 deletions
31
e2e_tests/tests/all_providers/config/tomls/root_of_trust_does_not_exist.toml
This file contains 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,31 @@ | ||
[core_settings] | ||
# The CI already timestamps the logs | ||
log_timestamp = false | ||
log_error_details = true | ||
|
||
# The container runs the Parsec service as root, so make sure we disable root | ||
# checks. | ||
allow_root = true | ||
|
||
[listener] | ||
listener_type = "DomainSocket" | ||
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing | ||
# that the service does not hang for very big values of body or authentication length. | ||
timeout = 3000 # in milliseconds | ||
socket_path = "/tmp/parsec.sock" | ||
|
||
[authenticator] | ||
auth_type = "Direct" | ||
|
||
[[key_manager]] | ||
name = "on-disk-manager" | ||
manager_type = "OnDisk" | ||
store_path = "./mappings" | ||
|
||
[[provider]] | ||
provider_type = "Tpm" | ||
key_info_manager = "on-disk-manager" | ||
tcti = "mssim:host=127.0.0.1,port=2321" | ||
owner_hierarchy_auth = "" | ||
endorsement_hierarchy_auth = "" | ||
attesting_key = "Rsa" |
32 changes: 32 additions & 0 deletions
32
e2e_tests/tests/all_providers/config/tomls/root_of_trust_invalid.toml
This file contains 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,32 @@ | ||
[core_settings] | ||
# The CI already timestamps the logs | ||
log_timestamp = false | ||
log_error_details = true | ||
|
||
# The container runs the Parsec service as root, so make sure we disable root | ||
# checks. | ||
allow_root = true | ||
|
||
[listener] | ||
listener_type = "DomainSocket" | ||
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing | ||
# that the service does not hang for very big values of body or authentication length. | ||
timeout = 3000 # in milliseconds | ||
socket_path = "/tmp/parsec.sock" | ||
|
||
[authenticator] | ||
auth_type = "Direct" | ||
|
||
[[key_manager]] | ||
name = "on-disk-manager" | ||
manager_type = "OnDisk" | ||
store_path = "./mappings" | ||
|
||
[[provider]] | ||
provider_type = "Tpm" | ||
key_info_manager = "on-disk-manager" | ||
tcti = "mssim:host=127.0.0.1,port=2321" | ||
owner_hierarchy_auth = "" | ||
endorsement_hierarchy_auth = "" | ||
root_of_trust = {pcr_list = [0,1,32] ,pcr_hash_alg = "Sha256"} | ||
attesting_key = "Rsa" |
This file contains 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.