Skip to content

Auth refs for portable bundles and multi-environment workflows #1538

@chubes4

Description

@chubes4

Problem

Bundles cannot ship raw credentials, but they need to declare credential requirements for handlers and sources.

Desired shape

Use symbolic auth refs that can be exported, imported, resolved locally, and reported when missing.

Example refs:

  • github:automattic
  • mgs:a8c
  • slack:a8c
  • wpcom:primary

Needed behavior:

  • export rewrite: concrete auth config to symbolic ref
  • import resolve: symbolic ref to local credential/config
  • unresolved auth warnings
  • per-flow/per-handler auth dependency report
  • no secrets in bundle files, diffs, or PendingActions

Acceptance criteria

  • Bundle manifests can declare auth refs.
  • Handler configs can refer to auth refs instead of raw secret material.
  • Import/upgrade reports unresolved refs without failing unrelated artifacts.
  • Auth providers can participate in ref resolution.
  • Secret values are never emitted in bundle output or preview diffs.

Context

This is required before sharing a WooCommerce brain bundle that uses GitHub, MGS, Slack, or WP.com sources.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafting the issue from product/design discussion; Chris remains responsible for prioritization and implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions