commit | 422bbb7f191e9bc1a16a739d1a389c9a84e0ca63 | [log] [tgz] |
---|---|---|
author | dshishliannikov <dshishliannikov@mirantis.com> | Wed Nov 02 12:29:35 2022 -0400 |
committer | Michal Kobus <mkobus@mirantis.com> | Thu Nov 03 07:26:13 2022 +0000 |
tree | 43388099350f0feaaec6aada9c5626a4338df1ca | |
parent | 532052d2ae375282bc06729d10a879c2378d7915 [diff] |
bump cryptography package to fix CVE-2022-3786 and CVE-2022-3602 https://cryptography.io/en/latest/changelog/#v38-0-3 Change-Id: I522e4a030cec53623be36a5e56d4a686877d7e8f Related-to: MKE-9302
Prometheus Alertmanager webhook receiver sending alert notification to Salesforce.
Install Python dependencies:
$ virtualenv venv -p python3 $ source venv/bin/activate (venv)$ source sf_notifier/vars/development (venv)$ pip install --upgrade pip (venv)$ pip install -e .
Add to settings/development.py
credentials for your Salesforce customer (not engineering) account:
SF_CONFIG = { 'AUTH_URL': 'xxx', 'USERNAME': 'xxx', 'PASSWORD': 'xxx', 'ORGANIZATION_ID': 'xxx', 'ENVIRONMENT_ID': 'xxx', 'SANDBOX_ENABLED': True }
You may also specify environment variables to override Python settings:
export SFDC_AUTH_URL="xxx" export SFDC_USERNAME="xxx" export SFDC_PASSWORD="xxx" export SFDC_ORGANIZATION_ID="xxx" export SFDC_ENVIRONMENT_ID="xxx" export SFDC_SANDBOX_ENABLED=true
Run server:
(venv)$ uwsgi --http 127.0.0.1:5000 --wsgi-file sf_notifier/server.py --callable app_dispatch
Check in browser:
http://127.0.0.1:5000/metrics