Skip to content

Conversation

@howardjohn
Copy link
Collaborator

No description provided.

@howardjohn howardjohn marked this pull request as ready for review October 30, 2025 19:47
@howardjohn howardjohn requested a review from a team as a code owner October 30, 2025 19:47
Copilot AI review requested due to automatic review settings October 30, 2025 19:47
@howardjohn howardjohn merged commit 1ca00e3 into agentgateway:main Oct 30, 2025
7 checks passed
Copy link
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

This PR refactors the policy system to consolidate policy types and introduce frontend policies. The main objectives are:

  • Merge gatewayPolicies into a unified policies system with phase control
  • Remove deprecated listener config in favor of new frontendPolicies
  • Restructure policies into three categories: Frontend, Traffic, and Backend
  • Improve policy application and type safety

Key Changes

  • Unified policy system with PolicyType enum containing Frontend, Traffic (with phase), and Backend policies
  • Introduced frontendPolicies for gateway-level HTTP, TLS, TCP, and access log configurations
  • Removed gatewayPolicies array and listener config from root
  • Changed default pool idle timeout from 10s to 1m30s

Reviewed Changes

Copilot reviewed 31 out of 33 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
schema/local.json Added frontendPolicies schema, changed pool idle timeout default, removed listener config schema
schema/local.md Documentation cleanup (file deletion)
schema/README.md Updated schema documentation to reflect policy restructuring
crates/agentgateway/src/types/local.rs Refactored policy conversion logic to use unified PolicyType
crates/agentgateway/src/types/frontend.rs New file defining frontend policy types (HTTP, TLS, TCP, LoggingPolicy)
crates/agentgateway/src/types/agent.rs Restructured policy types into PolicyType enum with three variants
crates/agentgateway/src/types/agent_xds.rs Updated XDS deserialization for new policy structure
crates/agentgateway/src/store/binds.rs Updated store to handle unified policies and frontend policies
crates/agentgateway/src/proxy/httpproxy.rs Refactored to use frontend policies and new policy application
crates/agentgateway/src/proxy/gateway.rs Updated gateway to apply frontend policies
crates/agentgateway/src/transport/stream.rs Added TCP settings application (incomplete implementation)
crates/agentgateway/src/lib.rs Removed ListenerConfig, moved to frontend types

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

socket2::SockRef::from(tcp).set_tcp_keepalive(&ka)
);
}
todo!()
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

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

The apply_tcp_settings function contains a todo!() macro which will panic at runtime. This appears to be incomplete code that should either be removed or implemented before merging.

Suggested change
todo!()
// All requested TCP settings have been applied.

Copilot uses AI. Check for mistakes.
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.

1 participant