Skip to content

Lesson 5 of 9 · 26m

Identity-Aware Access: From Network Presence to Explicit Authorization

Combine device keys, user identity, posture signals, and application policy so joining the network is not the same as being trusted.

The old VPN model conflated three separate questions: is this device connected, who is using it, and what should that person be allowed to do right now? Modern remote access separates them. WireGuard gives you strong device identity. Your identity provider gives you user and group claims. Policy decides access using both. If "being on the VPN" is your only authorization signal, you have rebuilt the flat network with nicer cryptography.

Device identity is necessary but insufficient

A private key says a device or keyholder can participate in the overlay. It does not say the laptop is managed, encrypted, patched, or being operated by the right person. Pair network enrollment with user authentication and device inventory:

user identity       SSO/OIDC account, groups, authentication strength
device identity     WireGuard public key bound to an inventory record
device posture      disk encryption, OS patch level, EDR health, ownership
resource policy     group, environment, sensitivity, time, network path

Not every service needs the same posture requirements. Reading an internal dashboard and opening a production shell should not carry equal trust.

Put policy near the resource when possible

Identity-aware proxies, service meshes, SSH certificate authorities, and application gateways can enforce per-request or per-session authorization. A simple nginx example only demonstrates the shape, not a complete zero-trust product:

location /admin/ {
    auth_request /_verify;
    error_page 401 = @login;
    proxy_pass http://127.0.0.1:8080;
}

The important part is that authorization is evaluated continuously and explicitly. The tunnel is transport. The application gate is policy.

SSH certificates beat static network trust

For administrative access, short-lived SSH certificates are stronger than distributing long-lived user keys:

ssh-keygen -s ca_user_key -I traven-laptop-2026-11   -n traven,sre -V +8h -z 202611301845 user_ed25519.pub

Now access can expire even if network connectivity remains. Combine that with host certificates so administrators verify servers too. A bastion plus SSH CA is often a better control plane than a broad subnet VPN.

Least privilege needs negative cases

Design tests where access must fail. A contractor in the wrong group should not merely fail to see an admin button; they should receive a network or authorization denial at the enforcement layer. A revoked device key should stop new handshakes. An expired SSH certificate should fail even when the WireGuard path remains healthy.

Plan for identity provider failure

If the IdP is down, can emergency administrators enter? Should cached access continue for a bounded period? Zero trust that becomes zero access during an IdP outage is not resilience. Define break-glass access with audit, expiry, and a small number of accountable humans.

Field notes

  • Group membership is not posture. A compromised managed laptop can still hold a valid user session.
  • WireGuard has no native user concept; do not invent meaning the protocol does not provide.
  • Long-lived device keys are convenient and dangerous. Automate rotation instead of relying on offboarding memory.
  • Authorization logs need user, device, key fingerprint, resource, and decision reason — not just source IP.

Was this lesson helpful?

Sign in to rate