safetext

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package safetext holds the single predicate every untrusted single-line identifier in this module is validated against — grant fields, execution IDs, and proxy credentials alike. It exists as its own package so the grant layer and the egress layer share one definition of "safe text" rather than drifting apart with two near-identical copies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Valid

func Valid(value string) bool

Valid reports whether value is a non-empty, well-formed UTF-8 string that carries no surrounding whitespace and no NUL. It is deliberately strict: these values are compared for equality, embedded in URLs, and bound into authenticated tokens, so anything that could normalize to a different string later is rejected up front.

Types

This section is empty.

Jump to

Keyboard shortcuts

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