Skip to content

fix: a read of the house does not hand over a file that keeps a secret - #151

Merged
rodrigoteamx merged 1 commit into
mainfrom
fix/a-read-does-not-hand-over-a-secret
Oct 8, 2026
Merged

rodrigoteamx merged 1 commit into
mainfrom
fix/a-read-does-not-hand-over-a-secret

Conversation

@rodrigoteamx

Copy link
Copy Markdown
Contributor

A reading operation of this package is given to a session, and it
returned a slice of any file inside the app root. Inside the root sit
the files where a house keeps a secret: its environment file and the
family beside it (any name beginning .env), the envelope a declared
key is written to, and Composer's credentials. A secret has one place
to live, and that is not the answer to a read.

A read now withholds any path that IS one of those files or ENDS in one
of them — a copy a trial kept under var/trials/<id>/copy/ is the same
secret — matched by the tail of the path, without regard to case. A
file that only resembles one (a secrets.json outside .milpa, an
auth.json with a suffix, a committed .env template) reads as always,
and no refusal carries the value.

Coordinated disclosure: getmilpa/devtools GHSA-wfm7-r7x9-2r79, paired
with getmilpa/app-runtime GHSA-qjrx-c9gx-h25h. Release before the
app-runtime patch that requires this version.

A reading operation of this package is given to a session, and it
returned a slice of any file inside the app root. Inside the root sit
the files where a house keeps a secret: its environment file and the
family beside it (any name beginning «.env»), the envelope a declared
key is written to, and Composer's credentials. A secret has one place
to live, and that is not the answer to a read.

What a secret file is is named in one place, and a read withholds any
path that is one of them or ends in one of them — a copy a trial kept
under var/trials/<id>/copy/ is the same secret, and a house that has
not discarded its old trials still holds it. The match ignores case, so
a case-insensitive filesystem cannot reach one by its upper-case name.
A file that only resembles one — a secrets.json outside .milpa, an
auth.json with a suffix, a committed «.env» template (.env.example,
.env.dist, .env.template, .env.sample) — reads as always, and no
refusal carries the value.
@rodrigoteamx
rodrigoteamx merged commit 685e387 into main Oct 8, 2026
2 checks passed
@rodrigoteamx
rodrigoteamx deleted the fix/a-read-does-not-hand-over-a-secret branch October 8, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant