Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

GCP firewall errors #1038

Open
2 tasks
irivera007 opened this issue Apr 14, 2018 · 4 comments
Open
2 tasks

GCP firewall errors #1038

irivera007 opened this issue Apr 14, 2018 · 4 comments

Comments

@irivera007
Copy link
Contributor

irivera007 commented Apr 14, 2018

Please make sure that you have checked the boxes:

Description of issue:

Hello security monkey team, first we love this tool, thank you for putting it all together.
We have been using on AWS and recently we started to use it on GCP and we noticed that we didn't get any firewall logs or information so we went an look at the logs and we found out:

    retval = job.func(*job.args, **job.kwargs)
  File "/usr/local/src/security_monkey/security_monkey/scheduler.py", line 135, in _audit_changes
    au.audit_objects()
  File "/usr/local/src/security_monkey/security_monkey/auditor.py", line 154, in audit_objects
    method(item)
  File "/usr/local/src/security_monkey/security_monkey/auditors/gcp/gce/firewall.py", line 135, in check_allowed
    (ok, errors) = self.inspect_allowed(item)
  File "/usr/local/src/security_monkey/security_monkey/auditors/gcp/gce/firewall.py", line 127, in inspect_allowed
    err = self._port_range_exists(item.config.get('Allowed'))
  File "/usr/local/src/security_monkey/security_monkey/auditors/gcp/gce/firewall.py", line 50, in _port_range_exists
    for allowed in allowed_list:
TypeError: 'NoneType' object is not iterable```


 
@irivera007 irivera007 changed the title GCP firewall erros GCP firewall errors Apr 14, 2018
@irivera007
Copy link
Contributor Author

irivera007 commented Apr 16, 2018

Error from above stopped showing up but all of the GCP firewall rules appear as empty on Security Monkey, I dont see any other indication of a failure

@devlinrcg
Copy link

Same here: latest develop branch, getting the same error.
Any updates on this?

@mikegrima
Copy link
Contributor

mikegrima commented May 25, 2018

I've had no cycles to work on this. Would welcome a PR.

exenin referenced this issue in exenin/security_monkey Aug 16, 2018
@exenin
Copy link

exenin commented Aug 16, 2018

I have the exact same error.
Upon debugging found that it was due to a a single firewall rule being added as Action Deny instead of Allow.
exenin@d04c912

This was referenced Sep 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants