Skip to content
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

Checking unknown host exception for PostgreSqlCredential #545

Merged
merged 6 commits into from
Aug 26, 2021

Conversation

Bpendragon
Copy link
Contributor

@Bpendragon Bpendragon commented Aug 25, 2021

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.
@eddynaka eddynaka changed the title Add check for PostGreSQL unknown host Add check for PostgreSqlCredential unknown host Aug 26, 2021
[#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
Collaborator

Choose a reason for hiding this comment

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

544

545

[#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.
Copy link
Collaborator

@eddynaka eddynaka Aug 26, 2021

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.

None yet

2 participants