37 Commits

Author SHA1 Message Date
John Howard
2efacb8010
refactor: move protos to shared crate (#1271)
Primary goal here is to reuse the code for shared protos, but also some
good compile wins. 3s -> 2.5s incremental compile
2026-03-18 16:00:09 -07:00
Nina Polshakova
0f71c997a4
Fix e2e test setup on mac (#1117)
To test e2e tests locally on a mac you can run the setup with:
```
TEST_MODE=e2e ./controller/test/setup/setup-kind-ci.sh
```

Then run the tests with:
```
 USE_PORTFORWARD=true PERSIST_INSTALL=true CGO_ENABLED=0 go test -vet=off -ldflags='-s -w' --failfast -tags=e2e -v ./controller/test/e2e/tests -run 'TestAgentgatewayIntegration'
```
(Where the regex can select a specific test or run the full suite)

```
--- PASS: TestAgentgatewayIntegration (49.60s)
    --- PASS: TestAgentgatewayIntegration/LocalRateLimit (0.24s)
        --- SKIP: TestAgentgatewayIntegration/LocalRateLimit/TestLocalRateLimitDisabledForRoute (0.00s)
        --- PASS: TestAgentgatewayIntegration/LocalRateLimit/TestLocalRateLimitForGateway (0.05s)
        --- PASS: TestAgentgatewayIntegration/LocalRateLimit/TestLocalRateLimitForRoute (0.07s)
        --- SKIP: TestAgentgatewayIntegration/LocalRateLimit/TestLocalRateLimitForRouteUsingExtensionRef (0.00s)
    --- PASS: TestAgentgatewayIntegration/RBAC (0.13s)
        --- PASS: TestAgentgatewayIntegration/RBAC/TestRBACHeaderAuthorization (0.03s)
    --- PASS: TestAgentgatewayIntegration/MCP (12.19s)
        --- PASS: TestAgentgatewayIntegration/MCP/TestDynamicMCPAdminRouting (0.43s)
        --- PASS: TestAgentgatewayIntegration/MCP/TestDynamicMCPAdminVsUserTools (0.37s)
        --- PASS: TestAgentgatewayIntegration/MCP/TestDynamicMCPDefaultRouting (0.18s)
        --- PASS: TestAgentgatewayIntegration/MCP/TestDynamicMCPUserRouting (0.20s)
        --- PASS: TestAgentgatewayIntegration/MCP/TestMCPAuthn (3.01s)
        --- PASS: TestAgentgatewayIntegration/MCP/TestMCPWorkflow (0.21s)
        --- PASS: TestAgentgatewayIntegration/MCP/TestSSEEndpoint (0.09s)
    --- PASS: TestAgentgatewayIntegration/AIBackend (1.20s)
        --- PASS: TestAgentgatewayIntegration/AIBackend/TestPromptGuard (0.02s)
        --- PASS: TestAgentgatewayIntegration/AIBackend/TestRouting (0.01s)
        --- SKIP: TestAgentgatewayIntegration/AIBackend/TestWebhook (0.00s)
    --- PASS: TestAgentgatewayIntegration/PolicyStatus (0.17s)
        --- PASS: TestAgentgatewayIntegration/PolicyStatus/TestAgwPolicyClearStaleStatus (0.09s)
    --- PASS: TestAgentgatewayIntegration/A2A (1.18s)
        --- PASS: TestAgentgatewayIntegration/A2A/TestA2AAgentCard (0.03s)
        --- PASS: TestAgentgatewayIntegration/A2A/TestA2AHelloWorld (0.03s)
        --- PASS: TestAgentgatewayIntegration/A2A/TestA2AMessageSend (0.01s)
    --- PASS: TestAgentgatewayIntegration/BasicRouting (0.13s)
        --- PASS: TestAgentgatewayIntegration/BasicRouting/TestAgentgatewayHTTPRoute (0.04s)
        --- PASS: TestAgentgatewayIntegration/BasicRouting/TestAgentgatewayTCPRoute (0.02s)
    --- PASS: TestAgentgatewayIntegration/BackendTLSPolicy (0.34s)
        --- PASS: TestAgentgatewayIntegration/BackendTLSPolicy/TestBackendTLSPolicyAndStatus (0.20s)
    --- PASS: TestAgentgatewayIntegration/BasicAuth (0.22s)
        --- PASS: TestAgentgatewayIntegration/BasicAuth/TestGatewayPolicy (0.05s)
        --- PASS: TestAgentgatewayIntegration/BasicAuth/TestRoutePolicy (0.08s)
    --- PASS: TestAgentgatewayIntegration/JwtAuth (0.27s)
        --- PASS: TestAgentgatewayIntegration/JwtAuth/TestGatewayPolicy (0.05s)
        --- PASS: TestAgentgatewayIntegration/JwtAuth/TestGatewayPolicyWithRbac (0.04s)
        --- PASS: TestAgentgatewayIntegration/JwtAuth/TestRoutePolicy (0.06s)
        --- PASS: TestAgentgatewayIntegration/JwtAuth/TestRoutePolicyWithRbac (0.04s)
    --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth (8.89s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestGatewayPolicyBackend (0.40s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestGatewayPolicyBackendWithTlsPolicy (0.92s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestGatewayPolicySvc (0.04s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestGatewayPolicySvcCaCert (1.06s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestGatewayPolicyWithRbac (0.88s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestRoutePolicyBackend (1.08s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestRoutePolicyBackendAndTlsPolicy (0.04s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestRoutePolicySvc (0.90s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestRoutePolicySvcCaCert (1.06s)
        --- PASS: TestAgentgatewayIntegration/RemoteJwtAuth/TestRoutePolicyWithRbac (0.89s)
    --- PASS: TestAgentgatewayIntegration/Tracing (16.41s)
        --- PASS: TestAgentgatewayIntegration/Tracing/TestOTelTracing (15.29s)
    --- PASS: TestAgentgatewayIntegration/ApiKeyAuth (0.21s)
        --- PASS: TestAgentgatewayIntegration/ApiKeyAuth/TestGatewayPolicy (0.06s)
        --- PASS: TestAgentgatewayIntegration/ApiKeyAuth/TestRoutePolicy (0.08s)
    --- PASS: TestAgentgatewayIntegration/Extauth (1.26s)
        --- PASS: TestAgentgatewayIntegration/Extauth/TestExtAuthPolicy (0.05s)
            --- PASS: TestAgentgatewayIntegration/Extauth/TestExtAuthPolicy/request_allowed_with_allow_header (0.02s)
            --- PASS: TestAgentgatewayIntegration/Extauth/TestExtAuthPolicy/request_denied_without_allow_header (0.00s)
            --- PASS: TestAgentgatewayIntegration/Extauth/TestExtAuthPolicy/request_denied_with_deny_header (0.00s)
        --- PASS: TestAgentgatewayIntegration/Extauth/TestExtAuthPolicyMissingBackendRef (0.04s)
            --- PASS: TestAgentgatewayIntegration/Extauth/TestExtAuthPolicyMissingBackendRef/request_denied_for_invalid_extauth_policy_due_to_missing_backendRef (0.02s)
        --- PASS: TestAgentgatewayIntegration/Extauth/TestRouteTargetedExtAuthPolicy (0.05s)
            --- PASS: TestAgentgatewayIntegration/Extauth/TestRouteTargetedExtAuthPolicy/request_allowed_by_default (0.00s)
            --- PASS: TestAgentgatewayIntegration/Extauth/TestRouteTargetedExtAuthPolicy/request_allowed_with_allow_header_on_secured_route (0.02s)
            --- PASS: TestAgentgatewayIntegration/Extauth/TestRouteTargetedExtAuthPolicy/request_denied_without_header_on_secured_route (0.01s)
    --- PASS: TestAgentgatewayIntegration/GlobalRateLimit (4.42s)
        --- PASS: TestAgentgatewayIntegration/GlobalRateLimit/TestCombinedLocalAndGlobalRateLimit (0.07s)
        --- PASS: TestAgentgatewayIntegration/GlobalRateLimit/TestGlobalRateLimitByPath (0.07s)
        --- PASS: TestAgentgatewayIntegration/GlobalRateLimit/TestGlobalRateLimitByRemoteAddress (0.06s)
        --- PASS: TestAgentgatewayIntegration/GlobalRateLimit/TestGlobalRateLimitByUserID (0.04s)
    --- PASS: TestAgentgatewayIntegration/Transformation (0.19s)
        --- PASS: TestAgentgatewayIntegration/Transformation/TestGatewayWithTransformedGRPCRoute (0.06s)
        --- PASS: TestAgentgatewayIntegration/Transformation/TestGatewayWithTransformedHTTPRoute (0.05s)
    --- PASS: TestAgentgatewayIntegration/CSRF (0.13s)
        --- PASS: TestAgentgatewayIntegration/CSRF/TestGatewayLevelCSRF (0.06s)
    --- PASS: TestAgentgatewayIntegration/Extproc (1.71s)
        --- PASS: TestAgentgatewayIntegration/Extproc/TestExtProcWithGatewayTargetRef (0.06s)
            --- PASS: TestAgentgatewayIntegration/Extproc/TestExtProcWithGatewayTargetRef/first_route_should_have_ExtProc_applied_via_Gateway_policy (0.01s)
            --- PASS: TestAgentgatewayIntegration/Extproc/TestExtProcWithGatewayTargetRef/second_route_also_has_ExtProc_applied_via_Gateway_policy (0.00s)
        --- PASS: TestAgentgatewayIntegration/Extproc/TestExtProcWithHTTPRouteTargetRef (0.03s)
            --- PASS: TestAgentgatewayIntegration/Extproc/TestExtProcWithHTTPRouteTargetRef/route_with_ExtProc_applied_should_have_header_modified (0.00s)
            --- PASS: TestAgentgatewayIntegration/Extproc/TestExtProcWithHTTPRouteTargetRef/route_without_ExtProc_should_not_have_header_modified (0.00s)
PASS
ok      github.com/agentgateway/agentgateway/controller/test/e2e/tests  50.401s

```

Changes made:
- `USE_PORTFORWARD` will run the tests with the gateway port-forwarded,
removing the dependency of having to set up the cloud provider kind
workaround https://github.com/kubernetes-sigs/cloud-provider-kind
- Small fixes to makefile to reflect new agentgateway repo paths 
- Fixes setup script to work with mac commands (`wait` fix for sibling
pids, fix proxy build)
- Introduce `docker-ci` to have a fast version of building locally

---------

Signed-off-by: npolshakova <nina.polshakova@solo.io>
2026-03-04 12:47:34 -05:00
John Howard
c2ea90ed08 Various repo cleanups and re-organization 2026-02-10 10:22:51 -08:00
Markus Kobler
dfbab0d2e3
Improve clippy support when using jj workspaces (#837)
Fixes `make gen` and `make lint-fix` when using jj workspaces which
sadly dont have more than one
[.git](https://docs.jj-vcs.dev/latest/git-compatibility/#colocated-jujutsugit-workspaces)
repo.

Signed-off-by: Markus Kobler <markus.kobler@solo.io>
2026-01-15 13:39:28 -08:00
John Howard
f0552ee66d
wip: use Istio WDS instead of our own (#743)
https://github.com/istio/istio/pull/58593
https://github.com/kgateway-dev/kgateway/pull/13170
https://github.com/agentgateway/agentgateway/pull/743
2025-12-18 08:00:22 -08:00
John Howard
c3970f7f56
docker: really fix it this time I promise (#584) 2025-10-29 08:21:58 -07:00
John Howard
055a271b3f
docker: fix build after tokio task dump changes (#583) 2025-10-28 13:05:28 -07:00
apexlnc
130c8be13f
feat: add model aliasing support (#474)
* feat: add model aliasing support

- Add global and provider-level model alias resolution
- Support two-tier hierarchy: provider aliases override global aliases
- Add hot-reload support using ArcSwap for lock-free updates
- Add xDS protocol support for dynamic configuration
- Resolve aliases for both request models and provider defaults

* move model aliases to ai policy

* fix: keep models on providers for now

* fix: protos model

* fmt

* fix: quote PATH in Makefile to handle spaces
2025-09-29 15:07:55 -07:00
xu0o0
3031495cb0
ci: lint ui (#429) 2025-09-12 08:32:39 -07:00
Keith Mattix II
049644dd8b
Windows support (#297)
* feat: Support the windows OS

Signed-off-by: keithmattix <keithmattix@microsoft.com>

* Iterate on local branch to make GH Actions work

Fixup scripts and skip the keycloak test on Windows

* Fix things lost in rebase

Signed-off-by: keithmattix <keithmattix@microsoft.com>

* fmt

Signed-off-by: keithmattix <keithmattix@microsoft.com>

* Don't build windows on every PR (takes 40min)

Signed-off-by: keithmattix <keithmattix@microsoft.com>

---------

Signed-off-by: keithmattix <keithmattix@microsoft.com>
2025-08-22 09:48:23 -07:00
John Howard
213130eda3
Build: reduce codeunits and enable LTO for release (#327)
* Build: reduce codeunits and enable LTO for release

Fixes https://github.com/agentgateway/agentgateway/issues/326

* no release build

* fix build
2025-08-18 09:04:32 -07:00
John Howard
d70cf43d7e
Drop dependency on go install and protoc for build (#290)
* Drop dependency on `go install` and protoc for build

* set path

* do not require new go

* fix rebase
2025-08-11 08:15:04 -07:00
Rinor Maloku
898688d567
adds features to implement MCP server responsibilities in agentgateway (#212)
* adds support for resource server metadata endpoint and other MCP server responsibilities

* Update dependencies and enhance resource metadata handling

- Updated `heck` dependency to version 0.5.0 in `Cargo.lock` and `Cargo.toml`.
- Refactored `ResourceMetadata` to use a flexible structure with additional properties.
- Simplified JSON construction for resource metadata in the MCP server.
- Removed deprecated fields from the schema and updated documentation accordingly.

* Refactor Makefile targets for validation dependencies

- Renamed `run-validate-deps` to `run-validation-deps` for consistency.
- Updated corresponding commands in the `examples/mcp-authentication/README.md` to reflect the new target names.
2025-08-08 14:02:06 -07:00
Keith Mattix II
314470db3a
Add missing cargo fmt (#270)
* Cargo fmt

Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>

* Add fix-lint

Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>

---------

Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
2025-08-05 16:53:20 +00:00
John Howard
39b4c8242a
Really build in musl mode (#266)
* Really build in musl mode

* Set proper cross-arch

* debug
2025-08-04 10:14:57 -07:00
John Howard
c11da589d8
Better docker building and caching (#258)
* Better docker building and caching

* More cache mounts
* Attempt to cache layers in github
* Drop `-ext` image, and instead make a `-musl` image
* Make `-V` return a short version and `--version` a JSOMN

* fixes

* lint
2025-08-01 10:15:29 -07:00
John Howard
525356c4a7
Require codegen in CI (#256)
* Require codegen in CI

* pin version
2025-07-31 16:00:33 -07:00
John Howard
f03ec2aefb
Add access to LLM info in logs/traces/etc (#210)
* LLM context in CEL, better schema

* xtask

* add prompt and completion

* Format

* ready

* lint

* move under crates
2025-07-24 13:57:31 -07:00
John Howard
2c7ba0d4ed
Publish 0.6.0 (#161)
* Add validate to CI

* Bump versions

* fix readme

* fix version
2025-07-14 07:56:49 -07:00
Peter Jausovec
15d267ca96
Bring UI in sync with the backend (#160)
* Very minimum MVP for UI

* Delete stale examples and add full e2e test

* Make backends a reference

* More tests

* Add logs for MCP tool calls

* Add more logs and byte counters

* add more tests for LLM

* add more tests

* add validation to UI

* add back schema

* wip

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* refactor stuff

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

---------

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
Co-authored-by: John Howard <john.howard@solo.io>
2025-07-11 20:16:19 -07:00
John Howard
559282c66b
Agentgateway vNext (#157)
* Agentgateway vNext

* Use 1.88

* Fix telemetry

* Cleanup

* fixes

* fix transform trailers

* Fix test, and openapi

* cleanup protos

* Fix timeouts and examples

* Fix websockets
2025-07-09 12:51:59 -07:00
Nina Polshakova
1ec4103e2c
Check codegen workflow (#121)
* check codegen workflow

* install protoc-gen-go
2025-05-20 11:19:14 -04:00
Nina Polshakova
b0f4d2a8ed
[WIP] Fix common proto code gen (#117)
* fix common code gen

* Fix path

* fix listener proto gen

* go.sum

* add rbac

* fix paths
2025-05-18 08:57:51 -04:00
Nina Polshakova
a6921612e5
generate go apis (#106) 2025-05-16 11:11:03 -04:00
Eitan Yarmush
91d9ec9bfc
validate listener name, output protocol (#65)
* validate listener name, output protocol

* -> agentgateway

* fmt
2025-04-23 14:41:23 -04:00
Eitan Yarmush
fcb19b24ef one more reference to agentproxy-dev 2025-04-23 14:26:57 +00:00
Eitan Yarmush
12e0307783
build musl for linux distro (#60)
* build musl for linux distro

* add target

* oops

* wrong name

* doesn't work?
2025-04-22 15:28:28 -04:00
Eitan Yarmush
2c63db877c remove gcp from default build 2025-04-18 18:15:38 +00:00
Peter Jausovec
b98d13683f
finish the wizard, add playground (#40)
* wip

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* add playground + bunch of other changes

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>

* update release build for UI

* update readme with correct image

* no make

---------

Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
Co-authored-by: Eitan Yarmush <eitan.yarmush@solo.io>
2025-04-17 09:39:34 -04:00
Eitan Yarmush
7030cb84a9
Server rbac (#39)
* support server specific rbac

* lint

* fix matching logic

* lint

* switch to snake_case

* preserve field name

* fix eroneous error from target_store remove

* UI is now accessible when built with feature flag

* test flag
2025-04-16 21:06:32 -04:00
Eitan Yarmush
53154a3805 rename 2025-04-16 14:46:48 +00:00
Eitan Yarmush
9d0115df7a
Dynamic listeners (#33)
* dynamic-listeners

* move options out

* prepping to merge with main

* just need to figure out the host thing

* compiles

* rbac working

* rename otlp json name

* add backend_tls config

* fmt

* config multiple listeners

* all config files load properly

* validate examples parse properly in CI

* needs -B

* update example READMEs

* TLS README

* endpoints

* better serialization
2025-04-15 11:53:01 -04:00
Eitan Yarmush
d721df940c
k8s-example (#22)
* k8s-example

* fix up release workflow

* lint

* use version from script

* ...

* stable rust version

* maybe
2025-04-09 07:39:28 -04:00
Eitan Yarmush
b70de10fd8 switch image name 2025-04-02 15:18:31 +00:00
Eitan Yarmush
5790632cce only format default features 2025-04-01 12:49:24 +00:00
Eitan Yarmush
9b45fe0168 remove multi-platform, too slow 2025-03-27 15:30:02 +00:00
Eitan Yarmush
4704929586 add Makefile 2025-03-27 14:58:05 +00:00