2023-06-29 15:58:37 +02:00
|
|
|
include::../description.adoc[]
|
2021-12-14 09:37:33 +00:00
|
|
|
|
2023-06-29 15:58:37 +02:00
|
|
|
include::../ask-yourself.adoc[]
|
2021-12-14 09:37:33 +00:00
|
|
|
|
2023-06-29 15:58:37 +02:00
|
|
|
include::../recommended.adoc[]
|
2021-12-14 09:37:33 +00:00
|
|
|
|
|
|
|
== Sensitive Code Example
|
|
|
|
|
|
|
|
For Typical identity blocks:
|
|
|
|
|
2023-09-07 17:36:14 +02:00
|
|
|
[source,terraform,diff-id=1,diff-type=noncompliant]
|
2021-12-14 09:37:33 +00:00
|
|
|
----
|
|
|
|
resource "azurerm_api_management" "example" { # Sensitive, the identity block is missing
|
|
|
|
name = "example"
|
|
|
|
publisher_name = "company"
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
|
|
|
For connections between Kusto Clusters and Azure Data Factory:
|
|
|
|
|
2023-09-07 17:36:14 +02:00
|
|
|
[source,terraform,diff-id=2,diff-type=noncompliant]
|
2021-12-14 09:37:33 +00:00
|
|
|
----
|
|
|
|
resource "azurerm_data_factory_linked_service_kusto" "example" {
|
|
|
|
name = "example"
|
|
|
|
use_managed_identity = false # Sensitive
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
|
|
|
|
For Typical identity blocks:
|
|
|
|
|
2023-09-07 17:36:14 +02:00
|
|
|
[source,terraform,diff-id=1,diff-type=compliant]
|
2021-12-14 09:37:33 +00:00
|
|
|
----
|
|
|
|
resource "azurerm_api_management" "example" {
|
|
|
|
name = "example"
|
|
|
|
publisher_name = "company"
|
|
|
|
|
|
|
|
identity {
|
|
|
|
type = "SystemAssigned"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
|
|
|
For connections between Kusto Clusters and Azure Data Factory:
|
|
|
|
|
2023-09-07 17:36:14 +02:00
|
|
|
[source,terraform,diff-id=2,diff-type=compliant]
|
2021-12-14 09:37:33 +00:00
|
|
|
----
|
|
|
|
resource "azurerm_data_factory_linked_service_kusto" "example" {
|
|
|
|
name = "example"
|
|
|
|
use_managed_identity = true
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
2023-06-29 15:58:37 +02:00
|
|
|
include::../see.adoc[]
|
2023-05-25 14:18:12 +02:00
|
|
|
|
2021-12-14 09:37:33 +00:00
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
|
|
|
|
'''
|
|
|
|
== Implementation Specification
|
|
|
|
(visible only on this page)
|
|
|
|
|
2023-06-29 15:58:37 +02:00
|
|
|
include::../message.adoc[]
|
2023-05-25 14:18:12 +02:00
|
|
|
|
2023-06-29 15:58:37 +02:00
|
|
|
Only for Azure Data Factory:
|
2023-05-25 14:18:12 +02:00
|
|
|
|
|
|
|
- Make sure that disabling Azure Managed Identities is safe here.
|
|
|
|
|
|
|
|
|
2023-06-29 15:58:37 +02:00
|
|
|
include::../highlighting.adoc[]
|
2022-01-25 18:36:46 +01:00
|
|
|
|
2021-12-14 09:37:33 +00:00
|
|
|
endif::env-github,rspecator-view[]
|