debops.pki
This project adheres to Semantic Versioning and human-readable changelog.
- [drybjed] - Maciej Delmanowski (role maintainer)
- [ypid] - Robin Schneider
- The session token is now generated using
sha256
hashing algorithm instead ofMD5
. [drybjed] - Move the copyright information to a
COPYRIGHT
file in the main directory. [drybjed] - Move the example playbook to an external, separate file. [drybjed]
- Ensure that highly sensitive files are not checked into version control when for example :program:`etckeeper` is used for tracking changes in :file:`/etc`. Note that sensitive files which are already tracked by version control will need to be manually deleted from version control history! Refer to :envvar:`pki_vcs_ignore_patterns_role` for more details. [ypid]
- Convert Changelog to the new format. [drybjed]
- The PKI session token is now generated once for all hosts, by delegating the task to Ansible Controller. This fixes a bug with Ansible Playbook runs on multiple hosts at once, where only one host would receive the signed certificates at a time. [drybjed]
- Documentation fixes and improvements. Made variables hyperlinks using the any role in Sphinx which also ensures that variables which the documentation refers to actually exist. [ypid]
- Assert that required dependencies are met. [ypid]
- Use
pki_ca_library
variable to select correct crypto library for assertion. [drybjed] - Don't assert crypto library version or
bash
version on Ansible Controller if no internal Certificate Authority is enabled. In this case they are not relevant fordebops.pki
operation. [drybjed]
- Expose the list with order of authority preference used by a PKI realm to select active valid certificate in role default variables. [drybjed]
- Add support for creation of self-signed certificates when internal CA is disabled. This enables proper operation of other services like :program:`nginx`, which can then be used to request and authenticate ACME certificates. [drybjed]
- Add support for setting filesystem ACL entries for private directories and files. [drybjed]
- Include realms defined in :any:`pki_default_realms` in tasks that copy files from Ansible Controller depending on an Ansible inventory group. [drybjed]
- Documentation improvements. Fixed examples, spelling, grammar and Sphinx inline syntax. [ypid]
- Don’t rely on the value of the special variable
omit
for having a high enough entropy (or any entropy at all) to use it as PKI session token. Although usage of theomit
variable for this use case is quite creative and has been suggested by one of the Ansible core developers, it is believed that this does not meet the quality and maintainability standards of the DebOps project. Now therandom
Jinja filter is used as random source which is more explicit, has a proper entropy and is less hacky. [ypid] - Honor the value of
ansible_local.root.lib
. Previously, using another value than :file:`/usr/local/lib` would have broken the role. [ypid] - Only use
pki_fact_lib_path
inside of quotes as this value could contain whitespace characters. [ypid]
- Convert ACME intermediate certificate from DER to PEM format automatically. [drybjed]
- Make sure that role works with older
debops.nginx
deployments, which didn't support ACME integration. [drybjed]
- Don't run :program:`pki-authority` script on Ansible Controller if list of :any:`pki_authorities` is not defined. [drybjed]
Use a more portable "shebang" string in Bash scripts. [drybjed]
Provide a portable
dnsdomainname
alternative function which works on operating systems without the former command present. [drybjed]Use short :command:`hostname -f` argument for portability. [drybjed]
Update support for
subjectAltName
extension in certificates. Currently only IP addresses, DNS records, URI paths and emails are supported. [drybjed]Document
pki_realms
lists. [drybjed]Redesign the :file:`secret/pki/ca-certificates/` directory. It's now based on Ansible inventory groups and allows distribution of CA certificates to all hosts, specific host groups, or specific hosts. [drybjed]
Don't update symlinks if the target is correct. [drybjed]
Split file signature creation and verification. This allows checking if the file signature is correct without updating it, so that it can be performed at different stages of the script. [drybjed]
Make sure that request generation works without subdomains and SANs present. [drybjed]
Automatically reset incomplete internal certificate requests.
If a signed certificate does not exist in the realm and internal certificates are enabled, something must have gone wrong with the certificate signing. To make it easier, generated configuration file and CSR are removed so that they can be recreated further in the script with current session token and not rejected by the internal CA. [drybjed]
Change the way ACME intermediate CA certificate is downloaded.
Instead of using a static URL to download an intermediate certificate, :program:`pki-realm` script will now check the signed certificate for the "CA Issuers" URI and download the certificate using it. The URI is stored and used later to check if the new certificate has the same or different URI, to not download the intermediate certificate every time the :program:`pki-realm` script is run. [drybjed]
Slight changes in certificate chaining logic, to ensure that when certificates are changed, all generated chained certificate files are correctly updated. [drybjed]
- Replace the example hook script with something that actually works. [drybjed]
- Fix deprecation warnings in Ansible 2.1.0. [drybjed]
- Add support for Diffie-Hellman parameters appended to certificate chains. DHE
parameters are managed by
debops.dhparam
Ansible role. [drybjed]
- When an active authority directory is changed, correctly clean up files not present in the new authority directory and symlinks without existing targets. [drybjed]
- Do not enable PKI support on remote hosts without defined domain. Without this applications try to use non-existent X.509 certificates and fail. [drybjed]
- Make system PKI realm selection idempotent. Now, if another role changes the
default system realm, running
debops.pki
role without that override will keep the realm specified in Ansible local facts. [drybjed] - Make sure that CA organization is non-empty. If a host domain is not
configured correctly, hostname will be used instead. This makes some of the
URLs in created CA certificates incorrect, but the
debops.pki
role works fine otherwise, and internal Certificate Authorities are easy to recreate with correct configuration. [drybjed] - Change the file tracked by the PKI realm creation task to be the realm private key instead of the certificate. This allows for realms that only contain Root CA certificates and does not create idempotency issues. [drybjed]
- Do not create a :program:`cron` task when support for PKI is disabled on a host. [drybjed]
- Update old README with new documentation. [drybjed]
- Replace old
debops.pki
role with a new, redesigned version. Some additional code, variable cleanup and documentation is still missing, but role is usable at this point. [drybjed]
- Add Changelog. [drybjed]
- Blacklist CNNIC Root CA following the Google decision to remove CNNIC from their Root CA store. [drybjed]
- Add support for managing the list of active Root CA Certificates in :file:`/etc/ca-certificates.conf`. Current set of active Root CA Certificates is preserved. [drybjed]
- Add a way to copy arbitrary files from Ansible Controller to remote host PKI directories. [drybjed]
- Expose
ansible_fqdn
variable as :any:`pki_fqdn` so that it can be overridden if necessary. [drybjed]
- Reorder Changelog entries. [drybjed]
- Remove Diffie-Hellman parameter support from the role, it's now managed by
a separate
debops.dhparam
Ansible role. Existing hosts won't be affected. [drybjed]