OpenFn / OpenFn/lightning

Allow endpoint to be configured the same in dev as in prod

Open
#1,666 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

User story

Some recent changes set the listen address for Lightning to 0.0.0.0 when in dev mode.
This should be configurable.

See: https://github.com/OpenFn/Lightning/pull/1652#pullrequestreview-1840487325

Criteria

At the very least, LISTEN_ADDRESS should work on dev and prod modes.
It should default to 127.0.0.1 in dev mode (just like it currently does in prod); and in docker the container env should set it to 0.0.0.0.

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 locating where LISTEN_ADDRESS is read and where dev, prod, and Docker environment settings are defined. Run the relevant configuration or endpoint tests, if present. Done means the variable works in both modes, dev defaults to 127.0.0.1, and the Docker container sets it to 0.0.0.0.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, elixir
Domain
backend, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.