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

fix: Reduces Dashboard cookie lifetime #13895

Merged

Conversation

gustavotrott
Copy link
Collaborator

@gustavotrott gustavotrott commented Dec 10, 2021

As reported by @prlanzarin, the Dashboard could possibly introduce a problem in BBB.
Every time a session is ended, Moderators receive a cookie with the accessToken to open the Dashboard.
Even when moderator doesn't want to open the Dashboard, the cookie is set. And after several meetings (over 70) the cookies size limit would be exceeded and BBB would stop working.

E.g:
dashboard-cookies

image
https://docs.microsoft.com/en-us/previous-versions/ms178194(v=vs.140)?redirectedfrom=MSDN

This PR propose some changes to reduce this probability:

  • Set the default expire time to 1hour, instead of 30 days (reduce garbage)

  • Case the Dashboard is opened, extends the cookie lifetime for more 7 days, instead of 30 days

  • Reduce the name of the cookie replacing learningDashboardAccessToken-* by ld-*

  • Plus: Remove the accessToken from the Json to avoid demoted users to copy the token before be demoted

@sonarcloud
Copy link

sonarcloud bot commented Dec 10, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability D 1 Vulnerability
Security Hotspot A 0 Security Hotspots
Code Smell A 17 Code Smells

No Coverage information No Coverage information
5.0% 5.0% Duplication

@antobinary antobinary added this to the Release 2.4 milestone Dec 13, 2021
@antobinary antobinary merged commit 3433396 into bigbluebutton:v2.4.x-release Dec 14, 2021
@gustavotrott gustavotrott deleted the dashboard-cookies-fix branch March 11, 2024 16:53
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.

None yet

2 participants