The Simplest Way to Make Ec2 Systems Manager and Onelogin Work Like They Should
Running ec2 systems manager and onelogin together lets your team log into cloud servers with single sign-on. OneLogin checks the user identity, and Systems Manager opens the server shell without static SSH keys. This workflow removes shared key files from developer laptops. Teams use their daily identity provider to run commands on cloud hosts. Security teams still need clear rules to map directory groups to cloud roles. Without tight role mapping, users get too much power on production servers
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.
Running ec2 systems manager and onelogin together lets your team log into cloud servers with single sign-on. OneLogin checks the user identity, and Systems Manager opens the server shell without static SSH keys.
This workflow removes shared key files from developer laptops. Teams use their daily identity provider to run commands on cloud hosts. Security teams still need clear rules to map directory groups to cloud roles. Without tight role mapping, users get too much power on production servers.
How ec2 systems manager and onelogin share identity
The link between ec2 systems manager and onelogin relies on standard identity federation. First, an engineer logs into the OneLogin portal and passes a multi-factor check. Next, OneLogin sends a signed identity assertion to the Amazon Web Services account. The cloud account reads this assertion and grants the user a temporary role.
Once the user holds that cloud role, they can ask Systems Manager to start a session. An agent running on the virtual machine talks back to the cloud control plane. This agent opens an outbound data path, so you do not open inbound network ports. The user then gets a shell prompt inside the browser or local terminal.
Permissions depend on two things in this setup. First, the cloud role must allow the user to start a session on specific server tags. Second, the operating system account on the server sets what the user can read or write. Both layers must match your security goals.
Common failure modes and how to scope roles
Many teams connect OneLogin to a few broad cloud roles for speed. Five developers might share one admin role in the cloud account. When three people run commands at the same time, the server sees the same local OS user. Every command runs under a single shared system account on the host. This makes it hard to see who ran a bad command during an outage.
Long session timers create another big risk for production teams. If a federated token lasts all day, a stolen laptop keeps server access for hours. If you remove a user in OneLogin, active cloud sessions keeps the session active until the token expires. You must set short token lifetimes to shrink this risk window.
OneLogin + GCP Access Context Manager: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged commands and raw data exposure also hurt security audits. Standard host logs often miss the full text of interactive terminal work. Even when logs exist, sensitive data like emails or card numbers can spill onto the screen. Data masking that rewrites matched fields in results helps stop phone numbers and national IDs from leaking.
To fix role sprawl, map each OneLogin group to a narrow cloud role. Use server tags so developers only reach the apps they own. Split read-only checks from write actions by using separate roles for daily work and incident fixes.
Audit and network rules for safer server sessions
Good network design keeps your server agents safe from outside threats. Put your virtual machines in private subnets with no public IP addresses. Let the host agent reach the cloud control plane through private network endpoints. This keeps all session traffic inside your private cloud network.
You should also send every command log to a central storage bucket right away. Lock that storage bucket so even admins cannot delete or edit past logs. Check these logs each week to find unused roles and tighten your group rules.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
How does OneLogin pass user identity to Systems Manager?
OneLogin sends a signed SAML assertion to the cloud account during login. The cloud service reads the user attributes and assigns a matching temporary IAM role.
What happens when you deactivate a user in OneLogin during an active session?
OneLogin blocks any new logins right away. Still, existing cloud sessions can stay active until the temporary cloud token reaches its expiration time.
How can teams limit which servers a developer can reach?
Teams add resource tags to their servers, like team name or stage. They then write cloud role rules that check those tags before starting a session.
Related guides
In this post