OpenFn / OpenFn/lightning

Credentials not included in workflow yaml

Open
#4,731 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs technical design
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

When viewing a workflow's yaml, the credential is not represented in the output

Here's what I see on main right now:

Image
name: hello world
jobs:
  Transform-data:
    name: Transform data
    adaptor: "@openfn/language-http@7.2.10"
    body: |
      fn(s => s)
triggers:
  webhook:
    type: webhook
    enabled: true
    webhook_reply: null
edges:
  webhook->Transform-data:
    condition_type: always
    enabled: true
    target_job: Transform-data
    source_trigger: webhook

(this will change shortly as the yaml format is about to get updated)

If I export the project as YAML, I see the credential as I expect.

The credential should be represented as a name (owner|name), not a UUID

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.

Research direction

Start by comparing the workflow YAML viewing path with the project YAML export, using the example in this issue to trace how credentials are serialized. Verify that the workflow output includes each credential as owner|name rather than a UUID, while accounting for the upcoming YAML format change.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.