Skip to content

mpg: route attach connection info through the public API - #5191

Draft
tripledoublev wants to merge 1 commit into
masterfrom
vincent/mpg-attach-public-connection-info
Draft

mpg: route attach connection info through the public API#5191
tripledoublev wants to merge 1 commit into
masterfrom
vincent/mpg-attach-public-connection-info

Conversation

@tripledoublev

Copy link
Copy Markdown
Contributor

fly mpg attach still fetches the legacy cluster response to get its base connection URI. This change builds that connection information from the public pooler endpoint and default-user credentials instead.

Classified 404 responses retain the legacy fallback. Other errors stop before app secrets are written. Missing pooler endpoints are rejected before fetching credentials. The public path uses the existing fly-user and fly-db defaults.

Validation: MPG/mpgutil tests, full lint, and build pass. Tests cover public success, fallback and error ordering, missing endpoints, and port defaults. No new end-to-end attach run was performed.

@tripledoublev
tripledoublev force-pushed the vincent/mpg-attach-public-connection-info branch 2 times, most recently from 15af7e2 to c53a700 Compare September 8, 2026 20:06
Retrieve MPG attach connection information through the public API,
falling back to the legacy bundle only on classified cluster or
default-credential 404s.

Fetch default credentials only when no username is selected. Explicit
and interactively selected users use their own credentials without
being blocked by an unrelated default-user lookup.

Reject failed clusters and missing pooler hosts or ports before
requesting credentials. Preserve database and secret-name overrides,
legacy fallback behavior, and authoritative non-404 errors.

Keep the change scoped to attach and cover public success, credential
selection, fallback, readiness, and failure handling.
@tripledoublev
tripledoublev force-pushed the vincent/mpg-attach-public-connection-info branch from c53a700 to 2834f7e Compare September 8, 2026 20:23
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