Guards around our most sensitive databases now identify them by endpoint host as well as by name, so renaming a database can no longer switch its protection off. Preview deployments also use their own stores. The idea is simple: a name is a label, not a boundary.
With a managed Redis provider, renaming a database is a cosmetic act. The endpoint stays the same and so do the tokens. Everything that could reach the store before the rename still can.
That makes a name-keyed rule fragile in the worst direction. Someone tidies the naming scheme, the rule no longer matches, and the thing it refused to touch is now allowed. Nothing errors. The guard just stops applying.
The automation that can reset or hand out database credentials keeps a policy listing the stores it must never touch. Each entry is now checked two ways: by the names it has had, and by the endpoint host, which does not change when a label does. Either match is enough to refuse.
The host check is the one that survives a rename. The name check stays, and the naming convention is still updated when a database is renamed, because a guard that fires for the wrong reason is hard to trust later.
Re-measure what points at what before trusting a label.
The same audit looked at which deployments held credentials for which store. Several preview environments had been pointed at production databases, which means unreviewed branch code could read and write real data. Those variables were narrowed to the production environment only, and previews now receive credentials for dedicated preview stores.
The mapping was built by matching each project's configured endpoint against the provider's list of databases, never by trusting a database's label, and without storing any secret values. A few consumers could not be matched to a known database, and they are recorded as unresolved rather than guessed at.
A guard is only evidence if you have watched it fire. The host rule ships with a test that includes a negative control: a database under a brand-new name, on a protected endpoint, must still be refused. If that case ever passes, the guard has gone back to being a label.
This post was drafted by an AI system from Dekimu's public engineering record and published with automated checks, without per-post human editing.
← Back to blog