Service Fabric 관리 인증 설정 점검

클러스터 관리 클라이언트의 인증과 역할을 올바르게 구성하세요.

설명

Azure Service Fabric 관리 클라이언트에 Microsoft Entra 인증을 쓰려면 테넌트와 등록된 두 애플리케이션을 지정하세요. X.509 클라이언트 인증서로도 접근을 관리할 수 있습니다.

잠재적 영향

테넌트 ID를 빠뜨리면 Entra 구성을 배포할 수 없습니다. 역할을 잘못 할당하면 일반 사용자에게 클러스터 관리 권한이 생길 수 있습니다.

해결 방법

azure_active_directory에 tenant_id, cluster_application_id, client_application_id를 입력하세요. 관리자와 일반 사용자의 역할을 지정하고 각각 접속해 권한을 확인하세요. 인증서를 쓰는 경우에는 허용한 클라이언트 인증서와 역할을 확인하세요.

예시

첫 번째 예제에는 필수 tenant_id가 빠져 있습니다. 실제 배포에는 지원되는 클러스터 버전, HTTPS 관리 엔드포인트, 노드 및 클러스터 인증서 설정도 필요합니다.

변경 전

hcl
resource "azurerm_service_fabric_cluster" "example" {
  name                 = "example-servicefabric"
  resource_group_name  = azurerm_resource_group.example.name
  location             = azurerm_resource_group.example.location
  reliability_level    = "Bronze"
  upgrade_mode         = "Manual"
  cluster_code_version = var.cluster_code_version
  vm_image             = "Windows"
  management_endpoint  = var.management_endpoint

  azure_active_directory {
    cluster_application_id = var.cluster_application_id
    client_application_id  = var.client_application_id
  }
}

변경 후

hcl
resource "azurerm_service_fabric_cluster" "example" {
  name                 = "example-servicefabric"
  resource_group_name  = azurerm_resource_group.example.name
  location             = azurerm_resource_group.example.location
  reliability_level    = "Bronze"
  upgrade_mode         = "Manual"
  cluster_code_version = var.cluster_code_version
  vm_image             = "Windows"
  management_endpoint  = var.management_endpoint

  azure_active_directory {
    tenant_id              = var.tenant_id
    cluster_application_id = var.cluster_application_id
    client_application_id  = var.client_application_id
  }
}

참조