Skip to content

Add latch-gate access control - #5

Merged
scothis merged 1 commit into
componentized:mainfrom
scothis:gate
Nov 17, 2026
Merged

scothis merged 1 commit into
componentized:mainfrom
scothis:gate

Conversation

@scothis

@scothis scothis commented Nov 17, 2026

Copy link
Copy Markdown
Member

The gate intercepts calls to the store. Latches observe those calls and either deny or defer the call. If no latch denies, the call proceeds.

The latch-key latch uses a wasi:config to define rules for the decision per secret key.

db.*=deferred
db.admin=denied
*=denied
db.password -> DEFERRED (db.*)
db.admin    -> DENIED   (db.admin)
api.token   -> DENIED   (*)

Multiple latches can be composed together with the latch-n components.

The gate intercepts calls to the store. Latches observe those calls and
either deny or defer the call. If no latch denies, the call proceeds.

The latch-key latch uses a wasi:config to define rules for the decision
per secret key.

```properties
db.*=deferred
db.admin=denied
*=denied
```

    db.password -> DEFERRED (db.*)
    db.admin    -> DENIED   (db.admin)
    api.token   -> DENIED   (*)

Multiple latches can be composed together with the latch-n components.

Signed-off-by: Scott Andrews <scott@andrews.me>
@scothis
scothis merged commit 5a261b2 into componentized:main Nov 17, 2026
7 checks passed
@scothis
scothis deleted the gate branch November 17, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant