Hello, We recently installed graylog as a container in Debian12 linux VM. I can see three containers i.e. Graylog, datanode and mongodb are running without any issues but to start with datanode, I need to complete the preflight setup manually.
Is there any way to automate the preflight configuration to assign the certificate to the datanode?
Hi @Super-Boy,
Yes, there is. If you configure selfsigned_startup=true in your graylog server configuration, the server will automatically create a selfsigned CA and configure automatic certificate renewal.
Datanodes connecting to a server with this configuration will then automatically obtain their certificates and fully start.
This should bypass the preflight configuration.
Another option is to manage all certificates externally, but this is much more complex task and makes sense only if you already have a trusted CA and want to use it for your setup.
If you are using containers, the easiest solution is to configure the server with environment properties. In this case, you’d set GRAYLOG_SELFSIGNED_STARTUP=true in the place where you configure your containers and their environment.
Otherwise you’d need to mount the graylog.conf file from outside and provide it to your container.
The configuration looks good. But the selfsigned startup has been introduced only in graylog 6.2. You seem to be running an older version. I’d recommend to jump straight to current 6.3 if you are starting now.