Skip to content

Add Global DNS with Geoproximity strategy#2387

Merged
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main
Mar 29, 2026
Merged

Add Global DNS with Geoproximity strategy#2387
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

@seokho-son seokho-son commented Mar 29, 2026

Provides Create / Update DNS Record (UPSERT)

with a new Routing Policy: Geoproximity (nearest server)

  • Geoproximity: Each VM gets its own record with lat/lng coordinates.
    • Route53 routes users to the nearest server.
    • MCI source required (VM location data needed).

with label selector enhancement.

image image image image image

Signed-off-by: Seokho Son <shsongist@gmail.com>
@seokho-son seokho-son requested a review from yunkon-kim as a code owner March 29, 2026 13:52
Copilot AI review requested due to automatic review settings March 29, 2026 13:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Global DNS management enhancements (AWS Route53-backed) including geoproximity routing support and expanded REST endpoints, along with updated API docs (Swagger + feature guide).

Changes:

  • Add Route53 geoproximity routing support for Global DNS record upserts (location-aware VM grouping).
  • Add REST APIs for deleting single records, bulk deleting records, and listing hosted zones.
  • Update Swagger/OpenAPI artifacts and add a new feature guide for Global DNS.

Reviewed changes

Copilot reviewed 10 out of 12 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
src/interface/rest/server/server.go Registers new Global DNS endpoints (delete, bulk delete, hosted zone list).
src/interface/rest/server/resource/globalDns.go Adds REST handlers, logging, and HTTP error classification for Global DNS APIs.
src/core/resource/globalDns.go Implements geoproximity upsert logic, delete/bulk-delete operations, hosted zone listing, and refactors Route53 client creation.
src/core/model/globalDns.go Extends request/response models for routingPolicy, delete/bulk-delete, and hosted zone listing.
src/interface/rest/docs/swagger.yaml Adds/updates OpenAPI paths and schemas for new Global DNS APIs and fields.
src/interface/rest/docs/docs.go Regenerates embedded Swagger docs for the new endpoints/schemas.
docs/feature_guide/global-dns-management.md New end-user guide describing Global DNS usage, routing policies, and examples.
docs/feature_guide/README.md Links the new Global DNS feature guide.
go.mod / go.sum / go.work.sum Dependency updates (AWS SDK, OpenBao API, etc.) required by new functionality.
Comments suppressed due to low confidence (1)

src/core/resource/globalDns.go:222

  • The recordName filter is documented as "Prefix search", but the implementation uses strings.Contains(rs.Name, recordName), which can match unintended records (substring matches) and makes results unpredictable. Consider using a prefix match on the fully-qualified record name (including trailing dot) or an exact match when recordName is provided.
	for _, rs := range out.ResourceRecordSets {
		if recordName != "" && !strings.Contains(aws.ToString(rs.Name), recordName) {
			continue
		}

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Seokho Son <shsongist@gmail.com>
@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Mar 29, 2026
@cb-github-robot cb-github-robot merged commit 87daa9f into cloud-barista:main Mar 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants