-
Notifications
You must be signed in to change notification settings - Fork 141
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
SNOW-960386: RevocationStatusUnknown even with InsecureMode #806
Comments
Doing some more digging, it looks like this may have been accidentally introduced as part of a refactor. In the following commit you can see the first argument to the 4cf73d4#diff-c36410e4608c5d3a815bdfa7327569a75af2ead26f4e5e67ab0f5f421120f6bdL171-L175 |
hi and thank you for drawing our attention to this behaviour, it is indeed unexpected and should be the other way around; |
PR under review #832 |
fix merged and will be available with the next release; on which i'll keep this thread updated |
hotfix version 2.1.5 has been just released with the fix. Thank you again so much for drawing our attention to this issue ! |
Issue
Hi all. I'm seeing this odd behaviour with
v2.1.2
of the library:If I set
insecuremode=true
my requests fail due toRevocationStatusUnknown
.If I set
insecuremode=false
my requests succeed.My expectation would be that insecuremode disables revocation status checking, so my observations are the exact inverse of what I would expect.
Debugging
I did some digging and what looks suspicious to me is the following line, where the
HttpClientConfig
is being constructed:snowflake-connector-net/Snowflake.Data/Core/Session/SFSessionHttpClientProperties.cs
Lines 45 to 47 in eb2e0ab
Note that the first parameter being passed is
insecureMode
, but the first argument of that ctor is calledcrlCheckEnabled
:snowflake-connector-net/Snowflake.Data/Core/HttpUtil.cs
Lines 21 to 23 in eb2e0ab
My expectation would be that
insecuremode
would disable CRL checks, so it sounds to me like this boolean should be negated.That being said, this is my first time looking at the code base so perhaps I'm simply fundamentally misunderstanding something here. Much appreciated if someone could take a look, thanks!
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
1. What version of .NET driver are you using?
Snowflake.Data v2.1.2
2. What operating system and processor architecture are you using?
Windows 10 x64
3. What version of .NET framework are you using?
E.g. .net framework 4.5.2 or .net standard 2.0
.NET 7.0
4. What did you do?
Tried connecting to Snowflake, had some issues with our coporate firewall so I set
InsecureMode
totrue
but no luck. After enabling debug logs and doing some step-through debugging I see that insecuremode is definitely set totrue
, but the connection still fails due to revocation status checking.5. What did you expect to see?
Successful connection
6. Can you set logging to DEBUG and collect the logs?
Relevant snippet of logs. Note the error is listed as
RevocationStatusUnknown
.7. What is your Snowflake account identifier, if any? (Optional)
N/A
The text was updated successfully, but these errors were encountered: