Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CrowdStrikeURLProvider processor failing to download Crowdstrike Falcon #62

Open
K3ll3r opened this issue May 17, 2023 · 2 comments
Open

Comments

@K3ll3r
Copy link

K3ll3r commented May 17, 2023

I'm trying to use the CrowdStrikeFalcon recipe to pull the latest version of the Falcon sensor via the API. The authorization seems to work fine, and I'm able to generate an access token and find a matching build, but the curl fails and I get the error "Something went wrong assigning environment variables!"

Anyone else run into this?

CrowdStrikeURLProvider
{'Input': {'api_region_url': 'https://api.crowdstrike.com',
           'client_id': 'redacted',
           'client_secret': 'redacted',
           'policy_id': 'redacted'}}
CrowdStrikeURLProvider: Access Token:  'redacted'
CrowdStrikeURLProvider: Build version for matching Policy:  'redacted'
Traceback (most recent call last):
  File "~/Library/AutoPkg/RecipeRepos/com.github.autopkg.MLBZ521-recipes/CrowdStrike Falcon/CrowdStrikeURLProvider.py", line 174, in main
    download_url = f"{api_region_url}/sensors/entities/download-installer/v1?id={sha256}"
UnboundLocalError: local variable 'sha256' referenced before assignment
@MLBZ521
Copy link
Contributor

MLBZ521 commented Aug 8, 2023

Hello @K3ll3r, sorry for the delayed response. Were you able to track this down? I haven't been seeing any issues in my runs...

For the sha256 variable to not be assigned, either a matching version was not found. Currently, as the Processor is written, there isn't really any way to determine what's going on without editing it debug the issue.

@justN0fun
Copy link

@K3ll3r In case this helps anyone else, I had the same issue. I updated to the latest CrowdStrike Falcon.download and I also had to update my POLICY_ID. The existing ID I had used in the past no longer existed in my CS account. Once I did both steps, I could run the download again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants