Skip to content

Edge case bug in update_security_group #6

Description

@otm

This is truly an edge case bug, if it can be called that, in the function update_security_group.

If there are are IpPermissions present in the security group the code will not update the rules if INGRESS_PORTS changes or someone has manually deleted all rules for one value in INGRESS_PORTS.

To reproduce:

  1. Set INGRESS_PORTS = [ 80 ]
  2. Run the code
  3. Set INGRESS_PORTS = [ 80, 443 ]
  4. Run the code

Expected behaviour:
IpPermissions has been updated to include port 80 and 443

Actual behaviour:
Only rules for port 80 are present

I recognize that this is an edge case, and that this might not be fixed. In that case this issue will just serve as documentation of this behaviour.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions