Skip to content

Added a new template based notification hook (e.g for Slack)#338

Merged
J12934 merged 133 commits intosecureCodeBox:mainfrom
nigthknight:feature/notification-hook
Apr 19, 2021
Merged

Added a new template based notification hook (e.g for Slack)#338
J12934 merged 133 commits intosecureCodeBox:mainfrom
nigthknight:feature/notification-hook

Conversation

@nigthknight
Copy link
Member

If applied this PR will add a generic notification-hook.
The notification-hook is supposed to combine slack, ms-teams, email etc.
The ms-teams-webhook will be replaced by this hook in a future release.

This PR does only support Slack Notifications.
Other Notifiers will be added in another PR.

Closes #310
See #318

@J12934 J12934 added enhancement New feature or request hook Implement or update a hook labels Mar 30, 2021
@nigthknight nigthknight force-pushed the feature/notification-hook branch from 51993a2 to f44653f Compare March 31, 2021 06:58
@nigthknight nigthknight force-pushed the feature/notification-hook branch 4 times, most recently from fb3ddf2 to 051cfde Compare April 7, 2021 07:15
@nigthknight nigthknight marked this pull request as ready for review April 12, 2021 10:46
@rfelber rfelber removed the enhancement New feature or request label Apr 12, 2021
@rfelber rfelber added this to the v2.7.0 milestone Apr 13, 2021
@nigthknight nigthknight force-pushed the feature/notification-hook branch 3 times, most recently from 4442b0e to d583b23 Compare April 14, 2021 09:51
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
This Hook will be used for notifications to Slack, MS Teams, Email and
others.
To simplify the implementation I introduced a NotifierFactory to handle
the creation of different Notifiers that handle sending and default
templating.

Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
@nigthknight nigthknight force-pushed the feature/notification-hook branch from d583b23 to 2a4a2f6 Compare April 14, 2021 09:52
We decided it would be best if we provide the additional args to the
Notifiers via process.env to enable us to protect some of these args as
secrets

Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
@nigthknight nigthknight force-pushed the feature/notification-hook branch from 2a4a2f6 to 7b103e0 Compare April 14, 2021 10:42
We decided that we want to protect the `endPoint` for a
NotificationChannel using secrets to avoid leaking e.g. webhook urls

Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
@nigthknight nigthknight force-pushed the feature/notification-hook branch from 67e5294 to 22b0a11 Compare April 14, 2021 11:22
nigthknight and others added 8 commits April 14, 2021 13:38
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
I changed the NOTES.txt to display some basic information about deployed
notifications

Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
@nigthknight nigthknight requested review from J12934 and rfelber April 19, 2021 07:40
@J12934 J12934 merged commit b3bd7f9 into secureCodeBox:main Apr 19, 2021
@rfelber rfelber changed the title feature/notification hook Added a new template based notification hook (e.g for Slack) Apr 20, 2021
@rfelber rfelber linked an issue Apr 23, 2021 that may be closed by this pull request
7 tasks
@nigthknight nigthknight deleted the feature/notification-hook branch October 12, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hook Implement or update a hook

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚓️ Add a generic notification Hook with message templates Implement a Slack Notification Hook

3 participants