what are you trying to achieve
Send data to our sonarqube instance
what have you tried so far to achieve this HTTP header
Hello!
Our sonarqube instance is behind a firewall, and to pass it, we need to add a x-* header with every request. The sonarqube scan is running in circleci.
I’ve tried to enable the sso headers, but those don’t seem to do anything.
What are ways I can add that header to all outgoing requests? Thanks.
I have the exact same request; is there any progress on that request? Can we have a feedback?
In our case, we use a SonarQube server with a Developer license inside a Kubernetes cluster.
To access this instance, our company IT has configured the NetScaler with a link to an EntraID/SAML. To bypass this for our sonar scaner (we use a token) in CI, thet ask us for security reason to provide a dedicated token in HTTP headers.
Regards,
Chris
PS: This was also more or less related to these posts. Having a way to add HTTP headers is really mandatory for a professional infrastructure:
As a follow-up, we solved this issue by flipping it on its head and having CI runners use dedicated, known, IPs, which we then allowed to pass into our firewalled environment. I hope this helps!
We have a similar problem, as we’re running our instance behind an Identity Aware Proxy.
We’ve ended up implementing quite a complex workaround in our GitHub actions (running a temporary instance of nginx proxy and then piping requests to Sonar with auth headers added there) but the ideal solution would be config in SonarScanner like -Dproxy.addHeader=Proxy-Authorization=…