The Simplest Way to Make New Relic and OIDC Work Like They Should
Using new relic and oidc together lets your team log into monitoring tools with one identity. This setup links your identity provider to your monitoring workspace so engineers use existing accounts. When an alert fires, your team needs fast entry to system logs and metrics. Separate passwords slow down incident response and create extra work for security admins. Linking your identity provider fixes this problem by keeping user management in one central place. Admins add or remove users in the i
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 new relic and oidc together lets your team log into monitoring tools with one identity. This setup links your identity provider to your monitoring workspace so engineers use existing accounts.
When an alert fires, your team needs fast entry to system logs and metrics. Separate passwords slow down incident response and create extra work for security admins. Linking your identity provider fixes this problem by keeping user management in one central place. Admins add or remove users in the identity system, and the monitoring tool updates right away.
How new relic and oidc handle logins and roles
OpenID Connect is an identity layer built on top of the OAuth framework. It lets the monitoring platform check who a user is through your identity provider. When an engineer tries to log in, the platform sends them to the identity provider. The identity provider checks their password and second factor, then sends back a signed token.
That token holds basic facts about the user, like their email and group names. The monitoring platform reads these claims to match the person to a workspace role. For example, a developer group maps to a read-only role for system dashboards. An on-call group maps to a higher role that can edit alerts and rules.
This data flow keeps passwords out of the monitoring platform. The platform only trusts tokens signed by your identity provider. You also get clear login records in your central identity logs for every user session. When someone leaves the company, you disable their main account once to block all logins.
Common failures with shared tokens and broad roles
Many teams set up single sign-on for web users but leave background scripts unchecked. Engineers often create shared API keys or service accounts to pull metrics or run queries. When five people share one static key, your audit logs lose all personal tracking. You can no longer tell which person ran a query or changed an alert threshold.
Broad group roles also cause security gaps over time. Teams often map every engineer to an admin role during the initial setup to move fast. Months later, hundreds of users still hold full write rights to production dashboards and log data. If an attacker steals one user session, they can delete alert rules or read raw logs.
End-to-End Encryption + K8s OIDC Authentication: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Raw logs and trace data often hold sensitive customer data by mistake. App errors might print emails, phone numbers, card numbers, or national IDs into trace records. If every user has broad read rights, too many people can query those sensitive fields. Data masking rewrites matched fields in results so regular users still debug issues safely.
Scoping roles and network paths between systems
To fix these gaps, break your identity groups into small, clear roles based on job tasks. Give most engineers a viewer role that lets them read dashboards and check standard metrics. Create a separate group for incident responders who need to mute alerts or change rules. Keep workspace admin rights limited to two or three core platform leads.
Next, clean up how automated tools and local scripts talk to the monitoring platform. Replace long-lived personal keys with short-lived tokens tied to a clear identity whenever you can. Rotate any remaining API keys on a regular schedule and give each script its own key. Never let a single key hold both read and write rights across all accounts.
Finally, review the data that flows into your monitoring workspace before users query it. Set up rules to spot and rewrite emails, phone numbers, and card numbers in log results. Restrict network paths so only approved systems can send data to your collection endpoints. Check your identity provider logs every month to remove inactive groups and old role mappings.
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 OpenID Connect differ from SAML for monitoring logins?
OpenID Connect uses light JSON tokens and works well with modern web and mobile apps. SAML uses heavy XML messages, though both protocols let users log in through one identity provider.
What happens to active sessions when we remove a user from the identity provider?
Removing a user stops them from starting any new sessions in the monitoring tool. Existing web sessions stay active until the current token expires or an admin revokes it.
Can we map multiple identity groups to different monitoring accounts?
Yes, you can link specific group claims from your identity token to separate sub-accounts. This setup lets your team keep production data separate from test and staging workspaces.
Related guides
In this post