Details
Description
Issue Summary
This is reproducible on Data Center: yes
SecretScanningWiring raises unnecessary warning on startup. It complains about an invalid value for secretscanning.email.maxsecrets even if it was not set by the user.
Steps to Reproduce
- Start Bitbucket
- Inspect the atlassian-bitbucket.log
Expected Results
No warning is logged if the user has not set (or specifically incorrectly set) the maxsecrets property themself.
Actual Results
The below warning is logged in atlassian-bitbucket.log:
2023-07-07 16:09:24,647 WARN [spring-startup] c.a.s.i.s.SecretScanningWiring Invalid value for 'secretscanning.email.maxsecrets': secretscanning.email.maxsecrets is not a positive integer. Using default value of 100 instead.
Workaround
Setting secretscanning.email.maxsecrets': secretscanning.email.maxsecrets to (for example) 100 in bitbucket.properties will suppress the warning