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

Token verification cache #3243

Open
roman-khimov opened this issue Mar 21, 2025 · 0 comments
Open

Token verification cache #3243

roman-khimov opened this issue Mar 21, 2025 · 0 comments
Labels
enhancement Improving existing functionality I4 No visible changes neofs-storage Storage node application issues performance More of something per second S4 Routine U3 Regular

Comments

@roman-khimov
Copy link
Member

Is your feature request related to a problem? Please describe.

I'm always frustrated when we're wasting resources for operations we can avoid. Most of the time NeoFS PUT/GET requests come with some kind of token (session/bearer). Nodes validate these tokens as they should be doing, but they do it for every request, while in fact tokens do not change often. Currently this means an additional signature verification, but with #3194 implemented it could mean an additional RPC request.

Describe the solution you'd like

Hash and cache. When we get a token that was verified previously just trust the previous verification result. This obviously is about token validity, not request validity wrt provided token, because a good PUT session token still doesn't allow to perform GET, but at least we can immediately say that the token is OK.

Describe alternatives you've considered

Keep wasting resources per request.

@roman-khimov roman-khimov added I4 No visible changes neofs-storage Storage node application issues performance More of something per second S4 Routine U3 Regular enhancement Improving existing functionality labels Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality I4 No visible changes neofs-storage Storage node application issues performance More of something per second S4 Routine U3 Regular
Projects
None yet
Development

No branches or pull requests

1 participant