Skip to content

Type a word or two, like firewall or rollback.

Open Coresmith
Browse the docs
Concepts Checked against Coresmith 0.8.46.

How Coresmith protects your servers

Open as Markdown

Coresmith protects a server in three ways: it controls who can sign in, it locks the server down when it sets it up, and it checks every hour that the server stays that way.

Who can sign in

Coresmith reaches each server with a key it made for that server alone. The private half is stored encrypted and never leaves Coresmith. No page shows it or lets anyone download it.

People sign in with their own SSH keys, and only by role. The keys an Owner or Admin adds to their account go onto every server they can see. A Developer's keys go onto the servers they added. A Deployer's keys go nowhere. Nobody's keys go onto a server where an app or database is held back from them, since a shell there would reach it. Roles and permissions has the details.

The terminal in the browser opens a shell as an app's user for owners, and for developers on servers they added. Owners can also open one as root while Root terminals is on, and a root shell asks for their password every time, plus a two-factor code if they use one. Open a terminal on a server.

Password logins over SSH are turned off, so a stolen or guessed password gets nobody in.

What setup locks down

When Coresmith sets a server up, it:

  • turns off SSH password logins;
  • blocks an address for an hour after 5 failed sign-ins in 10 minutes;
  • closes every incoming port except SSH and web traffic, 80 and 443, until you open one;
  • installs security updates every day;
  • drops spoofed and redirected network traffic, and stops processes from inspecting each other;
  • records changes to users, sudo, SSH, cron and Coresmith's own settings on the server.

Coresmith never turns on automatic reboots. Some updates, such as a new kernel, take effect only after a restart, so restart the server when it suits you.

The hourly check

Every hour, Coresmith checks each protection and shows the result on the server's Hardening tab. If one is off, perhaps because someone changed a setting by hand, the tab says so and offers a button to turn it back on. Coresmith leaves that choice to you.

Two protections are the exception, since nothing outside Coresmith should ever change them: apps can't reach the controls that route traffic to them, and requests for domains you didn't add get no answer. If either is off, Coresmith closes it again within the hour.

Check a server's protections walks through the tab.

What Coresmith leaves alone

Coresmith checks only what it set up. Users, services, packages, cron jobs, firewall rules and SSH keys that you add yourself stay as they are. It never flags them and never removes them.

A changed host key

Coresmith remembers each server's SSH host key the first time it connects. If the key ever changes, Coresmith stops connecting and asks a person to accept or reject the new one. A rebuilt server explains a change. Anything else is worth a look before you accept, because a server swapped out from under you shouldn't receive your deploys or secrets.

Your secrets

Cloud provider tokens, GitHub keys, deploy keys, database passwords and app environments are stored encrypted. API tokens are stored only as a hash. Deploy logs hide the values of environment variables.