MiniCTRM - Build Tutorial 633: Security: sign-in, privileges on every endpoint, audit, secrets
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
Local accounts with a password hash and a session with a timeout, the signed-in user stamped wherever a setting used to be; a privilege catalog and privilege sets; a privilege declared on every endpoint, enforced by one filter, with a test that fails the build when one declares nothing; a Security screen; an append-only audit trail of sign-ins, rights and settings; secrets outside the repository with a scan that fails on a key, and a monthly dependency routine.
Who are you – Authentication against authorization, a password hash, a session, the choice of local accounts or single sign-on, and the sign-in itself.
What may you do – A privilege as a named right in an enumeration, privilege sets as reference data, and a privilege declared on every endpoint with a test that none is missing.
Who changed what – An audit trail nobody can edit, written in the change's transaction, and the Security screen an administrator works on.
Secrets and libraries, then ship – What a secret is and why it never goes in git, a scan that fails on a key, a monthly routine for the libraries, then /ship.
How MiniCTRM did it – The Security screen and the test behind it, and the single-user decision MiniCTRM made on purpose for its default database.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
Trust is not a mechanism
1 / 14Who are you
Two questions, not one
2 / 14Who are you
Sign-in
3 / 14What may you do
A privilege is a named right
4 / 14What may you do
The catalog and the sets
5 / 14What may you do
A privilege on every endpoint
6 / 14Who changed what
Evidence, not a story
7 / 14Who changed what
The Security screen and the audit trail
8 / 14Secrets and libraries, then ship
A secret never goes in git
9 / 14Secrets and libraries, then ship
Secrets and dependencies
10 / 14Secrets and libraries, then ship
Ship it
11 / 14How MiniCTRM did it
The Security screen and the test behind it
12 / 14How MiniCTRM did it
The single-user decision
13 / 14What you have now
What you have now
14 / 14
You have finished lesson 633, Security: sign-in, privileges on every endpoint, audit, secrets.