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

Running AZQR behind a proxy #291

Open
bpons-mir opened this issue Jan 8, 2025 · 3 comments
Open

Running AZQR behind a proxy #291

bpons-mir opened this issue Jan 8, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@bpons-mir
Copy link

Expected Behavior

When running azrq, it should take system proxy.

Actual Behavior

Apparently, it does not take proxy settings into account.

Steps to Reproduce the Problem

Run azqr on a server behind a proxy.

@cmendible
Copy link
Member

Can you please run with the --debug flag and share the error?

@cmendible cmendible added the bug Something isn't working label Jan 8, 2025
@cmendible cmendible self-assigned this Jan 8, 2025
@bpons-mir
Copy link
Author

@cmendible here is the output:

2025-01-08T14:29:15+01:00 DBG Debug logging enabled
2025-01-08T14:30:40+01:00 FTL Failed to list subscriptions error="Get \"https://management.azure.com/subscriptions?api-version=2016-06-01\": dial tcp 4.150.241.10:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."

@cmendible
Copy link
Member

I just tested with a proxy (tinyproxy), and it works as expected as long as the proxy does not block the urls or domains required by azqr

For instances using the following tinyproxy filter configuration, which blocks the connection to the specified domains:

management.azure.com

Running azqr:

https_proxy=127.0.0.1:8080 http_proxy=127.0.0.1:8080 ./azqr scan --debug

Fails with the following error:

2025-01-08T15:05:31+01:00 DBG Debug logging enabled
2025-01-08T15:05:32+01:00 FTL Failed to list subscriptions error="Get \"https://management.azure.com/subscriptions?api-version=2016-06-01\": Filtered"

Please check your proxy logs or configuration to understand if it is blocking calls to management.azure.com which is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants