No longer requires a URL for huntress seim

This commit is contained in:
Peter Annabel 2025-07-25 08:46:43 -05:00
parent 67eca02b7a
commit 9bf56f734b
2 changed files with 2 additions and 4 deletions

1
.gitignore vendored
View File

@ -209,3 +209,4 @@ __marimo__/
# Development files
managedsat_scratchpad.py
siem_scratchpad.py
.vscode/settings.json

View File

@ -24,7 +24,6 @@ class HuntressSIEMAPIClient(HuntressClient):
def __init__(
self,
siem_url: str,
publickey: str,
privatekey: str,
) -> None:
@ -32,11 +31,9 @@ class HuntressSIEMAPIClient(HuntressClient):
Initializes the client with the given credentials.
Parameters:
siem_url (str): URL of your Huntress SIEM instance.
publickey (str): Your Huntress SIEM API public key.
privatekey (str): Your Huntress SIEM API private key.
"""
self.siem_url: str = siem_url
self.publickey: str = publickey
self.privatekey: str = privatekey
self.token_expiry_time: datetime = datetime.now(tz=timezone.utc)
@ -100,7 +97,7 @@ class HuntressSIEMAPIClient(HuntressClient):
Returns:
str: API URL.
"""
return f"https://{self.siem_url}/v1"
return f"https://api.huntress.io/v1"
def _get_auth_key(self) -> str:
"""