Skip to content

Checking unknown host exception for PostgreSqlCredential#545

Merged
eddynaka merged 6 commits into
mainfrom
users/bpendragon/ReducePostGreSqlUnknownErrors
Aug 26, 2021
Merged

Checking unknown host exception for PostgreSqlCredential#545
eddynaka merged 6 commits into
mainfrom
users/bpendragon/ReducePostGreSqlUnknownErrors

Conversation

@Bpendragon

@Bpendragon Bpendragon commented Aug 25, 2021

Copy link
Copy Markdown
Contributor

Adds an if statement that catches if the database the secret points to is not accessible from the public. The credentials may or may not be valid, but we can't test that.

Changes

Please provide a brief description of the changes here.

For significant contributions please make sure you have completed the following items:

  • ReleaseHistory.md updated for non-trivial changes
  • Added unit tests

Adds an if statement that catches if the secret is not accessible from the public.  The credentials may or may not be valid, but we can't test that.
Comment thread Src/Plugins/Security/SEC101_038.PostgreSqlCredentialsValidator.cs Outdated
Comment thread Src/Plugins/Security/SEC101_038.PostgreSqlCredentialsValidator.cs
@eddynaka eddynaka changed the title Add check for PostGreSQL unknown host Add check for PostgreSqlCredential unknown host Aug 26, 2021
Comment thread Src/ReleaseHistory.md Outdated
- Plugin Improvement: Added `Fixes` property in SEC104 rules that provide only one option.
[#541](https://github.com/microsoft/sarif-pattern-matcher/pull/541)
- Tool Improvement: Add a check for PostgreSql instances that are not reachable from external networks.
[#545](https://github.com/microsoft/sarif-pattern-matcher/pull/544)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

544

545

Comment thread Src/ReleaseHistory.md Outdated
one option.
- Plugin Improvement: Added `Fixes` property in SEC104 rules that provide only one option.
[#541](https://github.com/microsoft/sarif-pattern-matcher/pull/541)
- Tool Improvement: Add a check for PostgreSql instances that are not reachable from external networks.

@eddynaka eddynaka Aug 26, 2021

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tool Improvement: Add a check for PostgreSql instances that are not reachable from external networks.

the question we should make: what would happen after this change?

would we improve get more results/more live secrets/etc?

I think, we should change to something like: "UER: Added a check for PostgreSql instances that are not reachable from external networks reducing unexpected exceptions."

UER = eliminate unhandled exceptions in rules

this is explaining very detailed what we are doing and what will happen.

@eddynaka eddynaka changed the title Add check for PostgreSqlCredential unknown host Checking unknown host exception for PostgreSqlCredential Aug 26, 2021
@eddynaka eddynaka enabled auto-merge (squash) August 26, 2021 20:14
@eddynaka eddynaka merged commit 4914552 into main Aug 26, 2021
@eddynaka eddynaka deleted the users/bpendragon/ReducePostGreSqlUnknownErrors branch August 26, 2021 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants