mirror of https://github.com/hashicorp/consul
32 lines
987 B
Go
32 lines
987 B
Go
// 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"
|
|
"google.golang.org/protobuf/proto"
|
|
|
|
"github.com/hashicorp/consul/agent/proxycfg"
|
|
"github.com/hashicorp/consul/agent/structs"
|
|
"github.com/hashicorp/go-hclog"
|
|
)
|
|
|
|
type GatewayAuthFilterBuilder struct {
|
|
listener structs.APIGatewayListener
|
|
routes []*structs.HTTPRouteConfigEntry
|
|
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
|
|
}
|
|
|
|
func makeAPIGatewayJWKClusters(_ hclog.Logger, _ *proxycfg.ConfigSnapshot) []proto.Message {
|
|
return nil
|
|
}
|