drone-cache
drone-cache copied to clipboard
drone-cache expose some secrets in debug mode
Describe the bug
Drone prints passed gcs.json-key
secret in the logs when debug
mode is enabled
To Reproduce Steps to reproduce the behavior:
- using current version
v1.1.0
, I passedgcs.json-key
as organization secret and enable debug mode.
Expected behavior
on debug mode or not, drone should never print a secret, and you will see in the screenshot that drone actually does this, it's only the json-key is printed.
Screenshots
Desktop (please complete the following information):
- OS: x86_64 Linux 5.8.1-arch1-1
@hacktron95 Wow 😮 Thanks for catching this.
@kakkoyun if you have a suggested approach, or you doubt something is causing this, please let me know, I might be able to solve it.
@hacktron95 If could find an obfuscator that would be the easiest. Otherwise, other than blindly logging data we should just manually select what we log.
@hacktron95 Do you still see secrets printed in logs when debug mode is enabled?