lemur_slack package

lemur_slack Module

plugin Module

class lemur.plugins.lemur_slack.plugin.SlackNotificationPlugin

Bases: ExpirationNotificationPlugin

additional_options = [{'helpMessage': 'The url Slack told you to use for this integration', 'name': 'webhook', 'required': True, 'type': 'str', 'validation': '^https:\\/\\/hooks\\.slack\\.com\\/services\\/.+$'}, {'default': 'Lemur', 'helpMessage': 'The great storyteller', 'name': 'username', 'type': 'str', 'validation': '^.+$'}, {'helpMessage': 'Where to send to, either @username or #channel', 'name': 'recipients', 'required': True, 'type': 'str', 'validation': '^(@|#).+$'}]
author: str | None = 'Harm Weites'
author_url: str | None = 'https://github.com/netflix/lemur'
description: str | None = 'Sends notifications to Slack'
send(notification_type, message, targets, options, **kwargs)

A typical check can be performed using the notify command: lemur notify

While we receive a targets parameter here, it is unused, as Slack webhooks do not allow dynamic re-targeting of messages. The webhook itself specifies a channel.

slug: str | None = 'slack-notification'
title: str | None = 'Slack'
version = 'unknown'
lemur.plugins.lemur_slack.plugin.create_certificate_url(name)
lemur.plugins.lemur_slack.plugin.create_expiration_attachments(certificates)
lemur.plugins.lemur_slack.plugin.create_rotation_attachments(certificate)