2023-08-24 19:07:14 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
|
|
//go:build !consulent
|
|
|
|
|
|
|
|
package xds
|
|
|
|
|
|
|
|
import (
|
|
|
|
envoy_http_jwt_authn_v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/jwt_authn/v3"
|
|
|
|
envoy_http_v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3"
|
2024-08-14 19:41:02 +00:00
|
|
|
"google.golang.org/protobuf/proto"
|
2023-08-24 19:07:14 +00:00
|
|
|
|
2024-08-14 19:41:02 +00:00
|
|
|
"github.com/hashicorp/consul/agent/proxycfg"
|
2023-08-24 19:07:14 +00:00
|
|
|
"github.com/hashicorp/consul/agent/structs"
|
2024-08-14 19:41:02 +00:00
|
|
|
"github.com/hashicorp/go-hclog"
|
2023-08-24 19:07:14 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type GatewayAuthFilterBuilder struct {
|
|
|
|
listener structs.APIGatewayListener
|
2023-10-10 20:25:36 +00:00
|
|
|
routes []*structs.HTTPRouteConfigEntry
|
2023-08-24 19:07:14 +00:00
|
|
|
providers map[string]*structs.JWTProviderConfigEntry
|
|
|
|
envoyProviders map[string]*envoy_http_jwt_authn_v3.JwtProvider
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *GatewayAuthFilterBuilder) makeGatewayAuthFilters() ([]*envoy_http_v3.HttpFilter, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|
2024-08-14 19:41:02 +00:00
|
|
|
|
|
|
|
func makeAPIGatewayJWKClusters(_ hclog.Logger, _ *proxycfg.ConfigSnapshot) []proto.Message {
|
|
|
|
return nil
|
|
|
|
}
|