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

Maps docker ports only to localhost #3693

Merged
merged 1 commit into from Aug 3, 2018

Conversation

kushaldas
Copy link
Contributor

We now map the development container ports only to the localhost.
Otherwise we are in risk of exposing the container to the external
network.

Status

Ready for review.

Description of Changes

Fixes: #3686.

The docker dev environment maps the ports only to localhost.

Testing

make dev

should only make the ports available on localhost.

Deployment

Any special considerations for deployment? Consider both:

  1. Upgrading existing production instances.
  2. New installs.

Checklist

If you made changes to the server application code:

  • Linting (make ci-lint) and tests (make -C securedrop test) pass in the development container

If you made changes to securedrop-admin:

  • Linting and tests (make -C admin test) pass in the admin development container

If you made changes to the system configuration:

If you made non-trivial code changes:

  • I have written a test plan and validated it for this PR

If you made changes to documentation:

  • Doc linting (make docs-lint) passed locally

We now map the development container ports only to the localhost.
Otherwise we are in risk of exposing the container to the external
network. Fixes: freedomofpress#3686
Copy link
Contributor

@emkll emkll left a comment

Choose a reason for hiding this comment

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

Thanks @kushaldas for the fix ! LGTM

@emkll emkll merged commit cd94f48 into freedomofpress:develop Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants