October 30, 20251 yr First of all, thank you very much for this plugin. I really like your work.Unfortunately, your plugin doesn't seem to work for me (probably my fault). According to the plugin, there should be an auto unlock. Auto-Unlock ActiveHardware keys will unlock devices at boot.Unlockable Devices: 3 device(s)But I still have to enter the password every time I boot up... :/ What am I doing wrong?
November 20, 20251 yr On 9/28/2025 at 5:22 PM, dhstsw said:Yeah, i ripristinate everything 5 minutes after the event.So i guess i'll have to re-do everything to produce the diagnostics file :-/For now i can tell you (after producing the very detailed encryption info that:-All array disks (4) show: Slot 0: Original encryption key-One standalone disk (i guess one that is mounted with Unassigned Devices) shows: Slot 0: Original encryption key-Pool devices (2) show: 🔐 Slot 0: Original encryption key⭐ Slot 31: ⭐ Hardware-derived (2025-09-28 13:20:42 EEST)So, only the pool devices got the new key in slot 31.Also, i have 3 pool devices (Cache on a sata SSD, another one on an M.2 and another final one on a mechanical disk). The detailed info reports only 2 ( /dev/sdh1 and /dev/sdi1).See attacched report.I'll try again when i'll be drunk enough not to get scared again like 4 hours ago :-/Thanks.luks_analysis_20250928_181429.txt@SpaceInvaderOneI think I'm having the same kind of problem... After rebooting the server there was just one pool decrypted. The second one was shown as 'no filesystem'... Having a look at the keys only the first pool do have the slot 31 key. The second one does not. Before that I changed my router and doing so I uninstalled your plugin, rebooted, used the key/passphrase for decryption of the pools, installed your plugin again and activated auto-decrypt... Hope it helpsNews:after some investigation the second pool did not have ana key at slot 31... I uninstalled the plugin, removed 'slot 31' from the drives of the working pool, reinstalled the plugin and activated 'auto-boot'. After that all drives have the key at slot 31 again. Edited December 9, 2025Dec 9 by DerTom
December 29, 2025Dec 29 On 9/28/2025 at 10:22 AM, SpaceInvaderOne said:Don’t worry, you haven’t lost any data. What’s happened is that your array drives don’t seem to have the extra key in slot 31. On reboot the server was able to unlock the pool automatically, but because that key isn’t present on the array drives, they stayed locked. That’s why they’re showing as “unmountable :wrong filesystem”.Before changing anything, could you please grab a diagnostics file and either attach it here or send it to me in a PM? After that, go into the plugin and disable auto-unlock, then restart the server. When it comes back up, enter your original encryption key manually, that will mount all your drives.Once they’re mounted, open the plugin again, run “Encryption Info” with the “Very Detailed” option, and share the output (either paste it here or PM me). My guess is that slot 31 on the array drives will be empty. The plugin has a safety check that skips adding an extra key if it couldn’t make a header backup, and I think that’s what’s happened in your case.@SpaceInvaderOne I finally got around to giving this plugin a try today and I am having the same problem as the users above. As reported by the plugin, I have 8 LUKS devices: 6 on my main array (4 with LUKS V1 and 2 with LUKS V2) and 2 on my cache pool (both LUKS V2). The plugin would not assign the hardware-derived key on slot 31 to any of my array drives, but it did assign the hardware-derived key on slot 31 to my cache pool drives.I'm not sure if the LUKS version matters, but I don't understand how my array drives got a mix of V1 and V2. All drives were encrypted by various releases of Unraid V6. Judging by which of my drives have which LUKS version, it looks like somewhere in the mid-late Unraid V6 releases (maybe 6.9 or 6.10) the default was changed to V2, and then reverted back to V1 in later releases. Though, this is speculation and I have nothing more than this anecdotal evidence.Also, an additional bug to report, when I removed the Auto-Unlock functionality (since it wasn't going to work for me in this state anyway), it did not remove the Slot 31 hardware-derived key from the cache pool drives! I have a before and after LUKS analysis from your plugin I will share with you, with server diagnostics, via PM.IMHO, this plugin is great and I really hope I get to use it. Happy to help you debug this issue, as long as my data is sufficiently safe as we do it!ThanksJesterEE
December 29, 2025Dec 29 @SpaceInvaderOne i looked at a similar plug-in to yours (a version more complex than I'd prefer tbh), and noticed during attempted setup that of my disks happens to not use the same encryption key for some reason as the others.I assume this is why your plugin didn't work for me out of the box, but I'm not sure why i have no issues with manual decryption. Have you run into this issue? How would I fix this to be able to use your plugin?
February 3Feb 3 Hey, thanks for this plugin. There really needs to be more information like this in the official unraid docs: https://docs.unraid.net/unraid-os/system-administration/secure-your-server/securing-your-data/Sifting through forum posts mixed with older/outdated methods is annoying.
February 3Feb 3 Just now, veganbtw said:Hey, thanks for this plugin. There really needs to be more information like this in the official unraid docs: https://docs.unraid.net/unraid-os/system-administration/secure-your-server/securing-your-data/Sifting through forum posts mixed with older/outdated methods is annoying.I don't find this updated or supported (just haven't seen answers in this thread or updates to the plugin) really. Didn't work that great for me and the ui is a bit confusing. Personally I now use Automatic Disk Unlock (by EDACerton here). Works great and well documented. Edited February 3Feb 3 by Niklas
February 18Feb 18 On 9/26/2025 at 3:38 PM, SpaceInvaderOne said:How It WorksIt's pretty straightforward to set up1. Install the plugin from Community Applications2. Enter your current LUKS passphrase or keyfile once during setup3. The plugin generates a hardware key and adds it to LUKS slot 31 (the last slot)4. From then on, your server auto-unlocks using the hardware fingerprintIf you ever change hardware or move locations, just regenerate the key - takes about 30 seconds.Regarding this last part, I had to change replace a motherboard with the same model and added a new GPU. Otherwise the rest of the hardware is the same; I transferred the storage controller and NIC over.When I tried to generate news keys, it just gives a big yellow banner saying:ERROR ===========================================================Prior to the hardware change, the auto-unlock worked fine.Update: I couldn't access the community apps section, apparently it was some issue with the time sync. When I checked the time setting, it was unsynchronized. Could not get it to sync with the time.Could've been a network issue, but it didn't make sense as I was connecting to it via the network.Ended up re-making a new USB and starting over. Seems to work now. Edited February 18Feb 18 by veganbtw
February 23Feb 23 Is there a way to delete the existing generated keys and re-generate new ones?2 of my pools doesn't unlock with the auto-unlock; they show up as incorrect fs and need to be formatted.I need to delete the key, shut down the array, and then enter the passphrase manually for those 2 pools to work properly.
May 16May 16 Anyone else with this plugin try to update to 7.3? My encrypted btrfs pool disappears and the disks show up as unassigned devices.Downgrading back to 7.2.6 restores pool.Wasn't sure if there was a conflict with this plugin.
May 17May 17 11 hours ago, Scuro said:My encrypted btrfs pool disappears and the disks show up as unassigned devices.What is the name of the pool? 7.3 has some new reserved names.
May 18May 18 3 hours ago, Scuro said:sparedataSpare, mirror and raidz prefixes are now reserved with 7.3.0 because they are reserved by ZFS, you can rename the pool before upgrading and then upgrade, or reimport the pool in 7.3 with a new name.
May 19May 19 That was it. Thanks @JorgeBI'm surprised there isn't any kind of precheck when upgrading to throw warnings about that. I didn't see any mention in the release notes.
May 26May 26 On 2/23/2026 at 7:16 AM, veganbtw said:Is there a way to delete the existing generated keys and re-generate new ones?2 of my pools doesn't unlock with the auto-unlock; they show up as incorrect fs and need to be formatted.I need to delete the key, shut down the array, and then enter the passphrase manually for those 2 pools to work properly.I have the same issue. How can I regenerate slot 31? I added a new hard drive – slot 31 is missing (obviously) there.
June 9Jun 9 Hi, I have the array up and running (with an encrypted drive) and I need to change my router. From the plugin inside "Encryption Info", it won't accept my keyfile or any passphrase, and if I try to change the encryption key from Unraid's Disk Settings it says "Encryption Key Update, Incorrect existing key" in that same message. What is happening? How can I uninstall the plugin and obtain or regenerate my keyfile or passphrase?Thank you very much.
August 2Aug 2 The plugin somehow corrupts unraids ability to setup new encrypted drives when auto-unlock is enabled, and then fails to unlock new drives as well. steps to reproduceenable disk auto unlockingmove to internal boot with data cache on the same disks as well (i presume just using a new disk does the same but don't have a spare blank drive i can test with atm)set filesystem to ZFS (encrypted)start array and format drivesput data on the poolreboot serverit is now completely corrupted and the data unrecoverable. auto unlock fails, and even disabling it, removing the plugin, ... will all fail as if it was encrypted with a different key the plugin made up and threw awayif you disable auto unlocking, then let unraid setup the drives it works just fine. so something in that auto unlock process corrupts something unraid still needs to setup the new drives
August 2Aug 2 tested a bit more, re-enableling auto unlock only lets it unlock the original drives. it does not unlock the new ones and claims they are corrupted and need to be formatted. disabling it again and manually entering the passphrase on reboot unlocks both old and new
September 2Sep 2 The plugin is great @SpaceInvaderOne , it gives extra security to lazy people, unless they stole your gateway too 😂. If you have an expensive router, i would look to another way to auto decrypt.And that's my suggestion. Of course you can use the go file or use the user.scripts plugin to create a script to calculate the key or to get a variable to calculate the key. But that script could be part of the plugin to have, you know, all related stuff in the same place.I suggest this way. A tab to have a custom script to calculate an extra variable and decrypt as your plugin does: motherboard+gateway+extra_variable (if exists). The best of both worlds: Your way and the custom wayAnd, i guess you all already know.. The secure way is not use any auto-unlock procedure 😂You don't reboot a server too often, so you can login through tailscale or your favorite vpn access and enter the key.. 😉
September 2Sep 2 3 hours ago, ChuskyX said:And that's my suggestion.FYI this is a lot more advanced and actually maintained.
November 8Nov 8 This is great I was looking for a way to do this. I actually requested a feature similar to this. I wanted the passphrase & the key file to work so I could leave a hidden usb with keyfile incase someone is watching my house and needs to restart the server. The explanation was also helpful since my "router: is pfsense running in a VM I was sure to also take down its mac address so that if I had to rebuild the VM I could use the same MAC.Thank you for your effort!
November 9Nov 9 I see a potential issue with this plugin that could lead to serious problems for folks. If you have autostart enabled AND you add a new encrypted disk to the array when you format it will use the auto start key instead of the array key to encrypt the drive. It will get added to the array and show unlocked. But if you restart it will show wrong password and the drive will not mount.You MUST disable autostart BEFORE adding another encrypted drive to the array. This way it uses the array passphrase when it formats.
November 14Nov 14 Auto-unlock makes manual unlock impossible when the box is off the bound network (uploaded key always overwritten)Love the concept of the plugin — hardware-bound auto-unlock is exactly the right way to do this, and the README's promise that "your original passphrase/keyfile remains completely unchanged and functional" is what bit me.SetupUnraid 7.3.4, plugin 2025.09.27.1424. Array auto-unlocks via the hardware-derived key (slot 31) while on the bound LAN. I moved the box to a different network, so — correctly, by design — auto-unlock fails and the Main page asks for the key manually.The problemUploading my original key via Choose File always fails with "Wrong key" — not because the key is wrong, but because it is never actually tested. The plugin registers fetch_key as a webGui "starting" event handler (/usr/local/emhttp/webGui/event/starting/fetch_key). Every time Start is clicked, that handler regenerates /root/keyfile with the freshly-derived hardware key after KeyUpload.php has written my upload, and cryptsetup then runs against the regenerated file. Syslog shows it clearly:emhttpd: Auto-start is enabled. Proceeding with keyfile generation.emhttpd: Keyfile generated successfully at /root/keyfilekernel: mdcmd (35): start STOPPEDemhttpd: disk1: Wrong encryption keyProof it's the overwrite and not the key: after removing that one event file, the exact same key file unlocked the array on the first try.Worse, there's no way to turn auto-unlock off from the UI when you need it: the plugin's toggle only renders when the array is already running (the page JS checks systemState !== 'array_stopped' first). Chicken-and-egg — you can't start the array without disabling auto-unlock, and you can't disable it without a running array.Why this matters beyond annoyanceThe plugin's whole security model is "if the box is stolen, the network changes and auto-unlock fails — then you use your original key" (README: "Manual intervention with your original passphrase/keyfile is required"). But in exactly that scenario, manual intervention via the GUI is impossible. The overwrite adds zero security in the theft case (an attacker with my key could just delete the event file too), it only locks out the owner who has the key. Having the key should be sufficient — right now it isn't, unless you know to do surgery via CLI.Suggested fixes (smallest first)1. fetch_key should check the plugin's own AUTO_UNLOCK_ENABLED flag, not just startArray=yes in disk.cfg. Right now the config flag doesn't stop the event handler from regenerating the keyfile.2. Better: have the manual upload use a different path than /root/keyfile, or skip generation for that start when a fresh upload was submitted.3. Show the disable toggle (or at least a hint) when the array is stopped and auto-unlock is enabled, instead of hiding it behind array_stopped.4. Docs: note that after moving the box, auto-unlock must be disabled before a manual key upload can work.Workaround for anyone hitting thisNeeds a terminal — your admin login via the GUI is useless here since the GUI itself is the broken path:rm /usr/local/emhttp/webGui/event/starting/fetch_keysed -i 's/AUTO_UNLOCK_ENABLED=true/AUTO_UNLOCK_ENABLED=false/' \/boot/config/plugins/encrypted-drive-manager/configThen re-select your key file and hit Start. Restore with manage_events.sh enable when the box goes back to the bound network.Not complaining about the encryption itself — slot 31 staying hardware-bound is exactly as advertised. It's the manual fallback path that needs to actually work.(sure, I got my bot to write this because it's the only way I figured out what was going on, so it's in a much better position to explain it than I am) Edited November 14Nov 14 by luke.smith.name typo
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.