机密到期时发出警报或事件 [英] Alert or event on secret expiry

查看:157
本文介绍了机密到期时发出警报或事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将Azure Key Vault配置为在秘密到期时触发警报或事件?

Is it possible to configure Azure Key Vault to trigger an alert or event on secret expiry?

我有一项使用存储在密钥库中的机密的服务,有些会在一年后过期,有些会在90天后过期-我想在机密即将过期时收到警报,以便我可以触发更新过程.

I have a service that uses secrets stored in key vault and some expire after a year, some after 90 days - I wanted to be alerted when a secret is about to expire so that I can trigger the updation process.

谢谢

推荐答案

从来没有遇到过今天可以做到的方式.

Have never come across a way this can be done today.

但是,您可以编写一个自定义的powershell/c#脚本来执行此操作并将其安排为每天运行.到期详细信息作为密钥/秘密详细信息的一部分发送.该脚本将需要使用获取"访问权限来访问保管库.

However you can write a custom powershell/c# script that can do this and schedule it to run everyday. The expiry details is send as part of the key/secret details. The script will need to access the vault with 'Get' access for this.

我自己继续尝试此操作,最终编写了Powershell脚本并在Azure Runbook上运行它.查看 Azure密钥的过期通知 保管箱密钥和秘密以获取更多详细信息

I went on to try this myself and ended up writing a powershell script and running it on Azure Runbook. Check out Expiry Notification for Azure Key Vault Keys and Secrets for more details


这篇关于机密到期时发出警报或事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆