Skip to content

Commit 78ec26e

Browse files
committed
Remove support for old falco integration
Remove support for endpoints that managed the pre-secure integration of falco rules into the agent. This was removed from the agent in 0.70.0.
1 parent eb07cff commit 78ec26e

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

sdcclient/_client.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,32 +1769,6 @@ def get_metrics(self):
17691769
return [False, self.lasterr]
17701770
return [True, res.json()]
17711771

1772-
def get_falco_rules(self):
1773-
res = requests.get(self.url + '/api/agents/falco_rules', headers=self.hdrs, verify=self.ssl_verify)
1774-
if not self._checkResponse(res):
1775-
return [False, self.lasterr]
1776-
data = res.json()
1777-
return [True, data]
1778-
1779-
def set_falco_rules_content_raw(self, raw_payload):
1780-
res = requests.put(self.url + '/api/agents/falco_rules', headers=self.hdrs, data=json.dumps(raw_payload), verify=self.ssl_verify)
1781-
if not self._checkResponse(res):
1782-
return [False, self.lasterr]
1783-
return [True, res.json()]
1784-
1785-
def set_falco_rules_content(self, filter, rules_content):
1786-
payload = { "files" : [ { "filter": filter, "content": rules_content} ] }
1787-
return self.set_falco_rules_content_raw(payload)
1788-
1789-
def set_falco_rules_filename(self, filter, rules_filename):
1790-
with open(rules_filename, 'r') as f:
1791-
rules_content = f.read()
1792-
return self.set_falco_rules_content(filter, rules_content)
1793-
1794-
def clear_falco_rules(self):
1795-
data = {'files' : []}
1796-
return self.set_falco_rules_content_raw(data)
1797-
17981772

17991773
# For backwards compatibility
18001774
SdcClient = SdMonitorClient

0 commit comments

Comments
 (0)