concept AKV in category azure

appears as: AKV, AKV
Azure Storage, Streaming, and Batch Analytics: A guide for data engineers

This is an excerpt from Manning's book Azure Storage, Streaming, and Batch Analytics: A guide for data engineers.

ADF holds the authentication configuration for each linkedservice, both external services and Azure services. Authentication happens between the requester and the endpoint, and is closely tied to authorization. Authentication identifies the requester; authorization defines what the requester can do. The requester must know which authentication method and which credentials to use. AKV provides a secure method for storing the credentials. The linkedservice stores the authentication method.

AKV securely stores and gives access to secrets. You can programatically add and access any string less than 25KB in size, and AKV will encrypt and decrypt the secret value for you.

Applications and Azure services authenticate to AKV using service principals and managed identities. Using a managed identity doesn’t require AKV to provide any secrets; the service authenticates as itself. The AKV linkedservice uses the ADF managed identity to connect.

Linkedservices store the authentication method in their definition files. This includes usernames, passwords, and secret keys if provided. AKV forms a critical point in the authentication chain by securely storing these secrets. Because ADF can use Git version control, you could accidentally make the secrets in your definition files available to unauthorized parties. Using an AKV service prevents this by storing the secret, and provides it to the IR when needed. The secret can be a password, an API key, or any other string. Figure 10.3 shows this process in action.

Figure 10.3. Data Factory secret key authentication
.Data Factory

Secrets in AKV can also be used with linkedservices using service principals. With the AKV, you can store the secret name in the JSON configuration file and allow the IR to retrieve it directly from AKV. Azure services authorize the service principal to access the service and perform actions. Figure 10.4 shows this process in action.

Figure 10.4. Data Factory service principal authentication and authorization
.Data Factory

There are a couple of steps to begin using AKV for authentication in ADF pipelines. First, you need to have an available key vault. Next, you authorize ADF to access it. Last, you add secrets to the vault. Let’s start by creating a new key vault.