Compare commits
1
Commits
main
...
agent-node
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9b41c7bcd |
+3
-3
@@ -14,10 +14,10 @@ class FirewallAuditor:
|
|||||||
self.table = "crowdsec"
|
self.table = "crowdsec"
|
||||||
self.set_name = "0.0.0.0/0-cscli"
|
self.set_name = "0.0.0.0/0-cscli"
|
||||||
self.API_KEY = os.getenv("BOUNCER_KEY")
|
self.API_KEY = os.getenv("BOUNCER_KEY")
|
||||||
self.TRITON = "triton.beane.me"
|
self.ZEPHYRUS = "zephyrus.beane.me"
|
||||||
|
|
||||||
def get_remote_lapi_truth(self):
|
def get_remote_lapi_truth(self):
|
||||||
url = f"https://{self.TRITON}:8081/v1/decisions"
|
url = f"https://{self.ZEPHYRUS}:8080/v1/decisions"
|
||||||
headers = {"X-Api-Key": self.API_KEY}
|
headers = {"X-Api-Key": self.API_KEY}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -46,7 +46,7 @@ class FirewallAuditor:
|
|||||||
return truth_map
|
return truth_map
|
||||||
|
|
||||||
except requests.exceptions.ConnectTimeout:
|
except requests.exceptions.ConnectTimeout:
|
||||||
logging.error("Connection to Triton timed out. Check if port 8081 is open on Triton's firewall.")
|
logging.error("Connection to Zephyrus timed out. Check if port 8080 is open on Zephyrus's firewall.")
|
||||||
return {}
|
return {}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"LAPI Sync Error: {e}")
|
logging.error(f"LAPI Sync Error: {e}")
|
||||||
|
|||||||
Reference in new issue
Block a user