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

CIDR -> IP Linking #22

Open
dylanratcliffe opened this issue Dec 6, 2022 · 1 comment
Open

CIDR -> IP Linking #22

dylanratcliffe opened this issue Dec 6, 2022 · 1 comment

Comments

@dylanratcliffe
Copy link
Member

From a conversation between @dylanratcliffe & @DavidS-om

Many things (like security groups) will have a CIDR that they are related to. It would be very cool if Overmind could actually link these things. I.e if you were to create a security group that referenced 10.0.2.4/24, you could somehow actually get linked item requests to everything that used an IP within that range.

@DavidS-ovm
Copy link
Contributor

One cheapo approach could be to always link to the next-shorter multiple-of-eight prefix, e.g.:

  • ip:10.2.3.4 -> 10.2.3.0/24 -> 10.2.0.0/16 -> 10.0.0.0/8
  • security group rule A: "deny 10.2.3.0/25" -> 10.2.3.0/24 -> 10.2.0.0/16 -> 10.0.0.0/8
  • security group rule B: "deny 10.2.3.128/25" -> 10.2.3.0/24 -> 10.2.0.0/16 -> 10.0.0.0/8

All three items get linked through 10.2.3.0/24, but security group rule B would not actually be directly relevant to the IP. It still might be helpful to see "adjacent" items, but it might also be additional overhead to evaluate relevance manually.

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

No branches or pull requests

2 participants