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

feat: add proxy authentication to schema registry #2139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tiboun
Copy link

@tiboun tiboun commented Jan 24, 2022

Add new property for schema registry (proxy.user and proxy.password) in order to authenticate with proxy requiring authentication. The authentication rely on Authenticator which is globally set and configuration of the RestService will be a replace of the globally set configuration.

http proxy with authentication has been disabled by default since JDK8.111 and in order to reach https, system property must be set to empty :

  • jdk.http.auth.tunneling.disabledSchemes
  • jdk.http.auth.proxying.disabledSchemes

System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
System.setProperty("jdk.http.auth.proxying.disabledSchemes", "");

This code has been tested by using fiddler has a proxy with authentication requirement and by using HttpURLConnection with my corporate network with the same Authenticator code.

No unit tests has been written though. I'm waiting for an answer of mock-service. See #2137. This PR close #2137.

Add new property for schema registry (proxy.user and proxy.password) in order to authenticate with proxy requiring authentication. The authentication rely on Authenticator which is globally set and configuration of the RestService will be a replace of the globally set configuration.

http proxy with authentication has been disabled by default since JDK8.111 and in order to reach https, system property must be set to empty :
 - jdk.http.auth.tunneling.disabledSchemes
 - jdk.http.auth.proxying.disabledSchemes

System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
System.setProperty("jdk.http.auth.proxying.disabledSchemes", "");
@cla-assistant
Copy link

cla-assistant bot commented Sep 25, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Successfully merging this pull request may close these issues.

No support of proxy with required authentication
1 participant