trafficcontrol icon indicating copy to clipboard operation
trafficcontrol copied to clipboard

Send email to user's email address when a PUT/POST/DELETE is made via TO API

Open mitchell852 opened this issue 1 year ago • 2 comments

This Feature Request affects these Traffic Control components:

  • Traffic Ops
  • Traffic Portal

Description

For security reasons, it would be helpful to receive an email when a change is made by my user to notify me of any potential unauthorized changes. This email would only be sent on PUT/POST/DELETE api calls performed by my user. Not GETs. The email would be sent only if an email address is defined for the user.

In addition, the user should be able to opt out of emails but by default emails should be sent.

The contents of the email can simply be the change log content. ie.:

` USER: username1234 SERVER: cdn-ec-02.cdn.foo.bar, ID: 1234, ACTION: updated

If this action was not performed by you, please contact your security representative `

mitchell852 avatar Apr 21 '23 19:04 mitchell852

That seems extremely annoying. Imagine that I filter the servers table by those with a given Profile, then queue updates on those servers. I now have potentially hundreds of emails being sent to me. It's hard to imagine anyone not opting out of that.

ocket8888 avatar Apr 24 '23 18:04 ocket8888

That seems extremely annoying. Imagine that I filter the servers table by those with a given Profile, then queue updates on those servers. I now have potentially hundreds of emails being sent to me. It's hard to imagine anyone not opting out of that.

yeah i see your point. bulk actions would result in bulk emails although bulk actions are not supported in TPv1 but i suppose they are in TO api if you build a script to do so.

mitchell852 avatar May 18 '23 15:05 mitchell852