mirror of
https://github.com/RealOrangeOne/infrastructure.git
synced 2026-07-17 16:35:58 +00:00
Use separate access keys per restic repository
PVE TBC
This commit is contained in:
parent
55df3e8fa3
commit
c66e9f368f
10 changed files with 111 additions and 87 deletions
|
|
@ -64,6 +64,25 @@ resource "b2_application_key" "restic" {
|
|||
]
|
||||
}
|
||||
|
||||
resource "b2_application_key" "restic_repos" {
|
||||
for_each = toset(["walker", "tang", "casey"])
|
||||
|
||||
key_name = "restic-${each.key}"
|
||||
bucket_id = b2_bucket.restic.id
|
||||
name_prefix = "${each.key}/"
|
||||
capabilities = [
|
||||
"readFiles",
|
||||
"deleteFiles",
|
||||
"listBuckets",
|
||||
"listFiles",
|
||||
"readBucketEncryption",
|
||||
"readBuckets",
|
||||
"shareFiles",
|
||||
"writeBucketEncryption",
|
||||
"writeFiles",
|
||||
]
|
||||
}
|
||||
|
||||
resource "b2_application_key" "infrastructure" {
|
||||
key_name = "infrastructure"
|
||||
capabilities = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue