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

Wait for certificate before starting HTTP listener #354

Merged
merged 2 commits into from
May 25, 2022

Conversation

swenson
Copy link

@swenson swenson commented May 24, 2022

When starting up, the HTTP server can start accepting requests before
the TLS config has loaded certificates from the certificate generator.

We add in a wait (assuming we don't have certificates already given to
us via flags or environment variables) for that certificate to be
generated before starting the server to prevent confusing, though
harmless, errors in logs.

@swenson swenson requested review from tvoran and tomhjp and removed request for tvoran and tomhjp May 24, 2022 18:51
Christopher Swenson added 2 commits May 25, 2022 12:03
When starting up, the HTTP server can start accepting requests before
the TLS config has loaded certificates from the certificate generator.

We add in a wait (assuming we don't have certificates already given to
us via flags or environment variables) for that certificate to be
generated before starting the server to prevent confusing, though
harmless, errors in logs.

* Fixes #318
* Fixes #320
@swenson swenson force-pushed the vault-5084/wait-for-cert-issue-before-starting branch from b6485fe to bd359ee Compare May 25, 2022 19:06
Copy link
Contributor

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

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

LGTM

@swenson
Copy link
Author

swenson commented May 25, 2022

Thanks!

@swenson swenson merged commit 5e8a05e into main May 25, 2022
@swenson swenson deleted the vault-5084/wait-for-cert-issue-before-starting branch May 25, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants