Skip to content

feat(everest): add client for database credentials - #14

Merged
amh1k merged 2 commits into
mainfrom
feat/everest-connection-client
Sep 24, 2026
Merged

amh1k merged 2 commits into
mainfrom
feat/everest-connection-client

Conversation

@amh1k

@amh1k amh1k commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds an OpenEverest API client to retrieve connection details for a PostgreSQL instance using its registered Kubernetes cluster name, namespace, and instance name. These details will support the coordinator’s future runner credential setup.

Changes

  • Forwards the caller’s authorization token to OpenEverest.
  • Returns structured connection details and validates required fields.
  • Applies a 10-second HTTP timeout and propagates caller cancellation.
  • Adds typed errors for request failures, response-read failures, invalid responses, and unsuccessful HTTP statuses.
  • Excludes upstream error response bodies to avoid exposing credentials.

Testing

Tests cover successful retrieval, authorization failures, missing targets, invalid or incomplete responses, upstream failures, body-read errors, timeouts, and cancellation.

cd backend && go test ./...

Note

The client returns the credentials based on namespace, cluster and instance name. It currently does not have the functionality to only return PostgreSQL databases

Kubernetes Secret creation, Job execution, and benchmark API handlers remain separate work.

Closes #9

Signed-off-by: amh1k <abdulmoizx97@gmail.com>
Signed-off-by: amh1k <abdulmoizx97@gmail.com>
@amh1k
amh1k merged commit a20fc9d into main Sep 24, 2026
4 checks passed
@spron-in
spron-in deleted the feat/everest-connection-client branch October 6, 2026 07:38
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.

Implement OpenEverest client for PostgreSQL connection details

1 participant