List and Get key operations in Azure Key Vault

2020-10-21T12:53:11.457+00:00

We use Azure Key Vault to store the secrets of our applications.
There were always enough Get key operations to access secrets.
Are there any recommendations and practices for using the List key operation to access keys?
How much less secure is it?
The manual says that with these List rights you can get access to all keys of the Key Vault

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,448 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JamesTran-MSFT 36,906 Reputation points Microsoft Employee Moderator
    2020-10-23T00:06:15.667+00:00

    anonymous user
    Thank you for the post!

    Are there any recommendations and practices for using the List key operation to access keys?
    -From my understanding, there aren't any specific recommendations for using the "List key" operation to access keys, since it's up to the end user on what operation they'd like to use. For more information on Azure Key Vault best practices.

    Reading over the documentation, it explains both commands as essentially doing the same thing, however, walking through each call and comparing the output, I noticed that both show the same attributes, however, when using the GET Keys API, it returned my certificate along with my Keys.

    az keyvault key list:
    Lists keys in the specified Vault or HSM.
    Retrieves a list of the keys in the Vault or HSM as JSON Web Key structures that contain the public part of a stored key. The LIST operation is applicable to all key types, however only the base key identifier, attributes, and tags are provided in the response. Individual versions of a key are not listed in the response.
    34432-azkvlist.jpg

    Get Keys - Get Keys:
    List keys in the specified vault.
    Retrieves a list of the keys in the Key Vault as JSON Web Key structures that contain the public part of a stored key. The LIST operation is applicable to all key types, however only the base key identifier, attributes, and tags are provided in the response. Individual versions of a key are not listed in the response.
    34397-azkvget.jpg

    How much less secure is it?
    -Can you expand further on this, what do you mean by less secure?

    The manual says that with these List rights you can get access to all keys of the Key Vault
    -What manual are you referring to, are you able to provide a link?

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.


  2. Shravani Meeriyalkar 1 Reputation point
    2022-09-28T08:27:15.627+00:00

    Hi,

    Following up to check if there is any answer on how safe is it to provide LIST permission to a client as it lists out all secret names in a key vault. Is only GET permission just enough to access the key vault to get the secret value using the particular secret names provided to the client?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.