-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use `config` crate for configuration handling. - Use TOML as the canonical configuration format (JSON is still supported). - Consolidate all KBS config under a single KbsConfig struct. - Read all params except --config-file from a config file. - Refactor repository configuration. Consolidate all related properties under a new RepositoryConfig enum and express implementation-specific properties as structs rather than raw JSON. - Improve default handling for some types. - Provide config examples for the various attestation modes. - Reduce ambiguity by renaming multiple elements named "config" to more meaningful names. - Overhaul config.md to match new state. Add information about default values as well as feature flags. - Clean the coupling of crate::attestation::coco::grpc and the main module. grpc no longer depends on KbsConfig. - Pass explicit attestation configuration to Attest implementation constructors. - Update docker-compose and k8s files to match new config structure. Signed-off-by: Johanan Liebermann <[email protected]>
- Loading branch information
Showing
25 changed files
with
593 additions
and
327 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 @@ | ||
sockets = ["0.0.0.0:8080"] | ||
auth_public_key = "/opt/confidential-containers/kbs/user-keys/public.pub" | ||
insecure_http = true | ||
|
||
[grpc_config] | ||
as_addr = "http://as:50004" |
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,7 @@ | ||
insecure_http = true | ||
insecure_api = true | ||
|
||
[amber_config] | ||
base_url = "https://amber.com" | ||
api_key = "tBfd5kKX2x9ahbodKV1..." | ||
certs_file = "/etc/amber/amber-certs.txt" |
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,5 @@ | ||
insecure_http = true | ||
insecure_api = true | ||
|
||
[grpc_config] | ||
as_addr = "http://127.0.0.1:50004" |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
insecure_http = true | ||
insecure_api = true | ||
attestation_token_type = "CoCo" | ||
|
||
[repository_config] | ||
type = "LocalFs" | ||
dir_path = "/opt/confidential-containers/kbs/repository" | ||
|
||
[as_config] | ||
work_dir = "/opt/confidential-containers/attestation-service" | ||
policy_engine = "opa" | ||
rvps_store_type = "LocalFs" | ||
attestation_token_broker = "Simple" | ||
|
||
[as_config.attestation_token_config] | ||
duration_min = 5 | ||
|
||
[policy_engine_config] | ||
policy_path = "/opa/confidential-containers/kbs/policy.rego" |
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 was deleted.
Oops, something went wrong.
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,14 @@ | ||
sockets = ["0.0.0.0:8080"] | ||
auth_public_key = "/kbs/kbs.pem" | ||
# Ideally we should use some solution like cert-manager to issue let's encrypt based certificate: | ||
# https://cert-manager.io/docs/configuration/acme/ | ||
insecure_http = true | ||
|
||
[as_config] | ||
work_dir = "/opt/confidential-containers/attestation-service" | ||
policy_engine = "opa" | ||
rvps_store_type = "LocalFs" | ||
attestation_token_broker = "Simple" | ||
|
||
[as_config.attestation_token_config] | ||
duration_min = 5 |
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
Oops, something went wrong.