teleport/integrations/access/slack
Edward Dowling f07b291d44
Add opsgenie plugin (#25995)
* Move opsgenie client code to integrations/access

* Add initial opsgenie bot skeleton and stubs

* Add opsgenie check and set default to pluginv1

* Fix check and set defaults for opsgenie plugin config

* Fill out bot stubs for opsgenie bot

* Add loadOpsgenieConfig to integrations

* Swap to using bearer token for opsgenie plugin

* Fix formating in opsgenie bot

* Reorder imports to fix lint errors

* Add config field to plugins to allow for different recipient logic

Allows bots that use schedules as recipients to determine their own
logic for defaulting etc

* Add notimplemented err for check health for opsgenie bots

* Add check health to opsgenie client and bot

* Rename recipientsAreSchedules to usersAsRecipients

* Add pluginBearertokencredentials checkAndSetdefaults

* Add resolveAnnotations to reqdata and use schedules from that

* Update integrations/access/opsgenie/bot.go

Co-authored-by: Roman Tkachenko <roman@goteleport.com>

* Prevent default schedules being processed if annotations are set

* Remove loadOpsgenieConfig

* Rename opsgneie addr field

* Add more verbose error messages to opsgenie client

* Update api/proto/teleport/legacy/types/types.proto

Co-authored-by: Roman Tkachenko <roman@goteleport.com>

* Update integrations/access/opsgenie/bot.go

Co-authored-by: Roman Tkachenko <roman@goteleport.com>

* Fix error message for recipients field in opsgenie bot

* Change apiEndpoint field name

* Remove check for unused field from opsgenie config

* Remove usersAsRecipients flag

* Reserve addr and change change field number of api_endpoint

* Update integrations/access/opsgenie/client.go

Co-authored-by: Roman Tkachenko <roman@goteleport.com>

* Rename reqAnnotationresponderskey to reqannotationscheduleskey

* Remove unused check and set defaults

* Rename REqAnnotationScheduleskey

* Use types.Labels alias where possible

* Simplify loop in opsgenie bot to satisfy linter

---------

Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2023-05-31 12:40:55 +00:00
..
app.go Vendor slack plugin and supporting libraries (#23045) 2023-03-22 19:39:07 +00:00
bot.go Hosted plugin manager prerequisites (#23922) 2023-04-11 15:24:25 +00:00
config.go Add opsgenie plugin (#25995) 2023-05-31 12:40:55 +00:00
fake_slack_test.go Vendor slack plugin and supporting libraries (#23045) 2023-03-22 19:39:07 +00:00
helpers_test.go Hosted plugin manager prerequisites (#23922) 2023-04-11 15:24:25 +00:00
http.go chore: Bump github.com/go-resty/resty/v2 from 2.3.0 to 2.7.0 (#23642) 2023-03-27 16:47:50 +00:00
oauth.go Vendor slack plugin and supporting libraries (#23045) 2023-03-22 19:39:07 +00:00
oauth_test.go Vendor slack plugin and supporting libraries (#23045) 2023-03-22 19:39:07 +00:00
slack_test.go Hosted plugin manager prerequisites (#23922) 2023-04-11 15:24:25 +00:00
status.go Hosted plugin manager prerequisites (#23922) 2023-04-11 15:24:25 +00:00
status_test.go Hosted plugin manager prerequisites (#23922) 2023-04-11 15:24:25 +00:00
types.go Vendor slack plugin and supporting libraries (#23045) 2023-03-22 19:39:07 +00:00