Skip to content

fix(mpg): decouple proxy readiness from credentials - #5048

Merged
tripledoublev merged 2 commits into
masterfrom
akshit/fix-fly-mpg-proxy
Sep 8, 2026
Merged

fix(mpg): decouple proxy readiness from credentials#5048
tripledoublev merged 2 commits into
masterfrom
akshit/fix-fly-mpg-proxy

Conversation

@gargakshit

@gargakshit gargakshit commented Aug 5, 2026

Copy link
Copy Markdown
Member

Change Summary

What and Why:

Allow fly mpg proxy to start when a cluster has a direct IP but database credentials are unavailable or still initializing. The raw network proxy does not require database credentials, while fly mpg connect still does.

How:

  • Separate cluster retrieval, credential resolution, and proxy parameter construction for MPGv1 and MPGv2.
  • Keep credential validation and explicit-user handling unchanged for fly mpg connect.
  • Make fly mpg proxy depend on the cluster direct IP rather than credential readiness.
  • Preserve missing-IP errors, WireGuard setup, bind/port configuration, and organization scoping.

Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

@tripledoublev

tripledoublev commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Hey @gargakshit, I found this PR when I started working on the mpg connect/mpg proxy migration to the Machines API. #5169 is stacked on top of it. Could you have a look and let me know if it is ready to merge.

@tripledoublev
tripledoublev force-pushed the akshit/fix-fly-mpg-proxy branch 2 times, most recently from fedef09 to 11b64f9 Compare September 8, 2026 16:46
- Allow MPG v1 and v2 proxies to start without database credentials
- Preserve credential validation for `fly mpg connect`
- Add regression tests for proxy and connect credential handling
@tripledoublev
tripledoublev force-pushed the akshit/fix-fly-mpg-proxy branch from 11b64f9 to f466bdc Compare September 8, 2026 16:59
@tripledoublev
tripledoublev merged commit eda6f44 into master Sep 8, 2026
24 checks passed
@tripledoublev
tripledoublev deleted the akshit/fix-fly-mpg-proxy branch September 8, 2026 17:57
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.

3 participants