Repository navigation
Conversation
Serve chisel's snap-store bin packages by intercepting the store over TLS with an ephemeral CA handed to chisel via SSL_CERT_FILE, alongside the existing deb archive path. Inputs are classified by chisel's bin- convention: a bin-*/ dir or a .tar.xz file is a bin, everything else a deb; each bin is paired to its bin-<name>.yaml slice to resolve the channel track. Linux only, format v3+.
Go 1.27's crypto/x509 honours SSL_CERT_FILE on darwin behind the x509sslcertoverrideplatform GODEBUG, which chisel's go.mod pins off. Set it in the child env, carry the macOS system roots in the CA bundle, and gate on the chisel binary's Go version via debug/buildinfo instead of refusing darwin outright.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for injecting chisel "bin" packages, alongside the existing deb archive path. A bin is a package chisel fetches from the snap store over HTTPS (a
.tar.xz), not from an apt archive, so you can author and test a bin slice before the package is published.how
chisel hardcodes the store hosts and reaches them over plain
net/http, so the proxy MITM-terminates TLS forapi.staging.snapcraft.ioandstorage.snapcraftcontent.comusing an ephemeral CA, and answers the store's info + download endpoints from memory. chisel is made to trust that CA viaSSL_CERT_FILEin the child environment; the deb path (plain-HTTP interception viahttp_proxy) is unchanged. No upstream chisel change is required.The interface is fully positional, following chisel's own
bin-convention:foo.debfoo/bin-foo/.tar.xzfoo.tar.xzfoo.yamlEach bin is paired to a
bin-<name>.yamlslice among the inputs to resolve the channel track (<default-track>-<release>, riskstable); a bin with no slice, or a bin slice with no payload, is a hard error.CHISEL=/path/to/chisel-with-bins chisel-proxy cut --release ./chisel-releases \ bin-demo-hello/ bin-demo-hello.yaml -- bin-demo-hello_bins --root ./rootfs