How to Prevent Password Auto-completion in Bamboo
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The content on this page includes steps to customize or extend Atlassian software (adding/changing CSS rules, HTML, JavaScript, etc.). Per the Atlassian Support Offerings, support does not include customizations made to Atlassian products. Be aware that this material is provided for your information only and using it is done so at your risk.
If you have any questions about this or any customization, please ask the community at Atlassian Community or consider working with an Atlassian Solution Partner.
Some organizations have security requirements that require the AutoComplete attribute to be set to "off" for Usernames and Passwords in form-based authentication. Bamboo does not prevent autocompletion by default. and this can be done by modifying the login form.
Solution
With a few modifications, the autocomplete=off attribute can be set for both the username and password fields. You will need to modify user login template to set autocomplete to off.
Edit <BAMBVOO-INSTALLATION>atlassian-bamboo\template\simple\text.ftl
Find the line
1
<input type="text"[#rt/]
And modify it to
1
<input autocomplete="off" type="text"[#rt/]
Edit <BAMBVOO-INSTALLATION>atlassian-bamboo\template\simple\password.ftl
Find the line
1
<input type="password"<#rt/>
And modify it to
1
<input autocomplete="off" type="password"<#rt/>
Save the files, and restart Bamboo.
Was this helpful?