Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-12073

As an administrator, I want to be able to hide any version information from Bitbucket for anonymous users

    XMLWordPrintable

Details

    • Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • None
    • Administration
    • None
    • 6
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Problem Definition

      Version informations should not be accessible to any non authenticated user.

      For some customers, this could represent a security concern.

      Suggested Solution

      Hide any version information (for example from the footer of Bitbucket) or provide an option to do so.

      Workaround

      To hide the footer, the steps are as follows:
      1. Open $BITBUCKET_INST/app/static/bitbucket/internal/webpanels/global-footer.soy in a text editor
      2. Locate the following section:

      <li>{productFullName()} <span title="{$hash}" id="product-version" data-commitid="{$hash}" data-system-build-number="{$systemBuildNumber}"> v{$buildVersion}</span></li>
      

      Edit it so it looks like:

      {if false}
          <li>{productFullName()} <span title="{$hash}" id="product-version" data-commitid="{$hash}" data-system-build-number="{$systemBuildNumber}"> v{$buildVersion}</span></li>
      {/if}

      3. Restart Bitbucket Server

      In case of a data center setup, this needs to be performed on each node.

      Note

      Wrapping the list item in an if block that will never execute it guarantees that the item remains hidden, but will still allow the template to function correctly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ccurti Caterina (or Kate) Curti
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: