...
Click Roles > Create new role. Provide a name like secret-manager-role for storage service and assign the following permissions.
secretmanager.versions.access
secretmanager.versions.add
Go to IAM & Admin > IAM. Search for the service account that was created for Kyvos.
Click Edit Principal.
Click Add another role. Select the secret-manager-role (created in Step1).
Click Add condition.
Enter the Title as Secret Manager permission, and add conditions as:
Adding the first condition
Select the Condition Type as Resource > Name.
Select the Operator as Starts with
In the Value field, enter theĀ Resource ID of Secret manager captured in Creating a secret section.
Adding the second condition
Click Add to add another condition.
Select the Condition Type as Resource > Service.
Select the Operator as is
In Resource Service, select the secretmanager.googleapis.com service. To know more about this service, refer to Google Documentation.
Click Save.