Post Key Vault Secrets report to Slack webhook
Project description
azure-key-vault-alert
Description
Generates a Key Vault Secret status report using ops-py-azure-key-vault-report for one more Key Vaults.
Each report is posted continuously to Slack using ops-py-slack-alert
When done, an optional final notify is sent to Slack using an additional webhook.
Installation
pip install ops-py-azure-key-vault-alert
Usage
Export the Slack Webhook Environment Variables:
-
SLACK_WEBHOOK_REPORT
Each report is posted to the value of this webhook. E.g.:
export SLACK_WEBHOOK_REPORT="https://hooks.slack.com/workflows/T02XYZ..."
-
SLACK_WEBHOOK_NOTIFY
When all the reports have been posted, an additional POST is performed to the value of this webhook. E.g.:
export SLACK_WEBHOOK_NOTIFY="https://hooks.slack.com/workflows/T02ZYX..."
Provide the list of key vaults to generate reports for after the -v
/ --vaults
'
command line argument (space separated) when executing the code. E.g.:
python3 azure_key_vault_alert -v kv-prod kv-dev kv-qa
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ops-py-azure-key-vault-alert-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5870940c067d1a9e5032cf65c83ed6c9a1f7a981912c63354638e5a8826fcdf |
|
MD5 | 6d7ae0dc315fa80c4d2640bd0c14618f |
|
BLAKE2b-256 | cd61650834b475a338ba560668776e7a113eda10c44eb1016bfe1bc0b9974be2 |
Hashes for ops_py_azure_key_vault_alert-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa3e9fd3f16c9518834272465316f0abd2e3c94ce792ebdfac2dcd44f10aa785 |
|
MD5 | 32d41888c1f6cafb0503708dc3db7f13 |
|
BLAKE2b-256 | 1df4ca0167e4a20ee062177d3a8aae4cc2f5011e55350b0d3cd61ecb6560c9d5 |