poanetwork / poa-devops

POA Network DevOps scripts
GNU General Public License v3.0
11 stars 19 forks source link

Notification triggers for specific actions #11

Open j0xhn opened 6 years ago

j0xhn commented 6 years ago

I think it would be awesome to incorporate our own notification logic into the nodes. I know that DO/AWS/AZURE all have solutions to monitor bandwidth etc...

But possibly we could have a variable to put in a TWILIO or SENDGRID api in order to get customized notifications. I'm not exactly sure what rulesets we'd implement, but some ideas are:

I know some of these aren't necessarily on our specific nodes (like when someone finalizes a ballot) -- so a third-party notification system might work for that and now I'm wanting to build that actually. Thoughts?

igorbarinov commented 6 years ago

Good ideas @johndangerstorey

I'd like to split them into two parts:

We started to work on notification services for ballots. You are very welcome to create a corresponding issue there https://github.com/poanetwork/poa-governance-notifications

For the second improvement, you could use SSH key with a 2nd factor, e.g. Krypton You will get notifications to approve SSH login on your phone Example:

master ~/c/oracles/oracles-landing> git pull --all
Fetching origin
Krypton ▶ Requesting SSH authentication from phone
Krypton ▶ Phone approval required. Respond using the Krypton app
Krypton ▶ Success. Request Allowed ✔
Already up to date.
master ~/c/oracles/oracles-landing>

On your phone: img_1426