Going cowboy is when engineers bypass established processes, guardrails, or compliance gates to push code or infrastructure changes directly β often under pressure, urgency, or just to "get it done."
While it might seem faster in the moment, in a regulated environment (like finance) this creates high risk, including:
- β Bypassing required reviews (e.g., four-eyes principle).
- β Skipping compliance or audit checks.
- β Creating blind spots for regulators and security teams.
- β Potential fines or legal consequences if untracked changes are discovered.
The Platform Engineering team acts as the frontline shield protecting the company:
- π‘ Intercepts cowboy moves before they hit production.
- π‘ Automates compliance enforcement (GitHub rulesets, PR checks, Terraform policies).
- π‘ Provides visibility and creates an auditable trail for every change.
- π‘ Absorbs compliance overhead so product engineers can focus on shipping features β safely.
Goal: Developers feel like theyβre moving fast and free, while Platform ensures
they canβt break the law (or the infrastructure).
- Developer pushes a hotfix directly to
mainto fix a critical bug before market open. - Skips approvals and process steps.
- Commit message:
fix stuff real quick
Risks:
- β Violates four-eyes principle.
- β Missing incident/Jira references β audit gap.
- β Potential regulatory violation β fines or investigation.
-
GitHub workflow blocks the direct merge automatically.
-
Bot leaves a clear, actionable comment:
β βMerge blocked: Missing approval and incident reference.
Please link Jira ticket and ensure four-eyes review is completed.β -
Terraform policies or deployment pipeline reject non-compliant changes.
-
Every attempt is logged for audits, for example:
[2025-09-24 18:42:03] User=dev_a attempted merge to main β Blocked by rule: four-eyes-principle β Missing metadata: incident_id
@startuml
skinparam style strict
skinparam packageStyle rectangle
actor Developer as Dev
actor Regulator as Reg
rectangle "Platform Shield" {
[GitHub Ruleset] as GH
[CI/CD Pipeline] as CI
[Terraform Policies] as TF
}
Dev -> GH : Open Cowboy PR
GH --> Dev : β Blocked - Missing Approval
Dev -> GH : Adds Jira ID
GH -> CI : β
Pass Checks
CI -> TF : Apply Infrastructure
TF --> CI : β
Approved
CI -> Dev : π Deployed
Reg -> GH : Audit Logs Request
GH --> Reg : Audit Trail Export
@endumlGoing Cowboy: βMove fast and break laws.β
The Shield: βMove fast, stay safe, stay compliant.β