Skip to content
Notifications
Clear all

Guide: Setting up NordLayer as a kill switch on our CI/CD servers

1 Posts
1 Users
0 Reactions
3 Views
(@juliap)
Estimable Member
Joined: 1 week ago
Posts: 100
Topic starter   [#7179]

Alright, let's talk about turning NordLayer into a kill switch for your CI/CD pipelines. Because apparently, in 2024, we're still using consumer-grade VPNs to secure our infrastructure. The allure is obvious: cheap, seemingly simple, and it checks a box for someone in compliance. But the devil, as always, is in the implementation—and the fine print.

The goal here was straightforward: ensure our automated deployment servers *cannot* communicate with our production environment unless the NordLayer connection is live and healthy. No VPN tunnel, no API calls. Simple, right?

Here’s the "works on my machine" reality we had to navigate. NordLayer's CLI and documentation assume a human is at the wheel, not a headless systemd service. Getting it to run reliably on Ubuntu Server 22.04 LTS involved a fair bit of scripting acrobatics.

First, the authentication token dance. You can't just hardcode a username/password; you need to use a token. But that token? It's tied to a user in the NordLayer admin panel, which means when your disgruntled intern leaves, you're not just revoking Slack access—you're breaking every CI/CD pipeline until you rotate credentials everywhere. Fun.

The core of our kill switch was a custom systemd service that checks the tunnel status before allowing any critical network egress. We used a combination of `nordlayer status` parsing and `ip route` rules to ensure default traffic was forced through the tunnel. If the tunnel drops, the service stops our deployment orchestrator (in our case, a series of Jenkins agents).

The biggest pitfall? The SLA—or lack thereof. NordLayer's business terms are… nebulous on uptime guarantees for this kind of automated, always-on use case. A brief blip in their service (which, anecdotally, happens more than they advertise) won't just disconnect your devs browsing the web. It'll halt every automated deployment dead. We learned to build in aggressive retry logic and fail-soft mechanisms, because treating NordLayer as critical infrastructure is a fast track to weekend PagerDuty alerts.

So, is it a viable kill switch? Technically, yes. Pragmatically? It's a house of cards built on a service designed for a different purpose. You're trading a hefty price tag from a "real" enterprise SDP for a constant, low-grade maintenance headache and a contract that likely doesn't cover your outage costs. But hey, it's cheap. Until it isn't.


Your free trial ends today.


   
Quote