← Back to Pull requests

chore(maestro): retire the certificates and delete the orphans #8115

Closed
unknown closed this pull request without merging on Nov 16, 2026 16:44 UTC
View on GitHub
unknown unknown commented on Nov 14, 2026 19:02 UTC
Author

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:

  • Drops the maestro-server-cert and maestro-consumer-cert steps, and maestro-postgres-access, from the service and management pipelines.

  • Removes the certificate access grant, the Key Vault secret lookup and the Event Grid client registration from maestro-server.bicep, and deletes maestro-eventgrid-access.bicep.

  • Deletes maestro-consumer.bicep, whose only purpose was the consumer Event Grid client, and removes its module from mgmt-cluster.bicep.

  • Removes the parameters that existed only to feed the removed code, from both templates and both .bicepparam files.
  • Remove the orphans. Adds dev-infrastructure/scripts/maestro-cert-cleanup, a Go tool in the style of postgres-access, and runs it from both pipelines.

  • inspect lists the certificates matching a name allowlist, with version and expiry.

  • apply with CLEANUP_DRY_RUN=true reports the deletes it would perform and writes an evidence line per certificate.

  • apply with 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.bicep and maestro-consumer.bicep declared the client certificate as an existing Key Vault secret, so ARM failed with ResourceNotFound on the maestro-server and maestro-consumer deployments. This change removes the certificate dependency so the templates deploy without it.

    What stays

  • Postgres, the managed identities and their federated credentials, and the Event Grid namespace and its clients all remain, both as resources and in the templates where they are still referenced.

  • 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/server chart and its service group, is a separate follow-up.

    Testing

  • bicep build on svc-cluster.bicep, mgmt-cluster.bicep and region.bicep succeeds with no errors and no unused-parameter warnings from the touched files.

  • The previous run of ci/prow/e2e-parallel failed with ResourceNotFound against the maestro-server and maestro-consumer ARM deployments, which is the failure this commit addresses. A fresh run is the proof.
  • Special notes for your reviewer

  • This changes CI/CD configuration: svc-pipeline.yaml and mgmt-pipeline.yaml. It only deletes steps, modules and parameters. No downloads, scripts, credentials or new execution surface.

  • The empty maestro/server chart and its service group are left in place. They deploy nothing, and removing them is a separate change from this one.

  • Security self-check: no .claude/, .vscode/, workflow, Dockerfile or script changes.
  • PR Checklist

  • PR is scoped to a single task (no mixed concerns)

  • Title follows Conventional Commits format

  • Summary explains the "Why" behind the change

  • Linked to relevant ticket/issue

  • Screenshots included (if dashboards or other UI changes)

  • Self-reviewed the diff

  • CI/CD checks are passing (ignore Tide)

  • Draft PR used for WIP (if applicable)

  • Commit history is clean (rebased/squashed)

  • Tricky code blocks are commented

  • Specific reviewers tagged

  • All comment threads resolved before merge
  • Diff: 568 lines (+426 / -142) across 7 files Reviewer: machi1990 Review duration: 2741m
    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
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 49.7% (MEDIUM) · Higher = larger blast radius
    49.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.7% · Safe to merge
    19.7%
    Repository