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

[EasyNotification] Update SqsQueueTransport.php to handle FIFO queues #1631

Conversation

mark-fajardo
Copy link
Contributor

@mark-fajardo mark-fajardo commented Jan 27, 2025

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets PNM-685

@mark-fajardo mark-fajardo force-pushed the feature/PNM-685-update-sqs-queue-transport-to-handle-fifo-queues-new branch from 436e7c1 to a24740c Compare January 27, 2025 02:49
@mark-fajardo mark-fajardo force-pushed the feature/PNM-685-update-sqs-queue-transport-to-handle-fifo-queues-new branch from a24740c to 8885bc2 Compare January 27, 2025 02:58
@eonx-space-to-github-reviews
Copy link

Copy link
Contributor

@dextercampos dextercampos left a comment

Choose a reason for hiding this comment

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

Thanks @mark-fajardo. Nice work! 🎉 Code review complete.

Secure code in this PR has been written to best practice standards and covers the following as a minimum. Please ticket if coded this way (also tick if not relevant to this code change):

  • Protect from Injection attacks
  • Protect data with proper input validation, and protect against buffer overflows, pointers/shared data
  • Protect with appropriate encryption and cryptography (E.g. Appropriate hashing, symmetric encryption used, ciphers) if applicable
  • Protect against XSS and CSRF
  • Ensure that pages, data access etc, are written with appropriate access control authorisation and authentication requirements
  • Ensure all important errors and business logic cases are handled
  • Ensure forwards and redirects are handled
  • Ensure no sensitive data is exposed and appropriate logging in place as required

See procedure for more details: PROC-010 Secure Coding Practices

Comment on lines +28 to +31
if (\str_ends_with($queueUrl, '.fifo')) {
$messageDeduplicationId = (string)Uuid::v4();
$messageGroupId = (string)Uuid::v4();
}
Copy link
Member

Choose a reason for hiding this comment

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

I think it's ok not to complicate things in this package as we are the only ones to use it really, but we need to at least required the symfony/uid package in composer so we ensure the Uuid class is available 😄

Copy link
Member

@natepage natepage left a comment

Choose a reason for hiding this comment

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

Well done! Code review passed.

Secure code in this PR has been written to best practice standards and covers the following as a minimum. Please ticket if coded this way (also tick if not relevant to this code change):

  • Protect from Injection attacks
  • Protect data with proper input validation, and protect against buffer overflows, pointers/shared data
  • Protect with appropriate encryption and cryptography (E.g. Appropriate hashing, symmetric encryption used, ciphers) if applicable
  • Protect against XSS and CSRF
  • Ensure that pages, data access etc, are written with appropriate access control authorisation and authentication requirements
  • Ensure all important errors and business logic cases are handled
  • Ensure forwards and redirects are handled
  • Ensure no sensitive data is exposed and appropriate logging in place as required

See procedure for more details: PROC-010 Secure Coding Practices

@dextercampos dextercampos merged commit 664b8ae into eonx-com:4.x Jan 28, 2025
64 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants