From the course: Complete Guide to Dapr for .NET and Azure Developers: Building and Managing Microservices
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Creating the cryptography component
From the course: Complete Guide to Dapr for .NET and Azure Developers: Building and Managing Microservices
Creating the cryptography component
- [Instructor] There are a few cryptography engines we can use in Dapr, and Azure Key Vault is one of them. Let's see the component format and let's copy the entire contents. And let's open up Visual Studio Code. Here in Visual Studio Code I've already opened the components folder, so let's create a new file named Wisdom-Crypto.yaml and let's space the contents. So first the name for this component, I want it to be, say, wisdomazurekeyvault. It could be anything, but let's use this name. And now the vault name has to be wisdompetmed because that's the name of the Azure Key Vault that we deployed. And now we need the Azure tenant ID, the client ID and the client secret. So if we go back to the browser, we can see here in the Dapr documentation some instructions for obtaining that data. For instance, we have to log in and then we have to create a new application, and then we have to create a client secret and then obtain those strings. In the interest of time, I've already done this, so…