-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Duo authentication requests during terraform plan #2194
Comments
I think #2504 (comment) may explain why this is happening. |
Do you have MFA caching enabled on the Snowflake side? |
@sfc-gh-jcieslak What is the current status for this bug? What I see and testend in version 0.92.0 is that even with the "ALLOW_CLIENT_MFA_CACHING" set to true for the account every terraform plan using the same username and password is sending a duo push which makes it very hard to work good localy. Also when having this parameter set explicitly it is not working in the provider: |
Hey @JESCHO99. Which OS you are working on? |
Hey @sfc-gh-asawicki, we are working on Windows. |
Okay, that's a lead. AFAIK the caching works on macos and linux distros. The caching needs the We will follow up with the problem internally but for now, we can suggest only:
|
Hey @sfc-gh-asawicki, thanks for pointing out what is not working here and delivering some workarounds. I guess when this is solved this issue ticket will be closed? So we will just keep watching. Thanks for your help! |
Yes, we will update you on this issue as soon as we make any progress with the caching problems. In the meantime, please inform us if you try any of these workarounds or when you come up with something different (it might be helpful). |
Provider Version
0.75.0
Terraform Version
1.5.7
Describe the bug
Using
SNOWFLAKE_USER
,SNOWFLAKE_PASSWORD
,SNOWFLAKE_AUTHENTICATOR=UsernamePasswordMFA
,SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL=1
andSNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN=1
results in Duo pushes for every single request made by Terraform.I've also tried setting
"true"
instead of1
for the boolean options as well.Expected behavior
Should request a single time and cache it for the remainder of
terraform plan
orterraform run
.Code samples and commands
Please add code examples and commands that were run to cause the problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: