설명
Azure Logic Apps Standard에서는 관리 ID를 지원하는 커넥터와 작업에 그 ID를 인증 방식으로 지정할 수 있습니다.
잠재적 영향
키를 사용하는 연결은 키가 유출되면 악용될 수 있고, 키를 먼저 폐기하면 워크플로가 중단될 수 있습니다.
해결 방법
앱에 SystemAssigned ID를 추가하거나 UserAssigned와 identity_ids를 지정하세요. 대상 리소스에 필요한 권한을 부여하고 지원되는 각 연결에서 관리 ID 인증을 선택하세요. 해당 작업을 실행해 보고 더 이상 쓰지 않는 비밀만 폐기하세요.
예시
두 예제 모두 호스트 스토리지에 storage_account_access_key를 사용합니다. 이 키를 폐기하려면 스토리지 인증도 별도로 전환해야 합니다.
변경 전
hcl
resource "azurerm_logic_app_standard" "example" {
name = "example-logic-app"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
app_service_plan_id = azurerm_service_plan.example.id
storage_account_name = azurerm_storage_account.example.name
storage_account_access_key = azurerm_storage_account.example.primary_access_key
}
변경 후
hcl
resource "azurerm_logic_app_standard" "example" {
name = "example-logic-app"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
app_service_plan_id = azurerm_service_plan.example.id
storage_account_name = azurerm_storage_account.example.name
storage_account_access_key = azurerm_storage_account.example.primary_access_key
identity {
type = "SystemAssigned"
}
}