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

aws public subnet explainability #775

Merged
merged 8 commits into from
Aug 14, 2024
Merged

aws public subnet explainability #775

merged 8 commits into from
Aug 14, 2024

Conversation

haim-kermany
Copy link
Contributor

implementation of the first bullet of:
#756

Copy link
Contributor

@ShiriMoran ShiriMoran left a comment

Choose a reason for hiding this comment

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

  1. Please add tests
  2. See my comment regarding explanation

@@ -206,6 +213,12 @@ func (g *groupedConnLine) explainPerCaseStr(c *VPCConfig, src, dst EndpointElem,
case crossVpcRouterRequired(src, dst) && crossVpcRouter != nil && crossVpcConnection.IsEmpty():
return fmt.Sprintf("%vAll connections will be blocked since transit gateway denies route from source to destination"+tripleNLVars,
noConnection, headerPlusPath, details)
case isAtPrivateSubnet(dst) && src.IsExternal():
Copy link
Contributor

Choose a reason for hiding this comment

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

The cases in which we provide a single line explaining why there is no connection should be minimized see #655. In this specific case we can provide full explainability and integrate the private subnet in the path and details.

We could defer the explanation part of this PR to latter PRs - I can take responsibility to this part.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, will be resolved in another PR, by our explainability expert.
added a bullet to the relevant issue #756

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps better remove it all together

@haim-kermany
Copy link
Contributor Author

  1. Please add tests

    1. See my comment regarding explanation

tests will be added in a different PR
please follow issue #756

@@ -206,6 +213,12 @@ func (g *groupedConnLine) explainPerCaseStr(c *VPCConfig, src, dst EndpointElem,
case crossVpcRouterRequired(src, dst) && crossVpcRouter != nil && crossVpcConnection.IsEmpty():
return fmt.Sprintf("%vAll connections will be blocked since transit gateway denies route from source to destination"+tripleNLVars,
noConnection, headerPlusPath, details)
case isAtPrivateSubnet(dst) && src.IsExternal():
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps better remove it all together

@haim-kermany haim-kermany merged commit de56336 into main Aug 14, 2024
4 checks passed
@haim-kermany haim-kermany deleted the aws-explainability branch August 14, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants