Skip to content

Conversation

@artem-vavilov
Copy link
Member

@artem-vavilov artem-vavilov commented Jan 1, 2026

An attempt to fix the identity assumption issue, where the Account Settings page frequently shows the admin account instead of the assumed identity

Links

Comment on lines +58 to +60
# Ensures a clean new session for the assumed identity
sign_out admin
reset_session
Copy link
Member Author

Choose a reason for hiding this comment

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

# GET /reset_session
def reset
client_state.reset
sign_out if current_user
reset_session
render layout: false
end

@artem-vavilov artem-vavilov requested a review from a team January 5, 2026 08:28
Copy link
Contributor

@carl-codeorg carl-codeorg left a comment

Choose a reason for hiding this comment

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

LGTM. I tested this locally and the admin functionality still works, although since I've never been able to repro the actual bug, I can't tell for sure if this will fix it. I think we should merge it and see if reports of the issue die down.

@artem-vavilov artem-vavilov merged commit 9b3f359 into staging Jan 5, 2026
6 checks passed
@artem-vavilov artem-vavilov deleted the P20-1722/assume-identity-fix branch January 5, 2026 18:48
@artem-vavilov
Copy link
Member Author

LGTM. I tested this locally and the admin functionality still works, although since I've never been able to repro the actual bug, I can't tell for sure if this will fix it. I think we should merge it and see if reports of the issue die down.

I could not reproduce this either, but it looks like a session store issue, possibly a race condition or session ID caching that is not being reset correctly. Hopefully, manually resetting the previous (admin) session would fix it

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