output "log_bucket" { description = "Where the organisation-wide matches are kept." value = google_logging_project_bucket_config.insider.id } output "verify" { description = "The drills, one per alert." value = <<-EOT Sharing: in a test project, grant allUsers roles/storage.objectViewer on a test bucket, then remove it. "Insider: shared-publicly" fires within minutes. gcloud storage buckets add-iam-policy-binding gs:// --member=allUsers --role=roles/storage.objectViewer gcloud storage buckets remove-iam-policy-binding gs:// --member=allUsers --role=roles/storage.objectViewer Bulk read, in a bucket in one of sensitive_projects, with bulk_read_threshold set low for the drill: gcloud storage cp -r gs:// /tmp/drill "Insider: bulk-read" fires within about ten minutes and names you in metric.label.principal. Put bulk_read_threshold back afterwards. To read the entries, open Logs Explorer in ${var.security_project}, choose Refine scope, then Scope by storage, and pick the insider buckets. EOT }