Skip to content

Commit

Permalink
Merge pull request #426 from carlosmmatos/carlosmmatos/issue425
Browse files Browse the repository at this point in the history
feat: add user-agent string for EDA
  • Loading branch information
redhatrises authored Oct 17, 2023
2 parents 144d395 + 8d647c8 commit 70c0142
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion extensions/eda/plugins/event_source/eventstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
"us-gov-1": "https://api.laggar.gcw.crowdstrike.com",
}

# Keep this in sync with galaxy.yml
VERSION = "4.1.3"


class AIOFalconAPI:
"""An asynchronous API client for the CrowdStrike Falcon Event Stream API.
Expand Down Expand Up @@ -114,7 +117,9 @@ def __init__(
self.client_id = client_id
self.client_secret = client_secret
self.base_url = base_url or self.BASE_URL
self.session = aiohttp.ClientSession()
self.session = aiohttp.ClientSession(headers={
"User-Agent": f"crowdstrike-ansible/eda/{VERSION}"
})

async def close(self: "AIOFalconAPI") -> None:
"""Close the aiohttp session."""
Expand Down
2 changes: 1 addition & 1 deletion plugins/module_utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
__metaclass__ = type

# Make sure to keep this file in sync with the version in the galaxy.yml
__version__ = "4.0.0"
__version__ = "4.1.3"
__author__ = "CrowdStrike"
__email__ = "cloud-integrations@crowdstrike.com"

0 comments on commit 70c0142

Please sign in to comment.