The Simplest Way to Make IIS and Redash Work Like They Should
Teams pair IIS and Redash to route Windows web traffic to SQL analytics dashboards. This setup lets internal users view query charts through existing Windows web servers. Many Windows shops run their web portals on IIS. They also use Redash to query databases and build charts. Linking these two systems creates one place for staff to read reports. Yet joining a Windows web server with a Linux analytics app brings security gaps. You must align user logins, network paths, and database roles across
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 IIS and Redash to route Windows web traffic to SQL analytics dashboards. This setup lets internal users view query charts through existing Windows web servers.
Many Windows shops run their web portals on IIS. They also use Redash to query databases and build charts. Linking these two systems creates one place for staff to read reports. Yet joining a Windows web server with a Linux analytics app brings security gaps. You must align user logins, network paths, and database roles across both tools.
How logins and data flow between IIS and Redash
IIS handles incoming web requests from users on your network. It checks who the user is through Windows logins or directory services. Once IIS confirms the user, it forwards the web request to the Redash app. Redash runs on its own Linux server or container host.
Next, Redash takes over to load the dashboard or run a query. Redash does not use the IIS web request to talk to your database. Instead, Redash uses its own stored database keys to run SQL queries. The database sends the results back to Redash. Then Redash builds the chart and sends it back through IIS to the user.
This split flow means you have two separate trust zones. The first zone sits between the browser and IIS. The second zone sits between Redash and your data stores. You need tight rules in both places to keep private records safe.
Common failures when linking web servers and analytics
The biggest risk in this setup is the shared database account. Most teams give Redash one master database login with broad read rights. Every user who logs into the web portal runs queries through that single account. When someone runs a bad query, database logs only show the shared Redash user. You cannot see which person on your team ran the SQL text.
Broad network rules create another common failure mode. Teams often open wide firewall ports between the Windows zone and the data zone. If an attacker breaks into the web server, they can reach the analytics host. From there, they can pull stored database keys and read raw tables.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unmasked data in query results also causes compliance troubles. Analysts often query tables that hold emails, phone numbers, or card numbers. Without field masking, those raw values show up in charts and CSV exports. Masking rewrites matched fields in results so sensitive strings stay hidden during analysis.
How to scope roles and network paths
Start by locking down the network path between your servers. Only allow IIS to talk to the Redash host over encrypted web ports. Block direct user traffic to the Redash server IP address. This forces all dashboard viewers to pass through your Windows login checks first.
Next, split your database accounts by team role. Do not use one admin key for all Redash data sources. Create read-only database roles for finance, support, and product teams. Link each role to a separate data source inside Redash. Then assign your Redash user groups to the matching data source.
Finally, keep a clear audit trail of every query and user login. Match web server logs with database query logs using timestamps. Rotate the database keys stored in Redash on a fixed schedule. Remove unused data sources and old user accounts every month.
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 Redash run directly on a Windows server with IIS?
No, Redash needs a Linux host or containers to run its core services. Teams run IIS on Windows and route web traffic to the Linux host.
How do we stop Redash queries from slowing down production databases?
Point Redash data sources at read replicas instead of primary database nodes. Set query timeouts on the database role used by your analytics team.
Does Windows login pass straight through to the database query?
No, IIS checks the Windows user, but Redash queries the database with stored keys. You must map user groups to scoped data sources to control table rights.
Related guides
In this post