Skip to content

fix(repo): a scratch local-config copy reached a public repo; widen the pattern - #337

Merged
stellarfeline merged 1 commit into
mainfrom
fix/local-config-gitignore
Aug 8, 2026
Merged

fix(repo): a scratch local-config copy reached a public repo; widen the pattern#337
stellarfeline merged 1 commit into
mainfrom
fix/local-config-gitignore

Conversation

@stellarfeline

Copy link
Copy Markdown
Owner

delvewright.local.toml_test — a scratch copy made while testing the refimg provider — was committed in #334 and is on public main. .gitignore matched only the exact name, so any suffixed variant fell through.

No key leaked, by design rather than by luck. The local config names an environment variable (api_key_env), never a value — so the worst a committed copy can disclose is a variable name, a model name and an aspect ratio. Audited rather than assumed: this is the only matching path ever added to the repo (#334's branch commit and its squash on main), and no key-shaped literal appears in any .toml/.json/.py across the last 200 commits.

File removed; pattern widened to delvewright.local.toml* so the next scratch copy is ignored instead of merged. Verified with git check-ignore on both the bare name and the suffixed one.

…he pattern

`delvewright.local.toml_test` — a scratch copy made while testing the
refimg provider — was committed in #334 and is on public `main`.
`.gitignore` matched only the exact name `delvewright.local.toml`, so any
suffixed variant fell straight through.

NO KEY LEAKED, and that is a property of the design rather than of luck:
the file names an ENVIRONMENT VARIABLE (`api_key_env`), never a value, so
the worst a committed copy can disclose is a variable name and an aspect
ratio. History audited to confirm it, not assumed — this is the only
matching path ever added (#334's branch commit and its squash), and no
key-shaped literal appears in any .toml/.json/.py across the last 200
commits.

The file is removed and the pattern widened to `delvewright.local.toml*`,
so the next scratch copy is ignored instead of merged.
@stellarfeline
stellarfeline merged commit d900f9c into main Aug 8, 2026
12 checks passed
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