Currently it seems not possible to change the awx secret_key (from installer/inventory) to be able to change the credential encryption key - or is it possible?
Will this be supported in the future?
Hey @LucaBernstein,
It's possible to _change_ the key, but AWX doesn't currently have any tooling to decrypt and re-encrypt your secrets for you. It's possible we might add functionality to support something like this in the future.
Hey @LucaBernstein I've opened a PR to add a new command for generating a new SECRET_KEY (if you're interested in trying it out):
https://github.com/ansible/awx/pull/5493
The intended usage here is to:
awx-manage regenerate_secret_key from one database-connected node. The new key is printed, and can be replaced in your inventory.@elyezer is out on PTO for a while, but 90% sure this is ready to close
Going to close as I reviewed his work and indeed while we can do some more work on running his automation on a regular basis and reporting it somewhere, we can test on demand and its working.
Most helpful comment
Hey @LucaBernstein,
It's possible to _change_ the key, but AWX doesn't currently have any tooling to decrypt and re-encrypt your secrets for you. It's possible we might add functionality to support something like this in the future.