chore(maestro): retire the certificates and delete the orphans #8115
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 568 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.380
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8115"
general
weight: 0.35
machi1990
Jira: AROSLSRE-2804 and AROSLSRE-2805
What
Two halves of one outcome: stop creating Maestro certificates, and remove the ones already issued.
Stop creating.
Removes Maestro from the deployment, now that its workload is retired:
maestro-server-certandmaestro-consumer-certsteps, andmaestro-postgres-access, from the service and management pipelines.maestro-server.bicep, and deletesmaestro-eventgrid-access.bicep.maestro-consumer.bicep, whose only purpose was the consumer Event Grid client, and removes its module frommgmt-cluster.bicep..bicepparamfiles.Remove the orphans. Adds
dev-infrastructure/scripts/maestro-cert-cleanup, a Go tool in the style ofpostgres-access, and runs it from both pipelines.inspectlists the certificates matching a name allowlist, with version and expiry.applywithCLEANUP_DRY_RUN=truereports the deletes it would perform and writes an evidence line per certificate.applywith the dry run off deletes them, leaving the normal Key Vault recovery window.Deletion alone would be pointless while the create steps exist, and removal alone leaves the STG and PROD objects renewing through
AutoRenew. That is why they ship together.Why
Maestro is retired in code, but its certificate steps kept running, so every deployment issued certificates for a service with no runtime. Removing those steps alone broke provisioning:
maestro-server.bicepandmaestro-consumer.bicepdeclared the client certificate as an existing Key Vault secret, so ARM failed withResourceNotFoundon themaestro-serverandmaestro-consumerdeployments. This change removes the certificate dependency so the templates deploy without it.What stays
maestro.*configuration keys remain where the remaining templates still consume them.Not in this change
Azure deployments are incremental, so removing a module stops ARM managing those resources; it does not delete them. The Event Grid namespace and its clients, the Postgres server, the private endpoint and the Key Vault grants all stay in every existing environment. Deleting them is a deployment stack migration tracked in AROSLSRE-2806, and in STG and PROD it is behind the current embargo.
The two regional workloads that provision Maestro Event Hubs and diagnostic settings remain, because they do not depend on the certificate. Removing them, and the empty
maestro/serverchart and its service group, is a separate follow-up.Testing
bicep buildonsvc-cluster.bicep,mgmt-cluster.bicepandregion.bicepsucceeds with no errors and no unused-parameter warnings from the touched files.ci/prow/e2e-parallelfailed withResourceNotFoundagainst themaestro-serverandmaestro-consumerARM deployments, which is the failure this commit addresses. A fresh run is the proof.Special notes for your reviewer
svc-pipeline.yamlandmgmt-pipeline.yaml. It only deletes steps, modules and parameters. No downloads, scripts, credentials or new execution surface.maestro/serverchart and its service group are left in place. They deploy nothing, and removing them is a separate change from this one..claude/,.vscode/, workflow, Dockerfile or script changes.PR Checklist