Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

ACME config cleanups #4525

Merged
merged 3 commits into from
Jan 30, 2019
Merged

ACME config cleanups #4525

merged 3 commits into from
Jan 30, 2019

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 30, 2019

Handle listening for ACME requests on IPv6 addresses:

the weird url-but-not-actually-a-url-string doesn't handle IPv6 addresses
without extra quoting. Building a string which you are about to parse again
seems like a weird choice. Let's just use listenTCP, which is consistent
with what we do elsewhere.

Make the default config look a bit more consistent with everything else, and
tweak the defaults to listen on port 80.

the weird url-but-not-actually-a-url-string doesn't handle IPv6 addresses
without extra quoting. Building a string which you are about to parse again
seems like a weird choice. Let's just use listenTCP, which is consistent with
what we do elsewhere.
make it look a bit more consistent with everything else, and tweak the defaults
to listen on port 80.
@richvdh richvdh requested a review from a team January 30, 2019 13:59
Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

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

Looks reasonable, other than the defaults causing warnings on linux and macOS

self.acme_port = acme_config.get("port", 8449)
self.acme_bind_addresses = acme_config.get("bind_addresses", ["127.0.0.1"])
self.acme_port = acme_config.get("port", 80)
self.acme_bind_addresses = acme_config.get("bind_addresses", ['::', '0.0.0.0'])
Copy link
Member

Choose a reason for hiding this comment

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

It feels odd that the default will cause warnings?

Copy link
Member Author

Choose a reason for hiding this comment

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

well, mostly I wanted it to be consistent with what we do for the other listeners. I kinda agree, but :/

Copy link
Member

Choose a reason for hiding this comment

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

fair enough, we can always clean it up later if necessary

@codecov-io
Copy link

Codecov Report

Merging #4525 into develop will increase coverage by <.01%.
The diff coverage is 54.54%.

@@             Coverage Diff             @@
##           develop    #4525      +/-   ##
===========================================
+ Coverage    74.74%   74.75%   +<.01%     
===========================================
  Files          337      337              
  Lines        34447    34456       +9     
  Branches      5615     5616       +1     
===========================================
+ Hits         25749    25758       +9     
+ Misses        7110     7108       -2     
- Partials      1588     1590       +2

@hawkowl hawkowl merged commit 7615a8c into develop Jan 30, 2019
@hawkowl hawkowl deleted the rav/acme_config branch January 30, 2019 14:19
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.

4 participants