Bug 2007388

Summary: [RFE] Full Support for Ansible Vault in Satellite
Product: Red Hat Satellite Reporter: Satyajit Das <sadas>
Component: Ansible - Configuration ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.11.0CC: ahumbe, dsinglet, ehelms, matthew.lesieur, nalfassi, oezr, pmendezh, rcavalca, rlavi, tharring
Target Milestone: 6.14.0Keywords: FutureFeature, PrioBumpGSS, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-20 10:23:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Satyajit Das 2021-09-23 18:02:00 UTC
1. Proposed title of this feature request

   Full Support for Ansible Vault in Satellite

2. What is the nature and description of the request?

   Currently, to use Ansible vault when running a Ansible role from the Satellite, we have to define 
   the  parameter (vault_password_file) in the file (/usr/share/foreman-proxy/.ansible.cfg), however 
   the changes are not persistence across satellite-installer execution.  As the satellite-installer 
   override the custom parameters with default settings. so we need an option in Satellite GUI
   under( Configure > Ansible > something like Credentials page), to add and update vault password.
   Also, add the "Vault ID:" option in the same Credentials page, so that Multi-Vault Credentials can be
   defined and utilized later during role execution.

   Next, need an option in Job template, to pass/assign the vault Credentials, so that specific Credential can 
   be assigned to the job templates directly.
    

3. Why does the customer need this? (List the business requirements here)

   It gives flexibility to the customers to utilize the product to the fullest.
 
4. How would the customer like to achieve this? (List the functional requirements here)

   Add option in Satellite GUI under( Configure > Ansible > something like Credentials page), 
   to add and update vault password. Also, add the "Vault ID:" option in the same Credentials page,
   so that Multi-Vault Credentials can be utilized during role execution.

   Next, need an option in Job template, to pass/assign the vault Credentials, so that specific 
   Credentials can be assigned to the job templates directly.


5. Is there already an existing RFE upstream or in Red Hat Bugzilla?

   Unknown

6. Does the customer have any specific timeline dependencies and which release would they like to target (i.e.satellite 7.0)?

   No

7. Is the sales team involved in this request and do they have any additional input?
   No


8. List any affected packages or components.
   Unknown

Comment 2 Ron Lavi 2022-07-06 17:16:31 UTC
Created redmine issue https://projects.theforeman.org/issues/35171 from this bug

Comment 3 Ron Lavi 2022-07-06 17:24:27 UTC
*** Bug 2000229 has been marked as a duplicate of this bug. ***

Comment 7 Ron Lavi 2023-04-20 10:23:13 UTC
After discussing it with our team, we have come to the conclusion that we will not be able to implement the RFE in the foreseeable future.

The current fix[1] we have implemented for ansible.cfg should help using Vault or additional Ansible configurations from the ansible.cfg without it being overridden by the installer.

Additionally, I want to clarify that our project is not meant to replace AAP, and if you want to utilize Vault's full capabilities, we highly recommend using AAP.

Please let me know if you have any questions or concerns.

[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1786358