Skip to content
FIRERUN.

The BaaS & deploy-platform newsroom for builders

Subscribe

Firebase

Firebase CLI Stops Logging Secrets, but Old Debug Logs Keep Them

Search old Firebase debug logs, CI artifacts and bug reports for Secret Manager values. The Firebase CLI wrote them there until its Dec. 2 release.

Hand-drawn editorial illustration for "Firebase CLI Stops Logging Secrets, but Old Debug Logs Keep Them"

The Firebase CLI had been writing Secret Manager secret values into firebase-debug.log, and the fix only stops new leaks. Version 15.38.0, released Dec. 2, prevents secret values from being written to the debug log and to --debug output “when a secret is set or accessed” (Firebase CLI release notes, Dec. 2, 2026). Any log written by an older CLI still holds whatever it captured.

Key Takeaways

  • Before 15.38.0, setting or reading a Secret Manager secret through the CLI could put the value in firebase-debug.log and in --debug terminal output.
  • The value was base64-encoded, which anyone can decode.
  • Upgrade to 15.38.1, released Dec. 3. It restores the Windows, macOS and Linux standalone binaries that 15.38.0 shipped without.
  • functions:secrets:access and apphosting:secrets:access still print the secret by design, and that output still reaches the debug log.

What Changed

The cause sits in the CLI’s API client. “The API client logs request and response bodies at debug level unless the caller sets skipLog,” pull request #11629 said. Two Secret Manager calls in the CLI, addVersion (which writes a new secret version, as functions:secrets:set does) and accessSecretVersion (which reads one), didn’t set it. Their request and response bodies, which carry the secret, went into the log.

The pull request, titled “Keep secret values out of the debug log,” was merged on Dec. 2. Both calls now leave out the body and log only the URL and status, as the CLI already did for token and user import and export calls. The fix also closes a second path: when a request failed at the network level, the client logged the full request options even when the body was marked to be skipped. That path now drops the body too, which also covers OAuth token requests and auth:import.

The pull request says where that file ends up: “The file is kept after a --debug run or an unexpected error, and is often attached to bug reports.”

The same release fixes firebase deploy --only firestore:<database>:rules, which had been deploying a database’s indexes along with its rules, and updates hono to clear moderate-severity advisories. It follows 15.37.0 on Nov. 18, which patched critical and high-severity advisories in @modelcontextprotocol/sdk, undici and proxy-addr.

The Take

Upgrading does nothing about the logs already sitting in project folders, CI workspaces and old GitHub issues.

Start with the places a debug log travels. Search project directories and developer machines for firebase-debug.log files. Check CI runs that keep the workspace as an artifact after a failed deploy, since a failure is when the CLI leaves the file behind. Then look at any bug report or support ticket where someone attached the log. If a log written after a secrets:set or a secret read has left the machine it was written on, rotate that secret.

Teams that script functions:secrets:access or apphosting:secrets:access should know those commands still write the value to the log on purpose. Delete any debug log those runs leave behind.

Secret Manager exists to keep credentials out of files. The CLI that stores them in it was writing them to one.

Stay in the loop

Get new articles in your inbox

We'll only email you when a new article drops. Unsubscribe anytime.