Skip to content

fix: [ANS-2850] add referer header validation cache#31

Merged
ghiffari-agsarya merged 3 commits intomainfrom
ANS-2850-fix-invalid-referer-header
Jan 8, 2025
Merged

fix: [ANS-2850] add referer header validation cache#31
ghiffari-agsarya merged 3 commits intomainfrom
ANS-2850-fix-invalid-referer-header

Conversation

@ghiffari-agsarya
Copy link
Copy Markdown
Collaborator

Added caching to GetClientInformation calls during referer header validation, cache lifetime is 60 seconds (1 minute). Based on Marsel suggestion https://accelbyte.slack.com/archives/C077YPGHWRF/p1730436581241239?thread_ts=1730433611.416489&cid=C077YPGHWRF

removed old Python version
Copy link
Copy Markdown
Contributor

@anggorodewanto anggorodewanto left a comment

Choose a reason for hiding this comment

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

Need documentation to explain to future us that this cache is for avoiding requesting to IAM if IAM's URL changed while the JWT being inspected is still using old URL

@ghiffari-agsarya ghiffari-agsarya merged commit 2f9987a into main Jan 8, 2025
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