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

[bitnami/sonarqube] Add ability to configure proxy settings for sonar.properties #54720

Closed
Natgho opened this issue Jan 12, 2024 · 4 comments
Closed
Assignees
Labels
feature-request solved sonarqube stale 15 days without activity triage Triage is needed

Comments

@Natgho
Copy link

Natgho commented Jan 12, 2024

Name and Version

bitnami/sonarqube:latest

What is the problem this feature will solve?

Reference issue: #1036
Currently one hast to mount the conf file and edit it manually. Since other options of this file can already be configured, this would make life easier.

What is the feature you are proposing to solve the problem?

Add environment variables and do replacements accordingly.

The sonar.properties currently includes the following proxy settings:

# HTTP proxy (default none)
#http.proxyHost=
#http.proxyPort=
# HTTPS proxy (defaults are values of http.proxyHost and http.proxyPort)
#https.proxyHost=
#https.proxyPort=

# NT domain name if NTLM proxy is used
#http.auth.ntlm.domain=

# SOCKS proxy (default none)
#socksProxyHost=
#socksProxyPort=

# Proxy authentication (used for HTTP, HTTPS and SOCKS proxies)
#http.proxyUser=
#http.proxyPassword=

# Proxy exceptions: list of hosts that can be accessed without going through the proxy
#                   separated by the '|' character, wildcard character '*' can be used for pattern matching
#                   used for HTTP and HTTPS (default none)
#                   (note: localhost and its literal notations (127.0.0.1, ...) are always excluded)
http.nonProxyHosts=

What alternatives have you considered?

No response

@github-actions github-actions bot added the triage Triage is needed label Jan 12, 2024
@adrianmusante
Copy link

I don't know if all the properties can be set from JAVA_OPTS but I used the proxy properties and this works for me. For example:

SONARQUBE_CE_JAVA_ADD_OPTS=-Dhttp.proxyHost=my-proxy -Dhttp.proxyPort=3128 -Dhttps.proxyHost=my-proxy -Dhttps.proxyPort=3128 -Djava.net.useSystemProxies=true -Dhttp.nonProxyHosts=localhost|127.*|[::1]|sonarqube|sonarqube_db
SONARQUBE_WEB_JAVA_ADD_OPTS=-Dhttp.proxyHost=my-proxy -Dhttp.proxyPort=3128 -Dhttps.proxyHost=my-proxy -Dhttps.proxyPort=3128 -Djava.net.useSystemProxies=true -Dhttp.nonProxyHosts=localhost|127.*|[::1]|sonarqube|sonarqube_db
HTTP_PROXY=http://my-proxy:3128
HTTPS_PROXY=http://my-proxy:3128
NO_PROXY=localhost,127.0.0.1,sonarqube,sonarqube_db

Note: The variables HTTP_PROXY,HTTPS_PROXY and NO_PROXY are optionals for your case.

@javsalgar javsalgar changed the title Add ability to configure proxy settings for sonar.properties [bitnami/sonarqube] Add ability to configure proxy settings for sonar.properties Jan 15, 2024
@javsalgar
Copy link
Contributor

Hi!

Thank you so much for the feature request. I will forward this to the engineering team, but as this is not a critical feature we cannot guarantee an ETA. However, if you want to speed up the process, would you like to submit a PR?

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Jan 31, 2024
Copy link

github-actions bot commented Feb 5, 2024

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot added the solved label Feb 5, 2024
@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request solved sonarqube stale 15 days without activity triage Triage is needed
Projects
None yet
Development

No branches or pull requests

4 participants