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 CLI #428

Closed
shantanugadgil opened this issue Dec 29, 2016 · 6 comments
Closed

Set admin password via CLI #428

shantanugadgil opened this issue Dec 29, 2016 · 6 comments
Labels
area/authentication kind/enhancement Applied to Feature Requests
Milestone

Comments

@shantanugadgil
Copy link

Description
I would like to create a password for the admin user before I start portainer, so users don't have to do the step of setting up a password.
Is there any way this can be easily achieved today?

Technical details:

  • Portainer version: 1.11.0
  • Portainer Docker image tag (latest/arm/windows...): N/A
  • Target Docker version (the host/cluster you manage): N/A
  • Target Swarm version (if applicable): N/A
  • Platform (windows/linux): linux amd64
  • Browser: Firefox/Chrome
@deviantony deviantony added area/authentication kind/enhancement Applied to Feature Requests labels Dec 30, 2016
@deviantony
Copy link
Member

This cannot be achieved today. However, this can be added quite simply by adding a --admin-password flag to the Portainer CLI.

I'll note this as an evolution.

@deviantony deviantony changed the title Howto setup password before starting portainer Set admin password via CLI Dec 30, 2016
@shantanugadgil
Copy link
Author

Thanks for the consideration.

@dilshanraja
Copy link

dilshanraja commented Jan 16, 2017

In our ansible playbook, we just send a post request to http://host:port/api/users/admin/init with a json body of '{"password":"admin123!"}' after portainer starts up and that gets the job done at the moment from an automation standpoint. A CLI flag would be the better option in a future iteration.

@liyaka
Copy link

liyaka commented Jan 19, 2017

Is this feature planned to be added to the next version?

@deviantony
Copy link
Member

@liyaka Unlikely to be added in 1.11.2, probably in 1.12.x

@vielmetti
Copy link

The PR in #752 provides a mechanism for setting a password hash.

@deviantony deviantony added this to the 1.12.5 milestone Apr 15, 2017
@deviantony deviantony modified the milestones: 1.13.0, 1.12.5 Apr 27, 2017
chiptus pushed a commit that referenced this issue Jul 27, 2021
* feat(registry): Change create/update registry endpoints (EE-901) (#416)

* feat(registry): create ProGet registry [EE-898] (#427)

* fix tooltips

* fix tooltips

* enable PROGET registry TLS configuration

* enable PROGET registry authentication configuration

* init PROGET registry authentication configuration

* label updates and remove auth toggle

Co-authored-by: Dennis Buduev <dennis.buduev@portainer.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/authentication kind/enhancement Applied to Feature Requests
Projects
None yet
Development

No branches or pull requests

5 participants