Skip to content

Commit

Permalink
⚰️ Remove password_domain_admin and password_domain_azure_ad_connect …
Browse files Browse the repository at this point in the history
…from SHM
  • Loading branch information
jemrobinson committed Apr 15, 2024
1 parent a608f2c commit 2e90c86
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions data_safe_haven/infrastructure/stacks/shm/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,48 +124,6 @@ def __init__(
tags=child_tags,
)

# Secret: Domain admin password
password_domain_admin = pulumi_random.RandomPassword(
f"{self._name}_password_domain_admin",
length=20,
special=True,
opts=ResourceOptions.merge(child_opts, ResourceOptions(parent=key_vault)),
)
keyvault.Secret(
f"{self._name}_kvs_password_domain_admin",
properties=keyvault.SecretPropertiesArgs(
value=password_domain_admin.result
),
resource_group_name=resource_group.name,
secret_name="password-domain-admin",
vault_name=key_vault.name,
opts=ResourceOptions.merge(
child_opts, ResourceOptions(parent=password_domain_admin)
),
tags=child_tags,
)

# Secret: Azure ADConnect password
password_domain_azure_ad_connect = pulumi_random.RandomPassword(
f"{self._name}_password_domain_azure_ad_connect",
length=20,
special=True,
opts=ResourceOptions.merge(child_opts, ResourceOptions(parent=key_vault)),
)
keyvault.Secret(
f"{self._name}_kvs_password_domain_azure_ad_connect",
properties=keyvault.SecretPropertiesArgs(
value=password_domain_azure_ad_connect.result
),
resource_group_name=resource_group.name,
secret_name="password-domain-azure-ad-connect",
vault_name=key_vault.name,
opts=ResourceOptions.merge(
child_opts, ResourceOptions(parent=password_domain_azure_ad_connect)
),
tags=child_tags,
)

# Secret: Linux update server admin password
password_update_server_linux_admin = pulumi_random.RandomPassword(
f"{self._name}_password_update_server_linux_admin",
Expand Down Expand Up @@ -243,10 +201,6 @@ def __init__(
)

# Register outputs
self.password_domain_admin = Output.secret(password_domain_admin.result)
self.password_domain_azure_ad_connect = Output.secret(
password_domain_azure_ad_connect.result
)
self.password_update_server_linux_admin = Output.secret(
password_update_server_linux_admin.result
)
Expand Down

0 comments on commit 2e90c86

Please sign in to comment.