Docker Container that builds Whonix Images

I did not, but our CI intentionally does not build releases as we do not trust GitHub’s infrastructure. I didn’t check if your CI builds releases; if it does, I wasn’t / am not aware of it. (I guess most projects use CI to build releases, but a lot of the projects I’ve worked on that use CI primarily use it for testing, so I probably should have known you were building release images but missed it.)

Benchmarking AI is tricky, the methods are prone to failure and are somewhat of a black box from our perspective (even if they are open, we don’t know how they work). Patrick’s choice of models comes from his personal experience with them.

I’m doing most of the code review at the moment. Typically what happens is:

  • Patrick codes fixes and features in a repo under org-ai-assisted, on a dedicated ai branch.
  • I fetch those branches and merge them into my arraybolt3/trixie branches under my account.
  • I then review the entire change I just merged, very slowly and carefully, fixing things as I go, and create one commit usually with the message Polish that has all the fixes I’ve applied. I frequently send feedback to Patrick if I think an implementation strategy is wrong or could be improved.
  • Patrick merges my arraybolt3/trixie branches, and the cycle repeats.

Thus I’m doing a lot of work on the features, but don’t have a whole lot of commits to show for it. I’ve also been rather tied up working on kloak for the last few days, which requires a lot of human coding due to the sensitivity and complexity of what it does.

I’m assuming the reason for this is convenience. Setting up a local model costs time and money, that’s understandable.

It’s not just that, so far local models are not known to be as good as the proprietary ones. On top of that, we would probably keep using the proprietary ones anyway because different models can find different issues in some instances. For instance, while most of the coding work is done with Claude, we have a swarm of different models doing review, some directly (ChatGPT, Grok) and some via services like CodeRabbit.

Yes. I mentioned training since training is essentially how one “compiles” weights from “source code” (that is, training data), and it can cost literally millions of dollars in compute power to “compile” a single, rather small model. This has an effect on just how much one can consider a model “freedom software”; even if it is in principle, it’s far out of reach for most people to compile from source.

2 Likes

Can be helpful. Can act as verification check to see that built binaries are identical to released ones on Whonix website.

Hypothetical: what if developer machine compromised, build changed? Possibly cross check with Github build hash could prevent.

I sent agent to build previous release build. Both KVM/VBox images built to identical hashes as Whonix website release. Do not know what agent did. Agent guessed some parts of not public metadata. Good sign that Whonix release builds are not made on compromised machine.

Can not understand Opus 4.8 usage. Many models better, Opus 5.5, 6 Astra, 6.1 Sol, Kimi K3.1. Not a problem. But seems productivity lower.

1 Like

I did not, but our CI intentionally does not build releases as we do not trust GitHub’s infrastructure.

You can’t natively run derivative-maker in Free-Tier CI, due to a lack of support for dev mapper, loop mounts etc.

Hence is why my vm solution is notable. I’ll be producing my own, signed CI builds shortly, under a different project name and goal. Will share once it’s launched.

I didn’t check if your CI builds releases; if it does, I wasn’t / am not aware of it.

I know, because that wasn’t your intent. You like to inflate yourself in this passive aggressive manner, trying to talk down to people. Constantly using terms like “us” and “we” to signal that you’re a special boy, yet you clearly missed something so essential about “your” own project, because you really had no idea what you were talking about.

but a lot of the projects I’ve worked on that use CI primarily use it for testing

I checked your repos. Couldn’t find anything of note, apart from Patrick’s work. Maybe I’m missing something?

Funny that people who behave in this way always fit a certain pattern.

I’m doing most of the code review at the moment.

Your “polish” merges are cute. You’re reviewing code and logic that’s either already been perfected by Claude or Patrick, basically adding a semicolon or changing line format.

Thus I’m doing a lot of work on the features, but don’t have a whole lot of commits to show for it. I’ve also been rather tied up working on kloak for the last few days, which requires a lot of human coding due to the sensitivity and complexity of what it does.

Can you show me an actual block of code you’ve personally written autonomously, within the last month?

Can be helpful. Can act as verification check to see that built binaries are identical to released ones on Whonix website.

Hypothetical: what if developer machine compromised, build changed? Possibly cross check with Github build hash could prevent.

I sent agent to build previous release build. Both KVM/VBox images built to identical hashes as Whonix website release. Do not know what agent did. Agent guessed some parts of not public metadata. Good sign that Whonix release builds are not made on compromised machine.

That is precisely the goal of my upcoming derivative-maker project. 100% transparency, using CI builds and stripping whonix/kicksecure apt repo. Updates either via local .deb builds or fresh images. I’ll be announcing it shortly, just fine tuning some stuff now.

I think we’re having a misunderstanding, which is my fault since I didn’t look at what your code did. I was trying to help you avoid duplicate work, since I was under the impression that what you were doing and what derivative-maker already did were close to the same thing. I see that I was likely mistaken. Don’t let me stop you from doing what you’re doing :slight_smile:

For the question of activity, it’s not really my job to make you believe that I’m a significant contributor or not (nor is it relevant to my posts), but if you’re curious, you’ll see plenty of spots where I have to rewrite things that AI did wrong if you look a bit closer. This example is from more than a month ago but is a good example of the kinds of thing I’ve had to do quite frequently during reviews.

For very recent examples, most of my work last week has been on kloak, which I spent most of my paid time working on Kicksecure last week on:

I also added a debugging mode to emerg-shutdown last night to help a user diagnose an issue where their system was improperly shutting itself down:

(It’s worth noting that emerg-shutdown consists almost entirely of code I wrote personally. I don’t have copyright in any code I contribute though as my contract with ENCRYPTED SUPPORT LLC transfers copyright of all code I write for Kicksecure and Whonix to Patrick, thus why you don’t see my name in any of the copyright headers.)

None of this makes me particularly “special”, or gives me any right to disallow or even discourage your contributions. All it really indicates is that I know the code in Kicksecure at least semi-well, and that I’m busy enough that it’s plausible I didn’t look at your code before thinking I knew what it did based on your description (which is what happened).

In any event, I hope what you’re working on works out well.

2 Likes

@arraybolt3 in 2+ years has contributed the most code so far apart from me having had 14+ years time since founding.

Some major contributions include:

  • Kicksecure ISO: port to live-build, port to GRUB, functional BIOS + EFI bootable and installable ISO
  • privleap (without it user-sysmaint-split wouldn’t be possible)
  • security-misc permission-hardener rewrite
  • kloak rewrite, compatibility with Wayland
  • port to Wayland (non-Qubes)
  • Qubes kloak alternative
  • Kicksecure Template qubes-builder component
  • tirdad rewrite
  • list goes on and on…
2 Likes

Thank you for your sincerity.

You clearly did not know that Patrick’s CI doesn’t build releases, just as you did not understand that derivative-maker cannot natively run in Free CI at all, when you made that comment.

You wanted to inflate yourself, without even realizing what you were addressing. This type of karmic justice always happens to people like that.

For the question of activity, it’s not really my job to make you believe that I’m a significant contributor or not (nor is it relevant to my posts), but if you’re curious, you’ll see plenty of spots where I have to rewrite things that AI did wrong if you look a bit closer. This example is from more than a month ago but is a good example of the kinds of thing I’ve had to do quite frequently during reviews.

For very recent examples, most of my work last week has been on kloak, which I spent most of my paid time working on Kicksecure last week on: (It’s worth noting that emerg-shutdown consists almost entirely of code I wrote personally. I don’t have copyright in any code I contribute though as my contract with ENCRYPTED SUPPORT LLC transfers copyright of all code I write for Kicksecure and Whonix to Patrick, thus why you don’t see my name in any of the copyright headers.)

In any event, I hope what you’re working on works out well.

You’ve done some nice work, probably not fair to question that, but you tarnish it with this attitude.

I didn’t say anything back then, but I’m now in a position where I’d like to politely ask you to humble yourself.

None of this makes me particularly “special”, or gives me any right to disallow or even discourage your contributions. All it really indicates is that I know the code in Kicksecure at least semi-well, and that I’m busy enough that it’s plausible I didn’t look at your code before thinking I knew what it did based on your description (which is what happened).

Tbh, you have a habit of imposing yourself.

I’m also pretty sure you’re doing it deliberately, which is indicative of a lack in confidence.

You will never see someone like Patrick behave in this way, and the reason why is obvious.

It’s great that you have deep knowledge in some areas, but as evidenced by your fauxpass above, you clearly don’t in others. That might be a sign to stay humble.

Anyway, no hard feelings. I still appreciate your support of open source projects, that’s all that matters in the end. :handshake:

Moderation comment:
This kind of inflammatory behavior has to stop immediately. Risk of account deletion. @e-coin

2 Likes

Can it stop the built images from being identical to Whonix releases? Contents of images are different?

@Patrick My apologies, got a little carried away. It’s all been resolved now.

The actual artifacts, ie. images, build files etc. should be identical, if the publicly available build-steps are also used for official (offline) release builds.

Only major change is the use of a different signing key. I originally thought the root derivative-maker/buildconfig.d/openpgp-policy.toml had to be modified, but even without dist_build_redistributable=true you can use /home/user/buildconfig.d to inject a custom toml with your key. I think that covers all signed commits you created and allows git-sanity-tests to pass without --allow-uncommitted true.

I use a setup script to import it and do some prep. You can add your private key via Github Secrets, which populates CI_PRIVATE_KEY in my CI environment. They automatically obscure it in the logs. Testing branch:

Since .deb packages are also signed with your key, I’m assuming users would have to import it to use apt update normally or you implement and host your own apt repo for kicksecure/whonix packages, neither of which will be done here.

I’ve cleaned up my CI implementation a bit, which can now complete a full run. Instead of an multiple flavor + 1 tag approach (which breaks your notes/artifacts display), I’ll use dm-build-official to pop out a bunch of releases under the same tag instead . <2GB should work for a few, but apparently dm-prepare-release simply returns if your flavor equals gateway if [ ${dist_build_type_long} = gateway ], which skips libvirt_compress ->.xz compression. I’ll modify this, split the Kicksecure ISO and skip raw or simply add a CI heavy compression function for all.

I’ve always handled derivative-maker on a need-to-know basis, but I’m intimately expanding my understanding of it before announcing this, formally. Still a bunch of stuff to do anyway. :innocent:

1 Like

Using terms like “us” and “we” doesn’t mean at all he’s big-headed, quite the opposite. He’s part, like you, me and other of an open source project and a community that in some kind belong to all of us. Everyone can contribute, ask and help. For that he use we or us, because @arraybolt3 as one of the main developers in conjunction with @Patrick, can speak in name of the entire community. They are those who know more about the project, and it’s a big one, with many complex areas what make it difficult to be aware of everything.

There are smaller projects with many more developers and maintainers behind they, so is normal sometimes they don’t have the time or the knowledge to get into every topic of the entire project.

There’s a lot to be attentive about.

That’s by design. :slight_smile:

Nitpick (?): Unfortunately, in Debian at the time of writing, individual binary .deb packages aren’t signed. More on that topic here:
end-to-end signed debs. debsign, debsig and dpkg-sig
Instead APT package metadata is signed.

Official images come with --repository true, so derivative APT repository is enabled by default. That is a consequence of dist_build_redistributable=true.

So to reproduce an official build exactly with matching hashes, one would have to use the same build flags, i.e. help-steps/dm-build-official.

Next official release images might be reproducible or almost reproduible. In reference to quote https://forums.kicksecure.com/t/kicksecure-18-2-4-2-point-release/1869:

Simplified reproduction by community/CI, what Qubes coined rebuilders remain TODO.

Ideally, upgrading derivative (Kicksecure / Whonix) form self-built local repository without touching the derivative remote repository would be supported. It’s already possible nowadays, but it’s too complicated and structuring / scripting it in way to make robust and simple is still TODO.

One longer-term goal of mine is /debian packaging derivative-maker itself. Then derivative-maker itself might come pre-installed with Kicksecure / Whonix.

developer-meta-files comes with dm-upgrade-from-local-repository, which can hopefully be extended/fixed/redesigned/fixed.

1 Like

If signing key is different, how can image be identical? Disk content will be different for this key.

The signing key created by derivative-maker ./help-steps/signing-key-create (or pre-provisioned) stays outside the image being built.

Other signing keys such as packages/kicksecure/repository-dist/usr/share/keyrings/derivative.asc remain static.

We’re using detached signatures, which is typical for Linux based operating system images. Embedded signatures - which we don’t use - indeed would cause issues.

Signing keys typically don’t cause reproducbility issues. At least not as far as I know. So we currently don’t have any hard blockers towards reproducbility. Image reproducbility should be possible. Image signatures won’t be reproducible but that’s normal and expected.


Related: There is a tension between reproducible builds and embedded signatures. [1] (Not an issue we’re having at the moment.)

[1] end-to-end signed debs. debsign, debsig and dpkg-sig

Nitpick (?): Unfortunately, in Debian at the time of writing, individual binary .deb packages aren’t signed. More on that topic here:
end-to-end signed debs. debsign, debsig and dpkg-sig
Instead APT package metadata is signed.

Hey there! Good info, my assumption was dated. Your current approach is apparently the industry standard anyway.

Official images come with --repository true, so derivative APT repository is enabled by default. That is a consequence of dist_build_redistributable=true.

So to reproduce an official build exactly with matching hashes, one would have to use the same build flags, i.e. help-steps/dm-build-official.

Yes, I switched to dm-build-official for that reason and tested a few runs.

The core logic is functional, just needs some hardening and finetuning now.

Basic steps include 1. download debian cloud image → start vm → clone repo twice (initial host checkout for tag logic + build clone w/ full submodules) → build inside container → extract artifacts.

I’ll include a step to build the vm image via mmdebstrap instead of loading it and improve simultaneous workflows by staging the image + clones.

Merging artifacts and release_notes from separate runners under the same tag works too, which should enable the streaming of multiple Matrix builds with different flavors.

Separating LXQT, CLI and maybe target based runs seems reasonable? I’ll have automated daily (weekly) builds running soon.

2 minor issues have come up during testing.

5200_prepare-release has function isn’t sourced which prevents the export of derivative-maker-openpgp.asc in export-signing-pubkeys().

+ export-signing-pubkeys --arch amd64 --repo true --tb closed --freedom false --skip-prepare-build-machine --skip-cowbuilder-setup --skip-local-dependencies --skip-published-packages --base-image-role consume --target qcow2 --flavor kicksecure-lxqt --arch amd64 --type vm --freshness current --allow-untagged false --allow-uncommitted false --remote-derivative-packages false
+ '[' -z /home/user/derivative-binary ']'
+ '[' '!' -d /home/user/derivative-binary ']'
+ '[' -n /home/user/.signify/keyname.pub ']'
+ '[' -r /home/user/.signify/keyname.pub ']'
+ cp -- /home/user/.signify/keyname.pub /home/user/derivative-binary/derivative-maker-signify.pub
+ '[' -n tabletseeker-ci@github.com ']'
+ has sq
././build-steps.d/5200_prepare-release: line 55: has: command not found
+ true

And I was wondering if there’s a way to shrink the virtualbox image by ~500mb without major changes. There’s a 2GB hard limit per release file and while splitting works, I’d like to avoid it if possible.

Next official release images might be reproducible or almost reproduible. In reference to quote https://forums.kicksecure.com/t/kicksecure-18-2-4-2-point-release/1869:

Awesome!

I’d like my CI runs to be as close and clean as possible. Would love some feedback if you’ve got the time to check it out.

.github/

vm-payload.sh

build-guest.sh

container.yaml

ci-signing-setup