PehromGroup
The key stays on the server
Anything a page loads can be read by the person reading the page. That is not a flaw to fix; it is what a browser is. So the payment key, the database password and the signing secret are never in the page, and the amount a person pays is never decided there either.
Published 18 November 2026
A bundle is a file anyone can open
Minifying a script does not hide what is in it. The address it calls, the value it sends and the token it carries are all visible in the network panel of any browser, in a text editor, or to anyone who saves the file. A secret in a bundle is not a secret; it is a published key with a private-sounding name.
This product therefore has no screen, endpoint or command that accepts, shows or stores a credential at run time. A key is changed by editing configuration and deploying again, which leaves a reviewable record of who changed it and when. That is slower than a settings box, and it is the reason a stolen login cannot be replaced by a stolen settings page.
The server decides the amount
A page sends an intention: this person wants this plan, for this period. The server checks who is asking, what that account may buy, what the price is today and whether the payment succeeded before it writes anything. The page renders the answer it is given; it does not compute a total and hope the server agrees.
The same rule covers permissions. A button that is not shown is a screen; a request that is refused is a boundary. A person who edits the page to reveal a hidden button still cannot make the server perform an act their role does not carry, and the refusal is recorded rather than silently swallowed.
What the page is allowed to run
The public site is served with a policy that names the scripts it may run. The export’s own inline scripts are hashed at deploy time, and a hash that does not match is a script that does not run. Two measurement services are named because the owner connected them; nothing else is allowed to load from a third address.
The policy also means a compromised advertisement or an injected snippet fails closed. It does not make a site safe on its own, and this page does not claim it does. It removes one whole class of accident, and it costs a deploy step that hashes the export each time the page changes.
What it costs, and what it refuses
The cost is round trips. A local check answers in a millisecond; a server check answers when the network does, so a page waits and says that it is waiting. The design accepts the wait because the alternative is a page that believes a number the server never confirmed.
It refuses a key in an app, a signing secret in a source map, a credential echoed in an error message and a log line that carries a token. Each of those is one line of convenience that turns a private system into a public one, and none of them is worth the line.
If a feature needs a secret, it needs the server. That sentence has saved more evenings than any checklist.
Start a conversation