Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions crates/aqua-registry/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ pub struct AquaCosignSignature {
#[derive(Debug, Deserialize, Clone)]
pub struct AquaCosign {
pub enabled: Option<bool>,
pub experimental: Option<bool>,
pub signature: Option<AquaCosignSignature>,
pub key: Option<AquaCosignSignature>,
pub certificate: Option<AquaCosignSignature>,
Expand Down Expand Up @@ -684,9 +683,6 @@ impl AquaCosign {
if let Some(enabled) = other.enabled {
self.enabled = Some(enabled);
}
if let Some(experimental) = other.experimental {
self.experimental = Some(experimental);
}
if let Some(signature) = other.signature.clone() {
if self.signature.is_none() {
self.signature = Some(signature.clone());
Expand Down
26 changes: 0 additions & 26 deletions src/backend/aqua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,32 +812,6 @@ impl AquaBackend {
}
}
}
} else if cosign.experimental == Some(true) {
// Keyless verification with experimental mode
// This would need to download the signature/bundle from a default location
let sig_or_bundle_path = checksum_path.with_extension("bundle");
if sig_or_bundle_path.exists() {
match sigstore_verification::verify_cosign_signature(
checksum_path,
&sig_or_bundle_path,
)
.await
{
Ok(true) => {
ctx.pr.set_message(
"✓ Cosign keyless verification successful".to_string(),
);
debug!("Cosign keyless verification successful for {tv}");
}
Ok(false) => {
return Err(eyre!("Cosign keyless verification failed for {tv}"));
}
Err(e) => {
// If keyless fails, it might not have the bundle, which is OK
debug!("Cosign keyless verification not available for {tv}: {e}");
}
}
}
}
}
Ok(())
Expand Down
Loading