You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated fwd input plugin for fixing user auth, added 1 missing config option and general cleanup to doc. Fixes#2212. (#2230)
* Updated fwd intput plugin for fixing user auth, added 1 missing config option and general cleanup to doc. Fixes#2212.
Signed-off-by: Eric D. Schabell <[email protected]>
* Added review fix as requested.
Signed-off-by: Eric D. Schabell <[email protected]>
---------
Signed-off-by: Eric D. Schabell <[email protected]>
|`Port`| TCP port to listen for incoming connections. |`24224`|
13
-
|`Unix_Path`| Specify the path to Unix socket to receive a Forward message. If set, `Listen` and `Port` are ignored. |_none_|
14
-
|`Unix_Perm`| Set the permission of the Unix socket file. If `Unix_Path` isn't set, this parameter is ignored. |_none_|
15
-
|`Buffer_Max_Size`| Specify the maximum buffer memory size used to receive a Forward message. The value must be according to the [Unit Size](../../administration/configuring-fluent-bit.md#unit-sizes) specification. |`6144000`|
16
-
|`Buffer_Chunk_Size`| By default the buffer to store the incoming Forward messages, don't allocate the maximum memory allowed, instead it allocate memory when it's required. The rounds of allocations are set by `Buffer_Chunk_Size`. The value must be according to the [Unit Size ](../../administration/configuring-fluent-bit.md#unit-sizes)specification. |`1024000`|
17
-
|`Tag_Prefix`| Prefix incoming tag with the defined value. |_none_|
18
-
|`Tag`| Override the tag of the forwarded events with the defined value. |_none_|
19
-
|`Shared_Key`| Shared key for secure forward authentication. |_none_|
20
-
|`Empty_Shared_Key`| Use this option to connect to Fluentd with a zero-length shared key. |`false`|
21
-
|`Self_Hostname`| Hostname for secure forward authentication. |_none_|
22
-
|`Security.Users`| Specify the username and password pairs for secure forward authentication. ||
23
-
|`Threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
11
+
|`buffer_chunk_size`| By default the buffer to store the incoming Forward messages, don't allocate the maximum memory allowed, instead it allocate memory when it's required. The rounds of allocations are set by `buffer_chunk_size`. The value must be according to the [Unit Size ](../../administration/configuring-fluent-bit.md#unit-sizes)specification. |`1024000`|
12
+
|`buffer_max_size`| Specify the maximum buffer memory size used to receive a Forward message. The value must be according to the [Unit Size](../../administration/configuring-fluent-bit.md#unit-sizes) specification. |`6144000`|
13
+
|`empty_shared_key`| Enable secure forward protocol with a zero-length shared key. Use this to enable user authentication without requiring a shared key, or to connect to Fluentd with a zero-length shared key. |`false`|
|`port`| TCP port to listen for incoming connections. |`24224`|
16
+
|`security.users`| Specify the username and password pairs for secure forward authentication. Requires `shared_key` or `empty_shared_key` to be set. ||
17
+
|`self_hostname`| Hostname for secure forward authentication. |_none_|
18
+
|`shared_key`| Shared key for secure forward authentication. |_none_|
19
+
|`tag`| Override the tag of the forwarded events with the defined value. |_none_|
20
+
|`tag_prefix`| Prefix incoming tag with the defined value. |_none_|
21
+
|`threaded`| Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). |`false`|
22
+
|`unix_path`| Specify the path to Unix socket to receive a Forward message. If set, `listen` and `port` are ignored. |_none_|
23
+
|`unix_perm`| Set the permission of the Unix socket file. If `unix_path` isn't set, this parameter is ignored. |_none_|
24
+
25
+
### TLS / SSL
26
+
27
+
The Forward input plugin supports TLS/SSL. For more details about the properties available and general configuration, refer to [Transport Security](../../administration/transport-security.md).
24
28
25
29
## Get started
26
30
@@ -86,7 +90,13 @@ pipeline:
86
90
87
91
In Fluent Bit v3 or later, `in_forward` can handle secure forward protocol.
88
92
89
-
For using user-password authentication, specify `security.users` in at least a one-pair. For using shared key, specify `shared_key` in both of forward output and forward input. `self_hostname` isn't able to specify with the same hostname between fluent servers and clients.
93
+
{% hint style="warning" %}
94
+
When using `security.users` for user-password authentication, you **must** also configure either `shared_key` or set `empty_shared_key` to `true`. The Forward input plugin will reject a configuration that has `security.users` set without one of these options.
95
+
{% endhint %}
96
+
97
+
For shared key authentication, specify `shared_key` in both forward output and forward input. For user-password authentication, specify `security.users` with at least one user-password pair along with a shared key. To use user authentication without requiring clients to know a shared key, set `empty_shared_key` to `true`.
98
+
99
+
The `self_hostname` value can't be the same between Fluent Bit servers and clients.
90
100
91
101
{% tabs %}
92
102
{% tab title="fluent-bit-secure-forward.yaml" %}
@@ -118,9 +128,55 @@ pipeline:
118
128
Port 24224
119
129
Buffer_Chunk_Size 1M
120
130
Buffer_Max_Size 6M
121
-
Security.Users fluentbit changeme
122
-
Shared_Key secret
123
-
Self_Hostname flb.server.local
131
+
Security.Users fluentbit changeme
132
+
Shared_Key secret
133
+
Self_Hostname flb.server.local
134
+
135
+
[OUTPUT]
136
+
Name stdout
137
+
Match *
138
+
```
139
+
140
+
{% endtab %}
141
+
{% endtabs %}
142
+
143
+
### User authentication with `empty_shared_key`
144
+
145
+
To use username and password authentication without requiring clients to know a shared key, set `empty_shared_key` to `true`:
0 commit comments