OXYGENHUB
◆ v0.9.11 oxygenhub / crates / hub / migrations / 0038_flow_secrets.sql
549 B · SQL · last changed Secrets for pipelines, mounted as files 1 month ago source blame history raw
1
-- Secrets for OxygenFlow jobs (hub spec §13.2, #107), per level like
2
-- flow_variables. A job gets only the secrets its pipeline declares by
3
-- name, as files Flow mounts (OxygenFlow spec §9), never in the
4
-- environment. Values are sealed with keys/secrets.key.
5
CREATE TABLE flow_secrets (
6
    scope       TEXT NOT NULL CHECK (scope IN ('site', 'org', 'repo')),
7
    scope_id    INTEGER NOT NULL DEFAULT 0,
8
    name        TEXT NOT NULL,
9
    value       BLOB NOT NULL,
10
    updated_ms  INTEGER NOT NULL,
11
    PRIMARY KEY (scope, scope_id, name)
12
);