Closed andrew-landsverk-win closed 3 years ago
Also if you are doing this using a script or in the CD pipeline which there is no interctivity, it's better to do the following, so it doesn't show any prompt.
awx-manage migrate
awx-manage createsuperuser --username=admin --email=admin@example.com --noinput
awx-manage update_password --username=admin --password=changeme
or in the kubernetes:
kubectl exec -ti taskpodname -- awx-manage migrate
kubectl exec -ti taskpodname -- awx-manage createsuperuser --username=admin --email=admin@example.com --noinput
kubectl exec -ti taskpodname -- awx-manage update_password --username=admin --password=changeme
I'm doing kubectl
exec and opening a shell, then running awx-manage
. However, the issue here is that upon upgrade, the existing admin
user password is getting reset to something that it shouldn't be.
I'm doing
kubectl
exec and opening a shell, then runningawx-manage
. However, the issue here is that upon upgrade, the existingadmin
user password is getting reset to something that it shouldn't be.
Yes I know, I am facing the same issue, and I thought it would be helpful for people who get stuck like me. I know it's not a solution but a workaround.
Heads up, I was unaware that this was the case, and after upgrading, our servers were hit with an automated cryptojacking attack.
At the very least, this should be made much more obvious. Having a crypto miner installed on our servers was fortunately much less nefarious than it could have been, but I was pretty surprised to see the default admin user being created again.
When using a vars file, it appears the default value from the inventory file must take precedence. I've opened up https://github.com/ansible/awx/pull/9111 which completely removes the default value, and forces users to provide it.
PR linked above has been merged. Next version of AWX will be out sometime this week.
Thanks @shanemcd!
ISSUE TYPE
SUMMARY
I've noticed with my last two updates, to 9.1.0 and to 9.1.1, following the upgrade I need to open a console to awx-web and run
awx-manage changepassword admin
to fix my password. I am using the official instructions to provide a vars file with theadmin_password
key defined.ENVIRONMENT
STEPS TO REPRODUCE
admin_password
EXPECTED RESULTS
Admin credentials still work as before
ACTUAL RESULTS
Login with credentials fails.
ADDITIONAL INFORMATION