[security] : secrets.defaults.properties is tracked in the repository — placeholder API keys committed to a public repo enable accidental credential exposure if a contributor copies the file and commits it with real values

Aperta
#438 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@prince-pokharna ci sta già lavorando.

Dal 22/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Labels: security, priority: high

Summary

secrets.defaults.properties is committed to the repository root. Per the README:

"Copy the defaults file and fill in real values: cp secrets.defaults.properties secrets.properties"

This workflow — copy a committed defaults file, fill in real credentials, use locally — is the most common pattern that leads to accidental secret commits. A contributor who misremembers that secrets.properties (not secrets.defaults.properties) is gitignored, or whose IDE auto-stages files, can easily commit real TMDB API keys, Trakt client secrets, or Supabase anon keys into a fork of this 544-star public repository.

Additionally, the defaults file itself may contain placeholder strings that some contributors copy verbatim into CI environment variables, producing silent failures that are hard to debug.

Proposed solution

  • Replace secrets.defaults.properties with a secrets.defaults.properties.template that contains only key names and inline comments describing where to obtain each credential — no placeholder values that look like real secrets (e.g. TMDB_API_KEY= not TMDB_API_KEY=your_key_here).
  • Add a Gradle check task or a pre-commit hook that validates secrets.properties is not staged for commit — similar to the pattern used by the google-services.json gitignore convention.
  • Add a ## Local Secrets Setup section to the README explicitly warning: "Do not rename secrets.defaults.properties to secrets.properties. Copy it instead. The defaults file is public; secrets.properties is gitignored."
  • Verify .gitignore covers secrets.properties (it does per README), google-services.json, and any generated keystore.properties.

I'd like to be assigned this issue. I'd scope the first PR as the template rename + README warning — fast, immediately protective for every future contributor.

Lingua principale
Kotlin
Stelle
760
Fork
122
Merge medio
15h 11m
PR unite (30g)
63

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ProdigyV21/ARVIO

Tutte le issue di ProdigyV21/ARVIO

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.