vault: list secrets and policies for a specific user in CLI

180 views
Skip to first unread message

Niranjan Kolly

unread,
Mar 10, 2020, 2:31:45 PM3/10/20
to Vault
Hi ,

How to list secret engines and policies assinged for a specific user in the vault CLI/API.
Can you please share command and what ACL i have write to achieve this.


Thanks,
Niranjan

Vishal Nayak

unread,
Mar 16, 2020, 9:54:44 AM3/16/20
to vault...@googlegroups.com
Hi Niranjan,

`vault secrets list` will list all the secret engines that are mounted in Vault.

Each authentication method has its own API to configure the policies
assigned to users.
I suggest going through https://www.vaultproject.io/docs/auth/ and see
the auth method that interests you.
There are examples in there which will guide you to what you are
looking for. Let us know if you have any more questions.

Regards,
Vishal
> --
> This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/hashicorp/vault/issues
> IRC: #vault-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups "Vault" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/2683fd6a-5783-4ef7-9c79-1e4a6ad0c3c4%40googlegroups.com.



--
vn

Niranjan Kolly

unread,
Mar 17, 2020, 3:40:48 AM3/17/20
to Vault
Thanks Vishal for the response.
My use case is in the same auth method. If a user is assinged to specific secretengine then he should able to list that in command(CLI).

Thanks,
Niranjan

On Monday, March 16, 2020 at 7:24:44 PM UTC+5:30, Vishal Nayak wrote:
Hi Niranjan,

`vault secrets list` will list all the secret engines that are mounted in Vault.

Each authentication method has its own API to configure the policies
assigned to users.
I suggest going through https://www.vaultproject.io/docs/auth/ and see
the auth method that interests you.
There are examples in there which will guide you to what you are
looking for. Let us know if you have any more questions.

Regards,
Vishal

On Tue, Mar 10, 2020 at 2:31 PM Niranjan Kolly <niranj...@gmail.com> wrote:
>
> Hi ,
>
> How to list secret engines and policies assinged for a specific user in the vault CLI/API.
> Can you please share command and what ACL i have write to achieve this.
>
>
> Thanks,
> Niranjan
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/hashicorp/vault/issues
> IRC: #vault-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups "Vault" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vault...@googlegroups.com.

Vishal Nayak

unread,
Mar 25, 2020, 10:22:15 AM3/25/20
to vault...@googlegroups.com
Hi Niranjan,

Can you post the list of commands that you intend to make work? That
will help us get a better understanding of what you are trying to do.

Regards,
Vishal
> To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/b7fd1444-3dea-4c11-9047-f5df5324bb6a%40googlegroups.com.



--
vn
Reply all
Reply to author
Forward
0 new messages