-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from snowflakedb/prep-1.2.5
Merge Changes for release 1.2.5
- Loading branch information
Showing
13 changed files
with
824 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2021 Snowflake Computing Inc. All rights reserved. | ||
*/ | ||
|
||
using System; | ||
using Snowflake.Data.Log; | ||
|
||
namespace Snowflake.Data.Tests.Mock | ||
{ | ||
class MockSecretDetector | ||
{ | ||
public static SecretDetector.Mask MaskSecrets(string text) | ||
{ | ||
SecretDetector.Mask result = new SecretDetector.Mask(); | ||
try | ||
{ | ||
throw new Exception("Test exception"); | ||
} | ||
catch (Exception ex) | ||
{ | ||
//We'll assume that the exception was raised during masking | ||
//to be safe consider that the log has sensitive information | ||
//and do not raise an exception. | ||
result.isMasked = true; | ||
result.maskedText = ex.Message; | ||
result.errStr = ex.Message; | ||
} | ||
return result; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.