The Simplest Way to Make IIS and Neo4j Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running iis and neo4j together lets Windows web apps query graph data at scale. Your web server handles user traffic while the graph database maps relationships. This pair powers fraud checks, user auth graphs, and product tips. Many teams run old and new Windows apps on IIS. These apps need fast ways to traverse deep links in data. A graph engine fits this job much better than flat tables. Yet linking a Windows web tier to a graph cluster brings real risks. Teams must match Windows identities

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 iis and neo4j together lets Windows web apps query graph data at scale. Your web server handles user traffic while the graph database maps relationships.

This pair powers fraud checks, user auth graphs, and product tips. Many teams run old and new Windows apps on IIS. These apps need fast ways to traverse deep links in data. A graph engine fits this job much better than flat tables. Yet linking a Windows web tier to a graph cluster brings real risks. Teams must match Windows identities with graph roles and secure network paths.

How iis and neo4j handle login, roles, and data flow

In a standard setup, the Windows server runs a web app pool. Each app pool runs under a specific Windows identity or local account. When a user hits the site, IIS routes the request to the app. The app then opens a network socket to the graph database.

Most apps use the Bolt protocol or HTTPS to talk to the graph. The web app loads a driver to manage a pool of open links. To log in, the app sends a secret key or password. It can also pass a token from a central login tool. The graph engine checks these details against its own user store. It can also check them against an outside directory.

Once logged in, the graph engine checks the roles for that user. Roles decide if the app can read nodes, write edges, or change rules. The app then sends Cypher queries over the wire and reads the response. Good setups keep the web tier and the data tier on separate subnets. Firewalls only let the web server talk to the graph port.

Common failure modes and how to scope roles

The biggest risk in this stack is a shared service account. Teams often put one admin password in the web app settings file. Every web worker uses this same key to read and write graph data. If an attacker reads that file, they own the whole graph. They can dump all nodes or wipe the store clean.

Broad permissions make this problem much worse for your security team. A web app that only reads product links should never hold write rights. You should create custom roles inside the graph database for each task. Give the public web app a read-only role scoped to specific labels. Create a separate role for back-office jobs that need to write data.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged queries create another huge blind spot during a security audit. When all queries come from one IIS pool user, logs look the same. You cannot tell which human user or web request ran a bad query. Teams should pass user metadata with each query when they can. You also need to mask private fields like emails and phone numbers. Masking rewrites matched fields in results before they reach the log or user.

Fixing secret sprawl on Windows web servers

Storing plain text database keys on Windows disks is a bad idea. Local admins and backup tools can read those files with ease. When an engineer leaves the team, rotating those static keys takes hours. One missed server update can break the live site for users.

Instead, teams should tie database logins to central directory groups. Use short-lived tokens that expire after a few minutes of use. Set up strict firewall rules between the Windows hosts and the graph nodes. Log every query with the real identity of the person or app.

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 pool log in to Neo4j?

Give the app pool a dedicated identity with minimum graph rights. Avoid using the default database admin account for web traffic. Use short-lived tokens or directory groups instead of static text passwords.

What network ports need to be open between the two systems?

The web server needs outbound network paths to the graph Bolt port. Some setups also use the HTTPS port for rest queries. Block all other traffic between the web subnet and the data subnet.

How can teams protect private user data in graph queries?

Scope graph roles so the web app only reads allowed node properties. Add data masking to rewrite card numbers or national IDs in query results. Keep full audit logs of every query sent from the web tier.

The query runs. The emails stay hidden.