chiselproxy

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: AGPL-3.0 Imports: 1 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.

README

chisel-proxy

developement tool for debcrafting, chisel and chisel-releases. it lets you serve your own .debs to chisel without uploading them to an archive first, which lets you write and test slice definitions for a package before it lands upstream.

why

chisel-proxy stands up an in-memory apt archive holding your debs, signs it with an ephemeral key, and runs an HTTP proxy that answers requests for its own suite from memory while streaming everything else through to the real archive untouched. upstream is never re-signed and always wins on priority. the local archive can only supply names upstream does not have.

use

cd ~/git/chisel-releases
chisel-proxy cut ./demo-hello_1.0_amd64.deb ./demo-hello.yaml \
    -- demo-hello_bins base-files_base --root ./rootfs

each positional before -- is one of:

  • a .deb file, served as-is,
  • a directory, packed into a .deb on the fly (honouring DEBIAN/control if present, else fabricating one),
  • a .yaml/.yml slice definition, spliced into the release checkout for you.

everything after -- is forwarded to real chisel cut (or chisel info, see below). your checkout is never touched: chisel-proxy copies it to a temp dir, injects the archive + public key + your slices there, and points chisel at the copy. a throwaway cache is used per run so every run starts clean, and chisel's exit code is passed through. the chisel binary is found on PATH, or set CHISEL=/path/to/chisel.

--release and --arch are chisel-proxy's own flags and go before --, never after. --arch sets the architecture of the served archive and is forwarded to chisel cut when given; without it, chisel picks the host architecture, same as the archive does.

info takes the same positionals and flags (except --arch, which chisel info does not have) and forwards to chisel info instead. it gets the identical setup, so it sees exactly the release cut would see:

chisel-proxy info ./demo-hello.yaml -- demo-hello_bins

you can also just run the proxy and wire chisel up yourself:

chisel-proxy serve ./demo-hello_1.0_amd64.deb

it prints the http_proxy line, the chisel.yaml blocks to paste, and a stub slice.

see example/.

library

the building blocks are importable as github.com/lczyk/chisel-proxy/pkg, a module of its own with a short dependency list:

  • pkg/deb -- build a .deb from a directory or read one back, no dpkg.
  • pkg/apt -- an in-memory, signed apt archive built from .debs.
  • pkg/temp-release -- throwaway chisel-releases directories: a copy of a checkout or a fresh one, with slices spliced in.
go get github.com/lczyk/chisel-proxy/pkg

build

make build      # ./bin/chisel-proxy
make test       # unit tests
make e2e        # real chisel cut + info through the proxy (needs chisel + network)

Documentation

Overview

Package chiselproxy holds the project VERSION file. It sits at the module root because go:embed cannot reach parent directories, so only a root-level package can embed it.

Index

Constants

This section is empty.

Variables

View Source
var VersionFile string

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
chisel-proxy command
internal
cli
Package cli parses arguments and runs the chisel-proxy verbs.
Package cli parses arguments and runs the chisel-proxy verbs.
proxy
Package proxy is an HTTP forward-proxy that answers requests for its archive's suite from memory and streams everything else to the real upstream archive.
Package proxy is an HTTP forward-proxy that answers requests for its archive's suite from memory and streams everything else to the real upstream archive.
release
Package release wires a proxy's synthetic archive into a chisel-releases checkout for the forwarded chisel verbs (`cut`, `info`): it copies the checkout to a temp dir and adds a low-priority archive entry plus the ephemeral public key to the copy's chisel.yaml, leaving the user's checkout untouched.
Package release wires a proxy's synthetic archive into a chisel-releases checkout for the forwarded chisel verbs (`cut`, `info`): it copies the checkout to a temp dir and adds a low-priority archive entry plus the ephemeral public key to the copy's chisel.yaml, leaving the user's checkout untouched.
pkg module

Jump to

Keyboard shortcuts

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