diff --git a/source/extensions/access_loggers/well_known_names.h b/source/extensions/access_loggers/well_known_names.h deleted file mode 100644 index a76efede95907..0000000000000 --- a/source/extensions/access_loggers/well_known_names.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include - -#include "source/common/singleton/const_singleton.h" - -namespace Envoy { -namespace Extensions { -namespace AccessLoggers { - -/** - * Well-known access logger names. - * NOTE: New access loggers should use the well known name: envoy.access_loggers.name. - */ -class AccessLogNameValues { -public: - // File access log - const std::string File = "envoy.access_loggers.file"; - // HTTP gRPC access log - const std::string HttpGrpc = "envoy.access_loggers.http_grpc"; - // Standard error access log - const std::string Stderr = "envoy.access_loggers.stderr"; - // Standard output access log - const std::string Stdout = "envoy.access_loggers.stdout"; - // TCP gRPC access log - const std::string TcpGrpc = "envoy.access_loggers.tcp_grpc"; - // OpenTelemetry gRPC access log - const std::string OpenTelemetry = "envoy.access_loggers.open_telemetry"; - // WASM access log - const std::string Wasm = "envoy.access_loggers.wasm"; -}; - -using AccessLogNames = ConstSingleton; - -} // namespace AccessLoggers -} // namespace Extensions -} // namespace Envoy diff --git a/source/extensions/clusters/well_known_names.h b/source/extensions/clusters/well_known_names.h deleted file mode 100644 index 569141745b77f..0000000000000 --- a/source/extensions/clusters/well_known_names.h +++ /dev/null @@ -1,48 +0,0 @@ -#pragma once - -#include "source/common/config/well_known_names.h" - -namespace Envoy { -namespace Extensions { -namespace Clusters { - -/** - * Well-known cluster types, this supersede the service discovery types - */ -class ClusterTypeValues { -public: - // Static clusters (cluster that have a fixed number of hosts with resolved IP addresses). - const std::string Static = "envoy.cluster.static"; - - // Strict DNS (cluster that periodic DNS resolution and updates the host member set if the DNS - // members change). - const std::string StrictDns = "envoy.cluster.strict_dns"; - - // Logical DNS (cluster that creates a single logical host that wraps an async DNS resolver). - const std::string LogicalDns = "envoy.cluster.logical_dns"; - - // Endpoint Discovery Service (dynamic cluster that reads host information from the Endpoint - // Discovery Service). - const std::string Eds = "envoy.cluster.eds"; - - // Original destination (dynamic cluster that automatically adds hosts as needed based on the - // original destination address of the downstream connection). - const std::string OriginalDst = "envoy.cluster.original_dst"; - - // Redis cluster (cluster that reads host information using the redis cluster protocol). - const std::string Redis = "envoy.clusters.redis"; - - // Dynamic forward proxy cluster. This cluster is designed to work directly with the - // dynamic forward proxy HTTP filter. - const std::string DynamicForwardProxy = "envoy.clusters.dynamic_forward_proxy"; - - // Aggregate cluster which may contain different types of clusters. It allows load balance between - // different type of clusters. - const std::string Aggregate = "envoy.clusters.aggregate"; -}; - -using ClusterTypes = ConstSingleton; - -} // namespace Clusters -} // namespace Extensions -} // namespace Envoy diff --git a/source/extensions/common/wasm/well_known_names.h b/source/extensions/common/wasm/well_known_names.h deleted file mode 100644 index 580ecac609a6f..0000000000000 --- a/source/extensions/common/wasm/well_known_names.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include - -#include "source/common/singleton/const_singleton.h" - -namespace Envoy { -namespace Extensions { -namespace Common { -namespace Wasm { - -/** - * Well-known wasm runtime names. - * NOTE: New wasm runtimes should use the well known name: envoy.wasm.runtime.name. - */ -class WasmRuntimeValues { -public: - // Wasmtime (https://github.com/bytecodealliance/wasmtime). - const std::string Wasmtime = "envoy.wasm.runtime.wasmtime"; - // WAVM (https://github.com/WAVM/WAVM) Wasm VM. - const std::string Wavm = "envoy.wasm.runtime.wavm"; - // Null sandbox: modules must be compiled into envoy and registered name is given in the - // DataSource.inline_string. - const std::string Null = "envoy.wasm.runtime.null"; - // V8-based (https://v8.dev) WebAssembly runtime. - const std::string V8 = "envoy.wasm.runtime.v8"; - - // Filter state name - const std::string FilterState = "envoy.wasm"; -}; - -using WasmRuntimeNames = ConstSingleton; - -} // namespace Wasm -} // namespace Common -} // namespace Extensions -} // namespace Envoy diff --git a/source/extensions/grpc_credentials/well_known_names.h b/source/extensions/grpc_credentials/well_known_names.h deleted file mode 100644 index efdbd48d2d729..0000000000000 --- a/source/extensions/grpc_credentials/well_known_names.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include - -#include "source/common/singleton/const_singleton.h" - -namespace Envoy { -namespace Extensions { -namespace GrpcCredentials { - -/** - * Well-known gRPC Credentials names. - * NOTE: New gRPC Credentials should use the well known name: envoy.grpc_credentials.name. - */ -class GrpcCredentialsNameValues { -public: - // Access Token Example. - const std::string AccessTokenExample = "envoy.grpc_credentials.access_token_example"; - // File Based Metadata credentials - const std::string FileBasedMetadata = "envoy.grpc_credentials.file_based_metadata"; - // AWS IAM - const std::string AwsIam = "envoy.grpc_credentials.aws_iam"; -}; - -using GrpcCredentialsNames = ConstSingleton; - -} // namespace GrpcCredentials -} // namespace Extensions -} // namespace Envoy diff --git a/source/extensions/health_checkers/well_known_names.h b/source/extensions/health_checkers/well_known_names.h deleted file mode 100644 index 5cec910f45e42..0000000000000 --- a/source/extensions/health_checkers/well_known_names.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once - -#include - -#include "source/common/singleton/const_singleton.h" - -namespace Envoy { -namespace Extensions { -namespace HealthCheckers { - -/** - * Well-known health checker names. - * NOTE: New health checkers should use the well known name: envoy.health_checkers.name. - */ -class HealthCheckerNameValues { -public: - // Redis health checker. - const std::string RedisHealthChecker = "envoy.health_checkers.redis"; -}; - -using HealthCheckerNames = ConstSingleton; - -} // namespace HealthCheckers -} // namespace Extensions -} // namespace Envoy diff --git a/source/extensions/internal_redirect/well_known_names.h b/source/extensions/internal_redirect/well_known_names.h deleted file mode 100644 index 764d70799b39a..0000000000000 --- a/source/extensions/internal_redirect/well_known_names.h +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once - -#include - -#include "source/common/singleton/const_singleton.h" - -namespace Envoy { -namespace Extensions { -namespace InternalRedirect { - -/** - * Well-known internal redirect predicate names. - */ -class InternalRedirectPredicatesNameValues { -public: - const std::string AllowListedRoutesPredicate = - "envoy.internal_redirect_predicates.allow_listed_routes"; - const std::string PreviousRoutesPredicate = "envoy.internal_redirect_predicates.previous_routes"; - const std::string SafeCrossSchemePredicate = - "envoy.internal_redirect_predicates.safe_cross_scheme"; -}; - -using InternalRedirectPredicateValues = ConstSingleton; - -} // namespace InternalRedirect -} // namespace Extensions -} // namespace Envoy diff --git a/source/extensions/resource_monitors/well_known_names.h b/source/extensions/resource_monitors/well_known_names.h deleted file mode 100644 index 7d43aa98671ab..0000000000000 --- a/source/extensions/resource_monitors/well_known_names.h +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once -#include - -#include "source/common/singleton/const_singleton.h" - -namespace Envoy { -namespace Extensions { -namespace ResourceMonitors { - -/** - * Well-known resource monitor names. - * NOTE: New resource monitors should use the well known name: envoy.resource_monitors.name. - */ -class ResourceMonitorNameValues { -public: - // Heap monitor with statically configured max. - const std::string FixedHeap = "envoy.resource_monitors.fixed_heap"; - - // File-based injected resource monitor. - const std::string InjectedResource = "envoy.resource_monitors.injected_resource"; -}; - -using ResourceMonitorNames = ConstSingleton; - -} // namespace ResourceMonitors -} // namespace Extensions -} // namespace Envoy diff --git a/source/extensions/retry/priority/well_known_names.h b/source/extensions/retry/priority/well_known_names.h deleted file mode 100644 index 28698a8b262db..0000000000000 --- a/source/extensions/retry/priority/well_known_names.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include - -#include "source/common/singleton/const_singleton.h" - -namespace Envoy { -namespace Extensions { -namespace Retry { -namespace Priority { - -/** - * Well-known retry priority load names. - */ -class RetryPriorityNameValues { -public: - // Previous priority retry priority. Excludes previously attempted priorities during retries. - const std::string PreviousPrioritiesRetryPriority = "envoy.retry_priorities.previous_priorities"; -}; - -using RetryPriorityValues = ConstSingleton; - -} // namespace Priority -} // namespace Retry -} // namespace Extensions -} // namespace Envoy diff --git a/source/extensions/transport_sockets/BUILD b/source/extensions/transport_sockets/BUILD deleted file mode 100644 index 40a5e79b39d3b..0000000000000 --- a/source/extensions/transport_sockets/BUILD +++ /dev/null @@ -1,19 +0,0 @@ -load( - "//bazel:envoy_build_system.bzl", - "envoy_cc_library", - "envoy_extension_package", -) - -licenses(["notice"]) # Apache 2 - -envoy_extension_package() - -envoy_cc_library( - name = "well_known_names", - hdrs = ["well_known_names.h"], - # well known names files are public as long as they exist. - visibility = ["//visibility:public"], - deps = [ - "//source/common/singleton:const_singleton", - ], -) diff --git a/source/extensions/transport_sockets/tls/cert_validator/well_known_names.h b/source/extensions/transport_sockets/tls/cert_validator/well_known_names.h deleted file mode 100644 index 4b1cdfa8dfcb9..0000000000000 --- a/source/extensions/transport_sockets/tls/cert_validator/well_known_names.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include - -#include "source/common/singleton/const_singleton.h" - -namespace Envoy { -namespace Extensions { -namespace TransportSockets { -namespace Tls { - -/** - * Well-known certificate validator's names. - */ -class CertValidatorValues { -public: - // default certificate validator - const std::string Default = "envoy.tls.cert_validator.default"; - - // SPIFFE(https://github.com/spiffe/spiffe) - const std::string SPIFFE = "envoy.tls.cert_validator.spiffe"; -}; - -using CertValidatorNames = ConstSingleton; - -} // namespace Tls -} // namespace TransportSockets -} // namespace Extensions -} // namespace Envoy diff --git a/source/extensions/transport_sockets/well_known_names.h b/source/extensions/transport_sockets/well_known_names.h deleted file mode 100644 index c6edb18ab6937..0000000000000 --- a/source/extensions/transport_sockets/well_known_names.h +++ /dev/null @@ -1,44 +0,0 @@ -#pragma once - -#include - -#include "source/common/singleton/const_singleton.h" - -namespace Envoy { -namespace Extensions { -namespace TransportSockets { - -/** - * Well-known transport socket names. - * NOTE: New transport sockets should use the well known name: envoy.transport_sockets.name. - */ -class TransportSocketNameValues { -public: - const std::string Alts = "envoy.transport_sockets.alts"; - const std::string Quic = "envoy.transport_sockets.quic"; - const std::string RawBuffer = "envoy.transport_sockets.raw_buffer"; - const std::string Tap = "envoy.transport_sockets.tap"; - const std::string Tls = "envoy.transport_sockets.tls"; - const std::string UpstreamProxyProtocol = "envoy.transport_sockets.upstream_proxy_protocol"; - const std::string StartTls = "envoy.transport_sockets.starttls"; -}; - -using TransportSocketNames = ConstSingleton; - -/** - * Well-known transport protocol names. - */ -class TransportProtocolNameValues { -public: - const std::string Tls = "tls"; - const std::string RawBuffer = "raw_buffer"; - const std::string Quic = "quic"; - const std::string StartTls = "starttls"; -}; - -// TODO(lizan): Find a better place to have this singleton. -using TransportProtocolNames = ConstSingleton; - -} // namespace TransportSockets -} // namespace Extensions -} // namespace Envoy