Skip to content

feat: add standalone OpenBao with Route53 Go example#2382

Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom
yunkon-kim:260325-15
Mar 25, 2026
Merged

feat: add standalone OpenBao with Route53 Go example#2382
cb-github-robot merged 1 commit intocloud-barista:mainfrom
yunkon-kim:260325-15

Conversation

@yunkon-kim
Copy link
Copy Markdown
Member

This PR adds an example that uses AWS credentials obtained from OpenBao to find the hosted zone and list DNS records in AWS Route 53.

  • Add a standalone Go example to fetch AWS credentials from OpenBao and query Route53 DNS records.
  • Use the official OpenBao Go SDK (github.com/openbao/openbao/api/v2) to maintain API compatibility.
  • Provide .env.example to ensure sensitive access keys or vault tokens are managed locally.

How to run the example:

  1. Start Services (including OpenBao)
    Run the following command in the project root:

    make up
  2. Configure Environment Variables (.env)
    Navigate to the example directory and create a .env file from the template:

    cd src/examples/openbao-and-route53
    cp .env.example .env

    Update the following in .env:

    • VAULT_TOKEN: Copy the VAULT_TOKEN value from the .env file in the project root.
    • ROUTE53_DOMAIN: Enter the domain you wish to query (YOUR_DOMAIN).
  3. Execute the Example
    Once configured, run the following command to see the Route53 DNS records:

    GOWORK=off go run main.go

- Add a standalone Go example to fetch AWS credentials from OpenBao and query Route53 DNS records.
- Use the official OpenBao Go SDK (github.com/openbao/openbao/api/v2) to maintain API compatibility.
- Provide `.env.example` to ensure sensitive access keys or vault tokens are managed locally.
@yunkon-kim yunkon-kim requested a review from seokho-son as a code owner March 25, 2026 07:36
@seokho-son
Copy link
Copy Markdown
Member

Thanks! LGTM

@seokho-son
Copy link
Copy Markdown
Member

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Mar 25, 2026
@cb-github-robot cb-github-robot merged commit 335181d into cloud-barista:main Mar 25, 2026
4 checks passed
@yunkon-kim yunkon-kim deleted the 260325-15 branch March 26, 2026 04:29
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