I want to avoid using a clear text password in my deployment project.
I have several interactions with the application server via curl. I created a service account on the app server and need to provide the password via http basic authentication.
So my script task in the bamboo deployment project calls curl -u and includes a variable containing the service account user:pass.
However, the service account password is visible to anyone who has access to the variables configuration screen on the environment. I want to make sure someone with root access to the bamboo server, admin access in bamboo, and full access to the code cannot retrieve this service account password.
Do I have any options to prevent any access to the service account password?
I want to make sure someone with root access to the bamboo server, admin access in bamboo, and full access to the code cannot retrieve this service account password.
sudo chown appdeployment /SECURE_LOCATION/.netrc
cp /usr/bin/curl /SECURE_LOCATION/suidcurl
sudo chown appdeployment /SECURE_LOCATION/suidcurl
sudo chmod u+s /SECURE_LOCATION/suidcurl
Oh, and either dedicate that agent to that deployment or add an agent capability password_to_my_app and require that capability in your deployment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Evan Stevens,
As Rich mentioned if your variable has 'password' in the name it will be obfuscated in UI and build/deployment logs.
But there's workaround that user can create script task with
echo $password_var > text.txt
and publish artifact with this file, then you should define that variable at deployment environment level and restrict access to that environment. It will not save you from administrator user.
Unfortunately it will not save against user with direct access to DB. In Bamboo 5.15 we added functionality to encrypt secret variables in DB to prevent unauthorized access to variables, repository credentials and shared credentials.
We are going to release Bamboo 5.15 within few weeks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use global, or environment variables. If they have 'PASSWORD' in the name, they will be obfuscated when they appear in the log.
-Rich
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.