mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
Add documentation warning about 0.0.0.0 binding in dev mode (#43522)
Inform users that Keycloak binds to all network addresses (0.0.0.0) by default in development mode. Add warning in Getting Started guide and configuration documentation, and enhance HttpOptions description. Closes #43522 Signed-off-by: Lopes De Carvalho Alyne <alynelopes298@gmail.com>
This commit is contained in:
parent
b90e95d878
commit
56b08c02ed
@ -19,3 +19,5 @@ bin\kc.bat start-dev
|
||||
|
||||
Using the `start-dev` option, you are starting {project_name} in development mode. In this mode, you can try out {project_name} for the first time to get it up and running quickly. This mode offers convenient defaults for developers, such as for developing a new {project_name} theme.
|
||||
|
||||
WARNING: By default, {project_name} in development mode binds to all network addresses (`0.0.0.0`). This means your {project_name} instance may be accessible from other machines on your network, not just from your local machine. If you want to restrict access to localhost only, you can start the server with `--http-host=127.0.0.1`.
|
||||
|
||||
|
||||
@ -186,6 +186,9 @@ You can start {project_name} in `development mode` or `production mode`. Each mo
|
||||
=== Starting {project_name} in development mode
|
||||
Use development mode to try out {project_name} for the first time to get it up and running quickly. This mode offers convenient defaults for developers, such as for developing a new {project_name} theme.
|
||||
|
||||
[NOTE]
|
||||
By default, when you start {project_name} in development mode, the server binds to all network addresses (`0.0.0.0`). This means your instance may be accessible from other machines on your network. If you want to restrict access to your local machine only, you can use the option `--http-host=127.0.0.1` when starting the server.
|
||||
|
||||
To start in development mode, enter the following command:
|
||||
|
||||
<@kc.startdev parameters=""/>
|
||||
|
||||
@ -18,7 +18,7 @@ public class HttpOptions {
|
||||
|
||||
public static final Option<String> HTTP_HOST = new OptionBuilder<>("http-host", String.class)
|
||||
.category(OptionCategory.HTTP)
|
||||
.description("The HTTP Host.")
|
||||
.description("The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0), which means the server may be accessible from other machines on your network. For local development, you can restrict access to localhost only by setting this to 127.0.0.1.")
|
||||
.defaultValue("0.0.0.0")
|
||||
.build();
|
||||
|
||||
|
||||
@ -228,7 +228,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
@ -298,7 +298,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
@ -276,7 +276,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
@ -299,7 +299,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
@ -244,7 +244,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
@ -267,7 +267,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
@ -275,7 +275,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
@ -298,7 +298,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
@ -273,7 +273,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
@ -296,7 +296,10 @@ HTTP(S):
|
||||
Enables the HTTP listener. Enabled by default in development mode. Typically
|
||||
not enabled in production unless the server is fronted by a TLS termination
|
||||
proxy. Default: false.
|
||||
--http-host <host> The HTTP Host. Default: 0.0.0.0.
|
||||
--http-host <host> The HTTP Host. By default, Keycloak binds to all network addresses (0.0.0.0),
|
||||
which means the server may be accessible from other machines on your
|
||||
network. For local development, you can restrict access to localhost only by
|
||||
setting this to 127.0.0.1. Default: 0.0.0.0.
|
||||
--http-max-queued-requests <requests>
|
||||
Maximum number of queued HTTP requests. Use this to shed load in an overload
|
||||
situation. Excess requests will return a "503 Server not Available" response.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user