Code signing policy #
Rubylight's Windows releases are signed with the maintainer's code signing certificate for open-source developers, issued by Certum to Open Source Developer Ramazan Kara, starting with the first release after 4.7.1. Earlier releases are unsigned. The certificate's private key stays in Certum's cloud signing service (SimplySign). The release workflow signs in to it with the maintainer's Certum account and its one-time-code secret, stored as GitHub secrets that only the signing job of a run on main or a v* tag can read. Nightjar's Windows installers and nightjar.exe are signed with the same certificate in the same way.
Team roles #
Rubylight has one maintainer, who holds every role.
| Role | What it means | Members |
|---|---|---|
| Committers | May change the source code in the repository without another review. | Ramazan Kara (RamazanKara) |
| Reviewers | Review every change proposed by someone who is not a committer, such as a pull request, before it is merged. | Ramazan Kara (RamazanKara) |
| Releasers | Push the release tag, which builds, signs and publishes the release, deciding whether a build may be released as signed. | Ramazan Kara (RamazanKara) |
Team members use multi-factor authentication for GitHub. Anyone who can push a release tag or change the release workflow can have a build signed, so only the maintainer can. When the team grows, this table is updated before a new member gets any of these roles.
What is signed #
Only files built from this repository's source code by its GitHub Actions workflow (rust-windows.yml) are signed:
- Rubylight's executables and DLLs: the host, its service and start programs, setup (also installed as
uninstall.exe), the diagnostic probes and the Vulkan HDR layer. - The installer that carries them,
rubylight-setup-<version>.exe. - Rubylight's own virtual display and virtual gamepad drivers: their DLLs and catalogs.
Every signed executable and DLL carries the product name Rubylight and the release's version, and the signing script refuses files that don't (sign-local.ps1). The code signing guide describes the setup.
Files from other projects ship as their projects released them and are never signed with Rubylight's certificate:
nefconc.exeand the Playnite plugin from the Vibepollo 2.0.0 release;- the usbip-win2 installer and drivers, bundled unchanged.
The NVIDIA component #
RTX HDR and RTX Video enhancement call NVIDIA's proprietary NGX library and need NVIDIA's nvngx_truehdr.dll and nvngx_vsr.dll, which may not be relicensed under the GPL. No signed file contains them: they ship in a separate, unsigned archive, the NVIDIA component (rust\build.ps1 -Nvidia):
- its own workflow job builds it from the same commit, and another attaches it to the release, as
rubylight-nvidia-component-<version>.zip; neither is signed, and the signed release never waits on them;sign-artifacts.ps1, which chooses the files to sign, names only the signed build's folder and files; - the signed host downloads it only when the user asks on the console, from the release of its own version; it checks the archive against GitHub's SHA-256 digest and NVIDIA's files against digests in the host's source, keeps it outside the signed installation in a folder only administrators may change, and checks every file again before each use;
- the adapter in it (
butterpollo_truehdr.dll, GPL-3.0, built fromrust/truehdr-runtime) is Rubylight's only code that links NGX.
The signed installer and its files contain no NVIDIA code. rust/release/test_release.py checks that the NVIDIA component never reaches signing.
Libraries whose projects publish no signed builds ship unsigned: the Opus DLL and the GCC and winpthreads runtimes from MSYS2, and FFmpeg's avcodec and avutil and the PyroWave library, each built from pinned source. Third-party components lists them all with their licences.
Certificates the installer trusts #
Setup adds certificates to Windows' certificate stores on the PC it installs on. Its first page says so before anything is installed, and uninstalling removes them.
- Rubylight's virtual display and virtual gamepad drivers. Windows installs a driver only from a publisher it trusts. For an unsigned catalog (releases up to 4.7.1, and builds of your own),
install-local.ps1creates a code-signing certificate on the PC, signs the catalog with it, adds the certificate toLocalMachine\RootandLocalMachine\TrustedPublisher, and deletes its private key, which never leaves the PC and cannot be exported. With the key gone, that certificate can sign nothing else, for Rubylight or for anyone else. Every PC trusts only its own. A release's signed catalog is installed as it is: only its publisher certificate (Open Source Developer Ramazan Kara) goes intoTrustedPublisher, so Windows does not ask before installing the driver. Reinstalling replaces the previous certificate, and uninstalling Rubylight removes the certificates and both drivers even when the other drivers stay. (Display driver README, Virtual gamepad driver README) - The local web console. So browsers open
https://localhostwithout a warning, the host makes a root certificate named "Rubylight local console", with a random part of its own so no two hosts' roots share a name, on first start, uses it to issue the console's own certificate, and discards its private key. Setup adds that root toLocalMachine\Root. It is restricted tolocalhost,127.0.0.0/8and::1, may not issue further certificate authorities, and cannot vouch for any other site. Uninstalling removes it.
Drivers from other projects that setup installs come with their own install scripts, which may trust their publishers' certificates in the same way.
How a release is signed #
- Pushing a version tag (
v2.*tov9.*), or the maintainer starting the workflow's release onmain, runs the Windows workflow on GitHub-hosted runners. It builds everything that ships from that commit and tests and lints the same commit in jobs of the same run. Nothing is signed until those pass. - A separate signing job, the only one that can read the signing secrets, takes the built package and installer, logs its runner in to SimplySign (certum-login.ps1) and runs sign-local.ps1. That checks that the installer carries exactly that package, then signs Rubylight's own binaries, then the display driver's catalog, made from the signed driver DLL, then the installer built again from the signed package. Each signature gets a timestamp.
- The script checks every signature, its signer and its timestamp, and that the catalog covers the driver's files. The workflow publishes the release from the signed files only; if any step fails, nothing is published, signed or unsigned.
Pull requests and ordinary pushes to main are never signed. Changes to build scripts and the workflow are reviewed like any other source code, because they decide what gets signed.
Privacy #
Rubylight streams to the devices you pair and announces itself on your local network so Moonlight can find it. Otherwise it transfers information to other networked systems only when the user or the person installing or operating it asks for it, with two exceptions that are on by default. When the host starts and then once a day, or once a day at a set time if one is chosen, it asks GitHub whether a newer release exists; that request carries nothing about you or your PC beyond the IP address any connection reveals, and setting Updates to off turns it off. While the Steam library is on, the host fetches covers missing from Steam's local cache from Valve's image servers, which receive those games' Steam app IDs; turning the Steam library off stops it. The privacy statement lists every connection Rubylight makes, what each one sends, how to turn it off, and the privacy policies of the services involved.
Check a download #
In Explorer, right-click the installer, choose Properties and open Digital Signatures: the signer is Open Source Developer Ramazan Kara, with a timestamp. In PowerShell:
Get-AuthenticodeSignature .\rubylight-setup-<version>.exe | Format-List Status, SignerCertificate, TimeStamperCertificate
Each release also lists the SHA-256 of its files in SHA256SUMS.
Reporting a problem #
If you think a file signed for Rubylight breaks this policy, open an issue or report it to Certum, which issued the certificate.