Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-14251

SecretScanningWiring raises unnecessary warning on startup

    XMLWordPrintable

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

      1. Start Bitbucket
      2. 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

      Attachments

        Issue Links

          Activity

            People

              bplump Brent P
              behumphreys Ben Humphreys
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: