Google Cloud Secret Manager - PubSub 通知

发布于 01-13 11:02 字数 292 浏览 4 评论 0原文

我正在尝试配置 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

泅渡2025-01-20 11:02:06

无法在服务级别配置秘密更新通知。仅允许秘密级别。

但是,在这种情况下,我建议编写创建脚本,或者使用 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.

凉栀2025-01-20 11:02:06

我们可以设置通知,而无需创建特定主题的秘密。
我们可以通过创建日志路由接收器来利用审核日志。
console.cloud.google.com/logs/router/,创建一个日志路由接收器,其中包含接收器名称、描述和目的地(您的目的地将是“cloud pub/sub topic”)。这样,任何秘密更新都会收到通知。

We can setup a notifications without creating a secret with particular topics.
We can make use of audit logs by creating a logs routing sink.
console.cloud.google.com/logs/router/, create a log routing sink with sink name, description and destination - (where your destination will be "cloud pub/sub topic"). In this way, notifications will be received upon any secret updates.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文