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

hepa: periodically refresh auth session #496

Merged
merged 1 commit into from
Dec 26, 2023
Merged

Conversation

bnewbold
Copy link
Collaborator

This works around a current issue in prod where actions are failing to persist because the session expires.

The real fix for the underlying issue (IMHO) is to re-implement xrpc.Client to handle this in a more elegant and robust way. That is sort-of tracked in #378

I was initially confused why this was only coming up when taking actions, because the client is used for a number of reads (GET) as well. Those GETs mostly use admin auth (a token in the HTTP Authorization header), not login/session auth (which requires refresh), which explains why it mostly works, then fails for actions.

@bnewbold
Copy link
Collaborator Author

I'm going to merge this as well, to get out a deploy on top of the context refactor.

This PR is really just a hack around xrpc.Client not (yet) supporting automatic session refresh.

@bnewbold bnewbold merged commit f36f09d into main Dec 26, 2023
7 checks passed
@bnewbold bnewbold deleted the bnewbold/hepa-auth-refesh branch December 26, 2023 13:10
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

1 participant