OpenSearch/docs/reference
Jason Tedor a91da9a9af
Only bind loopback addresses when binding to local
* Only bind loopback addresses when binding to local

Today when binding to local (the default) we bind to any address that is
a loopback address, or any address on an interface that declares itself
as a loopback interface. Yet, not all addresses on loopback interfaces
are loopback addresses. This arises on macOS where there is a link-local
address assigned to the loopback interface (fe80::1%lo0) and in Docker
services where virtual IPs of the service are assigned to the loopback
interface (docker/libnetwork#1877). These situations cause problems:
 - because we do not handle the scope ID of a link-local address, we end
   up bound to an address for which publishing of that address does not
   allow that address to be reached (since we drop the scope)
 - the virtual IPs in the Docker situation are not loopback addresses,
   they are not link-local addresses, so we end up bound to interfaces
   that cause the bootstrap checks to be enforced even though the
   instance is only bound to local

We address this by only binding to actual loopback addresses, and skip
binding to any address on a loopback interface that is not a loopback
address. This lets us simplify some code where in the bootstrap checks
we were skipping link-local addresses, and in writing the ports file
where we had to skip link-local addresses because again the formatting
of them does not allow them to be connected to by another node (to be
clear, they could be connected to via the scope-qualified address, but
that information is not written out).

Relates #28029
2018-01-02 07:04:09 -05:00
..
aggregations Fixing typo in param name: values => sources (#28016) 2017-12-28 18:18:30 +01:00
analysis Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
cat [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
cluster [Docs] Correct spelling in update-settings.asciidoc (#27808) 2017-12-14 10:16:50 +01:00
docs Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
how-to Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
images Docs/windows installer (#27369) 2017-11-15 21:35:54 +11:00
index-modules Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
indices Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
ingest Enable grok processor to support long, double and boolean (#27896) 2017-12-20 11:19:49 -08:00
mapping docs: add best practises for wildcard queries inside percolator queries 2017-12-15 10:49:59 +01:00
migration Introduce limit to the number of terms in Terms Query (#27968) 2017-12-28 17:36:29 -05:00
modules Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
query-dsl Update fuzzy-query.asciidoc (#28032) 2018-01-01 08:44:04 +01:00
release-notes Migrate migration docs from 6.0 to 7.0 (#26227) 2017-08-16 13:12:44 -06:00
search [DOCS] Fix link formatting (#27990) 2017-12-26 16:25:05 +00:00
setup Only bind loopback addresses when binding to local 2018-01-02 07:04:09 -05:00
testing [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
upgrade [DOCS] Fixed typos and broken attribute. 2017-12-05 11:46:40 -08:00
aggregations.asciidoc Update aggregation.asciidoc (#24042) 2017-04-11 09:02:38 -04:00
analysis.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
api-conventions.asciidoc [Docs] Add date math examples to api-conventions.asciidoc (#25217) 2017-12-07 14:10:51 +01:00
cat.asciidoc Enforce that responses in docs are valid json (#26249) 2017-08-17 09:02:10 -04:00
cluster.asciidoc [docs] include two cluster doc pages missing from index (#25180) 2017-06-12 12:33:56 -07:00
docs.asciidoc Inclusion of link to Multi Delete (#22619) 2017-01-16 12:58:59 +01:00
getting-started.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
glossary.asciidoc [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
gs-index.asciidoc [DOCS] Adding index file for GS "mini book". 2017-07-18 13:44:08 -07:00
how-to.asciidoc Correct grammar in list in how-to docs 2017-01-17 20:57:22 -05:00
index-modules.asciidoc Introduce limit to the number of terms in Terms Query (#27968) 2017-12-28 17:36:29 -05:00
index-shared1.asciidoc [DOCS] Added link to upgrade guide and bumped the upgrade topic up to the top level (#27621) 2017-12-05 10:58:52 -08:00
index-shared2.asciidoc [DOCS] Added index-shared4 and index-shared5.asciidoc 2017-09-20 10:54:26 -07:00
index-shared3.asciidoc [DOCS] Added index-shared4 and index-shared5.asciidoc 2017-09-20 10:54:26 -07:00
index-shared4.asciidoc [DOCS] Added index-shared4 and index-shared5.asciidoc 2017-09-20 10:54:26 -07:00
index-shared5.asciidoc [DOCS] Added index-shared4 and index-shared5.asciidoc 2017-09-20 10:54:26 -07:00
index.asciidoc [DOCS] Added index-shared4 and index-shared5.asciidoc 2017-09-20 10:54:26 -07:00
indices.asciidoc add split index reference in indices.asciidoc 2017-11-06 12:55:41 +01:00
ingest.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
mapping.asciidoc Limit the number of nested documents (#27405) 2017-11-22 10:16:28 -05:00
modules.asciidoc [DOCS] Remove edit link from ML node 2017-09-14 16:18:29 -07:00
query-dsl.asciidoc Update query-dsl.asciidoc (#27669) 2017-12-11 18:06:08 +01:00
redirects.asciidoc Mark filtered query example as not to be used (#25661) 2017-07-14 11:45:21 +02:00
release-notes.asciidoc Migrate migration docs from 6.0 to 7.0 (#26227) 2017-08-16 13:12:44 -06:00
search.asciidoc Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
setup.asciidoc Clarify using supported LTS versions of the Java 2017-12-14 07:47:50 -05:00
testing.asciidoc [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
upgrade.asciidoc [Docs] Clarify version for restoring old indices. (#27800) 2017-12-15 09:42:36 +01:00