Skip to content

Commit 800654c

Browse files
Desvelaoclaude
andauthored
fix: remove inert opensearch_security.cookie.ttl setting (#1534)
The dashboard config declares opensearch_security.cookie.ttl, but the security plugin never reads it: only opensearch_security.session.ttl governs session/cookie expiry. Shipping the setting misleads operators into believing it bounds the cookie lifetime. Signed-off-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 14cecaf commit 800654c

2 files changed

Lines changed: 12 additions & 14 deletions

File tree

config/opensearch_dashboards.prod.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ opensearch.hosts: https://localhost:9200
44
opensearch.ssl.verificationMode: certificate
55
#opensearch.username:
66
#opensearch.password:
7-
opensearch.requestHeadersAllowlist: ["securitytenant","Authorization"]
7+
opensearch.requestHeadersAllowlist: ['securitytenant', 'Authorization']
88
opensearch_security.multitenancy.enabled: false
9-
opensearch_security.readonly_mode.roles: ["kibana_read_only"]
9+
opensearch_security.readonly_mode.roles: ['kibana_read_only']
1010
server.ssl.enabled: true
11-
server.ssl.key: "/etc/wazuh-dashboard/certs/dashboard-key.pem"
12-
server.ssl.certificate: "/etc/wazuh-dashboard/certs/dashboard.pem"
13-
opensearch.ssl.certificateAuthorities: ["/etc/wazuh-dashboard/certs/root-ca.pem"]
11+
server.ssl.key: '/etc/wazuh-dashboard/certs/dashboard-key.pem'
12+
server.ssl.certificate: '/etc/wazuh-dashboard/certs/dashboard.pem'
13+
opensearch.ssl.certificateAuthorities: ['/etc/wazuh-dashboard/certs/root-ca.pem']
1414
uiSettings.overrides.defaultRoute: /app/wz-home
1515
# Session expiration settings
16-
opensearch_security.cookie.ttl: 900000
1716
opensearch_security.session.ttl: 900000
1817
opensearch_security.session.keepalive: true
1918

docker/config/opensearch_dashboards.dev.security.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
server.host: "0.0.0.0"
1+
server.host: '0.0.0.0'
22

3-
opensearch.hosts: ["https://indexer:9200"]
3+
opensearch.hosts: ['https://indexer:9200']
44
opensearch.ssl.verificationMode: none
5-
opensearch.username: "kibanaserver"
6-
opensearch.password: "kibanaserver"
7-
opensearch.requestHeadersWhitelist: [ authorization,securitytenant ]
5+
opensearch.username: 'kibanaserver'
6+
opensearch.password: 'kibanaserver'
7+
opensearch.requestHeadersWhitelist: [authorization, securitytenant]
88
opensearch_security.multitenancy.enabled: true
9-
opensearch_security.multitenancy.tenants.preferred: ["Private", "Global"]
10-
opensearch_security.readonly_mode.roles: ["kibana_read_only"]
9+
opensearch_security.multitenancy.tenants.preferred: ['Private', 'Global']
10+
opensearch_security.readonly_mode.roles: ['kibana_read_only']
1111
# Session expiration settings
12-
opensearch_security.cookie.ttl: 900000
1312
opensearch_security.session.ttl: 900000
1413
opensearch_security.session.keepalive: true
1514

0 commit comments

Comments
 (0)