The Simplest Way to Make Cloud Run and Zendesk Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair cloud run and zendesk to run custom backend jobs for support tickets. When a user updates a ticket, Zendesk sends an event to a Cloud Run app. This workflow lets engineers automate support tasks without managing servers all day. Your app wakes up, processes the ticket data, and scales down to zero. Support agents get fast updates right inside their workspace. Engineers keep full control over the backend logic and database checks. How cloud run and zendesk share data and permission

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams pair cloud run and zendesk to run custom backend jobs for support tickets. When a user updates a ticket, Zendesk sends an event to a Cloud Run app.

This workflow lets engineers automate support tasks without managing servers all day. Your app wakes up, processes the ticket data, and scales down to zero.

Support agents get fast updates right inside their workspace. Engineers keep full control over the backend logic and database checks.

How cloud run and zendesk share data and permissions

Data flows between cloud run and zendesk through web requests and API calls. First, Zendesk triggers a webhook when a ticket matches your rule.

That webhook sends a payload to the public URL of your Cloud Run service. Your container receives the request and checks the signature header from Zendesk.

Checking this signature proves the request came from your support platform. Next, your app runs custom logic or checks internal databases for account details.

Then, the container calls the Zendesk API to add a comment or tag. To make this call, the container needs a valid Zendesk token or OAuth credential.

Most teams store this secret inside a secret manager on their cloud platform. Cloud Run mounts the secret at startup using its attached service account.

This setup keeps tokens out of your source code and container images. Each system uses its own identity model to verify the other side.

Common failure modes and how to scope roles

Many teams take shortcuts when they set up their first integration. A common mistake is using an admin user token for the Zendesk API calls.

If that token leaks, an attacker can read or delete every support ticket. Another failure happens when teams leave the Cloud Run URL open without signature checks.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Anyone who finds the URL can send fake ticket payloads to your backend. Teams also share one cloud service account across dozens of different apps.

This gives the support webhook app read permissions for unrelated secrets and databases. Unlogged database queries from these containers also create blind spots during audits.

Tickets often hold sensitive data like emails, phone numbers, card numbers, or national IDs. You must scope every role to the smallest set of permissions.

Give your Cloud Run app a dedicated service account with access to one secret. In Zendesk, create a dedicated bot user with a custom role for ticket updates.

Do not give this bot user permission to change billing or system rules. Always verify the webhook signing secret before your app parses the JSON body.

Keeping production data safe during support debugging

Even with scoped roles, engineers still need to debug failed webhook runs. A ticket might fail to sync because of a strange payload format.

Developers often check live databases or cloud logs to fix these bugs. If raw ticket bodies sit in logs, engineers see private customer details.

Data masking solves this by rewriting matched fields in results before anyone reads them. It replaces emails, phone numbers, and card numbers with safe placeholder text.

Teams should also track every database query made during a support investigation. Good audit logs show who ran a check and when it happened.

When you pair strict role limits with clean logs, your integration stays safe. Your support team gets fast automation, and your platform team keeps data secure.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

How does Zendesk verify requests to Cloud Run?

Zendesk signs each webhook request with a secret key and adds a header. Your Cloud Run app hashes the payload to check if the signatures match.

Where should we store the Zendesk API token for Cloud Run?

Store the token in your cloud secret manager rather than plain text variables. Grant your Cloud Run service account permission to read only that specific secret.

How can we prevent timeouts on slow ticket jobs?

Have your Cloud Run app return a quick success code to Zendesk right away. Then pass the heavy work to a background queue for processing.

The query runs. The emails stay hidden.