The Simplest Way to Make Databricks and IIS Work Like They Should
Running databricks and iis together lets Windows web apps query big cloud data tables. The web server takes user requests and pulls fresh numbers from the data cluster. Many teams still host internal web apps on Windows servers. Yet their fresh metrics live in the cloud data lake. Linking these two systems creates a bridge for live dashboards and reports. You must set up this bridge with care to keep data safe. How databricks and iis pass identity and data The workflow starts when a user ope
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 databricks and iis together lets Windows web apps query big cloud data tables. The web server takes user requests and pulls fresh numbers from the data cluster.
Many teams still host internal web apps on Windows servers. Yet their fresh metrics live in the cloud data lake. Linking these two systems creates a bridge for live dashboards and reports. You must set up this bridge with care to keep data safe.
How databricks and iis pass identity and data
The workflow starts when a user opens an internal web page on IIS. The web server needs to read rows from a cloud workspace. To do this, the web app uses a database driver or a REST call.
First, the Windows server must log in to the cloud workspace. Teams often use a service account or a personal token for this step. The web app reads the secret key from a local file on the server. Then it sends the key over the network to start a query session.
Once the cloud cluster checks the key, it runs the query. The cluster reads the tables and builds the result set. It sends those rows back to the Windows server over an encrypted link. Finally, the web app formats the numbers and shows the page to the user.
Common risks with shared keys and broad roles
This setup often breaks down when teams share one token across many apps. If ten web apps use one token, you lose track of who ran what. In the cloud logs, every single query looks like it came from one machine. You cannot tell which user or web page asked for the data.
Broad permissions make this risk much worse for your team. Admins often give the web server role read rights to the whole catalog. They do this to avoid permission errors during a fast launch. If an attacker finds a bug in the web app, they can read everything.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Long-lived keys on Windows servers also create a big chore for ops teams. When a key expires, the web app breaks and shows errors to users. When a developer leaves, teams fear rotating the key because it might break production.
How to scope roles and network paths
You can fix these issues by scoping down both identity and network paths. Start by giving each IIS app pool its own service identity. Never let two different web apps share the same login key. This simple step lets you see which app ran each query in the logs.
Next, trim the permissions for each role inside the cloud catalog. Give the web app read rights only to the exact views it needs. Do not grant permissions to raw tables that hold emails or card numbers. If the app needs sensitive tables, set up masking to rewrite matched fields in results.
Lock down the network path between your Windows servers and the cloud workspace. Use private network links or strict IP rules on the workspace side. Only allow traffic from the exact IP addresses of your web servers. Store your login keys in a safe secret store instead of plain text files.
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
How should an IIS app log in to a cloud workspace?
Use a dedicated service principal with short-lived tokens instead of a personal key. Give each web app its own identity so your audit logs stay clear.
How do we protect sensitive columns from web app queries?
Point the web app to curated views instead of raw data tables. Apply column masking rules that rewrite emails, phone numbers, and national IDs in query results.
Why do our queries fail after a token rotation?
IIS caches settings in memory while the app pool runs. Ensure your app fetches fresh tokens from your secret store without needing a server restart.
Related guides
In this post