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:
@@ -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;
|
||||
Reference in New Issue
Block a user