Skip to content

Commit c90bbb1

Browse files
authored
bring back bed rock auth (#13089)
Signed-off-by: Yuval Kohavi <[email protected]>
1 parent 8d3eddc commit c90bbb1

26 files changed

+385
-40
lines changed

api/v1alpha1/agentgateway/agentgateway_policy_types.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ const (
707707
HostnameRewriteModeNone HostnameRewriteMode = "None"
708708
)
709709

710-
// +kubebuilder:validation:ExactlyOneOf=key;secretRef;passthrough
710+
// +kubebuilder:validation:ExactlyOneOf=key;secretRef;passthrough;aws
711711
type BackendAuth struct {
712712
// key provides an inline key to use as the value of the Authorization header.
713713
// This option is the least secure; usage of a Secret is preferred.
@@ -726,7 +726,21 @@ type BackendAuth struct {
726726
// request, the original token would be unchanged, so this would have no effect.
727727
// +optional
728728
Passthrough *BackendAuthPassthrough `json:"passthrough,omitempty"`
729-
// TODO: aws, azure, gcp
729+
// TODO: azure, gcp
730+
731+
// Auth specifies an explicit AWS authentication method for the backend.
732+
// When omitted, we will try to use the default AWS SDK authentication methods.
733+
//
734+
// +optional
735+
AWS *AwsAuth `json:"aws,omitempty"`
736+
}
737+
738+
// AwsAuth specifies the authentication method to use for the backend.
739+
type AwsAuth struct {
740+
// SecretRef references a Kubernetes Secret containing the AWS credentials.
741+
// The Secret must have keys "accessKey", "secretKey", and optionally "sessionToken".
742+
// +required
743+
SecretRef corev1.LocalObjectReference `json:"secretRef"`
730744
}
731745

732746
type BackendAuthPassthrough struct {

api/v1alpha1/agentgateway/zz_generated.deepcopy.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.25.3
44

55
require (
66
// Also update AgentgatewayDefaultTag in pkg/deployer/wellknown.go and test/deployer/testdata/*
7-
github.com/agentgateway/agentgateway v0.10.6-0.20251203184148-f45f1a94cdfa
7+
github.com/agentgateway/agentgateway v0.10.6-0.20251211180119-76b0afc55496
88
github.com/avast/retry-go/v4 v4.3.3
99
github.com/cncf/xds/go v0.0.0-20251110193048-8bfbf64dc13e
1010
github.com/envoyproxy/go-control-plane v0.14.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ github.com/PuerkitoBio/goquery v1.10.1 h1:Y8JGYUkXWTGRB6Ars3+j3kN0xg1YqqlwvdTV8W
196196
github.com/PuerkitoBio/goquery v1.10.1/go.mod h1:IYiHrOMps66ag56LEH7QYDDupKXyo5A8qrjIx3ZtujY=
197197
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8=
198198
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo=
199-
github.com/agentgateway/agentgateway v0.10.6-0.20251203184148-f45f1a94cdfa h1:PWDaZIBsPpGIo/3PdYRRIrU5kCKC86nkkEZLqTDi5rI=
200-
github.com/agentgateway/agentgateway v0.10.6-0.20251203184148-f45f1a94cdfa/go.mod h1:/Lzpteag/nnE4bwW/3Dh5GaxuICmCQs40VhQpkTatlk=
199+
github.com/agentgateway/agentgateway v0.10.6-0.20251211180119-76b0afc55496 h1:A7qJ8Ac6vMHDSqcFDpk/IBfZPjxbH44/78dtsodxiEk=
200+
github.com/agentgateway/agentgateway v0.10.6-0.20251211180119-76b0afc55496/go.mod h1:/Lzpteag/nnE4bwW/3Dh5GaxuICmCQs40VhQpkTatlk=
201201
github.com/agnivade/levenshtein v1.2.1 h1:EHBY3UOn1gwdy/VbFwgo4cxecRznFk7fKWN1KOX7eoM=
202202
github.com/agnivade/levenshtein v1.2.1/go.mod h1:QVVI16kDrtSuwcpd0p1+xMC6Z/VfhtCyDIjcwga4/DU=
203203
github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs=

hack/utils/oss_compliance/osa_provided.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Name|Version|License
33
[cel.dev/expr](https://cel.dev/expr)|v0.24.0|Apache License 2.0
44
[semver/v3](https://github.com/Masterminds/semver)|v3.4.0|MIT License
55
[PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery)|v1.10.1|BSD 3-clause "New" or "Revised" License
6-
[agentgateway/agentgateway](https://github.com/agentgateway/agentgateway)|v0.10.6-0.20251203184148-f45f1a94cdfa|Apache License 2.0
6+
[agentgateway/agentgateway](https://github.com/agentgateway/agentgateway)|v0.10.6-0.20251211180119-76b0afc55496|Apache License 2.0
77
[anthropics/anthropic-sdk-go](https://github.com/anthropics/anthropic-sdk-go)|v1.13.0|MIT License
88
[retry-go/v4](https://github.com/avast/retry-go)|v4.3.3|MIT License
99
[xds/go](https://github.com/cncf/xds)|v0.0.0-20251110193048-8bfbf64dc13e|Apache License 2.0

0 commit comments

Comments
 (0)