transportsecurity

package
v0.0.0-...-5106b98 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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