New thread started at the moderators request. With further testing, I have found very inconsistent behavior with the GUI for disk encryption.
I posted here first viewtopic.php?f=16&t=1404 as it was an upgrade issue to rev.344 from rev.323.
The resolution was that quoting was required of the pass-phrase and I was pointed here:
http://nas4free.svn.sourceforge.net/vie ... athrev=327
No manner how I quoted the pass-phrase it would not work from the GUI. I've used double quotes, single quotes, and neither works.
Frankly, any quoting needed should happen on the script side before passing arguments to /sbin/geli, not in pass-phrase entry input box. This should be completely transparent to the user. Input validation should also be implemented if these forbidden characters become an issue and become the new norm for future releases. Am I the only one who uses strong pass-phrases?
A suggestion to those upgrading to 9.1.0.1 rev.344. If you have an encrypted disk using a strong pass-phrase (numbers,alphas and special characters) that was created in a previous installation it would wise to reset the password to something a little more friendly before upgrading to to rev. 344, such as all numerals and alphas with no special characters. If you don't, you won't be able to attach the disk unless you reinstall a previous version that you had no problems with. I just don't know what the special characters, that are to be avoided, are at this point. The " & " is not a friendly character. I'll look for other bad characters until the problem is resolved. Maybe a note in the change log would help others. The " & " which is otherwise a valid character with the geli utility cannot be used reliably with the web GUI.
This is a major issue with those of us that use disk encryption with strong pass-phrases. Especially since the GUI exposes the first part of the pass-phrase up to the special character when using the "&" character. No need in obfuscating the pass-phrase entry if you echo the partial pass-phrase in the attach error response.
On a rev.344 system there is an issue which may be related, that is if you use such a character (my pass-phrase for testing was "~t3st&t3st") to encrypt the drive first, then the drive encrypts and returns "~t3st " in the returned status message reporting that it is done and attached. I then format the drive and confirm I can read/write to it. It works but clearly not properly. Okay, so I reboot and then create an encrypted drive with the pass-phrase " abcdef " it attaches and I can read/write to it as well. All is well and normal behavior with the use of "friendly" characters and no echoing of the partial pass-phrase.(Good)
It seems that for whatever reason the "eli patch" was removed in directory revision 327, it has created a bunch of problems for those of us using strong pass-phrases. Just as an aside in my research i created a pass-phrase "~!@#$%^*()_+" and attempted to encrypt a drive. Not only won't it complete, but it also appears to hang. Then when you hit the cancel button and look at "Management" tab, it has created an entry even though the encryption process failed and didn't complete. Fortunately, it is not attached so you can delete it and start over. Otherwise a reboot would be needed.
I'll throw this in just because I'm standing on the soapbox.(feature request) Would it be possible to eliminate from the disk drop down menu, the boot drive so we don't accidentally encrypt it?. Okay..I'm done.
These are just a bunch of observations I noticed as I tried to upgrade to rev.344.
Otherwise keep up the good work!
Regards,
Choctaw
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Encryption GUI with 9.1.0.1 (344)
-
choctaw
- NewUser

- Posts: 3
- Joined: 19 Aug 2012 00:46
- Status: Offline
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: Encryption GUI with 9.1.0.1 (344)
You are misunderstanding a bit.choctaw wrote:On a rev.344 system there is an issue which may be related, that is if you use such a character (my pass-phrase for testing was "~t3st&t3st") to encrypt the drive first, then the drive encrypts and returns "~t3st " in the returned status message reporting that it is done and attached. I then format the drive and confirm I can read/write to it. It works but clearly not properly. Okay, so I reboot and then create an encrypted drive with the pass-phrase " abcdef " it attaches and I can read/write to it as well. All is well and normal behavior with the use of "friendly" characters and no echoing of the partial pass-phrase.(Good)
The special character bug exists in all version of NAS4Free and FreeNAS.
But previous verions are silently discarded the pass-phrase.
You can attach only by "~t3st" in this case.
"quote is required" I said means NAS4Free must quote in the proccess.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
-
choctaw
- NewUser

- Posts: 3
- Joined: 19 Aug 2012 00:46
- Status: Offline
Re: Encryption GUI with 9.1.0.1 (344)
I'll work up a validation script to handle the special characters.
Thanks for the clarification.
Choctaw
Thanks for the clarification.
Choctaw
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Encryption GUI with 9.1.0.1 (344)
I notice some changes related with passphrase in GUI in latest build : http://nas4free.svn.sourceforge.net/vie ... vision=349
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: Encryption GUI with 9.1.0.1 (344)
Yes, we have fixed this!raulfg3 wrote:I notice some changes related with passphrase in GUI in latest build : http://nas4free.svn.sourceforge.net/vie ... vision=349
Now you can use any characters in a pass phrase.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1