Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set admin password via conjurctl #2043

Closed
h-artzi opened this issue Feb 17, 2021 · 2 comments · Fixed by #2042
Closed

Set admin password via conjurctl #2043

h-artzi opened this issue Feb 17, 2021 · 2 comments · Fixed by #2042

Comments

@h-artzi
Copy link
Contributor

h-artzi commented Feb 17, 2021

Is your feature request related to a problem? Please describe.

I was deploying Conjur in a Fargate cluster. To create the first account I utilized conjurctl account create <name>. This provides the api key for the admin user of this account. Currently, I am retrieving the api key from the logs. However, I am looking for a more secure method to retrieve the admin user's api key.

Describe the solution you would like

I would like to see a command such as conjurctl account create where I can set the password for the admin user. It will create a more user-friendly and secure solution to retrieving/setting the admin user's credentials.

After running conjurctl account create <name> <password> I will be able to use the provided password to authenticate with Conjur.

Describe alternatives you have considered

Options I have considered:

  1. Output the api key to the logs
    • Not secure
  2. change the password via REST API
    • A potential solution but not very user-friendly. It complicates the bash that is executed on every instance upon instantiation. However, there is a benefit that the event is audited.
  3. Write to a file and SSH into the container
    • I do not want to enable users to SSH into the Fargate instances
@rafis3
Copy link
Member

rafis3 commented Feb 18, 2021

Thanks for raising this enhancement idea @h-artzi! What do you think about also supporting getting the password from STDIN, so that the user could supply it without making it visible in the command line?

@h-artzi h-artzi self-assigned this Feb 18, 2021
@h-artzi
Copy link
Contributor Author

h-artzi commented Feb 18, 2021

Thanks for bringing this up! I am planning on allowing the user to either provide the password via a file or STDIN.

h-artzi added a commit that referenced this issue Feb 19, 2021
h-artzi added a commit that referenced this issue Mar 19, 2021
h-artzi added a commit that referenced this issue Mar 19, 2021
h-artzi added a commit that referenced this issue Mar 22, 2021
h-artzi added a commit that referenced this issue Mar 23, 2021
h-artzi added a commit that referenced this issue Mar 23, 2021
h-artzi added a commit that referenced this issue Mar 23, 2021
h-artzi added a commit that referenced this issue Mar 23, 2021
h-artzi added a commit that referenced this issue Mar 23, 2021
h-artzi added a commit that referenced this issue Mar 24, 2021
h-artzi added a commit that referenced this issue Mar 24, 2021
h-artzi added a commit that referenced this issue Mar 26, 2021
h-artzi added a commit that referenced this issue Mar 29, 2021
h-artzi added a commit that referenced this issue Mar 30, 2021
h-artzi added a commit that referenced this issue Mar 30, 2021
h-artzi added a commit that referenced this issue Mar 30, 2021
h-artzi added a commit that referenced this issue Mar 30, 2021
h-artzi added a commit that referenced this issue Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants