MiniCTRMSearch

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.

Before you start

The lessons this one builds on: 531 Front end: the Launcher, 611 Scripting: an editor, a public API with a glossary, hooks on save.

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 / 14
Trust is not a mechanism
Who are you

Two questions, not one

2 / 14
Two questions, not one
Who are you

Sign-in

3 / 14
Sign-in
What may you do

A privilege is a named right

4 / 14
A privilege is a named right
What may you do

The catalog and the sets

5 / 14
The catalog and the sets
What may you do

A privilege on every endpoint

6 / 14
A privilege on every endpoint
Who changed what

Evidence, not a story

7 / 14
Evidence, not a story
Who changed what

The Security screen and the audit trail

8 / 14
The Security screen and the audit trail
Secrets and libraries, then ship

A secret never goes in git

9 / 14
A secret never goes in git
Secrets and libraries, then ship

Secrets and dependencies

10 / 14
Secrets and dependencies
Secrets and libraries, then ship

Ship it

11 / 14
Ship it
How MiniCTRM did it

The Security screen and the test behind it

12 / 14
The Security screen and the test behind it
How MiniCTRM did it

The single-user decision

13 / 14
The single-user decision
What you have now

What you have now

14 / 14
What you have now

You have finished lesson 633, Security: sign-in, privileges on every endpoint, audit, secrets.

Where next?

← → move · N notes · Home / End