mirror of https://github.com/ansible/ansible.git
ansible-vault: handle utf-8 filename in vault (#50341)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>pull/52057/head
parent
6afa00eecd
commit
5c992fcc3f
@ -0,0 +1,3 @@
|
||||
---
|
||||
minor_changes:
|
||||
- Handle vault filename with UTF-8 while decrypting vault file using ansible-vault.
|
@ -0,0 +1,16 @@
|
||||
- name: "Test that the vaulted file with UTF-8 in filename decrypts correctly"
|
||||
gather_facts: false
|
||||
hosts: testhost
|
||||
vars:
|
||||
expected: "my_secret"
|
||||
vars_files:
|
||||
- vault-café.yml
|
||||
tasks:
|
||||
- name: decrypt vaulted file with utf8 in filename and show it in debug
|
||||
debug:
|
||||
var: vault_string
|
||||
|
||||
- name: assert decrypted value matches expected
|
||||
assert:
|
||||
that:
|
||||
- "vault_string == expected"
|
@ -0,0 +1,6 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
63363732353363646661643038636339343263303161346533393636336562336465396265373834
|
||||
6366313833613236356666646532613636303532366231340a316238666435306332656662613731
|
||||
31623433613434633539333564613564656439343661363831336364376266653462366161383038
|
||||
6530386533363933350a336631653833666663643166303932653261323431623333356539666265
|
||||
37316464303231366163333430346537353631376538393939646362313337363866
|
Loading…
Reference in New Issue