Password encryption in foreman


I want to store hypervisor passwords in foreman as encrypted text. However I need some sort of key to encrypt/decrypt the password. Any idea what I could use as a secret key that will always be available?

How is foreman storing passwords now in the database for users?

I also want to encrypt the password in the view so it doesn't pass through the logs unencrypted. Any ideas?

Corey Osman

Green I.T and Datacenter Automation Specialist