Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] opensearch login not working with more than 15 roles assign to user #1567

Closed
Rajat0312 opened this issue Aug 29, 2023 · 13 comments
Closed
Assignees
Labels
bug Something isn't working triaged

Comments

@Rajat0312
Copy link

Hey,
Currently i am using OpenSearch 1.3.X version and in this version i am facing Too large Cookie issue opensearch-project/security#374 this issue is solved in 2.7 version but i need some workaround for 1.3.X version to solve this issue. When i am using user with around 10-12 roles it works but when i increate roles up to 15 then not able to login to OpenSearch-dashboard.
and can anyone tell me about how this works like where JWT token is created either in OpenSearch or in OpenSearch-dashboard and from where cookies sets.

@Rajat0312 Rajat0312 added bug Something isn't working untriaged labels Aug 29, 2023
@Rajat0312 Rajat0312 changed the title [BUG] [BUG] opensearch login not working with more than 15 roles assign to user Aug 29, 2023
@dblock
Copy link
Member

dblock commented Aug 29, 2023

I can't figure out what the fix for this actually was .. moving this into the security repo, hopefully someone can track it down?

1 similar comment
@dblock
Copy link
Member

dblock commented Aug 29, 2023

I can't figure out what the fix for this actually was .. moving this into the security repo, hopefully someone can track it down?

@dblock dblock transferred this issue from opensearch-project/OpenSearch Aug 29, 2023
@davidlago
Copy link

It seems like we did not backport #1352 to the 1.x line, as technically it was not classified as a bug fix but an enhancement. Backporting that PR should take care of it.

@dblock can you please move this to the security-dashboards-plugin repo?

@davidlago davidlago transferred this issue from opensearch-project/security Aug 30, 2023
@davidlago
Copy link

@dblock never mind, I had permissions to do the transfer myself.

@cwperks
Copy link
Member

cwperks commented Sep 11, 2023

@davidlago There is one known regression in cookie splitting that's currently being fixed: #1522

This should also be backported to 1.3 when its fixed.

@stephen-crawford
Copy link
Contributor

[Triage] Hi @Rajat0312, thank you for filing this issue. The best guess is that this issue is a result of the cookie size limit. In general, it is advisable to condense roles when possible.

By backporting the cookie splitting change after backporting #1522, this should be resolved.

@davidlago
Copy link

@jochen-kressin please keep this one on your radar, as soon as #1552 is fixed and backported to 1.x, please make sure this one makes it to 1.x too. Thanks!

@jochen-kressin
Copy link
Contributor

@davidlago Just to make sure that I understand this correctly: in addition to #1552, we also need to backport the original cookie splitting PR?

@davidlago
Copy link

Yes, exactly. But as that PR has the regression we're fixing in #1552, let's make sure it does not get backported before that fix is in.

@leanneeliatra
Copy link
Contributor

leanneeliatra commented Nov 28, 2023

Can you assign this to me please @davidlago .

Testing from my end currently in progress on this PR #1662

@leanneeliatra
Copy link
Contributor

Hi @peternied, @scrawfor99, @cwperks can I ask about the PR in relation to this please? #1662

I've tested the code and would like a pair of eyes on the changes so far and to asses what is outstanding with me please. I have changed the ticket to ready for review but on the particular branch, I cannot select anyone as reviewers, it's a backport to be merged back into 1.x.

So I would like some advice on

  1. Are we happy with the fix, that it works and that the selenium tests were updated for this issue.
  2. What if anything is outstanding
  3. How can I get reviews

Thanks very much, it would be great to get your experienced comments on the questions above please.

@leanneeliatra
Copy link
Contributor

This ticket is in the final stages.
Update of progress:

@cwperks
Copy link
Member

cwperks commented Mar 20, 2024

Closing this issue. The cookie splitting logic will be released in the next patch release for 1.3: 1.3.15.

You can find the release schedule here.

@cwperks cwperks closed this as completed Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

7 participants