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
Attempts to list PKI secrets engine roles using the (*vault.Client).Secrets.PkiListRoles() method succeed with the response object responding to (resp).Data.Keys with a signature of []string, indicating the slice of role names.
Current Behavior
Attempts to list PKI secrets engine roles using the (*vault.Client).Secrets.PkiListRoles() method fail due to the following error:
json: cannot unmarshal array into Go struct field PkiListRolesResponse.data.keys of type map[string]interface {}
Failure Information
Please include the version of Vault binary and the version of vault-client-go you're using.
Vault server: 1.11.4+ent
Vault Client Go: 0.3.2
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Start a copy of Vault (i.e., vault server -dev)
Set environment variables VAULT_ADDR and VAULT_TOKEN accordingly
The method signature of PkiListRoles() seems like it should follow other, similar "list" type activities, such as AwsListRoles(). The latter has a signature for (*vault.Response[map[string]interface{}]).Data.Keys of []string whereas the former has map[string]interface{}. This might be as minor as having typed {} instead of [] somewhere.
The text was updated successfully, but these errors were encountered:
Hi @TheLonelyGhost, thanks for bringing this to our attention!
The root cause of the issue is an incorrect schema type in the generated openapi.json. It should be quite easy to fix. I'm addressing it in hashicorp/vault#20782
Expected Behavior
Attempts to list PKI secrets engine roles using the
(*vault.Client).Secrets.PkiListRoles()
method succeed with the response object responding to(resp).Data.Keys
with a signature of[]string
, indicating the slice of role names.Current Behavior
Attempts to list PKI secrets engine roles using the
(*vault.Client).Secrets.PkiListRoles()
method fail due to the following error:Failure Information
Please include the version of Vault binary and the version of
vault-client-go
you're using.Vault server: 1.11.4+ent
Vault Client Go: 0.3.2
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
vault server -dev
)VAULT_ADDR
andVAULT_TOKEN
accordinglyAdditional Information
The method signature of
PkiListRoles()
seems like it should follow other, similar "list" type activities, such asAwsListRoles()
. The latter has a signature for(*vault.Response[map[string]interface{}]).Data.Keys
of[]string
whereas the former hasmap[string]interface{}
. This might be as minor as having typed{}
instead of[]
somewhere.The text was updated successfully, but these errors were encountered: