OpenFn / OpenFn/lightning

Provisioner: Env-Aware Export & Import

Open
#3,600 0 comments 0 reactions 1 assignee View on GitHub

@elias-ba is already working on this.

Since Sep 24, 2025.

sandboxes and sync
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Description
Provisioner should support env-aware exports and optional inline bodies for dev.

Tasks

  • Default behavior unchanged: return UUIDs only.

  • New query params:

    • environment=<string> → filter lookups.

    • inline=none|dev-only (default none):

      • none: UUIDs only.
      • dev-only: inline body/props only if credential_bodies.visibility = :dev_inline and env ≠ main|prod.
  • Add visibility column to credential_bodies: :private (default) | :dev_inline.

  • Response:

    • Add env: <string> at top-level.
    • Include problems: [...] for missing bodies.
  • CLI:

    • Respect inline when present, otherwise fetch by UUID.

Acceptance Criteria

  • Default unchanged (UUIDs only).
  • environment=staging fetches correct variants.
  • inline=dev-only works only for :dev_inline + non-prod envs.
  • Missing bodies appear in problems.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.