Skip to content

Commit 0b3f0de

Browse files
authored
Merge pull request #48614 from sbeskin-redhat/OADP_419_minimum_permissions_for_storage_location_providers
OADP-419 Minimum permissions for storage location providers
2 parents ea2f5f7 + b6b19fc commit 0b3f0de

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

modules/migration-configuring-aws-s3.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ $ cat > velero-policy.json <<EOF
111111
EOF
112112
----
113113

114-
. Attach the policies to give the `velero` user the necessary permissions:
114+
. Attach the policies to give the `velero` user the minimum necessary permissions:
115115
+
116116
[source,terminal]
117117
----

modules/migration-configuring-azure.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,29 @@ $ AZURE_STORAGE_ACCOUNT_ACCESS_KEY=`az storage account keys list \
127127
--query "[?keyName == 'key1'].value" -o tsv`
128128
----
129129

130+
. Create a custom role that has the minimum required permissions:
131+
+
132+
[source,terminal,subs="attributes+"]
133+
----
134+
AZURE_ROLE=Velero
135+
az role definition create --role-definition '{
136+
"Name": "'$AZURE_ROLE'",
137+
"Description": "Velero related permissions to perform backups, restores and deletions",
138+
"Actions": [
139+
"Microsoft.Compute/disks/read",
140+
"Microsoft.Compute/disks/write",
141+
"Microsoft.Compute/disks/endGetAccess/action",
142+
"Microsoft.Compute/disks/beginGetAccess/action",
143+
"Microsoft.Compute/snapshots/read",
144+
"Microsoft.Compute/snapshots/write",
145+
"Microsoft.Compute/snapshots/delete",
146+
"Microsoft.Storage/storageAccounts/listkeys/action",
147+
"Microsoft.Storage/storageAccounts/regeneratekey/action"
148+
],
149+
"AssignableScopes": ["/subscriptions/'$AZURE_SUBSCRIPTION_ID'"]
150+
}'
151+
----
152+
130153
. Create a `credentials-velero` file:
131154
+
132155
[source,terminal,subs="attributes+"]

modules/migration-configuring-gcp.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ $ SERVICE_ACCOUNT_EMAIL=$(gcloud iam service-accounts list \
8282
--format 'value(email)')
8383
----
8484

85-
. Attach the policies to give the `velero` user the necessary permissions:
85+
. Attach the policies to give the `velero` user the minimum necessary permissions:
8686
+
8787
[source,terminal]
8888
----

0 commit comments

Comments
 (0)