Red Hat Satellite 6 credential does not work with Job Templates
- Dominant language
- Python
- Stars
- 9
- Forks
- 41
- Avg merge
- 8d 14h
- Merged PRs (30d)
- 2
Description
I have an issue with Red Hat Satellite 6 credential type. It normaly injects `FOREMAN_USERNAME`/`FOREMAN_PASSWORD`/`FOREMAN_SERVER_URL` Environment variables.
I want to use `theforeman.foreman.hostgroup_info` module which falls back to those environment variables. My Job Template is bound with credential of this type, but mentioned environment variables are **not** injected.
From the implementation it looks like this credential was meant to work only in inventory source. Why?
Is there a reason for it not to work with job template? This would allow seamless authentication with `theforeman.foreman` collection.
I do not know if that was the case all the time, or just after moving out of credential plugins to external repository, but it does not work with AWX 24.6.1 (latest at this moment)
Contributor guide
Research direction
Start by tracing the Red Hat Satellite 6 credential implementation and how it handles theforeman.foreman.hostgroup_info for inventory sources versus Job Templates. Reproduce the behavior on AWX 24.6.1, then verify whether FOREMAN_USERNAME, FOREMAN_PASSWORD, and FOREMAN_SERVER_URL are injected for the Job Template path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100