Skip to content

cert-shifter starts failing is not run within 24 hours of an update #5

Description

@dlangille

The find used by cert-shifter checks for changes which occurred in the past 24 hours (1 d)

see https://github.com/dlangille/anvil/blob/master/cert-shifter#L31

DIRS=`${FIND} ${CERT_SRC} -mtime -1 -type d -d 1`

I had a power outage and the server did not come back up within that 1 day period.

I suspect the power outage occurred after the certs had been renewed, but before they were copied over to the destination.

I solved it by changing from -mtime 1 to -mtime 70

Why 70? Why so large? This thing takes a long time to surface. You wouldn't notice until cert renewal time comes around (these are valid for 90 days). When my Nagios check start saying < 28 days left.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions