Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 90 day test certs in temporal shard window #128

Merged

Conversation

andygabby
Copy link
Member

Change the behavior of the test certificate generation to always create a
90 day certificate, and make sure it falls in the temporal shard window if
one is defined. If issuing a certificate for a current temporal shard
(where the system time + 90d NotAfter lands in the temporal window),
then generate a certifcate based on the current time. If generating a
certificate for a past or future temporal shard, then generate a 90d
certificate that falls in that window.

In addition, fix failing CI with updates and lint fixes:

  • Update golangci-lint
  • Add the ability to run tests and lint manually in GitHub Actions
  • Add lint exclusions
  • Fix misspelling
  • Remove duplicate tls import

Fixes #127

Change the behavior of the test certificate generation to always create a
90 day certificate, and make sure it falls in the temporal shard window if
one is defined. If issuing a certificate for a current temporal shard
(where the system time + 90d `NotAfter` lands in the temporal window),
then generate a certifcate based on the current time. If generating a
certificate for a past or future temporal shard, then generate a 90d
certificate that falls in that window.

Fixes letsencrypt#127
* Update golangci-lint
* Add the ability to run tests and lint manually in GitHub Actions
* Add lint exclusions
* Fix misspelling
* Remove duplicate tls import
aarongable
aarongable previously approved these changes Apr 3, 2023
Copy link
Contributor

@aarongable aarongable left a comment

Choose a reason for hiding this comment

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

LGTM modulo three minor comments

.golangci.yaml Outdated Show resolved Hide resolved
pki/certs.go Outdated Show resolved Hide resolved
pki/certs.go Outdated Show resolved Hide resolved
@andygabby andygabby merged commit 8cfebe7 into letsencrypt:main Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

windowStart and windowEnd are not being respected when issuing test certificates
2 participants