midplane 0.22.0 · 0.24.0 available, and How to upgrade shows
the commands for that gateway, with the release’s version in them. A linked
gateway (0.25.0+) says so in its log too, once per release while it runs:
newer midplane available (logs).
When an upgrade is needed
When a release fixes a security problem, Midplane Cloud makes it the lowest version gateways should run. A gateway below it says why on its row, with How to upgrade; the project’s overview shows a banner; and the organization’s owners and admins get one email for each new lowest version. A linked gateway (0.25.0+) logs the warning midplane upgrade needed, with
the reason. The gateway keeps enforcing your policy meanwhile: the warning
never stops it.
What carries over
- Deploy Midplane Cloud before gateways. A gateway’s sync reports what it supports, and a newer gateway’s calls need a cloud that knows them; an older cloud refuses its status, and the sync fails until the cloud is upgraded.
- Gateways halt rather than half-enforce. A bundle that needs a feature a gateway lacks halts it, and the dashboard warns before publishing one to a gateway that would.
- Restarts keep enforcing. A linked gateway enforces its cached bundle while it reconnects, and resumes pushing its audit log where it stopped.
- The audit file, the bundle cache and the identity carry over between versions; keep them on a volume.
Changes that need attention
0.26.0: writes moved to awritetool.queryruns reads only and refuses a write with a message namingwrite;writeruns writes and refuses reads. Agents see the new tool when their client next lists the gateway’s tools, on reconnect or in a new session. A prompt or script that sent writes throughquerymust send them throughwrite, and a held write’s approval is claimed by re-running it there. Clients run a read-only tool without asking and gate the rest, which one tool that did both couldn’t express (tools).
Docker
Use a fixed version, such asghcr.io/midplaneai/midplane:0.26.0, not
:latest: Docker doesn’t download :latest again once the image is on the
server. Pull the new image first, so the gateway is down only between removing
its container and starting the new one. Its volume, with its identity, cached
policy and audit log, stays.
The dashboard names a gateway’s container midplane-gw- and 8 characters,
such as midplane-gw-k3m9x2qa, and How to upgrade names it when Midplane
Cloud knows it. That’s the name the page gave, so check that the server lists
it before you remove anything: docker rm -f of a name that isn’t there says
nothing, and the new container would be a second gateway. Its name starts with
midplane-.
Behind the relay
In the folder withmidplane.env, with <container> replaced by the
gateway’s container and <version> by the release’s:
At your own URL
Have thedocker run -d command you started it with at hand: it’s the one way
to start it again. Then pull the new image, and remove the container:
docker run -d command you started it with,
with the new version in place of its tag: Midplane Cloud doesn’t know the
port or the certificate you chose.
Your computer
Stop the gateway (Ctrl-C), then start it again in the folder you ran setup
in, such as:
midplane@latest gets the newest release each time it starts. The folder
has the name in the gateway’s URL: http://gw-k3m9x2qa.localhost:7433 is
gw-k3m9x2qa, and so is the Midplane URL
https://gw-k3m9x2qa.eu.midplane.app/mcp. Behind the relay, How to
upgrade opens on Docker, since the URL doesn’t say where the gateway
runs: choose Your computer.
Deploy templates
Each version’s template, chart and Blueprint runs that version’s image.AWS
Update the stack with the new version’s template, replacing the current one withhttps://midplane-gateway-templates.s3.eu-central-1.amazonaws.com/gateway/<version>/aws.yaml.
The instance stops and starts, and runs the new image; its disk, and with it
the gateway, stays.
Fly.io
fly machine list -a midplane-gw-… shows the id. The volume, and with it the
gateway, stays.