Overview
- How the policy works - (Outline, Contents)
- Layers - (Outline, Contents)
- Bylaws as policy - (Outline, Contents)
- Decisions - (Outline, Contents)
- Rego - (Outline, Contents)
- Deploying - (Outline, Contents)
- The decision log - (Outline, Contents)
How the policy works
A community's rules — who may join, who may vote, what is shared and with
whom — are usually scattered through code as if statements: hard to find,
harder to review, and invisible to the people they apply to.
Outline
- Sections:
- Who writes what
- How it reaches the services
- Decisions people can see
- Every decision recorded
Layers
A policy is built in layers, so that upgrading a service brings its rules along and the organization's choices survive it.
Outline
- Sections:
- Extension points
- Settings
- The organization's
.manifest - Tests
Bylaws as policy
Much of what a group's bylaws say can be enforced by the services it runs: who may join, who may vote, what it takes to approve something.
Outline
- Sections:
- Who may join — with id and members today
- Beyond membership
- Approving an event takes two voting members
- Voting takes 25 volunteer hours
- Removing a member takes half the members
- Officers win a majority
- Pointing to the bylaws
- What policy cannot do
Decisions
A service describes its decisions as a type: the name of each, what it is asked, and what it answers.
Outline
- Sections:
- Built-in rules
- Inputs
- Failing closed
Rego
Each decision is a rule of the same name in the service's Rego package:
fairgarden/members/admit is the rule admit in package fairgarden.members.
Outline
- Sections:
- Where the organization's go
- Testing
- Building
- An OPA server instead
Deploying
What is in the repository is what runs.
Outline
- Sections:
- Built once
- Why nothing is signed
- Outside the repository
- Settings
The decision log
Every decision is recorded — built-in or Rego, allowed or not, made or failed — as OPA records its own:
Outline
- Sections:
- Revisions
- Loggers
- Leaving things out
- Keeping it