mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Merge branch 'topic/christian/management-framework-tls'
* topic/christian/management-framework-tls:
Bump zeek-testing-cluster to pull in WebSocket TLS updates
Bump zeek-client to pull in TLS config updates
Management framework: add TLS options for controller's websocket server
(cherry picked from commit f38ac30418
)
This commit is contained in:
parent
1e6d1e1b12
commit
d0a64c35dc
4 changed files with 14 additions and 5 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 4440c7a05ba4be229ac88d70e8f4eef2465afc50
|
||||
Subproject commit 62e91d3abc726c3c17be4d70bb222b29b7bb6476
|
|
@ -61,6 +61,14 @@ export {
|
|||
## for websocket clients.
|
||||
const default_port_websocket = 2149/tcp &redef;
|
||||
|
||||
## TLS options for the controller's WebSocket server. The default is
|
||||
## to operate unencrypted. To replicate Broker's default encryption
|
||||
## without endpoint validation, set the
|
||||
## :zeek:field:`Cluster::WebSocketTLSOptions$ca_file` field to
|
||||
## "NONE" and :zeek:field:`Cluster::WebSocketTLSOptions$ciphers` to
|
||||
## "AECDH-AES256-SHA@SECLEVEL=0:AECDH-AES256-SHA:P-384".
|
||||
const tls_options_websocket = Cluster::WebSocketTLSOptions() &redef;
|
||||
|
||||
## Whether the controller should auto-assign Broker listening ports to
|
||||
## cluster nodes that need them and don't have them explicitly specified
|
||||
## in cluster configurations.
|
||||
|
|
|
@ -1644,9 +1644,10 @@ event zeek_init()
|
|||
|
||||
if ( cni$bound_port != 0/unknown )
|
||||
{
|
||||
@pragma push ignore-deprecations
|
||||
Broker::listen_websocket(cat(cni$address), cni$bound_port);
|
||||
@pragma pop ignore-deprecations
|
||||
local ws_opts = Cluster::WebSocketServerOptions($listen_addr=to_addr(cni$address),
|
||||
$listen_port=cni$bound_port,
|
||||
$tls_options=Management::Controller::tls_options_websocket);
|
||||
Cluster::listen_websocket(ws_opts);
|
||||
websocket_info = fmt("websocket port %s:%s", cni$address, cni$bound_port);
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
fc635b99a867a925dc23641e5bd37c93306bc981
|
||||
318f1209d92ca1c5e50c8d39af55e004e506a776
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue