feat: dual hostname generation for platform.sei.io#74
Merged
Conversation
Add SEI_GATEWAY_PUBLIC_DOMAIN (required) to platform config. Each
HTTPRoute now emits two hostnames:
- {name}-{protocol}.{domain} (existing internal domain)
- {name}-{protocol}.{namespace}.{publicDomain} (public-facing)
Both hostnames land in the same HTTPRoute spec.hostnames[] array.
The Gateway selects the correct listener/cert via SNI matching.
Hostname format changed from {name}.{protocol}.{domain} to
{name}-{protocol}.{domain} for both domains — this is a breaking
change for existing routes, requiring redeployment of affected
SeiNodeDeployments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dev environments don't have a platform.sei.io zone or certs, so the public domain must be optional. When unset, HTTPRoutes emit only the internal hostname. When set, the public hostname is appended. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SEI_GATEWAY_PUBLIC_DOMAIN(required) to platform configprod.platform.sei.io) and one for the public domain (platform.sei.io){name}-{protocol}.{domain}for internal,{name}-{protocol}.{namespace}.{publicDomain}for publicpacific-1-wave-rpc.prod.platform.sei.io+pacific-1-wave-rpc.pacific-1.platform.sei.ioBreaking change
The existing hostname format changed from
{name}.{protocol}.{domain}(dot-separated) to{name}-{protocol}.{domain}(hyphen-delimited) for both domains. Existing SeiNodeDeployments with routes need redeployment.Files changed
internal/platform/platform.go—GatewayPublicDomainfield + validationinternal/platform/platformtest/config.go— test fixtureinternal/controller/nodedeployment/controller.go— reconciler fieldcmd/main.go— env var wiringinternal/controller/nodedeployment/networking.go— dual hostname generation inresolveEffectiveRoutesinternal/controller/nodedeployment/networking_test.go— updated assertions,pacific-1-wavetest namingDependencies
SEI_GATEWAY_PUBLIC_DOMAIN=platform.sei.ioTest plan
make test)make lint)kubectl get httproute -A -o yaml | grep platform.sei.ioshows dual hostnamescurl https://pacific-1-rpc-rpc.pacific-1.platform.sei.io/statusreturns 200🤖 Generated with Claude Code