Giter Site home page Giter Site logo

Comments (5)

kisom avatar kisom commented on August 18, 2024

This is really interesting --- I'd never really considered the use case where certmgr was a library.

To address the points:

  1. Easy enough. The only thing I really worry about it is dependencies disappearing from Github, but the risk is low because only the prometheus library and cobra/viper packages are the external dependencies.
  2. This should also be relatively straightforward.
  3. This could be done by having a different function to return an initialised manager.

letting them pass in configuration via function parameters.

What does that look like?

from certmgr.

cbroglie avatar cbroglie commented on August 18, 2024

Could you just migrate to dep for 1?

from certmgr.

kisom avatar kisom commented on August 18, 2024

@cbroglie Indeed.

from certmgr.

kisom avatar kisom commented on August 18, 2024

@andrewplunk One thing that occurs to me, have you tried using the CFSSL transport package? certmgr is essentially a UI on top of this, so it might be useful, too.

from certmgr.

andrewplunk avatar andrewplunk commented on August 18, 2024

@kisom

letting them pass in configuration via function parameters.

What does that look like?
I would like my clients to provide my library with the CA label and auth key required to provision certs from the transport. I would then configure certmgr with my own svcmgr.Manager implementation to handle reloading the tls.GetClientCertificate/tls.GetCertificate's caches as necessary.

@andrewplunk One thing that occurs to me, have you tried using the CFSSL transport package? certmgr is essentially a UI on top of this, so it might be useful, too.

You're totally right I could build this on top of the CFSSL transport package. I will do so if you don't think that certmgr makes sense as a library.

from certmgr.

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.