Hashicorp vault how to list all roles

EDIT

I would recommend viewing roles through the CLI. Viewing roles through the UI seems show all roles instead of those assigned to a given auth method.

Viewing roles using the UI

  1. Click the “Access” tab

access-tab

  1. Click “View Configuration” under the three dot dropdown for the auth method you’re interested in

view-config

  1. Click the “Roles” tab at the top

roles

Viewing roles using the CLI

Roles are listed under Authentication Methods in Vault. You can view which authentication methods you have enabled (or enable new ones) by visiting the UI and clicking on the “Access” tab at the top.

From there you can list roles using the following command:

vault list auth/{auth_method}/role

Where {auth_method} is one of the enabled authentication methods listed in the “Access” tab.

For example, if you enabled the kubernetes auth method, you would list roles associated with this method by running the following:

vault list auth/kubernetes/role

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)