The Simplest Way to Make Azure App Service and Redash Work Like They Should
Running azure app service and redash together lets teams host SQL dashboards without managing servers. Azure runs the web app and background workers while Redash queries your data sources. This setup gives analysts a central place to write SQL and share charts. Your cloud platform handles scaling, health checks, and web traffic rules. How azure app service and redash share roles and data Redash needs a web server, background workers, a metadata store, and a job queue. Azure App Service hosts
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.
Running azure app service and redash together lets teams host SQL dashboards without managing servers. Azure runs the web app and background workers while Redash queries your data sources.
This setup gives analysts a central place to write SQL and share charts. Your cloud platform handles scaling, health checks, and web traffic rules.
How azure app service and redash share roles and data
Redash needs a web server, background workers, a metadata store, and a job queue. Azure App Service hosts the web container and the worker containers for your team.
Managed cloud databases store the saved queries, dashboard layouts, and user accounts. A separate cloud cache holds the background job queue for scheduled query runs.
Users log in to the web app through your company identity provider. Single sign-on checks who the user is before showing any charts or SQL editors.
Once a user logs in, Redash groups decide which data sources that person can query. The worker container then uses stored database keys to run the SQL query.
Data flows from your production or analytics database back to the worker container. The web app then renders those results as tables and charts in the browser.
Common risks with shared keys and broad network paths
Many teams connect Redash to databases using one shared database account with high rights. If one analyst writes a bad query, it can lock tables or drop data.
Shared database accounts also ruin audit logs inside your database. Every query from every analyst shows up under the same generic app user name.
You cannot tell which person ran an expensive query or pulled customer records. Static passwords stored in the app settings also create a high security risk.
Service-to-Service Authentication + Azure RBAC: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
If an attacker reads the app settings, they get direct access to your data. Broad network rules make this worse when databases accept traffic from any cloud address.
Queries can also return raw emails, phone numbers, card numbers, or national IDs. Without field controls, every chart viewer sees raw personal data in query results.
Scoping database roles and network paths
Start by placing your App Service plan inside a private virtual network. Set up your databases so they only accept traffic from that private subnet.
Next, stop using a single admin account for your Redash data sources. Create separate, read-only database roles for each team or project in your company.
Grant each role select rights only on the specific tables that team needs. Link each read-only database role to a separate data source inside Redash.
Assign your Redash user groups to those narrow data sources. Set statement timeouts on the database roles so slow queries stop before hurting production.
Keep app secrets in a managed key store instead of plain app text fields. Let the web app read those keys using its own managed cloud identity.
Finally, add data masking so rules rewrite matched fields in results before display. Masking replaces emails, phone numbers, and card numbers while keeping SQL charts working.
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 should we run Redash background workers on Azure App Service?
Deploy the web server and the background workers as separate App Service apps. This lets you scale query workers up or down without blocking web traffic.
Why should Redash use read-only database roles?
Read-only roles stop users from changing or deleting tables through the SQL editor. They also let you limit which tables and views each group can query.
How do we stop Redash queries from exposing customer data?
Use restricted database views or apply dynamic data masking on the database path. Masking rewrites matched fields like emails and phone numbers in query results.
Related guides
In this post