authz

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoAuth

func NoAuth(request *restful.Request, response *restful.Response, chain *restful.FilterChain)

Types

type AdminAuth

type AdminAuth struct {
	AllowFromLocalhost bool
}

AdminAuth validates that the client can access admin endpoints (like Secrets or Dataplane Token) You can access the endpoint in two cases

  1. Request originates from localhost. We assume that if someone has an access to VM/Pod with server, they can do whatever they want. This is also for better UX
  2. Request originates from outside of localhost but client certs are configured for HTTPS. Client certs are essentially self signed CAs (generated by kumactl generate tls-certificate). For now we do not support SAN validation with the same CA that was used to sign server cert

func (*AdminAuth) Validate

func (a *AdminAuth) Validate(request *restful.Request, response *restful.Response, chain *restful.FilterChain)

Jump to

Keyboard shortcuts

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