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

Add http proxy feature #327

Open
nitek29 opened this issue Jun 2, 2023 · 3 comments
Open

Add http proxy feature #327

nitek29 opened this issue Jun 2, 2023 · 3 comments
Assignees

Comments

@nitek29
Copy link

nitek29 commented Jun 2, 2023

Hello,
I'm trying to deploy Akto behind a proxy.
I've configured http_proxy and https_proxy var env but it doesn't seem to work.
Is it possible to support http proxy natively?

@ankush-jain-akto
Copy link
Contributor

Hi @nitek29

You should be able to access Akto behind a proxy. Can you please list here the exact steps that you did? And the error that you face?

@nitek29
Copy link
Author

nitek29 commented Jun 6, 2023

Hi @ankush-jain-akto,
I deployed 4 docker in 4 vms on openstack :

  1. [akto-api-security-dashboard] docker run -e AKTO_MONGO_CONN=mongodb://akto-mongo.myapp.com:8080/admini -e AKTO_CONFIG_NAME=staging -e AKTO_ACCOUNT_NAME=Helios -e AKTO_TRAFFIC_BATCH_SIZE=100 -e AKTO_TRAFFIC_BATCH_TIME_SECS=10 -e DASHBOARD_MODE=local_deploy -e USE_HOSTNAME=true -e PUPPETEER_REPLAY_SERVICE_URL=http://akto-puppeteer-replay.myapp.com:8080 -e http_proxy=http://proxy.myapp.com:3128 -e https_proxy=http://proxy.myapp.com3128 --restart always -p 8080:8080 aktosecurity/akto-api-security-dashboard:latest
  2. [akto-puppeteer-replay] docker run -p 8080:3000 --restart always aktosecurity/akto-puppeteer-replay:latest
  3. [akto-api-testing] docker run -e AKTO_MONGO_CONN=mongodb://akto-mongo.myapp.com:8080/admini -e AKTO_CONFIG_NAME=staging -e AKTO_ACCOUNT_NAME=Helios -e AKTO_TRAFFIC_BATCH_SIZE=100 -e AKTO_TRAFFIC_BATCH_TIME_SECS=10 -e DASHBOARD_MODE=on_prem -e USE_HOSTNAME=true -e PUPPETEER_REPLAY_SERVICE_URL=http://akto-puppeteer-replay.myapp.com:8080 -e http_proxy=http://proxy.myapp.com:3128 -e https_proxy=http://proxy.myapp.com:3128 --restart always -p 8080:8080 aktosecurity/akto-api-testing:latest
  4. [akto-mongo] docker run --mount source=mongodata,target=/data/db -e http_proxy=http://proxy.myapp.com:3128 -e https_proxy=http://proxy.myapp.com:3128 --restart on-failure:10 -p 8080:27017 mongo:6.0.1

Akto try to connect to github.com
[pool-2-thread-1] ERROR com.akto.listener.InitializerListener - failed to read file java.net.UnknownHostException: raw.githubusercontent.com

@ankush-jain-akto
Copy link
Contributor

Hi @nitek29 - this has been taken up. @mayankesh-akto is working on it.
You reported this issue a long ago, but is it possible to get more details on your requested functionality?

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