Skip to content

Compute: one trigger model, secrets, per-function deploy #8

Open

Description

@fgatti675

Guiding rule for this phase: every capability ships as an open-source interface with a working zero-configuration default. Hosted infrastructure is a different implementation behind that same interface — never the only implementation, and never a different API.

Functions, cron, background jobs, entity callbacks and webhooks all work, but they are five separate concepts a developer has to learn independently. This phase unifies the authoring model first, then adds distribution on top of it.

Work

  • Land the portable functions authoring surface — @rebasepro/server/functions, currently on worktree-edge-ready-functions. It is the prerequisite for everything below
  • One trigger catalog covering schedules, queued jobs, entity changes and outbound webhooks, with the existing runtimes underneath
  • A SecretStore interface. Environment variables are the only mechanism today; the default implementation can encrypt at rest in Postgres, with a KMS as an alternative behind the same interface
  • Per-function deploy, rollback and logs, on top of the same authoring surface, so a function can be shipped without redeploying the server
  • Geographically distributed execution as an additional implementation — the in-process runtime stays the default

Activity

  1. added
    enhancement
    roadmap
    on Aug 21, 2026
  2. fgatti675 commented on Aug 25, 2026

    @fgatti675
    MemberAuthor

    Audit pass. The first item is done and the checkbox now says so: @rebasepro/server/functions shipped, with the two gates that keep it portable — an import-graph walk from source, and an evaluation of the emitted file in a context holding web globals and no process, Buffer or require.

    One thing moved that is relevant to item 2 without being it: storage now has triggers (storageTriggers, on finalize and delete — see #7). That is a fifth trigger shape rather than a step toward one catalog, and it is worth being honest that it makes the unification slightly harder, not easier: there are now five ways to declare "run this when that happens", each with its own vocabulary. The catalog item is the one that pays that back.

    SecretStore was scoped and not started. Environment variables are the only mechanism today, and the interface is not the hard part. The hard parts are that the default implementation is a table plus envelope encryption plus a key that must not be the thing being protected; that the consumer has to be the configuration surface functions already read (getEnv / env / lazyResource), or it is an interface nobody calls; and that a half-landed secret store is worse than none, because it looks like a place secrets are safe. It is a whole change, not an evening's, and I was not willing to leave it half-built overnight in something security-shaped.

    Per-function deploy and geographically distributed execution are untouched and both sit behind the catalog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions