Skip to content

Keep the storage browser out of containers holding secrets - #348

Merged
dfe-lance merged 1 commit into
mainfrom
346-storage-browser-secret-containers
Aug 25, 2026
Merged

Keep the storage browser out of containers holding secrets#348
dfe-lance merged 1 commit into
mainfrom
346-storage-browser-secret-containers

Conversation

@dfe-lance

@dfe-lance dfe-lance commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The blob browser applied no container filtering. The storage-admin section grant decides who may open it; nothing decided what it could reach. So an administrator could browse to the container holding the Data Protection keyring and read it — and the keyring protects authentication cookies, session state and antiforgery tokens, so reading it allows those to be decrypted, replacing it allows them to be forged, and deleting it invalidates every one of them at once.

Confirmed on the running stack before changing anything: the container was listed alongside ordinary application data, the preview pane rendered the key descriptors inline, and the download route returned the keyring as XML. Two further routes were open by inspection — delete, and upload, which is the worst of the set because a replacement keyring lets tokens be minted rather than merely read.

One deny-list, consulted at a single choke point, before any route resolves a container. A protected container is refused for listing, reading, writing and deleting alike, rather than six separate guards that drift apart, and the refusal comes before the blob is touched — a blob that is opened and then withheld has still been opened. Protected containers are also omitted from the listing entirely: refusing the routes while still naming the container advertises where the keyring lives.

404 rather than 403, matching what a non-granted admin section already returns. The list is configuration with the keyring as its built-in default, so a future secret container is covered by a setting rather than a release, and an environment that binds nothing is still protected.

Moving the keyring to Key Vault is the stronger fix and is separate work. This is about the application not serving its own secrets. Whether the keyring needs rotating depends on whether the browser has been reachable in a deployed environment by anyone outside the team, which is the service owner's call.

Closes #346

The blob browser applied no container filtering. The storage-admin section
grant decides who may open it; nothing decided what it could reach. So an
administrator could browse to the container holding the Data Protection
keyring and read it — and the keyring protects authentication cookies, session
state and antiforgery tokens, so reading it allows those to be decrypted,
replacing it allows them to be forged, and deleting it invalidates every one of
them at once.

Confirmed on the running stack before changing anything: the container was
listed alongside ordinary application data, the preview pane rendered the key
descriptors inline, and the download route returned the keyring as XML. Two
further routes were open by inspection — delete, and upload, which is the worst
of the set because a replacement keyring lets tokens be minted rather than
merely read.

One deny-list, consulted at a single choke point, before any route resolves a
container. A protected container is refused for listing, reading, writing and
deleting alike, rather than six separate guards that drift apart, and the
refusal comes before the blob is touched — a blob that is opened and then
withheld has still been opened. Protected containers are also omitted from the
listing entirely: refusing the routes while still naming the container
advertises where the keyring lives.

404 rather than 403, matching what a non-granted admin section already returns.
The list is configuration with the keyring as its built-in default, so a future
secret container is covered by a setting rather than a release, and an
environment that binds nothing is still protected.

Moving the keyring to Key Vault is the stronger fix and is separate work. This
is about the application not serving its own secrets. Whether the keyring needs
rotating depends on whether the browser has been reachable in a deployed
environment by anyone outside the team, which is the service owner's call.

Refs #346
@dfe-lance dfe-lance self-assigned this Aug 24, 2026
@dfe-lance dfe-lance added bug Something isn't working deploy tech-debt labels Aug 24, 2026
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

Review app for PR 348 was deleted

@dfe-lance
dfe-lance merged commit 8c80b35 into main Aug 25, 2026
15 checks passed
@dfe-lance
dfe-lance deleted the 346-storage-browser-secret-containers branch August 25, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working deploy tech-debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin storage browser exposes the Data Protection keyring

2 participants