-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This test will enable https for the token-kbs. The resource-kbs will remain http. The test folder structure has been reworked a bit, so we don't end up littering the filesystem with temporary files, all temp resources should now end up in `./work` and can be safely removed without overwriting unrelated files. Signed-off-by: Magnus Kulke <[email protected]>
- Loading branch information
Showing
5 changed files
with
107 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
sockets = ["127.0.0.1:8080"] | ||
auth_public_key = "./kbs.pem" | ||
insecure_http = true | ||
auth_public_key = "./work/kbs.pem" | ||
|
||
private_key = "./work/https.key" | ||
certificate = "./work/https.crt" | ||
|
||
[attestation_token_config] | ||
attestation_token_type = "CoCo" | ||
|
||
[repository_config] | ||
type = "LocalFs" | ||
dir_path = "./data/repository" | ||
dir_path = "./work/repository" | ||
|
||
[as_config] | ||
work_dir = "./data/attestation-service" | ||
work_dir = "./work/attestation-service" | ||
policy_engine = "opa" | ||
attestation_token_broker = "Simple" | ||
|
||
[as_config.attestation_token_config] | ||
duration_min = 5 | ||
|
||
[as_config.attestation_token_config.signer] | ||
key_path = "./token-key.pem" | ||
cert_path = "./token-cert-chain.pem" | ||
key_path = "./work/token.key" | ||
cert_path = "./work/token-cert-chain.pem" | ||
|
||
[as_config.rvps_config] | ||
store_type = "LocalFs" | ||
remote_addr = "" | ||
|
||
[policy_engine_config] | ||
policy_path = "./data/policy_1.rego" | ||
policy_path = "./work/kbs-policy.rego" |
8 changes: 4 additions & 4 deletions
8
kbs/test/data/e2e/resource-kbs.toml → kbs/test/config/resource-kbs.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
sockets = ["127.0.0.1:50002"] | ||
auth_public_key = "./kbs.pem" | ||
auth_public_key = "./work/kbs.pem" | ||
insecure_http = true | ||
|
||
[attestation_token_config] | ||
attestation_token_type = "CoCo" | ||
trusted_certs_paths = ["./ca-cert.pem"] | ||
trusted_certs_paths = ["./work/ca-cert.pem"] | ||
|
||
[repository_config] | ||
type = "LocalFs" | ||
dir_path = "./data/repository" | ||
dir_path = "./work/repository" | ||
|
||
[policy_engine_config] | ||
policy_path = "./data/policy_1.rego" | ||
policy_path = "./work/kbs-policy.rego" |
Empty file.