Graylog2 / docker-compose

A set of Docker Compose files that allow you to quickly spin up a Graylog instance for testing or demo purposes.
Apache License 2.0
357 stars 134 forks source link

README update: which password to use #33

Open anyfactor opened 11 months ago

anyfactor commented 11 months ago

Notes for Reviewers

I am trying out the open-core version and I believe you have to use the GRAYLOG_PASSWORD_SECRET as the password for the web interface.

Also if your GRAYLOG_PASSWORD_SECRET is not 16 characters long you will get the following error:

open-core-mongodb-1     | {"t":{"$date":"2023-07-13T14:46:14.034+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1689259574:34460][1:0xffff7b4aac80], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 39, snapshot max: 39 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 1"}}
open-core-graylog-1     | wait-for-it: waiting 15 seconds for opensearch:9200
open-core-graylog-1     | wait-for-it: opensearch:9200 is available after 0 seconds
open-core-graylog-1     | 2023-07-13 14:46:18,124 INFO : org.graylog2.featureflag.ImmutableFeatureFlagsCollector - Following feature flags are used: {default properties file=[scripting_api_preview=off, search_filter=on]}
open-core-graylog-1     | 2023-07-13 14:46:18,273 ERROR: org.graylog2.bootstrap.CmdLineTool - Invalid configuration
open-core-graylog-1     | com.github.joschi.jadconfig.ValidationException: The minimum length for "password_secret" is 16 characters.
open-core-graylog-1     |   at org.graylog2.Configuration.validatePasswordSecret(Configuration.java:446) ~[graylog.jar:?]
open-core-graylog-1     |   at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
open-core-graylog-1     |   at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
open-core-graylog-1     |   at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
open-core-graylog-1     |   at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
open-core-graylog-1     |   at com.github.joschi.jadconfig.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:53) ~[graylog.jar:?]
open-core-graylog-1     |   at com.github.joschi.jadconfig.JadConfig.invokeValidatorMethods(JadConfig.java:233) ~[graylog.jar:?]
open-core-graylog-1     |   at com.github.joschi.jadconfig.JadConfig.process(JadConfig.java:102) ~[graylog.jar:?]
open-core-graylog-1     |   at org.graylog2.bootstrap.CmdLineTool.processConfiguration(CmdLineTool.java:477) [graylog.jar:?]
open-core-graylog-1     |   at org.graylog2.bootstrap.CmdLineTool.doRun(CmdLineTool.java:282) [graylog.jar:?]
open-core-graylog-1     |   at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:260) [graylog.jar:?]
open-core-graylog-1     |   at org.graylog2.bootstrap.Main.main(Main.java:45) [graylog.jar:?]
open-core-graylog-1 exited with code 1

Note the:

open-core-graylog-1     | com.github.joschi.jadconfig.ValidationException: The minimum length for "password_secret" is 16 characters.
CLAassistant commented 11 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.