8000 Remove legacy cookies entirely by jonkoops · Pull Request #16734 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Remove legacy cookies entirely - #16734

Closed
jonkoops wants to merge 1 commit into
keycloak:mainfrom
jonkoops:no-legacy-cookie
Closed

jonkoops wants to merge 1 commit into
keycloak:mainfrom
jonkoops:no-legacy-cookie

Conversation

@jonkoops
@jonkoops jonkoops commented Jan 31, 2023 •
Copy link
Copy Markdown
Contributor

Closes #16770

@jonkoops jonkoops self-assigned this Jan 31, 2023
@jonkoops
jonkoops requested review from a team as code owners January 31, 2023 11:57
@jonkoops
jonkoops requested a review from a team January 31, 2023 11:57
@jonkoops
jonkoops requested a review from a team as a code owner January 31, 2023 11:57
@mabartos mabartos left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonkoops Thanks! I don't see any issues with removing the legacy Keycloak Session cookie.

@mposolda @stianst @pedroigor Could you please take a look at it?

@pedroigor pedroigor left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to include a switch to enable legacy cookies for backward compatibility and evaluation of the impact on the existing deployments?

We can use a hidden option in our config or just use a system property. I think how we set this is not so relevant as we want to effectively remove those cookies.

The idea is to at least give a chance to people to plan the upgrade if they need to support old browsers.

@ahus1
ahus1 commented Jan 31, 2023
Copy link
Copy Markdown
Member

+1 for making it switchable. Instead of using a hidden config option, could we add it to the Profile.Feature enum that it is deprecated (those are disabled by default AFAIK)? This would help with documenting it. I'm always about hidden features in security related software.

@jonkoops
Copy link
Copy Markdown
Contributor Author

I see no issue with putting this behind a flag, and I agree with @ahus1 that the default should be disabled. Let me see what I can do.

@jonkoops
Copy link
Copy Markdown
Contributor Author

Created a new PR under #16747 as I'd like to keep this one to eventually remove the feature.

@jonkoops jonkoops changed the title Remove legacy cookies (ending in _LEGACY) Remove legacy cookies entirely Feb 1, 2023
@sarlaccpit
Copy link
Copy Markdown

There's a related aspect: it seems the legacy cookies don't have the "secure" attribute set which poses a security problem.

@jonkoops
Copy link
Copy Markdown
Contributor Author

Closing this PR as we decided to put this behind a profile first. I'll get back to this once that lands.

@jonkoops jonkoops closed this Jan 12, 2024
@jonkoops
jonkoops deleted the no-legacy-cookie branch January 12, 2024 12:35
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.

Remove legacy cookies

5 participants

0