Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Question - Using Proxies #153

Closed
EdgeSync opened this issue May 10, 2021 · 2 comments · Fixed by #156 or #159
Closed

Question - Using Proxies #153

EdgeSync opened this issue May 10, 2021 · 2 comments · Fixed by #156 or #159
Labels
API usage General API usage issues and questions question ❓ Further information is requested

Comments

@EdgeSync
Copy link
Contributor

Hi team,

I am not able to find anything in the documentation which details assigning a proxy for PyFalcon functionality.

Is there some way to assign a proxy, or do we need to use some other method?

def falcon_auth(self):
    authorization = FalconAuth.OAuth2(creds={
        "client_id": self.client_id,
        "client_secret": self.client_secret,
        },
        base_url=self.base_url)
        self.token = authorization.token()['"body"]["access_token"]
@jshcodes
Copy link
Member

Hi @EdgeSync -

Currently FalconPy is unaware of the existing proxy configuration, and should use whatever proxy is configured for regular TCP or HTTPS traffic from the machine executing the code.

Please note: FalconPy does have functionality for disabling SSL Verification should you need to offload SSL, have a legacy pinning solution in place, etc.

@EdgeSync
Copy link
Contributor Author

hey @jshcodes, thanks for the response.

Okay sure - thanks for the input. I wanted to make 100% sure it wasn't a feature somewhere that I missed. I think we can all be guilty of looking at documentation for too long and miss the obvious 😆

In case anyone also requires proxy configuration, you can get around the lack of proxy support in a number of ways, either by wrapping the PyFalcon function calls in an additional proxy library, or by setting the proxy using os.environ["http_proxy"] / os.environ["https_proxy"] variables, or having them already set in your environment variables before running the script.

@CrowdStrike CrowdStrike locked and limited conversation to collaborators May 10, 2021
@jshcodes jshcodes linked a pull request May 27, 2021 that will close this issue
1 task
@jshcodes jshcodes linked a pull request Jun 3, 2021 that will close this issue
1 task
@jshcodes jshcodes added the API usage General API usage issues and questions label Aug 2, 2021
@jshcodes jshcodes added the question ❓ Further information is requested label Dec 23, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
API usage General API usage issues and questions question ❓ Further information is requested
Projects
None yet
2 participants