Skip to content
Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
Close

Search

Home/DevOps/Obfuscated passwords in TeamCity
DevOpsTeamCity

Obfuscated passwords in TeamCity

By Laszlo Pinter
February 10, 2017 2 Min Read
6

Obfuscate the password in the TeamCity UI

When a TeamCity build step needs to use a password, there is a way to obfuscate it.

  1. In the TeamCity web interface navigate to the project,
  2. On the project page open the Parameters page,
  3. Click the Add new parameter button,
  4. Enter the name of the parameter, the password value, and click the Edit button to set the special settings,
  5. Set the Display to Hidden, and the Type to Password to hide the value from the user interface. Click the Save button on this window and the on the parent window to save the parameter.
  6. To use the parameter in a build step, surround it with % signs.

Display the obfuscated password in the TeamCity UI.

To display the value of the password in the TeamCity UI again

  1. Select the attribute in the list
  2. Click the Edit button
  3. Set the type to Text and click the Save button
  4. On the Edit Parameter window click the Save button
  5. The password will be displayed in the parameter list.

Tags:

DevOpssecurityTeamCity
Author

Laszlo Pinter

Follow Me
Other Articles
Previous

Manage Windows Backups

Next

Add SSH key to a Jenkins Git step

6 Comments
  1. kaypluralsight says:
    September 25, 2019 at 9:17 am

    Note that this is not actually “secure”, as anyone with read access to the build project can unscramble that password. Depending on your security needs, this may be sufficient, but think of it as “obfuscated” rather than “secure”.

    https://youtrack.jetbrains.com/issue/TW-45181

    Reply
    1. Laszlo Pinter says:
      September 24, 2020 at 11:13 pm

      Thank you, Kay for your comment, I have updated the title and the post to better describe the security level.

      Reply
  2. Hakan says:
    August 27, 2023 at 11:58 pm

    Something I think it’s badly done in TeamCity when it comes to password masking
    Say you have the password ‘home-town’ and then you are connecting to a site say home-town.exmple.net, in the output you would see ‘*********.example.net’, which makes it easier to figure out passwords.

    To get a password in plain text, just run an inline script in it’s own build step, split the password in two and echo them out on their own lines.

    Reply
  3. tester836 says:
    July 9, 2024 at 1:31 am

    hello.
    after the 4th step you will reset the original pass, after saving the form.

    Reply
    1. AK says:
      September 18, 2024 at 3:08 pm

      absolutely correct, and this solutions doesn’t help

      Reply
      1. Qhope says:
        May 22, 2025 at 2:09 am

        The solution given here works for version prior to 2024 it seems. They have changed the behavior to obfuscate better the password I take.

        Reply
Show Comments

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Last Changes

  • DevOps Engineering part 1. (Mac) - Make your Macintosh easier to use June 25, 2026
  • Japan travel tips June 22, 2026
  • How to stop the rain and snow in Cities: Skylines II June 20, 2026
  • Cities: Skylines II Developer Mode June 20, 2026
  • 'CSII_MANAGEDPATH' has incorrect path(s) when building Cities: Skylines II mod June 20, 2026

Tags

.NET .NETcore 3Dprinting ASP.NET Core AutodeskInventor AWS C# Chef cloud DevOps Docker EntityFramework Games Git Go iOS iPad iPhone iPod Java Kubernetes Linux MacOSX MSSQL MVC Node.js Packer PowerShell Python RDS RightScale Ruby security Splunk TeamCity Terraform TestKitchen Tomcat Ubuntu Vagrant VirtualBox VisualStudio Windows WordPress Xcode

Recent Comments

  • Zengei László on MyHeritage családfa exportálása és küldése emailben
  • Raúl Castillo on DynDns update error
  • MICHAEL on Windows Media Player 12 cannot find the album information
  • Nargis on Configure Epson ET-3850 scanning on Windows 11
  • Venczelné Zemen Erika on Delta S2302 termosztát programozása

–

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright 2026 — Pinter Computing. All rights reserved.