Vault server version
v1.21.1
vault-action version
v3.4.0
Describe the bug
When you want to retrieve a secret with dots in the name (es: ansible.service.user.username), you will have:
"Error: Unable to retrieve result for data.data.ansible.service.user.username. No match data was found. Double check your Key or Selector. "
To Reproduce
Save a vault secret with dot(s) in the name and try to retrieve it with the hashicorp/vault-action.
Something like:
- name: Import secret from Vault
uses: hashicorp/vault-action@4c06c5ccf5c0761b6029f56cfb1dcf5565918a3b # v3.4.0
with:
url: ${{ vars.VAULT_URL }}
method: approle
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
secrets: |
solution/project/kv2/data/path/${{ matrix.platform }} ansible.service.user.username | ANSIBLE_USER ;
Expected behavior
Retrieve the secret with a dot in the name
Vault server version
v1.21.1
vault-action version
v3.4.0
Describe the bug
When you want to retrieve a secret with dots in the name (es: ansible.service.user.username), you will have:
"Error: Unable to retrieve result for data.data.ansible.service.user.username. No match data was found. Double check your Key or Selector. "To Reproduce
Save a vault secret with dot(s) in the name and try to retrieve it with the hashicorp/vault-action.
Something like:
Expected behavior
Retrieve the secret with a dot in the name