mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-02 17:34:18 +00:00
Merge pull request #3828 from liangzhou121/agent-aa-1
CCv0: Update AA's launch command
This commit is contained in:
@@ -41,7 +41,8 @@ const SKOPEO_PATH: &str = "/usr/bin/skopeo";
|
|||||||
const UMOCI_PATH: &str = "/usr/local/bin/umoci";
|
const UMOCI_PATH: &str = "/usr/local/bin/umoci";
|
||||||
const IMAGE_OCI: &str = "image_oci";
|
const IMAGE_OCI: &str = "image_oci";
|
||||||
const AA_PATH: &str = "/usr/local/bin/attestation-agent";
|
const AA_PATH: &str = "/usr/local/bin/attestation-agent";
|
||||||
const AA_PORT: &str = "127.0.0.1:50000";
|
const AA_KEYPROVIDER_PORT: &str = "127.0.0.1:50000";
|
||||||
|
const AA_GETRESOURCE_PORT: &str = "127.0.0.1:50001";
|
||||||
const OCICRYPT_CONFIG_PATH: &str = "/tmp/ocicrypt_config.json";
|
const OCICRYPT_CONFIG_PATH: &str = "/tmp/ocicrypt_config.json";
|
||||||
const OCI_ANNOTATION_REF_NAME: &str = "org.opencontainers.image.ref.name";
|
const OCI_ANNOTATION_REF_NAME: &str = "org.opencontainers.image.ref.name";
|
||||||
const OCI_IMAGE_MANIFEST_NAME: &str = "application/vnd.oci.image.manifest.v1+json";
|
const OCI_IMAGE_MANIFEST_NAME: &str = "application/vnd.oci.image.manifest.v1+json";
|
||||||
@@ -383,7 +384,7 @@ impl ImageService {
|
|||||||
let ocicrypt_config = serde_json::json!({
|
let ocicrypt_config = serde_json::json!({
|
||||||
"key-providers": {
|
"key-providers": {
|
||||||
"attestation-agent":{
|
"attestation-agent":{
|
||||||
"grpc":AA_PORT
|
"grpc":AA_KEYPROVIDER_PORT
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -395,8 +396,10 @@ impl ImageService {
|
|||||||
|
|
||||||
// The Attestation Agent will run for the duration of the guest.
|
// The Attestation Agent will run for the duration of the guest.
|
||||||
Command::new(AA_PATH)
|
Command::new(AA_PATH)
|
||||||
.arg("--grpc_sock")
|
.arg("--keyprovider_sock")
|
||||||
.arg(AA_PORT)
|
.arg(AA_KEYPROVIDER_PORT)
|
||||||
|
.arg("--getresource_sock")
|
||||||
|
.arg(AA_GETRESOURCE_PORT)
|
||||||
.spawn()
|
.spawn()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user