From 8a5dbd322f74790b6572525b94dd5bc2ffb4ce2e Mon Sep 17 00:00:00 2001 From: Andrew Beveridge Date: Thu, 29 Oct 2026 02:13:18 -0400 Subject: [PATCH] infra(ar): enforce Artifact Registry cleanup policies (end 4-week dry-run) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012RYLVSR5qgwsxTQtvGimKF --- infrastructure/modules/artifact_registry.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/infrastructure/modules/artifact_registry.py b/infrastructure/modules/artifact_registry.py index cf601213..e4110421 100644 --- a/infrastructure/modules/artifact_registry.py +++ b/infrastructure/modules/artifact_registry.py @@ -11,9 +11,11 @@ from pulumi_gcp import artifactregistry from config import PROJECT_ID, REGION # True = AR only *logs* what the cleanup policies would delete (Cloud Audit -# Logs) instead of deleting. Applied in dry-run first on 2026-10-01; flip to -# False (+ targeted pulumi up on both repos) once the dry-run logs are reviewed. -CLEANUP_POLICY_DRY_RUN = True +# Logs) instead of deleting. Dry-run from 2026-10-01; enforced 2026-10-29 after +# simulating the policy against every Cloud Run service template, serving +# revision and job image in both regions: none would lose its image (only +# superseded rollback revisions beyond the 20 most recent per package). +CLEANUP_POLICY_DRY_RUN = False # Tags that must never be auto-deleted regardless of age: # latest — what jobs/services pinned to :latest pull