
osty
io.github.osty-dev/osty
Read-only, Ed25519-signed supply-chain intel: package behavior, distro CVE backports, upgrade checks
Documentation
osty CLI
Osty (osty.dev) is a pre-install supply-chain firewall, runtime lineage, upgrade intelligence, and policy-governed fleet remediation platform for cloud-native software fleets.
osty is its command-line tool.
It gates lockfiles against Ed25519-signed verdicts before anything installs, validates .osty/policy.yaml, signs build provenance, explains every allow, hold and block offline, and moves signed intelligence into air-gapped networks.
It is a single static Go binary built with CGO_ENABLED=0 for Linux and macOS on amd64 and arm64.
Install
Homebrew
brew install osty-dev/tap/osty
osty version
The formula lives in osty-dev/homebrew-tap.
Its test do block runs osty version.
install.sh
curl -fsSL https://raw.githubusercontent.com/osty-dev/osty/main/packaging/cli/install.sh | bash
The script downloads osty_<version>_<os>_<arch>.tar.gz and checksums.txt from the release, checks the archive's SHA-256 with sha256sum or shasum -a 256, and only then extracts and installs osty with mode 0755.
A checksum mismatch stops the script before anything is extracted.
When a working cosign is on PATH, the script also downloads checksums.txt.sigstore.json and runs cosign verify-blob on checksums.txt before it trusts any checksum.
The signature must come from a workflow in github.com/osty-dev/osty running on the v<version> tag, issued by https://token.actions.githubusercontent.com, and a rejected signature stops the script before anything is extracted.
Set OSTY_REQUIRE_SIGNATURE=1 to fail closed when cosign is missing or the release has no signature bundle.
| Variable or flag | Default | Effect |
|---|---|---|
OSTY_VERSION | latest | Release to install, such as 0.1.0 or v0.1.0. |
OSTY_INSTALL_DIR | $HOME/.local/bin | Directory that receives the osty binary. |
OSTY_RELEASE_BASE_URL | https://github.com/osty-dev/osty/releases/download | Download base, for a mirror or an internal artifact store. |
OSTY_REQUIRE_SIGNATURE | 0 | 1 refuses to install unless cosign verifies the Sigstore signature on checksums.txt. |
OSTY_CHECKSUMS_BUNDLE_URL | <release>/checksums.txt.sigstore.json | Sigstore bundle for checksums.txt, for a mirror that stores it elsewhere. |
--dry-run | off | Print the URLs and target path, then exit without downloading. |
curl -fsSL https://raw.githubusercontent.com/osty-dev/osty/main/packaging/cli/install.sh | OSTY_VERSION=0.1.0 OSTY_INSTALL_DIR=/usr/local/bin bash
curl -fsSL https://raw.githubusercontent.com/osty-dev/osty/main/packaging/cli/install.sh | bash -s -- --dry-run
GitHub Releases
Every release publishes these assets:
| Asset | Contents |
|---|---|
osty_<version>_linux_amd64.tar.gz, osty_<version>_linux_arm64.tar.gz | osty, LICENSE, NOTICE, licenses/LICENSE-APACHE-2.0, licenses/LICENSE-SOURCE-AVAILABLE.txt |
osty_<version>_darwin_amd64.tar.gz, osty_<version>_darwin_arm64.tar.gz | Same as Linux |
osty-sensor_<version>_linux_amd64.tar.gz, osty-sensor_<version>_linux_arm64.tar.gz | osty-sensor, LICENSE, NOTICE, licenses/LICENSE-APACHE-2.0, licenses/ebpf/LICENSE, licenses/ebpf/LICENSE.GPL-2.0 |
checksums.txt | SHA-256 of every archive |
checksums.txt.sigstore.json | Keyless Sigstore signature bundle for checksums.txt from the release workflow |
osty-sensor is the Linux host agent, so it ships for Linux only.
Verify a manual download before you run it:
sha256sum --ignore-missing -c checksums.txt
tar -xzf osty_0.1.0_linux_amd64.tar.gz osty
./osty version
On macOS, use shasum -a 256 -c --ignore-missing checksums.txt.
Check the signature on checksums.txt before you trust it:
cosign verify-blob --bundle checksums.txt.sigstore.json \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp '^https://github\.com/osty-dev/osty/\.github/workflows/[A-Za-z0-9._-]+\.ya?ml@refs/tags/v0\.1\.0$' \
checksums.txt
Quickstart
osty version
osty policy validate .osty/policy.yaml
osty airgap import --archive osty-intel.tar.gz --brain-public-key brain.pub.pem --cache edge-cache.sqlite --json
osty verify --lockfile package-lock.json --cache edge-cache.sqlite --policy .osty/policy.yaml --json
osty explain --package npm:left-pad@1.3.0 --cache edge-cache.sqlite --json
osty stamp keygen --private-key stamp.pem --public-key stamp.pub.pem
osty stamp --artifact-digest sha256:<digest> --signing-key stamp.pem --out provenance.json
osty stamp verify --attestation provenance.json --public-key stamp.pub.pem --artifact-digest sha256:<digest>
Every command exits 0 on success, 1 when a check fails or a dependency is held or blocked, and 2 on a usage error.
osty verify reads package-lock.json, go.sum, go.mod, requirements.txt and uv.lock.
OSTY_EDGE_CACHE and OSTY_POLICY_PATH set the defaults for --cache and --policy, and OSTY_SIGNING_KEY sets the default for osty stamp --signing-key.
The full reference is at https://osty.dev/docs/cli and the policy schema is at https://osty.dev/docs/policy.
To run the same gate in GitHub Actions, use osty-dev/osty-action.
Licensing
Osty licenses each component separately, and the LICENSE file in each archive is the machine-checked component map.
| Artifact | SPDX license expression | Why |
|---|---|---|
osty binary | Apache-2.0 AND LicenseRef-Osty-Source-Available | cmd/osty is Apache 2.0, and it links the source-available policy evaluator, edge cache and reachability engine for osty policy, explain, verify, xray, waiver and airgap import. |
osty-sensor binary | Apache-2.0 | Its packages are Apache 2.0, and its embedded eBPF programs are MIT OR GPL-2.0-only, which the Apache 2.0 distribution absorbs. |
packaging/cli/ (this directory: install.sh, .goreleaser.yaml, the Homebrew template) | Apache-2.0 | Tier 1 of LICENSE. |
The license texts ship in every archive under licenses/.
Proprietary Osty components such as osty-brain and osty-control are not part of any public release.
Releasing
Releases are cut by .github/workflows/release-cli.yml in osty-dev/osty, never from a laptop.
install.sh and osty-dev/osty-action only trust a checksums.txt.sigstore.json whose keyless certificate names a workflow in github.com/osty-dev/osty running on the v<version> tag, so only that workflow can publish a release they accept.
Maintainers release a version by tagging the release commit of the private source repository first, then the matching public commit of osty-dev/osty, with the same signed tag:
git -C <source checkout> tag -s v0.1.1 -m "osty 0.1.1"
git -C <source checkout> push origin v0.1.1
git -C <osty-dev/osty checkout> tag -s v0.1.1 -m "osty 0.1.1"
git -C <osty-dev/osty checkout> push origin v0.1.1
Each repository's tag points at a commit in its own history.
Never push the source tag to osty-dev/osty, because that publishes every private commit it reaches.
The tag push runs release-cli.yml in osty-dev/osty, which does the following, in order:
- Refuses to publish unless the ref is a
vX.Y.ZorvX.Y.Z-prereleasetag inosty-dev/ostyandvars.OSTY_PINNED_ADVISORY_KEYSis set. - Checks out the Go source from
ohigs/osty(orvars.OSTY_SOURCE_REPO) at the same tag withsecrets.OSTY_SOURCE_READ_TOKEN, and fails unless the checkout is exactly that tag. - Validates the keys with
release.sh check-keys, runsgoreleaser checkandgoreleaser release --cleanwith.goreleaser.yaml, which builds every archive, signschecksums.txtkeylessly with the workflow's GitHub OIDC token, and uploads everything to a draft release. - Runs
release.sh verify-dist, which fails unless all 4ostybinaries embed the pinned advisory feed keys. - Runs
cosign verify-blobonchecksums.txt.sigstore.jsonwith issuerhttps://token.actions.githubusercontent.comand the exact identityhttps://github.com/osty-dev/osty/.github/workflows/release-cli.yml@refs/tags/v<version>. - Installs the built archive with
install.shandOSTY_REQUIRE_SIGNATURE=1from a local mirror, and checks the draft assets match the verified build byte for byte. - Publishes the draft, then installs the live release with
install.shandOSTY_REQUIRE_SIGNATURE=1. - Renders
Formula/osty.rbwithrender_formula.py, commits it toosty-dev/homebrew-tapwhensecrets.OSTY_HOMEBREW_TAP_TOKENis set and the tag is not a prerelease, and keeps it withchecksums.txtand the bundle as theosty-cli-<version>run artifact.
A failure before the publish step leaves at most a draft, which the next run on the tag replaces. A published tag is never replaced; fix forward with a new tag.
Setting in osty-dev/osty | Kind | Purpose |
|---|---|---|
OSTY_PINNED_ADVISORY_KEYS | Variable | Comma-separated base64 raw Ed25519 public keys of the production advisory feed, from release.sh pubkey <pem>. |
OSTY_SOURCE_READ_TOKEN | Secret | Fine-grained token with read-only Contents access to the source repository. |
OSTY_SOURCE_REPO | Variable, optional | Source repository, default ohigs/osty. |
OSTY_HOMEBREW_TAP_TOKEN | Secret, optional | Fine-grained token with Contents: write on osty-dev/homebrew-tap; without it the run summary says how to commit the formula by hand. |
workflow_dispatch defaults to dry_run: true, which builds a GoReleaser snapshot with --skip=sign,publish, needs no OIDC token and never touches a release.
Pass tag: v0.1.1 to rehearse a tag build, or dispatch from a tag ref with dry_run: false to publish it.
OSTY_PINNED_ADVISORY_KEYS is passed to the osty build as -X github.com/osty-io/osty/internal/xray.PinnedAdvisoryKeys=<keys>, so the released osty xray trusts https://feeds.osty.dev/advisories/v1/latest.json with no flags.
The guard holds even when GoReleaser runs directly: every non-snapshot run first runs release.sh check-keys, and every built osty binary must pass release.sh verify-binary before anything is archived or published.
Snapshot builds (goreleaser release --snapshot) skip both checks and stay development builds.
To rehearse locally from a clean checkout of the tag, with a checkout of osty-dev/homebrew-tap next to it:
export OSTY_PINNED_ADVISORY_KEYS="$(packaging/cli/release.sh pubkey advisory-signing.pub.pem)"
packaging/cli/release.sh release v0.1.1 --tap-dir ../homebrew-tap --skip-publish
The local rehearsal builds and verifies everything with --skip=publish,sign and renders the formula, and release.sh refuses to publish because a signature made outside the workflow would fail every install.sh check.
render_formula.py fills homebrew/osty.rb.tmpl with the version and the four osty archive digests from checksums.txt and refuses to render if any digest is missing.
GoReleaser's brews publisher is deprecated in GoReleaser v2 and its homebrew_casks publisher cannot carry a license or a test do block, so the formula is rendered from the template and committed to osty-dev/homebrew-tap.
The operator runbook is docs/runbooks/advisory-feed-and-cli-release.md.
No installation packages available.