[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
Maintainer thường phản hồi trong vòng 1 ngày
@prince-pokharna đang làm issue này rồi.
Từ ngày 22/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.propertieswith asecrets.defaults.properties.templatethat 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=notTMDB_API_KEY=your_key_here). - Add a Gradle
checktask or a pre-commit hook that validatessecrets.propertiesis not staged for commit — similar to the pattern used by thegoogle-services.jsongitignore convention. - Add a
## Local Secrets Setupsection to the README explicitly warning: "Do not renamesecrets.defaults.propertiestosecrets.properties. Copy it instead. The defaults file is public;secrets.propertiesis gitignored." - Verify
.gitignorecoverssecrets.properties(it does per README),google-services.json, and any generatedkeystore.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.
- Ngôn ngữ chính
- Kotlin
- Star
- 760
- Fork
- 122
- Merge trung bình
- 14 giờ 17 phút
- Pull request đã merge (30 ngày)
- 63
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ProdigyV21/ARVIO
-
Web Sources crash: non-string stream fields can trigger `t.trim is not a function`Có thể đã có người làm @petomalik6-duda đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ProdigyV21/ARVIO#856 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: web type:feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
ProdigyV21/ARVIO#444 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ProdigyV21/ARVIO#367 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
ProdigyV21/ARVIO#857 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type:feature
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
ProdigyV21/ARVIO#851 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ProdigyV21/ARVIO
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
AChep/keyguard-app#1665 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openai/openai-java#1337 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement impact:U1 P3 reach:R2 size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
thtbee/nectarlink#196 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sentry-loop
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
paritytech/trinity-user-agents#1890 ·
Maintainer thường phản hồi trong vòng 1 ngày