Skip to content

Commit

Permalink
document role policy
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Mar 7, 2024
1 parent f71edc5 commit fbd113e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,25 @@ Exoscale Block Storage Container Storage Interface Driver.

* Make sure you have the [CCM](https://github.com/exoscale/exoscale-cloud-controller-manager) deployed and running in your cluster.

* Create secret with [exoscale-secret.sh](./deployment/exoscale-secret.sh).
* An API key and we recommend assigning it an IAM role with minimal permissions as in the following policy:
``` json
{
"default-service-strategy": "deny",
"services": {
"compute": {
"type": "rules",
"rules": [
{
"expression": "operation in ['list-zones', 'get-block-storage-volume', 'list-block-storage-volumes', 'create-block-storage-volume', 'delete-block-storage-volume', 'attach-block-storage-volume-to-instance', 'detach-block-storage-volume', 'update-block-storage-volume-labels', 'resize-block-storage-volume', 'get-block-storage-snapshot', 'list-block-storage-snapshots', 'create-block-storage-snapshot', 'delete-block-storage-snapshot']",
"action": "allow"
},
]
}
}
}
```

* Create a kubernetes secret for the API key with [exoscale-secret.sh](./deployment/exoscale-secret.sh).
```Bash
export EXOSCALE_API_KEY=EXOxxxxx
export EXOSCALE_API_SECRET=xxxxx
Expand Down

0 comments on commit fbd113e

Please sign in to comment.