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

Add environment variable to override admin password #136

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leroyguillaume
Copy link

Add new environment variable NEXUS_ADMIN_INIT_PASSWORD to override admin password at the first Nexus start.

If this variable is set, the Nexus start a first time to initialize its files. Once started, it is stopped and the security Orient database is updated. The hash of the password is generated by Apache Shiro CLI. Then, Nexus is restarted.

@smarttang
Copy link

is work??

@leroyguillaume
Copy link
Author

Yes of course! It's used in production 😁

@smarttang
Copy link

smarttang commented Feb 5, 2022 via email

@leroyguillaume
Copy link
Author

Please describe me the steps you do and, if possible, attach the logs of the container

@taliesins
Copy link

@leroyguillaume please rebase this.

In my use case we pre-generate passwords to ensure it meets our security requirements. So we would love to have an easy way to idempotently set the password.

What do we need to do to get this merged @jdillon @ajbrown @mpuglin ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants