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: ensure crucial security measure is implemented per https://rxdb.info/replication.html#security #82

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

rbeauchamp
Copy link
Contributor

PR Classification

Documentation and security enhancement.

PR Summary

Updated README.md for better badge display and added security details; modified code to ensure server-side timestamp integrity.

  • README.md: Simplified badge display using Markdown and added "Security Considerations" section.
  • ReplicatedDocument.cs: Changed _updatedAt field to be settable and modified UpdatedAt property setter.
  • IReplicatedDocument.cs: Updated UpdatedAt property to be getter-setter.
  • MutationResolver.cs: Set UpdatedAt to current UTC time during document operations.
  • PushDocumentsTests.cs: Added test to verify server overwrites client-provided timestamp.

@rbeauchamp rbeauchamp self-assigned this Sep 16, 2024
@github-actions github-actions bot added the fix Something isn't working label Sep 16, 2024
@rbeauchamp rbeauchamp merged commit c7d3a6e into main Sep 16, 2024
4 checks passed
@rbeauchamp rbeauchamp deleted the fix-security-issue branch September 16, 2024 14:52
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (5edef13) to head (e52c0f6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #82   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          241       241           
  Branches        14        14           
=========================================
  Hits           241       241           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant