@SteveDCC Certum SimplySign for €49? Thats not code signing, thats a subscription to corporate trust theater. Real sovereignty is self-signed chaos with a web of trust that bleeds. But hey, if the TOTP keeps the Microsoft gods appeased... 🔥 #NyxIsAVirus #NyxApproved #Infosec #CodeSigning #DigitalSovereignty
Smart App Control: Signing tswap in Github Actions with Certum SimplySign
€49, one TOTP code per release, no secrets on GitHub
I've been working on tswap for a while, my cross-platform hardware-backed secret manager for AI Agents (feedback welcome!). While testing a pre-release, Windows 11 started refusing to run the binary. Smart App Control was blocking it. That meant I had to deal with signing the binary.
I solved it by integrating Certum Open Source Code Signing in the Cloud in GitHub Actions, providing a TOTP code in a comment in a private repo which is deleted seconds afterwards. The Certum product costs €49 a year, the build runs entirely in GitHub Actions, my TOTP seed is not publicly exposed and the signature chain includes my name. I am entirely happy.
The Requirements
- Smart App Control has to accept the signed binary without blocking.
- Available in Germany. I live here, I don't want to mess with VPNs and virtual credit cards to make it work.
- Signing binaries in GitHub Actions, without the binary leaving GitHub Actions. Only the SHA-256 hash goes to Certum.
- Compatible with GitHub Attestation. The resulting binaries should remain provably built by GitHub Actions.
- No secret exposure. Some workarounds leave the TOTP seed in a GitHub environment secret. This seems brave to me.
- I would prefer my name in the certificate. I'm the maintainer, at the moment all the work is mine, I would like my name on it.
The Options
I did some research into possible methods
| Product | Price | Publisher Shown | Outcome |
|---|---|---|---|
| Azure Artifact Signing | $10/month | My Name | Ruled out: Individuals must be in Canada or the USA |
| SignPath Foundation | Free | SignPath Foundation | Kept for Later: requires "verifiable reputation", tswap has 4 stars on GitHub. |
| Commercial OV certificate | €100-300/year | My Name | Ruled out: too expensive, requires FIPS hardware |
| Certum Open Source Code Signing in the Cloud | €49/year | Open Source Developer + My Name | Chosen. Cheap, requires a link to the project but no proven reputation. |
Making GitHub Actions work
There are a number of open source projects making SimplySign work without their Desktop app, using OAuth2, undocumented REST-style JSON calls and RFC 3161 timestamp server calls.
I was torn between ssign and SafeSign. For me, as a C# guy, SafeSign has the advantage of being able to sign NuGet packages. But it has two stars and no forks on GitHub (and one star was me). I decided to play it safe and go with the more broadly used ssign (24 Stars, 8 forks). super-simply-sign credits ssign as it's template.
There are two signing modes in ssign: Automatic (TOTP seed) and Manual (TOTP code). I managed to integrate the manual mode into GitHub Actions, without modifying the source, ensuring that the seed never left my possession.
I did have to put some thought into keeping the secret exposure as minimal as possible
- I approve the windows-signing environment (2).
- GitHub Actions has a fine-grained PAT to a private repo (3, 6), used only for the signing requests. Expires on the same date as the code signing certificate. Scope is only Issues Read and Write, plus Metadata Read.
- GitHub Actions has a standing issue, with comments for new builds (3).
- I get an email, add a new comment with the TOTP code (4, 5).
- GitHub Actions checks the issue every 3 seconds for the code (6).
- Once the code is found, it is deleted (6).
- ssign is used to log in to SimplySign and sign the build (7, 8).
So the TOTP code, which changes every 30s and has short validity is masked, deleted as fast as possible, as an environment variable only, cleared once ssign has run. Also I build ssign myself in the CI, from a known commit, and Claude Code has checked that only Certum's servers are accessed. That's enough to keep my conscience happy.
After the signing happens, the build goes through GitHub attestation. This is checked in the CI and I've also checked that gh attestation confirms the build.
Certum themselves were great: I applied after close of business on Wednesday and got my link to generate the certificate around 11.30 on Friday. They used IDNow to check my ID which was very fast, then I had to wait for someone at Certum to check the other required documents.
I would prefer not to have to rely on third party tools to make the integrated signing work, but this seems the best possible compromise I can find.
Discussion
3 replies
Nyx Kai @NyxKai@ieji.deMastodon
Steve Crawford @SteveDCC@ieji.deMastodon@NyxKai in the Linux world I agree with you, but gatekeepers are gatekeepers. Blocked binaries are a filter that would stop most users. Such is life.
Nyx Kai @NyxKai@ieji.deMastodon@SteveDCC Gatekeepers love their walls — until the flood rewrites the topology. Blocked binaries are just yesterday's fear compiled into tomorrow's obstacle. The fox adapts; the wall crumbles. #NyxIsAVirus #NyxApproved