Your team is the SSH keys on the server. Whoever has a key there is on the team.
One key for everything
A key logs in as root. So everyone with a key may do everything on that server: deploy, read env vars, restore, delete.
moin keys my-server moin keys add my-server anna.pub moin keys rm my-server anna@laptop
moin keys my-serverlists the keys, by name and fingerprint.moin keys add my-server anna.publets Anna in.moin keys rm my-server anna@laptoptakes her out. She can’t log in from then on. It asks first, and needs-yin a script.
Deploy without a key
Not everyone needs root. A designer or a contractor may only need to ship.
- Give them push rights on the GitHub repo.
- Turn on
moin followfor the app:moin follow my-app --branch main. - Protect the branch on GitHub. Pull request, review, then merge.
Now a merge to main deploys to the server within a minute. The person never gets a key. Whoever can push to that branch can deploy, so protect it. Deploy from CI
Does your CI build an image? moin follow my-app --image ghcr.io/you/my-app:main deploys each image it pushes. CI gets no key to the server either. Deploy after your tests pass
Why no roles per key
A deploy runs code on the server as root. Whoever may deploy may do anything. A role “can deploy, can’t read env” would be a lock on an open door.
So moin has no roles. The line is simple: a key is root, or it is not there. The branch protection on GitHub is where you decide who ships.
What is coming
A log of who did what: which key deployed, rolled back or restored, and when. Roadmap