forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add ABAC support on role asssignment
- Loading branch information
Showing
3 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
global_settings = { | ||
default_region = "region1" | ||
regions = { | ||
region1 = "francecentral" | ||
} | ||
} | ||
|
||
resource_groups = { | ||
test = { | ||
name = "test" | ||
} | ||
} | ||
|
||
storage_accounts = { | ||
sa1 = { | ||
name = "ada9a3027eec" | ||
resource_group_key = "test" | ||
account_kind = "BlobStorage" | ||
account_tier = "Standard" | ||
account_replication_type = "LRS" | ||
|
||
tags = { | ||
environment = "dev" | ||
team = "IT" | ||
} | ||
|
||
containers = { | ||
dev = { | ||
name = "random" | ||
} | ||
} | ||
} | ||
} | ||
|
||
managed_identities = { | ||
msi01 = { | ||
name = "example-msi-rolemap-msi" | ||
resource_group_key = "test" | ||
} | ||
} | ||
|
||
role_mapping = { | ||
built_in_role_mapping = { | ||
storage_accounts = { | ||
sa1 = { | ||
"Storage Blob Data Contributor" = { | ||
managed_identities = { | ||
keys = [ | ||
{ | ||
key = "msi01", | ||
condition = <<EOT | ||
( | ||
( | ||
!(ActionMatches{'Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read'} AND NOT SubOperationMatches{'Blob.List'}) | ||
) | ||
OR | ||
( | ||
@Resource[Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags:Malware Scanning scan result<$key_case_sensitive$>] StringEqualsIgnoreCase 'no threats found' | ||
) | ||
) | ||
EOT | ||
} | ||
] | ||
}, | ||
}, | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters