Confluence Command Line Interface security

We use the command line interface (CLI) a lot, but the authentication creates a big security hole.

hole 1) CLI requires the user's password for each command.
To write a script, many people embed their passwords in the script. (Really bad).
Better is to put the password in a file readable only by the user, but this is still a cleartext password.

hole 2) CLI requires the users's password to be passed on the command line, where anyone can see it with ps(1)

I think (2) is a defect in CLI.

Does anyone have a better solution than a cleartext file for part (1) ?


1 answer

  1. Recommend customizing your CLI bat/sh (either atlassian.bat/.sh or confluence.bat/.sh) to include your password. For me, none of my scripts contain passwords, they only refer to the atlassian command. It also makes it easier to maintain. If you need to access multiple servers, strongly recommend using the atlassian.bat/sh as it is much easier to customize for multiple servers and products. It also works better in scripts. It is available as part of the Atlassian Command Line Interface distribution
  2. CSOAP-153 covers a few more options - vote and comment there for what you would like to see

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,028 views 51 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you