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

Moving and shakin #23

Open
wants to merge 12 commits into
base: 5.1.x
Choose a base branch
from
Open

Conversation

zendern
Copy link
Collaborator

@zendern zendern commented Jun 24, 2020

Fixes #12

Instead of doing everything post app startup we can move some things into pre-app startup.

Things moved to happen at StartupEvent event:

  1. Login and ordering a certificate if needed
  2. If cert already downloaded and ready to be used, set it up here before any requests can make it into the server

Things that cannot be moved and will happen at ApplicationStartupEvent event:

  1. Authorizations, reason this cannot be moved is because it needs to be
    able to respond from requests from the ACME server.

zendern and others added 8 commits June 20, 2020 22:00
acme-cli is no longer a thing so point to micronaut-starter and Micronaut Launch instead.
Instead of doing everything post app startup we can move some things
into pre-app startup.

Things moved:
1. Login and ordering a certificate if needed
2. If cert already downloaded and ready set it up

Things that cannot be moved:
1. Authorizations, reason this cannot be moved is because it needs to be
able to respond from requests from the ACME server.
@zendern zendern requested a review from jameskleeh June 24, 2020 02:04
public void orderCertificate(List<String> domains) throws AcmeException {
AtomicInteger orderRetryAttempts = new AtomicInteger(acmeConfiguration.getOrder().getRefreshAttempts());

public Order orderCertificate(List<String> domains) throws AcmeException {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a breaking change. The original method signature must remain intact. You can create a new method for this purpose

@alvarosanchez alvarosanchez linked an issue Jul 27, 2020 that may be closed by this pull request
@alvarosanchez alvarosanchez added the type: bug Something isn't working label Jul 27, 2020
@sdelamo
Copy link
Contributor

sdelamo commented Aug 3, 2023

@zendern I would like to resuscitate this PR. Are you still interested in pursuing these changes?

@guillermocalvo guillermocalvo self-assigned this Aug 8, 2023
@guillermocalvo guillermocalvo changed the base branch from 1.1.x to master August 8, 2023 14:46
@guillermocalvo guillermocalvo requested a review from sdelamo August 8, 2023 14:58
@sdelamo sdelamo requested a review from jeremyg484 November 12, 2023 21:16
jeremyg484
jeremyg484 previously approved these changes Nov 18, 2023
Copy link

@jeremyg484 jeremyg484 left a comment

Choose a reason for hiding this comment

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

Has some merge conflicts that need to be fixed but otherwise looks good!

@CLAassistant
Copy link

CLAassistant commented Feb 7, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ guillermocalvo
❌ zendern
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Delay server startup
8 participants