VergShield
Private sites
A private site is an admin page that only devices on your mesh can open. VergShield proves it with five checks every 5 minutes, from inside the mesh and from the internet, and opens an incident the moment one fails.
It is the setup that DISA's Application Security STIG (V-222574) calls a separate management interface, and that the OWASP Network Segmentation cheat sheet describes: the page has no public address at all.
How it works
- The name of the page (say
admin.example.com) has a public DNS record that points at the mesh address of the server, such as10.213.0.5. The internet cannot route to it. - Caddy on that server drops every connection that does not come from the mesh, and gets its certificate with a DNS challenge.
- A Shield rule lets only the people you name reach that server on that port.
- The old public address, if there was one, now answers 404. A rewrite at the top of its Caddy block does it before any other rule can serve the path.
Add a site
Open VergShield, then Private sites, then Add a private site. Give the host name, the serving node, the port (443, 8443, 4443 or 9443), the page to check, who may open it (group:ops, tag:admin or node:laptop-ana) and the public twins: the old public addresses of the same page that must stay closed. The site page then shows the DNS record, the Caddy block and the policy rule, ready to copy. The rule has a button that adds it to the policy draft. It never publishes anything.
The five checks
| Check | Passes when | Fails when |
|---|---|---|
| DNS | Public resolvers (1.1.1.1 and 8.8.8.8) return the serving node's mesh address and nothing else, with no IPv6 record. | The name points at the internet (usually a proxied record), at another address, or has an AAAA record. Not proven if the resolvers do not answer. |
| Reachable from the mesh | A node that your rule lets in opens the page over the mesh and gets any answer below HTTP 500. The agent must be 1.2.0 or newer. | The page does not answer, the certificate is not trusted, or the app answers with a server error. |
| Closed to the internet | The console connects to the server's public address on the port, asking for your host name, and gets a refusal, a timeout before any secure connection, a failed handshake, a closed connection, a 404 or an empty answer. | The public address serves the page (2xx, 3xx, 401 or 403, or a server error). Not proven if the server is the console's own machine, or is offline, or not marked as accepting connections, or opens a secure connection and then does not answer in time. |
| Public twins closed | Each public address answers 401, 403, 404 or 410, refuses or closes the connection, or redirects to a Cloudflare Access sign-in. | It answers 2xx or redirects anywhere else. Not proven if it times out or the name does not resolve. |
| Shield policy | The published policy lets the allowed sources reach the node on that port, nobody else can, and the policy is enforced. | The policy blocks an allowed source or a source name matches nothing. It warns, and does not fail, when the network only watches or another machine can also reach the node. |
A site is Private and working when all five pass. A failed check opens one incident for the site, with what failed and what to do, and it follows your alert routing like any exposure incident. It pages only when the page or a public twin is open to the internet, and never before the site has passed all five checks once. The incident closes when no check fails any more, and it stays open while a check cannot be proven. If you close it by hand, it is not opened again until the site has been fine. A warning or a check that could not be proven never opens one.
What the console connects to
Only the public address of your serving node that its own agent reports, on the site's one port, and only when the node is yours, online and accepting connections. It sends one GET for the page you named and reads a few kilobytes. For public twins it sends one GET to the address the name resolves to and never follows a redirect. It never connects to a private or reserved address, to the console's own addresses, or to addresses the fleet lists as off limits. Every check of a site has a hard limit of 20 seconds.
API
curl -s -X POST https://api.cloudverg.com/v1/shield/private-sites \
-H "Authorization: Bearer $VERG_API_KEY" -H "Content-Type: application/json" \
-d '{"host":"admin.example.com","node":"web-1","allowed_sources":["group:ops"],"public_twins":["https://example.com/admin"]}'GET /v1/shield/private-sites lists the sites, GET, PATCH and DELETE /v1/shield/private-sites/{id} read, change and remove one, and POST /v1/shield/private-sites/{id}/check asks for a check (answered with 202, and the worker runs it within about a minute; once a minute for a site, 30 an hour for a workspace). Writes accept an Idempotency-Key header like the other /v1 routes.