Skip to content

Make proxy image configurable - #155

Merged
gilberthl-mh merged 1 commit into
masterfrom
make-proxy-image-configurable
Jun 23, 2026
Merged

gilberthl-mh merged 1 commit into
masterfrom
make-proxy-image-configurable

Conversation

@gilberthl-mh

@gilberthl-mh gilberthl-mh commented May 5, 2026

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Touches Docker proxy compose generation and HTTPS reconfiguration paths, but defaults preserve existing behavior; the large dependency, CI, and test surface increases merge and regression risk.

Overview
This PR makes the built-in HTTP reverse proxy configurable while keeping navycloud/navy-proxy as the default. Operators can override the proxy image via NAVY_HTTP_PROXY_IMAGE or httpProxyImage in Navyfile.js (env wins), and forward runtime env into the proxy via httpProxyEnv / NAVY_HTTP_PROXY_ENV (merged, with the allowlist overriding on collisions; no environment: block when unset).

Proxy compose generation now uses helpers for image/env resolution and mounts the Docker socket from DOCKER_HOST when it is a unix:// path so CI and local Docker setups stay aligned. The HTTPS CLI passes navyFile into reconfigureHTTPProxy so custom proxy settings are not dropped when toggling HTTPS.

Alongside the feature, the repo moves to Node ≥22 (Babel target, engines, dependency refresh), adds c8 with strict coverage thresholds and a large unit-test backfill, tweaks Flow/ESLint (drops flowtype plugin, adds flow-libs/), and overhauls GitHub Actions (Node 22/24 matrix, pinned actions, docker/setup-docker-action with set-host: true, Compose setup). User docs and a branch intent note describe precedence and examples.

Reviewed by Cursor Bugbot for commit e1191f7. Bugbot is set up for automated code reviews on this repo. Configure here.

@gilberthl-mh
gilberthl-mh force-pushed the make-proxy-image-configurable branch 2 times, most recently from 6449ea6 to ddc189a Compare May 5, 2026 13:17

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 00d81ec. Configure here.

Comment thread packages/navy/src/navy/index.js Outdated
…est coverage

Allow overriding the built-in HTTP proxy image via NAVY_HTTP_PROXY_IMAGE or
Navyfile httpProxyImage, and forward custom env via httpProxyEnv /
NAVY_HTTP_PROXY_ENV. Fix navyFile propagation when toggling HTTPS or destroying
one Navy while others remain.

Modernise for Node 22: dependency updates, audit remediation, Flow/lint fixes.
CI uses Moneyhub runners and routes dockerode through DOCKER_HOST so it matches
docker compose. Integration tests updated for commander v12 and rimraf v5.

Add c8 with 100% unit test coverage, CLI fixes (-e/--navy ordering, reject
unknown subcommand options), and docs (http-proxy, navyfile-config, intent doc).
@gilberthl-mh
gilberthl-mh force-pushed the make-proxy-image-configurable branch from 6d6649a to e1191f7 Compare June 22, 2026 16:05
@gilberthl-mh
gilberthl-mh merged commit 5dbbce8 into master Jun 23, 2026
17 checks passed
@gilberthl-mh
gilberthl-mh deleted the make-proxy-image-configurable branch June 23, 2026 09:02
@gilberthl-mh
gilberthl-mh restored the make-proxy-image-configurable branch July 13, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant