output "bucket" { description = "Where evidence goes." value = google_storage_bucket.evidence.name } output "capture" { description = "Set these, then run capture.sh from the Standard (t1) folder." value = <<-EOT export PROJECT=${var.project_id} CLUSTER=${var.cluster} LOCATION=${var.cluster_location} EVIDENCE_BUCKET=${google_storage_bucket.evidence.name} ./capture.sh EOT } output "verify" { description = "Checks, on a test pod you do not mind isolating." value = <<-EOT Run the capture command above against a test pod, then: gcloud storage ls gs://${google_storage_bucket.evidence.name}// # pod.json, images.tsv, logs, events, capture.log, each with a .sha256 gcloud compute snapshots list --project ${var.project_id} --filter="labels.incident=" kubectl get pod -n --show-labels # quarantine=true gcloud storage rm gs://${google_storage_bucket.evidence.name}////pod.json # refused: retention, and responders cannot delete Download the folder with an account that can read it, then run evidence-verify on it. EOT }