How to Configure Sdp Policy
An sdp policy controls which users and devices can reach specific network services. You set it up by linking identity groups to narrow network rules and device checks. Software-defined perimeter tools hide internal apps from public view until a user logs in. Traditional networks trust anyone inside the firewall, which creates broad risk. A strong perimeter model drops all traffic by default. Users must prove both who they are and what device they use first. Only then does the controller open a
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.
An sdp policy controls which users and devices can reach specific network services. You set it up by linking identity groups to narrow network rules and device checks.
Software-defined perimeter tools hide internal apps from public view until a user logs in. Traditional networks trust anyone inside the firewall, which creates broad risk. A strong perimeter model drops all traffic by default. Users must prove both who they are and what device they use first. Only then does the controller open a path to the exact host they need.
How an sdp policy works and safe defaults
The controller checks identity and device posture before it grants any network path. When a user logs in, the client sends identity claims and device health facts. The controller reads these facts and matches them against your active rule set. This setup affects human users, developer laptops, and automated workloads that run background jobs.
Start your setup with a strict default deny rule for every user group. Never grant access to an entire subnet when a user needs one server. Map each rule to a specific identity group from your central login provider. Tie each group to single hosts and exact ports rather than broad ranges.
Require strong device checks before any rule allows a network tunnel to open. Check that the laptop runs an active firewall and has full disk encryption turned on. Set short session times so users must log in again after a work shift. Keep contractor groups separate from full-time staff groups at all times. Give automated scripts their own narrow rules that only reach required target ports.
How to check rules and what network gates leave open
Teams must test and audit their perimeter rules on a regular schedule. Start by logging in with a test account that belongs to one role. Try to reach an allowed port and verify that the session works as expected. Next, try to reach a blocked port on the same host to confirm denial. Review your central controller logs every week to spot unused rules or failed logins. Remove old rules right away when a project ends or a team changes focus.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Network rules only solve part of the security puzzle for engineering teams. Once the perimeter check passes, the user gets a direct tunnel to the service. The network controller cannot see what happens inside an encrypted database or server session. A user with valid network access still needs database keys or server passwords. If teams share one database user, audit logs cannot show who ran a bad command.
Perimeter rules also cannot inspect the queries or commands that travel inside the tunnel. A developer with valid port access can still run a broad select query on production tables. They might pull thousands of customer emails, phone numbers, or card numbers by mistake. Without runtime data masking that rewrites matched fields in results, raw data reaches the laptop. True defense requires controls that act at the command and query level after login.
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
What is the difference between a firewall rule and an sdp policy?
A firewall rule filters traffic based on source and destination IP addresses and ports. A perimeter rule checks user identity and device health before it reveals the target port.
How often should teams review their access rules?
Teams should review their active rules at least once every quarter. You should also remove rules right away when an app retires or a role changes.
Does a network perimeter replace database user roles?
No, a network perimeter only controls who can reach the database port over the network. You still need granular database roles and query controls to govern what users do inside.
Related guides
In this post