Skip to content

Add environment variable to override admin password#136

Open
leroyguillaume wants to merge 1 commit intosonatype:mainfrom
leroyguillaume:master
Open

Add environment variable to override admin password#136
leroyguillaume wants to merge 1 commit intosonatype:mainfrom
leroyguillaume:master

Conversation

@leroyguillaume
Copy link
Copy Markdown

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
Copy Markdown

is work??

@leroyguillaume
Copy link
Copy Markdown
Author

Yes of course! It's used in production 😁

@smarttang
Copy link
Copy Markdown

smarttang commented Feb 5, 2022 via email

@leroyguillaume
Copy link
Copy Markdown
Author

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

@taliesins
Copy link
Copy Markdown

@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