Closed kaypeter87 closed 4 months ago
Hi! The screenshot helps a lot. To me it appears you're thinking it's a 2FA issue whereby the error text indicates:
...is unavailable when OTP is enabled
Above where it says, One-Time Password (OTP) Digits*
, is there an option to try without OTP?
NP! I forgot to add, I do not get the error and everything works when I disable 2FA altogether from my TrueNAS instance.
Hi! The screenshot helps a lot. To me it appears you're thinking it's a 2FA issue whereby the error text indicates:
...is unavailable when OTP is enabled
Above where it says,
One-Time Password (OTP) Digits*
, is there an option to try without OTP?
For this specific question, no there is no option to try without OTP.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I might have some time to submit a PR during the holidays.
I've the same issue. But I need 2FA to keep enabled. So hopefully there will some quick fix coming in FreeNAS-ProxMox.
Well you would not want to enable 2fa for a API user. Possible to create a user without 2fa and then use that to connect to TrueNAS?
I will need to replicate this. Will be doing it tonight/tomorrow to see the possibilities can be. I have a patch coming for Token instead of User based auth so that might help.
I had to disable 2FA system wide for all users to get Freenas-Proxmox working again. Hopefully the token solution is soon available.
Well you would not want to enable 2fa for a API user. Possible to create a user without 2fa and then use that to connect to TrueNAS?
I will need to replicate this. Will be doing it tonight/tomorrow to see the possibilities can be. I have a patch coming for Token instead of User based auth so that might help.
Agreed 👍 but I believe the 2FA is system wide which forces the API user to have 2FA. The token feature will definitely help out with this, appreciate the hard work.
I'll try to play around with the settings on the truenas side to see how the plugin reacts in different scenarios.
I will need to replicate this. Will be doing it tonight/tomorrow to see the possibilities can be. I have a patch coming for Token instead of User based auth so that might help.
Any progress on this?
Yes. I have a version that using the Bearer Token. Will be pushing to the 'truenas-proxmox-testing' repo in a day or so. Also just making a few changes to some variables so seeing if the code updates the underlying config correctly.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Any progress on this issue?
The testing
repo has the Bearer Token feature. Please try that and let me know. I have been running it as I do not get any 2FA.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am on
TrueNAS-SCALE-22.12.3.3
andpve-manager/7.4-16/0f39f621 (running kernel: 5.15.104-1-pve)
It's mentioned that SSH is used to run zfs commands to TrueNAS, but 2FA seems cause a 401 error to the plugin.
There is an option to enable 2FA over SSH, but this is disabled by default.
I'm not entirely sure how the
freenas_api_connect
function handles this, but it seems API calls now require 2FA codes when its enabled? I had this working with 2FA on Core. Seems like something has changed on the TrueNAS side requiring it.