Skip to content

Commit

Permalink
configure-vault script
Browse files Browse the repository at this point in the history
  • Loading branch information
pelegor committed Jan 15, 2024
1 parent f3b9676 commit a00d407
Show file tree
Hide file tree
Showing 3 changed files with 265 additions and 6 deletions.
253 changes: 253 additions & 0 deletions azure/configure-vault.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
param(
[string]$AdminPass,
[string]$MasterPass,
[string]$PrimaryOrDR,
[string]$PrimaryVaultIP,
[string]$DRPassword,
[string]$LicenseFileName,
[string]$RecPubFileName,
[string]$StorageName,
[string]$ContainerName,
[string]$StorageAccountKey,
[string]$VKMName,
[string]$Secret
)

# Install Az module
Install-Module -Name Az -AllowClobber -Force

# Modify the Hardening Activation script file to use Az module
$HardeingActivationScript = "C:\CyberArk\HardeningActivation.ps1"
(Get-Content -Path $HardeingActivationScript) -replace "AzureStorage", "AzStorage" | Set-Content -Path $HardeingActivationScript

# Execute the Hardening Activation script

&$HardeingActivationScript -AdminPass $AdminPass -MasterPass $MasterPass -PrimaryOrDR $PrimaryOrDR -PrimaryVaultIP $PrimaryVaultIP -DRPassword $DRPassword -LicenseFileName $LicenseFileName -RecPubFileName $RecPubFileName -StorageName $StorageName -ContainerName $ContainerName -StorageAccountKey $StorageAccountKey -VKMName $VKMName -Secret $Secret
# SIG # Begin signature block
# MIIqRgYJKoZIhvcNAQcCoIIqNzCCKjMCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCARRsiMXcmKG4MA
# cBVAIxk7+2Mq5qO8wc5l0v4bNLXz3aCCGFcwggROMIIDNqADAgECAg0B7l8Wnf+X
# NStkZdZqMA0GCSqGSIb3DQEBCwUAMFcxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBH
# bG9iYWxTaWduIG52LXNhMRAwDgYDVQQLEwdS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NiBUaW1lU3RhbXBpbmcgQ0ECEHvU5a+6zAc/oQEj
# BCJBTRIwCwYJYIZIAWUDBAIBoIGkMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0BCRAB
# BDAcBgkqhkiG9w0BCQUxDxcNMjQwMTE1MTk0MzQ0WjAvBgkqhkiG9w0BCQQxIgQg
# eSNkb+c/kBerbWUGHEyxP+8BbieB7Kw8ftnkjEgpm7IwNwYLKoZIhvcNAQkQAi8x
# KDAmMCQwIgQgxHTOdgB9AjlODaXk3nwUxoD54oIBPP72U+9dtx/fYfgwCwYJKoZI
# hvcNAQEBBIIBAC5qFkQtinQXszcxEzlpies6awIhbzzoqz/tg38KqeUhrBdXm417
# Har7pJvDK8KGXhxUmOy0yJJd1yeTrEIkYvgonZR4NWJgC3jUk6ufZHVk6kzCiX3D
# dNgiKwMrknytF93qYKn28s6hMhgFWmBGpsoX13GmOczK/TwPKHgfpAMULSAqaZ/H
# twm9wm/bz+qt3ICx7jOaaPPDLmbjfk9aRj+2k/FIv7wpGcFy20LtJ2BQm0Ilz7NR
# cNZL4KqaBkCXWyLjLH+3L1QCbNckn6UjPJ3C202Azn9iIcA8QIv2dlqZb5CDlMN9
# jEnBWH9Ex+AMbkKOIJCGzbqrsIAIbCJngCQ=
# SIG # End signature block
6 changes: 4 additions & 2 deletions azure/pas-dr-deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,12 @@
"typeHandlerVersion": "1.9",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": []
"fileUris": [
"https://raw.githubusercontent.com/cyberark/pas-on-cloud/v12.6/azure/configure-vault.ps1"
]
},
"protectedSettings": {
"commandToExecute": "[concat('powershell -ExecutionPolicy Unrestricted -file ', 'C:\\CyberArk\\HardeningActivation.ps1', ' -PrimaryOrDR DR ', ' -PrimaryVaultIP ', parameters('Primary Vault Private IP'), ' -DRPassword ', parameters('DR User Password'), ' -VKMName ', parameters('Key Vault Name'), ' -Secret ', parameters('DR User Secret'))]"
"commandToExecute": "[concat('powershell -ExecutionPolicy Unrestricted -file configure-vault.ps1 -PrimaryOrDR DR ', ' -PrimaryVaultIP ', parameters('Primary Vault Private IP'), ' -DRPassword ', parameters('DR User Password'), ' -VKMName ', parameters('Key Vault Name'), ' -Secret ', parameters('DR User Secret'))]"
}
},
"dependsOn": [
Expand Down
12 changes: 8 additions & 4 deletions azure/pas-vault-deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,14 @@
"type":"CustomScriptExtension",
"typeHandlerVersion":"1.9",
"autoUpgradeMinorVersion":true,

"protectedSettings":{
"commandToExecute":"[concat('powershell -ExecutionPolicy Unrestricted -file ', 'C:\\CyberArk\\HardeningActivation.ps1', ' -AdminPass ', parameters('Primary Vault Admin Password'), ' -MasterPass ', parameters('Primary Vault Master Password'), ' -PrimaryOrDR Primary -PrimaryVaultIP 1.1.1.1 -DRPassword ', parameters('DR User Password'), ' -LicenseFileName ', parameters('Vault License File'), ' -RecPubFileName ', parameters('Recovery Public Key'), ' -StorageName ', parameters('Storage Account Name'), ' -ContainerName ', parameters('Container name'), ' -StorageAccountKey ', parameters('Storage account access key'), ' -VKMName ', parameters ('Key Vault Name'), ' -Secret ', parameters ('DR User Secret'))]"
}
"settings":{
"fileUris":[
"https://raw.githubusercontent.com/cyberark/pas-on-cloud/v12.6/azure/configure-vault.ps1"
]
},
"protectedSettings":{
"commandToExecute":"[concat('powershell -ExecutionPolicy Unrestricted -file configure-vault.ps1 -AdminPass ', parameters('Primary Vault Admin Password'), ' -MasterPass ', parameters('Primary Vault Master Password'), ' -PrimaryOrDR Primary -PrimaryVaultIP 1.1.1.1 -DRPassword ', parameters('DR User Password'), ' -LicenseFileName ', parameters('Vault License File'), ' -RecPubFileName ', parameters('Recovery Public Key'), ' -StorageName ', parameters('Storage Account Name'), ' -ContainerName ', parameters('Container name'), ' -StorageAccountKey ', parameters('Storage account access key'), ' -VKMName ', parameters ('Key Vault Name'), ' -Secret ', parameters ('DR User Secret'))]"
}
},
"dependsOn":[
"[concat('Microsoft.Compute/virtualMachines/', parameters('Primary Vault VM Name'), '/extensions/ManagedIdentityExtensionForWindows')]",
Expand Down

0 comments on commit a00d407

Please sign in to comment.