transportsecurity

package
v0.4.0-linux-arm64 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package transportsecurity enforces encrypted connector transport independently of host access policy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRedirect

func CheckRedirect(req *http.Request, via []*http.Request) error

CheckRedirect forbids downgrades even when local development permits an initial HTTP endpoint.

func HTTPTransport

func HTTPTransport(base http.RoundTripper, allowPlaintext bool) http.RoundTripper

HTTPTransport also checks dynamically constructed execution URLs before any credentials reach the network.

func PlaintextAllowed

func PlaintextAllowed(ctx context.Context) bool

func TLS

func TLS(host string) *tls.Config

TLS retains the configured hostname when a destination policy pins the socket to an IP.

func ValidateURL

func ValidateURL(target *url.URL, allowPlaintext bool) error

func WithPlaintext

func WithPlaintext(ctx context.Context) context.Context

WithPlaintext permits local development fixtures. Deployment validation must reject this policy outside local profiles.

Types

This section is empty.

Jump to

Keyboard shortcuts

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