KNOX-2387 - SameSite fix for hadoop-jwt cookie#347
Conversation
| } | ||
| response.addCookie(c); | ||
| setCookie.append("; SameSite=None"); | ||
| response.setHeader("Set-Cookie", setCookie.toString()); |
There was a problem hiding this comment.
Why is the cookie being created as a string?
There was a problem hiding this comment.
javax.servlet.http.Cookie class does not support SameSite property, there is no way to add a param hence the Set-Header.
|
So, as far as I understood Chrome made the default behavior more secure by setting the default to
|
The history of this fix in chrome is terrible (atleast from test this fix), the update is rolled back for the time being (until Covid-19) because it was causing a lot of websites to break. By changing
By adding a param to let users control it IMO is not required as This is some documentation on this "feature" - https://www.chromestatus.com/feature/5088147346030592 |
What changes were proposed in this pull request?
Update the Set-Cookie header for hadoop-jwt cookie to include SameSite=none parameter.
How was this patch tested?
This patch was tested on a local cluster.