The Simplest Way to Make Step Functions and Zscaler Work Like They Should
Teams use step functions and zscaler to run safe cloud tasks across private networks. AWS Step Functions coordinates each job while Zscaler checks and routes the outbound traffic. This setup lets serverless workflows reach internal apps and outside APIs safely. Your team gets strict network rules without managing complex routing tables by hand. You can automate security checks, user updates, and data transfers in one place. How step functions and zscaler share data and permissions Step Funct
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 use step functions and zscaler to run safe cloud tasks across private networks. AWS Step Functions coordinates each job while Zscaler checks and routes the outbound traffic.
This setup lets serverless workflows reach internal apps and outside APIs safely. Your team gets strict network rules without managing complex routing tables by hand. You can automate security checks, user updates, and data transfers in one place.
How step functions and zscaler share data and permissions
Step Functions runs workflows as a series of state steps in AWS. Each step can call a compute task, an API, or another cloud service. When a step needs to reach a private network, traffic must flow through Zscaler.
Normally, a state machine triggers an AWS Lambda function inside a virtual private cloud. That subnet routes outbound packets to a Zscaler cloud connector in your account. Zscaler checks the source IP, the destination host, and the active security rules.
If the traffic matches an allowed rule, Zscaler forwards the request to the destination. For steps that call Zscaler APIs directly, Step Functions uses an HTTPS task step. The state machine reads an API key or token from a cloud secret store. It sends that token to Zscaler to update firewall rules or check user status.
Common failure modes and how to scope roles
Many teams start by sharing one broad API key across all state machines. If that key leaks, an attacker can change network rules across the whole company. Shared service accounts also ruin your audit logs. When five workflows use one account, you cannot tell which task made a change.
Another common issue is overly broad network routing in the virtual private cloud. If every function sits in the same subnet, every task shares the same network trust. A simple reporting task might gain network reach to sensitive internal databases.
Cloud Functions IAM + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, give each state machine its own execution role with narrow permissions. Scope each role so it can only read the exact secret it needs. Create separate Zscaler admin roles or API clients for each workflow domain. Place your compute tasks in isolated subnets based on what data they touch.
How to log and monitor workflow traffic
Good logging helps you find broken steps before they stop your business tasks. Step Functions records the input and output of every state in your cloud logs. Still, those logs can hold private data like emails, phone numbers, or card numbers.
You should mask sensitive fields so the system rewrites matched fields in results. On the network side, Zscaler logs every connection attempt and rule match. Send both log streams to one central log tool and match them by timestamp. This gives your security team a clear view of every automated action.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Can Step Functions route traffic through Zscaler without a compute task?
Direct HTTPS endpoints in Step Functions use public AWS network paths by default. To route traffic through Zscaler connectors, run the request inside a VPC compute task.
How should we store Zscaler API keys for Step Functions?
Store all API keys and client secrets in a dedicated cloud secret manager. Grant each state machine role permission to read only its specific secret.
Why do our Step Functions tasks time out when calling Zscaler?
Timeouts usually happen when VPC route tables fail to reach the Zscaler connector. Check your subnet routes, security groups, and Zscaler forwarding rules for blocked ports.
Related guides
In this post