Skip to content

Commit 316c1af

Browse files
CLOUDP-322808: [AtlasCLI] Security violation - leaked secret (#3945)
1 parent bfd9f0f commit 316c1af

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

build/ci/evergreen.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ functions:
423423
- "image_id=/subscriptions/${azure_subscription_id}/resourceGroups/atlascli-image-resources/providers/Microsoft.Compute/images/${image}"
424424
- -var
425425
- "certificate_path=${certificate_path}"
426+
- -var
427+
- "admin_password=${azure_vm_admin_password}"
426428
- command: shell.exec
427429
params:
428430
<<: *go_options

build/ci/terraform/main.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ variable "certificate_path" {
2727
default = "~/.ssh/id_rsa.pub"
2828
}
2929

30+
variable "admin_password" {
31+
type = string
32+
description = "The admin password for the Windows VM"
33+
sensitive = true
34+
}
35+
3036
resource "azurerm_resource_group" "atlascli_vm_rg" {
3137
name = "atlascli-resources"
3238
location = "East US"
@@ -107,7 +113,7 @@ resource "azurerm_windows_virtual_machine" "atlascli_vm" {
107113
resource_group_name = azurerm_resource_group.atlascli_vm_rg.name
108114
size = "Standard_D2s_v3"
109115
admin_username = "atlascli"
110-
admin_password = "P@ssw0rd1234!"
116+
admin_password = var.admin_password
111117
network_interface_ids = [azurerm_network_interface.atlascli_vm_nic.id]
112118
computer_name = "atlasclivm"
113119
os_disk {

0 commit comments

Comments
 (0)