Skip to content

Support K/V Secret Engine #6

Description

@rizvisx

I am trying to fetch kv secrets with EndpointResponse like this

$response = $client->sendApiRequest(
		  	'GET',
            '/v1/secret/data/creds',
            EndpointResponse::class);

However, In the EndpointResponse class the data is never being set in the properties as this condition below never meets to find the key in the class. there is a declaration for $metaData, but we get metadata in $key below. Also, since there is no $data property it fails on this condition again.

if (property_exists(static::class, (string) $key)) {

So, adding these missing properties gives me data in the response.

 protected $metadata;
 protected $data;

Now, I am new to Vault so I may be doing things wrong way.
Looking forward for your feedback.

Thanks !!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions