bundlepath

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Overview

Package bundlepath holds the one bundle-containment check every package that writes model-authored paths into a skill bundle shares. A resource path (gen), or a repair proposal's file path (repair), is untrusted input exactly the same way in both places, and a duplicated check that drifts is a security defect waiting to happen — so there is exactly one implementation of the rule.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeJoin

func SafeJoin(dir, rel string) (string, error)

SafeJoin resolves rel inside dir, refusing anything that escapes: an absolute path, or a traversal that resolves outside dir even when buried after the first path segment (e.g. "scripts/../../escape.sh", which does not start with ".." and so would slip past a naive prefix check).

Types

This section is empty.

Jump to

Keyboard shortcuts

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