ansible/awx

AWX Collections / credentials - do not override existing value when updating just one value in the inputs field

Open

#13,169 opened on Nov 8, 2022

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Python (3,333 forks)batch import
communitycomponent:awx_collectionhelp wantedtype:enhancement

Repository metrics

Stars
 (13,071 stars)
PR merge metrics
 (Avg merge 24d 6h) (30 merged PRs in 30d)

Description

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

Feature type

Enhancement to Existing Feature

Feature Summary

the awx.awx collections is used to extensively for self-service onboarding and we create the stubs objects ahead of time, and we let our users fill in the secrets inside the AWX GUI.

For the credential object, we would create vault secrets with a vault_id and our users would go into the AWX GUI and put in their vault password. Once we run the automation again, the user inputs would be wiped out. Would like it the collections to not delete the fields that are not specified in the 'inputs' and let it alone.

- name: Onboarding | create stub credentials for team credential: type: 'Vault' name: Vault_team inputs: vault_id: vault_for_database

Select the relevant components

  • UI
  • API
  • Docs
  • Collection
  • CLI
  • Other

Steps to reproduce

1, Use awx collections and specify the vault_id via input

- name: Onboarding | create stub credentials for team credential: type: 'Vault' name: Vault_team inputs: vault_id: vault_for_database 2. update the password for the Vault_team cred object 3. re-run the awx collections in step #1. the password will be wiped out

Current results

password fields is wiped out

Sugested feature result

password fields should be left alone

Additional information

No response

Contributor guide