Skip to content

Commit

Permalink
Add cors config to enclave CLI (#168)
Browse files Browse the repository at this point in the history
* Add cors config to enclave CLI

* Fix missing bracket after rebase

* Add missing field

* Fix tests

* Format

* remove unneeded file
  • Loading branch information
donaltuohy authored Jan 9, 2025
1 parent 15f702f commit 8079c08
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 14 deletions.
5 changes: 5 additions & 0 deletions crates/common/src/enclave/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ impl CleanUpMode {
}
}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct AttestationCors {
pub origin: String,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct EIFMeasurements {
#[serde(rename = "HashAlgorithm")]
Expand Down
1 change: 1 addition & 0 deletions crates/ev-cli/src/commands/enclave/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ impl std::convert::From<InitArgs> for EnclaveConfig {
trusted_headers: convert_comma_list(val.trusted_headers).unwrap_or_default(),
healthcheck,
service: val.port.map(ServiceSettings::new),
attestation_cors: None,
}
}
}
Expand Down
Loading

0 comments on commit 8079c08

Please sign in to comment.