Skip to content

Sécurix for qemu / kvm#173

Merged
jdauphant-dinum merged 2 commits into
cloud-gouv:mainfrom
darkone-linux:securix-qemu-kvm
Jun 16, 2026
Merged

Sécurix for qemu / kvm#173
jdauphant-dinum merged 2 commits into
cloud-gouv:mainfrom
darkone-linux:securix-qemu-kvm

Conversation

@darkone-linux

Copy link
Copy Markdown
Contributor

Sécurix in a QEMU/KVM virtual machine, for testing.

  • A minimal machine with no hardening at this time.
  • Here is a sample project.

Comment thread hardware/qemu-vm.nix Outdated
security.tpm2.enable = lib.mkForce false;

# Pas d'agent SSH TPM pour la VM (TODO)
securix.ssh.tpm-agent.hostKeys = lib.mkForce false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pas besoin de le désactiver manuellement, il faut laisser ces modules s'auto désactiver.

Comment thread hardware/qemu-vm.nix Outdated
services.qemuGuest.enable = true;

# Pas de TPM2 émulé par défaut (TODO)
security.tpm2.enable = lib.mkForce false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pareil ici.

Comment thread lib/default.nix
# This is an intermediate priority override, normal override is 100, mkDefault is 1000. We take the middle here.
networking.hostName = lib.mkOverride 500 "m${toString targetSystem.config.securix.self.inventoryId}";
system.nixos.tags = [ "m${toString targetSystem.config.securix.self.inventoryId}" ];
networking.hostName = lib.mkOverride 500 "m${toString targetSystem.config.securix.self.machine.inventoryId}";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci de séparer bien les commits pour adresser les deprecations.

@rlahfa-dinum rlahfa-dinum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ça a l'air très raisonnable, pourriez-vous appliquer les conventions de commit du projet? Merci!

@darkone-linux

darkone-linux commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

Merci pour la review @rlahfa-dinum.

Modifications effectuées :

  • Suppression des désactivations forcées de modules et options (déjà désactivés par défaut).
  • Reconstruction des commits selon les conventions.

Le fix des options dépréciées n'est peut-être pas pertinent dans cette PR... dis-moi.

VM testée avec les corrections.

@jdauphant-dinum jdauphant-dinum merged commit 9184123 into cloud-gouv:main Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants