How to encrypt the password stored in ~/.hammer/cli.modules.d/foreman.yml file?
Environment
- Red Hat Satellite 6
Issue
- Password stored in
~/.hammer/cli.modules.d/foreman.ymlfile for using hammer command without authentication is visible to all. - How to encrypt the password stored in file
~/.hammer/cli.modules.d/foreman.yml?
Resolution
- A Request for Feature Enhancement (RFE) filed to add the functionality to encrypt the password in the hammer configuration file has been This content is not included.rejected
- Alternatively, it is possible to authenticate hammer using SSL certificate instead of username/password. Refer to How to authenticate hammer using SSL certificate instead of username/password? for more details.
- Yet another alternative is using OAuth authentication - see Satellite documentation.
For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues
SBR
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.