Skip to content

Add aws auth for xds#280

Merged
howardjohn merged 10 commits into
agentgateway:mainfrom
npolshakova:add-aws-auth
Aug 8, 2025
Merged

Add aws auth for xds#280
howardjohn merged 10 commits into
agentgateway:mainfrom
npolshakova:add-aws-auth

Conversation

@npolshakova

@npolshakova npolshakova commented Aug 6, 2025

Copy link
Copy Markdown
Collaborator

Adds explicit aws auth config for xds. Tested with kgateway: kgateway-dev/kgateway#11899

Signed-off-by: npolshakova <nina.polshakova@solo.io>
Copilot AI review requested due to automatic review settings August 6, 2025 21:30

Copilot AI 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.

Pull Request Overview

This PR implements AWS authentication support for XDS (Extensible Discovery Service) by expanding the AWS backend authentication configuration to include credential fields. The change moves from an empty AWS auth struct to one that supports access keys, regions, and session tokens for AWS service authentication.

  • Updates protobuf definition to include AWS credential fields (access_key_id, secret_access_key, region, service, session_token)
  • Modifies Rust backend authentication types to handle the new AWS credential structure
  • Updates AWS authentication handling logic to use the new credential fields

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
proto/resource.proto Adds AWS credential fields to the protobuf message definition
src/types/agent_xds.rs Updates conversion logic to map protobuf AWS auth fields to Rust types
src/http/auth.rs Expands BackendAuth::Aws enum variant to include credential fields
src/llm/mod.rs Updates Bedrock provider to use new AWS auth structure with placeholder credentials

Comment thread crates/agentgateway/src/llm/mod.rs Outdated
Comment thread crates/agentgateway/src/llm/mod.rs Outdated
Comment thread crates/agentgateway/src/types/agent_xds.rs Outdated
Signed-off-by: npolshakova <nina.polshakova@solo.io>

@howardjohn howardjohn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks good

Comment thread crates/agentgateway/proto/resource.proto Outdated
Comment thread crates/agentgateway/src/http/auth.rs Outdated
Signed-off-by: npolshakova <nina.polshakova@solo.io>
Comment thread crates/agentgateway/src/http/auth.rs
Comment thread crates/agentgateway/src/http/auth.rs
Comment thread crates/agentgateway/proto/resource.proto
Comment thread crates/agentgateway/src/http/auth.rs
Signed-off-by: npolshakova <nina.polshakova@solo.io>
@npolshakova npolshakova requested a review from howardjohn August 8, 2025 14:21
Comment thread crates/agentgateway/src/http/auth.rs
Comment thread schema/local.json Outdated
"type": "object",
"properties": {
"file": {
"access_key_id": {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This needs the camelCase directive on the Explicit enum; you can see it didn't get set so its snake case here

Signed-off-by: npolshakova <nina.polshakova@solo.io>
@howardjohn howardjohn enabled auto-merge (squash) August 8, 2025 14:36
@howardjohn howardjohn disabled auto-merge August 8, 2025 15:06
@howardjohn howardjohn merged commit a8b05c3 into agentgateway:main Aug 8, 2025
6 checks passed
surinderunitone pushed a commit to UnitOneAI/agentgateway that referenced this pull request Feb 1, 2026
* add aws auth for xds

Signed-off-by: npolshakova <nina.polshakova@solo.io>

* add go types

Signed-off-by: npolshakova <nina.polshakova@solo.io>

* remove service for now

Signed-off-by: npolshakova <nina.polshakova@solo.io>

* add implicit aws config opt

* add provider name to config builder

* regen

Signed-off-by: npolshakova <nina.polshakova@solo.io>

* fix camel case

Signed-off-by: npolshakova <nina.polshakova@solo.io>

* gen

---------

Signed-off-by: npolshakova <nina.polshakova@solo.io>
Co-authored-by: John Howard <john.howard@solo.io>
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.

3 participants