From 5188ba450fcfcd7ac4335bc8b6b63a5f70d4e88b Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Mon, 5 Jul 2021 10:41:41 +0200
Subject: [PATCH] L2SS-299: Disable B104: hardcoded bind to 0.0.0.0

---
 devices/tox.ini | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/devices/tox.ini b/devices/tox.ini
index 26738468d..18c6cda38 100644
--- a/devices/tox.ini
+++ b/devices/tox.ini
@@ -24,9 +24,13 @@ commands =
 ;    doc8 doc/source/ README.rst
     flake8
 
-[testenv:bandit]
+[testenv:bandit];
+; B104: hardcoded_bind_all_interfaces
+;           - We disable this warning as Docker serves as our firewall.
+;             It thus matters what interfaces Docker will bind our
+;             containers to, not what our containers listen on.
 commands =
-    bandit -r devices/ clients/ common/ examples/ util/ -n5 -ll
+    bandit -r devices/ clients/ common/ examples/ util/ -n5 -ll -s B104
 
 [flake8]
 filename = *.py,.stestr.conf,.txt
-- 
GitLab