![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
file-freezer
Advanced tools
automatically prevent certain file edits from slipping past human code review
Table of Contents |
---|
You want this if:
Example:
This approach is conceptually similar to a Merkle tree or blockchain, in that it signs each file with a comment hash such that a prior change would alter subsequent signatures, raising a red flag on the next check that either file or sequence integrity was not preserved.
/your/project> node file-freezer --help
-f, --files [value] glob string passed to npmjs.org/glob to fetch file sequence
(defaults to "./migrations/**/*.@(js|sql)")
-h, --help Output usage information
-r, --readOnly Whether to write signatures to files or error in their absence.
Useful for tests (disabled by default)
-u, --uninstall removes all signature comments from all files found via --files
(disabled by default)
-s, --silent log nothing out (disabled by default)
require('file-freezer')({
// same option flags as cli above; example:
files:'./migrations/**/*.@(js|sql)'
})
file-freezer
token hash it detectsfile-freezer
hash
readOnly
is false
, writes the hash in a comment atop the sourcereadOnly
is true
, logs and exits with code 1file-freezer
hash, logs and exits with code 1Attaching this to your tests with --readOnly
will catch missing signatures and errant edits to desirably immutable files / sequences even if human reviewers do not.
--readOnly
option so it defaults to false
and signs new files)/*FILE-FREEZER:<HASH>*/
to /* FILE-FREEZER:<HASH> */
to comport with common linter rules. The matching regex was also updated, so existing signatures should still be found.FAQs
automatically prevent certain file edits from slipping past human code review
We found that file-freezer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.