Skip to content

ESB-1293 Secured cookies when ENTANDO_SECURE_SECRET_COOKIES is set - #377

Merged
MEM2677 merged 1 commit into
developfrom
ESB-1293
Oct 15, 2026
Merged

MEM2677 merged 1 commit into
developfrom
ESB-1293

Conversation

@MEM2677

@MEM2677 MEM2677 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member
  • RedisSessionConfig now provides the CookieSerializer bean that Spring Session uses for its session cookie when Redis sessions are on.
    • That cookie gets Secure when ENTANDO_SECURE_SECRET_COOKIES is true, or, when it is unset, when ENTANDO_APP_USE_TLS is true, the same rule JSESSIONID already follows.
    • When neither switch is on, the cookie gets Secure only for requests the container sees as HTTPS, as before.
    • The cookie keeps the name, domain, path and max-age from the container's session cookie config, so existing sessions stay valid after the upgrade.
    • The application logs one line at startup when it turns on Secure for the Spring Session cookie.
    • The new RedisSessionConfigTest adds five unit tests for the switch rule, Secure over HTTP, the fallback, the copied cookie settings and the default SESSION name.
    • RedisSessionActiveTest gains one test checking that Spring Session's session filter writes its cookie with the new bean, and loses an unused import.

@github-actions

Copy link
Copy Markdown

PUBLICATION for COMMIT ID ``

IMG/TAG: entando/entando-de-app-tomcat:7.5.3-ESB-1293-PR377
IMG/SHA: entando/entando-de-app-tomcat@sha256:59317bfccb79b8981331a4d5f685f155272c33c2f7384cf157ffc536f61bbda4

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

PUBLICATION for COMMIT ID ``

IMG/TAG: entando/entando-de-app-tomcat:7.5.3-ESB-1293-PR377
IMG/SHA: entando/entando-de-app-tomcat@sha256:4d5fce4637dde02348285fa38c81785719302df65635790f061117329eea7139

@MEM2677
MEM2677 marked this pull request as ready for review October 15, 2026 14:18
@MEM2677
MEM2677 merged commit 86db81c into develop Oct 15, 2026
8 checks passed
@github-actions

Copy link
Copy Markdown

PUBLICATION for COMMIT ID ``

IMG/TAG: entando/entando-de-app-tomcat:7.5.3-ESB-1293-PR377
IMG/SHA: entando/entando-de-app-tomcat@sha256:4673e2eae4e4d573ee1c18817400514e63dd0e9d96524b26602d78685d519495

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants