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

fix: errors on ses #596

Merged
merged 50 commits into from
Nov 7, 2024
Merged

fix: errors on ses #596

merged 50 commits into from
Nov 7, 2024

Conversation

andreabadesso
Copy link
Contributor

Acceptance Criteria

  • These patches fix situations where SES blocked libraries from mutating javascript native objects
  • We also fix a race condition caused by react-native-mmkv blocking execution.

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

andreabadesso and others added 30 commits April 15, 2024 13:18
@andreabadesso andreabadesso self-assigned this Nov 6, 2024
@andreabadesso andreabadesso added the enhancement New feature or request label Nov 6, 2024

- Error.prepareStackTrace = undefined;
+ // XXX: SES blocks this, it shouldn't. This will cause us to have less information on dev logs.
+ // We should remove this comment after this is fixed on SES side.
Copy link
Contributor

Choose a reason for hiding this comment

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

question: Do we have an issue we can track for this on SES repos?

Just in case this is forgotten for a while, the developer that eventually picks it up can immediately check some resource to understand if it's safe to remove this patch already.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apparently it was fixed:
endojs/endo#251

But stills throws an error here.

I'll open a KTLO to investigate this deeper

But since this only fails in dev, I'll continue with the merge

@andreabadesso andreabadesso force-pushed the feat/lavamoat-integration branch 2 times, most recently from 4c95a93 to e9a0644 Compare November 7, 2024 01:43
Base automatically changed from feat/lavamoat-integration to master November 7, 2024 10:57
@andreabadesso andreabadesso merged commit a0b6a8a into master Nov 7, 2024
1 check passed
@andreabadesso andreabadesso deleted the fix/errors-on-ses branch November 7, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants