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

Change Docker quickstart to only bind to localhost #80812

Merged
merged 2 commits into from
Nov 18, 2021

Conversation

xeraa
Copy link
Contributor

@xeraa xeraa commented Nov 18, 2021

Under the wrong circumstances our quickstart will expose Elasticsearch and Kibana to the internet, which is rather surprising and what we avoid with our other defaults / setups.
Discussed multiple times, we should explicitly bind to localhost to avoid such surprises. Those who know Docker reasonably well will be able to change it without problems and those who don't know Docker are probably better off like this.

Since this has changed in 8.0, but we'll have 7.16 around for a long time, I've only committed the change to the 7.16 branch.

Under the [wrong circumstances](https://twitter.com/gnyman/status/1441073513457233928) our quickstart will expose Elasticsearch and Kibana to the internet, which is rather surprising and what we avoid with our other defaults / setups.
[Discussed](https://twitter.com/gnyman/status/1441119091645812742) [multiple](https://twitter.com/xeraa/status/1441164987049803787) [times](https://twitter.com/hmoffatt/status/1461067219647885315), we should explicitly bind to localhost to avoid such surprises. Those who know Docker reasonably well will be able to change it without problems and those who don't know Docker are probably better off like this.

Since this has changed in 8.0, but we'll have 7.16 around for a long time, I've only committed the change to the 7.16 branch.
@xeraa xeraa requested a review from jrodewig November 18, 2021 03:07
@elasticsearchmachine elasticsearchmachine added v7.16.1 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Nov 18, 2021
Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

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

Thanks @xeraa.

I also pushed 7149ba7 to update the run command in Stating a single node cluster with Docker. While this is also intended largely for test purposes, it can expose ES publicly.

I'll open a separate PR to update the Kibana instructions.

This LGTM.

@jrodewig jrodewig added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >docs General docs changes labels Nov 18, 2021
@elasticmachine elasticmachine added Team:Delivery Meta label for Delivery team Team:Docs Meta label for docs team labels Nov 18, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@jrodewig jrodewig merged commit 820f45d into 7.16 Nov 18, 2021
@jrodewig jrodewig deleted the quickstart-docker-security branch November 18, 2021 13:38
elasticsearchmachine pushed a commit that referenced this pull request Nov 18, 2021
…80833)

Under the [wrong circumstances](https://twitter.com/gnyman/status/1441073513457233928) our quickstart will expose Elasticsearch and Kibana to the internet, which is rather surprising and what we avoid with our other defaults / setups.
[Discussed](https://twitter.com/gnyman/status/1441119091645812742) [multiple](https://twitter.com/xeraa/status/1441164987049803787) [times](https://twitter.com/hmoffatt/status/1461067219647885315), we should explicitly bind to localhost to avoid such surprises. Those who know Docker reasonably well will be able to change it without problems and those who don't know Docker are probably better off like this.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Philipp Krenn <xeraa@users.noreply.github.com>
elasticsearchmachine pushed a commit that referenced this pull request Nov 18, 2021
…80834)

Under the [wrong circumstances](https://twitter.com/gnyman/status/1441073513457233928) our quickstart will expose Elasticsearch and Kibana to the internet, which is rather surprising and what we avoid with our other defaults / setups.
[Discussed](https://twitter.com/gnyman/status/1441119091645812742) [multiple](https://twitter.com/xeraa/status/1441164987049803787) [times](https://twitter.com/hmoffatt/status/1461067219647885315), we should explicitly bind to localhost to avoid such surprises. Those who know Docker reasonably well will be able to change it without problems and those who don't know Docker are probably better off like this.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Philipp Krenn <xeraa@users.noreply.github.com>
elasticsearchmachine pushed a commit that referenced this pull request Nov 18, 2021
…80835)

Under the [wrong circumstances](https://twitter.com/gnyman/status/1441073513457233928) our quickstart will expose Elasticsearch and Kibana to the internet, which is rather surprising and what we avoid with our other defaults / setups.
[Discussed](https://twitter.com/gnyman/status/1441119091645812742) [multiple](https://twitter.com/xeraa/status/1441164987049803787) [times](https://twitter.com/hmoffatt/status/1461067219647885315), we should explicitly bind to localhost to avoid such surprises. Those who know Docker reasonably well will be able to change it without problems and those who don't know Docker are probably better off like this.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Philipp Krenn <xeraa@users.noreply.github.com>
elasticsearchmachine pushed a commit that referenced this pull request Nov 18, 2021
…80836)

Under the [wrong circumstances](https://twitter.com/gnyman/status/1441073513457233928) our quickstart will expose Elasticsearch and Kibana to the internet, which is rather surprising and what we avoid with our other defaults / setups.
[Discussed](https://twitter.com/gnyman/status/1441119091645812742) [multiple](https://twitter.com/xeraa/status/1441164987049803787) [times](https://twitter.com/hmoffatt/status/1461067219647885315), we should explicitly bind to localhost to avoid such surprises. Those who know Docker reasonably well will be able to change it without problems and those who don't know Docker are probably better off like this.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Philipp Krenn <xeraa@users.noreply.github.com>
jrodewig added a commit to elastic/kibana that referenced this pull request Nov 18, 2021
The current Docker run instructions can expose Kibana and Elasticsearch
publicly to the internet. This updates the instructions to bind to
localhost to avoid this.

Relates to elastic/elasticsearch#80812
jrodewig added a commit to elastic/kibana that referenced this pull request Nov 18, 2021
)

The current Docker run instructions can expose Kibana and Elasticsearch
publicly to the internet. This updates the instructions to bind to
localhost to avoid this.

Relates to elastic/elasticsearch#80812
jrodewig added a commit to elastic/kibana that referenced this pull request Nov 18, 2021
)

The current Docker run instructions can expose Kibana and Elasticsearch
publicly to the internet. This updates the instructions to bind to
localhost to avoid this.

Relates to elastic/elasticsearch#80812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >docs General docs changes external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Delivery Meta label for Delivery team Team:Docs Meta label for docs team v7.12.2 v7.13.5 v7.14.3 v7.15.3 v7.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants