Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Bug report
description: Something went wrong while building a drive, booting it, or updating the app.
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for reporting! For security problems, please use
[private vulnerability reporting](https://github.com/SkippyNet/usb-forge/security/advisories/new) instead.
- type: input
id: version
attributes:
label: USB Forge version
description: Shown at the top right of the app, or run `usb-forge --version`.
placeholder: "0.3.1"
validations:
required: true
- type: dropdown
id: os
attributes:
label: Operating system
options:
- Windows 11
- Windows 10
- Ubuntu
- Fedora
- Linux Mint
- Debian
- Arch
- Other Linux (say which below)
validations:
required: true
- type: dropdown
id: stage
attributes:
label: Where did it go wrong?
options:
- Finding my USB drive
- Looking up versions or downloading
- Formatting / installing the boot menu
- Copying or verifying ISOs
- Booting from the finished drive
- Self-update
- Something else
validations:
required: true
- type: textarea
id: what
attributes:
label: What happened, and what did you expect?
validations:
required: true
- type: textarea
id: activity
attributes:
label: Activity log
description: Copy the lines from the **Activity** panel on the build screen, if you got that far.
render: text
- type: textarea
id: disks
attributes:
label: Disk list
description: |
For drive-detection problems, paste the output of `usb-forge --list-disks`.
It only reads disk information and never writes to a disk.
render: text
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/catalog_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Catalog request
description: Suggest an operating system or tool to add to the catalog.
labels: [catalog]
body:
- type: markdown
attributes:
value: |
USB Forge only adds software that it can download from the **official project** and verify
against a **SHA-256 that project publishes**. Links to both make a request much easier to add.
- type: input
id: name
attributes:
label: Software name
validations:
required: true
- type: input
id: download
attributes:
label: Official download page
placeholder: https://
validations:
required: true
- type: input
id: checksum
attributes:
label: Where the project publishes its SHA-256
description: A checksum file (like `SHA256SUMS`), a release API, or the download page itself.
placeholder: https://
validations:
required: true
- type: textarea
id: why
attributes:
label: Why it belongs on a rescue/install stick
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Questions and ideas
url: https://github.com/SkippyNet/usb-forge/discussions
about: Ask how something works, share a setup, or suggest an idea.
- name: Report a security vulnerability
url: https://github.com/SkippyNet/usb-forge/security/advisories/new
about: Please report security problems privately, not as a public issue.
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

# USB Forge

[![CI](https://github.com/SkippyNet/usb-forge/actions/workflows/ci.yml/badge.svg)](https://github.com/SkippyNet/usb-forge/actions/workflows/ci.yml)
[![Latest release](https://img.shields.io/github/v/release/SkippyNet/usb-forge)](https://github.com/SkippyNet/usb-forge/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/SkippyNet/usb-forge/total)](https://github.com/SkippyNet/usb-forge/releases)
[![License: MIT](https://img.shields.io/github/license/SkippyNet/usb-forge)](LICENSE)

Build a multi-boot USB thumb drive in a few clicks. USB Forge sets up a boot menu on the drive,
then adds the operating systems and tools you pick, each one downloaded from its official project
and verified against that project's published SHA-256.
Expand Down Expand Up @@ -69,6 +74,13 @@ as a guide.
| GParted Live | gparted.org `CHECKSUMS.TXT` |
| Memtest86+ | memtest.org `sha256sum.txt` |

## The boot menu

Boot a PC from the finished drive (usually by pressing a key such as F12, F11, F9 or Esc at
power-on) and a USB Forge menu lists every ISO on the drive. Pick one and press Enter. To add
more later, copy any ISO onto the drive in Explorer or your file manager; it appears in the menu
on the next boot.

## Saved downloads

Every ISO is kept in a local downloads folder (`%LOCALAPPDATA%\UsbForge\cache` on Windows,
Expand All @@ -85,6 +97,42 @@ Interrupted downloads resume where they stopped. The checksum still covers the w
- The target disk is checked again right before formatting, and you have to type `ERASE`.
- Each ISO is hashed again after it is copied to the drive.

## FAQ

**Windows says "Windows protected your PC".**
SmartScreen warns about apps it hasn't seen often. Click **More info → Run anyway**. Every
release is signed with the project's own key (verified by the app's updater) and lists SHA-256
checksums in `SHA256SUMS.txt` next to the downloads.

**My USB drive isn't listed.**
Only USB disks that the running system doesn't use are shown. Run `usb-forge --list-disks` to see
every disk and why it was hidden, and include that output if you open an issue.

**Why does my drive look almost empty in Explorer?**
You only see the data partition, which holds the ISOs and a small `ventoy` folder with the
boot menu settings. The boot menu itself lives in a second, small partition that Windows hides.

**Can I still use the drive for files?**
Yes. Anything that isn't a bootable image is ignored by the boot menu.

**A tool doesn't start and the PC mentions Secure Boot.**
See [docs/SECURE_BOOT.md](docs/SECURE_BOOT.md).

**How do I update the ISOs on a drive?**
Build the drive again. Saved downloads that are still current are reused, so only new versions
are downloaded.

## Credits

USB Forge only downloads and arranges other people's work. Thanks to the projects in the catalog
for building it and for publishing checksums that make verified downloads possible:
[Ubuntu](https://ubuntu.com), [Fedora](https://fedoraproject.org),
[Linux Mint](https://linuxmint.com), [Debian](https://www.debian.org),
[Hiren's BootCD PE](https://www.hirensbootcd.org), [SystemRescue](https://www.system-rescue.org),
[Rescuezilla](https://rescuezilla.com), [Clonezilla](https://clonezilla.org),
[GParted](https://gparted.org) and [Memtest86+](https://memtest.org). If a tool saves your day,
consider supporting its project.

## Building from source

```sh
Expand Down
6 changes: 4 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ instead. We aim to reply within 7 days.

| Layer | Protection |
|---|---|
| Source | `main` only accepts changes through pull requests, which need code-owner approval, passing CI and resolved review threads. Force-pushes and branch deletion are blocked. |
| Source | `main` only accepts changes through pull requests, which need code-owner approval, passing CI, no high-severity CodeQL alerts and resolved review threads. Force-pushes and branch deletion are blocked. |
| Secrets | Secret scanning with push protection blocks commits that contain known credential formats. |
| CI | Workflows run with a read-only token. PRs use `pull_request` (never `pull_request_target`), so fork code can't reach secrets. Workflow runs from outside contributors need approval. Actions are restricted to GitHub-owned ones and pinned to full commit SHAs. |
| Tags | Only repository admins can create, move or delete `v*` tags. |
| Releases | Releases are immutable: once published, their files and tag can't be changed or replaced. |
| Signing | The Ed25519 release key lives only in the protected `release` environment. That environment needs maintainer approval and only accepts deployments from `v*` tags. |
| Updates | The app installs an update only if the binary's signature verifies against the public key **compiled into the app** (`keys/release-signing.pub`). The signature covers the version and asset name, so tampered binaries, replayed old releases and cross-platform swaps are all rejected, even if the GitHub repository itself is compromised. |
| Downloads | Every ISO and the boot loader package are checked against the SHA-256 published by its own project before the drive is touched. |
Expand All @@ -23,7 +25,7 @@ instead. We aim to reply within 7 days.
## Verifying a release manually

```sh
cargo run -p release-sign -- verify usb-forge-linux-x86_64 0.1.0 usb-forge-linux-x86_64 "$(cat keys/release-signing.pub)"
cargo run -p release-sign -- verify usb-forge-linux-x86_64 0.3.1 usb-forge-linux-x86_64 "$(cat keys/release-signing.pub)"
```

The `.sig` file must sit next to the binary.
Expand Down
Loading