OpenFn / OpenFn/kit

CLI: credentials global not working?

Open
#829 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DevX
Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

Description

Too tired to look into this now so raising an issue for later:

Collections docs say we can do this:

{
  "workflow": {
    "steps": [ ... ],
    "credentials": {
      "collections_endpoint": "http://localhost:4000/collections",
      "collections_token": "...paste the token from the app..."
    }
  }
}

And we should be able to, but it just failed for me. I had to add credentials to a particular step.

Is there something in the CLI, maybe in the workflow parser, that stops the credentials key getting fed through?

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 reproducing the workflow from the Collections documentation with credentials at the workflow level, then inspect the CLI workflow parser to see where that key is handled. Done means the workflow-level credentials reach the relevant collection steps, with a regression test covering the configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.