Dev mode

Every team knows the problem: the cluster holds all the services and all the data, and rebuilding that on a laptop is hard, sometimes forbidden. Meerkat does not copy the environment. It lets a developer run one service on their own machine, in place of the deployed one, for as long as they work on it - everything else stays as it is. The tunnel behind it is plug.

Enterprise edition. plug itself is free, and runs beside any stack. What this page describes - plug integrated into Meerkat, with a key per developer, the substitution named and announced to everyone - is Enterprise. The developers' Swagger, further down, is in every edition.

How it works

Five steps: the first by the administrators, the others once per developer machine, the last to check it works.

1. Turn it on

Two switches, held by two administrators:

  1. An infrastructure admin opens Infra, Plug (/infra/plug), turns on Open the developer tunnel, and under The address developers use types the published Host and Port the developers' machines reach, then Save. The page says what the tunnel is doing: listening, or closed and why.
  2. An application admin opens Application, Users (/application/users) and clicks the dev badge on each developer's row. The badge lights up: the account now has the developer tools.

Infra, Plug: the developer tunnel switch, the published host and port, and who holds the developer capability

Application, Users: each account with its capability badges, the dev badge lit for the developer

2. Install plug on the developer's machine

It installs from the gateway itself, in one command (macOS and Linux; Windows, from Git Bash, has its own):

ssh -p 22222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null get@<gateway-host> install | sh

The On a developer's machine button of Infra, Plug gives these steps with this gateway's address already in them:

Infra, Plug, On a developer's machine: the profile name, then the commands to install plug, make the key pair and plug a service in, all carrying the address recorded for the tunnel

3. Register the machine's key

plug makes a key pair for this gateway, and the developer deposits its public half on their profile (user menu, Developer, plug key):

plug keygen -p <gateway-host>
plug pubkey -p <gateway-host>

A developer's plug key page: one workstation key deposited, shown by its fingerprint and its comment, beside the commands that install plug from this gateway and make the key pair

4. Plug a process in

The developer starts their service through plug, in place of the deployed one:

plug -p <gateway-host> -s user-mng-service:8080:3000 npm run start

What happens then:

5. Check that it works

Open the application in a browser and sign in. Before the application, a page names what is substituted and by whom: your name, with user-mng-service. Click Continue: the strip at the bottom of every page says it again. A call that reaches your machine shows in your local service's own log.

The page met at sign-in while services are substituted: each developer by name, with the services their machine is serving, then Continue

An application page with the strip opened at the bottom: served from a developer's machine, alice for orders-api and orders-ui, bruno for billing-ui

Every system, the Windows installer and the details of each step: Plug.

Taking an access back

The key lives on the developer's account, and the gateway checks it at every connection. Remove the key, or the developer capability, and the tunnel closes within seconds: no certificate or token was issued that could outlive it, so there is nothing to expire and nothing to revoke elsewhere. The profile page shows the key's fingerprint exactly as OpenSSH prints it.

Everybody sees who is serving what

A substitution changes what the application in front of you is. So everyone using it is told, by name: "checkout, by Alice" rather than "checkout, by somebody".

Both are shown above, under Check that it works.

That naming is what the integration brings: each developer has their own key, so each connection says who. With Community, plug runs on its own beside the gateway, with one shared key: a connection then proves the caller has plug, not who they are, and Meerkat knows nothing of the substitution. See One gateway for the compose file and the Helm values that open the integrated tunnel.

The developers' Swagger, served by the gateway

The gateway sees every API of the installation, and knows the OpenAPI description each route declares. So Meerkat turns them into one page, at /meerkat/apidocs, open to developers and to nobody else - in every edition.

It is not just one more Swagger UI next to a service:

The developers' Swagger at /meerkat/apidocs: the Orders API, an operation open in Try it out, and the bar above it calling as alice with one role, BILLING_ADMIN, ticked in By roles

The console has its own reference for Meerkat's administration API, the one the console and the AI agent use: Meerkat, API reference (/system/api).

Meerkat, API reference in the console: the administration API, operation by operation

Who is plugged in, and the trail

Application, Plug lists who is plugged into the cluster now, run by run, with what each serves, and ends a session in one click: the developer's command stops, and the service set aside comes back at once. The audit trail keeps each run's opening and end and each name served. What the plugged process reads from the workload it stands in for (its variables, secrets and volumes) is not an event of its own: it is that service's normal environment. See Plug.