Credentials - Show injector variables when viewing credential.

Posted on

Situation:
- Migration from Tower to AAP
- Credentials are being recreated and rekeyed
- During the migration we are standardizing some of the credential types and removing duplicates.
- Users will need to update their playbooks to use the updated variables.

Problem:
When the user is creating the new credential, they can't see the injector variables to know what to modify their playbooks to support.

Question:
Has anyone else had this problem or found a clean way to render the credential's injector variables to the user without just giving them the raw credential type?

Logically the user should be able to see the example injector variables with sensitive values redacted.

Example:
I have 4 input fields Username (username), Password (password), Host(host), Protocol (protocol).

It spits out the following injectors variables:
username: abc123
password: *******
host: host.lan
protocol: https
rest_base: https://host.lan/api/latest/

Responses