Manage nuclei-templates with version control system (with git or something similar) #6466
Closed
dogancanbakir
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Wouldn’t it be cleaner to just wipe everything (or move it to somewhere like Using Git here just bloats things because we’re dragging in every commit, tree, and blob. $ git count-objects -vH
count: 231
size: 2.04 MiB
in-pack: 972004
packs: 19
size-pack: 330.19 MiB
prune-packable: 26
garbage: 0
size-garbage: 0 bytes
$ git rev-list --objects main | git cat-file --batch-check='%(objectsize) %(rest)' | awk '{total += $1} END {print total}'
5.83704e+09 What’s the Git flow design supposed to look like here? Shallow clone makes sense on the first init, but what about after that? ex. tracking new/previous releases, comparing annotated commits, etc. IMO that’s just piling on complexity. (Also, why was this discussion closed already?) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
See the initial discussion: #4690
Notes from internal discussion @Mzack9999 and I:
During template updates, instead of rename, we create a new template, leaving outdated ones behind
The default nuclei-templates folder should be like a git repository, this way renames and deletions would be tracked correctly. Actually I guess we only unzip directly
Somehow we need to identify with template history, which ones are dupes based on content similarity and implement an auto-fix mechanism like to delete them if they were not altered and have only been renamed elsewhere, but I guess it's not super trivial and might take some time
We should consider introducing git like version control for nuclei templates to manage them since there can be lots of changes or modifications by mirroring for nuclei-templates since GH rate limit can cause issues.
Beta Was this translation helpful? Give feedback.
All reactions