A Company That Doesn't Exist, Built Like One That Does
I built the full IT stack for a pretend company: identity, SSO, VPN, CI/CD, secrets, SIEM, all open source. What it taught me, and where it still falls short of Entra and Conditional Access.

Contents
Let me get this out of the way first: SecBitz has no customers. It has a logo, a website, a VPN, a SIEM, an onboarding checklist and a break-glass procedure. It has a pentest report. It has no customers, and apart from the IT department, no employees.
SecBitz is my “fictional” company. The quotes are there because everything except the revenue is real. I wanted to know what it takes to run IT for a small company the way I’d want it run. Not an IT company: an ordinary small business that happens to have an IT department. The IT department is me. The only honest way to find out was to build it. Not a lab with one of everything. A company, with people who join and leave, data that has to stay separated, and a pipeline that puts things into production.
It started the way most of my projects do, on skui.io: Hugo, Docker, a Gitea runner, one server in the basement. SecBitz is what happens when you keep asking “and what would a real company need here?” until you run out of excuses.
What actually runs
Twelve VMs on one Dell R730xd in the rack, all built from code:
- FreeIPA: users, groups, internal DNS, internal CA. The one place a person exists.
- PocketID: SSO with passkeys, fed from FreeIPA over LDAPS.
- NetBird: WireGuard VPN. Login is SSO, access is group.
- Forgejo + Actions runner + Trivy + Renovate: git, CI/CD, image scanning, dependency updates.
- OpenBao: secrets. Not in git, not in env files lying around, in a vault.
- Wazuh, Velociraptor, Fleet: SIEM, forensics, device management and policy.
- A start page: the company’s front door in the browser, behind SSO.
- MeshCentral: remote support, for when a colleague’s laptop misbehaves.
- Nextcloud + Collabora: files and office, with a folder per team and project.
- Traefik at the edge, a website in its own DMZ, and a home-built network dashboard on top of Zeek.
Everything is Ansible in one repo. A push to main or a merged Renovate PR runs the playbook for whatever changed. Nobody, me included, SSHes in and fixes things by hand. Well. Nobody is supposed to.
Everything is a group
This is the part I’m proudest of, and it’s the part that taught me the most.
There is exactly one place you create a person: FreeIPA. Then you put them in groups, and the groups decide everything else:
| Group | Gives you |
|---|---|
staff | The VPN, and the internal network behind it |
techs | The IT department: server logins and admin tools |
app-<name> | Permission to sign in to that app |
app-<name>-admins | Admin inside that app |
nc-<name> | A shared folder for that team or project, created automatically |
PocketID syncs the groups every five minutes, and each app’s OIDC client only admits its own group. NetBird reads the groups from the login token, so VPN access is a FreeIPA group too. Even the start page shows only the tiles for apps you’re allowed to open.
The payoff is offboarding. Lock one user in FreeIPA and they are gone from the VPN, git, files, the SIEM, the hypervisor, all of it, within minutes. No list of twelve admin panels to remember. That is the thing small companies get wrong most often, and it’s the thing a group-driven design gets right almost for free.
The lesson underneath: access control is a design decision, not a configuration task. If you decide on day one that every app gets app-x and app-x-admins, every app after that is twenty minutes of work. If you don’t, every app is a new snowflake and you will never audit them.
Day one: onboarding and the laptop
Groups are only half of it. The other half is what a new person actually experiences on their first morning.
The IT department creates the user in FreeIPA, adds the groups, and sends a one-time login code over a channel I trust. The new person opens it and registers a passkey: phone, YubiKey or password manager. That’s the account. There is no password to write on a sticky note.
Then the laptop. The developers get Linux: an Ubuntu USB stick with an automated install, full-disk encryption from the first boot, and an enrolment script that does the rest. The new person picks their own disk passphrase, and from then on signs in to the laptop itself with the same passkey, through FreeIPA. No local password for the daily user. Plug in the key, type the PIN, you’re in. The same identity opens the laptop, the VPN and every app.
Enrolment installs the VPN client, the internal CA, the browser, the password manager and three agents: Fleet, Wazuh and Velociraptor. From there Fleet owns the device. It pushes the laptop profile and more apps later, and it checks the things I care about every hour: disk encrypted, firewall on, security updates automatic, SSH refusing passwords, the security agents running. A laptop that drifts shows up red. Windows machines get the same treatment with BitLocker instead of LUKS.
The browser opens on the company start page, with SSO. It shows a tile for every app you have access to, and nothing else. The tiles use the same FreeIPA groups that gate the apps in PocketID, so the start page can’t drift from reality. Add someone to app-nextcloud and the Files tile appears. Take them out and it’s gone. A new hire doesn’t need a list of URLs. They need one page, and the page already knows who they are.
That first morning used to be the part I dreaded in real jobs: a pile of accounts, a shared password in a chat, a laptop someone “will sort out next week”. Here it takes about an hour, and most of it is the installer.
Segmentation is boring and it works
The network has three zones that matter. A small external network where only the edge proxy and the VPN server live. An internal network where everything else lives, which is not reachable from the internet or from my home LAN. And a storage network on a direct 10G cable with no routing at all.
Public names go through Cloudflare to one proxy that only accepts Cloudflare. Internal names (*.int.secbitz.com) only resolve and only route over the VPN. The website sits in its own DMZ and can talk to exactly one thing.
None of this is clever. VLANs, a firewall per VM, a VPN with a deny-all default. But it changes what a mistake costs. When I found a weak spot in an internal app, the first question was “who can even reach it?”, and the answer was “people already on the VPN, in the right group.” That’s a very different afternoon than “the internet.”
What you don’t get: Conditional Access
Here’s where I have to be fair. Entra ID with Conditional Access is better than what I built, and it isn’t close.
Conditional Access lets you say: this user, from this kind of device, which must be compliant in Intune, from these countries, with this sign-in risk, may open this app, and must re-authenticate every eight hours. Every sign-in is evaluated against all of it, for every app, in one place.
My stack has the pieces but not the brain. PocketID knows who you are and which groups you’re in. Passkeys make phishing a lot harder. Fleet knows if your laptop is patched and encrypted. NetBird can run posture checks before it lets you onto the VPN. But nothing ties them together at sign-in time for every app. A valid passkey on an unpatched laptop still gets you into Nextcloud. In Entra, that’s one policy. In open source, it’s a project.
If I were advising a real twenty-person company today, I’d still tell most of them to buy Microsoft 365 with Entra P1 or P2 and spend their energy elsewhere. That’s not a contradiction. It’s knowing what you’re paying for.
But you get surprisingly far
What surprised me is how much is there. Free, auditable, self-hostable, and good:
- SSO with passkeys on every app, including the hypervisor.
- One identity source, group-driven access, fast offboarding.
- A VPN where access is identity, not a shared key.
- Secrets in a vault, CI that scans images, Renovate that keeps it all moving.
- A SIEM and a forensics tool that a lot of paid shops don’t have.
You can get roughly to the “SSO everywhere, groups everywhere, segmented network, nothing exposed” level that many small businesses never reach even with an E5 license. What you’re missing is the policy brain on top, and the support contract when something breaks at 03:00.
What building the whole pipeline teaches you
Some of this I knew in theory. Building it made it stick.
The glue is the work. Installing Wazuh takes an afternoon. Making Wazuh, Forgejo, Proxmox and Nextcloud all trust the same SSO, with the same groups, through the same proxy, with certificates that renew, is weeks. Every product’s docs assume it’s the only product.
Automation breaks things faster, too. Today Renovate merged a MySQL major version for Fleet. CI deployed it. MySQL refused to open the old data directory. Automatic updates are still the right call. But “green pipeline” and “working service” are two different checks, and you need both.
Hardware lies. One slow SSD stalled the whole pool while cloning VMs. A single worn consumer disk dragged an entire hypervisor with it. That’s now an incident report, and a rule: VMs don’t live on that pool.
Defaults collide. NetBird’s default overlay range sits inside Tailscale’s, so a laptop with both silently loses DNS. Cloud-init won’t create a user called admin on Ubuntu because the group already exists. None of this is in a tutorial. All of it is in my docs now.
Break-glass is a design, not a password. When SSO is the only way in, SSO down means nobody in. Every system has a documented local way in, in a table, in a specific order, stored outside the thing it rescues. Writing that table was the most useful hour of the project.
Have someone try to break it. I ran a full overnight pentest against the whole setup. From the internet there was no way in without a password. Good. But it also found the other half of the truth: everything is connected, so one foothold inside spreads fast. A CI runner that can run code is a key to the secrets the CI can read. Segmentation protects you from the outside. It does much less once someone is in the right group.
And some protections I had documented didn’t do what the documentation said. That one stings, and it’s the most valuable finding of all.
The honest version
SecBitz is a company that doesn’t exist, built like one that does. It has taught me more about identity in open source, networks and operations than any course, because there was nobody else to blame and nothing to hide behind.
Open source won’t give you Conditional Access. It will give you SSO, groups, segmentation and a pipeline, if you’re willing to do the glue work. For a homelab, that’s the whole point. For a real company, it’s a choice you should make on purpose, not by accident.
The pretend colleagues are very happy with their IT department, by the way. They never file tickets.