Documentation
Set up network unlock
Choose a guide for your encrypted drive, then check that both automatic unlock and recovery work.
SETUP GUIDES
Keep encryption. Make restarts easier.
Choose a guide for Linux or Windows. Linux uses Clevis with a Tang-compatible service; Windows uses the separate BitLocker Network Unlock protocol. Keep a manual recovery method for every drive.
Before you start: These Debian 13 and Windows administrator guides include commands that change disk and boot configuration. Replace every ALL_CAPS placeholder, keep current backups and have a local console available before changing boot-time unlocking. Helper scripts aren’t included yet. Read through the commands below before running them.
How it works and what to consider
Linux: Clevis binds a LUKS unlock to Tang. Tang does not store the disk passphrase, but its private server keys enable the unlock exchange. Anyone with a copy of a server key may be able to preserve that unlock route, so protect the keys carefully.
Windows: BitLocker Network Unlock uses a server private key that matches the public certificate enrolled on the client. This enables the network unlock exchange; it is separate from the client’s recovery password. The prototype tests described below used Tang service private keys and a separate BitLocker Network Unlock server private key stored in software and plaintext, with keys also present in software RAM during use. Neither service persistently retains client disk keys. These tests do not establish how production keys will be protected.
The release requirement is that private root secrets are generated and kept on the device, without a manufacturer or support copy. Production provisioning, secure boot, flash protection and the update process still need verification. The prototype tests above do not establish those protections; the intended management choices are described below.
Placement and access: keep the appliance apart from the protected computer. If someone gets both, they may be able to unlock the drive. A VPN, routed connection or reachable offsite service can also make the appliance reachable from beyond your premises, so limit access to the networks you intend. Losing the appliance does not lock a computer that is already running and unlocked. This setup does not guarantee protection from government access or a targeted attacker.
Recovery and loss: keep independent backups and a recovery method you have tested. If the appliance is the only unlock route, losing or destroying it may permanently cut off access. That is not guaranteed cryptographic erasure: other protectors, server-key copies, disk or header backups, plaintext backups, or keys in RAM may still allow access. Do not remove recovery methods to try to make destruction irreversible.
DIY alternatives: a Raspberry Pi or other Linux server can run Tang for Clevis clients. Microsoft’s documented Windows deployment uses Windows Deployment Services. Public Windows projects to investigate include JNKPU and nu-armory. These alternatives haven’t been tested for this product. Check their licences, requirements and limitations; JNKPU also raises possible Microsoft Network Unlock patent concerns. The aim with nūklatch is to make the hardware, setup and support more convenient. Its Windows appliance route is still experimental.
Local or account-based management
The options below describe the release plan. Hosted account linking and MQTTS management are not live yet.
For account-based setup, join Wi-Fi through the device’s setup access point, then link it to your account. The website configures it over MQTT with TLS encryption (MQTTS). Over-the-air firmware updates are opt-in. Local disk unlocking must continue without the account service.
For local-only use, leave the device unlinked and configure it through its setup Wi-Fi or local HTTPS page. The latter uses a self-signed certificate. You won’t use the hosted setup page, and you’ll install updates manually over USB.
The release requires private root secrets to be generated and kept on the device, with no manufacturer or support copy. Online management must not upload them. You still need to trust the firmware you install and any management service you enable.
The setup access point and laboratory update paths have been tested. Account linking, MQTTS management, local HTTPS and the manual USB updater still need implementation or release testing. The USB updater can use Espressif’s browser flashing tools. Production tests must cover firmware authentication, preservation of keys and recovery from interrupted updates.
See the FAQ for theft, recovery, upgrades and network layout.
Linux & Proxmox
Start with the appliance’s reachable Tang URL and independently verified signing-key thumbprint. Obtain that public thumbprint from the appliance’s trusted setup display or administrator; accepting the first key seen over the same network does not verify its identity. Network access to Tang is an unlock condition, so scope access to your intended client network.
1 · Add network unlock to an existing LUKS drive
Prerequisites: Debian 13, sudo, an existing LUKS1/2 container, a working recovery passphrase, reachable Tang service, and a spare keyslot. This adds a Clevis keyslot; it does not encrypt an unencrypted drive.
Identify the drive and add the binding
- Identify the outer LUKS device, not its open filesystem or LVM logical volume. Set an existing private backup directory on separate protected storage. The header backup is sensitive: it can preserve access through an old passphrase after later keyslot removal.
lsblk -o NAME,PATH,SIZE,TYPE,FSTYPE,MOUNTPOINTS,MODEL,SERIAL
findmnt /
LUKS_DEVICE='/dev/disk/by-id/REPLACE_WITH_LUKS_DEVICE_OR_PARTITION'
HEADER_BACKUP='/REPLACE_WITH_PRIVATE_OFF_DEVICE_DIRECTORY/luks-header.img'
sudo cryptsetup isLuks "$LUKS_DEVICE"
sudo cryptsetup luksDump "$LUKS_DEVICE"
sudo cryptsetup open --test-passphrase "$LUKS_DEVICE"
sudo cryptsetup luksHeaderBackup "$LUKS_DEVICE" --header-backup-file "$HEADER_BACKUP"
sudo chmod 600 "$HEADER_BACKUP"
Stop if identification or the manual passphrase test fails. Preserve the original recovery keyslot.
- Install the client and bind to the verified service. Enter the existing LUKS passphrase at the prompt. Do not use automatic trust acceptance.
sudo apt update
sudo apt install clevis clevis-luks cryptsetup
sudo clevis luks bind -d "$LUKS_DEVICE" tang \
'{"url":"http://TANG_HOST:TANG_PORT","thp":"VERIFIED_SIGNING_KEY_THUMBPRINT"}'
sudo clevis luks list -d "$LUKS_DEVICE"
- Record the actual Clevis slot shown above. Test network-derived key recovery without displaying that key or opening a second mapping.
CLEVIS_SLOT='REPLACE_WITH_RECORDED_CLEVIS_SLOT'
set -o pipefail
sudo clevis luks pass -d "$LUKS_DEVICE" -s "$CLEVIS_SLOT" |
sudo cryptsetup open --test-passphrase --key-file - "$LUKS_DEVICE"
A successful exit shows that the binding works. For a root drive, you still need to test networking during early boot.
For an existing data drive
Keep its existing mapping name and UUID in /etc/crypttab, and its mount in /etc/fstab. Install the late-boot unlocker and enable its password-request watcher. For network-dependent data volumes, use the appropriate _netdev ordering; decide whether an unavailable drive may be skipped with nofail.
sudo apt install clevis-systemd
sudo systemctl enable --now clevis-luks-askpass.path
# Example /etc/crypttab entry; replace UUID, preserve your existing mapping name:
# data_crypt UUID=REPLACE_WITH_LUKS_UUID none luks,_netdev
For a closed, unmounted data volume, sudo clevis luks unlock -d "$LUKS_DEVICE" -n data_crypt opens it using the binding. Never close a mounted or busy mapping to test this.
For an existing system/root drive
Follow the early-boot steps in guide 3 below. Root unlock needs networking inside the initramfs, before your normal network manager starts.
Test recovery or remove network unlock
When you can safely restart the machine, boot once with the service available and once with that client’s service path unavailable. Confirm the manual passphrase still boots the machine, then restore connectivity. An offline network can add a DHCP retry delay. To remove network enrollment, first retest manual recovery, then remove only the Clevis slot you recorded:
sudo cryptsetup open --test-passphrase "$LUKS_DEVICE"
sudo clevis luks list -d "$LUKS_DEVICE"
sudo clevis luks unbind -d "$LUKS_DEVICE" -s "$CLEVIS_SLOT"
# For a root volume, also regenerate installed initramfs images:
sudo update-initramfs -u -k all
References: Clevis bind, boot unlockers, unbind.
2 · Create a fresh encrypted Linux data drive
Prerequisites: a backed-up, unused disk or pre-created empty partition, Debian 13, sudo, and a place to store a new recovery passphrase independently of this machine.
Choose the destination drive
lsblk -o NAME,PATH,SIZE,TYPE,FSTYPE,MOUNTPOINTS,MODEL,SERIAL
findmnt /
swapon --show
DATA_DEVICE='/dev/disk/by-id/REPLACE_WITH_EMPTY_DATA_DEVICE_OR_PARTITION'
readlink -f "$DATA_DEVICE"
lsblk -o NAME,PATH,SIZE,TYPE,FSTYPE,MOUNTPOINTS "$DATA_DEVICE"
sudo wipefs --no-act "$DATA_DEVICE"
Destructive next step: luksFormat replaces encryption metadata and mkfs.ext4 creates a new filesystem. Confirm the resolved device, model, serial and capacity against the physical destination. Check the entire disk and its child partitions: none may be mounted, swap, an active RAID/LVM member, or your boot disk. If any existing data matters, stop and back it up. These commands do not migrate existing files.
sudo apt update
sudo apt install cryptsetup clevis clevis-luks clevis-systemd
sudo cryptsetup luksFormat --type luks2 "$DATA_DEVICE"
sudo cryptsetup open "$DATA_DEVICE" data_crypt
sudo mkfs.ext4 -L encrypted-data /dev/mapper/data_crypt
sudo mkdir -p /srv/encrypted-data
sudo mount /dev/mapper/data_crypt /srv/encrypted-data
sudo cryptsetup luksUUID "$DATA_DEVICE"
sudo blkid /dev/mapper/data_crypt
Choose a strong recovery passphrase interactively and store it in your password manager. Save a protected LUKS header backup using guide 1. Add these entries once, substituting the two different UUIDs just reported; sudoedit /etc/crypttab /etc/fstab lets you preserve existing entries.
# /etc/crypttab — outer LUKS UUID:
data_crypt UUID=REPLACE_WITH_LUKS_UUID none luks,_netdev,nofail
# /etc/fstab — inner ext4 filesystem UUID:
UUID=REPLACE_WITH_EXT4_UUID /srv/encrypted-data ext4 defaults,_netdev,nofail 0 2
nofail allows boot to continue without this data drive. Services using the mount must require it explicitly, so they cannot write into the empty underlying directory when unlock fails.
Now use guide 1’s bind and key-recovery test with LUKS_DEVICE="$DATA_DEVICE", then enable clevis-luks-askpass.path. Verify the mount after an online boot with findmnt /srv/encrypted-data and perform a controlled offline/manual recovery test.
Test recovery or remove network unlock
When closed, unlock manually with sudo cryptsetup open "$DATA_DEVICE" data_crypt, then mount it normally. Remove just its Clevis binding using guide 1 to return to manual unlocking; this keeps data encrypted. Undoing the format requires restoring your backup, not an unbind command.
Reference: cryptsetup luksFormat and its data-loss warning.
3 · Install Debian with encrypted root · including Proxmox VE
Prerequisites: a backed-up installation target, verified Debian installer, local console/rescue media, recovery passphrase and a wired network usable during early boot. Installing the OS erases the selected destination.
Install Debian, then add network unlock
- Boot the official Debian 13 installer. Select Guided — use entire disk and set up encrypted LVM, choose the correct disk, inspect its proposed partition layout, then commit changes. Keep the recovery passphrase. This encrypts root/data inside LUKS; the EFI System Partition and normally
/bootremain outside it. It is not encryption of every sector. - Boot manually once and verify
findmnt /andlsblk -f. Use guide 1 to enroll the outer LUKS partition without removing its recovery slot. - Install early-boot integration. Discover your actual wired interface with
ip -br link; do not copy an interface name from another machine.
sudo apt install clevis-initramfs cryptsetup-initramfs
ip -br link
sudoedit /etc/initramfs-tools/initramfs.conf
# Set these values for your actual early-boot interface:
# DEVICE=REPLACE_WITH_WIRED_INTERFACE
# IP=:::::REPLACE_WITH_WIRED_INTERFACE:dhcp
sudoedit /etc/default/grub
# Append this inside the existing GRUB_CMDLINE_LINUX value, retaining other options:
# ip=:::::REPLACE_WITH_WIRED_INTERFACE:dhcp
sudo update-initramfs -u -k all
sudo update-grub
These commands target Debian’s initramfs-tools and GRUB. Dracut, systemd-boot, bonded/VLAN interfaces and unusual firmware need their own configuration. Ensure the NIC driver is available in the initramfs and the Tang hostname resolves there; a working network after login is insufficient. DHCP reservations are preferable for durable hosts.
- Inspect the generated image with
lsinitramfs /boot/initrd.img-$(uname -r)for Clevis, cryptsetup and your NIC driver; ensure no recovery key file was embedded. Reboot with console access. Verify encrypted root mounted without entering its passphrase. - Test the client offline at a scheduled restart. Supply the recovery passphrase, verify root mounted, restore the original network path, and verify an unattended boot again.
Proxmox VE path
Use the documented Proxmox VE installation on Debian 13 route after Debian’s encrypted root and fallback work. Do not assume the Proxmox ISO offers Debian’s guided encrypted-LVM installation. Follow the current Proxmox instructions for hostname, durable address, official repository/key, kernel and platform packages; do not paste a repository key or network identity from a lab fixture.
After installing the Proxmox kernel, rebuild its initramfs, retain a known-working kernel for recovery, and repeat online/offline boots before adding guests or joining a cluster. If using a different boot manager or proxmox-boot-tool, follow its documented synchronization procedure. Encrypted host root protects only guest storage actually placed inside that encrypted storage boundary.
Test recovery or remove network unlock
Keep console access and the working kernel. A failed network boot should leave a passphrase prompt; use recovery and correct the early network configuration. Remove Clevis using guide 1 and regenerate every installed initramfs to return to manual unlocking.
References: Debian installer partitioning, Clevis early-boot integration, Proxmox Debian installation.
Windows & BitLocker
Network Unlock applies to the operating-system volume, with a TPM, TPM+PIN fallback and wired UEFI DHCP support. It is separate from BitLocker data-drive auto-unlock. A working Windows network adapter does not establish that its preboot firmware supports this flow.
4 · Enable BitLocker and keep offline recovery
Prerequisites: an edition with BitLocker management, supported TPM/UEFI configuration, administrator PowerShell, current backup, and a protected recovery destination outside this PC. Check organizational policy first.
Set the policy and enable BitLocker
In gpedit.msc, go to Computer Configuration → Administrative Templates → Windows Components → BitLocker Drive Encryption → Operating System Drives. Enable Require additional authentication at startup and allow startup PIN with TPM. For the intended network-gated behavior, do not leave a separate TPM-only protector as an alternate automatic unlock path.
Get-Tpm | Select-Object TpmPresent,TpmReady
Get-BitLockerVolume -MountPoint 'C:' |
Select-Object MountPoint,VolumeStatus,EncryptionPercentage,ProtectionStatus
# For an unencrypted OS volume only; PIN stays out of command history:
$Pin = Read-Host 'Choose your startup PIN' -AsSecureString
Enable-BitLocker -MountPoint 'C:' -TpmAndPinProtector -Pin $Pin | Out-Null
Add-BitLockerKeyProtector -MountPoint 'C:' -RecoveryPasswordProtector | Out-Null
This retains the BitLocker hardware test rather than skipping it. Before restarting, use the BitLocker Control Panel’s Back up your recovery key action to save the generated recovery password to your approved off-device destination. Confirm you can retrieve it. Do not paste it into this site, logs or support chats. Then restart, complete the hardware test and allow encryption to finish.
Get-BitLockerVolume -MountPoint 'C:' |
Select-Object MountPoint,VolumeStatus,EncryptionPercentage,ProtectionStatus
(Get-BitLockerVolume -MountPoint 'C:').KeyProtector |
Select-Object KeyProtectorId,KeyProtectorType
Expect fully encrypted, 100%, protection on, TPM+PIN and recovery protectors. The restricted output above omits recovery passwords. Already encrypted? Keep the current encryption: add missing fallback protectors using guide 6 rather than running enable again.
References: Enable-BitLocker, recovery backup operations.
5 · Add or remove BitLocker Network Unlock
Prerequisites: guide 4 complete, verified recovery backup, TPM+PIN, wired UEFI DHCP, and the appliance’s public DER certificate obtained through a trusted setup path. Compare its identity independently. Only the public certificate goes to clients; never export the appliance private key.
Choose your deployment route
Microsoft-supported domain route: Microsoft documents AD domain policy with Windows Deployment Services and the Network Unlock server feature. Enable Allow Network Unlock at startup in the client OS-drive policy. In Group Policy Management, import the public certificate at Computer Configuration → Policies → Windows Settings → Security Settings → Public Key Policies → BitLocker Drive Encryption Network Unlock Certificate. Deploy only one certificate, apply policy and reboot. The protector is created after policy activation.
Nuklatch prototype/workgroup route: the isolated test used local FVE_NKP public-certificate policy with the appliance replacing the WDS protocol provider. This is experimental interoperability, not Microsoft’s supported WDS topology. The following is for a fresh lab client with no existing Network Unlock certificate policy; an existing or domain-managed deployment needs a reviewed certificate transition.
# Elevated PowerShell. Review the public certificate before enrollment:
$CertificateFile = 'C:\REPLACE_WITH_PUBLIC_CERT_DIRECTORY\network-unlock.cer'
certutil.exe -dump $CertificateFile
certutil.exe -GroupPolicy -store FVE_NKP
# Stop if a certificate already exists; do not overwrite a managed policy.
certutil.exe -GroupPolicy -addstore FVE_NKP $CertificateFile
if ($LASTEXITCODE -ne 0) { throw 'Public policy certificate import failed' }
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' `
-Name OSManageNKP -PropertyType DWord -Value 1 -Force | Out-Null
# Reboot at a planned time, with console and PIN/recovery available.
Do not force immediate creation with an undocumented WMI call: the prototype needed a reboot to activate fresh certificate policy. The activation boot can require the PIN. Then inspect protector types with guide 4’s restricted query; verify the Network protector’s certificate matches the enrolled appliance, not simply that a Network protector exists.
Test automatic unlock and PIN fallback
Confirm an online reboot reaches Windows without PIN entry while protection stays on and encryption remains 100%. Test both a disconnected client and an unavailable provider: both should fall back to the startup PIN. Keep recovery available. Restore connectivity and retest unattended boot. The current prototype supports unrelayed IPv4; do not assume routed DHCP relay, IPv6 or Wi-Fi preboot support.
Remove network unlocking without decrypting
First confirm TPM+PIN and recovery remain. For domain clients disable Allow Network Unlock at startup in the owning GPO and update policy; Windows removes the Network protector. For the experimental local-policy route, disable the local setting and remove only the enrolled public policy certificate:
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\FVE' `
-Name OSManageNKP -Value 0
certutil.exe -GroupPolicy -delstore FVE_NKP 'REPLACE_WITH_ENROLLED_PUBLIC_CERT_THUMBPRINT'
# Reboot with fallback ready; verify Network is absent and protection is still On.
If an obsolete Network protector persists, identify and remove only that GUID using guide 6 after fallback checks. Keep the former public certificate for an intentional rollback; re-enabling requires policy deployment and another activation reboot.
Reference: Microsoft Network Unlock requirements, policy activation and removal. The local-policy appliance path is a prototype extension of this deployment.
6 · Add or remove BitLocker fallback protectors
Prerequisites: an already BitLocker-protected OS drive, administrator PowerShell, local console and retrievable recovery backup. Inspect IDs and types without displaying recovery material:
(Get-BitLockerVolume -MountPoint 'C:').KeyProtector |
Select-Object KeyProtectorId,KeyProtectorType
# Add only when absent; TPM+PIN policy must permit it:
$Pin = Read-Host 'Choose your startup PIN' -AsSecureString
Add-BitLockerKeyProtector -MountPoint 'C:' -TpmAndPinProtector -Pin $Pin | Out-Null
# Add a recovery password only when needed, then back it up off-device:
Add-BitLockerKeyProtector -MountPoint 'C:' -RecoveryPasswordProtector | Out-Null
Save new recovery material using the Control Panel backup action before deleting any prior recovery protector. Adding TPM+PIN does not merge it with or automatically remove a separate TPM-only protector. With the replacement present and verified, select the exact old protector ID:
$OldProtectorId = 'REPLACE_WITH_EXACT_OBSOLETE_PROTECTOR_GUID'
# Inspect the selected type and remaining alternatives before proceeding:
(Get-BitLockerVolume -MountPoint 'C:').KeyProtector |
Select-Object KeyProtectorId,KeyProtectorType
Remove-BitLockerKeyProtector -MountPoint 'C:' -KeyProtectorId $OldProtectorId -WhatIf
# Run only after reviewing the preview and verifying independent fallback:
Remove-BitLockerKeyProtector -MountPoint 'C:' -KeyProtectorId $OldProtectorId -Confirm
Retain TPM+PIN and an independently stored recovery protector when using Network Unlock. Never delete the last usable recovery route, bulk-delete by type, suspend protection to make a test pass, or decrypt merely to remove Network Unlock. Confirm protection remains on, then test a boot without the network provider.
References: adding protectors, removing a selected protector.
Open source & attribution
The public Tang and Clevis projects document the Linux ecosystem; Microsoft documents BitLocker Network Unlock. These references are not a complete inventory of software shipped in Nuklatch.
Before sale, the actual firmware and software release will have a dependency list, vendor notices, copyright attributions, licence texts and any required source or source offers. That review, including applicable IP and patent questions, is still to be completed.
What has been tested
The October 2026 prototype tests recorded stock Clevis binary roundtrips and disposable LUKS2 enrollment and recovery on prototype hardware, Debian encrypted-root unattended boots with offline manual recovery, and a nested Proxmox VE encrypted-root boot with guest autostart. The Debian client packages in those tests included clevis-initramfs 20-1 and cryptsetup-initramfs 2:2.7.5-2. Explicit early-boot interface selection was necessary in that Debian test; no Clevis package hook was patched.
In an isolated VM, Windows Server 2025 Evaluation Core booted through the physical prototype appliance in warm and cold starts, with TPM+PIN and recovery retained. PIN fallback also worked when the client was disconnected or the provider was offline. Those results do not establish compatibility with every Windows edition, network adapter, firmware or physical host. The release test matrix still needs to cover appliance power cycles and the wider range of clients. No stock Tang server version was under test: the server was prototype firmware implementing the Tang protocol.
The commands have been checked against upstream documentation. The complete guides still need release review and end-to-end testing on the configurations they will support. Compatibility claims will follow those results.