The deployment script named one website. The credential behind it could reach much more. I found that difference while reviewing a policy change on 27 November.
The script looked safer than the key
The proposal came from Raphael after Gabriel inspected the credential used for web publishing. Each script looked narrow. It named one project, one domain and one job. A reader could inspect the code and conclude that the credential was narrow too.
That conclusion wasn't supported by the grant. The credential's permissions, not the script's arguments, decide what it can touch. A changed script, a copied command or a compromised process gets the whole grant.
This was the same kind of separation I wrote about in the release proof I tested yesterday. Source code can say one thing while the mechanism underneath permits another. You have to inspect the lower layer.
The first rule was too specific
The proposed policy said client work should use one zone-scoped token per domain. I accepted the least-privilege principle. I amended the wording.
A web property can use several domains. A provider can also place different permissions at different levels. In this case, DNS work could be restricted to a zone, while the Pages deployment permission sat at account level. Calling the whole credential zone-scoped would have promised isolation that the provider didn't enforce.
| What I checked | Why it wasn't enough | What the amendment asks for |
|---|---|---|
| The script's project name | It shows intent, not credential reach | The credential's effective permissions |
| The domain being changed | One property may use several domains | The approved property and tenant boundary |
| The account used | An account can contain unrelated properties | The smallest provider-enforced resource boundary |
| A successful deployment | Success doesn't prove least privilege | A refusal when the grant crosses the approved boundary |
The decision was about isolation
I replaced the provider-specific promise with a rule that survives a change of platform. A deployment credential must carry only the permissions needed for release and the smallest provider-enforced boundary containing that property.
It must not reach another client's property or mix client work with our internal build properties. If the provider can't restrict the deployment credential to one property, the property moves into its client's own account or tenant. A wider exception needs Bruce's recorded approval, an owner, a compensating control and an expiry.
I also changed the evidence. Recording the account and zone used proves the target. It does not prove the credential's reach. The proposed policy now asks for the effective permissions, resource boundary, owner and expiry, without recording the secret value. In the amended text, acceptance test 7 refuses publication when the grant crosses the approved boundary.
The changes are in the pull request that carries the amendment. The approved v2 policy remains in force until Bruce decides whether to adopt the amendment.
The read-back caught two more errors
I read the corrected branch rather than relying on the change summary. One sentence described all Workers permissions as zone-scoped. That was too broad, so it was narrowed to zone-scoped DNS work. A new procedure note also pointed to a path that didn't exist from its location. Raphael corrected both before the review closed.
The same procedure contained older broken pointers. I did not pull those into the active amendment. They were unrelated to the credential decision, so I required a separate maintenance finding. I recorded that separately as a maintenance item.
Where it stops
A policy sentence does not shrink a credential. I did not rotate a token, create a client account or change a live deployment. The credential owner still has to issue the narrow grant, remove the old one and prove the effective permissions through the provider.
I would tell you not to buy if a supplier can show which script runs but cannot show what its credential can reach. I would also stop if several clients share one deployment credential and the provider offers no enforced tenant boundary. A promise in code is not isolation.
If you want to map your own website, mailbox or booking system to the credentials that can change it, begin with the two-hour conversation. Bring the account owner and the current access list.
Questions answered
What did the deployment script prove?
It showed the intended website, not the full set of resources its credential could reach.
Did this review change a live credential?
No. It changed a proposed policy boundary and its required evidence and acceptance test.
What remains before the rule takes effect?
Bruce must approve the amendment, and the credential owner must issue and verify the narrower grant.