Skip to content

Commit

Permalink
kbs_protocol: update kbs config for test_client
Browse files Browse the repository at this point in the history
Due to the EAR PR, the configuration file format has been changed a
little. This patch updates the KBS configuration file to include the
latest EAR checking logic.

Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
  • Loading branch information
Xynnn007 committed Nov 28, 2024
1 parent ad8fd97 commit 4709f0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions attestation-agent/kbs_protocol/test/kbs-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ policy_path = "/opa/confidential-containers/kbs/policy.rego"
[attestation_service]
type = "coco_as_builtin"
work_dir = "/opt/confidential-containers/attestation-service"
policy_engine = "opa"
attestation_token_broker = "Simple"

[attestation_service.attestation_token_config]
duration_min = 5
[attestation_service.attestation_token_config]
type = "Ear"
duration_min = 5

[attestation_service.rvps_config]
type = "BuiltIn"
store_type = "LocalFs"
[attestation_service.rvps_config]
type = "BuiltIn"
store_type = "LocalFs"

[admin]
insecure_api = true
Expand Down
2 changes: 1 addition & 1 deletion attestation-agent/kbs_protocol/test/policy.rego
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package policy
default allow = false

allow {
input["tee"] == "sample"
input["submods"]["cpu"]["ear.veraison.annotated-evidence"]["sample"]
}

0 comments on commit 4709f0e

Please sign in to comment.