Majic Projects
Majic Ansible Roles
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png Majic Ansible Roles / Closed Enhancement MAR-133 Improve output for certificate validity checks
Go to the next issue (open or closed)
Go to the next open issue
There are no more issues in that direction.
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Enhancement
  • Category
    Not determined
  • Targetted for
    3.0.0
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    4 hours
  • Time spent
    2 hours
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description

The common role deploys a helper script that can verify validity of certificates - check_certificate.sh. This certificate is in turn invoked via a crontab, and in case there is output, a mail will end-up being sent to the local root account (as per standard cron daemon configuration).

However, there is a couple of annoyances when the script is used:

  • If certificates have been specified for validation, the script will produce warnings. This results in spurious mails being sent out for servers where no certificate checks should be performed.
  • Expiration check will output just the expiration date, while it might be useful to actually produce information in a more human-readable format as well (e.g. certificate expires in 2 days).
  • Even when all checks are passing, a mail will end-up being sent out, since the script reports certificates that pass the check as well. This might reduce readability and administrator has to pay attention to each mail sent.

The following should be done:

  • Change message level to INFO when informing user that no certificates have been configured for checks.
  • Show estimate of how soon the certificate expires in more human-readable format (e.g. "in 2 days") - in addition to absolute date. Granularity in days should be sufficient.
  • Introduce "quiet" mode (option -q) that will only output warnings and errors (hiding any other messages). This should reduce number of mails being sent out, and make it clear what certificates need to be handled.
Todos (0 / 0)
There are no comments