Giter VIP home page Giter VIP logo

Comments (7)

drybjed avatar drybjed commented on July 19, 2024

Sure, you can disable the internal CA and certificates, and deployment of external and ACME certificates should still occur. Set in inventory:

pki_internal: False
pki_authorities: []

It might not be everything that needs to be set, but I think that should do the trick. The result should be that the private key and certificate requests is still performed on the remote hosts (Debian, presumably) so ACME requests and overall PKI structure should work there. I'm not sure about pki-authority not working on MacOS X in this case, so that needs to be tested. It could be modified to avoid problematic code if possible.

from ansible-pki.

carlalexander avatar carlalexander commented on July 19, 2024

Ok, I'll try those options and report back!

from ansible-pki.

drybjed avatar drybjed commented on July 19, 2024

Ah, I forgot. When you disable internal certificates, you will need to provide some external certificates beforehand, otherwise other roles will most definitely break - support for debops.pki is still enabled in Ansible facts, but certificate files aren't there anymore. This is a bootstrapping issue which internal certificates and internal CA is trying to solve. If you want to disable that, well, there's nothing else the role could do besides generating self-signed certificates on the remote hosts themselves, which is kinda meh.

from ansible-pki.

carlalexander avatar carlalexander commented on July 19, 2024

Which roles would break?

from ansible-pki.

drybjed avatar drybjed commented on July 19, 2024

In the common playbook, I imagine that Postfix itself would start fine, but not sure if mail delivery will work. Otherwise, right now no other roles use certificates, but that will most likely change - for example I want to enable encrypted log distribution in debops.rsyslog at some point.

As for other plays and roles, that depends. If it's a service that can be published and accessed on the network, it most likely has support for debops.pki certificates.

In that case I would probably split the deployment into three phases:

  • create the required secret directories using debops service/pki --tags role::pki:secret
  • put the private keys and certificates in the created directories in secret/
  • run debops command normally as needed

This way, the debops.pki role should get the provided private keys and certificates immediately, and that will most likely make other roles work correctly.

from ansible-pki.

carlalexander avatar carlalexander commented on July 19, 2024

Changing the two options seems to have done the trick. I don't seem to have found any issues with any of the roles so far. I have still a few more tests to run.

from ansible-pki.

carlalexander avatar carlalexander commented on July 19, 2024

This has been working really well so far. Let's Encrypt works fine as well. @drybjed's addition of self-signed certificates also helped a lot. I'm going to close this in favor of specific issues (like #62) as they arise.

from ansible-pki.

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.