csrf

package
v1.1.0-beta33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_mesh_api_networking_v1_csrf_csrf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CsrfPolicy

type CsrfPolicy struct {

	// Specifies that CSRF policies will be evaluated, tracked and enforced.
	FilterEnabled bool `protobuf:"varint,1,opt,name=filter_enabled,json=filterEnabled,proto3" json:"filter_enabled,omitempty"`
	// Specifies that CSRF policies will be evaluated and tracked, but not enforced.
	//
	// This is intended to be used when “filter_enabled“ is false and will be ignored otherwise.
	ShadowEnabled bool `protobuf:"varint,2,opt,name=shadow_enabled,json=shadowEnabled,proto3" json:"shadow_enabled,omitempty"`
	// Specifies the % of requests for which the CSRF filter is enabled or when shadow mode is enabled the % of requests
	// evaluated and tracked, but not enforced.
	//
	// If filter_enabled or shadow_enabled is true.
	// Envoy will lookup the runtime key to get the percentage of requests to filter.
	//
	// .. note:: This field defaults to 100
	Percentage float64 `protobuf:"fixed64,3,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// Specifies additional source origins that will be allowed in addition to
	// the destination origin.
	AdditionalOrigins []*v1.StringMatch `protobuf:"bytes,4,rep,name=additional_origins,json=additionalOrigins,proto3" json:"additional_origins,omitempty"`
	// contains filtered or unexported fields
}

CSRF filter config.

func (*CsrfPolicy) Descriptor deprecated

func (*CsrfPolicy) Descriptor() ([]byte, []int)

Deprecated: Use CsrfPolicy.ProtoReflect.Descriptor instead.

func (*CsrfPolicy) Equal

func (m *CsrfPolicy) Equal(that interface{}) bool

Equal function

func (*CsrfPolicy) GetAdditionalOrigins

func (x *CsrfPolicy) GetAdditionalOrigins() []*v1.StringMatch

func (*CsrfPolicy) GetFilterEnabled

func (x *CsrfPolicy) GetFilterEnabled() bool

func (*CsrfPolicy) GetPercentage

func (x *CsrfPolicy) GetPercentage() float64

func (*CsrfPolicy) GetShadowEnabled

func (x *CsrfPolicy) GetShadowEnabled() bool

func (*CsrfPolicy) ProtoMessage

func (*CsrfPolicy) ProtoMessage()

func (*CsrfPolicy) ProtoReflect

func (x *CsrfPolicy) ProtoReflect() protoreflect.Message

func (*CsrfPolicy) Reset

func (x *CsrfPolicy) Reset()

func (*CsrfPolicy) String

func (x *CsrfPolicy) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL