Debugging customer deployments without SSH

  • Alon Gubkin
4 min read

A customer says it is broken. You ask for logs, and they need approval to share them. You ask for config, and it takes three days.

Then you get on a call and read a stack trace on someone else's screen.

One vendor described their support to us in one line: "Debugging still happens over Zoom."

Why not just SSH?

Because the customer will say no, and they're right to.

SSH needs an open inbound port and a credential that works on their machines. Whoever holds it can read anything on the host, including the data your product handles. Their security team can't tell what you did with it afterwards.

So most vendors end up with the Zoom call. It's slow, it depends on someone being awake in the customer's time zone, and you learn only what they think to show you.

The way out is to stop asking for a shell. When something breaks, you need to know what happened, what the state is now, and what the cloud says about it. You can get each answer over an outbound connection, with much less trust than SSH.

What happened: logs

Send logs from the deployment to you, outbound. The connection goes one way and carries only what your product writes. A security team approves this far more easily than a tunnel.

With Alien, every deployment sends its logs and status over outbound HTTPS, and you read them from the CLI or the dashboard:

alien deployments get customer-1/us-east-1
alien deployments events customer-1/us-east-1 --limit 50
alien logs --deployment customer-1/us-east-1 --level error --since 1h

Add --system to see platform logs too: an image that can't be pulled, or a role that can't be assumed. Those errors never reach your own code, so your logs alone won't show them.

The customer chooses a telemetry setting during setup: Automatic, Approval required or Off. If it's off, there are no logs to read. Agree on it before the first incident, not during it.

What's the state now: commands

Logs show the past. Sometimes you need the present: how deep a queue is, how far a job got, what one record looks like.

A command is a handler you write in your own code. It runs inside the customer's environment, next to their data, and returns only what you chose to return:

queue/src/index.ts
import { createCommandReceiver } from "@alienplatform/commands"
import { kv } from "@alienplatform/sdk"
import { z } from "zod"

const index = kv("index")
const receiver = createCommandReceiver()

const QueueInput = z.object({ prefix: z.string() })

receiver.command("queue-depth", QueueInput, async ({ prefix }) => {
  const page = await index.scan(`job:${prefix}`, 100)
  return { pending: page.items.length }
})

await receiver.run()

You call it from the CLI, or from your backend:

alien commands invoke --deployment customer-1/us-east-1 \
  --command queue-depth --params '{"prefix":"exports"}'

Architecture diagram. Customer's cloud (Your handler, Customer data) connects outbound to the Your side (CLI, Command, Result), via https 443, outbound.

The deployment opens the connection, takes the command, and returns the result.

A command is not a shell. You can run only the handlers you wrote, and only what a handler returns leaves their environment. Turn them on per resource with .commandsEnabled(true) in alien.ts.

What does the cloud say: debug sessions

Some problems live below your code. A permission was denied. A load balancer has no healthy targets. A pod keeps restarting.

For these you need the cloud's own tools. alien debug runs aws, gcloud, az or kubectl on your machine, with credentials scoped to one deployment:

alien debug customer-1/us-east-1 --request-access -- aws sts get-caller-identity

Each session needs an approved access request. It's time-limited, and the customer or your team approves it, depending on how the deployment was set up. Without approval, Alien refuses the session. Even with it, the session can do only what the customer's setup granted.

This is the most trust you ask for, so it comes last. Most incidents end at the logs or a command.

By symptom

You seeStart with
Failed statusFailed resources in alien deployments get
Running, but users see errorsalien logs for the reported time window
Stuck in progressalien deployments events, then alien logs --system
Not reportingalien deployments machines, then alien deployments resources

Debug a deployment covers each step.

Where Alien fits

With one or two customers, a shared log bucket, a few scripts and a good runbook may be enough.

It gets hard when every customer has a different cloud, a different network and a different security team to convince.

Alien keeps your control plane in your cloud and puts only the data plane in theirs, connected outbound. Logs, commands and approved debug sessions come with every deployment. See commands, logs and metrics and the Remote Operator product page.

Related reading: what BYOC is, the agent nobody operates and how to update software in customer clouds.