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

security_group_close_port_22 dies on ipv6 rules if they don't exist #35

Open
pauldallen opened this issue Nov 30, 2020 · 0 comments
Open

Comments

@pauldallen
Copy link
Contributor

pauldallen commented Nov 30, 2020

time=2020-11-30T17:10:17.383094Z caller=logger.go:165 level=info message="Starting running job code"

time=2020-11-30T17:10:18.2442037Z caller=logger.go:173 level=info message="INFO:botocore.credentials:Found credentials in environment variables."

time=2020-11-30T17:10:18.3579985Z caller=logger.go:173 level=info message="INFO:root:revoking ivp4 permissions"

time=2020-11-30T17:10:18.411337Z caller=logger.go:173 level=info 
INFO:root:revoke_security_group_ingress(CidrIp='0.0.0.0/0' FromPort=22 GroupId='sg-07a383feba0364070' IpProtocol='tcp' ToPort=22)

time=2020-11-30T17:10:19.1057878Z caller=logger.go:173 level=info message="INFO:root:revoking ivp6 permissions"

time=2020-11-30T17:10:19.1474943Z caller=logger.go:173 level=info INFO:root:revoke_security_group_ingress(GroupId='sg-07a383feba0364070' IpPermissions="[{'FromPort': 22, 'IpProtocol': 'tcp', 'Ipv6Ranges': [{'CidrIpv6': '::/0'}]" 'ToPort':22}])=(MISSING)

time=2020-11-30T17:10:19.3514667Z caller=logger.go:173 level=info message="Traceback (most recent call last):"

time=2020-11-30T17:10:19.3985511Z caller=logger.go:173 level=info message="File \"/opt/vss/job-code/security_group_close_port_22/security_group_close_port_22.py\", line 107, in <module>"

time=2020-11-30T17:10:19.4348853Z caller=logger.go:173 level=info message="Process completed with exit code 1"

time=2020-11-30T17:10:19.460516Z caller=logger.go:173 level=info message=sys.exit(SecurityGroupClosePort22().run(sys.argv))

time=2020-11-30T17:10:19.5121224Z caller=logger.go:173 level=info message="File \"/opt/vss/job-code/security_group_close_port_22/security_group_close_port_22.py\", line 103, in run"

time=2020-11-30T17:10:19.5375377Z caller=logger.go:171 level=error LEVEL=ERROR message="error while executing work" error="exit status 1"

time=2020-11-30T17:10:19.5564106Z caller=logger.go:173 level=info message="return self.remediate(client, params[\"security_group_id\"])"

time=2020-11-30T17:10:19.6047974Z caller=logger.go:173 level=info message="File \"/opt/vss/job-code/security_group_close_port_22/security_group_close_port_22.py\", line 79, in remediate"

time=2020-11-30T17:10:19.6370223Z caller=logger.go:171 level=error LEVEL=ERROR message="failed processing message" message_id=0xc00029cf88 error="exit status 1"

time=2020-11-30T17:10:19.6461869Z caller=logger.go:173 level=info message=logcall(

time=2020-11-30T17:10:19.7257327Z caller=logger.go:173 level=info message="File \"/opt/vss/job-code/security_group_close_port_22/security_group_close_port_22.py\", line 30, in logcall"

time=2020-11-30T17:10:19.7858389Z caller=logger.go:173 level=info message="logging.info(f(*args, **kwargs))"

time=2020-11-30T17:10:19.8253081Z caller=logger.go:173 level=info message="File \"/opt/vss/job-code/security_group_close_port_22/.packages/botocore/client.py\", line 316, in _api_call"

time=2020-11-30T17:10:19.861883Z caller=logger.go:173 level=info message="return self._make_api_call(operation_name, kwargs)"

time=2020-11-30T17:10:19.9028428Z caller=logger.go:173 level=info message="File \"/opt/vss/job-code/security_group_close_port_22/.packages/botocore/client.py\", line 635, in _make_api_call"

time=2020-11-30T17:10:19.9448462Z caller=logger.go:173 level=info message="raise error_class(parsed_response, operation_name)"

time=2020-11-30T17:10:19.9860895Z caller=logger.go:173 level=info message="botocore.exceptions.ClientError: An error occurred (InvalidPermission.NotFound) when calling the RevokeSecurityGroupIngress operation: The specified rule does not exist in this security group."
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

1 participant