How to Configure Metabase Setup Token
A metabase setup token controls who can create the first admin account on a new server. You set it up safely by keeping the boot logs private and finishing setup inside a closed network. When you start a fresh instance, the app creates this one-time key in its internal database. Anyone who reads this key before you finish setup can claim full admin control. Teams must protect this first boot phase just like they protect production database passwords. How the metabase setup token works at firs
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.
A metabase setup token controls who can create the first admin account on a new server. You set it up safely by keeping the boot logs private and finishing setup inside a closed network.
When you start a fresh instance, the app creates this one-time key in its internal database. Anyone who reads this key before you finish setup can claim full admin control. Teams must protect this first boot phase just like they protect production database passwords.
How the metabase setup token works at first boot
A fresh analytics server has no users or roles when it first starts up. The app generates a random metabase setup token to prove that the first visitor is legitimate. It prints this secret string into the server startup logs and waits for a match.
When an engineer opens the web setup page, the browser loads that secret key. The web form sends the key back to the server along with the new admin details. Once the server creates that first admin user, it clears the key from its state.
This process affects automated scripts, cloud boot jobs, and platform engineers who deploy analytics apps. If a public network can reach the web port during boot, an outsider can race your team. Attackers scan public clouds for unconfigured analytics servers that still hold an active setup key.
Safe defaults start with network rules that block public traffic during the first boot. You should bind the web server to a private address until an admin user exists. Teams that automate deployments can pass the first user details through secure startup scripts instead.
You should also restrict who can read container logs in your central log store. If your log tool shows startup text to every developer, anyone can grab the key. Treat boot logs as sensitive data whenever a new analytics server spins up.
How to check your setup and audit access
After you create the first admin account, you must verify that the setup key is gone. You can test this by loading the initial setup path in a fresh browser window. The app should redirect you straight to the standard login screen without offering a setup form.
You should also check the internal app database to see which admin accounts exist right now. Look at the user table and confirm that only your known team members have admin roles. Check the creation timestamps on those accounts to spot any strange activity during the boot window.
Token Rotation + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Keep a clear record of every login event and role change inside the analytics app. Good logs tell you who logged in and which dashboards they opened during their work. Still, locking down the initial boot phase only solves the very first step of data security.
Once the server is running, admins link it to production databases using static service accounts. That single database user often holds broad read rights across every table in your warehouse. Anyone who gets admin rights in the analytics app can run raw SQL through that shared link.
What static database setup leaves open
Securing the analytics app does not stop over-privileged queries from hitting your core data stores. The analytics server uses one shared database credential for many different people and dashboard jobs. Your database logs will only show that shared app account, not the actual human user.
If an engineer runs a custom query in the app, the database cannot see their true identity. You lose the ability to check which team member ran an expensive or risky query. Even worse, raw queries can pull sensitive customer columns straight into a browser screen.
Standard app settings cannot rewrite sensitive text inside raw SQL results on the fly. If a table holds emails, phone numbers, card numbers, or national IDs, raw queries return them intact. Data masking that rewrites matched fields in results is vital to keep private details out of dashboards.
Teams need a way to inspect every query before it reaches the underlying database engine. They also need a way to tie each database action back to a real user identity. Adding strong runtime controls around your database connections closes the gap left by static app keys.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Where do I find the metabase setup token if my setup screen asks for it?
You can find the active token inside the server startup logs from the initial boot. You can also query the internal app settings table if you have direct database rights.
Why did my metabase setup token stop working before I finished?
The token stops working as soon as the server creates the first admin user account. It can also change if the server restarts against a brand new internal database.
Can I disable the setup token requirement on a new server?
No, the app requires a valid token to create the initial admin user during setup. You can automate this step by passing admin credentials through your deployment tool at startup.
Related guides
In this post