-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: providing granuarity on network ACLs #471
Conversation
For a more fined setup of outbound and inbound acl rules, should we limit outbound destination and inbound source to the vpc prefixes in the same way it is done for outbound source and inbound destination? We are currently setting to the network cidr or to everything if this is null |
Hi @vbontempi Thank you for providing your valuable input. I think we need to restrict the destination in case of inbound and source in case of outbound to |
that's true as
network_cidr to "10.0.0.0/8" : in such a case the inbound destination and the outbound source will be set to this value.
However a value null for
Maybe limiting outbound destinations and inbound sources to the vpc prefixes may be the default behaviour in the case of a null value? @vburckhardt your thoughts? may it be a further enhancement to rules or something too much for the current requirements? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @imprateeksh - just one comment here.
@vbontempi - I think the source for outbound and destination for inbound are not really relevant here anyways. In outbound, the source is always going to be the subnets the acl is attached to. And inbound, the destination is always the subnet to acl is attached to. So whether we put 10.0.0.0/8 (if the subnets fall in this address prefix) or 0.0.0.0/0 we end up with same behavior here. |
@vburckhardt / @ocofaigh - Could you please approve/merge this PR? I have made the changes as suggested. |
Missing , ibm_is_vpc_address_prefix.subnet_prefix as well in the depends_on list for data "ibm_is_vpc_address_prefixes" "get_address_prefixes" - I added it in a commit to this PR so that we can go ahead and merge it. Without this depends on, the acl is missing the prefixes added at terraform-ibm-landing-zone-vpc/subnet.tf Line 16 in 1e89ae2
|
🎉 This PR is included in version 5.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Thank you @vburckhardt |
Description
Narrowing down the network connectivity rules as mentioned below:
(There is one ACL rule per VPC address prefix.)
Types of changes in this PR
No release required
Release required
x.x.X
): Change that fixes an issue and is compatible with earlier versions)x.X.x
): Change that adds functionality and is compatible with earlier versions)X.x.x
): Change that is likely incompatible with previous versions)Release notes content
Reducing the ACL network rules by narrowing down the network connectivity as mentioned below:
(There is one ACL rule per VPC address prefix.)
Checklist for reviewers
Merge actions for mergers
Merge by using "Squash and merge".
Use a relevant conventional commit message that is based on the PR contents and any release notes provided by the PR author.
The commit message determines whether a new version of the module is needed, and if so, which semver increment to use (major, minor, or patch).