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


Release history Release notifications

History Node

1.4.49

History Node

1.4.47

This version
History Node

1.4.45

History Node

1.4.44

History Node

1.4.43

History Node

1.4.42

History Node

1.4.41

History Node

1.4.39

History Node

1.4.38

History Node

1.4.37

History Node

1.4.34

History Node

1.4.33

History Node

1.4.32

History Node

1.4.31

History Node

1.4.30

History Node

1.4.29

History Node

1.4.28

History Node

1.4.25

History Node

1.4.24

History Node

1.4.23

History Node

1.4.20

History Node

1.4.19

History Node

1.4.17

History Node

1.4.14

History Node

1.4.13

History Node

0.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
peachapisec_slack-1.4.45-py2-none-any.whl (6.5 kB) Copy SHA256 hash SHA256 Wheel py2 Apr 17, 2018
peachapisec-slack-1.4.45.tar.gz (3.9 kB) Copy SHA256 hash SHA256 Source None Apr 17, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page