The Simplest Way to Make Lightstep and SAML Work Like They Should
Teams use lightstep and saml to link system traces with single sign-on logins. This setup lets engineers view production metrics using their company accounts. Without a linked login system, admins must create separate accounts for every new engineer. That manual process takes too much time and leaves old accounts active when people leave. Connecting your identity provider fixes this problem by managing users in one central place. How lightstep and saml handle user logins and roles In this se
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 lightstep and saml to link system traces with single sign-on logins. This setup lets engineers view production metrics using their company accounts.
Without a linked login system, admins must create separate accounts for every new engineer. That manual process takes too much time and leaves old accounts active when people leave. Connecting your identity provider fixes this problem by managing users in one central place.
How lightstep and saml handle user logins and roles
In this setup, your identity provider acts as the source of truth for user identities. The monitoring tool acts as the service provider that receives login requests. When an engineer tries to log in, the monitoring tool redirects them to the identity provider.
The identity provider checks the user credentials and multi-factor rules. Once verified, it sends a signed XML message back to the user browser. The browser forwards this signed message to the monitoring app to start the user session.
This signed message holds user attributes like email addresses and group names. Admins map these group names to specific roles inside the monitoring tool. A viewer role lets a user read dashboards and trace graphs. A member role lets them edit alerts and build new metric charts. An admin role grants control over billing, API keys, and project settings.
Common failure modes and how to scope roles
Many teams set up single sign-on but leave local password logins turned on. This creates a major security gap. If an engineer leaves the company, they might still log in with an old password. Admins should force all users to log in through the identity provider only.
Another common mistake is giving every user the default admin role during login setup. When group mappings fail or spell group names wrong, teams often grant broad permissions to fix it fast. This lets any user delete vital alerts or create broad API tokens.
SAML 2.0 + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Shared service accounts also cause audit problems during an outage. If five people share one login, the audit log cannot show who changed an alert rule. Every human user should log in with their own work email.
To prevent role creep, map identity groups to the lowest needed role by default. Set the base role for new users to viewer. Create separate groups in your identity provider for editors and project admins. Check the signed XML claims whenever you change group names in your directory.
Protecting sensitive data in system traces
Role mapping controls who logs into the dashboard, but traces still hold raw data. App code often sends user inputs inside trace tags and error logs. This means trace spans can contain emails, phone numbers, card numbers, or national IDs.
Anyone with a viewer role can read these trace tags during an incident check. Teams must scrub or mask sensitive fields before sending telemetry over the network. Masking rewrites matched fields in results so raw card numbers or emails do not appear in dashboards. You should also rotate API keys used by telemetry collectors on a regular schedule.
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
What happens when an identity provider certificate expires?
Users will see a signature error and cannot log into the monitoring dashboard. Admins must upload the new public certificate to the service provider settings before the old one expires.
Can we map one user to multiple project roles through SAML?
Yes, the identity provider can send multiple group values inside the login claim. The monitoring tool reads those group values and assigns the matching project roles to the user.
How do we stop former employees from reading system traces?
Turn off local password logins so everyone must use single sign-on. When you deactivate the user in your identity provider, their next login check will fail right away.
Related guides
In this post