Skip to content

Security: adab-tech/bama-pickme

Security

SECURITY.md

Security: exposed credentials

GitHub flagged that API keys were visible in this public repository. Treat them as compromised until you rotate them.

Rotate immediately (Google Cloud / Firebase)

  1. Open Google Cloud Console → project bamapickme.
  2. APIs & Services → Credentials:
    • Restrict or delete the exposed Maps key (used in secrets.properties).
    • Restrict or delete the exposed Firebase Android key (was in google-services.json).
  3. Create new keys with:
    • Application restrictions (Android app + package com.example.bamapickme, or HTTP referrers for web).
    • API restrictions (only Maps SDK, Firebase APIs you use).
  4. In Firebase Console → Project settings → Your apps → download a new google-services.json into app/ (file is gitignored).
  5. Put the new Maps key in local secrets.properties and GitHub secret GOOGLE_MAPS_API_KEY (never commit the file).

Optional: GitHub Actions

# After you have a new google-services.json locally:
$json = Get-Content app\google-services.json -Raw
gh secret set GOOGLE_SERVICES_JSON --repo adab-tech/bama-pickme --body $json
gh secret set GOOGLE_MAPS_API_KEY --repo adab-tech/bama-pickme

Other keys to rotate (if ever committed or shared)

secrets.properties and app/google-services.json are gitignored going forward; use the .example templates only in git.

There aren't any published security advisories