The Simplest Way to Make Onelogin and Step Functions Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Using onelogin and step functions together lets teams trigger and govern cloud workflows with verified human identities. OneLogin authenticates the user and issues federated identity assertions. Step Functions executes the multi-step cloud state machines. This integration removes static cloud keys from developer. Laptops and automation scripts. Engineers log in through their central folder. They start, pause, or review any cloud state machine execution. How authentication and data flow betwee

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.

Using onelogin and step functions together lets teams trigger and govern cloud workflows with verified human identities. OneLogin authenticates the user and issues federated identity assertions. Step Functions executes the multi-step cloud state machines.

This integration removes static cloud keys from developer. Laptops and automation scripts. Engineers log in through their central folder. They start, pause, or review any cloud state machine execution.

How authentication and data flow between onelogin and step functions

The workflow starts. An engineer or app authenticates against OneLogin. OneLogin checks the folder group memberships and multi-factor policies for that exact user upon success, OneLogin issues a federated identity token through standard federation protocols.

The cloud system exchanges this identity token for temporary cloud keys. These short-lived keys carry the exact role grants mapped to the user's folder group. The caller then invokes the workflow service API to start or inspect a state machine.

Data flows from the caller into the state. Machine execution payload as structured input if a workflow pauses for human approval. Step Functions emits a task token and waits. The approving engineer logs in via OneLogin to assume an approver role and return the task token.

Throughout this lifecycle. The identity provider handles who the user is the cloud workflow engine controls what tasks run and how data moves between compute services. Separating login from orchestration keeps both systems clean and auditable.

Common failure modes and how to scope roles and network paths

Teams often break this clean separation by using. A single shared service account for all workflow triggers. When every developer uses one shared role audit logs cannot show which person started a sensitive execution. Broad tokens also allow callers to trigger destructive production workflows from development systems.

OneLogin + Cloud Functions IAM: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another common risk involves passing raw secrets or unverified user input inside state machine payloads. Step Functions logs execution history. Sensitive data in payloads becomes visible to anyone with read grants unlogged queries and untracked manual approvals also create big gaps during security audits.

To fix this, map OneLogin groups to distinct cloud roles for operators. Approvers, and viewers. Scope each role so it can only start or view. Exact state machines in one system set short expiration times on all federated tokens so access revokes soon. A user leaves.

Lock down network paths between your internal tools and the workflow API endpoints. Route execution requests through private network links rather than public internet endpoints whenever possible. Require identity context inside the state machine input so every downstream database query logs the original caller.

Managing human approvals and downstream database tasks

Many state machines orchestrate database migrations. Data exports, or stack updates. These sensitive tasks require a human approval step. The state machine runs the final stage. When you tie that approval step to OneLogin. Only authorized group members can resume the execution.

Downstream tasks also need strict guardrails. They interact with production data stores. Instead of giving the state machine permanent superuser keys. Grant it scoped grants for each step. Combine identity federation with database-level inspection so automated workflows follow. The same security rules as human engineers.

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 OneLogin pass user identity to Step Functions?

OneLogin uses SAML or OIDC federation to exchange. Folder group memberships for temporary cloud IAM role keys. The caller uses those temporary keys to invoke the Step. Functions API with traceable identity context.

How can teams prevent shared account abuse in workflow triggers?

Replace static shared API keys with federated roles. Mapped to exact folder groups in OneLogin. Require single login for every human trigger and approval action so cloud logs record the exact user.

What is the safest way to handle secrets in state machine payloads?

Never pass plain text passwords or long-lived tokens. Inside the execution input JSON. Pass references to a dedicated secrets manager instead. Let the execution role fetch them only when needed.

The query runs. The emails stay hidden.