The Simplest Way to Make Looker and Webauthn Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair Looker and WebAuthn through a single sign-on provider to lock down analytics. This setup requires a hardware key or passkey before a user can read dashboards. Data teams run queries that touch sensitive customer tables every day. A stolen password can expose financial reports or personal emails in seconds. Adding a passkey check stops attackers who steal login names and passwords. How Looker and WebAuthn handle logins and permissions Looker does not store passkeys on its own local

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 pair Looker and WebAuthn through a single sign-on provider to lock down analytics. This setup requires a hardware key or passkey before a user can read dashboards.

Data teams run queries that touch sensitive customer tables every day. A stolen password can expose financial reports or personal emails in seconds. Adding a passkey check stops attackers who steal login names and passwords.

How Looker and WebAuthn handle logins and permissions

Looker does not store passkeys on its own local user accounts. Instead, teams link Looker to an identity provider using SAML or OpenID Connect. The identity provider runs the WebAuthn check during the sign-in flow.

When an analyst opens a report, the app sends them to the identity provider. The browser asks the user to touch a security key or scan a fingerprint. The device signs a challenge with its private key and sends it back. Once the provider checks that signature, it sends a signed token to Looker.

Looker reads the group claims inside that token to assign user roles. Those roles decide which models, views, and dashboards the analyst can open. The user never types a shared password to read charts or run explorations.

Common failure modes and how to scope roles

Strong user logins only fix half of the data security problem. Even after a passkey check, Looker often queries the database using one shared account. Every chart and SQL Runner query runs under the same broad database login.

If an analyst gets SQL Runner rights, they inherit those wide database permissions. Database logs only show the shared service account name, not the human user. Audit teams cannot tell which person ran an ad-hoc query on production tables.

FIDO2 / WebAuthn + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

A second risk comes from long session timers and static API keys. If a browser keeps the session active for days, a stolen cookie bypasses the key check. Developers also create static API keys for scripts that never trigger a passkey prompt.

To fix this, teams must map identity groups to tight, specific Looker roles. Turn off SQL Runner for standard analysts who only need pre-built dashboards. Set short session lifetimes in the identity provider so users must re-verify often. Require a fresh hardware key tap whenever a user switches to an admin role.

Keeping sensitive fields safe in query results

Hardware keys prove who is at the keyboard, but they do not filter rows. Analysts with valid roles might still query tables that hold raw customer details. If a query pulls emails, phone numbers, or card numbers, those values appear on screen.

Teams should pair strong sign-in rules with strict column controls and field masking. Masking rewrites matched fields like national IDs or phone numbers in the query results. This lets analysts build charts and check trends while keeping private customer fields safe.

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

Can Looker use WebAuthn without an identity provider?

No, Looker relies on an external SAML or OIDC provider to handle WebAuthn prompts. You register your hardware keys or passkeys inside that identity provider first.

Does WebAuthn protect Looker API keys and scheduled jobs?

No, WebAuthn only checks human users who log in through a web browser. You must secure API keys by limiting their role permissions and rotating them often.

How do we track which user ran a query in Looker?

Map your identity provider attributes to user attributes inside your Looker setup. You can then pass the user email into query comments for your database logs.

The query runs. The emails stay hidden.