Skip to main content

Peach API Security Slack Notifications

Project description

This tool provides notification ability via Slack, the popular messaging application.

Installation

Installation of this tool has two steps.

  1. Create the app and webhook in Slack. See documentation for steps.

  2. Install peach2slack

pip install peachapisec-slack

  1. Start using the tool

Syntax

peach2slack

–api http://192.168.1.100 –api_token=xxxx –slack_webhook https://hooks.slack.com/services/xxxxx

All parameters can also be provided via environment variables. This is especially usefull for the Slack webhook url, which can then be stored in your CI secrets store.

Parameters

api:

Peach API Security API URL. Defaults to PEACH_API environ.

api_token:

Peach API Security API Token. Defaults to PEACH_API_TOKEN environ.

slack_webhook:

Slack webhook URL. Defaults to PEACH_SLACK_WEBHOOK environ.

msg:

[optional] Message template to post when no issues are found. Defaults to PEACH_MSG environ.

Defaults to: Security testing completed succesfully, no issues found after {{tests_count}} tests.

failmsg:

[optional] Message template to post when issues are found. Defaults to PEACH_FAILMSG environ.

Defaults to: A total of {{failure_count}} failures from {{tests_count}} tests were found.

errormsg:

[optional] Error message template to post when job did’t complete. Defaults to PEACH_ERRORMSG environ.

Defaults to: Error: {{reason}}

Message Template

A message template is provided using any of the following placeholders:

{{failure_count}}:

Count of failured identified during job

{{job_id}}:

Job Identifier (GUID)

{{job_url}}:

Url to job details. Requires ‘baseurl’ be provided.

{{job_tags}}:

Tags set on job

{{project}}:

Project name

{{reason}}:

Job completion reason. Succes or error message.

{{tests_count}}:

Count of security tests performed during testing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peachapisec-slack-1.5.41.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

peachapisec_slack-1.5.41-py2-none-any.whl (4.5 kB view details)

Uploaded Python 2

File details

Details for the file peachapisec-slack-1.5.41.tar.gz.

File metadata

  • Download URL: peachapisec-slack-1.5.41.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15

File hashes

Hashes for peachapisec-slack-1.5.41.tar.gz
Algorithm Hash digest
SHA256 89df1417a9fea1a42e80c7b0c0a49afd81bf2e511d9b5cb14661ad6762ea3ecb
MD5 cb7344c56442fc7efefa6be4f8f93f67
BLAKE2b-256 6a1fc261727abe707727a2ee0ac336030179eb87a71b7d0ea56143e65c25d00e

See more details on using hashes here.

File details

Details for the file peachapisec_slack-1.5.41-py2-none-any.whl.

File metadata

  • Download URL: peachapisec_slack-1.5.41-py2-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15

File hashes

Hashes for peachapisec_slack-1.5.41-py2-none-any.whl
Algorithm Hash digest
SHA256 f83fa91e67419eef575ecef21aa3dc724061bdd8b45456f91eaa03b0eb27f534
MD5 daa5a258dae31d0650d082f8dc48c3f4
BLAKE2b-256 a729f0a09bdcadf2b73d91e0092ed391ff698b2eae291ebc3d857cfc9024381a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page