Windows release signing #
Rubylight docs › For developers · Code signing policy · Building
Rubylight's Windows releases are signed by the release workflow with a Certum code signing certificate for open-source developers ("Open Source Developer Ramazan Kara"), whose key stays in Certum's cloud. Certum offers no unattended login, so certum-login.ps1 installs SimplySign Desktop (pinned version and SHA-256) on the runner and types the account's e-mail and the current one-time code (TOTP, HMAC-SHA-256, made from the secret) into its login window, at most twice. The secrets CERTUM_USERNAME and CERTUM_TOTP_SECRET live in the release-signing environment of both RamazanKara/Rubylight and RamazanKara/nightjar, which only main and v* tags may use; the repository variable CERTUM_SIGNING = true turns signing on. The release guide describes the jobs; Nightjar's release.yml has the same sign-windows job. A new otpauth URI from Certum means setting CERTUM_TOTP_SECRET again in both repositories (gh secret set CERTUM_TOTP_SECRET --env release-signing, the secret= value only).
The same scripts sign by hand on a PC where SimplySign Desktop is connected: sign-local.ps1 for a Rubylight draft (LOCAL_SIGNING = true without CERTUM_SIGNING) and client/scripts/sign-windows-release.ps1 for Nightjar's draft. Both find the certificate by subject in Cert:\CurrentUser\My and stop when it is missing. Timestamps come from http://time.certum.pl.
The rest of this page describes the SignPath Foundation path, which stays in the workflow but is off while SIGNPATH_PROJECT_SLUG is empty. Through it, Rubylight's Windows releases can be signed by the SignPath Foundation, which gives open-source projects free code signing with a certificate issued to the Foundation. The workflow, the artifact configurations and the public code signing policy are in this repository. Signing stays off until the SignPath project exists and its secret and variables are set in GitHub; until then releases are unsigned, exactly as before.
This page is for the maintainer. It describes what the workflow does, then lists every step on SignPath's side and GitHub's, in order, and ends with the text for SignPath's application form.
What the workflow does #
rust-windows.yml signs only release runs: a pushed version tag (v2.* to v9.*), or Run workflow on main with publish. It signs nothing while the SIGNPATH_PROJECT_SLUG variable is empty. Pull requests and ordinary pushes to main are never signed, because the Foundation's release policy asks an approver to approve every signing request.
A signed release:
- Builds the tagged commit afresh, without the SDK and compiled-dependency caches, instead of reusing
main's unsigned build. The same run'stestandlintjobs test and lint that commit (they may use the caches, since nothing from them ships); the build waits for both to pass before it sends anything for signing. - Checks that every Rubylight binary names the product Rubylight and the release version (every build runs this check, signed or not, with
sign-artifacts.ps1 -Phase CheckMetadata). The service is the exception: it carries its own version fromrust/service/Cargo.toml, so its file can stay the same from release to release. SignPath refuses files whose version information doesn't match. - Uploads Rubylight's own executables and DLLs as a GitHub artifact and submits them with the
binariesartifact configuration. The request passes the release version as theversionparameter and the service's asservice_version, and waits up to an hour for the approval. A package that ships the previous release's signed service (previous_service.py) leaves it out of the request. - Checks every returned signature and timestamp, puts the signed files in the package and regenerates its SHA-256 manifest.
- Catalogs Rubylight's own display and virtual gamepad drivers, which every package carries, and signs both catalogs with the
driverconfiguration. See Rubylight's drivers. - Builds the ZIP and the self-extracting installer, submits the installer with the
installerconfiguration, and checks its signature. - Publishes the release only if all of that succeeded. A configured signing request that fails, times out, lacks a file, or returns an invalid or untimestamped signature fails the build; it never publishes unsigned binaries.
A signed release therefore needs three approvals: the binaries, the driver catalog and the installer. The first request arrives when the build finishes, roughly 35 to 45 minutes after the run starts, and each later one a few minutes after the approval before it. The job allows four hours in total.
Third-party drivers and DLLs keep their upstream signatures and are never submitted. The signed setup executable inside the package becomes uninstall.exe; removing an outer installer's appended payload would invalidate its signature. The payload reader recognizes the PE certificate table and alignment padding, so the appended installer signature does not hide the package footer.
Checklist #
Do these in order. Steps 1 to 5 can happen before applying; steps 7 to 18 need the accepted SignPath account.
Before applying #
- Only open-source code: done. Rubylight removed its NVIDIA TrueHDR adapter, the one part that linked a proprietary library (NVIDIA's NGX) and shipped NVIDIA's
nvngx_truehdr.dll. Every signed build comes from this repository's open-source code. RTX HDR came back with RTX Video enhancement in the NVIDIA component (rust\build.ps1 -Nvidia), a separate archive its own workflow job builds and attaches unsigned, never sent to SignPath, which the signed host downloads only at the user's request (policy). - Turn on two-factor authentication on GitHub (Settings, Password and authentication). The Foundation requires multi-factor authentication for the repository and for SignPath.
- Protect
mainand the release tags. In the repository's Settings, Rules, Rulesets, add a branch ruleset formainand a tag ruleset forv*, both active with Restrict deletions and Block force pushes (for tags also Restrict updates). Direct pushes tomainkeep working. SignPath's origin check trusts the branch or tag name, so these refs must not be rewritable. - Publish the policy pages. Merge this work to
main; the Pages workflow publishes the code signing policy and the privacy statement, and the landing page's install section shows the SignPath attribution. Check all three load. The next release's notes link the policy too. - Tell users about system changes in the installer: done. The Foundation asks software to warn before changing system configuration, and to show a privacy policy during installation when it sends user data to systems the user didn't choose. Setup's confirmation summary (
SYSTEM_CHANGESin detect.rs) names the service, the firewall rule, the virtual display and virtual gamepad drivers, the certificates it trusts and the daily update check, and links the privacy statement. The code signing policy describes the certificates.
Apply #
- Fill in the form at signpath.org/apply with the application text below. Tick the box accepting the SignPath Foundation Code of Conduct (the conditions in signpath.org/terms) and the one allowing SignPath to store your data. SignPath reviews the application and, if it accepts, gives you access to a SignPath organization for Rubylight; its acceptance e-mail has the details.
In SignPath, after acceptance #
-
Secure your account. Sign in at app.signpath.io and turn on multi-factor authentication in your user profile.
-
Check the project. Open the Rubylight project (create it if the Foundation hasn't). Set Repository URL to
https://github.com/RamazanKara/Rubylightand note the project's slug. -
Connect GitHub. On Trusted Build Systems, choose Add predefined, add GitHub.com to the organization, then open the project and Link it under Trusted build systems. Optionally install the SignPath GitHub App on
RamazanKara/Rubylightonly; SignPath uses it to read the repository's rulesets and audit log for pipeline policies. -
Create the artifact configurations. In the project, add three artifact configurations with these slugs, choosing the custom XML option and pasting the file from the repository:
binaries: .signpath/binaries.xmlinstaller: .signpath/installer.xmldriver: .signpath/driver.xml, for the display and virtual gamepad drivers' catalogs.
SignPath's copy is the one that signs. When a file in
.signpath/changes, paste it again. -
Create the CI user. Under Users, add a CI user such as
rubylight-github, generate its API token and keep it for step 13. It needs no other role. -
Configure the release signing policy (usually slug
release-signing, using the SignPath Foundation certificate):-
Submitters: only the CI user from step 11.
-
Approval process: on, with you as the approver and one required approval. The Foundation requires a manual approval for every release.
-
Trusted build system verification and Verify origin: on.
-
Allowed branch names:
mainand the release tags. Releases come from a pushed tag (refs/tags/v2.3.2) or frommain(Run workflow with publish). If SignPath turns the first request down on the branch check, its origin details show the branch name exactly as GitHub reported it; allow that form. -
Pipeline policy: add one with this definition and set it to Enforce:
github-build-policies: version: '1.0' runners: require_github_hosted: trueEvery job already runs on GitHub-hosted runners. SignPath can also require the rulesets from step 3 with a
github-scm-policiessection (reference); try it on a release candidate first, because releases build from tags.
Keep whatever stricter settings the Foundation has already made.
-
In GitHub #
- Add the secret. Settings, Secrets and variables, Actions, New repository secret:
SIGNPATH_API_TOKENwith the CI user's token. - Add the variables, on the Variables tab, in this order:
SIGNPATH_ORGANIZATION_ID: the organization ID from SignPath's organization settings (a GUID).SIGNPATH_SIGNING_POLICY_SLUG: the release signing policy's slug, usuallyrelease-signing.SIGNPATH_PROJECT_SLUG: the project slug from step 8. Setting this one turns signing on for the next release run, so set it last.
First signed release #
- Release a candidate. Bump to a release candidate (
python rust/release/bump.py <version>-rc.1), fill in its notes and push tomain. Then use Actions, Rubylight Windows, Run workflow onmainwith publish. A failed signing run publishes nothing and creates no tag, so you can fix SignPath's settings and run it again. - Approve the requests. SignPath e-mails you for each request: first the binaries, then the driver catalog, then the installer. Approve each one that came from this run; its page shows the repository, commit and workflow run. Each request waits up to an hour.
- Check the result. Download both release files and run
Get-AuthenticodeSignatureon the installer and on the executables and DLLs in the ZIP: each must beValid, signed by SignPath Foundation, with a timestamp. Install, update and uninstall on a clean Windows PC, check the installeduninstall.exethe same way, and note what SmartScreen shows. - Record it. Name the first signed version in the code signing policy and add the change to the release notes.
Rubylight's drivers #
build.ps1 builds Rubylight's user-mode display driver (rust/drivers/rubylight-vdisplay, IddCx) and virtual gamepad driver (rust/drivers/rubylight-vgamepad, UMDF2 VHF) into every package, so the driver steps of a signed release cover both:
- Package layout.
drivers/rubylight-display/anddrivers/rubylight-gamepad/in the package each hold one.inf, one.dlland their unsigned.cat, plusinstall-local.ps1andnefconc.exe.StageDriverremakes each catalog from its signed DLL. - Version information. Each driver DLL carries the same VERSIONINFO as every other binary: ProductName
Rubylightand ProductVersion equal to the release version. Their build scripts write it with version_info.rs and compile it with the Windows Kit'src.exe. - Signing order. The
binariesrequest signs both DLLs. Inf2Cat then makes each catalog from its INF and signed DLL, and thedriverrequest signs both catalogs after checking the DLLs' signatures and version information. Signing a DLL after its catalog would change bytes the catalog has hashed. sign-artifacts.ps1 verifies that each signed catalog covers its packaged INF and DLL before packaging. - Tools. The driver builds and signing steps take
stampinf,Inf2Cat,signtool,rc.exe,VhfUm.liband the IddCx stub library from the Windows Driver Kit. The workflow installs the kit when the runner image lacks it. - Unsigned builds. In releases up to 4.7.1 and in every
mainand local build, the catalog is unsigned. Setup'sinstall-local.ps1signs it on the user's PC with a key it deletes at once (see the driver's README, Unsigned packages). - Installing silently. Windows asks before installing a driver from a publisher it doesn't trust yet. For a signed catalog
install-local.ps1adds that exact signer certificate to the machine'sTrustedPublisherstore beforepnputil, as Vibepollo's installer does, and its-Uninstallremoves the certificate again if it added it.
Kernel-mode drivers cannot be signed this way; Windows requires Microsoft's attestation or WHQL signature for them.
Application text #
The form at signpath.org/apply asks for these fields.
| Field | Text |
|---|---|
| Project Name | Rubylight |
| Repository URL | https://github.com/RamazanKara/Rubylight |
| Homepage URL | https://ramazankara.github.io/Rubylight/ |
| Download URL | https://ramazankara.github.io/Rubylight/#install |
| Privacy Policy URL | https://ramazankara.github.io/Rubylight/docs/privacy.html |
| Wikipedia URL | (leave empty) |
| Tagline | A Windows game-streaming host for Moonlight clients, written in Rust, for AMD Radeon and NVIDIA GPUs. |
| Category | The closest to games or multimedia in the list. |
| Maintainer Type | Individual |
| Build System | GitHub Actions |
| First Name, Last Name | Ramazan Kara |
| The address you want SignPath to use. |
Description:
Rubylight streams games and the Windows desktop from a gaming PC to phones, tablets, TVs and other PCs running Moonlight, the open-source GameStream client. It is a GPL-3.0 host written in Rust that began as a fork of Vibepollo, from the Sunshine and Apollo family, and is built around the GPU frame path: screen capture, colour conversion and the hardware encoder of AMD Radeon and NVIDIA GPUs, with HDR, per-device virtual displays, controller and haptics support, and PyroWave for very low latency on local networks. It runs as a Windows service with a web console on the local PC. Releases are built from tagged commits by GitHub Actions on GitHub-hosted runners, with no manual build steps.
We would like to sign because Windows warns about the unsigned installer: SmartScreen stops it with a "Windows protected your PC" warning and Smart App Control can block it outright, which pushes users to turn off protections they should keep. The installer also sets up a Windows service and drivers, so users should be able to see who published what they run. Microsoft Defender's cloud model has quarantined our unsigned service as Trojan:Win32/Bearfoos.A!ml, a false positive we reported to Microsoft, and every new release starts again with no reputation. Rubylight's own virtual display driver (user-mode, IddCx) also needs a trusted signature on its catalog: until it has one, the installer signs the catalog on the user's PC with a self-signed certificate that it adds to the machine's Root store, a trust change we would rather not make and one that fails under Smart App Control and in S mode. A signed catalog removes that step. Rubylight already ships the gamepad driver your Foundation signed for Vibepollo, unchanged, with its original signature.
Rubylight has one maintainer, Ramazan Kara (GitHub: RamazanKara), who writes, reviews and releases the code and will approve every signing request. GitHub and SignPath access use multi-factor authentication. The code signing policy is at https://ramazankara.github.io/Rubylight/docs/code-signing-policy.html.
Reputation (update the numbers on the day you apply; the first three come from gh api repos/RamazanKara/Rubylight/releases and the issue list):
Rubylight's Rust host was first published on GitHub at the end of September 2026, continuing the Butterpollo project, a fork of Vibepollo, whose drivers your Foundation signs. As of 12 November 2026 its 101 releases had been downloaded 10,327 times (8,142 of them the installer or the portable ZIP), and the repository had 159 stars. Its own client, Nightjar, for Android, Windows, Linux and macOS (https://github.com/RamazanKara/nightjar), had 95 releases, 12,423 downloads and 116 stars. 70 different people had reported issues across the two repositories, and three outside contributors had sent pull requests. Users discuss it on Reddit: [add the links to your Reddit posts and the threads quoted in the README]. Rubylight has its own website with documentation (https://ramazankara.github.io/Rubylight/). Since 2.3.0 every release must pass the full test suite and stream tests on real Radeon hardware before it ships, and attaches the results to its release page.
Primary Discovery Channel: your own answer. Vibepollo's SignPath Foundation signing is an honest "exact source".
Names in the workflow #
| Kind | Name | Value |
|---|---|---|
| Secret | SIGNPATH_API_TOKEN |
API token of the SignPath CI user (submitter) |
| Variable | SIGNPATH_ORGANIZATION_ID |
SignPath organization ID |
| Variable | SIGNPATH_SIGNING_POLICY_SLUG |
Release signing policy slug, usually release-signing |
| Variable | SIGNPATH_PROJECT_SLUG |
SignPath project slug; setting it turns signing on |
| Artifact configuration | binaries |
.signpath/binaries.xml |
| Artifact configuration | installer |
.signpath/installer.xml |
| Artifact configuration | driver |
.signpath/driver.xml |
Sources: SignPath Foundation conditions, SignPath's GitHub integration, artifact configuration reference, signing policies, origin verification.