Google Cloud Secret Manager - PubSub 通知
我正在尝试配置 Google Secret Manager,以便在 PubSub 上获取通知(遵循此 指南)。
是否可以在服务级别配置通知,而不仅仅是秘密级别?
我希望接收有关项目每个秘密的通知,而不需要明确地将秘密链接到主题。
谢谢大家!
I'm trying to configure Google Secret Manager in order to get notifications on PubSub (following this guide).
Is it possible to configure notifications on service level and not only on secret level?
I want to receive notifications on every secret of the project, without the need to explicitly to link a secret to the topic.
Thanks everyone!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

无法在服务级别配置秘密更新通知。仅允许秘密级别。
但是,在这种情况下,我建议编写创建脚本,或者使用 IaC 解决方案(例如 terraform)来自动创建新的秘密通知并将其添加到现有主题。
为了防止手动创建,您还可以删除用户的角色以强制他们使用自动创建过程。
It's not possible to configure a secret update notification at service level. Only the secret level is allowed.
However, in that case, I recommend to script the creation, or to use IaC solution, such as terraform, to automate the creation and the addition of the new secret notification to the existing topic.
To prevent manual creation, you can also remove the role to the users to force them to use your automated creation procedure.