-
Notifications
You must be signed in to change notification settings - Fork 149
Execute JS challenge logic before Symfony startup #2054
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
Conversation
b378e12 to
757819b
Compare
048d51c to
40e91d1
Compare
anvit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just have a question about a small change, everything else looks good!
| \n | ||
| # Development-specific configuration | ||
| expose_php = on | ||
| opcache.validate_timestamps = on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change related to this fix? I couldn't figure out why this was removed from the docker config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Accidental leftover from trying to squeeze performance out of PHP. I will restore this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in most recent commit
anvit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sbreker !
Extract the JS challenge from the Symfony filterchain, action, and template into minimal PHP entry points. These new files run before Symfony’s autoloader is invoked. Scripts are CSP‐compliant and use localStorage for state. Bypassing the full Symfony framework for these endpoints significantly improves request performance. If the `config/appChallenge.yml` file is missing, AtoM's JS Challenge feature will be deactivated.
eb96ded to
cfa587c
Compare
Extract the JS challenge from the Symfony filterchain, action, and template into
minimal PHP entry points. These new files run before Symfony’s autoloader is
invoked. Scripts are CSP‐compliant and use localStorage for state. Bypassing
the full framework bootstrap for bot and headless‐browser endpoints eliminates
unnecessary overhead and significantly improves request performance.