jenkinsci / gitlab-branch-source-plugin

A Jenkins Plugin for GitLab Multibranch Pipeline jobs and Folder Organization
https://plugins.jenkins.io/gitlab-branch-source
MIT License
123 stars 93 forks source link

self signed certificate #172

Open danseo-reisys opened 2 years ago

danseo-reisys commented 2 years ago

Jenkins and plugins versions report

Environment ```text Paste the output here ```

What Operating System are you using (both controller, and any agents involved in the problem)?

no option to ignore cert error. we use self signed certificate.

Reproduction steps

in jenkins system configuration, this plugin configuration option does not include ignoring cert error. is there a plan to add this option?

Expected Results

.

Actual Results

.

Anything else?

.

lancherider commented 2 years ago

I have this question as well. Would like to be able to ignore cert errors like in the plugin gitlab-plugin so that we can run tests against our dev gitlab instance which has a self signed cert

jetersen commented 2 years ago

I would always recommend importing the certificate into the JVM.

Would hate to add an option to ignore certificates cause it can be easily misused. Adapt your runtime not the library 😉

danseo-reisys commented 1 year ago

we are using jenkins helm chart to run on azure kubernetes. what is the best way to import the CA certs to jenkins master JVM? not able to find any reference on that.

jetersen commented 1 year ago

@danseo-reisys three options extend the container image to include your certificate see linked article below.

or use customInitContainers or use volumes and overrideArgs together with -Djavax.net.ssl.trustStore args

https://medium.com/expedia-group-tech/how-to-import-public-certificates-into-javas-truststore-from-a-browser-a35e49a806dc