Giter VIP home page Giter VIP logo

Comments (7)

gabemontero avatar gabemontero commented on July 21, 2024

Per https://github.com/openshift/jenkins-plugin#certificates-and-encryption you should already be able to put the contents of your x509 PEM files in CA_CERT env var / build parameter. This will override what is read in from "/run/secrets/kubernetes.io/serviceaccount/ca.crt".

Please try that. If there are issues in doing that we can reopen this issue and diagnose.

thanks

from jenkins-plugin.

dnguyen9 avatar dnguyen9 commented on July 21, 2024

@gabemontero Gabe - Yes process outlined in your document works for us. The concern is that the certs have a shelf life and the preference is use the linux managed certificates (example - /etc/pki/tls/certs/ca-bundle.crt). The linux managed certificates renewal is managed by the OS

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

ah - yeah, OK that makes sense @dnguyen9

There are a couple of ways to go about it. A new env var along the same lines as CA_CERT is quick and easy enough.

We've also got requirements on the back burner to leverage the jenkins credentials support. I think you can point those to specific cert files.

The other point to mention is that we have started putting more focus on the plugin at https://github.com/openshift/jenkins-client-plugin
Among other things, it already allows for integration with jenkins credentials. Have you looked at that / would that one work for you as well?

@bparees FYI ... also, thoughts on the quick/easy CA_CERT_FILE tweak?

from jenkins-plugin.

bparees avatar bparees commented on July 21, 2024

@gabemontero you're proposing we would have a hierarchy of:

  1. if $CA_CERT is set, use that
  2. if $CA_CERT_FILE is set, use the file at that location
  3. if none of the above, use the file at the CERT_FILE constant path (/run/secrets/....)

?

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

from jenkins-plugin.

bparees avatar bparees commented on July 21, 2024

if it works for @dnguyen9 i'm ok with it. Agree the precedence could go either way, I guess I don't have a strong opinion.

from jenkins-plugin.

dnguyen9 avatar dnguyen9 commented on July 21, 2024

That works for me! Not strong preference either way.

from jenkins-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.