You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
From version 1.2.0 it is impossible to retrieve the vault secret using approle and hashi_vault (hvac) in ansible. Using the following gives the following errors on both side:
fatal: [host]: FAILED! =>
{"msg":
"An unhandled exception occurred while running the lookup plugin 'hashi_vault'.
Error was a <class 'hvac.exceptions.InternalServerError'>,
original message: json: cannot unmarshal string into
Go struct field roleStorageEntry.token_type of type logical.TokenType"
}
On Vault Side:
{
"time": "2019-08-01T08:00:09.261568917Z",
"type": "response",
"auth": {
"token_type": "default"
},
"request": {
"id": "2509237f-6271-f5ae-cbc8-771a17c1e901",
"operation": "update",
"namespace": {
"id": "root"
},
"path": "auth/approle/login",
"data": {
"role_id": "yyyy",
"secret_id": "yyyyy"
},
"remote_address": "127.0.0.1"
},
"response": {},
"error": "json: cannot unmarshal string into Go struct field roleStorageEntry.token_type of type logical.TokenType"
}
To Reproduce
I use HVAC and hashi_vault to retrieve the vault secrets for my ansible playbooks.
Additional context
This bug is not observed in v. 1.1.5 version and versions before that, so it is added probably with 1.2.0
The text was updated successfully, but these errors were encountered:
pouyana
changed the title
Vault approle not working with HVAC (hashi_vault ansible) any more
Vault 1.2.0 approle not working with HVAC (hashi_vault ansible) any more
Aug 1, 2019
[user@hostname ~]# vault read auth/approle/role/mynamedrole/role-id
Error reading auth/approle/role/mynamedrole/role-id: Error making API request.
URL: GET https://subdomain.domain.com:8200/v1/auth/approle/role/mynamedrole/role-id
Code: 500. Errors:
* 1 error occurred:
* json: cannot unmarshal string into Go struct field roleStorageEntry.token_type of type logical.TokenType
Describe the bug
From version 1.2.0 it is impossible to retrieve the vault secret using
approle
andhashi_vault
(hvac) in ansible. Using the following gives the following errors on both side:On Ansible Side:
On Vault Side:
To Reproduce
I use HVAC and hashi_vault to retrieve the vault secrets for my ansible playbooks.
Expected behavior
Should return the secret as array
Environment:
Vault server configuration file(s):
Additional context
This bug is not observed in v. 1.1.5 version and versions before that, so it is added probably with 1.2.0
The text was updated successfully, but these errors were encountered: