Skip to content

fix(BA-6506): parametrize app/storage base domains#12206

Open
devyubin wants to merge 6 commits into
mainfrom
fix/installer-scrub-internal-refs
Open

fix(BA-6506): parametrize app/storage base domains#12206
devyubin wants to merge 6 commits into
mainfrom
fix/installer-scrub-internal-refs

Conversation

@devyubin

Copy link
Copy Markdown
Contributor

resolves #12205 (BA-6506)

Replaces the hardcoded Lablup-internal hostnames (<prefix>.app.backend.ai,<prefix>.public.isla-sorna.backend.ai) that the installer built from --fqdn-prefix with two injected options, --app-base-domain and --storage-base-domain. Those strings put internal infrastructure names in a public repo and tied the wildcard-domain install path to one deployment. With the new options unset the hostnames fall back to --public-facing-address, so IP-based installs are untouched. The branch also drops an internal collector IP from a help example and removes dead installer code: an unused passphrase
helper, a duplicate SHELL lookup, and an empty module.

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue
  • Installer updates including:
    • Fixtures for db schema changes
    • New mandatory config options
  • Update of end-to-end CLI integration tests in ai.backend.test
  • API server-client counterparts (e.g., manager API -> client SDK)
  • Test case(s) to:
    • Demonstrate the difference of before/after
    • Demonstrate the flow of abstract/conceptual models with a concrete implementation
  • Documentation
    • Contents in the docs directory
    • docstrings in public interfaces and type annotations

devyubin added 2 commits June 16, 2026 09:48
Drop the unused generate_passphrase() helper and its PASSPHRASE_CHARACTER_POOL
(which was also non-cryptographic and had a malformed character pool), an
unused duplicate SHELL lookup in configure_client(), and the empty
configure.py module. Also fix the "Detetced" log typo.
@devyubin devyubin self-assigned this Jun 16, 2026
@devyubin devyubin requested a review from a team as a code owner June 16, 2026 05:06
@github-actions github-actions Bot added the size:M 30~100 LoC label Jun 16, 2026
@devyubin devyubin requested a review from Yaminyam June 16, 2026 06:02
@devyubin devyubin changed the title fix: parametrize app/storage base domains and drop internal references fix(BA-6506): parametrize app/storage base domains Jun 16, 2026

@seedspirit seedspirit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks fine overall, @Yaminyam could you please take a look?

with self.resource_path(
"ai.backend.install.fixtures", "example-keypairs.json"
) as keypair_path:
current_shell = os.environ.get("SHELL", "sh")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you delete it because it was dead code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yescurrent_shell was assigned twice with the same os.environ.get("SHELL", "sh"), once in the keypairs block and once in the users block, but only the users block reads it (if current_shell == "fish"). The keypairs-block copy was never used before that second assignment, so removing it changes nothing.

@devyubin devyubin requested a review from seedspirit June 23, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30~100 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove hardcoded internal hostnames from the installer's wildcard-domain path

2 participants