RealDevSquad / RealDevSquad/Pulse-App
Remove sensitive secrets and keys from logs and CI output
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Summary
Several scripts log secrets and sensitive credential material to the console. If run in CI or artifacts are uploaded, logs may disclose private keys, service account credentials, or other secure values.
Affected files:
scripts/convert-key.ts: prints entire JWT key (public/private)scripts/test-firestore.ts: logs service account details- Any other scripts reading env and logging values
Recommendations
- Remove all console.log statements outputting actual secret or credential content.
- Replace with logging only length, SHA256/MD5 hash, or masked versions for debug.
- If you must debug key handling, log to a local file that is .gitignored and not uploaded, never in CI.
- Audit scripts before PR approval for secret outputs.
Severity: High (Do not run these scripts in CI/CD environments until this is resolved)
Example safer log pattern:
console.log(`Loaded JWT key (length: ${publicKey.length})`);
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing scripts/convert-key.ts and scripts/test-firestore.ts for console output containing keys or service-account details, then inspect other scripts that read environment variables. Done means no logs or CI artifacts expose secret or credential content; verify debug output is limited to safe metadata such as length or masking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ci-cd, security, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100