Skip to content

Commit

Permalink
Docs: adding a few mentions about the exposure risk of enabling the api
Browse files Browse the repository at this point in the history
Signed-off-by: Damien DUPORTAL <damien.duportal@gmail.com>
  • Loading branch information
dduportal committed Aug 20, 2018
1 parent a7bb768 commit 113250c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/configuration/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

```toml
# API definition
# Warning: Enabling API will expose Træfik's configuration and secret.
# It is not recommended in production,
# unless secured by authentication and authorizations
[api]
# Name of the related entry point
#
Expand All @@ -12,7 +15,7 @@
#
entryPoint = "traefik"

# Enabled Dashboard
# Enable Dashboard
#
# Optional
# Default: true
Expand All @@ -38,6 +41,14 @@ For more customization, see [entry points](/configuration/entrypoints/) document

![Web UI Health](/img/traefik-health.png)

## Security

Enabling the API will expose all configuration elements,
including secret.

It is not recommended in production,
unless secured by authentication and authorizations.

## API

| Path | Method | Description |
Expand Down
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ services:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
```

!!! warning
Enabling the Web UI with the `--api` flag might exposes configuration elements. You can read more about this on the [API/Dashboard's Security section](/configuration/api#security).


**That's it. Now you can launch Træfik!**

Start your `reverse-proxy` with the following command:
Expand Down

0 comments on commit 113250c

Please sign in to comment.