Skip to content

[platform] Make local service addresses match Docker publication - #877

Draft
GFedor481 wants to merge 1 commit into
codefly-dev:mainfrom
GFedor481:GFedor481/fix/native-loopback-mapping
Draft

GFedor481 wants to merge 1 commit into
codefly-dev:mainfrom
GFedor481:GFedor481/fix/native-loopback-mapping

Conversation

@GFedor481

Copy link
Copy Markdown

Summary

Core publishes local Docker ports on IPv4 loopback but generated native mappings use localhost, which may resolve to IPv6. Emit the matching IPv4 loopback address through the existing mapping owner.

👤 Human — what changed & where to look

  1. ⚠️ behavior change — Align Native and NativeFor mappings and document their emitted addresses; retain container/public mapping and deterministic port behavior. See network/runtime_manager.go; native_loopback_test.go; mapping expectations and network-model documentation.

Risk / rollback: Medium; this changes shared behavior or data interpretation. Revert the focused commit and restore the prior selection. This PR is draft pending qualification.

🤖 Bot — correctness & where to distrust

Decisions & rationale

Fix the native mapping producer instead of changing each consuming module or widening Docker exposure. The loopback address is a runtime-model constant, not a copied service endpoint.

Invariants / assumptions

Preserve owner boundaries, immutable inputs and existing authority/data-integrity checks. Classify this change as a fix at the behavior's owner; no workaround is proposed.

Edge cases

Exercise the focused counterexamples in the added/existing regressions; do not infer compatibility beyond the selected source and tested paths.

Non-obvious mechanism

Align Native and NativeFor mappings and document their emitted addresses; retain container/public mapping and deterministic port behavior.

Not verified / unsure

Network and related resources/configurations tests pass. Current Codefly also builds against the patched Core. Full ordinary Go suite attempted; infrastructure tests require unavailable Nix. No full-suite pass or hosted qualification claimed. Required CI and composed native runtime witness are pending.

Testing / Validation

Network and related resources/configurations tests pass. Current Codefly also builds against the patched Core. Full ordinary Go suite attempted; infrastructure tests require unavailable Nix. No full-suite pass or hosted qualification claimed. Required CI and composed native runtime witness are pending.

Open questions / Next steps

Finish required CI and the reconciled local composition before marking ready or merging. Source commit: 511c9a8dbb6a4100fc53182aadc99af33ecbef01.

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