1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-24 04:04:24 +00:00

[PM-27646] Prevent enabling logging and disabling signature (#17253)

This ensures we won't accidentally ship prod binaries that either have logging enabled or disable signature validation.
This commit is contained in:
Oscar Hinton
2025-11-06 17:06:59 +01:00
committed by GitHub
parent c7da24e627
commit 29e4085986
9 changed files with 53 additions and 28 deletions

View File

@@ -0,0 +1,12 @@
// Enable this to log to a file. The way this executable is used, it's not easy to debug and the stdout gets lost.
// This is intended for development time only.
pub const ENABLE_DEVELOPER_LOGGING: bool = false;
// The absolute path to log file when developer logging is enabled
// Change this to a suitable path for your environment
pub const LOG_FILENAME: &str = "c:\\path\\to\\log.txt";
/// Ensure the signature of the helper and main binary is validated in production builds
///
/// This must be true in release builds but may be disabled in debug builds for testing.
pub const ENABLE_SIGNATURE_VALIDATION: bool = true;