The purpose of this document is to provide some general knowledge about Managed Identities, information about where and how they can be used in Scuba, and what a Scuba customer should setup to allow us to connect through Managed Identities authentication.
Managed Identities is a way to authenticate access to the Azure Cloud without using passwords and vaults.
Let’s say you need access from a Machine to a Storage Account or Blob/Container. In that case you’ll create a Managed Identity and provide it to both parties. Our Storage will be the contributor, while the Machine will know it as an assigned identity.
The identity creation and assignment is done through the Azure portal.
For more information see official Microsoft documentation: https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/qs-configure-cli-windows-vm
Managed Identities in Scuba
Managed Identities authentication can currently be used in two scenarios:
Import - reading/downloading data from Azure
GDPR purge request & receipts - writing/uploading data to Azure
In our system there are several machines that require the Identity to be assigned to them:
data (all machines)
import (all machines)
string (all machines)
Creating the Managed Identity
Go to Azure portal \ Managed Identities.
+ Createin the toolbar.
Fill in the form and press
Review + create.
createat the bottom of the new form.
Go to Home \ Managed Identities \ <the identity you’ve created>.
Client IDand send it to your Scuba representative.
Set role assignments to your resource
Go to the relevant resource in the Azure Portal, such as
Storage account(for import).
On the left panel go to Access Control (IAM).
+ Addbutton, and select
Add role assignment.
Fill in the form as follow. you’ll need to do it twice for 2 different roles:
Storage Blob Data Contributor
Storage Blob Data Reader
Assign the Identity to the accessing machines
Go to the relevant machine in the Azure portal.
On the left panel go to Identity.
Go to the User assigned tab.
Fill the form on the right and select the identity you’ve created.
Addbutton at the bottom.
Don’t forget to send us the Managed Identity Client ID (see step 6 under
"Creating a Managed Identity"). We’ll take it from there!