Tevpro insights

Is Your Application Exposed More Than It Needs to Be?

A practical checklist for reviewing exposed admin paths, SSH, Cloudflare Access, Tailscale, and application permissions.

Security

A customer-facing application needs a public entrance. Its admin console, deployment dashboard, and server login usually do not need the same one. Yet those paths can become publicly reachable through an old DNS record, an open firewall rule, or a second route no one included in the access review.

The practical question is: who can reach each part of your system before the application decides whether to let them in? Reducing unnecessary exposure can keep anonymous requests away from private interfaces. It does not replace patching, MFA, least privilege, or the ability to restore service. CISA's voluntary Cybersecurity Performance Goals include those controls, vulnerability mitigation, and backups as part of a broader baseline, not a single silver bullet.[1]

Start with a map of the entrances

Separate three kinds of access:

  • Public customer paths: pages and APIs intended for customers, including specific public callbacks. Define what must be public and what needs authentication.
  • Private tools: admin panels, internal reporting, staging environments, and management interfaces. Decide which people or services should reach each one.
  • Server administration: SSH and other host-level access. Review it independently of web-app access.

For each path, record the hostname, direct IP or alternate address, intended users, identity control, and owner. Then test the paths you think are closed. A login prompt on the preferred hostname does not prove a direct IP, another hostname, IPv6 address, or failover endpoint is protected. Cloudflare's identity-gated architecture explicitly calls for testing those alternate routes.[4]

Put the gate where it belongs

For a private web tool, an identity gate can require an approved user or service before a request reaches the protected application. Cloudflare Access is one example. Its self-hosted application setup requires an Access policy, a connection to the origin, and validation of the Access token at the origin boundary or a supported connector.[3] A Cloudflare Tunnel route alone does not create an Access policy: Cloudflare says anyone on the Internet can access an application published at a tunnel hostname until an Access application is created to control who may connect.[7] Once an Access application is configured, it is deny-by-default: a user must match an Allow policy to gain access.[3]

The review should test both a permitted user and a denied one, then try the origin paths that might bypass the gate. A working Access sign-in is not the whole acceptance test. The origin or connector must reject invalid assertions, and the app still has to enforce its own permissions.[3][4]

For server access, a private network such as Tailscale can narrow who can reach SSH. Tailscale SSH can additionally manage SSH authentication and authorization for connections over the tailnet, subject to its SSH policy. It does not change the host's sshd_config or authorized keys, so another SSH route can remain available. Decide whether Tailscale SSH or conventional SSH carried over Tailscale fits the host, and check every non-tailnet route separately.[5]

Review direct root login and password authentication in the context of how the host is operated and recovered. OpenSSH supports a forced-commands-only root setting for constrained public-key tasks such as backups; a blanket instruction to disable root login could break an intentional dependency. Before changing SSH access, confirm an alternate administrator can log in and that recovery access works.[2]

The application still has a job to do

Passing a network gate proves only that a caller may reach the application. It does not entitle that person to every customer record or administrative action. OWASP distinguishes authentication from authorization and recommends least privilege, deny-by-default decisions, and permission checks on every request.[6]

Hypothetical example: An employee may be allowed through an identity gate to an internal order tool, but the application must still prevent that employee from opening another team's orders or approving a refund outside their role. The same principle applies to service accounts: grant the access they need for a defined task, not a standing shortcut around every control.[6]

Exceptions need a design, not denial. A legacy or operational-technology system may not support a modern gate. A public webhook needs a reachable endpoint. Emergency access and unattended service accounts may need different credentials and recovery procedures. Document the reason, owner, compensating controls, and a date to revisit each exception.

A useful first pass is a short exposure review:

  1. Which interfaces are intentionally public, and which are private?
  2. Who or what can reach each one, and what identity checks apply?
  3. Can a direct IP, alternate hostname, IPv6 route, or failover path bypass those checks?
  4. Does the application separately authorize the requested record or action?
  5. Who owns patching, credential review, backups, and a tested recovery path?[1][4][6]

If the answers are unclear, start by mapping one high-value application and its admin paths. The right next step is an environment-specific review, not a one-size-fits-all hardening script.

Sources

  1. [1] CISA Cybersecurity Performance Goals 2.0cisa.gov
  2. [2] OpenSSH sshd_config manualman.openbsd.org
  3. [3] Cloudflare: Publish a self-hosted applicationdevelopers.cloudflare.com
  4. [4] Cloudflare: Identity-gated edge architecturedevelopers.cloudflare.com
  5. [5] Tailscale SSH documentationtailscale.com
  6. [6] OWASP Authorization Cheat Sheetcheatsheetseries.owasp.org
  7. [7] Cloudflare: Create a tunneldevelopers.cloudflare.com

Written by Keith Kikta

Why work with us

Why Tevpro?

Whether you’re a startup with a bold product idea or an established company seeking a stronger delivery partner, Tevpro delivers results. Our expert consultants specialize in building secure, scalable applications that simplify operations and drive real ROI.