Is there a pattern for notifying developers when their credentials are about to expire?

Is there a common "pattern" for sending alerts to developers registered in the portal who have keys/credentials that are about to expire? I suppose it would be not-too-hard to configure a cron job in drupal to do the search, and then... something magic happens.... and then an email gets sent to the dev saying "your key for App named XXXX is set to expire in 19 days" or something similar. Maybe relying on the rules module, and so on.

I have seen some customers who have built a cron job (or a Windows "scheduled task", but same idea) to interrogate the Apigee Edge mgmt server and evaluate the expiry of credentials, and then send out emails as appropriate. This solution relies upon a separate server to run the scheduled task or cron; doesn't necessarily use the Drupal cron job feature.

0 3 222
3 REPLIES 3

@Dino ,

There is a similar implementation already exist. It's possible to extend the same with a quick customization that provides above feature.

If you have noticed there is a rule defined in Apigee Edge Developer Portal where you can act on when app status changes from one to other. It's implemented over cron run. See implementation of devconnect_developer_apps_cron in devconnect_developer_apps module file.

Similarly, You can build one more module with cron hook that checks the credentials expiry & triggers a rule which can be configured by the portal admin to send a notification as an email / sms (if any module that provides rules integration) / slack or any other notification medium.

Hope it helps.

Thank you, Anil, that is intriguing. But regarding

one more module with cron hook that checks the credentials expiry & triggers a rule which can be configured by the portal

Is there an example of such a module?

@Dino , You mean readily available ? It's not at this point of time. One can build quickly with Drupal Expertise & 4 man hours.