SeanFeldman/azure-events-wishlist

APIM certificate is nearly expired

Opened this issue · 4 comments

Usecase scenario

Get notified when a certificate in APIM is nearly expired

Great idea, thanks!

I'll challenge this one 🙂
Event is a manifestation of something that has happened. This ask feels like a desire to notify about something that will happen. Also, what is "nearly". Is a week enough? A month? An event has to be a discrete event. For example, "APIM Certificate crossed lapsing threshold of 30 days".

I do see your point, but this event would be foundational for automated certificate renewal processes.

Azure Key Vault already has this which allows you to renew the cert before it's too late.

https://docs.microsoft.com/en-us/azure/key-vault/event-grid-tutorial

I didn't say this event has no place. I am saying the event has to be defined better and be a discrete event. "nearly expired" is not going to work, unless the period is defined. And even then, Key Vault will only fire when there's a certain threshold that is crossed (30 days before expiration, 1 week, etc). That's what I'm trying to challenge. Aside from that, the idea of the event is good.