Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Ansible Vault #484

Open
3 tasks done
vkrizan opened this issue Apr 20, 2023 · 1 comment
Open
3 tasks done

Support Ansible Vault #484

vkrizan opened this issue Apr 20, 2023 · 1 comment

Comments

@vkrizan
Copy link
Contributor

vkrizan commented Apr 20, 2023

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 ansible-rulebook is open source software provided for free and that I might not receive a timely response.

Feature type

New Feature

Feature Summary

Please add support for Ansible Vault.

Steps to reproduce

# Plaintext YAML file
$ cat secrets_file.enc
webhook_token: SuperSecretToken

# Encrypt the file with ansible-vault
$ ansible-vault encrypt secrets_file.enc
New Vault password:
Confirm New Vault password:
Encryption successful
# Rulebook
$ cat secrets-rulebook.yaml
- name: secrets example
  hosts: all
  sources:
    - ansible.eda.webhook:
        token: "{{ webhook_token }}"
$ ansible-rulebook --rulebook secrets-example.yml -i inventory.yml -e @secrets_file.enc

Current results

Variables are currently only read from a clear-text yaml files.

Sugested feature result

Support for secure use of sensitive data.

Additional information

Thank you.

@SuchitraVenugopal123
Copy link

Is this support available now ? While reading encrypted secrets it throw the error as

0-05:00 2023-10-27 13:08:12,241 - ansible_rulebook.cli - ERROR - Terminating could not determine a constructor for the tag '!vault'
2023-10-27T08:08:12.246785590-05:00 in "", line 4, column 26:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants