filters

package
v0.0.0-...-c03dbfc Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTPHeaderPhClientCertificate pantahub client certificate
	HTTPHeaderPhClientCertificate = "Pantahub-TLS-Client-Cert"

	// HTTPHeaderPhProxyTLSToken pantahub proxy token
	HTTPHeaderPhProxyTLSToken = "Pantahub-TLS-Proxy-Token"
)

Variables

This section is empty.

Functions

func GlobalLogging

func GlobalLogging(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

GlobalLogging Global Filter

func IAkCertFilterFilter

func IAkCertFilterFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

IAkCertFilterFilter process iak and set up in attibute

func MeasureTimeLog

func MeasureTimeLog(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

MeasureTimeLog WebService (post-process) Filter (as a struct that defines a FilterFunction)

func MetricsFilter

func MetricsFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

MetricsFilter measure metrics

func OptionsFilters

func OptionsFilters(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

OptionsFilters Filter Options

func ResponseCodeLog

func ResponseCodeLog(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

ResponseCodeLog WebService (post-process) Filter (as a struct that defines a FilterFunction)

func TLSProxyCertFilter

func TLSProxyCertFilter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

TLSProxyCertFilter will ensure that calling clients have authenticated with a valid client IDevId certificate and will validate the extensions to it.

If validation succeeds the key attributes will be put into the calling context to allow business logic to adjust behaviour based on what was found.

This filter can operate in mode behind proxy or directly on TLS port. If we are opreating behind a proxy it is mandatory that the proxy authenticates itself to the backend in order to enable the code path that uses the "PhClientCertificate" Http header field to retrieve the client certificate used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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