
Stored access keys turn a CI pipeline into a breach. OIDC federation replaces them with short-lived tokens, but only a narrowly scoped subject condition stops the trust policy recreating the same hole.
Architecture on Google Cloud: Pub/Sub, Eventarc, Cloud Run, Workflows and Kubernetes on GKE.
The Google Cloud shelf asks who must know an event happened, who sets the delivery pace, and what breaks if it arrives twice, late or never. Cloud Tasks when the sender names the handler and sets its rate; Pub/Sub when it should not know who listens; Eventarc for events from Google services matched by filter; Workflows when the order of steps is the business rule. The sharper point is that retry settings decide whether an event is lost more than the product does.
Most articles go deeper into Pub/Sub: idempotent Cloud Run consumers with dead-letter topics and a snapshot before each deploy, what ordering keys and exactly-once delivery cost, and single message transforms that let a subscription replace a function that only reshapes messages. The rest cover routing and orchestration: Eventarc Standard against Advanced, and the saga as one Workflows definition with an undo list. Outside messaging, there is choosing a GatewayClass on GKE and deploying from CI without stored keys.
It suits engineers who have chosen Google Cloud and now need to choose between its overlapping messaging products.

Stored access keys turn a CI pipeline into a breach. OIDC federation replaces them with short-lived tokens, but only a narrowly scoped subject condition stops the trust policy recreating the same hole.

A Cloud Run function that only reshapes Pub/Sub messages and writes them to BigQuery can go: a JavaScript UDF on a BigQuery subscription does both. Where the transform belongs, when the function stays, and why small messages save the most.

Cloud Tasks when the sender must name the handler and set its pace, deadline and time; Pub/Sub when it should not know who listens. Where Cloud Scheduler fits, and the quiet failure each choice hides.

Write the saga as one Workflows definition: push each undo onto a list before its call, run the list newest first in one except block, and keep Failed for an undo that gave up. Starting each saga once, choreography over Pub/Sub, and when to merge services instead.

Standard gives each consumer its own trigger on Pub/Sub; Advanced gives many teams one bus to enrol on. Advanced is not Standard with extras: no dead-letter queue, no audit-log events and a bus that takes about 100 small events a second. And sometimes a Pub/Sub filter is enough.

A Cloud Run consumer behind a Pub/Sub push subscription sees duplicates with new message IDs. Keep the publisher's key in the same transaction as the change, dead-letter before a week of retries, and snapshot before each deploy so seek can replay.