instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
taniarascia__takenote__334
taniarascia/takenote
334
defect
a37f12282b3d54aaf049e73894af0e53823be4fd
db9cc7f33fabec3f1cb9bd26668ffe7d680203ee
Feat/prettier note shortcut
Please read the [Contribution Guidelines](../CONTRIBUTING.md) before opening a pull request. ## Description Can run prettier on active note using keyboard shortcut `ctrl`+`alt`+`i` Closes #327 ## Browser Checklist This PR has been tested in the following browsers: - [x] Chrome - [x] Firefox - [x] Sa...
diff --git a/config/jest.config.js b/config/jest.config.js index 14e2939a..7d47a4ad 100644 --- a/config/jest.config.js +++ b/config/jest.config.js @@ -13,6 +13,7 @@ module.exports = { // Allow `@/` to map to `src/client/` in Jest tests '@/(.*)$': '<rootDir>/src/client/$1', '@resources/(.*)$': '<rootDir>/...
4
4
3
[{"id": "G0", "claim": "Add the prettier HTML, CSS, TypeScript and Babel parser imports so code blocks in the note can be formatted too.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Prettier should be configured with the HTML, CSS, JS and TS plugi...
null
taniarascia__takenote__424
taniarascia/takenote
424
defect
174c1ad2507b213f5d31238ce91e52ada01b15ad
e1605579366f3a98658d27cba811eba177cfbe76
Feat/add import export data
## Description Allow users to backup and import their Takenote data. The data is exported as JSON and imported likewise. Edge cases handled when importing: - If duplicate categories are found then they are overwritten and won't be added again. This is to avoid key collisions. - Duplicate notes are added wi...
diff --git a/package-lock.json b/package-lock.json index 42fef5cb..1f0af636 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "takenote", - "version": "0.6.1", + "version": "0.7.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -6434,6 +6434,23 @@ } ...
3
2
0
[{"id": "G0", "claim": "The backup download name could use `dayjs` to make a slightly more pleasant date URL instead of the current ISO timestamp.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `IMPORT_BACKUP` label should read 'Import backup' wit...
null
taniarascia__takenote__428
taniarascia/takenote
428
defect
0f825bccb58a686d409d37e19ddd468befeee380
759d767444da7374ab8f813903c9c05800c4d000
Implement linked notes
## Description - Notes can be hyperlinked to one another within a note body using a note's shortened UUID with the following syntax: `#h1p3u4` - Added quick reference to a note's UUID in the note menu bar - Clicking a note's ID will copy it to the clipboard without the hash, display 'Copied!' and return to display...
diff --git a/package-lock.json b/package-lock.json index eb16ac76..ce01c3c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2687,6 +2687,11 @@ "source-map": "^0.6.1" } }, + "@types/unist": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist...
5
5
1
[{"id": "G0", "claim": "The \"copy link to note\" option should also be available in the note context menu, not only in the menu bar.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The copied link should look obviously like a link in edit mode, e.g. [#nn...
null
taniarascia__takenote__475
taniarascia/takenote
475
defect
89a199d91ec1c86949f25d4567e88c84e2b012d1
aef81884ec8cf132a800083e63d65afe8911811f
implementing tests for previewEditor and notelink component
## Description Create tests fro preview editor component Create tests for notelink component ### Browser checklist This PR has been tested in the following browsers: - [X] Chrome - [ ] Firefox - [ ] Safari ### Testing checklist - [X] End-to-end tests have been created if necessary
diff --git a/README.md b/README.md index b3eaaabb..f7841a60 100644 --- a/README.md +++ b/README.md @@ -263,6 +263,7 @@ Thanks goes to these wonderful people: <!-- markdownlint-enable --> <!-- prettier-ignore-end --> + <!-- ALL-CONTRIBUTORS-LIST:END --> ## Acknowledgements diff --git a/src/client/components/Edit...
1
1
0
[{"id": "G0", "claim": "The test variable misspelled as `createNotText` should be named `createNoteText`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
taosdata__TDengine__29609
taosdata/TDengine
29,609
defect
d85ddf78fb60ed21600d7712e50c57a66feff9a4
b9a92eff7d935453f80ae367e9ccdfa574fe7b0c
fix(rpc):use tsApplyMemoryAllowed to control memory alloc while apply…
… msg. # Description Please briefly describe the code changes in this pull request. # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ] Is there no significant decrease in test coverage?
diff --git a/include/common/tglobal.h b/include/common/tglobal.h index 7a7f298d0d79..cc69c9f2da44 100644 --- a/include/common/tglobal.h +++ b/include/common/tglobal.h @@ -73,6 +73,7 @@ extern int32_t tsNumOfQnodeFetchThreads; extern int32_t tsNumOfSnodeStreamThreads; extern int32_t tsNumOfSnodeWriteThreads; extern i...
3
3
1
[{"id": "G0", "claim": "The two sequential ifs in taosAllocateQitem (one for RPC_QITEM, one for APPLY_QITEM) can be turned into an if/else if instead.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "When qitem allocation fails, the rollback subtr...
null
taosdata__TDengine__33971
taosdata/TDengine
33,971
defect
c24250d6353acb7604930d77d3a30a3dafdf91d0
4ae5a6a6d7dee5ce287e4b3659261f4afb6fc3bd
Feat/transSafe
# Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ] Is there no s...
diff --git a/source/client/inc/clientInt.h b/source/client/inc/clientInt.h index 5bec1606dffd..a38ab13d197b 100644 --- a/source/client/inc/clientInt.h +++ b/source/client/inc/clientInt.h @@ -194,6 +194,7 @@ typedef struct STscObj { SWhiteListInfo dateTimeWhiteListInfo; // date time white list info STscNotifyInfo...
4
2
1
[{"id": "G0", "claim": "The new function name `connCheckAndUpateMetric` contains a typo and should be spelled `connCheckAndUpdateMetric` in the declaration, definition and call sites.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`connCheckAndU...
null
taosdata__TDengine__33982
taosdata/TDengine
33,982
defect
8e2f52e1e4dbf5cad623f183b6c033a8db128d9d
ff297eb5a9180dcf48f84abaac19317aa00842e5
add checksum to transport
# Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ]...
diff --git a/source/libs/transport/inc/transComm.h b/source/libs/transport/inc/transComm.h index 5bbf7982a781..05759a649013 100644 --- a/source/libs/transport/inc/transComm.h +++ b/source/libs/transport/inc/transComm.h @@ -171,7 +171,7 @@ typedef struct { uint64_t timestamp; int32_t compatibilityVer; - uint32...
3
1
0
[{"id": "G0", "claim": "The unused tgt parameter should be removed from transDoCrc and transDoCrcCheck and from all their call sites.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is a typo chechSum in transDoCrc; it should be checkSum fo...
null
taosdata__TDengine__34197
taosdata/TDengine
34,197
defect
060e8e8ec8f92589c0dc9a381244ff08f58440ab
7109b00926f1be94201bdfad23cb2ca955e4d079
feat: support encrypt bse , mnode , stream checkpoint.
# Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ] Is there no s...
diff --git a/include/common/tglobal.h b/include/common/tglobal.h index c3bc49ac37e0..b63247970e86 100644 --- a/include/common/tglobal.h +++ b/include/common/tglobal.h @@ -405,6 +405,12 @@ int32_t taosCreateLog(const char *logname, int32_t logFileNum, const char *cfgDi const char *envFile, char *a...
7
1
1
[{"id": "G0", "claim": "The dmGetEncryptKey error-handling block in mainWindows ends with an extraneous semicolon after the closing brace that should be removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "taosSetTfsCfg(tsCfg) is called both ...
null
taosdata__TDengine__34344
taosdata/TDengine
34,344
defect
691e376e38a907d786cab2f4e25cf42e38dbc774
a13fe63a38cc4a76dc8ffdc52089a4773adf5b11
enh: prohibit users from tampering with configuration files after data encryption takes effect
# Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ] Is there no s...
diff --git a/docs/en/14-reference/01-components/01-taosd.md b/docs/en/14-reference/01-components/01-taosd.md index 09997c879f7b..c32fa32c3395 100644 --- a/docs/en/14-reference/01-components/01-taosd.md +++ b/docs/en/14-reference/01-components/01-taosd.md @@ -92,10 +92,10 @@ Additional Notes: | metaEntryCacheSize ...
7
2
0
[{"id": "G0", "claim": "In the zh docs for numOfStreamRunnerThreads the field labels 参数类型 and 动态修改 are swapped: line 1698 reads \"参数类型:支持通过 SQL 修改,重启生效\" and line 1699 reads \"动态修改:不支持\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the zh do...
null
taosdata__TDengine__34542
taosdata/TDengine
34,542
defect
af1299fce0f3405be93d79d64db8479260d4b257
ff26661f6272fab83823e1d046b305e46456a2a5
fix: stmt2 memleak
# Description https://project.feishu.cn/taosdata_td/defect/detail/6734892865 # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ] Is there...
diff --git a/source/client/src/clientMain.c b/source/client/src/clientMain.c index 0fe92551dec4..dff75f137998 100644 --- a/source/client/src/clientMain.c +++ b/source/client/src/clientMain.c @@ -2802,6 +2802,10 @@ int taos_stmt2_bind_param(TAOS_STMT2 *stmt, TAOS_STMT2_BINDV *bindv, int32_t col if (code) { ...
5
2
1
[{"id": "G0", "claim": "The pCreateTbReq cleanup block, duplicated later at lines 2826-2829, should be extracted into a local helper function to avoid duplication and improve maintainability.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The va...
null
taosdata__TDengine__34572
taosdata/TDengine
34,572
defect
0fb8d991aa62889490d7a024c0a55028ac36e6b9
b5699d38c0196811dbf42082b16d04bd86e6045b
enh: check privilege of show tables
# Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ]...
diff --git a/include/libs/catalog/catalog.h b/include/libs/catalog/catalog.h index dbff0aa47524..eb9cd562f470 100644 --- a/include/libs/catalog/catalog.h +++ b/include/libs/catalog/catalog.h @@ -20,6 +20,7 @@ extern "C" { #endif +#include "nodes.h" #include "os.h" #include "query.h" #include "taosdef.h" @@ -29,7...
3
2
0
[{"id": "G0", "claim": "The hash-initialize-and-fill logic in the AUTH_TYPE_SHOW case of ctgChkSetBasicAuthRes is repeated several times and should be refactored into helper functions to reduce duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
taosdata__TDengine__34591
taosdata/TDengine
34,591
defect
2b6d8cf2a0c58736c108c4f411a793035afc4ef3
c3c5cba0e1b0637d7c676ce0ef620a1fafb9b112
feat: support secure delete option.
# Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ] Is there no s...
diff --git a/include/common/tglobal.h b/include/common/tglobal.h index c4c793a899f1..8bc1fc3c042b 100644 --- a/include/common/tglobal.h +++ b/include/common/tglobal.h @@ -143,6 +143,7 @@ extern int32_t tsNumOfStreamRunnerThreads; extern int32_t tsNumOfCompactThreads; extern int32_t tsNumOfRetentionThreads; +extern ...
11
6
5
[{"id": "G0", "claim": "In mndBuildStbSchemaImp the expression pStb->secureDelete ? pStb->secureDelete : pDb->cfg.secureDelete lets a database-level SECURE_DELETE 1 override a table-level SECURE_DELETE 0, so secureDelete at table level should be a tri-state value (-1 inherit, 0 off, 1 on) with correct inheritance handl...
null
taosdata__TDengine__34601
taosdata/TDengine
34,601
defect
d514c5cf874702484631f040ae8440edd8ddf270
d0ed54b983dc1b90832bf59b6c270f49b296876b
fix(xnode): support displaying dynamic error message returned by xnoded
Closes [6833801941](https://project.feishu.cn/taosdata_td/defect/detail/6833801941) # Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. -...
diff --git a/source/client/src/clientMsgHandler.c b/source/client/src/clientMsgHandler.c index f7246452c7ba..c03dbc098347 100644 --- a/source/client/src/clientMsgHandler.c +++ b/source/client/src/clientMsgHandler.c @@ -1358,6 +1358,27 @@ int32_t processCreateTotpSecretRsp(void* param, SDataBuf* pMsg, int32_t code) { ...
5
1
1
[{"id": "G0", "claim": "Assigning pMsg->len to pRequest->msgBufLen in processCreateXnodeTaskRsp overwrites the buffer-capacity field with the incoming message length, which can lead to memory safety issues, so the line should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i...
null
taosdata__TDengine__34640
taosdata/TDengine
34,640
defect
f70f0b942224d2e98ba3396ae235e3809a9caa0f
22198b4a6b531d55b536d350a2af8c40fb8bb738
fix: stmt vtable query core
# Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ]...
diff --git a/include/libs/parser/parser.h b/include/libs/parser/parser.h index 5ffecb7b38da..72a2c1a5ec81 100644 --- a/include/libs/parser/parser.h +++ b/include/libs/parser/parser.h @@ -205,7 +205,7 @@ STableMeta* qGetTableMetaInDataBlock(STableDataCxt* pDataBlock); int32_t qCloneCurrentTbData(STableDataCxt* pDat...
14
6
3
[{"id": "G0", "claim": "The unconditional memcpy of metaData into pStmt->exec.pRequest->parseMeta leaks catalog metadata, because existing parseMeta content is never freed before overwriting and request teardown does not free parseMeta.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "in...
null
taosdata__TDengine__35057
taosdata/TDengine
35,057
defect
d40cbed3dcf05c0b3fa7c0f174a2b028919466b4
08a89c9e2b9950aaac283e1ebb2cf456c5f2a820
refactor(timezone): checkTime in dnode and mnode implementations and timetruncate logic for interval (main branch)
… ms across dnode and mnode implementations # Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] ...
diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 389adcd8950c..b1f582518e45 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -2710,7 +2710,11 @@ void tFreeSRetrieveFuncRsp(SRetrieveFuncRsp* pRsp); typedef struct { int32_t statusInterval; - int64_t checkTime; ...
4
3
1
[{"id": "G0", "claim": "Setting checkTime to a constant 0 on both the mnode and dnode sides makes the timezone-consistency check in mndCheckClusterCfgPara ineffective, so a genuine timezone mismatch will not be detected; derive checkTime from the configured timezone or update the check logic accordingly.", "category": ...
null
taosdata__TDengine__35079
taosdata/TDengine
35,079
defect
0c7c05d82302c94996e90e54ce6e26dbce6bfead
cc5c49756bd3321a9981df623fc32869263f020b
fix: taos_cleanup
# Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close/close/Fix/fix/Resolve/resolve: Issue Link # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ]...
diff --git a/source/libs/qcom/src/queryUtil.c b/source/libs/qcom/src/queryUtil.c index 29fb5c4a0916..13ba089379ba 100644 --- a/source/libs/qcom/src/queryUtil.c +++ b/source/libs/qcom/src/queryUtil.c @@ -190,6 +190,7 @@ bool tIsValidSchema(struct SSchema* pSchema, int32_t numOfCols, int32_t numOfTag if ((isVirtual &&...
5
4
1
[{"id": "G0", "claim": "The added line inside the conditional block after `return false;` carries unnecessary trailing whitespace and should be removed to keep the code clean.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "test/ci/cases.task rep...
null
taosdata__TDengine__35234
taosdata/TDengine
35,234
defect
6e152b2994efa54bf0636fef5c38b67be47f1765
b52877da564d4057fa286bcda269e54fe1a38b24
fix: solving code security issues.
Expose tsdbCacheDeserialize for unit tests, relax C++ compilation for the test target, and fix the test payload layout to match the on-disk format. Add a dmNotifyHdl stub to satisfy vnode meta link requirements. # Description <!-- Please briefly describe the code changes in this pull request. --> # Issue(s) - Close...
diff --git a/source/client/src/clientRawBlockWrite.c b/source/client/src/clientRawBlockWrite.c index 7f049b50630a..2fbc04010c9c 100644 --- a/source/client/src/clientRawBlockWrite.c +++ b/source/client/src/clientRawBlockWrite.c @@ -381,6 +381,9 @@ static int32_t processCreateStb(SMqMetaRsp* metaRsp, cJSON** pJson) { ...
11
2
2
[{"id": "G0", "claim": "tsdbCacheDeserialize lacks a bounds check that size is at least sizeof(SLastColV0) before calling tsdbCacheDeserializeV0, so a buffer smaller than the V0 struct will cause an out-of-bounds read; a check returning TSDB_CODE_INVALID_DATA_FMT should be added.", "category": "security", "verdict": "u...
null
taosdata__TDengine__35235
taosdata/TDengine
35,235
defect
62d5ac27b8595b9ec1df55da19297ecd64a3a93e
88eca8f104eea30a5d6887c787b0782201852829
feat: add STMT/STMT2 support for external_window queries
- Remove stmtBindVersion guard in translateWindow() to allow STMT mode - Add externalWindowNodeCopy() in nodesCloneFuncs.c for correct clone - Add STMT/STMT2 regression cases in test_external.py - Add 0-param STMT SELECT negative test in test_write_stmt_error.py # Description <!-- Please briefly describe the c...
diff --git a/source/client/src/clientStmt2.c b/source/client/src/clientStmt2.c index 2ddcc60c475b..888ed3bfe39e 100644 --- a/source/client/src/clientStmt2.c +++ b/source/client/src/clientStmt2.c @@ -3210,7 +3210,8 @@ int stmtExec2(TAOS_STMT2* stmt, int* affected_rows) { STMT_ERR_RET(stmtAddBatch2(pStmt)); } -...
10
8
5
[{"id": "G0", "claim": "The pTimeRange field of SExternalWindowLogicNode is a cloned node but is not destroyed in nodesDestroyNode, which will result in a memory leak when the logic plan node is destroyed; nodesDestroyNode(pLogicNode->pTimeRange) should be added.", "category": "correctness", "verdict": "uncertain", "pr...
null
taosdata__driver-go__125
taosdata/driver-go
125
defect
fe0e2af5dcae40b29e8c35599d8c54c0307f3b74
a2c8b899308d3c8dd170059c1d6692b599f962a1
style: change code style
1. delete unreachable code 2. replace `time.Now.Sub` to `time.Since` 3. change type switch in wrapper/stmt.go
diff --git a/af/rows.go b/af/rows.go index d34d4b23..e0f4b023 100644 --- a/af/rows.go +++ b/af/rows.go @@ -57,7 +57,9 @@ func (rs *rows) Next(dest []driver.Value) error { } if rs.block == nil { - rs.taosFetchBlock() + if err := rs.taosFetchBlock(); err != nil { + return err + } } if rs.blockSize == 0 { ...
2
1
1
[{"id": "G0", "claim": "The pull request's commit messages should follow the conventional commits / team PR & commit message style, ideally squashed into one rewritten commit.", "category": "process", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "A single global sync.Once (p...
null
taosdata__driver-go__351
taosdata/driver-go
351
defect
6f61f25ad83c5bf45333f27e6e91fab7ba93ea3b
6c895e754af41540b90a39c43b497a7541a4c632
feat: add support for BearerToken and TOTP authentication
# Description feat: add support for BearerToken and TOTP authentication # Issue(s) - resolve: https://project.feishu.cn/taosdata_td/feature/detail/6641467177 # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [x] Are the test cases passed and automa...
diff --git a/.github/workflows/enterprise.yml b/.github/workflows/enterprise.yml new file mode 100644 index 0000000..43845a9 --- /dev/null +++ b/.github/workflows/enterprise.yml @@ -0,0 +1,89 @@ +name: enterprise.yml +on: + pull_request: + branches: + - '3.0' + - 'main' + push: + branches: + - '3...
14
14
6
[{"id": "G0", "claim": "TestConnectTotp creates the totp_user but does not drop it after the test completes, which can pollute subsequent test runs; add a defer to drop the user like the token cleanup pattern.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
taosdata__driver-go__353
taosdata/driver-go
353
defect
96e0e3b740b9730d0ec73fea32188ec3cb066a5a
bd66d58c82d3d2c596e7487297846e003dfa354b
chore: update version to v3.7.8 and modify notify tests for enterprise edition
# Description chore: update version to v3.7.8 and modify notify tests for enterprise edition # Issue(s) # Checklist Please check the items in the checklist if applicable. - [ ] Is the user manual updated? - [ ] Are the test cases passed and automated? - [ ] Is there no significant decrease in test cove...
diff --git a/version/version.go b/version/version.go index d833628..16446c7 100644 --- a/version/version.go +++ b/version/version.go @@ -1,4 +1,4 @@ package version const Tag = "v3.7.8" -const Commit = "5328b71" +const Commit = "96e0e3b" diff --git a/wrapper/notify_test.go b/wrapper/notify_test.go index 0d3124a..22...
1
1
1
[{"id": "G0", "claim": "The S1 restructure moves the whitelist 'ALTER USER t_notify ADD HOST' block to after the user has been dropped, so the ALTER USER command will fail and the test will fail, and the trailing t.Skip is used incorrectly; the whitelist test should be moved back before the drop-user operation (or the ...
null
taosdata__driver-go__56
taosdata/driver-go
56
defect
b33e164d5682bd00434742901647fe4cd4ec54c0
3db89837ab5b520313142f4511c4a679bee61616
C wrapper
taos_reset_current_db taos_validate_sql taos_is_update_query @sangshuduo @zitsen
diff --git a/wrapper/taosc.go b/wrapper/taosc.go index 48866df8..5a14e479 100644 --- a/wrapper/taosc.go +++ b/wrapper/taosc.go @@ -38,10 +38,10 @@ func TaosFreeResult(res unsafe.Pointer) { // TaosConnect TAOS *taos_connect(const char *ip, const char *user, const char *pass, const char *db, uint16_t port); func TaosCo...
2
1
0
[{"id": "G0", "claim": "The test should avoid the magic number 0x0216 and use a named constant for the expected error code instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TaosValidateSql would be better returning an error directly instea...
null
tapdata__tapdata__1809
tapdata/tapdata
1,809
defect
3f9e5119617267c1f1bbc3fe29ec58cb680f5cbe
593ac73c210b4464302cf23e2d23874f06f211b8
feat:TAP-1514 Support skipping the previous error when starting the t…
…ask, pop-up window to view the error, select the error to skip
diff --git a/iengine/iengine-app/src/main/java/io/tapdata/flow/engine/V2/node/hazelcast/HazelcastBaseNode.java b/iengine/iengine-app/src/main/java/io/tapdata/flow/engine/V2/node/hazelcast/HazelcastBaseNode.java index 7cbc1b26f5..16c5c3eb85 100644 --- a/iengine/iengine-app/src/main/java/io/tapdata/flow/engine/V2/node/ha...
7
6
2
[{"id": "G0", "claim": "The block in errorHandle that judges whether the error can be skipped should be encapsulated into its own method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The skip notice should be logged at info level with a fixed,...
null
tapio__live-server__110
tapio/live-server
110
defect
9cd794b47d94a3a14453998d8cbc43bde187b945
00dde8d38c9d3feb28169decba298bfa8112e1b7
HTTPS support
- Adds HTTPS support (closes #101)
diff --git a/README.md b/README.md index 6801909..d88051c 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ Command line parameters: * `--wait=MILLISECONDS` - wait for all changes, before reloading * `--htpasswd=PATH` - Enables http-auth expecting htpasswd file located at PATH * `--cors` - Enables CORS for an...
3
2
1
[{"id": "G0", "claim": "The HTTPS support ships without tests; the author should create tests for it, which the reviewer assumes can be done with self-signed snake oil certs.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The chdir to the CLI path makes...
null
tapio__live-server__91
tapio/live-server
91
defect
81c5a405404c79ef57e18cdb516ac50970b403d9
c48915e86cba4b779fd0222e19e66005f8ef6e15
Basic HTTP Authentication via htpasswd
Hi, I think this option might me useful when deploying to cloud instances such as Heroku. Please merge if you think this options fits into live-server. I will use locally only otherwise. Cheers Andi
diff --git a/README.md b/README.md index d9c5df2..887c109 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ Command line parameters: * `--entry-file=PATH` - serve this file in place of missing files (useful for single page apps) * `--mount=ROUTE:PATH` - serve the paths contents under the defined route (multipl...
3
3
1
[{"id": "G0", "claim": "The cli flag and the api param should both be named htpasswd instead of authPath for consistency.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The http-auth dependency should allow patch updates, e.g. 2.2.x, instead of the exact...
null
tarampampam__microcheck__6
tarampampam/microcheck
6
defect
613e795389bbf3dfb099a1805987f6c571c77d44
a243be7d2ecb4001cee540169d9295c1e3a0823d
🐛 fix: Prevent CRLF injection in HTTP headers and parameters
Added functions to validate HTTP headers, hostnames, and paths against CRLF injection attempts to enhance security. This prevents potential injection attacks by rejecting any input containing CR or LF characters. Updated relevant parsing functions and added comprehensive tests to ensure robustness against such vulnerab...
diff --git a/src/httpcheck.c b/src/httpcheck.c index e3a88bc..6380acc 100644 --- a/src/httpcheck.c +++ b/src/httpcheck.c @@ -11,6 +11,7 @@ #include <arpa/inet.h> #include <ctype.h> #include <errno.h> +#include <limits.h> #include <netdb.h> #include <netinet/in.h> #include <signal.h> @@ -445,6 +446,31 @@ static bo...
5
3
0
[{"id": "G0", "claim": "Consider adding a validate_no_crlf(config.basic_auth) check after the command-line basic-auth parsing so credentials from argv are validated for CR/LF early, for consistency with other parameter validation.", "category": "security", "verdict": "uncertain", "priority": "P2", "scope": "pre_existin...
null
tarampampam__microcheck__9
tarampampam/microcheck
9
defect
4c698c1c3d22ce41c879c0fb28b7d39edf86d4fa
ec2fc9e0f4ed62a190d96f4938e4e00fa52084dd
✨ feat(pidcheck): Add new PID checking utility for process monitoring
Introduced a new tool, `pidcheck`, to verify if a process specified by a PID file or directly by PID is running. This utility enhances container health checks by allowing users to monitor daemon processes that do not expose network ports.
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a13a9a2..00b1e9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -100,6 +100,7 @@ jobs: docker cp app:/bin/httpscheck ./dist/httpscheck docker cp app:/bin/portcheck ./dist/portcheck ...
5
4
0
[{"id": "G0", "claim": "The check `errno == EINVAL` after `strtol` is incorrect because `strtol` does not set `errno` to `EINVAL` per POSIX, making that condition unreachable; remove it from the check.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
taranis-ai__taranis-ai__114
taranis-ai/taranis-ai
114
defect
c86cbae02ec99ca36fc2962479f6011ee5cb2501
2d02ddb59d09b811ee1cc3d9dab61cfeed20dcb4
Add XPATH scraping possibility
Resolves #22 There are bugs found in the Simple Web Collector. Scraping some websites throws errors in the Core. Example: https://www.bbc.com/news/live/world-middle-east-67906496 Error: [Core] [ERROR] - Updating status for 3b29d020-3e13-48dd-96ec-cf2f10741761 with error message string indices must be integers, ...
diff --git a/src/core/core/managers/workers_pre_seed.py b/src/core/core/managers/workers_pre_seed.py index c6ea133b4..3c8ed7198 100644 --- a/src/core/core/managers/workers_pre_seed.py +++ b/src/core/core/managers/workers_pre_seed.py @@ -32,6 +32,7 @@ "WEB_URL", "USER_AGENT", "PROX...
11
3
1
[{"id": "G0", "claim": "sanitize_date should use datetime.datetime.utcnow() instead of datetime.datetime.now() to avoid timezone-related issues in the timestamps it generates.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The filter_by_word_list ...
null
taranis-ai__taranis-ai__131
taranis-ai/taranis-ai
131
defect
db5a2992cfe58be18e8c875c873514451096b1bc
d4b363ca30c13948ee24b7f5a1009612a76dd308
Add RT collector as a new collection method
Create new Request Tracker collector Resolves #80 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new feature for gathering data from Request Tracker, including ticket details, attachments, and transaction history. <!-- end o...
diff --git a/src/core/core/managers/pre_seed_data.py b/src/core/core/managers/pre_seed_data.py index 0f37c4a40..bc667ef0b 100644 --- a/src/core/core/managers/pre_seed_data.py +++ b/src/core/core/managers/pre_seed_data.py @@ -66,6 +66,15 @@ ], "type": "SELENIUM_WEB_COLLECTOR", }, + { + "...
7
5
1
[{"id": "G0", "claim": "check_attach_for_text removes IDs from attachment_ids while iterating over it, which can skip elements; collect IDs to remove in a separate list and return the filtered result instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl...
null
taranis-ai__taranis-ai__155
taranis-ai/taranis-ai
155
defect
f4d3c0604bb0fe03444bd7988cafd9d2051ca8c5
e0776252b6780cfa290a29366021deef51a1b0aa
Feature/rss collector digest splitting
resolves #104 - [x] SOLVED Creating News Item objects is done. There seem to be a flaw because the newitem cant be published. - I needed to change some code in `BaseWebCollector.parse_web_content()` due to insufficient error handling which was discovered <!-- This is an auto-generated comment: release notes ...
diff --git a/src/core/core/managers/pre_seed_data.py b/src/core/core/managers/pre_seed_data.py index b727b9c27..3b2e9069e 100644 --- a/src/core/core/managers/pre_seed_data.py +++ b/src/core/core/managers/pre_seed_data.py @@ -10,6 +10,8 @@ {"parameter": "PROXY_SERVER"}, {"parameter": "TLP_LEVEL...
17
7
0
[{"id": "G0", "claim": "The DIGEST_SPLITTING and DIGEST_SPLITTING_LIMIT parameters should have descriptions so users can understand their purpose without external documentation.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DIGEST_SPLITTING p...
null
taranis-ai__taranis-ai__158
taranis-ai/taranis-ai
158
defect
6a1f9c8b6ed7ba4b3f768c4cf4d51bd1252a62c9
4f0acabb27f8822871f4f1b07bf54f2f79eb1229
- Added a new event to `sse_manager.py`
**Feature: Extend SSEManager with new Event and Unit Tests** - Added a new event `product_rendered` to `SSEManager` that will notify clients when a product successfully completed its rendering process - Created documentation for all events in the `SSEManager` class. - Implemented unit tests for all events in `SSEM...
diff --git a/doc/developer-docs/sse-events.md b/doc/developer-docs/sse-events.md new file mode 100644 index 000000000..081bcab5e --- /dev/null +++ b/doc/developer-docs/sse-events.md @@ -0,0 +1,26 @@ +# Server-Side Events Implementation + +Server-Side Events (SSE) enable servers to push updates to web clients in real-ti...
2
2
1
[{"id": "G0", "claim": "The documentation for the `product-rendered` event says its payload includes data about the updated report item, which is a copy-paste error from the `report-item-updated` event, and it should instead describe the rendered product.", "category": "documentation", "verdict": "supported", "priority...
null
taranis-ai__taranis-ai__166
taranis-ai/taranis-ai
166
defect
4741c966858018c5300fe32d53c724b662ad5072
534a50233489a49a840e76b07b2eb3ffecfe5227
Add basic integration tests for Simple Web, RT and RSS collectors
Add tests created in https://github.com/taranis-ai/taranis-ai/issues/143#issuecomment-1956847617 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new data collection functionalities for web and RSS in the worker module. - **Tests**...
diff --git a/src/worker/worker/tests/test_collector.py b/src/worker/worker/tests/test_collector.py index 59ae159db..f7dcaf9f4 100644 --- a/src/worker/worker/tests/test_collector.py +++ b/src/worker/worker/tests/test_collector.py @@ -34,6 +34,77 @@ def collectors_mock(osint_source_update_mock, news_item_upload_mock): ...
7
2
1
[{"id": "G0", "claim": "The title of news_item_aggregate_3 in testdata.py is misspelled as \"Test Aggregarte Number 3\" and should be corrected to \"Test Aggregate Number 3\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The f-strings f\"{we...
null
taranis-ai__taranis-ai__173
taranis-ai/taranis-ai
173
defect
164c6d35e299f23ade83839b95db07540905509d
5904f7f49e1b6115fbd00c15e8c491bca79fcac0
Feature/mail publisher
resolves #103 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced configurations for email publishers and product rendering data for vulnerability reports. - Added test cases for an email publisher functionality, including publi...
diff --git a/src/core/core/api/worker.py b/src/core/core/api/worker.py index bd337c595..642a23f39 100644 --- a/src/core/core/api/worker.py +++ b/src/core/core/api/worker.py @@ -328,3 +328,4 @@ def initialize(api: Api): api.add_namespace(beat_ns, path="/beat") api.add_namespace(worker_ns, path="/worker") + d...
10
4
1
[{"id": "G0", "claim": "The send_email method hardcodes the SMTP server (localhost:1025); externalize the SMTP server configuration (host, port, credentials) to a configuration file or environment variables.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
taranis-ai__taranis-ai__220
taranis-ai/taranis-ai
220
defect
c4c28b141b9d40ac8c673c98706481fc0fc64a1a
e56f8b8bf305c3a2e534732c226370e6f7d5b58f
Refactor collectors to return NewsItem objects instead of dictionaries
This commit updates the SimpleWebCollector and EmailCollector to return NewsItem objects. Before, these collectors returned dictionaries. Changes include: - Modifying the return type of gather_news_items and related helper methods. - Ensuring that all methods directly handling NewsItem data now expect and work wit...
diff --git a/.gitignore b/.gitignore index e1d2bb083..73df4ceff 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ src/.env *.njsproj *.sln *.sw? +/.python-version diff --git a/src/worker/worker/collectors/base_collector.py b/src/worker/worker/collectors/base_collector.py index 98dea6091..965d88c84 100644 --...
12
2
2
[{"id": "G0", "claim": "The test-data migration dropped the content attribute that the previous dictionaries had, leaving the fixture NewsItems without content — the reviewer asks why content is not present anymore.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
taranis-ai__taranis-ai__245
taranis-ai/taranis-ai
245
defect
9a961d8dd4bde33500a5a34b00a432cc1f66c092
9483c1ce20133f7cca965926e099fc1a95771218
Fix error handling in the Simple Web Collector and other
Bug: The digest splitting was initially designed for RSS collector, therefore, the relative URLs scraped by Simple Web Collector were handled incorrectly. Bug2: the RSS and Simple WC don't use class variable `news_items`. Solution: Simple Web Collector, RT Collector and RSS Collector now create the subsequent URL...
diff --git a/src/worker/worker/collectors/base_web_collector.py b/src/worker/worker/collectors/base_web_collector.py index fa8db04bd..06658b2d7 100644 --- a/src/worker/worker/collectors/base_web_collector.py +++ b/src/worker/worker/collectors/base_web_collector.py @@ -141,18 +141,27 @@ def create_news_item( def ge...
2
2
1
[{"id": "G0", "claim": "Finding a relative URL and converting it is part of normal operation, so the 'Relative URL found' log added in check_relative_url should use info level instead of warning.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
taranis-ai__taranis-ai__296
taranis-ai/taranis-ai
296
defect
ad2f8df1eb9475b706811c17bbc3ec4d48ea927a
dfd0948be5a6e03debac3c83e039151c9cd24966
add tags to report & update notification timeout
Fixes #276 Fixes #250 <!-- Generated by sourcery-ai[bot]: start summary --> ## Summary by Sourcery This pull request introduces tagging functionality for stories in reports, fixes data type issues for story IDs, and enhances notification timeout settings and error handling in API endpoints. - **New Features**: ...
diff --git a/src/core/core/api/analyze.py b/src/core/core/api/analyze.py index ee22549eb..240ee823a 100644 --- a/src/core/core/api/analyze.py +++ b/src/core/core/api/analyze.py @@ -24,16 +24,16 @@ def get(self, report_item_id): def put(self, report_item_id): request_data = request.json if not isi...
3
2
0
[{"id": "G0", "claim": "Replace the fixed 5-second setTimeout in rerenderProduct with a more robust approach such as polling the render status or a webhook, since a fixed delay could load the product before rendering has finished.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"},...
null
taranis-ai__taranis-ai__304
taranis-ai/taranis-ai
304
defect
e9439afb1d2d9fba0a8ece8f51faf877d0716954
df9160cd3f5025c59af07b75f5b8e60924d9f58f
Enhance Collector Flexibility with Custom HTTP Header Supportt
This PR introduces extended HTTP header support for RSS and simple web collectors. Key updates include: Implementation of additional headers handling. Tests to ensure robust initialization and error handling with custom headers. Verification that collectors function correctly under new configurations. <!-- Genera...
diff --git a/src/core/core/managers/pre_seed_data.py b/src/core/core/managers/pre_seed_data.py index 392be1723..3eb0a5c47 100644 --- a/src/core/core/managers/pre_seed_data.py +++ b/src/core/core/managers/pre_seed_data.py @@ -17,6 +17,7 @@ "type": "number", "rules": "digest_splitting_li...
5
4
0
[{"id": "G0", "claim": "set_additional_headers both logs the JSON error and raises a ValueError with the same message, which is redundant; it should either log or raise, but not both (optionally via a custom exception).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
taranis-ai__taranis-ai__316
taranis-ai/taranis-ai
316
defect
b82150ff2df959ea0d9dfa7c6837a94cf9af4d75
f159e14cdfa1a828db8987279baccafac2eef79b
base collector improvements
- In pre_seed_data.py, added support for JSON format in the ADDITIONAL_HEADERS parameter. - In EditConfig.vue, added validation for JSON format in the ADDITIONAL_HEADERS parameter. Fixes #313 Fixes #314 <!-- Generated by sourcery-ai[bot]: start summary --> ## Summary by Sourcery Improve the base collector by ad...
diff --git a/src/core/core/managers/pre_seed_data.py b/src/core/core/managers/pre_seed_data.py index 2040b392c..3c368b6fa 100644 --- a/src/core/core/managers/pre_seed_data.py +++ b/src/core/core/managers/pre_seed_data.py @@ -6,7 +6,7 @@ {"parameter": "FEED_URL", "rules": "required"}, {"paramet...
4
2
1
[{"id": "G0", "claim": "The JSON validation added to EditConfig.vue only checks the first element and may not catch all invalid cases; it should use a try-catch block with JSON.parse() on the entire input for more thorough validation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
taranis-ai__taranis-ai__368
taranis-ai/taranis-ai
368
defect
dc5ac202c4fb9aa7f16568f01fe56548729608d3
ada26063e94a5d9c5a1300ff6802c4ae4902a95a
Improve RT Collector
- This PR solves a feature request where RTCollector has improved functionality described bellow. - It also fixes issue with `newsItemNewsItemsAttributes` DB cascading. This should be revised carefully. - Frontend blocks editing of RT story as per picture #### The general flow is: 1. Tickets are collected from R...
diff --git a/src/core/core/api/worker.py b/src/core/core/api/worker.py index 21e12d515..4750dfbbe 100644 --- a/src/core/core/api/worker.py +++ b/src/core/core/api/worker.py @@ -123,6 +123,12 @@ def get(self): return story, 200 return {"error": "No stories found"}, 404 + @api_key_required + ...
12
6
3
[{"id": "G0", "claim": "The except clause in decode64 is too broad and could mask specific encoding issues; it should catch specific exceptions such as UnicodeDecodeError and provide more detailed error information.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": ...
null
taranis-ai__taranis-ai__394
taranis-ai/taranis-ai
394
defect
7f45d07d59c3b591f181a006e3f592fc144ec31d
b72a8ba60a527ed11aa886f813b08e619734199a
Bug: patch_attributes() not commiting to DB - failing silently
1. BUG - the patch_attributes() function called in [bots.py](https://github.com/taranis-ai/taranis-ai/blob/master/src/core/core/api/bots.py#L88) is not commiting to the database at all. IMPROVEMENTS - `update` and `patch_attributes()` payload unified. - rename `update_attributes` to `set_attributes` to better r...
diff --git a/src/core/core/model/story.py b/src/core/core/model/story.py index 4e3236abf..5087d9bae 100644 --- a/src/core/core/model/story.py +++ b/src/core/core/model/story.py @@ -502,8 +502,9 @@ def update_attributes(self, attributes): self.set_atrribute_by_key(key=attribute["key"], value=attribute["valu...
2
2
2
[{"id": "G0", "claim": "db.session.commit() inside the attribute loop in patch_attributes() makes a database commit per attribute update, which could be very inefficient; move the commit outside the loop so all changes are batched into a single transaction.", "category": "performance", "verdict": "supported", "priority...
null
taranis-ai__taranis-ai__397
taranis-ai/taranis-ai
397
defect
7f45d07d59c3b591f181a006e3f592fc144ec31d
781cec5b1482cd26aafeab3dfab9b2c2a0bc591d
Feature/221 product render e2e test
1. Add pytest fixture for simulating a worker rendering a report, adapt e2e_test_publish test case in test_e2e_workflow.py 2. Fix failing e2e test cases test_assess and test_reports (credit to @b3n4kh & @not4Pedro ) 3. Change /tasks POST method, so that only failed presenter_tasks are stored in the tasks table ## Su...
diff --git a/src/core/core/api/task.py b/src/core/core/api/task.py index 893fd0377..7c95ba48d 100644 --- a/src/core/core/api/task.py +++ b/src/core/core/api/task.py @@ -7,6 +7,7 @@ from core.log import logger from core.model.word_list import WordList from core.model.token_blacklist import TokenBlacklist +from core.m...
4
1
0
[{"id": "G0", "claim": "store_task_result silently continues after a failed /tasks API call, which could lead to subtle issues; consider re-raising the exception or documenting why it is safe to continue.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "...
null
taranis-ai__taranis-ai__407
taranis-ai/taranis-ai
407
defect
a21c75300a148ac941f0fc3744400a4426f60f29
73f5d62b1bbeb870a0efddee8c8cbe84de80b270
Feature/390 conditional request
Add conditional request feature to Web Collectors - BaseWebCollector has new send_get_request method, which allows sending GET requests with If-Modified-Since header and uses conditional requests in fetch_article_content method - RSSCollector checks for entire non-modified RSS feeds and non-modified feed entries -...
diff --git a/src/worker/worker/collectors/base_web_collector.py b/src/worker/worker/collectors/base_web_collector.py index e58a756c0..43f560881 100644 --- a/src/worker/worker/collectors/base_web_collector.py +++ b/src/worker/worker/collectors/base_web_collector.py @@ -6,7 +6,7 @@ from urllib.parse import urlparse, url...
9
5
0
[{"id": "G0", "claim": "It would be beneficial to add tests for other HTTP error codes like 500 and 503 so that send_get_request is shown to handle them gracefully.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The if-expression `self.last_attempted if s...
null
taranis-ai__taranis-ai__409
taranis-ai/taranis-ai
409
defect
80a3dc3093c54372d25e5095461a62cf2539f79d
73d067795a625c79bd949cb54d8d12087f4287bc
Feature/405 handle 429 too many requests
Introduce a special error message for 429 Too Many Request HTTP errors, that suggests to the admin to decrease the REFRESH_INTERVAL of a collector. ![Pasted image](https://github.com/user-attachments/assets/f14224e2-415a-411c-8df9-6e94bc1759c7) Technical details: - Refactor send_get_request method in BaseWeb...
diff --git a/src/core/core/managers/pre_seed_data.py b/src/core/core/managers/pre_seed_data.py index 89d56b61c..2e05e39b0 100644 --- a/src/core/core/managers/pre_seed_data.py +++ b/src/core/core/managers/pre_seed_data.py @@ -31,6 +31,7 @@ {"parameter": "ADDITIONAL_HEADERS"}, {"parameter": "XPA...
2
1
0
[{"id": "G0", "claim": "The RT collector's API request error handling could be simplified (e.g. with a decorator) to eliminate the duplicated try/except code while keeping the logging and resilient behavior.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
taranis-ai__taranis-ai__425
taranis-ai/taranis-ai
425
defect
390809085e19827757533981c8f083996cf311e0
d247a3537b89921e844d2a5fb55e99a2dd8388c7
add build attestation
Add [Provenance attestations](https://docs.docker.com/build/metadata/attestations/slsa-provenance/) to Taranis AI Attestation can be verified with: `gh attestation verify oci://ghcr.io/taranis-ai/taranis-core --owner taranis-ai` ## Summary by Sourcery Adds build provenance attestations to the Taranis AI contai...
diff --git a/.github/workflows/build_core.yaml b/.github/workflows/build_core.yaml index 1ddab9377..085fa2e14 100644 --- a/.github/workflows/build_core.yaml +++ b/.github/workflows/build_core.yaml @@ -8,17 +8,24 @@ on: - '.github/workflows/build_core.yaml' branches: - master + - feature/attestation ...
3
2
0
[{"id": "G0", "claim": "The setup-node step in the build_core workflow uses the src/gui directory, inconsistent with the rest of the core build steps that target src/core; consider changing it to src/core to ensure the correct context for the node setup.", "category": "maintainability", "verdict": "supported", "priorit...
null
taranis-ai__taranis-ai__431
taranis-ai/taranis-ai
431
defect
acad0e72257e8697cb87807945b2625deb89353f
8e937f71e86bf94d5ee52a0a85ff4570d2917ff5
Global admin Settings
Refactor Organization model and create global admin settings ## Summary by Sourcery Introduce global admin settings and refactor the Organization model to embed the address directly as a JSON column, removing the separate Address model. New Features: - Introduce a new API endpoint for managing global settings, allow...
diff --git a/src/core/core/api/admin.py b/src/core/core/api/admin.py index 9aa5c7316..b8dd1e2aa 100644 --- a/src/core/core/api/admin.py +++ b/src/core/core/api/admin.py @@ -7,6 +7,7 @@ from core.model.news_item_tag import NewsItemTag from core.model.story import Story from core.service.story import StoryService +fro...
6
3
2
[{"id": "G0", "claim": "The migration dependency name 'remove-obsolte-column-from-product' appears to contain a typo and should be corrected to 'obsolete' if this is not intentional.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Nothing populat...
null
taranis-ai__taranis-ai__490
taranis-ai/taranis-ai
490
defect
622ac3a3f97b7f7cbeb52eab437e5201ed5cf1e2
ee111e0e9e203477cb252983f4875e902dce1445
Fix/tlp enum
- Fixes the incorrect comparison of TLP levels in https://github.com/taranis-ai/taranis-ai/blob/master/src/core/core/service/role_based_access.py filter_query_with_tlp & filter_report_query_with_tlp methods - Adds test cases for TLP level access ## Summary by Sourcery Improve TLP (Traffic Light Protocol) level c...
diff --git a/src/core/core/model/role.py b/src/core/core/model/role.py index a75c4e98f..082685bcd 100644 --- a/src/core/core/model/role.py +++ b/src/core/core/model/role.py @@ -18,6 +18,20 @@ class TLPLevel(StrEnum): AMBER = "amber" RED = "red" + def __lt__(self, other): + if not isinstance(other,...
4
2
1
[{"id": "G0", "claim": "The test's repetitive blocks for different TLP levels should be replaced with @pytest.mark.parametrize to reduce duplication and make adding more TLP levels easier.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test case for...
null
taranis-ai__taranis-ai__508
taranis-ai/taranis-ai
508
defect
60d2d38ebf0295c1f634ae2ae71c14c694707a64
e44f1bbc694f2fdd403953f977d2514feb19d958
Bugfix/complex data and special characters handling
Process tags in a safe manner. Drop UTF-16 surrogates. ## Summary by Sourcery Fix UTF-16 surrogate handling and improve data processing in the MISP connector to prevent data corruption and improve error handling Bug Fixes: - Prevent data corruption when processing stories with UTF-16 surrogate characters ...
diff --git a/src/gui/src/views/users/ConflictsView.vue b/src/gui/src/views/users/ConflictsView.vue index 78c5a3c50..bbdfca1a1 100644 --- a/src/gui/src/views/users/ConflictsView.vue +++ b/src/gui/src/views/users/ConflictsView.vue @@ -151,7 +151,8 @@ function initMergelyForConflict(conflict) { const doc = new Merg...
4
2
1
[{"id": "G0", "claim": "Serializing the whole story to JSON and re-parsing it in get_story_by_id adds overhead for large or numerous stories; the cleaning logic should be applied directly instead of the JSON round-trip.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id"...
null
taranis-ai__taranis-ai__526
taranis-ai/taranis-ai
526
defect
ec024db5c1359cffb07088e32c3eb2b67267ed3b
f17cffddb9af317beea286db03562476630f6cfb
Fix order lists conflict resolution
Story conflict resolution was showing misleading diffs where the same tags appeared in different orders, causing false conflicts and breaking story clustering functionality. - Added _sort_recursively() method in story_conflict.py, which recursively sorts all dicts and lists to ensure consistent ordering - It sort...
diff --git a/src/core/core/model/story.py b/src/core/core/model/story.py index 2ff33ccc5..223d7f132 100644 --- a/src/core/core/model/story.py +++ b/src/core/core/model/story.py @@ -1021,7 +1021,7 @@ def to_detail_dict(self) -> dict[str, Any]: def to_worker_dict(self) -> dict[str, Any]: data = super().to_d...
10
6
2
[{"id": "G0", "claim": "Add test data with non-ASCII characters to test_stable_stringify_produces_consistent_results to confirm that stable_stringify correctly preserves them without escaping.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add tests for...
null
taranis-ai__taranis-ai__570
taranis-ai/taranis-ai
570
defect
ba9498aa73b1e390e4b0c0bc467225ef8f202db4
f60c6d5ea6b6ae0179085a206bed5e812f8ece99
Fix/show collector not modified
Add NOT_MODIFIED state to collector tasks, inform users via specific badge and tooltip of NOT_MODIFIED ## Detailed changes - Add on_success method to CollectorTask & CollectorPreview in collector_tasks.py -> sets Celery task state to NOT_MODIFIED when NoChangeError was caught - Change update_status method of OSI...
diff --git a/src/core/core/api/task.py b/src/core/core/api/task.py index ce88bb4cb..19cf55261 100644 --- a/src/core/core/api/task.py +++ b/src/core/core/api/task.py @@ -58,7 +58,7 @@ def serialize_result(result: dict | str | None = None): return result["message"] if "message" in result else result -def handle_...
6
1
0
[{"id": "G0", "claim": "Consider using the OSINTState enum values instead of raw integers for state assignment in OSINTSource.update_status, to improve readability and reduce the risk of assignment errors.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
taranis-ai__taranis-ai__597
taranis-ai/taranis-ai
597
defect
50869f421e5059a155f5c03b458a0653e737cef9
8db514496c01b4fba16f0580b176840904850c83
Fix test_e2e_publish rendering
- Fixes the rendering error in test_e2e_publish method in test_e2e_workflow.py - Adds rendering to test_e2e_publish in test_e2e_user.py ## Summary by Sourcery Fix rendering assertion failures in end-to-end publish tests by integrating an HTML render fixture, base64-encoding and validating test HTML in the fixture, a...
diff --git a/src/core/tests/playwright/conftest.py b/src/core/tests/playwright/conftest.py index 88b3a7e88..fc5837fb8 100644 --- a/src/core/tests/playwright/conftest.py +++ b/src/core/tests/playwright/conftest.py @@ -1012,8 +1012,11 @@ def get_product_to_render(): product_id = "test" # t...
3
1
0
[{"id": "G0", "claim": "Prefer waiting for specific UI elements or network responses instead of using fixed sleep durations in the E2E tests, to improve test reliability and speed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The text-render assertion...
null
taranis-ai__taranis-ai__598
taranis-ai/taranis-ai
598
defect
50869f421e5059a155f5c03b458a0653e737cef9
26650070254cbb968cfd369a0bd1740974370ade
JWT Identity Error + Auth tests
The JWT identity obtained from get_jwt_identity is a string -> does not have attributes This caused an error in auth_required (https://github.com/taranis-ai/taranis-ai/blob/master/src/core/core/managers/auth_manager.py) I also started with auth tests ## Summary by Sourcery Treat JWT identity as a simple string us...
diff --git a/src/core/core/managers/auth_manager.py b/src/core/core/managers/auth_manager.py index c2cbdef66..b3255d7b1 100644 --- a/src/core/core/managers/auth_manager.py +++ b/src/core/core/managers/auth_manager.py @@ -71,8 +71,8 @@ def wrapper(*args, **kwargs): logger.exception(str(ex)) ...
4
3
0
[{"id": "G0", "claim": "The API key test should assert that the API_KEY env var actually equals the known test key instead of merely asserting it is non-empty.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests should reuse the existing access_tok...
null
taranis-ai__taranis-ai__600
taranis-ai/taranis-ai
600
defect
50869f421e5059a155f5c03b458a0653e737cef9
9b387a46ff7f224617d65a7aed5eab95440b2555
Feature/global collector proxy
- resolves #399 - resolves #385 - Remove orphaned `default_proxy_server` - Create method `OSINTSource.get_with_defaults()` - Introduce tests ### Workflow - Set a global proxy for collectors - Create a new collector, enable switch to `USE_GLOBAL_PROXY` - Global proxy can be disabled per source - Global proxy...
diff --git a/src/core/core/api/worker.py b/src/core/core/api/worker.py index 2c9c17ebe..6fb9dc837 100644 --- a/src/core/core/api/worker.py +++ b/src/core/core/api/worker.py @@ -17,6 +17,7 @@ from core.model.bot import Bot from core.managers.decorators import extract_args from core.config import Config +from core.mod...
4
2
0
[{"id": "G0", "claim": "Remove or conditionally enable the leftover debug log of the template name in get_htmx_list_template to avoid log clutter and exposure of internal details in production.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Upda...
null
taranis-ai__taranis-ai__608
taranis-ai/taranis-ai
608
defect
e9a9b8710f6fb057342438871e12cb53c840b93f
6e88d0afd59e9aa2f252384f6d131ade7ebc359f
fix(frontend): Use 'sources' key for OSINT source import
This commit fixes a bug where importing OSINT sources from a JSON file would fail with a `KeyError: 'data'`. The issue was that the import process was looking for a "data" key in the JSON file, but the export process creates a file with a "sources" key. This commit changes the import logic to look for the correct...
diff --git a/src/frontend/frontend/views/base_view.py b/src/frontend/frontend/views/base_view.py index 4ebe483e7..fdb74b0bf 100644 --- a/src/frontend/frontend/views/base_view.py +++ b/src/frontend/frontend/views/base_view.py @@ -106,6 +106,11 @@ def get_edit_route(cls, **kwargs) -> str: route = cls.edit_route ...
8
4
1
[{"id": "G0", "claim": "The dummy-file setup in TestSourceView.test_import_post_view should be extracted into a shared method/helper instead of being duplicated per test.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider refactoring import...
null
taranis-ai__taranis-ai__615
taranis-ai/taranis-ai
615
defect
e13cc30925da8fd90646acf07107d79e110f99d2
1113fe193e56c06941db4fc75e1a46fddd174c21
Refactor report item model and templates for improved attribute handling
Fixes #607 Refactor report item model and front-end templates to improve attribute ordering, grouping, and rendering Bug Fixes: - Fix login with access token cookie in GUI AuthStore - Fix OSINT Source Group Datatables Enhancements: - Order attributes by index in ReportItem relationships and sequentially a...
diff --git a/src/core/core/model/report_item.py b/src/core/core/model/report_item.py index 37eef494b..421b3acaf 100644 --- a/src/core/core/model/report_item.py +++ b/src/core/core/model/report_item.py @@ -11,7 +11,7 @@ from core.managers.db_manager import db from core.model.base_model import BaseModel from core.mode...
1
1
0
[{"id": "G0", "claim": "The return type annotation of get_attribute_dict is incorrect: the method returns a flat list[dict[str, Any]], not list[dict[str, dict[str, Any]]].", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
taranis-ai__taranis-ai__689
taranis-ai/taranis-ai
689
defect
1ba57a9582b2322442dfcda0f60be9c46eafac61
61deb6aa27a0862c862ac40119d152e1efc5b768
Add an adjustable quota for conflict stores in Settings
- Default quotas (n=200) to the in-memory stores to prevent high memory usage. - Admin Settings adjustable quota - DeepCopy of JSON column, to assure correct migration of values (idea from https://stackoverflow.com/a/53977819). <img width="1533" height="1072" alt="image" src="https://github.com/user-attachments/...
diff --git a/src/core/core/model/news_item_conflict.py b/src/core/core/model/news_item_conflict.py index 381406bae..293d199b8 100644 --- a/src/core/core/model/news_item_conflict.py +++ b/src/core/core/model/news_item_conflict.py @@ -2,6 +2,7 @@ from typing import ClassVar, Dict, Any, Iterable, Optional import copy ...
4
2
1
[{"id": "G0", "claim": "max_items read from the new conflict-retention settings should be validated as a positive integer (or the settings input checked server-side) before enforcing quota, to prevent errors from invalid or negative values.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
taranis-ai__taranis-ai__711
taranis-ai/taranis-ai
711
defect
6c28b0deee90995b5f43f18b923bca30d1b376ab
bd6374b1157134d956bce6f0d9b530d556fa5dcb
Feature/autopublish products
## Summary by Sourcery Add support for automatically publishing products when associated report items are updated, including configuration of a default publisher per product and wiring through frontend, backend, and worker changes. New Features: - Allow products to be marked for automatic publication and associated w...
diff --git a/dev/template_dev/template_dev.py b/dev/template_dev/template_dev.py index f90dcdf8f..a16b060c0 100755 --- a/dev/template_dev/template_dev.py +++ b/dev/template_dev/template_dev.py @@ -14,10 +14,12 @@ "completed": True, "user_id": 1, "attributes": { - "d...
6
2
1
[{"id": "G0", "claim": "Use the explicit chain(render_sig, publish_sig).apply_async() form instead of the (render_sig | publish_sig) operator syntax in QueueManager.autopublish_product.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The AutoRend...
null
taranis-ai__taranis-ai__723
taranis-ai/taranis-ai
723
defect
81daf0393d77d3fe402ed502d75889d4d0d5a90d
334023a43ea59f1dbb0645e3c8cc647c174bf525
Replace CONTENT_LOCATION with USE_FEED_CONTENT boolean toggle
## Add USE_FEED_CONTENT boolean parameter for RSS collector This PR adds a more clear boolean toggle for RSS feed vs website content extraction while maintaining full backward compatibility. ### Changes - **New parameter**: `USE_FEED_CONTENT` (true/false) - control over content source - **Keeps**: `CONTENT_LOC...
diff --git a/src/core/core/managers/pre_seed_data.py b/src/core/core/managers/pre_seed_data.py index 910a13747..c44e07173 100644 --- a/src/core/core/managers/pre_seed_data.py +++ b/src/core/core/managers/pre_seed_data.py @@ -8,7 +8,7 @@ {"parameter": "PROXY_SERVER"}, {"parameter": "USE_GLOBAL_...
13
9
5
[{"id": "G0", "claim": "USE_FEED_CONTENT is defined as a switch and may arrive as a boolean, but only string values are parsed, so any non-string value falls through to False and can silently disable feed content; handle bool (and other truthy) values explicitly.", "category": "correctness", "verdict": "supported", "pr...
null
taranis-ai__taranis-ai__724
taranis-ai/taranis-ai
724
defect
81daf0393d77d3fe402ed502d75889d4d0d5a90d
d3417c22b7f1be268a4d24efc31d23bbac5bed19
Fix OSINT Source Search error
Searching for OSINT Sources was broken, got the frontend error: <img width="1011" height="93" alt="image" src="https://github.com/user-attachments/assets/e682a0c4-558b-43cc-bd7b-dc094fe0171b" /> Core showed: ```bash LINE 3: ...escription ILIKE $2::VARCHAR OR osint_source.type ILIKE $3 O... ...
diff --git a/src/core/core/model/osint_source.py b/src/core/core/model/osint_source.py index 4a993a7d6..eee3fdfb0 100644 --- a/src/core/core/model/osint_source.py +++ b/src/core/core/model/osint_source.py @@ -113,7 +113,9 @@ def get_filter_query(cls, filter_args: dict) -> Select: query = db.select(cls) ...
3
1
0
[{"id": "G0", "claim": "Extract the repeated f\"%{search}%\" pattern (used three times in the or_ clause) into a variable or helper to avoid duplication and centralize search behavior.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Strengthen th...
null
taranis-ai__taranis-ai__726
taranis-ai/taranis-ai
726
defect
81daf0393d77d3fe402ed502d75889d4d0d5a90d
11b0f10b5c2af4d2646d2ff080717565ebacbcea
Add unit test for multi-host PostgreSQL URI parsing and masking
I added 2 different formats of the connection string, the latter is in same format as noted in the taranis documentation https://taranis.ai/docs/getting-started/02_deployment-kubernetes/#multidb-sqlalchemy Both formats are accepted from psycop, both tests pass. See here: https://github.com/taranis-ai/tarani...
diff --git a/src/core/core/config.py b/src/core/core/config.py index 6af8478a6..b639e2b62 100755 --- a/src/core/core/config.py +++ b/src/core/core/config.py @@ -69,7 +69,7 @@ def set_sqlalchemy_uri(self) -> "Settings": ) if self.SQLALCHEMY_DATABASE_URI.startswith("sqlite:"): self.SQLA...
5
2
0
[{"id": "G0", "claim": "The masking test should also assert that the raw password does not appear in SQLALCHEMY_DATABASE_URI_MASK instead of only checking that the mask is truthy and different from the raw URI.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
taranis-ai__taranis-ai__730
taranis-ai/taranis-ai
730
defect
81daf0393d77d3fe402ed502d75889d4d0d5a90d
fe4d478304cfa50ffa04e79202b5aeb404518bfc
validate icon image on collection
Add icon validation, fallback to default icon on errors. screenshot of some osint sources on dev instance: <img width="2465" height="496" alt="image" src="https://github.com/user-attachments/assets/239b1017-39f8-4cd2-96ef-21a323562a0f" /> screenshot of same osint sources on local instance: <img width="246...
diff --git a/src/core/core/api/config.py b/src/core/core/api/config.py index f50832a94..c82f8c6c7 100644 --- a/src/core/core/api/config.py +++ b/src/core/core/api/config.py @@ -548,8 +548,11 @@ def get(self, source_id=None, filter_args=None): @auth_required("CONFIG_OSINT_SOURCE_CREATE") def post(self): - ...
11
4
2
[{"id": "G0", "claim": "Add tests asserting that empty (\"\") and whitespace-only (\" \") icon strings create an OSINTSource with icon None instead of raising, to capture the intended clear-icon behaviour.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
taranis-ai__taranis-ai__742
taranis-ai/taranis-ai
742
defect
b0b50a5e02229ee5b091576d335536696206a194
05152bc814b48176a5d6e0e975d0b07c69b0bb7d
Bug/product download decoding
Regarding: https://github.com/taranis-ai/taranis-ai/issues/740 - All product render results are saved as b64-encoded strings in database (see: https://github.com/taranis-ai/taranis-ai/blob/master/src/worker/worker/presenters/presenter_tasks.py) -> need to decode - Create file name from mime type - Do not use strea...
diff --git a/src/core/core/model/product.py b/src/core/core/model/product.py index c31c332d2..470eeeb02 100644 --- a/src/core/core/model/product.py +++ b/src/core/core/model/product.py @@ -1,19 +1,21 @@ -from datetime import datetime, timedelta -from typing import Any +import mimetypes import uuid from base64 import ...
5
3
2
[{"id": "G0", "claim": "Product.get_file_name should handle mimetypes.guess_extension returning None (filenames ending in \"None\") and sanitize the product title beyond replacing spaces, since slashes, colons and other unsafe characters can end up in the filename.", "category": "correctness", "verdict": "supported", "...
null
taranis-ai__taranis-ai__744
taranis-ai/taranis-ai
744
defect
a284ccf6b1e2df87c9b1b855642b0236da5f8f93
5cad32ce94b1f90a5e430a0b24c696c399b36502
Improve auth error handling and add retry logic for extern login
🚨Please review the [guidelines for contributing](https://github.com/taranis-ai/.github/blob/master/CONTRIBUTING.md) to this repository. ## Summary by Sourcery Improve robustness of authentication views by adding retry logic for external login and safer error handling for login and logout failures. Bug Fixes: - Hand...
diff --git a/src/frontend/frontend/auth.py b/src/frontend/frontend/auth.py index aecff941b..066c9393a 100644 --- a/src/frontend/frontend/auth.py +++ b/src/frontend/frontend/auth.py @@ -51,9 +51,21 @@ def _redirect_to_login(): def logout() -> tuple[str, int] | Response: - core_response: ReqResponse = CoreApi().l...
8
8
4
[{"id": "G0", "claim": "Rework logout() so the CoreApi().logout() call and the non-OK response handling share a single try/except that logs the failure and falls back to the login page with HTTP 500 and a default error message.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
taranis-ai__taranis-ai__745
taranis-ai/taranis-ai
745
defect
1b9c38465798d699c5db47c245cd75e9d40324fc
e4e8cbe5b6e4b22d153c8d7243ed5ef715a6bf32
Bugfix/bot type tags
- [x] Tagging bots now always save their `bot_type` attribute to prevent repetitive execution - [x] `Story._update_tags()` prevents complete overwrite of tags if the update comes from a bot - [x] Test bot enrichments properly against improper tag overrides and bot attribute addition Bots do not always save their `...
diff --git a/src/core/core/api/worker.py b/src/core/core/api/worker.py index 48a513c95..e5b9a8169 100644 --- a/src/core/core/api/worker.py +++ b/src/core/core/api/worker.py @@ -1,23 +1,23 @@ -from flask import Blueprint, request, send_file, Response, Flask +from flask import Blueprint, Flask, Response, request, send_fi...
9
8
6
[{"id": "G0", "claim": "With an empty found_tags, WordlistBot's update_tags call sends no data, so no story.set_tags runs and the bot_type attribute is never saved, contradicting the log message implying bot_type is persisted even when no tags are found.", "category": "correctness", "verdict": "supported", "priority": ...
null
taranis-ai__taranis-ai__749
taranis-ai/taranis-ai
749
defect
4bcf1c726b1ebc700039d061e2a337233a2381cf
fe257112278534a066f9faead71df5059c299c1f
Add SQLAlchemy pool timeout and recycle options to configuration
Add SQLALCHEMY_POOL_TIMEOUT and SQLALCHEMY_POOL_RECYCLE as sqlalchemy options. Can be set via ENV variables. ## Summary by Sourcery Add configurable SQLAlchemy connection pool timeout and recycle options and ensure they are propagated into engine options and the actual engine pool. New Features: - Introduce SQLAL...
diff --git a/src/core/core/config.py b/src/core/core/config.py index 1f9832580..589f571b9 100755 --- a/src/core/core/config.py +++ b/src/core/core/config.py @@ -50,6 +50,8 @@ class Settings(BaseSettings): SQLALCHEMY_CONNECT_TIMEOUT: int = 10 SQLALCHEMY_MAX_OVERFLOW: int = 10 SQLALCHEMY_POOL_SIZE: int = 2...
2
2
2
[{"id": "G0", "claim": "The new SQLALCHEMY_POOL_TIMEOUT and SQLALCHEMY_POOL_RECYCLE settings lack value constraints, so invalid values (like negatives, or zero where inappropriate) may be passed through to SQLAlchemy; the reviewer asks to add Field constraints (e.g. ge=0 or gt=0) so they are rejected early.", "category...
null
taranis-ai__taranis-ai__762
taranis-ai/taranis-ai
762
defect
fa4d96abdc4513f752d8702cbe83e708385c9361
0728c097e1914b11951415e0ffc90a5bfd1247ba
Select time range for Story export
Add DateTime Picker objects to Admin -> Settings -> Export Stories <img width="1521" height="240" alt="image" src="https://github.com/user-attachments/assets/16004954-14df-44ca-b1ad-b9b0325e1a51" /> Export only stories in this time range ## Details - Added DateTime picker elements to frontend/templates/sett...
diff --git a/src/core/core/api/admin.py b/src/core/core/api/admin.py index 6ebb075e9..54e967dec 100644 --- a/src/core/core/api/admin.py +++ b/src/core/core/api/admin.py @@ -1,15 +1,16 @@ import io +from datetime import datetime + from flask import Blueprint, Flask, request, send_file, url_for from flask.views import...
12
8
2
[{"id": "G0", "claim": "Naive datetimes parsed from the timefrom/timeto query params may be compared against timezone-aware Story.created values, which can raise errors or produce incorrect filtering; both sides should be normalized to a consistent timezone.", "category": "correctness", "verdict": "supported", "priorit...
null
taranis-ai__taranis-ai__771
taranis-ai/taranis-ai
771
defect
10fc1172165aeda52212a59d72f2da8d6df7f08b
98858f755ef1bfedc1ed864076cad806edf692b6
Fix e2e test environment for new UV
Add new e2e test startup script for core ## Summary by Sourcery Adjust frontend test environment to run core via a new UV-based startup script and update related dependencies. Enhancements: - Update frontend Deno npm imports to newer versions of Tailwind, DaisyUI, SweetAlert2, and CodeMirror packages. - Add a UV-bas...
diff --git a/src/core/run_for_e2e.sh b/src/core/run_for_e2e.sh new file mode 100755 index 000000000..c745e8a41 --- /dev/null +++ b/src/core/run_for_e2e.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -eu + +uv sync --frozen --python 3.13 --no-install-package taranis-models +uv pip install -e ../models + +uv run --no-sync --froz...
5
1
0
[{"id": "G0", "claim": "Hard-coding `--python 3.13` in run_for_e2e.sh can fail on machines or CI runners that do not have Python 3.13 installed; consider making the version configurable or relying on uv's default unless 3.13 is a hard requirement.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "...
null
taranis-ai__taranis-ai__781
taranis-ai/taranis-ai
781
defect
80367deb17678487c8f262df1678a5aac241a97f
3b747e24267a0b178986920e5b080844b7775bae
Request timeout per bot
Not entirely sure if this is necessary, but it can be convenient in cases where a particular bot times out and you want fine-grained control over the timeouts (see e.g.: https://github.com/taranis-ai/taranis-ai/issues/765) # Overview Include REQUESTS_TIMEOUT parameter in bots <img width="947" height="608" alt=...
diff --git a/src/core/core/managers/pre_seed_data.py b/src/core/core/managers/pre_seed_data.py index 474f52d5d..b6385e37a 100644 --- a/src/core/core/managers/pre_seed_data.py +++ b/src/core/core/managers/pre_seed_data.py @@ -129,6 +129,7 @@ "name": "NLP Bot", "parameters": [ {"parameter":...
4
2
1
[{"id": "G0", "claim": "BotApi.update_parameters should also recompute self.timeout (and self.headers) when runtime parameters are updated, so that a per-bot timeout change keeps those values in sync with the latest configuration.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduc...
null
taranis-ai__taranis-ai__788
taranis-ai/taranis-ai
788
defect
2b38bca69bbac285de88ea300dc86ed735c66c21
65f0d2ebb2b4436d781110f8f69fa621b29a94ff
Story Import Button
Fixes #763 ## Summary by Sourcery Add support for importing stories from JSON exports via the story sharing dialog and ensure backend normalization of imported payloads. New Features: - Enable users to import stories from JSON files through the story sharing dialog alongside existing export functionality. ...
diff --git a/src/frontend/frontend/router/assess.py b/src/frontend/frontend/router/assess.py index 9d31d9a1f..9f11beb9c 100644 --- a/src/frontend/frontend/router/assess.py +++ b/src/frontend/frontend/router/assess.py @@ -35,6 +35,7 @@ def init(app: Flask): assess_bp.add_url_rule("/story/cluster", view_func=StoryVi...
11
6
2
[{"id": "G0", "claim": "Guard against non-dict elements in _normalize_story_import_payload: probing 'news_items' in json_data[0] assumes the first list element is a dict, so malformed uploads (list of primitives or mixed types) will raise TypeError.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
taranis-ai__taranis-ai__789
taranis-ai/taranis-ai
789
defect
4253c02bceaece51504fc3424ea26fbe6004117a
a997aaf351e09b543c68eebb20b7299ae9c616f8
Move ExportStoriesQuery to models and add PastDatetime validation
- Relocate `ExportStoriesQuery` from `core/api/admin.py` to `models/admin.py` for shared access - Replace manual datetime bounds logic with Pydantic's `PastDatetime` to reject future timestamps at validation time - Normalize timezone-aware datetimes to UTC-naive on ingestion - Move `timeto` default-fill logic (when ...
diff --git a/src/core/core/api/admin.py b/src/core/core/api/admin.py index 15a6fdaac..b38155568 100644 --- a/src/core/core/api/admin.py +++ b/src/core/core/api/admin.py @@ -3,7 +3,8 @@ from flask import Blueprint, Flask, request, send_file, url_for from flask.views import MethodView -from pydantic import BaseModel,...
3
2
1
[{"id": "G0", "claim": "The empty-string-to-None validator was removed, so confirm or reintroduce equivalent handling so that /api/admin/export-stories?timefrom=&timeto= still parses as intended rather than raising validation errors.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "intro...
null
taranis-ai__taranis-ai__794
taranis-ai/taranis-ai
794
defect
1011897b06807a39037eb3ea27d19a164c51fcc0
a03f11d4af13c61b134ef8ae19f390d98e0219bd
Fix story filter to use OR logic for source and group
When both `source` and `group` filters are provided, combine them with OR instead of applying separate AND conditions. This allows fetching stories that belong to either a specific source or a source group. Also add `story_filter_data` fixture and `TestStoryFilters` test class covering source, group, read, important...
diff --git a/src/core/core/model/story.py b/src/core/core/model/story.py index a1796436d..720e6da2a 100644 --- a/src/core/core/model/story.py +++ b/src/core/core/model/story.py @@ -169,15 +169,20 @@ def get_filter_query(cls, filter_args: dict) -> Select: if item_ids := filter_args.get("story_ids"): ...
2
1
0
[{"id": "G0", "claim": "_dismiss_notifications can loop indefinitely if an alert stays present but clicking it neither dismisses it nor throws; add a max-iteration guard and/or break when the alert count does not decrease after a click.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "in...
null
taranis-ai__taranis-ai__797
taranis-ai/taranis-ai
797
defect
c05fc986cb5fbc2986ee40f96797c66a7ec4472e
ac25cb7ad7cbb934fc3caf06b49c411cf89d464e
Remove signatures in weasyprint and nginx ingress
1. weasyprint Generated pdfs contained a signature (name and version of weasyprint), this is removed. 2. nginx ingress URLs with non-existing routes exposed nginx version, this is removed. ## Summary by Sourcery Remove autogenerated metadata and signatures from generated artifacts and external interfaces. N...
diff --git a/src/frontend/deno.lock b/src/frontend/deno.lock index 2703a608f..bd9c6b0bd 100644 --- a/src/frontend/deno.lock +++ b/src/frontend/deno.lock @@ -1,16 +1,22 @@ { "version": "5", "specifiers": { + "npm:@codemirror/commands@*": "6.10.3", "npm:@codemirror/commands@^6.10.3": "6.10.3", + "npm:@c...
4
4
2
[{"id": "G0", "claim": "The FakeHTML.write_pdf stub should also assert that the finisher argument is callable, so a non-callable object passed as finisher fails the test nearer to the root cause.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "_remove_ge...
null
taranis-ai__taranis-ai__805
taranis-ai/taranis-ai
805
defect
be55babb945cb4f43271beda4c794db56c785fd5
5e60a4fca5832122dfa76a4de2be596c91213d36
Add non-admin attribute access restrictions and tests
Kinda proof that some bugs - that have been fixed - are gone. ## Summary by Sourcery Restrict frontend admin routes and attribute access to users with admin-level permissions and add regression tests to ensure non-admin users cannot access or forge admin-only resources. New Features: - Introduce a reusable helper to...
diff --git a/AGENTS.md b/AGENTS.md index 62431d267..1cb064d78 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -73,6 +73,7 @@ See .github/workflows for how tests are configured in CI. - You must run commands separately in each src directory to ensure all dependencies are installed - E2E tests require the application to be r...
9
8
3
[{"id": "G0", "claim": "Catching bare `except Exception` around `verify_jwt_in_request()` in `admin_required` may hide non-auth errors (coding bugs, config issues) as auth failures; catch specific JWT exceptions instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
taranis-ai__taranis-ai__819
taranis-ai/taranis-ai
819
defect
92637b6378b4799bc597aaf435d8a09755b29636
4c3386b1e7743574e2449be40811f9157a349359
Connector returns result via the queue
- [x] DB persistance on `/bots/story/<string:story_id>/attributes` endpoint - [x] propagate connector results with story update data via result queue ## Summary by Sourcery Process MISP connector task results through the core task API to update stories and news items, persisting connector sync metadata instead of le...
diff --git a/src/core/core/api/bots.py b/src/core/core/api/bots.py index 1c8337c9a..19826ac23 100644 --- a/src/core/core/api/bots.py +++ b/src/core/core/api/bots.py @@ -6,6 +6,7 @@ from core.config import Config from core.log import logger from core.managers.auth_manager import api_key_required +from core.managers.d...
4
1
0
[{"id": "G0", "claim": "The story attributes PATCH endpoint did not persist changes because of a missing DB commit.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "The story-attribute persistence logic added to the bots PATCH handler (updated times...
null
tarekziade__molotov__153
tarekziade/molotov
153
defect
e61da3a8c99c3a3a07ed340bf5a4ba08703eba06
b6620ed2a166717adc1559814d54dfce0a70eeb7
Deprecate Python3.7 as it's EOL, upgrade syntax and add support for Python3.12
- fix: upgrade files and github actions - fix: upgrade python classifiers too
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d55f13..be019e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,13 +13,13 @@ jobs: strategy: matrix: python-version: - - '3.7' - '3.8' - '3.9' - '3.10' ...
2
1
1
[{"id": "G0", "claim": "Updating the CI environment matrix in .github/workflows/ci.yml would also require updating the environment matrix in tox.ini (its envlist still listed py37 and its [gh-actions] mapping had no entry for the new 3.12 version).", "category": "correctness", "verdict": "supported", "priority": "P1", ...
null
tarekziade__molotov__82
tarekziade/molotov
82
defect
ad6d85c50c792957af68473d72fd72a0398f14b3
eeeb0442cbfd54730c380f3c417ca1164b1bc6ad
Add a way to record requests and responses - Fixes #80
- [x] Make the session request response printer pluggable - [x] add a "events" fixture so people can write their own backends - [x] document the feature with an example - [x] add a CLI option. --use-extension + tests
diff --git a/docs/source/fixtures.rst b/docs/source/fixtures.rst index a815df7..ea9dae3 100644 --- a/docs/source/fixtures.rst +++ b/docs/source/fixtures.rst @@ -21,12 +21,18 @@ test fixtures can be used to run functions at various stages. .. image:: _static/lifecycle.jpg +Notice that the :func:`session_events` dec...
1
1
1
[{"id": "G0", "claim": "BaseListener.__call__ should look up the handler with a default of None and only await it when present, so a listener class need not define no-op methods for every event.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tarekziade__molotov__85
tarekziade/molotov
85
defect
cd4a9a015ceb38109ab6721ed2611084c5727b73
2ed917e1e7ab5fb6516e4fa53c0fbe26b11f24d8
Send the request with the 'response_received' event
This one should solve (at least partially) #84. Right now, newly defined `LoggedClientResponse` class looks kind of empty, but in the future it can override it's parent methods and embed events/metrics into them.
diff --git a/docs/source/events.rst b/docs/source/events.rst index da7fb09..08698a2 100644 --- a/docs/source/events.rst +++ b/docs/source/events.rst @@ -12,7 +12,7 @@ with the :func:`molotov.events` fixture described below: Current supported events and their keyword arguments: - **sending_request**: session, reques...
7
7
0
[{"id": "G0", "claim": "Line 152 of molotov/tests/test_session.py is too long (93 > 79 characters).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Line 100 of molotov/tests/test_session.py is too long (93 > 79 characters).", "category": "style", "verdict"...
null
tarekziade__molotov__86
tarekziade/molotov
86
defect
0522430488f21f56b2145882ff869222caba511a
b7bb8eadcdbf5a8b8e2cba5ca8485ad1848872ec
Fix '--quiet' for single-process mode
`--quiet` option wasn't working for single-process mode. Well, that's assuming i understand Molotov's multiprocessing correctly. Anyway, here's the fix. Test case should ensure this bug will be caught in the future, shall it appear again.
diff --git a/molotov/runner.py b/molotov/runner.py index ec51c5c..3749cd8 100644 --- a/molotov/runner.py +++ b/molotov/runner.py @@ -138,11 +138,12 @@ def _process(self): self.loop.set_debug(True) if self.args.original_pid == os.getpid(): - fut = self._display_results(self.args.consol...
2
2
0
[{"id": "G0", "claim": "The added line calling self._test_molotov in test_quiet is too long (81 > 79 characters) and should be shortened to satisfy the style limit.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two nested conditionals guarding displa...
null
tarekziade__molotov__91
tarekziade/molotov
91
defect
938786e7836e7757db0ebc286f9ba05deab95903
710b11f8b5da5a60687886be28923cf3855ca4d8
Add 'scenario_start' event
If used with `scenario_success` and `scenario_failure`, this will allow to measure a runtime of a scenario.
diff --git a/molotov/tests/example8.py b/molotov/tests/example8.py index 86d4f6f..c129c9f 100644 --- a/molotov/tests/example8.py +++ b/molotov/tests/example8.py @@ -1,23 +1,44 @@ +import json import molotov import time +_T = {} + + +def _now(): + return time.time() * 1000 + @molotov.events() -async def print_...
1
1
0
[{"id": "G0", "claim": "molotov/tests/example8.py should end with a newline character; it currently has no newline at end of file.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
target__goalert__3293
target/goalert
3,293
defect
274087564b59b9bcb98367f5c53e4f638678d71b
e219180d1aefb439d8bbb8eb8e76d43cd63fd046
chore: integration keys sqlc
<!-- Thank you for your contribution to GoAlert. --> <!-- Before submitting this PR, please make sure that you have: --> - [x] Identified the issue which this PR solves. - [x] Read the [**CONTRIBUTING**](https://github.com/target/goalert/blob/master/CONTRIBUTING.md) document. - [x] Code builds clean without any e...
diff --git a/app/initstores.go b/app/initstores.go index 87386e5959..6f61312142 100644 --- a/app/initstores.go +++ b/app/initstores.go @@ -220,10 +220,7 @@ func (app *App) initStores(ctx context.Context) error { } if app.IntegrationKeyStore == nil { - app.IntegrationKeyStore, err = integrationkey.NewStore(ctx, a...
3
3
0
[{"id": "G0", "claim": "The sqlc query names in integrationkey/queries.sql should be prefixed with something like `IntKey` (e.g. IntKeyServiceID, IntKeyCreate, IntKeyFindOne, IntKeyFindByService) since all queries end up in the same package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
target__goalert__4103
target/goalert
4,103
defect
6ab805768886a3e9b61645962f20f833725d4460
882ece381eac7f789e51ed6b3b3f82a477c95007
heartbeat: allow muting a heartbeat monitor
This pull request introduces the ability to mute a heartbeat monitor through the API. - `heartbeat` package has been migrated to `sqlc` **Out of Scope:** - UI updates will be handled separately **Describe any introduced API changes:** - Heartbeat monitors now have a `muted` value that if non-empty results in...
diff --git a/engine/heartbeatmanager/db.go b/engine/heartbeatmanager/db.go index 8f2d459479..37d3bf4b08 100644 --- a/engine/heartbeatmanager/db.go +++ b/engine/heartbeatmanager/db.go @@ -26,7 +26,7 @@ func (db *DB) Name() string { return "Engine.HeartbeatManager" } func NewDB(ctx context.Context, db *sql.DB, a *alert....
7
7
0
[{"id": "G0", "claim": "Add a functional comment on HBByIDForUpdate (i.e. `// HBByIDForUpdate does ...`) for future human and IDE readability.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rephrase the existing comment on HBByService as a proper ...
null
target__strelka__29
target/strelka
29
defect
c8ca8dbfef1faff5cee773cdf77921f77d59df23
ae0a5e9becc94b533f5457d247ce315477a44d9e
added test_scan_pe.py and with test files
**Describe the change** Added a `tests` directory with tests for the ScanPe scanner My version info parser was included in the tests, so if that does not get merged I can remove it from the tests script. Since this is the only file being tested at the moment, I just went with the basic `unittests` module, but I'...
diff --git a/tests/test_files/.gitkeep b/tests/test_files/.gitkeep new file mode 100644 index 00000000..495df5ed --- /dev/null +++ b/tests/test_files/.gitkeep @@ -0,0 +1,2 @@ +The files in this directory should be cleaned up after each test case is completed. +However, if they are not, they are safe to delete. diff --g...
2
2
2
[{"id": "G0", "claim": "Binary and other test files should be kept out of the repository and pulled in remotely when the test starts, because adding test files for each scanner type may make the repo size get out of control.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
target__strelka__296
target/strelka
296
defect
4b1a098b976d27ea13b1ae68a5c02fd5d45d0264
8813ca49cc70437493919af902a51a28a60ed61a
Add ScanTlsh Scanner
**Describe the change** [TLSH](https://tlsh.org/) is a fuzzy matching algorithm that can be used for similarity comparisons. Similar files will have similar hash values which allows for the detection of similar objects by comparing their hash values TLSH has been adopted by a range of bodies and malware repositories. ...
diff --git a/configs/python/backend/backend.yaml b/configs/python/backend/backend.yaml index f06596db..c5a97a83 100644 --- a/configs/python/backend/backend.yaml +++ b/configs/python/backend/backend.yaml @@ -591,6 +591,13 @@ scanners: priority: 5 options: limit: 1000 + 'ScanTlsh': + - positive...
3
3
2
[{"id": "G0", "claim": "The fixture named test_tlsh.yaml matches the fixtures/test_* glob and will be fed into test_scanner_assignment, causing that test to fail; move files not meant to be fed into Strelka (e.g. into helpers/) so they stay out of the scanner assignment test.", "category": "testing", "verdict": "suppor...
null
target__strelka__300
target/strelka
300
defect
e85104514066cc58b7a99634fbfba5e5a53e5fbf
d44d497e2023677e6115f63adc2408ebecc487f8
Adding ScanHtml Hyperlink Limiter and Tests
**Describe the change** With no limits set for the `hyperlinks` field in `ScanHtml`, events have been observed with well over `1000` hyperlinks. While this may be useful for some use cases, by default it may be advisable to not collect so many objects. The following modification were implemented: - Default limit (`...
diff --git a/configs/python/backend/backend.yaml b/configs/python/backend/backend.yaml index 0850a085..c2ac5c2a 100644 --- a/configs/python/backend/backend.yaml +++ b/configs/python/backend/backend.yaml @@ -267,6 +267,7 @@ scanners: priority: 5 options: parser: "html5lib" + max_links: 50 ...
1
1
0
[{"id": "G0", "claim": "The config option name should match the internal variable name, as the pattern in the other scanners is to have the config option match the internal variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tari-project__tari__5282
tari-project/tari
5,282
defect
dfddc669e3e1271b098c8b271e13f076ca79b039
36fd19f17062abfafcb4ab3ab97a4f1f3aaef895
feat!: change signature construction to allow better HW support
Description --- Changes the challenges of all signatures to not be `Hash(Key||Nonce||Feat_1||Feat_2||..||Feat_x) `but rather `Hash(Key||Nonce||Hash(Feat_1||Feat_2||..||Feat_x))` Adds the version to the kernel signature as this is currently not checked. Motivation and Context --- This is done because hardware...
diff --git a/base_layer/core/src/blocks/genesis_block.rs b/base_layer/core/src/blocks/genesis_block.rs index 1159553010d..2d4c98aef36 100644 --- a/base_layer/core/src/blocks/genesis_block.rs +++ b/base_layer/core/src/blocks/genesis_block.rs @@ -84,26 +84,26 @@ fn get_stagenet_genesis_block_raw() -> Block { // Note...
4
3
0
[{"id": "G0", "claim": "It is unclear why the commitment is hashed inside the script signature message rather than elsewhere in the challenge.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The kernel signature challenge should document why the particula...
null
tari-project__tari__5390
tari-project/tari
5,390
defect
53ee32bf2aee3fd0d56b181469e9c999ca78b0a5
832337731727fb4e785d7a879e0a499d1b5253ca
feat: improved base node monitoring
Add the ability to run tokio_console on the console_wallet. I found one case where the UI would use a lot of CPU, but I couldn't find the cause. Reduced the UI caching time to be more responsive. Renamed base_node_monitor_refresh_interval to base_node_monitor_max_refresh_interval and implemented a backoff str...
diff --git a/Cargo.lock b/Cargo.lock index 68e3f0df4b5..74d0ece7365 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5504,6 +5504,7 @@ dependencies = [ "chrono", "clap 3.2.25", "config", + "console-subscriber", "crossterm 0.25.0", "digest 0.9.0", "futures 0.3.28", diff --git a/applications/tari_console_wallet/C...
3
1
0
[{"id": "G0", "claim": "Ignoring BaseNodeStateChanged and triggering validation only on NewBlockDetected stops the wallet from refreshing when a node sync completes, which might not be ideal.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The monitor ...
null
tari-project__tari__5502
tari-project/tari
5,502
defect
af32f96f36a32235daf7e3b1d9694af7edcf5f8e
1d49caa2e539d0e321b8c4a64c94336997820f28
feat: proof of work audit part 3
Description --- - Removed `max_block_time` for `struct LinearWeightedMovingAverage`: - Removed manual assignment of `max_block_time` for `struct LinearWeightedMovingAverage` as it is always a fixed multiple of `target_time` according to the **LWMA-1** algorithm specification. - Previously, `max_block_time` was...
diff --git a/applications/tari_app_grpc/proto/types.proto b/applications/tari_app_grpc/proto/types.proto index 5dedf6b2fb1..cd2ee2de542 100644 --- a/applications/tari_app_grpc/proto/types.proto +++ b/applications/tari_app_grpc/proto/types.proto @@ -64,7 +64,6 @@ message CommitmentSignature { /// PoW Algorithm consta...
4
4
0
[{"id": "G0", "claim": "Changing pow_max_block_interval to return Result<u64, String> computed via LinearWeightedMovingAverage is a big change that possibly leaks the implementation abstracted by proof of work, and the reviewer asks for reasons for the change (resolved by agreeing to remove the function).", "category":...
null
tari-project__tari__5561
tari-project/tari
5,561
defect
46ab3ef07e41b091b869ef59376d0709a24e7437
448cc3dd08185ca31d35cb2317e6c3c6e2267571
chore: fix bad merge
Description --- Fixes a bad merge, addresses the new clippy in the pr
diff --git a/base_layer/core/src/mempool/mempool_storage.rs b/base_layer/core/src/mempool/mempool_storage.rs index 24846edb4a8..a32ad37844f 100644 --- a/base_layer/core/src/mempool/mempool_storage.rs +++ b/base_layer/core/src/mempool/mempool_storage.rs @@ -239,7 +239,7 @@ impl MempoolStorage { .map_err(|e|...
1
1
0
[{"id": "G0", "claim": "The code added by this pull request needs formatting (cargo fmt), e.g. missing spaces around operators such as `get_total_fee()* 1000` on line 99.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tari-project__tari__5601
tari-project/tari
5,601
defect
6ae34eaba2b5e96dc46884e7f2e937d46d068d67
837aff7fa67ae134f8188f1ff7adafc9e0fcec4c
feat: remove orphan validation and only validate on insertion
Description --- Currently, block validation is done in two steps orphan check and full check. An orphan check is done when a block is first inserted into the DB (all blocks are). But before this is done, the block must pass an internal integrity check (checking signatures, rangeproofs, etc) The blocks are then sto...
diff --git a/Cargo.lock b/Cargo.lock index 3d7d3681b10..9523bf9fff8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -64,15 +64,6 @@ dependencies = [ "version_check 0.9.4", ] -[[package]] -name = "aho-corasick" -version = "0.7.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f9...
10
6
1
[{"id": "G0", "claim": "The new minimum-difficulty check in handle_new_block_message should be a proper difficulty check with DifficultyCalculator::check_achieved_and_target_difficulty, because it is too easy to mine a block at minimum difficulty.", "category": "security", "verdict": "opposed", "priority": "P1", "scope...
null
tari-project__tari__5602
tari-project/tari
5,602
defect
b1708fc3eef37400ce0774ca179673de6ad4cb07
d7607cf9bd71540ed9dbe6cd08d495c0d99e0506
fix!: limit monero hashes and force coinbase to be tx 0
Description --- This limits the merkle proof hashes from monero blocks to be all used stopping miners from adding junk data at the end that is not used. Also brings the merkle root construction inline with monero rule by forcing the coinbase to be tx 0. Motivation and Context --- If the hashes are not limited,...
diff --git a/base_layer/core/src/proof_of_work/monero_rx/helpers.rs b/base_layer/core/src/proof_of_work/monero_rx/helpers.rs index 55b77fa3a49..3aae3fdfd5d 100644 --- a/base_layer/core/src/proof_of_work/monero_rx/helpers.rs +++ b/base_layer/core/src/proof_of_work/monero_rx/helpers.rs @@ -130,7 +130,7 @@ pub fn serializ...
2
2
0
[{"id": "G0", "claim": "The doc comment on create_merkle_proof should drop the 'This is a port of Monero's tree_branch function' claim, which is both garbled by the merge and, as far as the reviewer knows, not a port of any existing monero function at all.", "category": "documentation", "verdict": "supported", "priorit...
null
tari-project__tari__5606
tari-project/tari
5,606
defect
b1708fc3eef37400ce0774ca179673de6ad4cb07
7ee4068c27f68595cc236086280e9d936e839cd3
feat: add mempool min fee
Description --- adds in a config option to specify the min fee accepted by the mempool Motivation and Context --- It is possible to flood the mempool with multiple cheap low fee transactions and waste resources validating them. How Has This Been Tested? --- Unit test Audit Finding Number --- TARI-004
diff --git a/applications/minotari_node/src/grpc/base_node_grpc_server.rs b/applications/minotari_node/src/grpc/base_node_grpc_server.rs index d876052dbff..64aaddc3d60 100644 --- a/applications/minotari_node/src/grpc/base_node_grpc_server.rs +++ b/applications/minotari_node/src/grpc/base_node_grpc_server.rs @@ -716,6 +...
3
3
0
[{"id": "G0", "claim": "The new identifier and strings misspell \"too\" as \"to\" (FeeToLow / \"Fee to low\" / NotStoredFeeToLow) and should be renamed to FeeTooLow / \"Fee too low\" across the proto, Rust enums, Display strings, match arms and test.", "category": "maintainability", "verdict": "supported", "priority": ...
null
tari-project__tari__5693
tari-project/tari
5,693
defect
385022ad32ea10ad6e73ac6eb972f4ac90d43a4e
8c2228164dd912d4a60b84c583be0c25e30c4027
fix: ban peers if they send a bad protobuf message
Description --- Propagate errors in decoding protobuf messages and conversions higher up so that nodes can ban them Motivation and Context --- Bad messages were previously ignored and could just fill up a node's buffers. This PR allows the nodes to ban more messages from those peers. How Has This Been Tested?...
diff --git a/Cargo.lock b/Cargo.lock index 664afb7b14e..9a8e68b827b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4509,9 +4509,9 @@ dependencies = [ [[package]] name = "randomx-rs" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d6fcc689527781ca1f...
3
3
0
[{"id": "G0", "claim": "Rename the 'IllFormed' identifiers the pull request adds (IllFormedMessageError, IllFormedMessage) to 'Malformed...' because 'Illformed' just reads difficult.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Delete the comm...
null
tari-project__tari__5724
tari-project/tari
5,724
defect
a48e430b6b5bc21c5998009738be1436e479f7ec
465d8721c4ade779948f391d97086b0f4d1dc2d7
fix: horizon sync
Description --- Fixes horizon sync Run optimized needs to be forced with the correct mutability to ensure it runs from the correct optimized bitmap Motivation and Context --- MMR root failure occurs during sync as the optimized run fails in Merkle tree, this provides an already optimized bitmap to the merkle tr...
diff --git a/Cargo.lock b/Cargo.lock index f4a8f92c5bb..736f0d2abe9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -386,25 +386,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bindgen" -version = "0.59.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bd2a9a458e8f4304c52c43ebb0...
1
1
1
[{"id": "G0", "claim": "The unwrap and the unchecked arithmetic (leaf_index.0 - 1, last_index + 1, leaf_count - 1) in get_sub_bitmap may panic or overflow and should be checked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tari-project__tari__5826
tari-project/tari
5,826
defect
754fb16e4ae79bb8d712419f0f6bf59efbaf0ce1
d5853a678e0267cf6cbe80a0cf21d8db3c7b00b8
feat: add robustness to monero block extra field handling
Description --- Added robustness to editing and parsing the extra field in a Monero block. Use cases for the extra field are: - the extra field is changed to add a merge mining hash subfield (_performed by the merge mining proxy_) - **NOT applicable, verification is not compromised** - the merge mining hash is ext...
diff --git a/base_layer/core/src/proof_of_work/monero_rx/helpers.rs b/base_layer/core/src/proof_of_work/monero_rx/helpers.rs index a79ae6604f7..76f91fd494c 100644 --- a/base_layer/core/src/proof_of_work/monero_rx/helpers.rs +++ b/base_layer/core/src/proof_of_work/monero_rx/helpers.rs @@ -75,11 +75,17 @@ fn get_random_x...
5
4
2
[{"id": "G0", "claim": "Add comments to the test explaining why the API call fails and why the test then bypasses the API, and consider whether the results should be compared.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The suppressed extra-fie...
null
tari-project__tari__5834
tari-project/tari
5,834
defect
05fc2e99a831e032c17dc02a999fca0c34bce0c2
d1a74164cba17d34b2bc606f0ac4420033819272
feat: add overflow checks to change and fee calculations
Description --- - Added 3x overflow checks to the change calculation in the sender transaction protocol. - Added an additional unit test (`fn test_sender_transaction_protocol_for_overflow`) to verify three sender transaction protocol overflow errors are handled. - **Edit:** Added overflow checks to kernel fee calc...
diff --git a/base_layer/core/src/blocks/block.rs b/base_layer/core/src/blocks/block.rs index 60ca8ffd7b0..4a3bcdaa0d4 100644 --- a/base_layer/core/src/blocks/block.rs +++ b/base_layer/core/src/blocks/block.rs @@ -197,7 +197,7 @@ impl BlockBuilder { /// This function adds the provided transaction kernels to the blo...
3
3
1
[{"id": "G0", "claim": "The new fold needs `checked_add(*x)` dereferenced because `checked_add` is not implemented for a reference value, and the reviewer asks whether such an implementation can be added.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A ...
null
tari-project__tari__5835
tari-project/tari
5,835
defect
38dc014405eb6887210861bd533f2b1dd17f48c2
43940a164ebfaf292ce6e42948742b5091dafd60
refactor(proto)!: remove proto bytes for std bytes
Description --- This PR will remove the google proto bytes wrapper in favour of using a standard vec. Motivation and Context --- Use standard rust types, instead of library specific types. Related to #5833 How Has This Been Tested? --- CI What process can a PR reviewer use to test or verify this chang...
diff --git a/base_layer/core/src/base_node/chain_metadata_service/service.rs b/base_layer/core/src/base_node/chain_metadata_service/service.rs index dc332407377..6c46e263128 100644 --- a/base_layer/core/src/base_node/chain_metadata_service/service.rs +++ b/base_layer/core/src/base_node/chain_metadata_service/service.rs...
1
1
1
[{"id": "G0", "claim": "The conversion of chain_must_include_header from google.protobuf.BytesValue (Option) to plain bytes needs an explicit empty check in query_deleted so that an empty value is treated as 'no constraint', preserving the previous functionality.", "category": "correctness", "verdict": "supported", "pr...
null
tari-project__tari__5837
tari-project/tari
5,837
defect
9725fbddf1ee7047d2e7698f4ee1975ce22aa605
0da687101f170d8a89c86654154a0d5b439276d3
feat: consistent handling of edge cases for header sync
Description --- This PR fixes an edge case for header sync where the local node has more headers, but the remote node has better proof-of-work (accumulated difficulty), thus higher actual blockchain height. It also simplifies the attempted header sync logic and error handling when a peer does not return headers and i...
diff --git a/Cargo.lock b/Cargo.lock index 513a18f56c2..2ec30be1e16 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "addr2line" -version = "0.20.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4fa78e18c64fce05e902adecd7a5...
14
9
2
[{"id": "G0", "claim": "The explanatory comment on the num_new_headers line ('Required fro later use, no 'Copy' trait on 'BlockHeader'') is misspelled and unnecessary and should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commen...
null
tari-project__tari__5876
tari-project/tari
5,876
defect
7fc3a8f8dc59dd693f32c4ee0bd90d99d35883a2
b9d22e25bb374dfbf0056caf01a4bb0b37c5e69d
feat: smt code review
Description --- Updates the SMT branch with code review
diff --git a/base_layer/core/Cargo.toml b/base_layer/core/Cargo.toml index c30a9da89a8..61bfbfcca06 100644 --- a/base_layer/core/Cargo.toml +++ b/base_layer/core/Cargo.toml @@ -15,7 +15,7 @@ transactions = [] mempool_proto = [] base_node = ["tari_mmr", "transactions", "mempool_proto", "base_node_proto", "monero", "ra...
2
1
0
[{"id": "G0", "claim": "The new bad-request error message in sync_utxos_task.rs misspells \"greater tha\" and should read \"greater than\", as the reviewer's suggestion block proposes.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A function comm...
null
tari-project__tari__5886
tari-project/tari
5,886
defect
df9bc9a912fe6e7c750e34a3dd7bd6796c6d758f
bb610a79a1bc544402ee7be4d3396196789d8d00
feat: add config for grpc server methods
Description --- Added configuration options for the base node's gRPC methods whereby each method can be enabled or disabled with the startup-config settings. Closing #5858 Some BloomRPC screenshots: ![image](https://github.com/tari-project/tari/assets/39146854/356cbe44-d3ff-46c8-9215-57e9f24da815) ![image...
diff --git a/applications/minotari_node/src/config.rs b/applications/minotari_node/src/config.rs index c2e9c4081ae..dd2c2cab5a9 100644 --- a/applications/minotari_node/src/config.rs +++ b/applications/minotari_node/src/config.rs @@ -87,6 +87,8 @@ pub struct BaseNodeConfig { pub grpc_enabled: bool, /// GRPC ad...
1
1
1
[{"id": "G0", "claim": "Replace the per-method enable/disable gRPC boolean config with a single list of denied methods (deny_methods: Vec<GrpcMethod>).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tari-project__tari__5976
tari-project/tari
5,976
defect
89b19f6de8f2acf28557ca37feda03af2657cf30
47393f4be9746cc78c6c81343698e15ad39b26bc
feat!: add aux chain support for merge mining
Description --- This adds aux chain support for merge mining monero Fixes: #5975 Motivation and Context --- This allows tari to be merged mined with multiple other chains, up to 253 other chains. See: https://github.com/SChernykh/p2pool/blob/merge-mining/docs/MERGE_MINING.MD#proposed-rpc-api How Has Thi...
diff --git a/Cargo.lock b/Cargo.lock index 559f2316393..d6944bffdc7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3200,6 +3200,7 @@ dependencies = [ "minotari_app_utilities", "minotari_node_grpc_client", "minotari_wallet_grpc_client", + "monero", "reqwest", "serde", "serde_json", @@ -5824,6 +5825,7 @@ depend...
2
2
1
[{"id": "G0", "claim": "The monero-rs test module in helpers.rs, which the pull request commented out, should be updated and re-enabled rather than left disabled.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The gen_hash parameter of check_aux_chains ...
null
tari-project__tari__6008
tari-project/tari
6,008
defect
dee1892f674690421428900c721c39d776d0e358
a9a593e61768d8f832f5b553b480da68e8c01525
feat!: update status
Description --- Changes statuses of coinbase transactions and one-sided transactions Motivation and Context --- Transactions now show as one-sided or coinbase, not Faux anymore. This is more inline of what they are and shows more information to the user. How Has This Been Tested? --- manual + unit tests ...
diff --git a/applications/minotari_app_grpc/proto/wallet.proto b/applications/minotari_app_grpc/proto/wallet.proto index 6d87cd46da1..a10a7f8326e 100644 --- a/applications/minotari_app_grpc/proto/wallet.proto +++ b/applications/minotari_app_grpc/proto/wallet.proto @@ -214,13 +214,17 @@ enum TransactionStatus { // ...
3
1
1
[{"id": "G0", "claim": "A coinbase can also be imported, so the new mined_confirm()/mined_unconfirm() status transitions should handle an imported coinbase rather than only scanned coinbases.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Differentiat...
null