Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Improve cert template function expiry behavior #1078

Conversation

laverya
Copy link
Member

@laverya laverya commented Oct 18, 2019

What I Did

Certificates now have a default expiry of two years, instead of one. If an existing cert or a CA will expire within 6 months of Ship being run, the cert will be regenerated or the CA will be renewed.

How I Did it

Changed the certificate request code to include a duration other than the default of 1 year.
Changed the certificate/CA read code to check expiration dates and regenerate things as required.

How to verify it

New unit tests

Description for the Changelog

Generated certificates now have a validity period of two years
If a generated certificate will expire within 6 months of ship being run, it will be regenerated to extend the validity period

Picture of a Ship (not required but encouraged)

USS Gerald R. Ford (CVN-78)

@laverya laverya requested a review from areed October 18, 2019 22:12
Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 9800 lines exceeds the maximum allowed for the inline comments feature.

@laverya laverya merged commit 813a93f into replicatedhq:master Oct 18, 2019
@laverya laverya deleted the improve-cert-template-function-expiry-behavior branch October 18, 2019 22:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants