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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wolfSSL__wolfssl__4433 | wolfSSL/wolfssl | 4,433 | defect | a4f927999f1b40e79c1015406cbe22ead9494711 | 0e80923fb3933802bbac97a02c3d48b5a7fc325c | Unit tests for post-quantum groups. | Also, fixes for the things they caught such as:
- ssl->arrays->preMasterSecret is pre-allocated so copy into it instead of
moving ownership of buffer.
- server does not need to save the public key.
- in TLSX_KeyShare_Parse() don't call TLSX_KeyShare_Use() because its done in
TLSX_PopulateExtensions().
- in ... | diff --git a/src/tls.c b/src/tls.c
index 5dde7dfa359..f647be84f9e 100644
--- a/src/tls.c
+++ b/src/tls.c
@@ -7306,12 +7306,16 @@ static int TLSX_KeyShare_ProcessOqs(WOLFSSL* ssl, KeyShareEntry* keyShareEntry)
if (ssl->options.side == WOLFSSL_SERVER_END) {
/* I am the server, the shared secret has alread... | 3 | 3 | 0 | [{"id": "G0", "claim": "The old code freed ssl->arrays->preMasterSecret with XFREE(ssl->arrays->preMasterSecret, ssl->heap, DYNAMIC_TYPE_SECRET) before the ownership transfer, and the new WOLFSSL_MSG already adds a newline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
wolfSSL__wolfssl__8487 | wolfSSL/wolfssl | 8,487 | defect | 72d08a1a79b0dfb7b1d104e3c16ee2f47df549a0 | 120f03b8793bd5ef2f052cae0faff770b11c6e42 | TLS EMS: Set haveEMS when we negotiate TLS 1.3 | - Move extended master secret testing to test_tls_ext.c | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 56354839046..73e568eaf80 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2537,6 +2537,7 @@ if(WOLFSSL_EXAMPLES)
tests/api/test_mlkem.c
tests/api/test_dtls.c
tests/api/test_ocsp.c
+ tests/api/test_tls_ext.c
tests/hash.c
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new test_tls_ems_downgrade test fails (session->haveEMS is FALSE) when built with WOLFSSL_NO_DEF_TICKET_ENC_CB and on a plain --with-liboqs --enable-experimental build, so the PR must fix the code or the test before merge.", "category": "correctness", "verdict": "supported", "priority": "P0"... | null |
wolfSSL__wolfssl__8587 | wolfSSL/wolfssl | 8,587 | defect | 0cc0bb0afe2be9f947ae47d0695f2a5bd9848c35 | 388582acb22f8bf933413129133424c659da27af | Fix bug in ParseCRL_Extensions | # Description
- Fix a bug where the idx would get incremented where we don't expect it to be, in the else-if `CRL_NUMBER_OID` case in `ParseCRL_Extensions()`
- Store crl->crlNumber as a byte array to handle CRL numbers as long as 20 octets or 49 digits (https://datatracker.ietf.org/doc/html/rfc5280#section-5.2.3). ... | diff --git a/src/crl.c b/src/crl.c
index 6a03a39d719..efe3b036460 100644
--- a/src/crl.c
+++ b/src/crl.c
@@ -139,7 +139,8 @@ static int InitCRL_Entry(CRL_Entry* crle, DecodedCRL* dcrl, const byte* buff,
#endif
dcrl->certs = NULL;
crle->totalCerts = dcrl->totalCerts;
- crle->crlNumber = dcrl->crlNumber;
+ ... | 8 | 7 | 2 | [{"id": "G0", "claim": "The CRL-number comparison should compare the stored byte buffers directly rather than reading both numbers into heavyweight mp_ints (an mp_int can allocate up to 1KB for a 20-byte number).", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
wolfSSL__wolfssl__8603 | wolfSSL/wolfssl | 8,603 | defect | 1c56a2674a5ef51c58b13e0b4e64c8c51ffc60b6 | 28c3f9c762d09dd0da057f0ab4413ae4de1f187b | Validate asn date based on position of Z |
Fixes https://github.com/wolfSSL/wolfssl/issues/8597
| diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c
index 7e0948eee9a..513f0fc580d 100644
--- a/wolfcrypt/src/asn.c
+++ b/wolfcrypt/src/asn.c
@@ -15028,6 +15028,26 @@ static WC_INLINE int GetTime_Long(long* value, const byte* date, int* idx)
int ExtractDate(const unsigned char* date, unsigned char format,
... | 5 | 4 | 1 | [{"id": "G0", "claim": "The opening brace of ExtractDate's else branch should not sit on the same line as the closing brace of the previous branch.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The wording of the new comment in ExtractDate is off and \"C... | null |
wolfSSL__wolfssl__8703 | wolfSSL/wolfssl | 8,703 | defect | f458930d244102dbc261d0d060905e385e6bb686 | 5fe086b388a080307caeb52fa0366188ac52ae66 | Attempt wolfssl_read_bio_file in read_bio even when XFSEEK is available | # Description
Some changes required for https://github.com/wolfSSL/wolfCLU/pull/178.
- First commit enhances `wolfSSL_BIO_Read()` to account for BIO's created with symlink files that aren't fseek-able (for eg. `/proc/self/fd/0`)
- Second commit removes the PKCS8 header check in `wc_CreatePKCS8Key()` when `WOLFSS... | diff --git a/src/ssl_misc.c b/src/ssl_misc.c
index 56a71e80472..f34def4972d 100644
--- a/src/ssl_misc.c
+++ b/src/ssl_misc.c
@@ -30,7 +30,6 @@
#if defined(OPENSSL_EXTRA) && !defined(WOLFCRYPT_ONLY)
#ifndef NO_BIO
-#ifdef WOLFSSL_NO_FSEEK
/* Amount of memory to allocate/add. */
#define READ_BIO_FILE_CHUNK 128
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The WOLFSSL_NO_FSEEK macro is no longer used anywhere in the code, so its entry should be removed from .wolfssl_known_macro_extras.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Did you happen to trace the creation of WO... | null |
wolfSSL__wolfssl__8937 | wolfSSL/wolfssl | 8,937 | defect | 981ba4b14cd0cda97a5195804a9e8a5918a89ac7 | edef99d5c771b3c93f339db31fe4ef8064353381 | Fix TSIP port using crypto callback | # Description
Fix TSIP port using crypto callback
Add unit test cases for Aes API
# Testing
Run unit test, crypt test and client example on RX72N
# Checklist
- [ ] added tests
- [ ] updated/added doxygen
- [ ] updated appropriate READMEs
- [ ] Updated manual and documentation
| diff --git a/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/.cproject b/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/.cproject
index 42c63d72e7c..9638725c015 100644
--- a/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/.cproject
+++ b/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/.cproject
@@ -119,8 +... | 6 | 5 | 3 | [{"id": "G0", "claim": "After each call to R_TSIP_GenerateAesXXXRandomKeyIndex in TSIP_AesKeyGeneration (in particular the second key generation call), the returned value should be compared with TSIP_SUCCESS and an error returned instead of blindly returning 0.", "category": "correctness", "verdict": "supported", "prio... | null |
wolfSSL__wolfssl__8962 | wolfSSL/wolfssl | 8,962 | defect | fa9e122f1cca32513611f5a24de88d07aced015b | d1351b977e3562934af33b3b3a6f29c881ca30f6 | Coverity: Dereference after NULL check and Use after free | # Description
**CID 318658** Use after free - Frees entire bio chain if `EXPECT_FAIL()` is true instead of attempting to free `bio64`. If bio was freed, calls `BIO_new(BIO_f_base64())` before `BIO_write()`
**CID 307416** Dereference after null check - DhGenKeyPair did not check if `ssl` was NULL before attempting t... | diff --git a/src/internal.c b/src/internal.c
index a3c5b8c8463..f4a3eebdeb6 100644
--- a/src/internal.c
+++ b/src/internal.c
@@ -6484,9 +6484,13 @@ int DhGenKeyPair(WOLFSSL* ssl, DhKey* dhKey,
if (ret == WC_NO_ERR_TRACE(NOT_COMPILED_IN))
#endif
{
- PRIVATE_KEY_UNLOCK();
- ret = wc_DhGenerateKey... | 2 | 2 | 0 | [{"id": "G0", "claim": "The ssl != NULL check in DhGenKeyPair should be moved to the top of the function, returning BAD_FUNC_ARG, instead of guarding the key generation mid-function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In test_wolfSSL_d2i_ASN1... | null |
wolfSSL__wolfssl__9002 | wolfSSL/wolfssl | 9,002 | defect | 99d26f0347d26a722719a781f2cb33f7bfba23b1 | af3296a836a6e96316cb6d49f8d2889c723d3619 | Add callback functions for custom AES key wrap/unwrap operations | # Description
Add callback functions for custom AES key wrap/unwrap operations
# Testing
How did you test?
# Checklist
- [X] added tests
- [X] updated/added doxygen
- [ ] updated appropriate READMEs
- [ ] Updated manual and documentation
| diff --git a/doc/dox_comments/header_files/pkcs7.h b/doc/dox_comments/header_files/pkcs7.h
index be5a75c43fd..577ae7c110b 100644
--- a/doc/dox_comments/header_files/pkcs7.h
+++ b/doc/dox_comments/header_files/pkcs7.h
@@ -1,3 +1,19 @@
+/*!
+ \ingroup PKCS7
+
+ \brief Callback used for a custom AES key wrap/unwrap ... | 9 | 8 | 1 | [{"id": "G0", "claim": "The first three pointer parameters of wc_PKCS7_KeyWrap should be declared const, and pkcs7 should be NULL-checked at the beginning before any access to its fields.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new signat... | null |
wolfSSL__wolfssl__9018 | wolfSSL/wolfssl | 9,018 | defect | decea12e223869c8f8f3ab5a53dc90b69f436eb2 | 06d86af67cfde1f6ce164126f8faac100f63b2e3 | Add API to decode SymmetricKeyPackage and OneSymmetricKey CMS objects | # Description
Add API to decode SymmetricKeyPackage and OneSymmetricKey CMS objects
# Testing
Added unit tests.
# Checklist
- [X] added tests
- [X] updated/added doxygen
- [ ] updated appropriate READMEs
- [ ] Updated manual and documentation
| diff --git a/doc/dox_comments/header_files/pkcs7.h b/doc/dox_comments/header_files/pkcs7.h
index be5a75c43fd..801f96627d2 100644
--- a/doc/dox_comments/header_files/pkcs7.h
+++ b/doc/dox_comments/header_files/pkcs7.h
@@ -712,3 +712,97 @@ int wc_PKCS7_DecodeEncryptedData(PKCS7* pkcs7, byte* pkiMsg,
*/
int wc_PKCS7_Dec... | 16 | 13 | 0 | [{"id": "G0", "claim": "The return value of the second GetSequence() call in wc_PKCS7_DecodeOneSymmetricKeyKey should be captured and returned when negative, with the attribute-skipping done only when it returns 0, instead of the result being ignored.", "category": "correctness", "verdict": "uncertain", "priority": "P3... | null |
wolfSSL__wolfssl__9046 | wolfSSL/wolfssl | 9,046 | defect | 70af2be5ab9d7da0ca4ed44e56623574c4b3b7e7 | cdf76ac6f1f60e67f5ac71c2fd316efeaf48a990 | Allow setting the CA type when loading into cert manager and unloading specific CA types from the cert manager. | # Description
Adds a new type WOLFSSL_USER_INTER, intended to be used to load intermediate certs.
This allows users to dynamically free certs marked with a certain type at runtime.
Fixes zd#20038
# Testing
Customer provided reproducer
# Checklist
- [ ] added tests
- [ ] updated/added doxygen
- [... | diff --git a/src/ssl.c b/src/ssl.c
index 14725f5096f..d5f0b7b9e76 100644
--- a/src/ssl.c
+++ b/src/ssl.c
@@ -6100,6 +6100,49 @@ int AddCA(WOLFSSL_CERT_MANAGER* cm, DerBuffer** pDer, int type, int verify)
return ret == 0 ? WOLFSSL_SUCCESS : ret;
}
+/* Sets the CA with the passed in subject hash
+ to the provid... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new public API should not be named wolfSSL_CertManagerLoadCABuffer_ex2 (the first _ex2 in wolfssl/ssl.h) but something like wolfSSL_CertManagerLoadCaBufferType, though the reviewer notes _ex2 also works.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}... | null |
wolfSSL__wolfssl__9079 | wolfSSL/wolfssl | 9,079 | defect | 947066853871c794496f07a412ca1eef87ecb612 | 125cf39e7c13c4e4f9468303c0cee5fb17558607 | Error from GetShortInt with negative INTEGER values | # Description
Error from GetShortInt with negative INTEGER values.
# Testing
Unit/CI tests.
# Checklist
- [ ] added tests
- [ ] updated/added doxygen
- [ ] updated appropriate READMEs
- [ ] Updated manual and documentation
| diff --git a/tests/api/test_asn.c b/tests/api/test_asn.c
index 9bc236e1980..cab3e0cfe2c 100644
--- a/tests/api/test_asn.c
+++ b/tests/api/test_asn.c
@@ -24,7 +24,7 @@
#include <tests/api/test_asn.h>
#ifndef NO_ASN
-static int test_SetShortInt_once(word32 val, byte* valDer, word32 valDerSz)
+static int test_GetSetSh... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add the negative-value error check to the ASN_DATA_TYPE_WORD8 case of GetASN_StoreData too, as was already done for the WORD16 and WORD32 cases.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The negative-value check applied ... | null |
wolfSSL__wolfssl__9297 | wolfSSL/wolfssl | 9,297 | defect | e877fa747d1c43977d604fb9035712a6037d3a47 | d2384bc69ac680d1aee0e450bd6fc6d0fabca593 | 20251011-more-fips-optest-tweaks | `linuxkm/module_hooks.c` and `linuxkm/linuxkm_wc_port.h`: finish implementation of `FIPS_OPTEST` glue code, including `/sys/module/libwolfssl/FIPS_optest_run_code` (`FIPS_optest_trig_handler()`, plus `my_kallsyms_lookup_name()` helper).
`wolfcrypt/test/test.c`: fix error-path uninitialized access defect in `ecc_test... | diff --git a/.wolfssl_known_macro_extras b/.wolfssl_known_macro_extras
index c9875423489..b92c229c686 100644
--- a/.wolfssl_known_macro_extras
+++ b/.wolfssl_known_macro_extras
@@ -221,6 +221,7 @@ ETHERNET_AVAILABLE
ETHERNET_H
EV_TRIGGER
EXTERNAL_LOADER_APP
+FIPS_OPTEST_FULL_RUN_AT_MODULE_INIT
FORCE_FAILURE_GETRAND... | 4 | 1 | 1 | [{"id": "G0", "claim": "Store the return value of linuxkm_op_test_wrapper() and unregister_kprobe() in a variable and verify/propagate or log it if non-zero, check the return of linuxkm_op_test_1() in FIPS_optest_trig_handler() instead of unconditionally returning count, and guard the fipsMode_ptr/conTestFailure_ptr de... | null |
wolfSSL__wolfssl__9369 | wolfSSL/wolfssl | 9,369 | defect | b6cfdcb7580e1aefc9bd9bade91c26cf06a6df3a | 78ff20569e07634af0d5f556df505809c74c2e9e | 20251027-linuxkm-aarch64-fips | linuxkm:
globally rename+unify:
* `HAVE_LINUXKM_PIE_SUPPORT` and `USE_WOLFSSL_LINUXKM_PIE_REDIRECT_TABLE` under gate `WC_PIE_RELOC_TABLES`
* `WC_LKM_INDIRECT_SYM_BY_FUNC_ONLY` as `WC_PIE_INDIRECT_SYM_BY_FUNC_ONLY`
* `WC_LKM_INDIRECT_SYM_BY_DIRECT_TABLE_READ` as `WC_PIE_INDIRECT_SYM_BY_DIRECT_TABLE_READ`
* `WC_LK... | diff --git a/.wolfssl_known_macro_extras b/.wolfssl_known_macro_extras
index ca514a9287e..2c273d4dd55 100644
--- a/.wolfssl_known_macro_extras
+++ b/.wolfssl_known_macro_extras
@@ -622,6 +622,7 @@ WC_SHA512
WC_SKIP_INCLUDED_C_FILES
WC_SSIZE_TYPE
WC_STRICT_SIG
+WC_USE_PIE_FENCEPOSTS_FOR_FIPS
WC_WANT_FLAG_DONT_USE_VE... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new guard (adding the ENABLED_LINUXKM check) makes `./configure --enable-linuxkm-pie` a silent no-op when linuxkm is not enabled; configure should error in that case instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfSSL__wolfssl__9388 | wolfSSL/wolfssl | 9,388 | defect | 9fdcd2e72afc22a5eed5266ee076fab848c08a2d | ec0f2c0d51da05395679f90194e958631cbd0e7d | Various fixes for nightly tests | # Description
Fixes for miniscule scan-build findings
```
./configure CFLAGS=-D_REENTRANT --disable-filesystem --enable-certgen --enable-certreq --enable-sha512 --enable-opensslextra --enable-hashdrbg --enable-sessioncerts --enable-keygen --enable-crl --enable-ecc --enable-dsa --enable-hkdf --disable-fpecc --ena... | diff --git a/examples/client/client.c b/examples/client/client.c
index b47b3ecd7be..c7b1b952fba 100644
--- a/examples/client/client.c
+++ b/examples/client/client.c
@@ -2950,7 +2950,9 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
#endif /* HAVE_RPK */
break;
case 268:
+#ifndef N... | 2 | 2 | 0 | [{"id": "G0", "claim": "The reviewer questions whether the new `if (i < a->used)` guard is needed, since the preceding loop's condition appears to guarantee `i` stays below `a->used` at the end.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The rev... | null |
wolfSSL__wolfssl__9391 | wolfSSL/wolfssl | 9,391 | defect | 2a1df113278e8c8caeff99faf54b3c1a13886e10 | f47250491f5ed289c7fa00c9b4369730964f91eb | Check for duplicate extensions in client hello when HAVE_TLS_EXTENSIONS is not set - fix #9377 | # Description
Check for duplicate extensions in client hello when HAVE_TLS_EXTENSIONS is not set - fix #9377
# Testing
Ran reproduce steps from #9377 and verified the duplicate error is now found.
Ran unit tests for configuration `./configure --disable-sni --disable-ecc --disable-tls13 --disable-secure-renego... | diff --git a/src/internal.c b/src/internal.c
index b7fb88256a2..5daaae89bfa 100644
--- a/src/internal.c
+++ b/src/internal.c
@@ -38115,6 +38115,35 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
return ret;
}
+#ifndef HAVE_TLS_EXTENSIONS
+ /**
+ * Check for duplic... | 12 | 10 | 1 | [{"id": "G0", "claim": "checkDupExt() dereferences extBlock[i] without ensuring it is non-NULL, so a guard such as `if (extBlock == NULL) return 0;` should be added before the loop.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A new dedicated test... | null |
wolfSSL__wolfssl__9431 | wolfSSL/wolfssl | 9,431 | defect | 10a60fc41bf6be76e58cc667bf380fa4de4c172d | 82501ae3a689616d471d1200e3bd8533d8efb53e | Enable hardware acceleration for AES on PSoC6. | # Description
Enable hardware acceleration for AES encryption/decryption on PSoC6 devices.
Currently supports ECB, CBC, CFB, and GCM modes.
Adjusted the aes.h header to include PSoC6 specific definitions and structures.
Updated README for PSoC6 port.
# Testing
Tested with CY8CPROTO-062-4343W board on ModusT... | diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c
index 4c43d4ebddf..fae339cb6bf 100644
--- a/wolfcrypt/src/aes.c
+++ b/wolfcrypt/src/aes.c
@@ -93,6 +93,11 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits
#include <wolfcrypt/src/port/ti/ti-aes.c>
#else
+
+#if defined(WOLF... | 5 | 1 | 0 | [{"id": "G0", "claim": "wc_Psoc6_Aes_Free() (and its prototype) should return an int (e.g. 0 on success) so callers can detect errors, mirroring the earlier void-to-int conversion of wc_Psoc6_Sha_Free().", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
wolfSSL__wolfssl__9466 | wolfSSL/wolfssl | 9,466 | defect | 59f4fa568615396fbf381b073b220d1e8d61e4c2 | 8943d6c2e250d1572c3f7f776308c4c07090e292 | TLS 1.3, plaintext alert: ignore when expecting encrypted | # Description
In TLS 1.3, ignore valid unencrypted alerts that appear after encryption has started.
Only ignore WOLFSSL_ALERT_COUNT_MAX-1 alerts.
Fixes zd#20857
# Testing
./configure --disable-shared
make
./tests/unit.test -test_tls13_plaintext_alert
# Checklist
- [x] added tests
- [ ] updated/a... | diff --git a/src/internal.c b/src/internal.c
index 30c27fbcbd0..6d6055e7291 100644
--- a/src/internal.c
+++ b/src/internal.c
@@ -21679,20 +21679,20 @@ static int DoAlert(WOLFSSL* ssl, byte* input, word32* inOutIdx, int* type)
byte code;
word32 dataSz = (word32)ssl->curSize;
- #if defined(WOLFSSL_CALLBACK... | 2 | 1 | 1 | [{"id": "G0", "claim": "Ignoring plaintext alerts in TLS 1.3 is not a good idea because it can hang clients/servers that think a dead connection is still alive, so the behaviour the PR adds should not be done.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
wolfSSL__wolfssl__9516 | wolfSSL/wolfssl | 9,516 | defect | 6c5e84178ed0059346a057351530072476d7f06b | 745fb9379485ef834772ad7f664c57de4120308a | Add checking of size param and clarify usage in doc | # Description
The doc says that the `size` parameter of `wc_SrpGetPublic` is the size of the buffer passed in the `pub` parameter. The buffer was only cleared for the size of the public ephemeral value.
Fixes #3665
# Testing
make check
# Checklist
- [ ] added tests
- [x] updated/added doxygen
- [... | diff --git a/doc/dox_comments/header_files/srp.h b/doc/dox_comments/header_files/srp.h
index 290fa74aef4..ef9ddddc778 100644
--- a/doc/dox_comments/header_files/srp.h
+++ b/doc/dox_comments/header_files/srp.h
@@ -340,6 +340,8 @@ int wc_SrpSetPrivate(Srp* srp, const byte* priv, word32 size);
This function MUST be c... | 3 | 3 | 1 | [{"id": "G0", "claim": "The added comment line is indented with a tab instead of the spaces used in the rest of the file, and should be replaced with the space-indented form.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The documentation line ... | null |
wolfSSL__wolfssl__9545 | wolfSSL/wolfssl | 9,545 | defect | 5512c2d0b4c1979ef02f5d1e15357398232d8528 | 6facff10fdb29f756db4229d77823c3c959a6783 | 20251211-DRBG-SHA2-smallstackcache-prealloc | see commit log
passes `pr-check` and various other hammerings. customer reports stable linuxkm build from it.
| diff --git a/.github/workflows/trackmemory.yml b/.github/workflows/trackmemory.yml
new file mode 100644
index 00000000000..4def1759d5e
--- /dev/null
+++ b/.github/workflows/trackmemory.yml
@@ -0,0 +1,59 @@
+name: WOLFSSL_TRACK_MEMORY Tests
+
+# START OF COMMON SECTION
+on:
+ push:
+ branches: [ 'master', 'main', 'r... | 7 | 6 | 1 | [{"id": "G0", "claim": "In tests/unit.c the new wolfSSL_Cleanup() call discards its result; capture it (e.g. int rc = wolfSSL_Cleanup(); if (ret == 0 && rc != 0) ret = rc;) so a cleanup failure is detected and propagated.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
wolfSSL__wolfssl__9559 | wolfSSL/wolfssl | 9,559 | defect | 4e96b11cce295161a1813901d8c5aa350267f2fb | 6242c0e7430b48ac69fc0aa201967f7e84632d23 | Fix PKCS#7 SignedData parsing for non-OCTET_STRING content types | # Description
wolfSSL failed to parse PKCS#7 SignedData bundles where the encapsulated content was a `SEQUENCE` (per PKCS#7 "ANY" type) rather than `OCTET_STRING` (per CMS spec). This affected parsing of Microsoft Authenticode signatures.
This PR fixes the issue by correctly setting the content size for non OCTET... | diff --git a/tests/api/test_pkcs7.c b/tests/api/test_pkcs7.c
index 6c5706f9d46..d60e3abb67f 100644
--- a/tests/api/test_pkcs7.c
+++ b/tests/api/test_pkcs7.c
@@ -4383,4 +4383,135 @@ int test_wc_PKCS7_DecodeCompressedData(void)
return EXPECT_RESULT();
}
+/*
+ * Test for PKCS#7 SignedData with non-OCTET_STRING con... | 1 | 1 | 0 | [{"id": "G0", "claim": "Typo in the comment on the new streaming-variables block: \"teh\" should be \"the\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfSSL__wolfssl__9595 | wolfSSL/wolfssl | 9,595 | defect | 0d440186275572f4765bb86ec5402e1855900ef3 | d504baaf3ae4be089219d3f5b2d8a5ffb90a23bc | 20251229-linuxkm-rng-wolfentropy | `linuxkm/lkcapi_sha_glue.c`: add retry loop around `wc_InitRng()`, and allow interrupt in preemptible threads, in `wc_linuxkm_drbg_init_tfm()`.
`wolfcrypt/src/random.c` and `wolfssl/wolfcrypt/settings.h`: add `WC_VERBOSE_RNG` messages, and activate by default when `WOLFSSL_KERNEL_MODE`.
`linuxkm/Makefile`: fix ba... | diff --git a/.wolfssl_known_macro_extras b/.wolfssl_known_macro_extras
index ac29f9e7c19..fd50d26bbc3 100644
--- a/.wolfssl_known_macro_extras
+++ b/.wolfssl_known_macro_extras
@@ -622,6 +622,7 @@ WC_LMS_FULL_HASH
WC_NO_ASYNC_SLEEP
WC_NO_RNG_SIMPLE
WC_NO_STATIC_ASSERT
+WC_NO_VERBOSE_RNG
WC_PKCS11_FIND_WITH_ID_ONLY
... | 5 | 5 | 1 | [{"id": "G0", "claim": "The new Hash_gen verbose-logging branch should also print when ret == DRBG_FAILURE, or a small comment should explain why it deliberately does not.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new Hash_DRBG_Generate... | null |
wolfSSL__wolfssl__9637 | wolfSSL/wolfssl | 9,637 | defect | 819eab8b46b553f0dc692b47686605436f251433 | b4e8473f34b53a9663bd3967655ebfc485a293b5 | Increase test coverage for PQC and CMake | Increase test coverage, mainly for stuff related to #9605 and #9608
1. Add more PQC configurations to the CI tests
These are mainly `SMALL` configurations or some edge cases, which have been missing up to now but already caused some build failures (e.g. #9608).
2. More CMake setups tested
Added the functio... | diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 9419a12a52c..0e9b800acc5 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -78,7 +78,8 @@ jobs:
-DWOLFSSL_TLSX:BOOL=yes -DWOLFSSL_TPM:BOOL=yes -DWOLFSSL_CLU:BOOL=yes -DWOLFSSL_USER_SETTINGS:BOOL=no \
... | 2 | 1 | 1 | [{"id": "G0", "claim": "Removing the BUILD_CURVE25519_SMALL / BUILD_ED25519_SMALL gates in generate_lib_src_list will, on non-small builds, produce empty translation units that break pedantic and `-pedantic -Werror` builds.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
wolfSSL__wolfssl__9642 | wolfSSL/wolfssl | 9,642 | defect | 3f8efdc8023e7415d45fbdc674ed0500548e2b5b | 9249855b465817ab7a6ba577604e52ea15007d16 | Add HMAC-BLAKE2b and HMAC-BLAKE2s API functions | # Description
Add HMAC-BLAKE2b and HMAC-BLAKE2s API functions
# Testing
Added unit tests with two KAT vectors for each HMAC-BLAKE2b and HMAC-BLAKE2s. Verified KAT vectors with both OpenSSL and Rust blake2 crate.
# Checklist
- [X] added tests
- [X] updated/added doxygen
- [X] updated appropriate READ... | diff --git a/README b/README
index 619f1f37d51..14bc22b322a 100644
--- a/README
+++ b/README
@@ -7,8 +7,9 @@ and feature set. It is commonly used in standard operating environments as well
because of its royalty-free pricing and excellent cross platform support.
wolfSSL supports industry standards up to the current ... | 5 | 4 | 2 | [{"id": "G0", "claim": "Replace the XMEMSET calls that clear x_key and i_hash in wc_Blake2bHmac and wc_Blake2sHmac with ForceZero so the key material is securely wiped.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Move the stack-allocated x_key, i_ha... | null |
wolfSSL__wolfssl__9659 | wolfSSL/wolfssl | 9,659 | defect | 35f6910186628a55c99974d3f21e966b2e29b7ba | f0359e4c66eb088486446ac1580d0679ae905863 | Improve log message and error code for invalid HelloRetryRequest - fix #9653 | # Description
Improve log message and error code for invalid HelloRetryRequest - fix #9653
# Testing
* verified reproducer for issue #9653 no longer shows Duplicate HandShake message Error.
* verified unit tests pass with updated test case
# Checklist
- [ ] added tests
- [ ] updated/added doxygen... | diff --git a/src/tls13.c b/src/tls13.c
index 9b4d829b17d..a218f647c26 100644
--- a/src/tls13.c
+++ b/src/tls13.c
@@ -5677,7 +5677,9 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
#endif
) {
SendAlert(ssl, alert_fatal, illegal_parameter);
- return D... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the issue-number comment from src/tls13.c code; issue numbers belong at most in tests, not code.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wolfSSL__wolfssl__9687 | wolfSSL/wolfssl | 9,687 | defect | c71a4dd66f77d636a86dea0c340532891a6f305b | af0fd013a16e3d858642a420104e0618c90e7fae | Rust wrapper: add HMAC-BLAKE2[bs] wrappers | # Description
Add Rust wrapper for HMAC-BLAKE2[bs] one-shot and incremental APIs.
Also attempted to avoid a couple coverity messages about overrunning the x_key array (false positives).
# Testing
Unit tests and integration with boringtun
# Checklist
- [X] added tests
- [ ] updated/added doxygen
-... | diff --git a/wolfcrypt/src/blake2b.c b/wolfcrypt/src/blake2b.c
index 7aab2e40f87..37acb97446b 100644
--- a/wolfcrypt/src/blake2b.c
+++ b/wolfcrypt/src/blake2b.c
@@ -534,7 +534,9 @@ int wc_Blake2bHmacInit(Blake2b* b2b, const byte* key, size_t key_len)
ret = wc_Blake2bFinal(b2b, x_key, 0);
} else {
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The inner #[cfg(blake2b_hmac)] / #[cfg(blake2s_hmac)] attributes on the hmac() functions are unnecessary because the whole impl blocks are already gated, so they should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
wolfSSL__wolfssl__9728 | wolfSSL/wolfssl | 9,728 | defect | c8079030884ea289db1a580b02a14d2989d289bb | 396866998ce70fcf570a33342523b7f2d6ac21e7 | Extend AIA interface | # Description
- Add support for multiple AIA's
- Add support for CA issuer URL in addition to OCSP in AIA
# Testing
New unit tests
# Checklist
- [x] added tests
- [ ] updated/added doxygen
- [ ] updated appropriate READMEs
- [ ] Updated manual and documentation
| diff --git a/.gitignore b/.gitignore
index 0ef96441751..52d8cb69f15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -470,3 +470,6 @@ wolfssl/debug-trace-error-codes.h
wolfssl/debug-untrace-error-codes.h
AGENTS.md
+
+# Code navigation files
+compile_commands.json
diff --git a/certs/aia/ca-issuers-cert.pem b/certs/aia/ca... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new wolfSSL_X509_get_aia_overflow accessor is not exercised by the overflow test; the test should also assert it returns 1 for the overflowing certificate and 0 for non-overflowing certificates such as in test_wolfSSL_X509_get1_aia_multi.", "category": "testing", "verdict": "supported", "pri... | null |
wolfSSL__wolfssl__9784 | wolfSSL/wolfssl | 9,784 | defect | 9102df3c835cd6877c91e20023418e123b15edb8 | 0dffc8abffc47364f5df884ed179a7dfdad853ca | Fixes and tests for async and crypto callbacks | # Description
Fixes and tests for async and crypto callbacks
Fixes ZD 21071
# Testing
How did you test?
# Checklist
- [ ] added tests
- [ ] updated/added doxygen
- [ ] updated appropriate READMEs
- [ ] Updated manual and documentation
| diff --git a/.github/workflows/async-examples.yml b/.github/workflows/async-examples.yml
index 00da6049f36..8a28d4312d4 100644
--- a/.github/workflows/async-examples.yml
+++ b/.github/workflows/async-examples.yml
@@ -18,11 +18,12 @@ jobs:
strategy:
fail-fast: false
matrix:
+ async_mode: ['sw',... | 4 | 1 | 0 | [{"id": "G0", "claim": "Skipping wolfssl/options.h when WOLFSSL_USER_SETTINGS is defined can break builds or produce inconsistent configuration across translation units; prefer always including <wolfssl/options.h>, or include user_settings.h and then include <wolfssl/options.h> so normal options processing still occurs... | null |
wolfSSL__wolfssl__9797 | wolfSSL/wolfssl | 9,797 | defect | a08efc9b0afe99d6a448804746eb16febb67cbba | e72dbac8659a3d1d9e0580b064345ecce0d33d00 | 20260218-aes-prefetch-optimize | `wolfcrypt/src/aes.c`: add `static volatile word32 x_volatile` to `PreFetchTe()` and `PreFetchSBox()`, to move `volatile` accesses out of the loop iteration, reclaiming some (but not all) of the performance regression from 299e7bd097.
`wolfssl/wolfcrypt/wc_port.h`, `wolfssl/wolfcrypt/sha256.h`, `wolfssl/wolfcrypt/sh... | diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c
index 29911ccfa20..eeb3437513b 100644
--- a/wolfcrypt/src/aes.c
+++ b/wolfcrypt/src/aes.c
@@ -70,9 +70,9 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits
#include <wolfssl/wolfcrypt/port/nxp/se050_port.h>
#endif
-#if defin... | 3 | 1 | 0 | [{"id": "G0", "claim": "The volatile-based prefetch fix currently in place is compiler-dependent and may not work everywhere, so the appropriate approach (volatile word initialised to 0 versus volatile updated at end of loop) needs to be decided and its timing behavior inspected at the assembly level.", "category": "se... | null |
wolfSSL__wolfssl__9817 | wolfSSL/wolfssl | 9,817 | defect | 9ed2f4bad147545ef0aefaee5c205b18ad9ff6da | 599eec673e1e26957775e0f2f92ab24f22127d46 | Static code analysis fixes | Fix issues found using the Fenrir tools:
* Fix CRL_STATIC_REVOKED_LIST binary search bugs in FindRevokedSerial
* Fix heap buffer over-read in wolfSSL_select_next_proto
* Fix integer underflow in ECH innerClientHelloLen parsing
* Fix ImportKeyState wordAdj always-zero bug in DTLS session import | diff --git a/src/crl.c b/src/crl.c
index 524adee47b5..7836c83c88a 100644
--- a/src/crl.c
+++ b/src/crl.c
@@ -98,6 +98,35 @@ int InitCRL(WOLFSSL_CRL* crl, WOLFSSL_CERT_MANAGER* cm)
}
+#ifdef CRL_STATIC_REVOKED_LIST
+/* Compare two RevokedCert entries by (serialSz, serialNumber) for sorting.
+ * Returns < 0, 0, or >... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new ECH innerClientHelloLen guard should return a decode/buffer parse error reflecting malformed peer input instead of BAD_FUNC_ARG, so callers and alert mapping are more accurate.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
wolfSSL__wolfssl__9824 | wolfSSL/wolfssl | 9,824 | defect | a08efc9b0afe99d6a448804746eb16febb67cbba | ef6b668a34f9cd0dec60159cc93528b6e85dd618 | Fix issues in TLS Extension size calculations | # Description
Three GetSize functions in src/tls.c use word16 (16-bit) variables to accumulate extension sizes in loops. With enough extensions, the value wraps past 65535 back to a small number, causing under-allocation of buffers.
Fix applied to all three functions:
* `TLSX_SNI_GetSize()`
* `TLSX_CSR_GetSiz... | diff --git a/src/tls.c b/src/tls.c
index 207c873b466..6313385c01e 100644
--- a/src/tls.c
+++ b/src/tls.c
@@ -2138,7 +2138,7 @@ static void TLSX_SNI_FreeAll(SNI* list, void* heap)
static word16 TLSX_SNI_GetSize(SNI* list)
{
SNI* sni;
- word16 length = OPAQUE16_LEN; /* list length */
+ word32 length = OPAQUE... | 10 | 7 | 5 | [{"id": "G0", "claim": "The comment 'closing #if for helper functions' is misleading because the #endif that follows actually closes the whole conditional block including the test function, so the comment should be moved or corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "in... | null |
wolfSSL__wolfssl__9837 | wolfSSL/wolfssl | 9,837 | defect | 85228f088e56be7519dc82898547ef42b1e41c83 | 1f9dd3c955814144fc42042da2bbfd185ff99547 | Fix unused variable warning in PKCS7 without WC_RSA_PSS | This pull request introduces improvements to PKCS#7 support, specifically enabling PKCS#7 functionality without requiring RSA-PSS, and adds a small code guard to prevent unused variable warnings in certain build configurations.
Enhancements to PKCS#7 support:
* Added a new build configuration in `.github/workflow... | diff --git a/.github/workflows/os-check.yml b/.github/workflows/os-check.yml
index 724fa8191db..30d99ae0423 100644
--- a/.github/workflows/os-check.yml
+++ b/.github/workflows/os-check.yml
@@ -55,6 +55,8 @@ jobs:
CPPFLAGS=''-DWC_RNG_SEED_CB -DWOLFSSL_NO_GETPID'' ',
# PKCS#7 with RSA-PSS (CMS RSA... | 1 | 1 | 0 | [{"id": "G0", "claim": "Do not declare `paramsStart` when it is unused; move the preprocessor protection around the variable declaration instead of casting it to void under an #if guard inside the else branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfSSL__wolfssl__9875 | wolfSSL/wolfssl | 9,875 | defect | 1c8d593af7df5bc912dadda625130b52d66bf3a3 | 486291b373f323689f708a90b6e603bd4a061702 | Treat alerts as fatal errors regardless of level in TLS1.3 | All alerts except for `close_notify` and `user_canceled` are now treated as `FATAL_ERROR` regardless of the level within the alert message for TLS 1.3 (in compliance with RFC 8446 §6).
Added test case to verify.
F-158 | diff --git a/src/internal.c b/src/internal.c
index f7f0b26d644..d42410f0789 100644
--- a/src/internal.c
+++ b/src/internal.c
@@ -22036,6 +22036,12 @@ static int DoAlert(WOLFSSL* ssl, byte* input, word32* inOutIdx, int* type)
if (level == alert_fatal) {
ssl->options.isClosed = 1; /* Don't send clo... | 1 | 1 | 0 | [{"id": "G0", "claim": "Non-ASCII UTF-8 characters (e.g. § and ¶) snuck into the new source comments in src/internal.c and tests/api/test_tls13.c, as flagged by the project's source-text check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfSSL__wolfssl__9930 | wolfSSL/wolfssl | 9,930 | defect | b3f08f33b845d2d6bb523f0f38d191ca25635e1c | ddba7f1a995fef62ee755367a04dddfee8043886 | Fenrir fixes | - Update setup-msbuild action
- Dockerfile: use https instead of http
- ProcessSessionTicket: verify nonce length
- ProcessServerHello: verify extension lengths
- Pin `actions/checkout` version
- DoTls13ClientHello: session length is a sender side requirement
- CheckCertCRL_ex: check `cbRet` after callback
- QuicTransp... | diff --git a/.github/workflows/ada.yml b/.github/workflows/ada.yml
index d1d51d82b47..8e892e69cc8 100644
--- a/.github/workflows/ada.yml
+++ b/.github/workflows/ada.yml
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@master
+ - uses: actions/checkout@v4
- name: ... | 4 | 1 | 1 | [{"id": "G0", "claim": "Wiping outPlaintext on every error changes the API semantics too broadly; the wipe should be limited to the authentication/tag-failure path (or only after decryption has produced plaintext).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
wolfSSL__wolfssl__9961 | wolfSSL/wolfssl | 9,961 | defect | 0de6e8fd5080fac33ff755a913b6bc58205e68c9 | 9352e24e7c00e321f5f6cb64830c184c87eac10f | minor coverity fixes for tls ech code | # Description
hsHashes pointer was being cached and restored even on error. A free'd pointer was never accessed but it does waste cycles. Moved both instances of this inside an `if` block.
Assert macro in tests/api.c was flagged as potentially removing the assignment. Broke the assignment out and asserted after.
... | diff --git a/src/tls13.c b/src/tls13.c
index 73bef3438d7..4bddd7d9b5c 100644
--- a/src/tls13.c
+++ b/src/tls13.c
@@ -5094,10 +5094,10 @@ static int EchCheckAcceptance(WOLFSSL* ssl, byte* label, word16 labelSz,
ret = EchCalcAcceptance(ssl, label, labelSz, input, acceptOffset, helloSz,
msgType == hello_... | 1 | 1 | 1 | [{"id": "G0", "claim": "The subtraction-based remaining calculation in wc_HpkeLabeledExtract and wc_HpkeLabeledExpand can underflow if MAX_HPKE_LABEL_SZ is overridden smaller than the fixed constants, bypassing the later bounds checks and risking out-of-bounds writes, so an explicit pre-subtraction guard (or compile-ti... | null |
wolfSSL__wolfssl__9962 | wolfSSL/wolfssl | 9,962 | defect | a05a3ed1c2bdc1281877173eba94feb1a1b8609c | 2626f976f52a7bbc020d23d2d96169b3751c8849 | Fix expected callback behavior for ECC/Dilithium for Free Callbacks | # Description
A crypto callback is a replacement for the wolfSSL function: returning 0 means the callback handled cleanup, only `CRYPTOCB_UNAVAILABLE` signals fallback to software.
`wc_ecc_free` and `wc_dilithium_free` ignored the `wc_CryptoCb_Free` return value, breaking this convention established by AES and SH... | diff --git a/.github/workflows/os-check.yml b/.github/workflows/os-check.yml
index 56a57080336..461c0b0df9c 100644
--- a/.github/workflows/os-check.yml
+++ b/.github/workflows/os-check.yml
@@ -76,6 +76,7 @@ jobs:
'--enable-sessionexport',
'--enable-cryptocb --enable-aesgcm CPPFLAGS="-DWOLF_CRYPTO_... | 3 | 2 | 2 | [{"id": "G0", "claim": "In wc_ecc_free() the WOLF_CRYPTO_CB_FREE block declares `ret` uninitialized, but the code executes `(void)ret;` when key->devId == INVALID_DEVID, reading an indeterminate value (UB) and risking -Wmaybe-uninitialized; initialize `ret` (e.g. to 0) or remove the unconditional `(void)ret;`.", "categ... | null |
wolfSSL__wolfssl__9968 | wolfSSL/wolfssl | 9,968 | defect | 156db7dd2d6c27cd32f38d9cea7e750b1fa54116 | 88b42f78730e976460bc5a7e048df11efc552114 | ML-KEM fixes | Various ML-KEM related fixes (extracted from #9732):
* DTLS 1.3 cookie and CH frag handling
* static memory handling
* Fix memory leak in TLS server PQC handling in case of ECH
* Make sure hybrids are actually tested in testsuite
* Add tests for individual ML-KEM levels (follow up on #9777)
All of these changes... | diff --git a/.github/workflows/pq-all.yml b/.github/workflows/pq-all.yml
index 3b724a30ba8..cabd5f367c4 100644
--- a/.github/workflows/pq-all.yml
+++ b/.github/workflows/pq-all.yml
@@ -27,6 +27,9 @@ jobs:
'--enable-intelasm --enable-sp-asm --enable-all --enable-testcert --enable-acert --enable-dtls13 --enabl... | 6 | 4 | 1 | [{"id": "G0", "claim": "Auto-defining WOLFSSL_DTLS_CH_FRAG silently changes build-time behavior compared to the prior #warning; consider also emitting a warning/message (or adding an explicit opt-out macro) so integrators aren't surprised by implicitly enabled code paths/footprint.", "category": "maintainability", "ver... | null |
wolfSSL__wolfssljni__109 | wolfSSL/wolfssljni | 109 | defect | a43f4f5816373d53ed144ce16e8994ea0e8bc40c | a23afd624525871e4353d076329b083c55daf8e4 | Add non-standard X509TrustManager.checkServerTrusted() | This PR adds a non-standard implementation of X509TrustManager.checkServerTrusted() which is required/expected on Android when called by `android.net.http.X509TrustManagerExtensions`:
```
public List<X509Certificate> checkServerTrusted (X509Certificate[] chain,
String authType, String host)
```
... | diff --git a/IDE/Android/app/src/main/cpp/CMakeLists.txt b/IDE/Android/app/src/main/cpp/CMakeLists.txt
index c9c8cc2f8..33bde7204 100644
--- a/IDE/Android/app/src/main/cpp/CMakeLists.txt
+++ b/IDE/Android/app/src/main/cpp/CMakeLists.txt
@@ -12,7 +12,7 @@ add_definitions(-DHAVE_FFDHE_2048 -DWOLFSSL_TLS13 -DHAVE_TLS_EXTE... | 1 | 1 | 0 | [{"id": "G0", "claim": "There should be an easy way to regenerate these chain example certificates for when they get close to their expiration dates.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfSSL__wolfssljni__144 | wolfSSL/wolfssljni | 144 | defect | f9056704136fc21c00ce2f94f30defa1b7a69a74 | 8b22fde8fa9486297a0d8a30cb7eba171b0887dc | Fixes for SSLSocket, SSLEngine, session resumption, and synchronization | This PR contains a variety of JSSE-level fixes which help fix compatibility with Spring Boot, RabbitMQ, session resumption, and SSLEngine usage.
- Previous PR (https://github.com/wolfSSL/wolfssljni/pull/142) added synchronization around native pointer use. We need to loosen locking on WolfSSLSession.read/write() sin... | diff --git a/native/com_wolfssl_WolfSSLSession.c b/native/com_wolfssl_WolfSSLSession.c
index 825a39074..649e224f7 100644
--- a/native/com_wolfssl_WolfSSLSession.c
+++ b/native/com_wolfssl_WolfSSLSession.c
@@ -1247,13 +1247,34 @@ JNIEXPORT jlong JNICALL Java_com_wolfssl_WolfSSLSession_get1Session
(JNIEnv* jenv, jobje... | 2 | 2 | 2 | [{"id": "G0", "claim": "Running 'ant test' on the pull request fails: WolfSSLEngine.unwrap throws javax.net.ssl.SSLException (wolfSSL error, ret: err = -1 : -308) during the WolfSSLEngineTest extended threading test.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "... | null |
wolfSSL__wolfssljni__163 | wolfSSL/wolfssljni | 163 | defect | c8ed69241a12ce10c7e170307bbb9898ea027f03 | 483d5fc17df3b5282153fce8e10ff47e708bd649 | JSSE: add SSLSocket/Engine support get/setHandshakeApplicationProtocolSelector() | This PR implements support for the following ALPN API's from the `SSLEngine` and `SSLSocket` classes, as well as supporting JNI level changes and test cases.
```
public synchronized String getHandshakeApplicationProtocol();
public synchronized BiFunction<SSLEngine,List<String>,String>
getHands... | diff --git a/build.xml b/build.xml
index 33b716538..13fe44b98 100644
--- a/build.xml
+++ b/build.xml
@@ -161,8 +161,8 @@
<property name="java.debuglevel" value="source,lines,vars"/>
<property name="java.deprecation" value="true"/>
<property name="java.optimize" value="false"/>
- <prope... | 1 | 1 | 1 | [{"id": "G0", "claim": "The non-CTX API wolfSSL_set_alpn_select_cb() does not exist in the wolfSSL versions this PR is built against, and the call compiles only via an implicit-declaration warning.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
wolfSSL__wolfssljni__260 | wolfSSL/wolfssljni | 260 | defect | 994950fffb4799df8467cd03390fff39f45eec91 | 571eb28f3988c5d08827884254a95e8c877c1d85 | Add more checks to JNI WolfSSLSession.read(ByteBuffer) | This PR:
- Adds more return code and error condition checks inside the native JNI `WolfSSLSession.read(ByteBuffer, ...)` function.
- Adjusts JNI-layer test for `WolfSSLSession.test_WolfSSLSession_ioBuffers()` to add checks for `SSL_ERROR_WANT_READ` and `SSL_ERROR_WANT_WRITE` when calling `read()/write()`. | diff --git a/native/com_wolfssl_WolfSSLSession.c b/native/com_wolfssl_WolfSSLSession.c
index fe4a81f7a..f633db5e1 100644
--- a/native/com_wolfssl_WolfSSLSession.c
+++ b/native/com_wolfssl_WolfSSLSession.c
@@ -1384,13 +1384,15 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLSession_read__JLjava_nio_ByteBuff
if (l... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test setup contains a duplicate call to WolfSSLDebug.refreshDebugFlags(); the reviewer suggests checking whether both calls are necessary to avoid redundancy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Typo in the... | null |
wolfSSL__wolfssljni__266 | wolfSSL/wolfssljni | 266 | defect | 9e35d6ba84780ca817f5e73d251f7fb72d823234 | f623ca170dc23f445a5b7080eacad29ac7acc9e6 | Clean up Cursor/VSCode IDE warnings | This PR cleans up warnings shown in Cursor / VSCode. | diff --git a/src/java/com/wolfssl/WolfCryptEccKey.java b/src/java/com/wolfssl/WolfCryptEccKey.java
index 07d124c2f..19889978c 100644
--- a/src/java/com/wolfssl/WolfCryptEccKey.java
+++ b/src/java/com/wolfssl/WolfCryptEccKey.java
@@ -21,8 +21,6 @@
package com.wolfssl;
-import com.wolfssl.WolfSSLException;
-
/**
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Instead of discarding the results of getSocketFactory(), getServerSessionContext() and getClientSessionContext() in WolfSSLContextTest, the tests should assign and assert them (e.g. assertNotNull) to verify a valid instance is returned — the reviewer marks these as nitpicks.", "category": "testi... | null |
wolfSSL__wolfssljni__286 | wolfSSL/wolfssljni | 286 | defect | b2555d4defacbd2a6666a3f463ad19bad565308d | 1fb0bbd4fc6e109c63544d6cc28b2fb832604987 | Correct call to CallObjectMethod() in WolfSSLSession ByteBuffer read() | This PR fixes one JNI call in `com.wolfssl.WolfSSLSession.read(ByteBuffer data, int sz, int timeout)` where the JNI code was calling `CallVoidMethod()` but should be calling `CallObjectMethod()`.
This worked on most JDK versions, but showed up on Android similar to the following:
```
[wolfJSSE INFO: TID 1073: Wo... | diff --git a/native/com_wolfssl_WolfSSLSession.c b/native/com_wolfssl_WolfSSLSession.c
index 165038de3..1ae0ed8fc 100644
--- a/native/com_wolfssl_WolfSSLSession.c
+++ b/native/com_wolfssl_WolfSSLSession.c
@@ -1542,7 +1542,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLSession_read__JLjava_nio_ByteBuff
* ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the manual array comparison loop in the ByteBuffer read test with Arrays.equals(testData, receivedData), which is more concise and readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfSSL__wolfssljni__287 | wolfSSL/wolfssljni | 287 | defect | b2555d4defacbd2a6666a3f463ad19bad565308d | a4631ade50ccde5d7ea841fa7b41b8730749b845 | add get/setUseCipherSuitesOrder to ParametersHelper | Add `out.setUseCipherSuitesOrder(in.getUseCipherSuitesOrder());` and `ret.setUseCipherSuitesOrder(in.getUseCipherSuitesOrder());` to ParametersHelper.
Wraps `wolfSSL_UseClientSuites()` to set native ssl to use client's order of preference if SSLParameter `useCipherSuiteOrder = false` when calling `setLocalCiphers()`... | diff --git a/native/com_wolfssl_WolfSSLSession.c b/native/com_wolfssl_WolfSSLSession.c
index 165038de3..5b5ee1ba9 100644
--- a/native/com_wolfssl_WolfSSLSession.c
+++ b/native/com_wolfssl_WolfSSLSession.c
@@ -5874,6 +5874,17 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLSession_hasTicket
#endif
}
+JNIEXPORT jin... | 4 | 3 | 1 | [{"id": "G0", "claim": "The pull request should wrap native wolfSSL_UseClientSuites() in a JNI method inside WolfSSLSession.java and call it from WolfSSLEngineHelper.setLocalCipherSuiteOrder() when the order is set via the Java parameters.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "uncl... | null |
wolfSSL__wolfssljni__290 | wolfSSL/wolfssljni | 290 | defect | 9b067ce155e502a4681770e3240f414e749fa49a | ec6ffeb8eaaca934c94a29d125d00caa53ef2e1c | Wrap wolfSSL i2d/d2i_SSL_Session | Wraps native `wolfSSL_i2d_SSL_SESSION()` and `wolfSSL_d2i_SSL_SESSION()` for use in WolfJSSE. Allows user to serialize and deserialize a wolfSSL session to and from a buffer.
Adds test for new functions `sessionToDer()` and `sessionFromDer()` to serialize a session to a buffer, deserialize it, and set the session to... | diff --git a/native/com_wolfssl_WolfSSLSession.c b/native/com_wolfssl_WolfSSLSession.c
index cbbf2cac2..caeb23d26 100644
--- a/native/com_wolfssl_WolfSSLSession.c
+++ b/native/com_wolfssl_WolfSSLSession.c
@@ -6261,3 +6261,100 @@ int NativeSSLIOSendCb(WOLFSSL *ssl, char *buf, int sz, void *ctx)
return retval;
}
... | 6 | 5 | 1 | [{"id": "G0", "claim": "The NULL check is missing a space after the '||' operator before 'session'; add one.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The debug printf(\"Length less than or equal to 0\\n\") in sessionToDerNative should be r... | null |
wolfSSL__wolfssljni__292 | wolfSSL/wolfssljni | 292 | defect | 9b067ce155e502a4681770e3240f414e749fa49a | 4ffdc95e1eb39a810a9ac33ef2ee0c4ef67d22bf | JSSE: fix certificate verification for cross-signed and alternate chains | `WolfSSLTrustX509` fails to verify certificate chains containing cross-signed root certificates when the cross-signing CA is not in the trust store, even when a valid trust path exists through other certificates. This PR adjusts behavior similar to native `WOLFSSL_ALT_CERT_CHAINS`, where we skip over extra/excess CA ce... | diff --git a/IDE/Android/app/src/main/cpp/CMakeLists.txt b/IDE/Android/app/src/main/cpp/CMakeLists.txt
index edb09c7e3..13ecfd018 100644
--- a/IDE/Android/app/src/main/cpp/CMakeLists.txt
+++ b/IDE/Android/app/src/main/cpp/CMakeLists.txt
@@ -251,6 +251,7 @@ list(REMOVE_ITEM TLS_SOURCES ${wolfssl_DIR}/src/ssl_load.c)
li... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new comment misspells 'Similarly' as 'Similary' in WolfSSLTrustX509.java.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the new test methods of WolfSSLTrustX509Test.java, the repeatedly opened and closed `fis` and `... | null |
wolfSSL__wolfssljni__294 | wolfSSL/wolfssljni | 294 | defect | cc8e42119c6fa64671d25588727f3da476fc2ddf | 1c6d0ea152b6b17bc0887f1f968ff53dcc6a84be | Return correct cert chain from X509ExtendedTrustManager.checkServerTrusted() | This PR builds on https://github.com/wolfSSL/wolfssljni/pull/292 and fixes the following `X509ExtendedTrustManager` method to return the correct full peer certificate chain in cases where alt cert chain verification was done and some intermediate CA certs were skipped:
```
public List<X509Certificate> checkServerTr... | diff --git a/.github/workflows/infer.yml b/.github/workflows/infer.yml
index 0ea3870a7..c697685ae 100644
--- a/.github/workflows/infer.yml
+++ b/.github/workflows/infer.yml
@@ -22,13 +22,37 @@ jobs:
steps:
- uses: actions/checkout@v4
- # Download Facebook Infer
- - name: Download Infer
- ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The direct boolean comparison `returnChain == true` is redundant and should be written as `if (returnChain)` for cleaner code (at both the chain-initialization site near line 393 and the chain-insert site near line 454).", "category": "maintainability", "verdict": "supported", "priority": "P3", ... | null |
wolfSSL__wolfssljni__296 | wolfSSL/wolfssljni | 296 | defect | 43f3cb388de471a5feee26e9252d20d1a3053ce9 | f7b76bf0f01075bc28a08417bfc506ec5ade987a | Add ServiceLoader support for wolfJSSE provider discovery | This PR adds ServiceLoader support for provider discovery of wolfJSSE.
- Adds `META-INF/services/java.security.Provider` for ServiceLoader
- Updates `build.xml` to copy resources to build directory and JAR
- Add resources configuration to `pom.xml` for Maven builds
- Adds `WolfSSLServiceLoaderTest` for test cover... | diff --git a/build.xml b/build.xml
index 264afe6a9..6a3df8657 100644
--- a/build.xml
+++ b/build.xml
@@ -119,6 +119,10 @@
<include name="com/wolfssl/provider/jsse/adapter/**" />
<exclude name="com/wolfssl/provider/jsse/adapter/WolfSSLJDK8Helper.java" unless="have-SNIHostName" />
</jav... | 1 | 1 | 0 | [{"id": "G0", "claim": "Including both ${build.dir} and src/resources in the jar-jsse target creates duplicate entries in the JAR, and the redundant <fileset dir=\"${build.dir}\" /> line should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfSSL__wolfssljni__299 | wolfSSL/wolfssljni | 299 | defect | 2b5c5492d0afad6440ec0f241a7ea1c76b18880f | c7c84a86583f69cf8814db33352394912ea70203 | Support for client/server Signature Schemes property | Adds limited support for `jdk.tls.client.SignatureSchemes` and `jdk.tls.server.SignatureSchemes`. Changes allow SunJSSE tests `SignatureScheme/CustomizedClientSchemes.java` and `SignatureScheme/CustomizedServerSchemes.java` to pass when running with Java 19.
Added function: `getSignatureSchemes(boolean clientMode)` ... | diff --git a/README.md b/README.md
index 5e70b3485..3ee4d4fc1 100644
--- a/README.md
+++ b/README.md
@@ -602,6 +602,12 @@ are enabled in different ways depending on the JDK implementation. For
Oracle/OpenJDK and variants, this System property enables session tickets and
was added in Java 13. Should be set to "true" t... | 5 | 5 | 2 | [{"id": "G0", "claim": "The duplicated code between the if and else blocks in setLocalSigAlgorithms should be consolidated, e.g. by initializing sigSchemes to null and only fetching it when this.clientMode, so only one call to formatSigSchemes is needed.", "category": "maintainability", "verdict": "supported", "priorit... | null |
wolfSSL__wolfssljni__307 | wolfSSL/wolfssljni | 307 | defect | 0e9a858eb1b6cbc57cb3ec5dc169a3b874633f80 | e68f4ff13a7e475153512b286a553fc483431cd0 | Fix Android test issues and run tests in emulator on GitHub action workflow | This PR fixes test issues that showed up on Android when running the `IDE/Android` project and unit tests on an Android device/emulator. This also expands the Android GitHub action workflow to run the tests. Previously it just tested the build.
- Add Android emulator test execution to GitHub Actions CI
- Fix Andro... | diff --git a/.github/workflows/android_gradle.yml b/.github/workflows/android_gradle.yml
index af67147d2..16badf627 100644
--- a/.github/workflows/android_gradle.yml
+++ b/.github/workflows/android_gradle.yml
@@ -1,21 +1,14 @@
-name: Android Gradle Build test logic
+name: Android Gradle Build and Test
on:
- workflo... | 2 | 2 | 2 | [{"id": "G0", "claim": "The CMake preprocessor flag is written as -DDWOLFSSL_VERIFY_CB_ALL_CERTS with a double 'D' prefix and should be -DWOLFSSL_VERIFY_CB_ALL_CERTS.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The same null check added for origi... | null |
wolfSSL__wolfssljni__309 | wolfSSL/wolfssljni | 309 | defect | 5955dfdf4fa1554058835f8aaccf880f186946e8 | 4ba3d81719c60552c6470bac92c59941cdd265cc | Load chain CAs for OCSP response validation in Android checkServerTrusted() | This PR loads intermediate CA certificates from the verified certificate chain into the CertManager before OCSP validation. This fixes `OCSP_LOOKUP_FAIL` (-367) when responses are signed by intermediate CAs.
This PR also adjusts our Android emulator GitHub action where it could hang indefinitely (up to the action ti... | diff --git a/src/java/com/wolfssl/provider/jsse/WolfSSLTrustX509.java b/src/java/com/wolfssl/provider/jsse/WolfSSLTrustX509.java
index 58bd08775..9449c60bc 100644
--- a/src/java/com/wolfssl/provider/jsse/WolfSSLTrustX509.java
+++ b/src/java/com/wolfssl/provider/jsse/WolfSSLTrustX509.java
@@ -1076,13 +1076,34 @@ public ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The test's error messages at lines 3132 and 3139 use one tab (\"\\t...\") while the pass message uses two, so the two error messages should use \"\\t\\t...\" for consistency.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new c... | null |
wolfSSL__wolfssljni__311 | wolfSSL/wolfssljni | 311 | defect | 8dd48f93338a8118081fcf5e62f99830756362c0 | 7657bfd7073975a9142df4bded92b4e83e6cfdb2 | Prep for 1.16 release | This PR preps for the 1.16 release, including:
- Updating `ChangeLog.md`
- Bump version to 1.16.0 in build.xml and WolfSSLProvider.java
- Fix small bug in `WOLFSSL_FAILURE` usage when `NO_SESSION_CACHE` defined (not likely to be used by many people)
- Switches `com.wolfssl` level tests to use one static `WolfSSL`... | diff --git a/ChangeLog.md b/ChangeLog.md
index ccba4127c..a128ed55f 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,78 @@
+### wolfSSL JNI Release 1.16.0 (01/31/2025)
+
+Release 1.16.0 has bug fixes and new features including:
+
+**JSSE System/Security Property Support:**
+* Add `wolfjsse.autoSNI` Security prop... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new ChangeLog line should read \"Rename wolfCrypt JNI helper classes to avoid namespace conflicts with wolfcrypt-jni (PR 252)\" - the plural subject \"classes\" needs \"avoid\", not \"avoids\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfSSL__wolfssljni__317 | wolfSSL/wolfssljni | 317 | defect | 6867aba9d09d27092502dca1cd09bfce8d7d4798 | b75a5b9c3556c4b2665d56370a81cbc19f0e6d3b | Add cert/CRL capabilities: skid, akid, dist point, netscape | This is a follow up to PR 315 which must be merged first. Must also merge related PRs on WolfSSL 9631 and 9713 | diff --git a/IDE/Android/app/src/main/cpp/CMakeLists.txt b/IDE/Android/app/src/main/cpp/CMakeLists.txt
index 37e1b94c6..12c3da474 100644
--- a/IDE/Android/app/src/main/cpp/CMakeLists.txt
+++ b/IDE/Android/app/src/main/cpp/CMakeLists.txt
@@ -350,6 +350,7 @@ add_library(wolfssljni SHARED
${wolfssljni_DIR}/native... | 6 | 4 | 3 | [{"id": "G0", "claim": "Directly casting (timeBuf + CTC_DATE_SIZE) to int* assumes proper alignment and native byte order and can cause undefined behavior or crashes on strict-alignment architectures; the integer should be extracted with XMEMCPY or ByteBuffer instead.", "category": "correctness", "verdict": "supported"... | null |
wolfSSL__wolfssljni__339 | wolfSSL/wolfssljni | 339 | defect | ef35e7a8327ee1bdd66dca894387f58cded537f1 | ff6cd1daeada7d97db8815c9115598ef190abe31 | Add wrapper for wolfSSL_SNI_GetFromBuffer() | This PR adds a static `WolfSSL.getSNIFromBuffer()` method, wrapping native `wolfSSL_SNI_GetFromBuffer()`, allowing SNI extraction from a raw ClientHello buffer without requiring an SSL context or session.
Also adds JUnit test with mock TLS 1.2 ClientHello containing SNI.
ZD 21200
| diff --git a/native/com_wolfssl_WolfSSL.c b/native/com_wolfssl_WolfSSL.c
index ea43b4016..6b0326da9 100644
--- a/native/com_wolfssl_WolfSSL.c
+++ b/native/com_wolfssl_WolfSSL.c
@@ -2638,3 +2638,101 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSL_getErrno
return 0;
#endif
}
+
+JNIEXPORT jint JNICALL Java_com_w... | 1 | 1 | 1 | [{"id": "G0", "claim": "The JavaDoc for getSNIFromBuffer() is missing a @throws WolfSSLException declaration, even though the native implementation throws WolfSSLException when wolfSSL_SNI_GetFromBuffer() returns a negative error code.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "i... | null |
wolfSSL__wolfssljni__352 | wolfSSL/wolfssljni | 352 | defect | d7de709c97fb1a1e78cf2820addf71537ee2503c | 8322b359ddd13ec712150bc6fd19219012e3096e | unwrap() header peek in SSLEngine to fix BUFFER_UNDERFLOW | Adds a pre-check in unwrap() that inspects the TLS record header before calling into wolfSSL, returning BUFFER_UNDERFLOW when the buffer holds a partial record.
Also adds on to the `testHandshakeUnwrapConsumedNotBufferUnderflow` regression test. | diff --git a/src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java b/src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java
index 45a908d87..00f13600a 100644
--- a/src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java
+++ b/src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java
@@ -1459,10 +1459,42 @@ else if (hs == SSLE... | 6 | 4 | 2 | [{"id": "G0", "claim": "The pre-check trusts any 5+ bytes as a TLS record header, so a bogus large length can cause repeated BUFFER_UNDERFLOW and mask protocol errors (stall/DoS); it should only take the underflow shortcut when the header is plausible (valid content type, expected version, recLen within a max record si... | null |
wolfSSL__wolfssljni__357 | wolfSSL/wolfssljni | 357 | defect | dbd89baa0d5df93970ffa194fd63a628da475316 | f9374232b049df8bc36bb2470961cfb8fea002df | Prep for 1.17 release | This PR preps for the 1.17 release, including version bumps and fixes found during the release cycle.
- Bump version to 1.17, update ChangeLog for 1.17.0 release
- Build: drop gitignored `docs/lib` from `DIST_FILES`; make `ant cleanjni` tolerate missing `lib/`
- Windows: document `WOLFSSL_TLS13` in FIPS v2 `... | diff --git a/ChangeLog.md b/ChangeLog.md
index 02cfabdb9..af9f6e564 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,94 @@
+### wolfSSL JNI Release 1.17.0 (TBD)
+
+Release 1.17.0 has bug fixes and new features including:
+
+**New JSSE Functionality:**
+* Add JSSE-level Pre-Shared Key (PSK) support via `WolfSSLPa... | 3 | 3 | 0 | [{"id": "G0", "claim": "If the server fails to bind, actualPort stays -1 and clients fail with an invalid-port error rather than via the latch-timeout path the new comment describes, so add an explicit check (e.g. fail when actualPort <= 0) after getBoundPort() for a deterministic, actionable failure.", "category": "te... | null |
wolfSSL__wolfssljni__359 | wolfSSL/wolfssljni | 359 | defect | dbd89baa0d5df93970ffa194fd63a628da475316 | ce945319a0ae8d1b17091057b193e43ebf6649bd | Fenrir fixes | - Fix equals/hashCode contract for `byte[]` field violation. Hash `this.encoded` with `Arrays.hashCode()` for equivalence when checking with `SSLSNIServerName.equals()` (F-3237)
- Decrements `internalIOSendBufOffset` by `sendSz` after copy. Adds regression test to check that stale data is not sent. (F-3241)
- Return ... | diff --git a/native/com_wolfssl_WolfSSLCertificate.c b/native/com_wolfssl_WolfSSLCertificate.c
index f28ce82ab..5442f75d0 100644
--- a/native/com_wolfssl_WolfSSLCertificate.c
+++ b/native/com_wolfssl_WolfSSLCertificate.c
@@ -274,7 +274,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSLCertificate_X509_1set_1pubkey_1n... | 1 | 1 | 1 | [{"id": "G0", "claim": "The failure message in WolfSSLEngineTest.java contains a non-ASCII em dash, which can cause compilation failures on systems where the build does not enforce UTF-8 source encoding; replace it with ASCII to keep the test source portable.", "category": "correctness", "verdict": "supported", "priori... | null |
wolfSSL__wolfssljni__90 | wolfSSL/wolfssljni | 90 | defect | 7eb9f2c2b373e42d1c8c0ba3e6b05be2e47197cf | e73705b6eddb19041f4b6b21d80b8e6f42776e3f | add support to WolfSSLSession.setFd() for handling delegate SocketImpl | This PR adds compatibility with newer Java versions (ex: Java 17), specifically fixing the native `WolfSSLSession.setFd()` function to use the inner `delegate` SocketImpl if present.
This has been tested on Amazon Corretto 17, along with older versions of Java (Java 8). This also fixes OSX installs with `java versi... | diff --git a/examples/provider/ThreadedSSLSocketClientServer.java b/examples/provider/ThreadedSSLSocketClientServer.java
index 0b2b28551..6c29cb33d 100644
--- a/examples/provider/ThreadedSSLSocketClientServer.java
+++ b/examples/provider/ThreadedSSLSocketClientServer.java
@@ -144,7 +144,7 @@ public ThreadedSSLSocketCli... | 1 | 1 | 0 | [{"id": "G0", "claim": "Reviewer asks why the example's server keystore was changed from server.jks to rsa.jks in ThreadedSSLSocketClientServer, questioning whether this change should be kept.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfi-dev__wolfictl__1034 | wolfi-dev/wolfictl | 1,034 | defect | 998fbe4010831f4973940124b0a48b409d528ac3 | 7e7b835d7020a8ddcbef6290b65e7865b082c603 | validate: advisory: add new validation for file and package name matching | This PR adds a new validation step for advisory. Package name should also reflect the actual file name to work as expected. For example; package name should reflect the version stream in the advisories. `foo-1.2.advisories.yaml`'s `package.name` MUST be `foo-1.2` rather than `foo`. | diff --git a/.gitignore b/.gitignore
index 8a9eacfc..d18d4770 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@ wolfictl
.vscode
dist/
+bin/
packages/*
melange-cache/*
diff --git a/pkg/advisory/create_test.go b/pkg/advisory/create_test.go
index 9756170c..cb240d52 100644
--- a/pkg/advisory/create_test.go
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Implement the file/package-name match validation via the configs index's Entries and their Path() (making Entry.Path public in a separate quick PR) instead of changing the shape of the v2.Document struct to carry its file path.", "category": "design", "verdict": "supported", "priority": "P1", "s... | null |
wolfi-dev__wolfictl__1185 | wolfi-dev/wolfictl | 1,185 | defect | f9ea65d64d6d5db24e00513a008265bff3493d49 | 73f9b97d65cef0f60016ccc245195cb867debb50 | fix(adv): validate fixed versions only for new data | Previously, the validation logic made an assumption that removing packages from the APKINDEX is an exceptional and rare event, used only when a severe mistake is made during a package build. Since the logic's introduction, this assumption has become invalid, as there are more common cases where packages are removed fro... | diff --git a/pkg/advisory/validate.go b/pkg/advisory/validate.go
index d9d0db7e..088cda27 100644
--- a/pkg/advisory/validate.go
+++ b/pkg/advisory/validate.go
@@ -82,12 +82,6 @@ func Validate(ctx context.Context, opts ValidateOptions) error {
log.Info("skipping validation of index diff, no comparison basis provided"... | 2 | 1 | 1 | [{"id": "G0", "claim": "Removal of the APKINDEX fallback in validateBuildConfigurationExistence should be sanity-checked, since the removed logic allowed advisory data to reference a package that has no Melange build config as long as it is listed in the APKINDEX.", "category": "design", "verdict": "uncertain", "priori... | null |
wolfi-dev__wolfictl__1372 | wolfi-dev/wolfictl | 1,372 | defect | ebe3d200f41b95f28ad8687758e2c87e52fe4c08 | 6f6cab901e36c24ba1b2e79bc8ef1ca12056214f | Fail On Duplicate Config Names | Fixes [#1599](https://github.com/chainguard-dev/internal-dev/issues/1599)
- Updated `wolfictl lint` to fail if a duplicate package config name is encountered.
- Added a unit test to `melange_test.go` for duplicate package config names
Steps to test:
1) See that `lint` succeeds on a valid repo:
```
git clone... | diff --git a/pkg/melange/melange.go b/pkg/melange/melange.go
index f149d1af..5aeebe85 100644
--- a/pkg/melange/melange.go
+++ b/pkg/melange/melange.go
@@ -112,7 +112,7 @@ func ReadAllPackagesFromRepo(ctx context.Context, dir string) (map[string]*Packa
// guarantee a consistent sort order for test comparisons
sort... | 3 | 3 | 1 | [{"id": "G0", "claim": "The pull request should also fail when a config's .package.name does not match its file name, since mismatched names violate assumptions and a filename check would also give uniqueness for free.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":... | null |
wolfi-dev__wolfictl__1475 | wolfi-dev/wolfictl | 1,475 | defect | d7a8098f4577fb1ab8eea28408af0a5fb74b2749 | 78ce8775694a448947fd08f3130812c57a92a060 | feat(sbom,scan): leverage CPE data for Go module matching | With a goal of finding more true positives for the Go ecosystem, this PR turns on CPE matching for Go modules.
With this, we are also investing in better CPE assignments during SBOM generation, particularly for the `golang.org/x/...` group of repositories.
Also, since we're still using some Syft-generated CPEs, w... | diff --git a/pkg/sbom/cpe.go b/pkg/sbom/cpe.go
index 871c7a9a..6f20b313 100644
--- a/pkg/sbom/cpe.go
+++ b/pkg/sbom/cpe.go
@@ -153,3 +153,61 @@ var pkgNameToWfnAttributes = map[string]wfn.Attributes{
Product: "vault",
},
}
+
+// cpesFromGolangOrgXModule provides one or more CPE strings given the Go module
+// nam... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a unit test for the new shouldAllowMatch filtering function in pkg/scan/apk.go.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wolfi-dev__wolfictl__1507 | wolfi-dev/wolfictl | 1,507 | defect | ffb7f8d2233f6c60ff44435dd0fefdaf4090e011 | 099697fd17103f65b2f52d74a02a1969b4219ebf | build(deps): bump github.com/anchore/grype from 0.89.0 to 0.90.0 | I (@luhring) have commandeered this PR to make not only the adjustments needed for the dep bumps, but also to make other improvements that will minimized the effects of Grype changes on us in our downstream scan processing.
Most notably is updating the `scan.Result` type to go back to a fully scanner-agnostic data s... | diff --git a/go.mod b/go.mod
index 914a5445..134f16c4 100644
--- a/go.mod
+++ b/go.mod
@@ -1,7 +1,6 @@
module github.com/wolfi-dev/wolfictl
go 1.24.0
-
// https://github.com/anchore/grype/blob/v0.80.1/go.mod#L266-L269
// Pull in a fix for an unpatched CVE. mholt/archiver appears inactive/unmaintained.
replace gi... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Grype 0.89.0 -> 0.90.0 bump has to be handled before the PR can merge, because it might cause APK scanning errors (and left wolfictl's scan code with build errors) — a plan for adapting to the update was needed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": ... | null |
wolfi-dev__wolfictl__1514 | wolfi-dev/wolfictl | 1,514 | defect | 4311ced3a6a74d60bdc093a13e5108906a59f9aa | df7e230e80d43ccf55bef884d7242fd736c370e6 | feat(adv): introduce read-only abstraction, create a simple implementation, and use in `adv list` command | - Begin new advisory interface design — using a `Store` abstraction, which will be decomposed into read (`Getter`) and write (name TBD) interfaces (since so many consumers' needs are read-only)
- Update `adv list` command to use advisory `Getter`
- Implement a simple `Getter` using `fs.FS` with just open and decode c... | diff --git a/pkg/advisory/fs_getter.go b/pkg/advisory/fs_getter.go
new file mode 100644
index 00000000..78dcb167
--- /dev/null
+++ b/pkg/advisory/fs_getter.go
@@ -0,0 +1,81 @@
+package advisory
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "io/fs"
+ "strings"
+
+ v2 "github.com/wolfi-dev/wolfictl/pkg/configs/advisory/v2... | 6 | 6 | 1 | [{"id": "G0", "claim": "The ErrNoAdvisories doc comment misspells 'returning' as 'retuning' and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Getter interface should return errors consistently across implementations for t... | null |
wolfi-dev__wolfictl__1518 | wolfi-dev/wolfictl | 1,518 | defect | c2e97feac0fa8c4cb134b117ba855aa224b5db4d | a13185449faa6e5766f2e4a9bbc46bb06b268dd9 | feat(adv): bulk create and update of adv data | This updates the `wolfictl adv create` and `... update` commands to be able to handle updates of multiple packages and/or vulnerabilities in one fell swoop — both via the CLI flags and the interactive prompts.
You can specify more than one item for both packages and vulnerabilities using a comma-separated list, e.g.... | diff --git a/docs/cmd/wolfictl_advisory_create.md b/docs/cmd/wolfictl_advisory_create.md
index e5c6e799..64108945 100644
--- a/docs/cmd/wolfictl_advisory_create.md
+++ b/docs/cmd/wolfictl_advisory_create.md
@@ -28,6 +28,10 @@ command line, the command will prompt for the missing values.
If the --no-prompt flag is spec... | 2 | 1 | 0 | [{"id": "G0", "claim": "The function name 'newPendingUpstreamReleaseNoteFieldConfig' is inconsistent with the associated event type 'PendingUpstreamFix'; consider renaming it to 'newPendingUpstreamFixNoteFieldConfig' for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
wolfi-dev__wolfictl__1525 | wolfi-dev/wolfictl | 1,525 | defect | d18ecf7beca151063e29749ed517358006bc4845 | 5021e04ffc1e78ac10158b73b8397c432ee9e93a | feat(adv): on bulk operations for `create` and `update`, skip event additions that would be redundant by event type | This was requested by the Sustaining team, to help ensure that if they're operating en masse on a set of advisories, bulk operations are resilient to the scenario where one or two of the advisories in the target set have already received their updates via some other mechanism. The command logs a warning when this happe... | diff --git a/docs/cmd/wolfictl_advisory_create.md b/docs/cmd/wolfictl_advisory_create.md
index 64108945..ca77f9ee 100644
--- a/docs/cmd/wolfictl_advisory_create.md
+++ b/docs/cmd/wolfictl_advisory_create.md
@@ -32,6 +32,11 @@ It's possible to create advisories for multiple packages and/or vulnerabilities
at once by us... | 1 | 1 | 0 | [{"id": "G0", "claim": "Since the package is already named `advisory`, the new helper's name repeats it and should be shortened to something like `advisory.MatchToRequest(...)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfi-dev__wolfictl__1540 | wolfi-dev/wolfictl | 1,540 | defect | 888504ec08d41cd4ac2d8363f571f6bb3f4d6957 | 412b1cf80b143451e9194639fbc9bf7e516d0aff | refactor(scan): update scan filtering to use new `advisory.Getter` abstraction | This also introduces a nifty mechanism for taking an existing, old-style `*configs.Index[v2.Document]` and adapting it to the new `advisory.Getter` interface so that consuming code can move ahead to the abstraction-based model when possible. | diff --git a/pkg/advisory/index_adapter.go b/pkg/advisory/index_adapter.go
new file mode 100644
index 00000000..ed13a047
--- /dev/null
+++ b/pkg/advisory/index_adapter.go
@@ -0,0 +1,58 @@
+package advisory
+
+import (
+ "context"
+ "fmt"
+ "sort"
+
+ "github.com/wolfi-dev/wolfictl/pkg/configs"
+ v2 "github.com/wolfi-de... | 3 | 3 | 2 | [{"id": "G0", "claim": "Taking the address of the loop variable 'adv' in MapByVulnID can cause all map entries to reference the same instance, so 'adv' should be copied inside the loop before taking its address.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
wolfi-dev__wolfictl__1577 | wolfi-dev/wolfictl | 1,577 | defect | 2163bd7aed0026c47994792ee4f1577872c9ae45 | ae7f3fd74538d67a73739031ae3cf5bd8dcc0b8b | fix: return ErrNoEntries and capture it | This is related to one issue with the scanning of apks when it should have warned and continued. The IndexAdapter was returning a custom error when no advisory document were found for a package. However other advisory getters such as FSGetter was propagating the **ErrNoEntries** which was then captured in the calling f... | diff --git a/pkg/advisory/index_adapter.go b/pkg/advisory/index_adapter.go
index a3504a57..8d9476e8 100644
--- a/pkg/advisory/index_adapter.go
+++ b/pkg/advisory/index_adapter.go
@@ -2,7 +2,6 @@ package advisory
import (
"context"
- "fmt"
"sort"
v2 "github.com/chainguard-dev/advisory-schema/pkg/advisory/v2"
... | 2 | 1 | 1 | [{"id": "G0", "claim": "In Advisories, the error from Select().First() is now returned bare, dropping the wrapped context (\"getting advisory document for %q\") that the previous code added.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ErrNoEntries sho... | null |
wolfi-dev__wolfictl__1649 | wolfi-dev/wolfictl | 1,649 | defect | 354785a46df3caf732993c6ece330eb7dd1a690c | 15680185d5485a1c60441d5d02adcb9608861a75 | feat: Add linter to check for potentially hanging tests | During the QEMU migration, we noticed that packages that have a pattern like so:
` hostpathplugin --v=5 --endpoint="unix:///csi/csi.sock" --nodeid="node-000000" & sleep 5`
Create a potential for an infinite hang during tests. This linter provides a WARNING if that is detected to give users a hint in the ca... | diff --git a/pkg/lint/rules.go b/pkg/lint/rules.go
index f82e964c..d0bc2495 100644
--- a/pkg/lint/rules.go
+++ b/pkg/lint/rules.go
@@ -43,6 +43,9 @@ var (
hostEditDistanceExceptions = map[string]string{
"www.libssh.org": "www.libssh2.org",
}
+
+ // Detect background processes (commands ending with '&' or '& slee... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new background-process rule should also detect daemonized commands via daemon-flag patterns (-d, --daemon, --daemonize, --detach, -daemon) and use the broader list of output-redirect patterns egibs lists, which the PR's detection does not cover.", "category": "correctness", "verdict": "suppo... | null |
wolfi-dev__wolfictl__1736 | wolfi-dev/wolfictl | 1,736 | defect | e3c1d4b418303d8afa017a0d38dd5ae4737f9dea | 74d296a2cc75d8ad8de594c20247437b3785010c | chore(sbom): resolve warning for directory source | Syft logs a warning if you're using a directory source but don't set a `source.Alias` value for the source. This log message isn't warning about anything that impacts the accuracy of the analysis, but it's nonetheless noisy and annoying. This PR plugs in an alias value to avoid the warning. It also moves the Syft-to-cl... | diff --git a/pkg/sbom/sbom.go b/pkg/sbom/sbom.go
index 7963231e..0b435ee1 100644
--- a/pkg/sbom/sbom.go
+++ b/pkg/sbom/sbom.go
@@ -116,9 +116,24 @@ func Generate(ctx context.Context, inputFilePath string, f io.Reader, distroID s
}
log.Debug("synthesized APK package for SBOM", "name", apkPackage.Name, "version", apk... | 1 | 1 | 0 | [{"id": "G0", "claim": "The code comment should say that omitting the alias makes Syft log an annoying/scary warning, instead of just saying Syft 'likes to have' one.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wolfi-dev__wolfictl__180 | wolfi-dev/wolfictl | 180 | defect | 37a2883ba06853a578e516edde2461e6e6cb4dc1 | 489bb388f21429602132c1bbfa269493cf5dfd6c | wolfictl lint: ensure packages have an epoch set | The melange struct for epoch doesn't have an `omitempty` yaml annotation which means it is always 0 when unmarshalling configs. This lint check validates the raw yaml to make sure epoch is set.
This will help avoid these issues https://github.com/wolfi-dev/os/issues/1569 | diff --git a/pkg/lint/rules.go b/pkg/lint/rules.go
index 538795cc..12dadb51 100644
--- a/pkg/lint/rules.go
+++ b/pkg/lint/rules.go
@@ -3,9 +3,15 @@ package lint
import (
"fmt"
"net/url"
+ "os"
"regexp"
"strings"
+ "chainguard.dev/melange/pkg/renovate"
+
+ "github.com/dprotaso/go-yit"
+ "gopkg.in/yaml.v3"
+
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The unneeded fields in the new no-epoch.yaml test fixture can be removed, since they might trigger other lint checks and cause the test to pass erroneously.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfi-dev__wolfictl__1835 | wolfi-dev/wolfictl | 1,835 | defect | 2014f0e8f1cf086251435ccb99d76d5a2f922e31 | abe70b4d29050daca5a3ee23b2c73788a469a2d1 | lint: add fetch-templating rule to validate version templates | This PR introduces a new linter rule, `fetch-templating`, which validates that package `fetch` sources and `git-checkout`s use proper version templating to prevent version drift and ensure reproducible builds. This addresses the class of issues that previously allowed outdated package sources to go unnoticed, such as h... | diff --git a/pkg/lint/fetch/parser.go b/pkg/lint/fetch/parser.go
new file mode 100644
index 00000000..860ce34c
--- /dev/null
+++ b/pkg/lint/fetch/parser.go
@@ -0,0 +1,102 @@
+package fetch
+
+import (
+ "gopkg.in/yaml.v3"
+)
+
+// Searches for a key in a YAML mapping node
+func findYamlValue(mapping *yaml.Node, key str... | 4 | 4 | 2 | [{"id": "G0", "claim": "The isEmpty helper on sourceData should live in the validator instead of types.go.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "buildPackagePatterns should return an error when package name or version is empty, since a package m... | null |
wolfi-dev__wolfictl__361 | wolfi-dev/wolfictl | 361 | defect | 37060134561a036fbc0bc069c8374823c63586d9 | dfd36cf3e3c214649ad7f9b88808d259c34c9ed9 | Add option to export in YAML | This change adds the option to export all advisories in a single YAML output:
```
wolfictl adv export --format yaml
```
I haven't added a test for this yet. The output order of the map of events isn't predictable yet, and it causes some instability. The format for advisories V2 will allow to test this a lot eas... | diff --git a/pkg/advisory/export.go b/pkg/advisory/export.go
index 5840abc0..52e9f082 100644
--- a/pkg/advisory/export.go
+++ b/pkg/advisory/export.go
@@ -4,19 +4,21 @@ import (
"bytes"
"encoding/csv"
"io"
+ "log"
"sort"
"github.com/samber/lo"
"github.com/wolfi-dev/wolfictl/pkg/configs"
"github.com/wolf... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new YAML export should use `gopkg.in/yaml.v3` instead of `gopkg.in/yaml.v2`, since yaml.v3 is what the app normally uses, if viable.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment above `OutputYAML = \"yam... | null |
wolfi-dev__wolfictl__438 | wolfi-dev/wolfictl | 438 | defect | a5f566017bb1c4c574ea8cdbabe6c3cb733c939a | 92eb33f53455003859b7bb6734309537fda02ba5 | wolfictl scan: various improvements | This PR makes the following improvements to `wolfictl scan`:
- When using `--build-log`, APK package paths are now resolved relative to the provided build log path, rather than to the current working directory (since build logs and `packages/<arch>/*.apk` files are virtually always colocated)
- When using `--requir... | diff --git a/pkg/buildlog/buildlog.go b/pkg/buildlog/buildlog.go
index bc5cdb21..e26c0438 100644
--- a/pkg/buildlog/buildlog.go
+++ b/pkg/buildlog/buildlog.go
@@ -7,6 +7,9 @@ import (
"strings"
)
+// DefaultName is the default name used for a Melange build log file.
+const DefaultName = "packages.log"
+
// Entry ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The manual two-line duplication of result.Findings (make plus copy) should be replaced with a single slices.Clone call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
wolfi-dev__wolfictl__450 | wolfi-dev/wolfictl | 450 | defect | 443d62cc04bf48f12e1195d2325777206c3b340d | f962b3f482dbf046e197d385765fe3b6d632274d | feat(scan): experimental `--govulncheck` flag for triaging | Adds a new **experimental** flag `--govulncheck` to the `wolfictl scan` command.
This feature integrates with [govulncheck](https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck) (as a library, so no extra installation is needed), to follow up the Grype scan with an extra close inspection of the APK's _Go binaries_ t... | diff --git a/.golangci.yaml b/.golangci.yaml
index 6b69c0d3..0c0025bb 100644
--- a/.golangci.yaml
+++ b/.golangci.yaml
@@ -33,7 +33,7 @@ linters:
- gofmt
- goheader
- goimports
- - gomoddirectives
+ # - gomoddirectives is disabled because it wasn't allowing the 'replace' directive, and it didn't lo... | 2 | 1 | 0 | [{"id": "G0", "claim": "Consider moving the golang.org/x/vuln fork used in the replace directive under the chainguard-dev repositories instead of the author's personal fork.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Mark the experimental --... | null |
wolfi-dev__wolfictl__478 | wolfi-dev/wolfictl | 478 | defect | fd6e17d0395b864f13f876248b0e56c584f286cd | 3f54ce8daaafbaf94ff89ec70f6e4ee90307d2aa | feat: new 'adv diff' command | This PR adds a new `wolfictl adv diff` command, which outputs a `diff`-like view of the advisory data in the current working directory, relative to the upstream `main` branch for the advisories of the detect distro.
This command clones the upstream advisories repo, and if the distro isn't Wolfi, it uses the GitHub p... | diff --git a/pkg/advisory/diff.go b/pkg/advisory/diff.go
new file mode 100644
index 00000000..0757c0f4
--- /dev/null
+++ b/pkg/advisory/diff.go
@@ -0,0 +1,211 @@
+package advisory
+
+import (
+ "reflect"
+
+ "github.com/wolfi-dev/wolfictl/pkg/configs"
+ v2 "github.com/wolfi-dev/wolfictl/pkg/configs/advisory/v2"
+)
+
+/... | 2 | 2 | 0 | [{"id": "G0", "claim": "The IsZero doc comment should read \"returns true if there is no difference\" instead of \"returns true there is no difference\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The venn helper's O(N^2) pairwise-equality alg... | null |
wolfi-dev__wolfictl__482 | wolfi-dev/wolfictl | 482 | defect | 3f7b48a48a25c398cb9c56022fb564441ebaf09b | 992370852e9346750c701bf02a293a54a2177349 | feat(adv): validate diff in data from base state | This PR enhances the `wolfictl adv validate` command by validating the "diff" of advisory data relative to a known base state. This PR takes advantage of and extends the advisory diffing functionality introduced in #478. | diff --git a/pkg/advisory/diff_test.go b/pkg/advisory/diff_test.go
index c334d3ee..9b9e1f82 100644
--- a/pkg/advisory/diff_test.go
+++ b/pkg/advisory/diff_test.go
@@ -129,7 +129,7 @@ func TestIndexDiff(t *testing.T) {
Events: []v2.Event{
{
Timestamp: unixEpochTimestamp,
- Type... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error messages returned by the different failure branches of findRepoForkPoint look near-identical even though they come from different funcs, and could be improved to distinguish them.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
wolfi-dev__wolfictl__568 | wolfi-dev/wolfictl | 568 | defect | b0314b99499b06e859600104cbe60f759e6b7520 | cc4e34ba091bc949952665045c32baf271031745 | chore: add a new advisory filter set | As part of a discussion in https://chainguard-dev.slack.com/archives/C0636FTRFED/p1705946151427929, we decided to add a new filter type so we can filter the advisory data to remediate certain CVE types such as true-positive, pending-upstream-fix and not-fixed... | diff --git a/pkg/configs/advisory/v2/advisory.go b/pkg/configs/advisory/v2/advisory.go
index cf4dc82c..06305bc1 100644
--- a/pkg/configs/advisory/v2/advisory.go
+++ b/pkg/configs/advisory/v2/advisory.go
@@ -111,6 +111,42 @@ func (adv Advisory) ResolvedAtVersion(version string) bool {
}
}
+// PendingAtVersion retur... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new 'pending' advisories set is named after the event types it keeps in the results rather than the ones it filters out, and the reviewer asks to rename it to convey the filtered-out kinds (suggesting 'concluded').", "category": "design", "verdict": "supported", "priority": "P1", "scope": "i... | null |
wolfi-dev__wolfictl__777 | wolfi-dev/wolfictl | 777 | defect | 8082536bd01d235f2343fafca538a90b0add5e35 | f4eb7e7d4730c5223bd05aefc0e82ae4e0952369 | fix: compare package version epoch as numerics | This is related to the issue reported on slack [here](https://chainguard-dev.slack.com/archives/C05GYUBM07Q/p1713943656535999) where a list of versions as such `[0.1.0-r12, 0.1.0-r9, 0.1.0-r1]` always returned `0.1.0-r9` as the latest. | diff --git a/pkg/versions/versions.go b/pkg/versions/versions.go
index 29ba57b2..c069f491 100644
--- a/pkg/versions/versions.go
+++ b/pkg/versions/versions.go
@@ -1,11 +1,14 @@
package versions
import (
+ "strconv"
"strings"
"github.com/hashicorp/go-version"
)
+const apkEpochPrefix = "r"
+
type Interface ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a few test cases, perhaps in TestSort_ByLatestStrings, to validate the new numeric comparison of package version epochs.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
wolfi-dev__wolfictl__786 | wolfi-dev/wolfictl | 786 | defect | 0c92fc49ef9a9dd804f2bac5bd8bd890f6c7fe41 | 475b7293927b01e90539c2dd714f30f102dd3044 | fix(sbom,scan)!: BREAKING CHANGES, see description | - ⚠️ **BREAKING**: The the API of several library methods associated with SBOM generation and vulnerability scanning have been modified in a breaking way.
- ⚠️ **BREAKING**: Scan result filtering with advisories now takes at most one advisories dir/index; multiple were never needed, so this simplifies the operation.
... | diff --git a/pkg/cli/advisory_guide.go b/pkg/cli/advisory_guide.go
index 144102ba..2b1761fa 100644
--- a/pkg/cli/advisory_guide.go
+++ b/pkg/cli/advisory_guide.go
@@ -27,7 +27,6 @@ import (
"github.com/wolfi-dev/wolfictl/pkg/cli/internal/builds"
"github.com/wolfi-dev/wolfictl/pkg/cli/internal/wrapped"
"github.com... | 3 | 3 | 0 | [{"id": "G0", "claim": "The \"finished Syft SBOM generation\" log entry in pkg/sbom/sbom.go should be raised from Debug to Info level.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"finished Syft SBOM generation\" log entry should also include the ... | null |
wolfi-dev__wolfictl__835 | wolfi-dev/wolfictl | 835 | defect | 922b5a2bb4e1915b7f4d05727bdd1f2d1c1a9585 | 3fa135baf68ffed763fff738ca885be2660dc9d3 | introduce CGA ids to the advisories | - introduce CGA ids to the advisories
docs: https://docs.google.com/document/d/1cLTpQp-dknQ2HU3EKmAQMPeOGR9MBQ_IfQ2T7_ZUb40/edit | diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index c9b929755..71a6e8126 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -27,7 +27,7 @@ jobs:
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
- go-versio... | 6 | 5 | 2 | [{"id": "G0", "claim": "The CGA ID generation code should be moved out of create.go into a dedicated file so that it is easier to find.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It is unknown why golangci-lint takes so long in CI (it someti... | null |
wolfi-dev__wolfictl__836 | wolfi-dev/wolfictl | 836 | defect | 922b5a2bb4e1915b7f4d05727bdd1f2d1c1a9585 | 89124fc21aa051c5240dccf860c34a4426f0866e | Git based commands, only use GITHUB_TOKEN when interacting with GitHu… | …b's API
This change also removes the submodules git update as this is not used anymore, therefore does not need updating with the new GetGitAuth signature. | diff --git a/pkg/advisory/data_session.go b/pkg/advisory/data_session.go
index ecbdd83d..01e72aa0 100644
--- a/pkg/advisory/data_session.go
+++ b/pkg/advisory/data_session.go
@@ -51,10 +51,15 @@ func NewDataSession(ctx context.Context, opts DataSessionOptions) (*DataSession,
ds.githubClient = opts.GitHubClient
+ ... | 5 | 4 | 1 | [{"id": "G0", "claim": "TempClone should not need authenticated access to GitHub, since its usage seems read-only.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deps cleanup gitCheckout should not authenticate its clone request at all.", "category": "... | null |
wolfi-dev__wolfictl__837 | wolfi-dev/wolfictl | 837 | defect | e0ccd73bfdb21ac7129264b682b7dba8e5480870 | 4783ec54eee9cf26788e82f25aada03f322299eb | lint: github.com is not the only git hosting | Only require github-update when git checkouts actually are from
github.com rather than from freedesktop gitlab debian salsa etc.
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@chainguard.dev>
| diff --git a/pkg/lint/rules.go b/pkg/lint/rules.go
index 866e6663..482818de 100644
--- a/pkg/lint/rules.go
+++ b/pkg/lint/rules.go
@@ -384,7 +384,7 @@ var AllRules = func(l *Linter) Rules { //nolint:gocyclo
Severity: SeverityError,
LintFunc: func(config config.Configuration) error {
for _, p := range co... | 1 | 1 | 0 | [{"id": "G0", "claim": "The git-checkout lint rule should use strings.HasPrefix(p.With[\"repository\"], \"https://github.com/\") instead of strings.Contains(p.With[\"repository\"], \"github.com\") so that repositories merely containing the string github.com are not treated as GitHub hosting.", "category": "correctness"... | null |
wolfpld__tracy__1180 | wolfpld/tracy | 1,180 | defect | 1977beafe6b832344a2e8b4068a9ef680622abdb | dc3572fa666ec0e5bc8526bbee4759b9037f4431 | Support source/severity for messages | This pull request introduces some new metadata to messages: sources and severity. The main objective was to provide a way to send internal information to the user by default, such as errors related to system sampling for example.
Currently sources are User/Tracy, and severity levels are `Trace, Debug, Info, Warning,... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1ebe574810..144379b905 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -146,6 +146,8 @@ set_option(TRACY_IGNORE_MEMORY_FAULTS "Ignore instrumentation errors from memory
# advanced
set_option(TRACY_VERBOSE "[advanced] Verbose output from the profiler" OFF)
mark_a... | 17 | 13 | 4 | [{"id": "G0", "claim": "Adding a severity variant of every TracyMessage* macro would explode the number of public macro combinations (with no free naming letter left), so the API should grow just one overarching macro such as TracyLogString and leave further wrapping to users.", "category": "design", "verdict": "suppor... | null |
wolfpld__tracy__824 | wolfpld/tracy | 824 | defect | 9688152505d8b8a235af6a3718a633c34c4186fe | 0761822fe15916fda4cd3417c4d6a75b89fd15ac | [IDE] migrate `test` folder to CMake configuration | As discussed via discord, here's a proposed PR to migrate test.
Some notes
- I kept `DEBUGINFOD` enabled by default on linux platforms like in the `MakeFile`
- we "include" the top-level `CmakeLists.txt` to get the `TracyClient` target - that's a bit unorthodox but seems to work well
- on my Ubuntu machine, I do... | diff --git a/.vscode/settings.json b/.vscode/settings.json
index a43d178474..f5fe69441a 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -7,6 +7,7 @@
"${workspaceFolder}/import-chrome",
"${workspaceFolder}/import-fuchsia",
"${workspaceFolder}/update",
+ "${workspaceFol... | 4 | 4 | 4 | [{"id": "G0", "claim": "The client part should target C++11 rather than the C++20 set for the whole test project.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It is ok to drop pthread from the tracy-test target link libraries.", "category": "corre... | null |
wongnai__xds__25 | wongnai/xds | 25 | defect | 4724e95d389a0ab2667599323fdbec065e305854 | b852f7a11add220e2fb11a862d5a681dfbd27888 | Support xdstp federation | ## Summary
Adds gRPC A47 xDS federation support. When run with `--local-cluster=<name>`, the server emits each Kubernetes service under both its legacy resource name and `xdstp://<name>/<type>/<id>`, so clients with a federated bootstrap can explicitly target this cluster via `xds://<name>/foo` URLs.
When `--loca... | diff --git a/README.md b/README.md
index 2cb0d19..ea0b325 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,12 @@ access, which you can find the ClusterRole in [deploy.yml](deploy.yml). It is re
service. As it use DNS-based discovery, we recommend not to use autoscaling on this service but keep it always at max
pod... | 4 | 4 | 0 | [{"id": "G0", "claim": "The duplicated Namer interface declared in snapshot/apigateway should be replaced with something that is not a duplication hack.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Namer interface methods should be named VerbNoun s... | null |
woodpecker-ci__woodpecker__1329 | woodpecker-ci/woodpecker | 1,329 | defect | 27ee8ef97d538bad78e09ce95149387f4f42372d | ae8d3764503045a962773dd9b84a81da09bbe7d2 | Allow to change directory for steps | Add `directory` YAML key that changes the workdir. Can replace a `cd` before your commands start or make it possible to run plugins in a subdirectory. | diff --git a/pipeline/frontend/yaml/compiler/convert.go b/pipeline/frontend/yaml/compiler/convert.go
index 343a7a74844..51ce575e018 100644
--- a/pipeline/frontend/yaml/compiler/convert.go
+++ b/pipeline/frontend/yaml/compiler/convert.go
@@ -68,7 +68,7 @@ func (c *Compiler) createProcess(name string, container *yaml.Con... | 5 | 5 | 4 | [{"id": "G0", "claim": "Move the working-directory computation out of createProcess into its own function in the same file to make the code easier to maintain.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new directory step option needs do... | null |
woodpecker-ci__woodpecker__1632 | woodpecker-ci/woodpecker | 1,632 | defect | e74c2565711bbb7a4a1791778e9024fcfe0822ab | 796e78486e8ec2267513f32c1347514f168657cb | Add queue details UI for admins | # Changes
- Adds an admin view to see the whole work-queue of the server.
- The admin can also pause / resume the queue.
- The view is reloading data every 5 seconds automatically.
- The task model from queue got removed in favor of the one from models.

func mkPod(step *types.Step, config *config, podName, goos string) (*v1.Pod, error... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request's CI lint pipeline fails and the lint errors need to be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new TestToDnsName test is missing an error case for input that fails the DNS pattern check... | null |
woodpecker-ci__woodpecker__3608 | woodpecker-ci/woodpecker | 3,608 | defect | 399bc5bf1b220f30f72cb0cab22dc26787fd10ee | 19132137a115c0a13fd7482bb62e569735e27e9b | Agent-wide node selector | Closes #3587 | diff --git a/pipeline/backend/kubernetes/flags.go b/pipeline/backend/kubernetes/flags.go
index 6d5fd9c92dd..6cb733f93ee 100644
--- a/pipeline/backend/kubernetes/flags.go
+++ b/pipeline/backend/kubernetes/flags.go
@@ -55,6 +55,12 @@ var Flags = []cli.Flag{
Usage: "backend k8s additional worker pod annotations",
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new flag's usage string \"backend k8s worker pod node selector\" is ambiguous about whether \"worker\" means the agent, and should be clarified.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new WOODPECKER_BACKEND_... | null |
woodpecker-ci__woodpecker__3807 | woodpecker-ci/woodpecker | 3,807 | defect | fbb96ff8f583167abed072641660a4c1cbdb8c8e | 894f2ee4878b098c4bd7d0e5c9669b4fe3751ef0 | Fix authentication error handling | closes #3380
# Changes
- [x] Fix issues that errors where not shown on login page (Error component not imported)
- [x] Enhance error messages shown on login page
- [x] We now show more reasons an error occurred (exp: org not allowed)
- [x] We now show the error message, description and link the uri in case t... | diff --git a/server/api/login.go b/server/api/login.go
index c03de5db2a5..aa71500150a 100644
--- a/server/api/login.go
+++ b/server/api/login.go
@@ -17,7 +17,9 @@ package api
import (
"encoding/base32"
"errors"
+ "fmt"
"net/http"
+ "net/url"
"strconv"
"time"
@@ -34,15 +36,25 @@ import (
"go.woodpecker-ci... | 2 | 2 | 0 | [{"id": "G0", "claim": "Concatenating translatable strings in Login.vue is usually a bad idea; the error message should ideally use a template with `{}` placeholders, while acknowledging it is not easy since content is not always appended.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop... | null |
woodpecker-ci__woodpecker__3820 | woodpecker-ci/woodpecker | 3,820 | defect | b0f3883bd58afea2b6d666b042ccb82553694e7e | 2b7ee2221fafe0c66aa5c32d986b1ba399227199 | Add dummy backend | create a pipeline backend to mock exec for integration testing
TODO:
- [x] document mock backend in development docs
-> https://woodpecker-ci-woodpecker-pr-3820.surge.sh/docs/next/development/testing
close #3503 | diff --git a/cli/exec/exec.go b/cli/exec/exec.go
index 68db9aabef1..740fe9098dc 100644
--- a/cli/exec/exec.go
+++ b/cli/exec/exec.go
@@ -34,6 +34,7 @@ import (
"go.woodpecker-ci.org/woodpecker/v2/pipeline/backend/docker"
"go.woodpecker-ci.org/woodpecker/v2/pipeline/backend/kubernetes"
"go.woodpecker-ci.org/woodpe... | 7 | 4 | 1 | [{"id": "G0", "claim": "When a step hits a bad_habit error the cli should only log/lock the error instead of aborting with a fatal error.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The PR should use mockery to generate a mockable backend and t... | null |
woodpecker-ci__woodpecker__3918 | woodpecker-ci/woodpecker | 3,918 | defect | 659e925d0e8558dc9debda474ef397a537848ea4 | 27a0a5a06000654f77f62d3e5057d72e87913547 | Remove all default 3rd party privileged plugins | As woodpecker do assume a lot of trust to those plugins, if we have no influence we should not **by default** have them as trusted.
#4056 will future enhance the security model of it,
close #4053 | diff --git a/docs/docs/91-migrations.md b/docs/docs/91-migrations.md
index 4becb088e69..22f0819d216 100644
--- a/docs/docs/91-migrations.md
+++ b/docs/docs/91-migrations.md
@@ -11,6 +11,7 @@ Some versions need some changes to the server configuration or the pipeline conf
## `next`
+- Remove `plugins/docker`, `plug... | 5 | 3 | 0 | [{"id": "G0", "claim": "Remove all default privileged plugins, including Woodpecker's own buildx plugin, so that nothing runs privileged unless the server admin opts in.", "category": "security", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The migration note's link text shou... | null |
woodpecker-ci__woodpecker__4114 | woodpecker-ci/woodpecker | 4,114 | defect | 41b2127e042cb7b61c95ac57852be40a3f7d97f5 | 113abd26075701efaa44734b94f07be7ee4a646f | Restart tasks on dead agents sooner | And run the steady queue process as background job
close #3157 | diff --git a/agent/runner.go b/agent/runner.go
index 0024b78880b..27363aa6638 100644
--- a/agent/runner.go
+++ b/agent/runner.go
@@ -28,6 +28,7 @@ import (
"go.woodpecker-ci.org/woodpecker/v2/pipeline"
backend "go.woodpecker-ci.org/woodpecker/v2/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/v2/pipeline... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the now-unneeded //nolint:mnd directive above func New in server/queue/fifo.go, left over once the PR moved the magic numbers out to constants.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "When the queue is pause... | null |
woodpecker-ci__woodpecker__4255 | woodpecker-ci/woodpecker | 4,255 | defect | 49e40772ca5f765e132a74f5623401b3bf8cae3b | 31e9425e1b5aee4536dad04d77662b4d65179507 | fix: repo/owner parsing for gitlab | `extractFromPath` wrongly splitted owner/group/repo patterns from repos in subgroups.
Before, `owner/group/repo` resulted in `owner` (for owner) and `repo` for repo. However, it should be `owner/group` for owner. Otherwise, webhooks for repos with subpaths fail.
There was no test before, hence I added one.
fi... | diff --git a/server/forge/gitlab/convert.go b/server/forge/gitlab/convert.go
index ad6dbea5863..51d16bac3f3 100644
--- a/server/forge/gitlab/convert.go
+++ b/server/forge/gitlab/convert.go
@@ -303,7 +303,9 @@ func extractFromPath(str string) (string, string, error) {
if len(s) < minPathComponents {
return "", "", ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment above TestExtractFromPath should say what the test does instead of the placeholder '// Test function' — replace it with '// Test extractFromPath function.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
woodpecker-ci__woodpecker__4358 | woodpecker-ci/woodpecker | 4,358 | defect | b68b038adf501413aa5c6267e7aff9c7bbcb92bf | 0c9b98a1547d7247f179010144a73920398974ad | Deprecate and warn of list syntax of environment | Close #4306
also better detection of secrets legacy syntax | diff --git a/pipeline/frontend/yaml/compiler/compiler.go b/pipeline/frontend/yaml/compiler/compiler.go
index 9525a3a12a2..24240ce1de5 100644
--- a/pipeline/frontend/yaml/compiler/compiler.go
+++ b/pipeline/frontend/yaml/compiler/compiler.go
@@ -21,6 +21,7 @@ import (
backend_types "go.woodpecker-ci.org/woodpecker/v2/... | 4 | 4 | 0 | [{"id": "G0", "claim": "The environment deprecation warning message should read \"List syntax for `environment` is deprecated, use map syntax instead\" instead of the generic \"Please use map syntax. List syntax is deprecated.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
woodpecker-ci__woodpecker__4663 | woodpecker-ci/woodpecker | 4,663 | defect | c933042a37376d7e449b94212a6f410001271767 | c82b4a886dacfe61c8382ff59a2aefaa339f6987 | feat(bitbucketdatacenter): Add support for fetching and converting projects to teams | - Enabled WOODPECKER_ORGS in .env file to restrict CI tool access to specific organizations, enhancing administrative control.
- Implemented GetAllProjects function to retrieve paginated projects from Bitbucket Data Center.
- Added Teams function to convert Bitbucket projects into teams for integration with the Woodp... | diff --git a/server/forge/bitbucketdatacenter/bitbucketdatacenter.go b/server/forge/bitbucketdatacenter/bitbucketdatacenter.go
index ccb7beb4d68..a3f1dae8998 100644
--- a/server/forge/bitbucketdatacenter/bitbucketdatacenter.go
+++ b/server/forge/bitbucketdatacenter/bitbucketdatacenter.go
@@ -570,10 +570,47 @@ func (c *... | 2 | 2 | 1 | [{"id": "G0", "claim": "GetAllProjects should not be a separate function; its project-fetching logic should be folded directly into the Teams function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The CI pipeline reports linting and testing failures th... | null |
woodpecker-ci__woodpecker__4687 | woodpecker-ci/woodpecker | 4,687 | defect | 1f53da1a00dd6077ef4c969b1133fcba42999b40 | 0ea7807c6ccfec7f8bff1d5531988e630df6a8d0 | Don't fail user creation if org exists | fix #4651
Also modified `OrgFindByName` to return `nil` if nothing is found instead of erroring with a SQL error. | diff --git a/server/store/datastore/org.go b/server/store/datastore/org.go
index eb18ac8df0d..aa04b741539 100644
--- a/server/store/datastore/org.go
+++ b/server/store/datastore/org.go
@@ -16,6 +16,7 @@ package datastore
import (
"fmt"
+ "log"
"strings"
"xorm.io/xorm"
@@ -79,7 +80,15 @@ func (s storage) OrgF... | 1 | 1 | 0 | [{"id": "G0", "claim": "The not-found branch in OrgFindByName should not log (and, per M003, should not use the stdlib log package).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
woodpecker-ci__woodpecker__4762 | woodpecker-ci/woodpecker | 4,762 | defect | 58f26d1dbbe45f4e4464c73100aabe37e739c409 | dce893932c14da0715b6c7887b8c2bda75d3bb08 | Unsanitize user and org names in DB | fix #3614
As discussed in chat, preferred to use non-sanitized values everywhere.
- Store user and org names using the casing provided by the forge
- Allow to search for users / orgs using case insensitive names
- Removed all sanitation in the code
- AFAICS only the org names were stored sanitized in the DB. U... | diff --git a/server/store/datastore/migration/024_sanitize_user_names.go b/server/store/datastore/migration/024_sanitize_user_names.go
new file mode 100644
index 00000000000..a89982216cb
--- /dev/null
+++ b/server/store/datastore/migration/024_sanitize_user_names.go
@@ -0,0 +1,46 @@
+// Copyright 2025 Woodpecker Author... | 2 | 1 | 1 | [{"id": "G10", "claim": "The PR should store the forge's casing in the database and let API/URL routes do case-insensitive lookups, similar to how the forges handle it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G16", "claim": "SQL errors ('relation \"migrations\" doe... | null |
woodpecker-ci__woodpecker__4768 | woodpecker-ci/woodpecker | 4,768 | defect | 37dc9e92aea4600b8ee478b23931cd432130596d | f26ea2b5819e718ec17a62d4cfa9e80ecc53644a | Add allow list for approvals | closes #336
Add a list of users who's pipelines never require an approval.

| diff --git a/server/api/repo.go b/server/api/repo.go
index c9127c21931..e9e49648a88 100644
--- a/server/api/repo.go
+++ b/server/api/repo.go
@@ -259,6 +259,9 @@ func PatchRepo(c *gin.Context) {
return
}
}
+ if in.ApprovalAllowedUsers != nil {
+ repo.ApprovalAllowedUsers = *in.ApprovalAllowedUsers
+ }
if in.... | 3 | 2 | 0 | [{"id": "G0", "claim": "Checking only the pipeline author's username could be a security issue when multiple forges are involved, and a comment should be added explaining why checking the username alone is enough.", "category": "security", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "... | null |
woodpecker-ci__woodpecker__4771 | woodpecker-ci/woodpecker | 4,771 | defect | fac744d95944a2665e4a43a8a389d7b5528e001a | c52d9bd23b30759a5cb722095d84555e4502b217 | Tag pipeline with source information | Indirectly adds labels to Kubernetes pods for use with NetworkPolicies and other integrations.
<!--
Please check the following tips:
1. Avoid using force-push and commands that require it (such as `commit --amend` and `rebase origin/main`). This makes it more difficult for the maintainers to review your work. Ad... | diff --git a/pipeline/backend/kubernetes/pod.go b/pipeline/backend/kubernetes/pod.go
index 42a04356c2c..6fc6e119bfb 100644
--- a/pipeline/backend/kubernetes/pod.go
+++ b/pipeline/backend/kubernetes/pod.go
@@ -31,7 +31,8 @@ import (
)
const (
- StepLabel = "step"
+ StepLabelOld = "step"
+ StepLabe... | 8 | 6 | 1 | [{"id": "G0", "claim": "The comment misspells the reserved namespace as \"woodpcker-ci.org\"; a suggestion asks that it read \"woodpecker-ci.org\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of adding a String() method on ForgeRemoteID... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.