Skip to content

Conversation

@dhruvmicrosoft
Copy link
Contributor

This pull request introduces several changes to enhance the automation scripts and configuration files by integrating Azure Key Vault for secret management and improving the handling of temporary files. The most important changes include adding Key Vault parameters, implementing functions to check permissions and retrieve secrets from Key Vault, and ensuring temporary files are properly managed.

Key Vault Integration:

Enhancements to Ansible Playbook Execution:

  • scripts/sap_automation_qa.sh: Updated run_ansible_playbook() to support retrieving SSH keys and passwords from Key Vault, and added logic to handle temporary files created for these secrets.
  • scripts/sap_automation_qa.sh: Modified the main() function to include a new authentication type KEYVAULT and ensure Key Vault parameters are set.

Temporary File Management:

  • scripts/sap_automation_qa.sh: Added cleanup logic to delete temporary files after use in both run_ansible_playbook() and main() functions.

@devanshjainms devanshjainms requested a review from Copilot April 2, 2025 17:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request integrates Azure Key Vault for secret management and updates automation scripts for improved temporary file handling.

  • Added Key Vault parameters (key_vault_id and secret_name) to the sap-parameters.yaml file
  • Updated automation scripts to check MSI permissions and retrieve secrets from Key Vault
  • Implemented cleanup logic for temporary files after use
Files not reviewed (1)
  • scripts/sap_automation_qa.sh: Language not supported

@dhruvmicrosoft
Copy link
Contributor Author

Screenshot 2025-04-03 164550

AUTH TYPE-- VM PASSWORD no local file

@dhruvmicrosoft
Copy link
Contributor Author

Screenshot 2025-04-03 170150

This is when authtype is VMPASSWORD and we use local file

@dhruvmicrosoft
Copy link
Contributor Author

image

AuthType is SSHKEY using Local File

@dhruvmicrosoft
Copy link
Contributor Author

image

AuthType is SSHKEY uses KeyVault

@dhruvmicrosoft dhruvmicrosoft deleted the key_vault_update branch April 7, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants