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

Add Integrity enforcement for all Persisted Data Files #78

Open
TanmoySG opened this issue Feb 28, 2023 · 0 comments
Open

Add Integrity enforcement for all Persisted Data Files #78

TanmoySG opened this issue Feb 28, 2023 · 0 comments

Comments

@TanmoySG
Copy link
Owner

Currently all files are stored in FS as JSON and loaded from same. If someone changes the data in file it effects the integrity of the persisted data. To make sure we can identify if integrity has been compromise, we can

  • Create a Integrity File
  • Store SHAx of the data being persisted
  • To ensure in-time/exact integrity check, use Timestamp involved integrity check,
{
    "hash" : "jhdfbvjofvo239u9023hfd2jb",
    "timestamp" : 1234567,
}

The above can be file.integrtity

  • While loading from file, use the integrity file to check for integrity.
  • While unloading to file, refresh the integrity file with timestamp and hash.
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

No branches or pull requests

1 participant