The admin_gui_session_conf has been set to have a cookie_lifetime of 600 seconds:
admin_gui_session_conf={ "cookie_name": "manager-session", "secret": "this_is_my_other_secret", "storage": "kong", "cookie_secure":true, "cookie_lifetime":600}"An authentication cookie is retrieved:
curl -k https://api.kong.lan/auth -u "kong_admin:password" -H "kong-admin-user:kong_admin" -c /tmp/cookieand deck ping initially works fine using the cookie:
deck ping --kong-cookie-jar-path /tmp/cookie --tls-skip-verify -w default --kong-addr https://api.kong.lan --headers kong-admin-user:kong_admin --headers "user-agent:curl/7.82.0"
Successfully connected to Kong!
Kong version: 3.14.0.0-enterprise-editionAfter waiting approximately 10 seconds, the same deck ping command fails:
deck ping --kong-cookie-jar-path /tmp/cookie --tls-skip-verify -w default --kong-addr https://api.kong.lan --headers kong-admin-user:kong_admin --headers "user-agent:curl/7.82.0"
Error: reading Kong version: HTTP status 401 (message: "Unauthorized")The session cookie expires before the configured cookie_lifetime of 600 seconds elapses.