File tree Expand file tree Collapse file tree 4 files changed +21
-7
lines changed
Expand file tree Collapse file tree 4 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,20 @@ Deployment examples can be found [here][].
4444
4545[ here ] : https://github.com/corelight/corelight-cloud/tree/main/terraform/azure-scaleset-sensor
4646
47+ #### Least Privilege Deployment
48+ The Corelight Azure sensor can be deployed with the following privileges:
49+
50+ 1 . The ` Network Contributor ` built-in role
51+ 2 . ` Microsoft.Compute/images/read ` on the Corelight VM Image
52+ 3 . A custom role definition with the following permissions:
53+ ```
54+ "Microsoft.Resources/subscriptions/resourcegroups/read"
55+ "Microsoft.Compute/virtualMachineScaleSets/read"
56+ "Microsoft.Insights/autoScaleSettings/read"
57+ "Microsoft.Compute/virtualMachineScaleSets/write"
58+ "Microsoft.Insights/autoScaleSettings/write"
59+ ```
60+
4761## License
4862
4963The project is licensed under the [ MIT] [ ] license.
Original file line number Diff line number Diff line change 11data "azurerm_subnet" "mon_subnet" {
22 name = local. monitoring_subnet_name
3- resource_group_name = var . resource_group_name
3+ resource_group_name = local . monitoring_subnet_resource_group_name
44 virtual_network_name = local. monitoring_subnet_vnet_name
55}
Original file line number Diff line number Diff line change 11locals {
2- monitoring_subnet_resource_id_slice = split (" /" , var. monitoring_subnet_id )
3- monitoring_subnet_name = local. monitoring_subnet_resource_id_slice [length (local. monitoring_subnet_resource_id_slice ) - 1 ]
4- monitoring_subnet_vnet_name = local. monitoring_subnet_resource_id_slice [8 ]
5-
6- monitoring_health_check_port = 41080
2+ monitoring_subnet_resource_id_slice = split (" /" , var. monitoring_subnet_id )
3+ monitoring_subnet_name = local. monitoring_subnet_resource_id_slice [length (local. monitoring_subnet_resource_id_slice ) - 1 ]
4+ monitoring_subnet_resource_group_name = local. monitoring_subnet_resource_id_slice [4 ]
5+ monitoring_subnet_vnet_name = local . monitoring_subnet_resource_id_slice [ 8 ]
6+ monitoring_health_check_port = 41080
77
88 # https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-custom-probe-overview#probe-source-ip-address
99 azure_lb_health_check_probe_ip = " 168.63.129.16/32"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module "sensor_config" {
1313 sensor_monitoring_interface_name = " eth1"
1414 sensor_health_check_probe_source_ranges_cidr = [local . azure_lb_health_check_probe_ip ]
1515 sensor_health_check_http_port = local. monitoring_health_check_port
16- subnetwork_monitoring_gateway = cidrhost (data. azurerm_subnet . mon_subnet . address_prefix , 1 )
16+ subnetwork_monitoring_gateway = cidrhost (data. azurerm_subnet . mon_subnet . address_prefixes [ 0 ] , 1 )
1717 subnetwork_monitoring_cidr = data. azurerm_subnet . mon_subnet . address_prefix
1818 gzip_config = true
1919 base64_encode_config = true
You can’t perform that action at this time.
0 commit comments