A deploy-freeze policy in most B2B SaaS shops lives as an unwritten understanding: “we don’t deploy on Friday afternoons” and “nothing ships during the customer’s renewal window.” Then the senior engineer takes vacation, a junior ships a “small” change on a Friday at 16:00, and the next four hours are spent triaging a regression that should never have made it out the door. Writing the policy down is not bureaucracy — it is the artifact that lets a team enforce the unwritten rules when the person who knew them isn’t in the room.
What’s happening
A deploy-freeze policy has three components that have to be written explicitly:
- Time windows — when freezes apply by default. Friday afternoons, holiday weekends, customer-driven windows, the last week of a quarter for a public-company customer.
- Scope — what counts as a deploy. Application code, database migrations, infrastructure changes (DNS, load balancer config, certificates), feature flags. Each has a different risk profile and each may have a different freeze rule.
- Override authority — who can authorize a freeze-window deploy, and what evidence is required. Without an explicit override path, the freeze is either ignored under pressure or holds up genuine emergencies that should ship.
The failure mode of a policy without these three explicit is that every freeze-window decision becomes an ad-hoc conversation, the rules drift, and the senior engineer becomes the bottleneck on every weekend incident. A written policy with a named override authority and documented criteria removes the ambiguity.
How to verify
Two checks on an existing policy:
# 1. Is the policy actually accessible without senior intervention?
# A new engineer should be able to read the policy and know whether their change
# requires an override. If they have to ask the senior, the policy isn't written.
find . -iname "deploy-freeze*" -o -iname "release-policy*" -o -iname "freeze-policy*"
# 2. Is the override path technically enforced or honor-based?
# Honor-based policies degrade. Look for a deploy pipeline that actually blocks
# pushes to production during freeze windows unless a documented override is present.
grep -r "freeze_window" .github/workflows/ buildkite/ .gitlab/
If the policy isn’t written down, or it’s written down but unenforced in the deploy pipeline, it is operating on goodwill — and goodwill ends in the third quarter, when shipping pressure rises and the engineer making the call doesn’t know whose authority backs them.
The fix
A template policy structured for a B2B SaaS that runs business hours plus monitoring. Adjust the times for your customer profile.
Time windows
Default freeze windows where deploys to production are paused unless an override applies:
- Daily — 17:00 Friday through 09:00 Monday, local business time of the highest-impact customer cohort.
- Daily — 18:00 through 07:00 weeknights, for production changes that touch user-facing endpoints.
- Customer windows — the customer-flagged renewal window, plus any customer-named change-freeze period (typically end-of-month, end-of-quarter for finance customers).
- Internal windows — last 2 weeks of a calendar quarter for the team’s revenue-critical customer, the week before and after a major company announcement, and a documented holiday list.
Document the windows in calendar form, not prose. A team that has to interpret prose under pressure interprets it wrong.
Scope by change type
Not every change type sits in the same risk bucket. A workable scoping that we use:
| Change type | Default freeze applies? | Override level |
|---|---|---|
| Application code, customer-facing endpoint | Yes | Senior engineer + documented incident or revenue case |
| Application code, internal-only | No | Self-approved with peer review |
| Database migration, customer data tables | Yes | Senior engineer plus on-call senior present at deploy |
| Database migration, audit/log tables | Yes during business hours of affected region | Senior engineer |
| Infrastructure (DNS, LB, certs) | Yes | Senior engineer; revert plan attached to ticket |
| Feature flag, dark-launched code | No | Self-approved if flag is OFF in production |
| Feature flag rollout, gradual | Yes (during freeze) | Senior engineer; rollback flag documented |
| Security patch, critical CVE | Override always available | Senior engineer documents and proceeds |
The point of the table is that not every change type pays the same freeze tax. Internal tools and dark-launched code can ship freely. Customer-facing endpoint changes and irreversible migrations cannot.
Override authority and required evidence
Two roles can authorize an override:
- Senior engineer on rotation for any technical override. They sign off in the change ticket with a written justification (severity, blast radius, rollback plan).
- CTO/founding engineer for any business-driven override that overrules the technical concern. They acknowledge the risk in writing in the same ticket.
The override is not the end of the process. Every override is reviewed at the next ops sync, against the outcome of the deploy. Repeated overrides for the same change class signal a policy mismatch — either the freeze is too aggressive, or the change class is the wrong scope.
Enforcement in the pipeline
The freeze should be enforced where deploys happen, not as a Slack reminder. A minimal enforcement pattern:
# Deploy script, run before any production push
#!/usr/bin/env bash
set -euo pipefail
WINDOW=$(date +%u-%H) # day-of-week 1-7, hour 00-23
NOW_FRIDAY_LATE=$( [[ "$WINDOW" =~ ^5-(1[7-9]|2[0-3])$ ]] && echo "yes" )
NOW_WEEKEND=$( [[ "$WINDOW" =~ ^(6|7)- ]] && echo "yes" )
if [[ "$NOW_FRIDAY_LATE" == "yes" || "$NOW_WEEKEND" == "yes" ]]; then
if [[ -z "${FREEZE_OVERRIDE:-}" ]]; then
echo "Deploy blocked: freeze window active."
echo "Set FREEZE_OVERRIDE=<ticket-id> with senior approval to proceed."
exit 1
fi
echo "Override accepted: $FREEZE_OVERRIDE"
fi
# Proceed with deploy
A 20-line shell check at the front of the deploy pipeline is more enforcement than most teams have. Pair it with a ticket reference that the override must point at, and the audit trail is automatic.
The policy is a draft for the first quarter, just like the on-call rotation. The first override request that surprises you tells you a missing rule; the first deploy that should have been blocked but wasn’t tells you a missing scope. Revise the policy at each retro until it stops surprising the team.
Stack Harbor writes and operates deploy-freeze policies as part of Deployment Management. If your team has informal freeze rules that don’t survive commercial pressure, we can put a written policy and enforcement in place.