kibana xpack.security.encryptionKey, xpack.encryptedSavedObjects.encryptionKey관련 경고

2025. 3. 2. 23:00k8s/EFK

경고

[WARN ][plugins.security.config] Generating a random key for xpack.security.encryptionKey. 
To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.

[WARN ][plugins.encryptedSavedObjects] Saved objects encryption key is not set. 
This will severely limit Kibana functionality. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml.

조치

# kinana pod에 접속
/usr/share/kibana/bin/kibana-encryption-keys generate

# 결과를 kibana.yml에 등록
xpack.security.encryptionKey: "RANDOM_SECURITY_KEY"
xpack.encryptedSavedObjects.encryptionKey: "RANDOM_ENCRYPTED_SAVED_OBJECTS_KEY"
xpack.reporting.encryptionKey: "RANDOM_REPORTING_KEY"