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

PIPRES-319: Webhook controller protection #841

Conversation

mandan2
Copy link
Contributor

@mandan2 mandan2 commented Nov 14, 2023

Added lock protection for main front controllers.

Tested with spam tool to check if controllers resist and lock required resources.

@mandan2 mandan2 self-assigned this Nov 14, 2023

$errorHandler->handle($exception, null, false);

$this->releaseLock();
Copy link

Choose a reason for hiding this comment

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

can we add a finally block and release the lock there ? saw it other places too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no

@mandan2 mandan2 merged commit 905bd7d into PIPRES-319-atomic-process-for-controllers Nov 14, 2023
5 checks passed
@mandan2 mandan2 deleted the PIPRES-319-webhook-controller-protection branch November 14, 2023 14:29
mandan2 added a commit that referenced this pull request Nov 14, 2023
* PIPRES-319: Lock process adapter (#839)

* PIPRES-319: Webhook controller protection (#841)

* PIPRES-319: Webhook controller protection

* phpstan and test fix

* warning fix

* stan fix

* webhook thrown exception improvements

* removed comment

* csfixer
JevgenijVisockij pushed a commit that referenced this pull request Jan 16, 2024
* PIPRES-319: Lock process adapter (#839)

* PIPRES-319: Webhook controller protection (#841)

* PIPRES-319: Webhook controller protection

* phpstan and test fix

* warning fix

* stan fix

* webhook thrown exception improvements

* removed comment

* csfixer
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.

3 participants