2023-05-05 13:47:28 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-21 17:31:54 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2023-05-05 13:47:28 +00:00
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
package hashicorp.consul.mesh.v2beta1;
|
2023-05-05 13:47:28 +00:00
|
|
|
|
|
|
|
enum MeshGatewayMode {
|
|
|
|
// MESH_GATEWAY_MODE_UNSPECIFIED represents no specific mode and should be
|
|
|
|
// used to indicate that a the decision on the mode will be made by other
|
|
|
|
// configuration or default settings.
|
|
|
|
MESH_GATEWAY_MODE_UNSPECIFIED = 0;
|
|
|
|
|
|
|
|
// MESH_GATEWAY_MODE_NONE is the mode to use when traffic should not be
|
|
|
|
// routed through any gateway but instead be routed directly to the
|
|
|
|
// destination.
|
|
|
|
MESH_GATEWAY_MODE_NONE = 1;
|
|
|
|
|
|
|
|
// MESH_GATEWAY_MODE_LOCAL is the mode to use when traffic should be routed
|
|
|
|
// to the local gateway. The local gateway will then ensure that the
|
|
|
|
// connection is proxied correctly to its final destination. This mode will
|
|
|
|
// most often be needed for workloads that are prevented from making outbound
|
|
|
|
// requests outside of their local network/environment. In this case a
|
|
|
|
// gateway will sit at the edge of sit at the edge of the network and will
|
|
|
|
// proxy outbound connections potentially to other gateways in remote
|
|
|
|
// environments.
|
|
|
|
MESH_GATEWAY_MODE_LOCAL = 2;
|
|
|
|
|
|
|
|
// MESH_GATEWAY_MODE_REMOTE is the mode to use when traffic should be routed
|
|
|
|
// to a remote mesh gateway. This mode will most often be used when workloads
|
|
|
|
// can make outbound requests destined for a remote network/environment but
|
|
|
|
// where the remote network/environment will not allow direct addressing. The
|
|
|
|
// mesh gateway in the remote environment will sit at the edge and proxy
|
|
|
|
// requests into that environment.
|
|
|
|
MESH_GATEWAY_MODE_REMOTE = 3;
|
|
|
|
}
|