Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core.portmanager: Also reload per-SNI certificates | Kim Alvefur | 2021-06-10 | 1 | -1/+3 |
| | |||||
* | core.portmanager: Reload direct TLS certificates after config reload | Kim Alvefur | 2021-06-10 | 1 | -0/+21 |
| | | | | | This should re-create all contexts the same way as when the service was activated, which reloads certificates. | ||||
* | core.portmanager: Factor out base TLS context creation for reuse | Kim Alvefur | 2021-06-10 | 1 | -10/+15 |
| | | | | Thinking I can use this to reload certificates after config reload | ||||
* | core.portmanager: Fix race condition in initialization of SNI cert map | Kim Alvefur | 2021-05-28 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | Under some circumstances when hosts and modules are loaded in some certain order, entries end up missing from the SNI map. This manifests in e.g. `curl https://localhost:5281/` giving an error about "unrecognized name". The `service` argument is `nil` when invoked from the "host-activated" event, leading it to iterating over every service. And then it would not be fetching e.g. `http_host` from the config, which explains why https would sometimes not work due to the missing name entry. Because when `service` is included, this limits the iteration to matching entries, while also returning the same value as the `name` loop variable. Because `name == service when service != nil` we can use name instead in the body of the loop. | ||||
* | core.portmanager: Use existing http_host for https SNI mapping | Kim Alvefur | 2021-05-05 | 1 | -0/+4 |
| | |||||
* | core.portmanager: Allow overriding expected SNI name per service | Kim Alvefur | 2021-05-05 | 1 | -2/+3 |
| | | | | | | | E.g. VirtualHost"example.com" https_name = "xmpp.example.com" | ||||
* | core.portmanager: Log SNI hosts, services looked for | Kim Alvefur | 2021-03-02 | 1 | -0/+1 |
| | | | | To highlight how many these are | ||||
* | portmanager: Don't auto-start network services under prosodyctl | Matthew Wild | 2020-02-05 | 1 | -1/+1 |
| | |||||
* | core.portmanager: Ignore unused return variable [luacheck] | Kim Alvefur | 2019-12-23 | 1 | -0/+1 |
| | |||||
* | core.portmanager: Complete error message for SNI TLS context problems | Kim Alvefur | 2019-11-30 | 1 | -1/+1 |
| | |||||
* | core.portmanager: Fix TLS context inheritance for SNI hosts (completes SNI ↵ | Kim Alvefur | 2019-11-29 | 1 | -10/+5 |
| | | | | support) | ||||
* | core.portmanager: Don't set the first TLS context with a cert as main context | Kim Alvefur | 2019-11-29 | 1 | -4/+0 |
| | | | | Don't think this works and it's apparently acceptable to require SNI these days. | ||||
* | core.portmanager: Remove unused local [luacheck] | Kim Alvefur | 2019-07-30 | 1 | -1/+1 |
| | |||||
* | core.portmanager: Remove tostring call from logging | Kim Alvefur | 2019-07-30 | 1 | -1/+1 |
| | | | | Taken care of by loggingmanager now | ||||
* | Merge 0.11->trunk | Kim Alvefur | 2019-04-24 | 1 | -1/+1 |
|\ | |||||
| * | core.portmanager: Log debug message for each kind of TLS context created | Kim Alvefur | 2019-04-23 | 1 | -0/+1 |
| | | |||||
* | | core.portmanager: Collect per-host certificates for SNI | Kim Alvefur | 2018-09-14 | 1 | -0/+41 |
| | | |||||
* | | core.portmanager: Record TLS config for each port | Kim Alvefur | 2018-10-10 | 1 | -2/+4 |
| | | |||||
* | | core.portmanager: Reduce scope of variable | Kim Alvefur | 2018-10-10 | 1 | -2/+2 |
| | | | | | | | | | | Not sure why it was all the way out there, seems like there would have been unexpected behaviour from that | ||||
* | | core.portmanager: Use server.listen API | Kim Alvefur | 2018-09-13 | 1 | -1/+5 |
|/ | |||||
* | vairious: Add annotation when an empty environment is set [luacheck] | Kim Alvefur | 2018-02-28 | 1 | -0/+1 |
| | |||||
* | core: Split some very long lines [luacheck] | Kim Alvefur | 2017-03-04 | 1 | -4/+8 |
| | |||||
* | portmanager: Set default read size back to 4K | Kim Alvefur | 2016-05-04 | 1 | -1/+1 |
| | |||||
* | Merge 0.9->0.10 | Kim Alvefur | 2016-01-11 | 1 | -1/+1 |
|\ | |||||
| * | core: Increase default read size to "all of it", in practice 8K (size of ↵ | Kim Alvefur | 2016-01-10 | 1 | -1/+1 |
| | | | | | | | | LuaSockets buffer) | ||||
* | | portmanager: Lower the priority of module-supplied TLS options | Kim Alvefur | 2015-12-08 | 1 | -1/+1 |
| | | |||||
* | | portmanager: Add forward declarations | Kim Alvefur | 2015-04-08 | 1 | -2/+6 |
| | | |||||
* | | core.*: Remove use of module() function | Kim Alvefur | 2015-02-21 | 1 | -20/+32 |
| | | |||||
* | | portmanager: Remove unused argument from function [luacheck] | Matthew Wild | 2015-05-13 | 1 | -1/+1 |
| | | |||||
* | | portmanager: Rename variable to avoid name conflict [luacheck] | Matthew Wild | 2015-05-13 | 1 | -2/+2 |
| | | |||||
* | | portmanager: Add luacheck annotations | Matthew Wild | 2015-05-13 | 1 | -1/+1 |
| | | |||||
* | | portmanager, s2smanager, sessionmanager, stanza_router, storagemanager, ↵ | Matthew Wild | 2015-05-06 | 1 | -1/+1 |
| | | | | | | | | usermanager, util.xml: Add luacheck annotations | ||||
* | | portmanager: Remove unused import of pairs() | Matthew Wild | 2015-01-20 | 1 | -1/+1 |
| | | |||||
* | | core.portmanager: Simplify and take advantage of new ssl config merging in ↵ | Kim Alvefur | 2014-07-03 | 1 | -28/+9 |
| | | | | | | | | certmanager | ||||
* | | Merge 0.9->0.10 | Matthew Wild | 2014-04-02 | 1 | -4/+4 |
|\ \ | |/ |/| | |||||
| * | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -4/+4 |
| | | |||||
* | | portmanager: Make maximum read size configurable, and default to 4KB | Matthew Wild | 2014-03-30 | 1 | -1/+3 |
|/ | |||||
* | portmanager: Also include the interface the service is listening on | Kim Alvefur | 2013-04-29 | 1 | -1/+1 |
| | |||||
* | portmanager: Include port numbers the service is listening on in the info logs. | Waqas Hussain | 2013-04-29 | 1 | -1/+3 |
| | |||||
* | portmanager: import pairs() (thanks Maranda) | Matthew Wild | 2013-04-05 | 1 | -1/+1 |
| | |||||
* | portmanager: add logic to allow specification of service default values for ↵ | Marco Cirillo | 2013-04-04 | 1 | -3/+28 |
| | | | | ssl config and / or overrides. | ||||
* | portmanager: Log error and fail to bind when port is invalid (not a number) | Matthew Wild | 2013-03-31 | 1 | -9/+11 |
| | |||||
* | portmanager: Add use_ipv4 option, default to true. | Kim Alvefur | 2013-03-27 | 1 | -2/+6 |
| | |||||
* | portmanager: use_ipv6 defaults to true if luasocket has ipv6 support | Kim Alvefur | 2013-03-27 | 1 | -1/+2 |
| | |||||
* | portmanager: Make sure foo_ports is a table | Kim Alvefur | 2013-01-31 | 1 | -2/+3 |
| | |||||
* | portmanager: Return first service with the specified name from get_service() ↵ | Matthew Wild | 2012-12-04 | 1 | -1/+1 |
| | | | | (instead of the array of possible services) (thanks xnyhps) | ||||
* | portmanager: Support 'local_interfaces' config option (default for private ↵ | Matthew Wild | 2012-08-10 | 1 | -1/+1 |
| | | | | listeners like components, telnet, etc.) (thanks mva) | ||||
* | portmanager: Remove unused import of 'pairs' | Matthew Wild | 2012-07-29 | 1 | -1/+1 |
| | |||||
* | portmanager: Show a friendly error message when initializing SSL fails ↵ | Kim Alvefur | 2012-07-25 | 1 | -18/+17 |
| | | | | (thanks MattJ for the entire patch that I fixed one line in) | ||||
* | portmanager: Match service against service_info (:iter() doesn't match values) | Matthew Wild | 2012-05-22 | 1 | -2/+5 |
| |