<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unrent]]></title><description><![CDATA[Unrent]]></description><link>https://unrenthq.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:40:38 GMT</lastBuildDate><atom:link href="https://unrenthq.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Pull, don't push: why your deploy tool shouldn't need a way in]]></title><description><![CDATA[Most deploy tools for your own servers work by pushing. They hold an SSH key, log in, and run commands. It works, and it means the tool, and anyone who…]]></description><link>https://unrenthq.hashnode.dev/pull-don-t-push-why-your-deploy-tool-shouldn-t-need-a-way-in</link><guid isPermaLink="true">https://unrenthq.hashnode.dev/pull-don-t-push-why-your-deploy-tool-shouldn-t-need-a-way-in</guid><category><![CDATA[infrastructure]]></category><category><![CDATA[Security]]></category><category><![CDATA[Devops]]></category><category><![CDATA[self hosting]]></category><dc:creator><![CDATA[Hilton Eziogor]]></dc:creator><pubDate>Thu, 03 Dec 2026 09:36:11 GMT</pubDate><content:encoded><![CDATA[<p>Most deploy tools for your own servers work by pushing. They hold an SSH key, log in, and run commands. It works, and it means the tool, and anyone who breaks into it, has a way into every server it manages.</p>
<p>There is another design: the server reaches out instead.</p>
<h2>Push: the tool comes to the server</h2>
<ul>
<li>The tool stores credentials for your servers.</li>
<li>The server keeps an inbound port open for it.</li>
<li>Whatever the tool sends is usually a shell command, so whoever controls the tool controls the server.</li>
</ul>
<h2>Pull: the server dials out</h2>
<ul>
<li>An agent on the server opens an outbound connection to the control plane.</li>
<li>No inbound port, nothing for a scanner to find.</li>
<li>The agent decides what it will accept.</li>
</ul>
<p>The second point is nice. The third is the one that matters. Dialing out only helps if the agent refuses anything it shouldn't do.</p>
<h2>What that looks like in Unrent</h2>
<p><a href="https://unrent.dev/">Unrent</a> is a hosted control plane that deploys apps and Postgres onto servers you already own, and it is built on the pull model:</p>
<ul>
<li><strong>No inbound access.</strong> The control plane never connects to a server and never holds an SSH key, a password or a long-lived credential for one.</li>
<li><strong>Typed jobs, never strings.</strong> There is no "run this command" job. The agent validates every job against its schema before acting.</li>
<li><strong>A passkey for anything destructive.</strong> Destructive and policy jobs carry an approver's passkey signature over the exact job, and the agent checks it against its own list of approvers. That includes deploys a coding agent asks for over MCP.</li>
<li><strong>Fail closed.</strong> An unknown job kind, a missing field, an expired signature or a policy the agent cannot parse all mean: refuse.</li>
</ul>
<h2>The question to ask: what if the vendor is compromised?</h2>
<p>Unrent publishes its own answer. A compromised Unrent could send non-destructive jobs and read ciphertext and metadata. It could not restore over production, point backups at another bucket, add approvers or read secrets.</p>
<p>And if Unrent is simply down, your apps, databases, cron jobs, backups and certificate renewals keep running on your server.</p>
<h2>Try this with any tool</h2>
<p>Ask your deploy platform three things: what credentials do you hold for my servers, what ports must I open for you, and what can you do if you are breached? The answers tell you more than the feature list.</p>
]]></content:encoded></item><item><title><![CDATA[A practical checklist for leaving Heroku, Render or Railway]]></title><description><![CDATA[Inventory, copy the database, prove the new hostname, and only then cut DNS.]]></description><link>https://unrenthq.hashnode.dev/a-practical-checklist-for-leaving-heroku-render-or-railway</link><guid isPermaLink="true">https://unrenthq.hashnode.dev/a-practical-checklist-for-leaving-heroku-render-or-railway</guid><category><![CDATA[Heroku]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Docker]]></category><category><![CDATA[postgres]]></category><category><![CDATA[#selfhosted]]></category><dc:creator><![CDATA[Hilton Eziogor]]></dc:creator><pubDate>Wed, 02 Dec 2026 11:16:20 GMT</pubDate><content:encoded><![CDATA[<p>Leaving a hosted PaaS is less a leap than a sequence. The usual surprises are not "Docker is hard". They are an environment variable nobody listed, a release-phase migration that only the old platform ran, a Postgres add-on that was never dumped, or a DNS cut that happened before the new health check passed.</p>
<p>You can move an app onto a server you own and keep the old side running until the new one has proved itself. This is the order that makes that boring.</p>
<h2>1. Inventory what the platform is doing for you</h2>
<p>Write down everything the current platform provides, not just the web process:</p>
<ul>
<li>Process types: web, workers, cron or scheduled jobs, and any one-off release command.</li>
<li>The datastore: Postgres, Redis or something else, including the major version, and whether you have a recent backup you have restored.</li>
<li>Environment variables, and which of them are secrets.</li>
<li>Domains and certificates, and who owns the DNS.</li>
<li>File storage, email, background queues and other add-ons you will have to replace or point at a new host.</li>
<li>How the app is built: a Dockerfile, a buildpack, or a <code>compose.yaml</code>.</li>
</ul>
<p>On Heroku:</p>
<pre><code class="language-bash">heroku ps --app your-app
heroku addons --app your-app
heroku config -s --app your-app &gt; prod.env
heroku domains --app your-app
heroku pg:info --app your-app
</code></pre>
<p>Treat <code>prod.env</code> as secret. It does not belong in git, in a chat or in a ticket. For Render or Railway, export the same list from the dashboard or from the infrastructure file you already use. The names differ; the inventory should not.</p>
<p>Lower the TTL on your production records now, while nothing else is changing, so the later cutover is not waiting on a day-old cache.</p>
<h2>2. Get a server that will still be yours after you leave</h2>
<p>Pick a Linux VPS in an account you control. You will need Docker Engine 28 or newer, and a current Ubuntu, Debian, RHEL-family, Fedora or Amazon Linux release. The app, the database and the proxy will run there. If the control plane you use later goes away, those workloads should keep running on that server.</p>
<p>Do not point production DNS at this machine yet. Give it a hostname you can hit for tests, and open only 80 and 443 (plus SSH, until you have another path in).</p>
<h2>3. Make the app build in a way that is not tied to the old platform</h2>
<p>A Dockerfile is the portable unit. If you already have one, use it. If you do not, this is the moment to add one, or to use a builder that takes the same repository and produces an image on your server.</p>
<p>Pin the image you deploy by digest, not only by a tag. Record the digest when you pull or build, so a rollback is a redeploy of the same image, not a rebuild that may not match.</p>
<pre><code class="language-bash">docker build -t web:move .
docker images --digests --no-trunc web:move
</code></pre>
<p>Set a health check the new side can run before it takes traffic: an HTTP path such as <code>GET /healthz</code>, or a TCP check if you have nothing else. If the app has a release-phase migration, run that command from the new image, with a time limit, before any switch. If it fails, stop; the old platform is still serving.</p>
<h2>4. Move the configuration, then the data</h2>
<p>Load the non-secret variables onto the new service. Set secrets in a way that does not leave them in your shell history, or in a control plane that does not need them in plaintext.</p>
<p>Then copy the database. Take a fresh dump from the current primary, restore it to a Postgres on the new server, and compare. Leave the old database running. A typical Postgres path looks like this:</p>
<pre><code class="language-bash"># from the current platform, into a custom-format dump
pg_dump "$SOURCE_DATABASE_URL" --format=custom --no-owner --no-acl --file=app.dump

# onto the new server's database
pg_restore --no-owner --no-acl --dbname="$TARGET_DATABASE_URL" app.dump
</code></pre>
<p>On Heroku you can also use <code>heroku pg:backups:capture --app your-app</code> and <code>heroku pg:backups:download --app your-app</code>. Restore into a database that is not yet serving production traffic. Check row counts, a few known records, and that the app can boot against the copy.</p>
<p>If the app writes continuously, plan a short freeze or a follow-up sync for the final cut.</p>
<h2>5. Prove the new side before you cut DNS</h2>
<p>Deploy the image on the new server, run migrations from that image, start it, and hit the health check on the new hostname. Click through the real user paths: sign in, a write, and a background job if you have one.</p>
<p>Only then attach the domain. Keep the old platform live so you can send traffic back if you need to. When you are ready, point the records at the new servers, wait until you see traffic and healthy checks, and watch logs before you tear anything down.</p>
<h2>How Unrent fits</h2>
<p>Unrent is a hosted control plane that deploys apps and Postgres onto servers you already own. An agent on the server connects out, so Unrent holds no SSH key and opens no inbound port. Your app keeps running if Unrent is down.</p>
<p>You can connect a server you already have, or have Unrent create one in your own account on Hetzner, DigitalOcean, Vultr, Akamai (Linode), Scaleway, UpCloud, AWS EC2, Amazon Lightsail, Google Cloud, Azure or OVHcloud.</p>
<p>Add the app as an image, or from a GitHub, GitLab, Bitbucket or Gitea/Forgejo repository. If the repository has a Dockerfile, Unrent builds it on your server and deploys the image by digest. If it has a <code>compose.yaml</code> and no Dockerfile, it deploys as a stack. Otherwise Railpack can detect the language; you can also choose Cloud Native Buildpacks. Set the port and a health check. Values you mark as secret are sealed in your browser to the server, so Unrent stores only ciphertext.</p>
<p>Create a Postgres 17 or 18 database on the same server and link it to the service. Linking writes <code>DATABASE_URL</code> and the usual <code>PG*</code> variables into the service's config. Restore your dump into that database, then deploy. The run view shows pull or build, the pre-deploy command, start, health check and the switch. A release that fails its health check never receives traffic.</p>
<p>For the domain, add it to the service and create the TXT and A/AAAA (or CNAME) records Unrent shows you. The TXT record on <code>_unrent-challenge</code> proves the name is yours. Once the checks pass, the domain goes live and gets a Let's Encrypt certificate on its first visit. Every service also gets an HTTPS address on <code>unrent.page</code> that you can use as the test hostname, before you touch production DNS.</p>
<p>After the cut, add an S3-compatible bucket for backups (Amazon S3, Cloudflare R2, Backblaze B2 or another compatible service) and check that a restore works. The old platform can stay up as a fallback until you are sure you will not need it.</p>
<h2>The order, one more time</h2>
<ul>
<li>Inventory processes, add-ons, config, domains and the database. Lower DNS TTLs.</li>
<li>Put a server in an account you control. Do not cut DNS yet.</li>
<li>Build a pinned image, with a health check and a migration command.</li>
<li>Copy config, then restore a fresh database dump into a new Postgres, and verify it.</li>
<li>Deploy, pass the health check, and exercise the app on a temporary hostname.</li>
<li>Point DNS at the new side, watch it, and only then take the old platform down.</li>
</ul>
<p>The move is done when the app, the data and the domain are on infrastructure you can keep without the old platform, and you have already seen the new side serve real traffic.</p>
<p>More at <a href="https://unrent.dev/">unrent.dev</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Guardrails for a coding agent that can reach production]]></title><description><![CDATA[Read access first, secrets kept off the model, and a passkey over the exact job.]]></description><link>https://unrenthq.hashnode.dev/guardrails-for-a-coding-agent-that-can-reach-production</link><guid isPermaLink="true">https://unrenthq.hashnode.dev/guardrails-for-a-coding-agent-that-can-reach-production</guid><category><![CDATA[production]]></category><category><![CDATA[AI]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Security]]></category><category><![CDATA[mcp]]></category><dc:creator><![CDATA[Hilton Eziogor]]></dc:creator><pubDate>Wed, 02 Dec 2026 11:15:11 GMT</pubDate><content:encoded><![CDATA[<p>Coding agents are now close enough to your infrastructure to be useful. They can read logs, sketch an environment and request a deploy from the same conversation in which they just changed the code. That is a good workflow only if a bad or unexpected request cannot land in production on its own.</p>
<p>The failure mode is not "the model is evil". It is more ordinary: the agent picks the wrong environment, a prompt includes a secret, a tool call is broader than you thought, or a request that looks like yours was not something you would have typed. You want the agent to be able to ask, and you want a person to approve the exact change before a server acts on it.</p>
<h2>Start with read access</h2>
<p>Give the agent the smallest scope that still helps. Read access is enough to list environments, inspect service health and fetch redacted logs. That is the right first connection: you can ask "what is running in production?" without also granting "deploy it".</p>
<p>Grant deploy or operate access only for the workflows you intend to use, and only for the organisation you mean. A connection that can see every organisation you belong to, or that was left on from a laptop experiment, is how a casual prompt becomes a production change.</p>
<p>If your client supports it, reconnect and review the scopes instead of assuming last month's defaults still hold. Ask the agent to list environments and services first. If it can already request a deploy at that point, the scope is too wide.</p>
<h2>Never let secrets pass through the model</h2>
<p>A coding agent that can print a database password or an API key will, sooner or later, put that value in a log, a chat transcript or a tool argument. Treat that as a design constraint, not a policy you hope the model will follow.</p>
<p>Practical rules:</p>
<ul>
<li>The agent can know the <em>names</em> of secrets, not their values.</li>
<li>Setting a secret happens on your machine, not in the chat.</li>
<li>Production credentials never go into a sandbox, a preview or a paste "so the agent can try it".</li>
</ul>
<p>If you need to add a key, do it in a local command that reads the value from stdin or a prompt, and confirm afterwards that the chat never saw it. If a tool offers to "set STRIPE_KEY=sk_live_â€¦" for you, refuse the tool and set the value yourself.</p>
<h2>Approve the exact job, not a standing permission</h2>
<p>A blanket "this agent may deploy" is hard to reason about. A better control is: the agent requests a deploy, the control plane holds the job, and a person signs that exact job. The approval should not be reusable for a different image, service or environment.</p>
<p>Put a time limit on it. A request that sits in a queue overnight is no longer the thing you looked at. The tool result should come back as "this needs your approval" with a link to the job, and nothing should be sent to the server until you sign it.</p>
<p>The shape looks like this:</p>
<ol>
<li>The agent asks to deploy, roll back or restart.</li>
<li>The job is signed and held. The new release is not running.</li>
<li>You review the exact job and approve it with a passkey.</li>
<li>The server checks that signature and the approval itself, then acts.</li>
</ol>
<p>Step 4 matters as much as step 3. If the rules live only in the control plane, a compromised control plane can skip them. The stronger version is that the server also knows the policy, and will refuse a deploy that does not have the approvals.</p>
<h2>Put a floor on production</h2>
<p>Not every environment needs the same friction. A personal preview can be loose. Production should not be.</p>
<p>Set an approval floor on production for deploys, config changes and rollbacks: at least one person, and two if more than one person can already approve. If you can, refuse self-approval, so the person who asked for the change is not also the only person who signs it.</p>
<p>That is the right place to be strict, because a coding agent is otherwise very good at doing exactly what you just implied in a hurry.</p>
<h2>Give the agent a place that is not production</h2>
<p>When the agent needs to try a change, give it a disposable copy: its own URL, a time limit, and a database that is masked or empty, from a non-production environment. A sandbox should never receive a production secret and should never be able to touch production.</p>
<p>Separately, check the agent's tools for anything that deletes a database, a service or a server. If the answer is not a clear no, do not connect that agent to production.</p>
<h2>How Unrent runs this</h2>
<p>Unrent is a hosted control plane that deploys onto servers you own. You can connect Claude Code, Codex, Cursor, VS Code or another MCP client to <code>https://mcp.unrent.dev/mcp</code>. On first use, choose one organisation and start with read access. Grant deploy or operate access only for the workflows you intend to use.</p>
<p>Claude Code:</p>
<pre><code class="language-bash">claude mcp add --transport http unrent https://mcp.unrent.dev/mcp
</code></pre>
<p>Then type <code>/mcp</code> in Claude Code, choose unrent and sign in.</p>
<p>Codex CLI:</p>
<pre><code class="language-toml"># ~/.codex/config.toml
[mcp_servers.unrent]
url = "https://mcp.unrent.dev/mcp"
</code></pre>
<pre><code class="language-bash">codex mcp login unrent
</code></pre>
<p><code>get_variables</code> returns the names of secrets, never their values, and <code>set_variables</code> refuses anything that looks secret. You set the value on your own machine, where it is sealed, so it never passes through the model:</p>
<pre><code class="language-bash"># the value is read from stdin
unrent env set production/web STRIPE_KEY=- --secret
</code></pre>
<p>Deploys, rollbacks and restarts requested by the agent are signed and held. The tool answers <code>approval_required</code> with a link. Nothing is sent to the server until a person approves that exact job with a passkey (Touch ID, Windows Hello or a security key). A job nobody approves within 10 minutes expires. The server enforces the same rule: an approval floor is stored on the server as a policy change, and after that it refuses a deploy that does not have those approvals.</p>
<p>An admin can set an environment to need 0, 1 or 2 approvals. Production's floor is one by default, and you can raise it to two. You can also turn on the two-person rule so nobody approves their own request.</p>
<p>An authorised agent can create a disposable sandbox under the sandbox policy. A sandbox never gets a secret value and never touches production. No MCP tool deletes a database, a service or a server.</p>
<h2>A checklist before you let an agent request deploys</h2>
<ul>
<li>Does the connection have read access only, until you deliberately grant more?</li>
<li>Can the agent read or set secret values, or only their names?</li>
<li>Does a deploy, rollback or restart wait for a person to sign that exact job?</li>
<li>Does the approval expire if nobody acts on it?</li>
<li>Does the server itself refuse a change that lacks those approvals?</li>
<li>Does production need at least one approval, and can you require two?</li>
<li>Is there a sandbox path that cannot see production secrets?</li>
<li>Can the agent delete a database or a server? If the answer is not a clear no, do not connect it.</li>
</ul>
<p>A coding agent is a fast junior operator. Give it the same rule you would give a person: it can ask, it can inspect, and production does not move until you say so, on that job, with a key only you can use.</p>
<p>More at <a href="https://unrent.dev/">unrent.dev</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Close SSH on your VPS without locking yourself out]]></title><description><![CDATA[A second path in, a matching firewall, and only then close port 22.]]></description><link>https://unrenthq.hashnode.dev/close-ssh-on-your-vps-without-locking-yourself-out</link><guid isPermaLink="true">https://unrenthq.hashnode.dev/close-ssh-on-your-vps-without-locking-yourself-out</guid><category><![CDATA[Linux]]></category><category><![CDATA[Security]]></category><category><![CDATA[Devops]]></category><category><![CDATA[#selfhosted]]></category><category><![CDATA[ssh]]></category><dc:creator><![CDATA[Hilton Eziogor]]></dc:creator><pubDate>Wed, 02 Dec 2026 11:12:14 GMT</pubDate><content:encoded><![CDATA[<p>Most VPS images start with SSH open to the internet on port 22. That is convenient on day one, and it is also the port that gets scanned all day. Closing it is a good idea. Doing it in the wrong order is how people lock themselves out of a box they still need.</p>
<p>You can close SSH safely. You just need another way to reach the server, a firewall that matches what you think is open, and a way to deploy and debug that does not depend on an inbound port.</p>
<h2>What "closing SSH" actually means</h2>
<p>Two things have to be true at once:</p>
<ol>
<li><code>sshd</code> is not reachable from the internet. Either it is not listening on a public address, or the firewall (on the host and at your cloud provider) drops port 22.</li>
<li>You still have a path to run commands when something breaks: the provider's serial or VNC console, SSH only on a private network (for example Tailscale), or a management agent that opens a terminal only when you ask.</li>
</ol>
<p>If you only change <code>sshd_config</code> and leave port 22 open, scanners still find a listener. If you only close the port and have no other path in, the next kernel update or bad firewall rule becomes an outage you cannot fix.</p>
<h2>Look at what is actually listening</h2>
<p>Before you change anything, see what the server already exposes:</p>
<pre><code class="language-bash">sudo ss -tulpn
sudo iptables -L -n
# Ubuntu/Debian, if ufw is in use:
sudo ufw status verbose
</code></pre>
<p>On a typical new VPS you will see <code>sshd</code> on 22, and maybe nothing else. After you put an app in production you should see 80 and 443, and nothing unexpected. A forgotten <code>docker run -p 5432:5432</code>, or a database published to <code>0.0.0.0</code>, is more common than people think.</p>
<p>Do the same check in your cloud console. The host firewall and the provider's security group are two separate doors. If either one is open, the port is open.</p>
<h2>Harden SSH before you depend on closing it</h2>
<p>Keep SSH available while you set up the rest, but stop it accepting passwords. On OpenSSH this is the usual baseline:</p>
<pre><code class="language-bash"># in /etc/ssh/sshd_config.d/hardening.conf
PasswordAuthentication no
KbdInteractiveAuthentication no
PermitRootLogin prohibit-password
</code></pre>
<p>Then test and reload:</p>
<pre><code class="language-bash">sudo sshd -t &amp;&amp; sudo systemctl reload ssh
</code></pre>
<p>Use a second session to confirm you can still sign in with a key before you close the first one. A change that drops your only session is the classic lock-out.</p>
<p>If you plan to keep SSH at all, restrict it further: only from your own address, or only on a tailnet. Binding SSH to a private interface is stronger than hoping a long key is enough on a public port.</p>
<h2>Set a default-deny firewall</h2>
<p>On Ubuntu or Debian with <code>ufw</code>:</p>
<pre><code class="language-bash">sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 22/tcp   # temporary, until the new path in is proven
sudo ufw enable
sudo ufw status verbose
</code></pre>
<p>On a RHEL-family server, the same idea is a default-deny nftables or firewalld zone, with only the ports you chose. Allow outgoing traffic: an outbound-only agent, package updates and certificate issuance all need it.</p>
<p>Do not delete port 22 in this step. Prove the next path first.</p>
<h2>The outbound-only path</h2>
<p>The reason SSH stays open on so many app servers is that the deploy tool needs a way in. CI holds a key, a panel shells in, or you <code>ssh</code> to run <code>docker pull</code>. That means a listening port, and a key that has to live somewhere other than the server.</p>
<p>The other pattern is an agent on the server that dials out, usually over a websocket, and only accepts instructions that are signed and narrowly typed. Nothing listens for the control plane. If you disconnect the agent, the app containers, the database and the proxy keep running; you have only lost the remote panel.</p>
<p>That is the path you want to prove before you close port 22:</p>
<ul>
<li>The agent is connected.</li>
<li>You can deploy, read logs and, if you need a shell, open a terminal through that path.</li>
<li><code>ss -tulpn</code> shows no listening port for the agent itself.</li>
</ul>
<p>Only when those are true is it safe to take SSH off the public internet.</p>
<h2>Then close port 22</h2>
<p>Close SSH in both places: the host firewall and the cloud security group. If you still want a break-glass key, leave <code>sshd</code> running but bound to the tailnet, or allowed only from your address, and confirm that a scan of the public IP no longer shows 22.</p>
<pre><code class="language-bash"># ufw: drop the temporary SSH rule
sudo ufw delete allow 22/tcp
sudo ufw status verbose

# confirm nothing is listening on the public address
sudo ss -tulpn | grep ':22'
</code></pre>
<p>Then, from a network that is not on any allow-list, check that the public IP refuses 22 and still serves 80 and 443. The provider console stays your last resort.</p>
<h2>How Unrent runs this</h2>
<p>Unrent is a hosted control plane that deploys apps and Postgres onto servers you already own. The agent on each server connects out. Unrent does not hold an SSH key, and the agent does not open a listening port.</p>
<p>Servers Unrent creates have SSH closed unless you choose otherwise. You can leave it off, open it only from your address with your key, or only over Tailscale. Web traffic can be public on 80 and 443, or only through a Cloudflare Tunnel, with no inbound port at all.</p>
<p>A terminal session is not a standing login. It is a recorded session that your approvers sign with a passkey, and the server checks that approval itself before a shell opens. Opening a shell on the server itself takes two approvers.</p>
<p>The same set of open ports is enforced twice: in your cloud firewall, where Unrent puts the rules back if someone changes them in the cloud console, and in the server's own firewall. Every night the server compares what is listening with that set and reports, in plain words, a port open to the internet, a missing firewall, SSH accepting passwords, or a cloud firewall changed outside Unrent.</p>
<p>If you bring a server you already have, the install command ends by offering the same choice: pick the profile, review the hardening plan, then apply it. The plan is shown first; nothing is applied until you accept it. On the server, <code>sudo unrent doctor</code> checks the agent, its outbound connection, the clock, Docker and the firewall, and prints a one-line fix for anything that fails. It only reads; it does not change the server.</p>
<h2>A checklist you can reuse</h2>
<ul>
<li>Do you have a path in that is not port 22: provider console, private SSH, or a connected outbound agent?</li>
<li>Have you confirmed that path with a real command, not just a "connected" light?</li>
<li>Do the host firewall and the cloud security group allow the same set of ports?</li>
<li>Does <code>ss -tulpn</code> match that set?</li>
<li>If SSH still runs, does it accept keys only, and only from a network you intend?</li>
<li>After you close 22, did you test from an address that should be blocked?</li>
</ul>
<p>Close the port last, not first. The goal is a server that has nothing inbound it does not need, and a way back in that you have already used.</p>
<p>More at <a href="https://unrent.dev/">unrent.dev</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Tags move, digests don't: rolling back without a rebuild]]></title><description><![CDATA[When a release goes wrong, the fastest fix is usually to put the last good one back. How fast and how safe that is depends on one detail: what you roll…]]></description><link>https://unrenthq.hashnode.dev/tags-move-digests-don-t-rolling-back-without-a-rebuild</link><guid isPermaLink="true">https://unrenthq.hashnode.dev/tags-move-digests-don-t-rolling-back-without-a-rebuild</guid><category><![CDATA[Docker]]></category><category><![CDATA[Devops]]></category><category><![CDATA[deployment]]></category><category><![CDATA[containers]]></category><dc:creator><![CDATA[Hilton Eziogor]]></dc:creator><pubDate>Wed, 02 Dec 2026 10:45:17 GMT</pubDate><content:encoded><![CDATA[<p>When a release goes wrong, the fastest fix is usually to put the last good one back. How fast and how safe that is depends on one detail: what you roll back <em>to</em>.</p>
<h2>Rolling back to a tag</h2>
<p><code>docker run ghcr.io/you/web:1.4.1</code> looks precise, but a tag is a pointer. Someone can push over it, a CI job can retag it, and <code>:latest</code> changes every release. Rolling back to a tag means trusting that it still points at the image that ran yesterday.</p>
<h2>Rolling back by rebuilding</h2>
<p>Checking out the old commit and rebuilding is slower, and it is not the same release. Base images, package versions and build caches move. You can end up with an image that was never tested.</p>
<h2>Rolling back to a digest</h2>
<p>Every image has a SHA-256 digest, and it never changes. If you record the digest at deploy time, a rollback is just "run this exact image again":</p>
<pre><code class="language-bash"># record it when you deploy
docker inspect --format '{{index .RepoDigests 0}}' ghcr.io/you/web:1.4.2
# roll back to the exact image that ran before
docker run -d ghcr.io/you/web@sha256:&lt;previous digest&gt;
</code></pre>
<h2>Don't forget the config</h2>
<p>The image is half the release. The other half is the environment it ran with. If you roll back the image but keep a changed variable, you may not be back where you were. Version the config next to the image, and roll back both together.</p>
<h2>How Unrent does it</h2>
<p>Unrent deploys onto servers you own, through an agent that connects out from the server. Images are pinned to their SHA-256 digest on pull. A rollback redeploys an earlier release by its digest, with the config version it ran with. Nothing is rebuilt, so it takes as long as a container start and a health check.</p>
<p>Config changes are versioned too: changing a variable creates a new version you review and apply, and it goes through the same health check and traffic switch as a deploy. Promotion from staging to production deploys the exact digest that ran in staging, with production's own config.</p>
<h2>The short version</h2>
<p>Pin the digest, version the config, and make rollback a redeploy rather than a rebuild.</p>
<p><a href="https://unrent.dev/">unrent.dev</a></p>
]]></content:encoded></item></channel></rss>