Is it possible to write a script that would intercept HTTP requests on HAproxy with the purpose of appending client side pki certificates?

与世无争的帅哥 提交于 2019-12-11 15:45:04

问题


I am a test engineer that is new to the game - 3 years experience - so sorry if I am not coming across as a technical wizard :) Would ask that you be patient with me, I'm also here to learn so happy to be corrected/ridiculed.

Due to the sensitivity of our applications, we are working with client side PKI certificates. These need to be loaded by the user into the browser if the application can be accessed. I was wondering if it would be possible that instead of having to import test certificates into the test browser we could instead append our test user pki certificates using HAproxy? Which we could then use to forward on the request to the applications reverse proxy?

A bit more context, we are looking to possibly move from Selenium to Cypress.io. Selenium is able to load the certificates into the browser in a @before test setup. Sadly Cypress doesn't play nice even when PKI certificates are manually loaded into the Cypress.IO chrome browser. I have included a link to someone who has the exact same problem below.

cypress - 403 forbidden error when visiting main site

As a team we all really like Cypress but we fear this could be a blocker. I feel like if it was possible to do what I proposed with HAproxy then this could be a solid work around for our lower test environments.

来源:https://stackoverflow.com/questions/52107474/is-it-possible-to-write-a-script-that-would-intercept-http-requests-on-haproxy-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!