Password caching

Got a problem with Viscosity or need help? Ask here!

Shabang

Posts: 5
Joined: Sat Mar 18, 2023 2:28 am

Post by Shabang » Tue May 16, 2023 10:20 pm
I'm testing setting "defaults write com.viscosityvpn.Viscosity KeyChainSupport -bool false" for Viscosity and "auth-nocache" in the connection config.

Then after waiting for the renegotiation to kick in, I'm seeing a credential prompt with the password field still filled in. Pressing enter is the only thing required to continue the connection.

I would think most people setting those two options would want to require the user to actually enter the password again. Does it work like this intentionally, am I missing something?

James

User avatar
Posts: 2372
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Wed May 17, 2023 8:50 am
Hi Shabang,

Thanks for the report, it appears you've discovered a regression in a recent update. It appears that in some conditions Viscosity may still load existing saved login details from the Keychain even with the KeyChainSupport setting disabled. This should now be fixed in the latest beta version:
https://www.sparklabs.com/support/kb/ar ... -versions/

It likely hasn't been discovered until now as saving to the Keychain is still correctly disabled. So you'll only encounter it if the login details have already been saved to the Keychain prior to changing the setting.

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Bluesky: https://bsky.app/profile/sparklabs.com

Shabang

Posts: 5
Joined: Sat Mar 18, 2023 2:28 am

Post by Shabang » Wed May 17, 2023 6:29 pm
Ok, thanks for confirming. Although looks like I didn't have any saved credentials in my keychain for Viscosity. I'm testing now with the new beta.

I think it would also be a nice feature to have the ability to allow saving the p12 file password, but not the user credentials. That way an encrypted file could be distributed to the user, who then could save the file password in the keychain, but they would still be prevented saving their own username and password.

Shabang

Posts: 5
Joined: Sat Mar 18, 2023 2:28 am

Post by Shabang » Wed May 17, 2023 6:46 pm
I confirmed it in Catalina and Ventura, I'm still seeing the password field filled even without previous credentials in the keychain.
4 posts Page 1 of 1