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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
treeverse__lakeFS__9856 | treeverse/lakeFS | 9,856 | defect | 4fa44ebd08dffb2a576f4910a1f3b73a0d0218a5 | 2c948453258700a735406e62729369a11da89241 | Handle s3 context cancellation in s3gw | Closes #9855
| diff --git a/pkg/gateway/handler_test.go b/pkg/gateway/handler_test.go
index eec8c2703d5..601da0f6cb7 100644
--- a/pkg/gateway/handler_test.go
+++ b/pkg/gateway/handler_test.go
@@ -1,6 +1,7 @@
package gateway_test
import (
+ "context"
"io"
"net/http"
"net/http/httptest"
@@ -8,6 +9,7 @@ import (
"github.co... | 1 | 1 | 1 | [{"id": "G0", "claim": "Remove the client-cancellation checks from the request-validation paths in PostObject.Handle and HeadObject.Handle; the cancellation check should be kept only in the scope of write response and write error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
treeverse__lakeFS__9874 | treeverse/lakeFS | 9,874 | defect | b8a35b53cd55d5a3ab5b38b7ea2fa3b8d6e04d20 | 72a98ece494374a60866b7f226e58fd120360a3f | Add --all and --repo flags to kv dump command | ## Summary
This PR adds two new flags to the `lakefs kv dump` command as requested in #9857:
- `--all`: Dumps all known partitions instead of just the predefined sections
- `--repo <name>`: Dumps only the partition for a specific repository
## Changes
- Added `--all` flag to enumerate and dump al... | diff --git a/cmd/lakefs/cmd/kv.go b/cmd/lakefs/cmd/kv.go
index 017b8e90601..18becfd2db0 100644
--- a/cmd/lakefs/cmd/kv.go
+++ b/cmd/lakefs/cmd/kv.go
@@ -1,6 +1,7 @@
package cmd
import (
+ "context"
"encoding/json"
"errors"
"fmt"
@@ -13,6 +14,7 @@ import (
_ "github.com/treeverse/lakefs/pkg/graveler"
"gi... | 6 | 5 | 1 | [{"id": "G0", "claim": "The kv dump help text should avoid the word \"all\" (\"all supported sections\") since it collides with the meaning of the --all flag.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dump-mode if/else chain would be easi... | null |
treeverse__lakeFS__9879 | treeverse/lakeFS | 9,879 | defect | b1b862fbe5e1fdf552973d728400f099e70085aa | bef165fa1c5ea9d32cccf6f31305342490029601 | Improve file handling and concurrency in TierFS module | This PR addresses race conditions in the pyramid package where files could be evicted and deleted concurrently while being opened or downloaded.
1. Fix: Protect Files During Open
* Problem: Previously, TierFS.Open checked for file existence or downloaded it before registering it with the fileTracker. This left ... | diff --git a/pkg/pyramid/file_tracker.go b/pkg/pyramid/file_tracker.go
index 1350799570e..d917c80ce39 100644
--- a/pkg/pyramid/file_tracker.go
+++ b/pkg/pyramid/file_tracker.go
@@ -6,7 +6,10 @@ import (
"github.com/treeverse/lakefs/pkg/pyramid/params"
)
-// fileTracker tracks file open requests in TierFS to avoid ... | 2 | 2 | 0 | [{"id": "G0", "claim": "In deleteLocalCacheFile, the not-exist case should log a debug message instead of only leaving a comment explaining the async-eviction possibility.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "downloadFromStorage should... | null |
treeverse__lakeFS__9909 | treeverse/lakeFS | 9,909 | defect | feefc68605644c18f9d915906d6397d685939db2 | 301cd9ea777b538adcdfe9611dfa3c4c8800cf0c | gateway: enforce 2kb limit on user-defined metadata | Closes #9728.
## Change Description
This PR enforces 2kb limit for user-defined metadata.
### Testing Details
How were the changes tested?
Unit tested, and verified manually.
### Breaking Change?
Does this change break any existing functionality? (API, CLI, Clients)
S3 Gateway now returns `Metad... | diff --git a/pkg/gateway/errors/errors.go b/pkg/gateway/errors/errors.go
index a1358fb0bb7..54f553cdd5f 100644
--- a/pkg/gateway/errors/errors.go
+++ b/pkg/gateway/errors/errors.go
@@ -669,8 +669,8 @@ var Codes = errorCodeMap{
HTTPStatusCode: http.StatusBadRequest,
},
ErrMetadataTooLarge: {
- Code: "I... | 7 | 6 | 1 | [{"id": "G0", "claim": "The multiple-headers test builds its metadata value with make([]byte, 1000), which is all zero bytes; it should use strings.Repeat(\"a\", 1000) like the other test cases so the test exercises real metadata content.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
treeverse__lakeFS__9943 | treeverse/lakeFS | 9,943 | defect | 86a744128b3dff8dc4181235d0f847fbf1683f6a | 2747b743e6973d3548bdb042d96119c95387bdb7 | Fix ObjectCopy for imported objects | ## Summary
Fixes CopyObject operations for imported/absolute path objects.
## Issues Fixed
1. **Allow cloning of imported objects (#9756)**: Imported objects (with `AddressTypeFull`) are not subject to GC, so we can skip the grace period check on the underlying storage object's last-modified timestamp. This allows C... | diff --git a/esti/copy_test.go b/esti/copy_test.go
index 7408a9658d8..63c047671fe 100644
--- a/esti/copy_test.go
+++ b/esti/copy_test.go
@@ -1,12 +1,9 @@
package esti
import (
- "context"
"net/http"
"strings"
- "sync"
"testing"
- "time"
"github.com/go-openapi/swag"
"github.com/go-test/deep"
@@ -30,11 +2... | 1 | 1 | 1 | [{"id": "G0", "claim": "Using the entry's address type as the criterion for cloning instead of copying (skipping the grace-period check for imported objects) is wrong; the exemption should apply only when the path is relative and lies under the storage namespace data path.", "category": "correctness", "verdict": "suppo... | null |
treeverse__lakeFS__9945 | treeverse/lakeFS | 9,945 | defect | 86a744128b3dff8dc4181235d0f847fbf1683f6a | ff0aac4adb88aff6b183e58f4209e0e379f42f62 | Fix S3 CreateBucket error response for non-existent repositories | S3 gateway return clearer error for S3 CreateBucket operations on non-existent repositories.
Fixes #9831 | diff --git a/esti/s3_gateway_test.go b/esti/s3_gateway_test.go
index 3f3392afb6f..1be4f5a94ea 100644
--- a/esti/s3_gateway_test.go
+++ b/esti/s3_gateway_test.go
@@ -722,6 +722,33 @@ func TestS3HeadBucket(t *testing.T) {
})
}
+func TestS3CreateBucket(t *testing.T) {
+ t.Parallel()
+ ctx, _, repo := setupTest(t)
+ d... | 1 | 1 | 1 | [{"id": "G0", "claim": "The manually-run test script test_create_bucket.py appears to have been committed by mistake and should not be part of the pull request.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
treeverse__lakeFS__9963 | treeverse/lakeFS | 9,963 | defect | 29fb32d861a65dcecbb219603f3bfe3019ed1860 | c0af38792e3c2b77ee5a12988c84856e08100b7b | Remove cloud metadata collection from stats | This removes the cloud metadata stats provider and its supporting detection logic, and updates the API and CLI wiring accordingly.
Close https://github.com/treeverse/lakeFS/issues/9721
| diff --git a/cmd/lakefs/cmd/root.go b/cmd/lakefs/cmd/root.go
index a1dd5c6f4ef..72052283034 100644
--- a/cmd/lakefs/cmd/root.go
+++ b/cmd/lakefs/cmd/root.go
@@ -15,7 +15,6 @@ import (
configfactory "github.com/treeverse/lakefs/modules/config/factory"
"github.com/treeverse/lakefs/pkg/auth"
"github.com/treeverse/la... | 1 | 1 | 0 | [{"id": "G0", "claim": "After removing the cloud metadata provider, the `stats.enabled` config option may no longer be needed and its comment in the config should be checked.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
treeverse__lakeFS__9965 | treeverse/lakeFS | 9,965 | defect | 00599bc340a01c21cb298580aa022492f0fe236c | 7cdb46ab9f9b87ef9d689dc84ee278974f38d435 | Fix log caller trimming for module paths and function names | Closes https://github.com/treeverse/lakeFS/issues/9296 | diff --git a/pkg/logging/logger.go b/pkg/logging/logger.go
index 6a3096f684d..094f041dfc6 100644
--- a/pkg/logging/logger.go
+++ b/pkg/logging/logger.go
@@ -79,12 +79,32 @@ type Fields map[string]any
func logCallerTrimmer(frame *runtime.Frame) (function string, file string) {
indexOfModule := strings.Index(strings.T... | 1 | 1 | 0 | [{"id": "G0", "claim": "Prefer not to use the \"lakefs-enterprise\" string in the log-caller-trimmer test case, using some other generic string instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
treeverse__lakeFS__9994 | treeverse/lakeFS | 9,994 | defect | f95f049fccad42e9dc98c2a4d2d498cbd6f76272 | dd14feafbc1c769bf36e8f623aa725ab1d13dcef | [bug] Make lakectl gc check-async print a usable URL | Correctly indirect through a _pointer_ to a string in the color verbs like `blue`. | diff --git a/cmd/lakectl/cmd/common_helpers.go b/cmd/lakectl/cmd/common_helpers.go
index f0e6f19caa9..df93e297a93 100644
--- a/cmd/lakectl/cmd/common_helpers.go
+++ b/cmd/lakectl/cmd/common_helpers.go
@@ -89,9 +89,23 @@ type ColoredText struct {
Text any // Usually just a string, but anything goes
}
+func deref(... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the local variable `text` in ColoredText.String because it shadows the imported package name `text` (github.com/jedib0t/go-pretty/v6/text).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
treeverse__lakeFS__9996 | treeverse/lakeFS | 9,996 | defect | c0c1e424689a01d56c589a5fc378adb621d3a188 | b8462c344061541400cc3257910191a32e0315d5 | Prepare gc commits: Reduce memory usage | This should fix OOM crashes on some large customers. It is perhaps easiest to review this PR by commits. These are the important features added:
- Keep the "active commits map" in a local KV: even storing them in an arena.Map takes up too much memory.
- Return a sequence from "GetGarbageCollectionCommits": return... | diff --git a/pkg/graveler/retention/active_commits.go b/pkg/graveler/retention/active_commits.go
index babb19d17d1..d751390b6e5 100644
--- a/pkg/graveler/retention/active_commits.go
+++ b/pkg/graveler/retention/active_commits.go
@@ -2,23 +2,18 @@ package retention
import (
"context"
- "encoding/hex"
"errors"
"... | 4 | 4 | 2 | [{"id": "G0", "claim": "The GetGarbageCollectionCommits doc comment still says the given startingPointIterator is closed by the function, but the caller now closes it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "In makeCleanupMap the sequence... | null |
trekhleb__javascript-algorithms__194 | trekhleb/javascript-algorithms | 194 | defect | 6b0bacd9934495b2cd0b3199216f029c9ebbb96a | ebc7ce4c1de48e80dbe243dcc9912392aad0de5f | Add LinkedList traversal and reverse implementations | **Changes:**
- Add LinkedList traverse implementation
- Add LinkedList reverse implementations (reverseTraversal and reverse)
- Update their pseudocode | diff --git a/src/data-structures/linked-list/LinkedList.js b/src/data-structures/linked-list/LinkedList.js
index dfb17aaf9..b2d63560d 100644
--- a/src/data-structures/linked-list/LinkedList.js
+++ b/src/data-structures/linked-list/LinkedList.js
@@ -207,4 +207,88 @@ export default class LinkedList {
toString(callback... | 5 | 5 | 3 | [{"id": "G0", "claim": "The traversal and reverse functions might be more appropriately placed in an `algorithms/linked-list` folder rather than as methods on `LinkedList`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`traverse` should throw a TypeErro... | null |
trekhleb__javascript-algorithms__575 | trekhleb/javascript-algorithms | 575 | defect | 2c74ced8af09e90f60ae45ccbd656e23f3fc64f0 | 83a6f866f8cbf37e17e8ec1645e8c76c43fefa86 | Add Horner's Method | Added Horner's Method into algorithms/math. Horner's method is a clever solution named after William George Horner, to evaluate polynomial functions given a certain point. I think it would be an interesting addition since it can be used in many hardware/software applications. | diff --git a/src/algorithms/math/horner-method/README.md b/src/algorithms/math/horner-method/README.md
new file mode 100644
index 000000000..d76bbac5d
--- /dev/null
+++ b/src/algorithms/math/horner-method/README.md
@@ -0,0 +1,16 @@
+# Horner's Method
+
+In mathematics, Horner's method (or Horner's scheme) is an algorit... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README description would benefit from a comparison between Horner's scheme and a regular by-definition approach, which would also give meaning to the repeated word \"only\" in both sentences.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
trello-archive__RxLifecycle__159 | trello-archive/RxLifecycle | 159 | defect | 6d86c593ea42b567bdd642d3eb8dfc2a93c5f549 | 6aec47077622ef9371965035abc2603297e24ff8 | Upgraded to support RxJava 1.2.1 | The tests errantly believed that Single was backpressure aware. It's
not. Now we use a TestScheduler to control the emissions of the
Single for timing purposes.
| diff --git a/build.gradle b/build.gradle
index a2099efe..2af2cca4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -33,7 +33,7 @@ ext {
targetCompatibilityVersion = JavaVersion.VERSION_1_7
// Define all dependencies in the base project, to unify & make it easy to update
- rxJava = 'io.reactivex:rxjava:1.2... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add an assertion, applied to all the tests, that nothing was emitted before the testScheduler.advanceTimeBy statement, so the test cannot pass just because the value was emitted early.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
trello-archive__RxLifecycle__167 | trello-archive/RxLifecycle | 167 | defect | 1a78ef1cc772e99e74aace5091b66ece7615764a | 2c4666bf6101e9bf38267cfd7841216fb41c39b2 | Upgrade to RxJava 2 | The goal here is just to start the big transition, I'm sure there are
lots of little polishes/improvements we can do once this is in.
Some of the bigger changes:
- Removed dependency on RxBinding since there is no RxJava 2-based
RxBinding yet. Implementing our own ViewDetachesOnSubscribe was
not that bad.
... | diff --git a/build.gradle b/build.gradle
index daba5355..76f6b5be 100644
--- a/build.gradle
+++ b/build.gradle
@@ -33,11 +33,12 @@ ext {
targetCompatibilityVersion = JavaVersion.VERSION_1_7
// Define all dependencies in the base project, to unify & make it easy to update
- rxJava = 'io.reactivex:rxjava:1... | 3 | 2 | 0 | [{"id": "G0", "claim": "The PR should add the missing Kotlin extension methods (and Java support) for Maybe and Flowable, which so far have no bindToLifecycle/bindUntilEvent equivalents.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc of the R... | null |
trello-archive__RxLifecycle__317 | trello-archive/RxLifecycle | 317 | defect | 8cefb24d9f83fa49da9994d1dd2448df4371ba1e | 14312a8cad22130dd9979ea2994731142b3dce33 | Feature/migrate to rxjva 3 | Working on migration to rxjva3. Currently WIP and waiting for navi migration: https://github.com/trello/navi/pull/106
Issue #315 | diff --git a/build.gradle b/build.gradle
index 4d9fe4d5..5d9899c8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -8,7 +8,7 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.5.0'
+ classpath 'com.android.tools.build:gradle:3.6.3'
classpat... | 3 | 3 | 2 | [{"id": "G0", "claim": "The Jetifier is enabled in gradle.properties although nothing requires it, so the setting should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The version should be bumped to 4.0.0 rather than 3.3.0-SNAPSHOT, sin... | null |
tremor-rs__tremor-runtime__1017 | tremor-rs/tremor-runtime | 1,017 | defect | a667992e7cb5420e287fe97b2ba1aed7063c3582 | f33f321e440dbc7b6fd551ac5efe7d3122c3b0c1 | Fix contraflow cycle via system::metrics pipeline | # Pull request
## Description
Before this PR is was possible to trigger a contraflow event cycle when connecting any pipeline to the `system::metrics` pipeline. In that case contraflow messages might be sent via the `system::metrics` pipeline which used to account for all its input pipelines (all pipelines are in... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d4f775c069..3213489eb3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,7 @@
- Record the partition number assigned during rebalancing when running Kafka.
- Fix bug in HDR histogram implementation when using emit without reset.
- Fix bug in mean that invalid va... | 2 | 2 | 0 | [{"id": "G0", "claim": "The hardcoded recv timeouts in the new pipeline test code should be defined as constants rather than inline millisecond literals.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The different parts of process_filebased_ass... | null |
tremor-rs__tremor-runtime__1123 | tremor-rs/tremor-runtime | 1,123 | defect | b3ffcc423cc736f299e0c168a6396f8c4958ce0f | 9bc95787cc359e26c208d690b8c837cb74f2b691 | Cleanup | # Pull request
## Description
Minor cleanup, remove unused files, normalize `Cargo.toml`, fix `tremor-cli`
## Related
* Related Issues: fixes #1096
## Checklist
* [x] The RFC, if required, has been submitted and approved
* [x] Any user-facing impact of the changes is reflected in docs.tremor.rs
*... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b2ee298622..9e984043e7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@
- Put event raw payload into `Arc` to improve cloning perf
- Remove `rental` from the entire runtime [#1037](https://github.com/tremor-rs/tremor-runtime/issues/1037)
- Restructure oper... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the error message in the `tremor` current-exe branch of `which`, which still says no suitable binary was found on the path, with one saying the current tremor binary could not be executed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tremor-rs__tremor-runtime__1236 | tremor-rs/tremor-runtime | 1,236 | defect | 1e224b871dca316f2da47ffb9e2c00cb805f0e37 | 006d08148a5422223401f96c2d9c5c914a7c987a | Unix socket source | # Pull request
## Description
Adds a source/sink for Unix sockets
## Checklist
<!--
Please fill out the checklist below.
If an RFC is required and not submitted yet the PR will be tagged as RFC required and blocked
until the RFC is submitted and approved.
As a rule of thumb, bugfixes or minimal addi... | diff --git a/src/onramp.rs b/src/onramp.rs
index b3d6dc5d6f..efeee3efeb 100644
--- a/src/onramp.rs
+++ b/src/onramp.rs
@@ -18,7 +18,7 @@ use crate::repository::ServantId;
use crate::source::prelude::*;
use crate::source::{
amqp, blaster, cb, crononome, discord, env, file, gsub, kafka, metronome, nats, otel, post... | 2 | 1 | 1 | [{"id": "G0", "claim": "The connector name `unix-socket` should avoid the hyphen, perhaps renamed to `unix` (leaving `socket` implicit).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `unix_socket` module in src/source.rs should be conditionally comp... | null |
tremor-rs__tremor-runtime__1272 | tremor-rs/tremor-runtime | 1,272 | defect | 3939d40681579472a4130179971898aab7e750ad | 17c6aebffb79bca5c28ca6450ee426d102730888 | show names of failing tests | # Pull request
## Description
<!-- please add a description of what the goal of this pull request is -->
When tremor-cli tests are run, output would only state number of tests pass/failed. Now, we will also indicate the name of failing tests. See #1243 for example output modeled in this PR.
## Related
<!--... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index dcd3b2f058..d514e91202 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@
### New featues
+
+- print names of failing tests
- Add `check_topic_metadata` configuration flag to kafka source to bypass topic metadata fetch
- port `json!` improvements to `liter... | 1 | 1 | 0 | [{"id": "G0", "claim": "Keep the failed test names as a Vec<String> instead of a String, so they can be analyzed programmatically and the manual separator logic can be dropped (with push/to_string avoiding the borrow/lifetime friction).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
tremor-rs__tremor-runtime__1278 | tremor-rs/tremor-runtime | 1,278 | defect | 599856e761d5e20e1d3b60ef378c4b1abc54ebe4 | 89e527c8dfc8f70f7dd58c3b4e8512a961a43840 | Allow setting socket permissions in the config for unix_socket source | Signed-off-by: Ramona Luczkiewicz <rluczkiewicz@wayfair.com>
# Pull request
## Description
This allows to set the permissions for the unix socket from tremor's config. Without that change, the permissions need to be set externally (with `chmod` or equivalent), which is hard to do relibably (i.e. it has to happ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index aa41782640..87d6fb2c12 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -37,6 +37,7 @@
- Add the `unix-socket` source
- Enabale automatic benchmakrs
- Add the `csv` codec
+- Add the `permissions` option for setting the file mode for the `unix-socket` source
### Fixes
... | 3 | 2 | 2 | [{"id": "G0", "claim": "The permissions option should be settable as a human-readable string (e.g. \"777\") instead of a 0o-prefixed octal number, ideally parsed with the file_mode crate's Mode::set_str.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If ... | null |
tremor-rs__tremor-runtime__1299 | tremor-rs/tremor-runtime | 1,299 | defect | f341143d5b56c77e3091f5121ace008084e53300 | b29392bda24563f21d7aa29304412004012b6716 | Add missing StartStream in unix-socket | # Pull request
## Description
This adds the missing `StartStream` message in the unix-socket source and adjusts the test to prove that it works.
## Related
<!-- please include links to related issues are RFCs, remove if not required -->
* [RFC](https://rfcs.tremor.rs/0000-.../)
* Related Issues: fixes ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index dfcb3b07a6..3e5f9b9069 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -67,6 +67,7 @@
- Fix `create script` syntax for aliased scripts with overridden `params`
- Add benchmark names to benchmark tags
- Kafka onramp: Remove failing metadata fetch in order to verify topic... | 1 | 1 | 0 | [{"id": "G0", "claim": "The stream_id must be increased for each new connection, and the increment should use wrapping_add to avoid a panic on overflow.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
tremor-rs__tremor-runtime__1300 | tremor-rs/tremor-runtime | 1,300 | defect | 961e450fab2e181306d45aaf356453173e5ee425 | dd1848b1f6c3c049d3c6fc05f316cfc6ba003c47 | Unixsocket fix streamstart 0.11 | # Pull request
## Description
This is a backport of https://github.com/tremor-rs/tremor-runtime/pull/1299 to 0.11
<!-- please add a description of what the goal of this pull request is -->
## Related
<!-- please include links to related issues are RFCs, remove if not required -->
* [RFC](https://rfcs.tre... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1941f7b2c2..ba8c867ee5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,8 @@
# Changelog
+## 0.11.12
+- Unix onramp: Add the missing StartStream message
+
## 0.11.10
### Fixes
@@ -12,6 +15,7 @@
- Kafka onramp: Remove failing metadata fetch in order to veri... | 4 | 3 | 0 | [{"id": "G0", "claim": "The new changelog section should be headed \"## Unreleased\" instead of the version number \"## 0.11.12\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog entry should sit under a \"### Fixes\" subheading and b... | null |
tremor-rs__tremor-runtime__1321 | tremor-rs/tremor-runtime | 1,321 | defect | 1e079c1e76edbd83f39384b34b8d0f6c87f597ff | 2ebbffa8b0277597b9eedf1c004b1e5815378783 | Introduce the size module | # Pull request
## Description
This PR adds the `std::size` module, as requested in https://github.com/tremor-rs/tremor-runtime/issues/1320
## Related
<!-- please include links to related issues are RFCs, remove if not required -->
* Related Issues: fixes #1320
## Checklist
<!--
Please fill out the ... | diff --git a/tests/script.rs b/tests/script.rs
index 06f2ba2c79..193c8d4f52 100644
--- a/tests/script.rs
+++ b/tests/script.rs
@@ -154,6 +154,7 @@ test_cases!(
// TODO
// const_in_const_lookup,
// INSERT
+ size_functions,
const_expr_path_non_const_segment,
merge_assign_target_state,
exp... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new `kibi`/`mebi` function names, while technically correct, are units people do not use daily and would make things hard for users, so they should be replaced with the familiar abbreviations (settled in the thread as `kiB`/`MiB`).", "category": "design", "verdict": "supported", "priority": ... | null |
tremor-rs__tremor-runtime__1343 | tremor-rs/tremor-runtime | 1,343 | defect | beb7b21e6e36a1579c5b90384da1978a1c00e775 | ebf7406e17fde43a4a94b7b4c790f4174eeb6eba | S3 | # Pull request
## Description
Support for S3 Sink
<!-- please add a description of what the goal of this pull request is -->
## Related
<!-- please include links to related issues are RFCs, remove if not required -->
* Related Issues: fixes #1176
## Checklist
<!--
Please fill out the checklist ... | diff --git a/Cargo.lock b/Cargo.lock
index 624b477089..4a22dd97f6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -618,6 +618,174 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
+[[package]]
+name = "aws-... | 16 | 15 | 7 | [{"id": "G0", "claim": "Use the aws crates from crates.io instead of git dependencies, since they are already at v0.0.26-alpha there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add sensible defaults for aws_access_token and aws_secret_access... | null |
tremor-rs__tremor-runtime__1542 | tremor-rs/tremor-runtime | 1,542 | defect | 01fd4abe61382d3dde0cf26140b9338acc487063 | dd687e1515321e9fc8dce69c0378d3c4689aa690 | Improve merge behaviour | # Pull request
## Description
Ensure that we merge objects in a sensible way and not overwrite the target with a non object.
## Checklist
* [x] The RFC, if required, has been submitted and approved
* [x] Any user-facing impact of the changes is reflected in docs.tremor.rs
* [x] The code is tested
* [x] U... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 411e9f88c4..d216bc16df 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -78,6 +78,7 @@
- Unix offramp: Add the missing StartStream message
- tremor-script: Add more details about Unicode in the documentation of the `string` module
- Fix `hdr` and `dds` aggregation functi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The empty error.txt for tests/script_errors/bad_merge suggests the script may not error as the test expects; the leftover script_errors/bad_merge files should be removed since the case was moved to the runtime-errors check.", "category": "correctness", "verdict": "supported", "priority": "P2", "... | null |
tremor-rs__tremor-runtime__1620 | tremor-rs/tremor-runtime | 1,620 | defect | 3be3f9541f01936768044daaedf201f253615a1e | 464a735a8f88d306ca4b7d02694aa6e48de493e0 | Google PubSub - subscriptions | # Pull request
## Description
<!-- please add a description of what the goal of this pull request is -->
## Related
<!-- please include links to related issues are RFCs, remove if not required -->
* Related [docs PR](https://github.com/tremor-rs/tremor-www/pull/184/files)
## Checklist
<!--
Please... | diff --git a/src/connectors.rs b/src/connectors.rs
index d94e61f3f0..cace628d2b 100644
--- a/src/connectors.rs
+++ b/src/connectors.rs
@@ -25,6 +25,7 @@ pub(crate) mod source;
#[macro_use]
pub(crate) mod utils;
+mod google;
#[cfg(test)]
mod tests;
@@ -1179,6 +1180,7 @@ pub(crate) fn builtin_connector_types() ->... | 11 | 7 | 1 | [{"id": "G0", "claim": "Assuming the interceptor will be shared with other GCP connectors, this auth code should be split out into a util.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The token-error log in the gpubsub connect path says \"Fail... | null |
tremor-rs__tremor-runtime__1718 | tremor-rs/tremor-runtime | 1,718 | defect | ad6659fbf3881dba0fc42372dbaf22d645490d22 | b1d47de9d289c306f5a6f1c03c256afe94c253f4 | Stop integration tests after 5 minutes | Stop integration tests after 5 minutes and print their log files for better debuggability on CI and to avoid infinite runs hogging machines.
## Checklist
<!--
Please fill out the checklist below.
If an RFC is required and not submitted yet the PR will be tagged as RFC required and blocked
until the RFC is su... | diff --git a/tremor-cli/src/test.rs b/tremor-cli/src/test.rs
index 1936a52fd8..fc3f729b23 100644
--- a/tremor-cli/src/test.rs
+++ b/tremor-cli/src/test.rs
@@ -21,11 +21,14 @@ use crate::{
errors::{Error, ErrorKind, Result},
};
use crate::{cli::TestMode, job};
+use async_std::io::WriteExt;
+use async_std::prelude... | 2 | 2 | 1 | [{"id": "G0", "claim": "Make the integration test kill timeout configurable as a command-line argument (e.g. `tremor test --timeout-secs 300`) instead of the hard-coded constant, because a hard-coded kill may bite at some point.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
tremor-rs__tremor-runtime__1719 | tremor-rs/tremor-runtime | 1,719 | defect | 63cd011607b9c225619dd8c955f4bc128bff020d | cf49500c1e00093278abe63df8065accd92e7e0c | Add the Google PubSub Publisher | # Pull request
## Description
<!-- please add a description of what the goal of this pull request is -->
## Related
<!-- please include links to related issues are RFCs, remove if not required -->
* Related [docs PR](https://github.com/tremor-rs/tremor-www/pull/204)
## Checklist
<!--
Please fill ... | diff --git a/src/connectors.rs b/src/connectors.rs
index 16c830e1c1..cd1fc1540d 100644
--- a/src/connectors.rs
+++ b/src/connectors.rs
@@ -1178,6 +1178,7 @@ pub(crate) fn builtin_connector_types() -> Vec<Box<dyn ConnectorBuilder + 'stati
Box::new(impls::otel::server::Builder::default()),
Box::new(impl... | 8 | 8 | 3 | [{"id": "G0", "claim": "The producer and consumer define the same default_connect_timeout/default_request_timeout/default_endpoint functions, so they should be moved one level up into the shared gpubsub module.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
tremor-rs__tremor-runtime__1862 | tremor-rs/tremor-runtime | 1,862 | defect | cc864c9860b18364b03d7fe105f210803267a62b | b591349dcaad62bfbc9323a51725d10de8ed6084 | Error improvements to pipelines | # Pull request
## Description
Added clear messages for errors in pipelines when the input `port` doesn't exist, added `port` to `ConnectInput` and weaved them together with existing code
## Checklist
<!--
Please fill out the checklist below.
If an RFC is required and not submitted yet the PR will be tag... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4e6bcef47f..141beab6a9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,8 @@
- Allow `kafka_consumer` connector to reconnect upon more error conditions and avoid stalls.
- Include flow alias in pipeline and connector aliases reported via metrics events and loggi... | 3 | 3 | 1 | [{"id": "G0", "claim": "A sender should be added to the ConnectInput handling so a failed input connection can error the whole startup instead of only emitting a log message.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changelog entries added for ... | null |
tremor-rs__tremor-runtime__1883 | tremor-rs/tremor-runtime | 1,883 | defect | 94ce3d6173619db4527ba34005ff21b05218737a | f9b2ed2e0687f4ac81e90f4a79565d40a3e091d5 | Issue less coordinator requests to kafka group-coordinator | # Pull request
## Description
Currently for each event we commit the offset directly to the group-coordinator, doing a request to the broker.
During pause/resume we are also doing 1 request for getting the current assignment.
This PR fixes this by caching the current assignment and invalidating it only upon a... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index af283540da..de8410cb3e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
### Breaking Changes
+- Introduce breaking change in `kafka_consumer` configuration, by adding `mode`.
- Update grok to 0.2, optional patterns are now omitted no longer ""
- Unify to... | 2 | 1 | 1 | [{"id": "G0", "claim": "The `custom` mode doc example should show the rdkafka option value as a string (`\"enable.auto.commit\": \"false\"`) since `rdkafka_options` is a map of strings.", "category": "documentation", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `Custom` m... | null |
tremor-rs__tremor-runtime__1894 | tremor-rs/tremor-runtime | 1,894 | defect | 86ea4837c8841f329061856ef07b1f18d69e6ed6 | e7cff357b41bbe463baf794658ed69a1b02de945 | Short circuit boolean expressions | Signed-off-by: Ramona Łuczkiewicz <rluczkiewicz@wayfair.com>
# Pull request
## Description
<!-- please add a description of what the goal of this pull request is -->
## Related
* Related Issues: fixes #1794
* Related [docs PR](https://github.com/tremor-rs/tremor-www-docs/pull/000)
## Checklist
<!-... | diff --git a/tests/queries/binary_op_short_circuit/in b/tests/queries/binary_op_short_circuit/in
new file mode 100644
index 0000000000..249da15ccb
--- /dev/null
+++ b/tests/queries/binary_op_short_circuit/in
@@ -0,0 +1 @@
+{"field_true": true, "field_false": false}
diff --git a/tests/queries/binary_op_short_circuit/out... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use `as_bool`/`try_as_bool` instead of matching against `Value::Static(StaticNode::Bool(lval))`, whose enum variants are not a stable part of the API, and rewrite the function to pull `try_as_bool` out early and error, so the match is only on `expr.kind`.", "category": "design", "verdict": "supp... | null |
tremor-rs__tremor-runtime__2077 | tremor-rs/tremor-runtime | 2,077 | defect | b836d2f8b094753e375fb898f4415ba387e71af7 | 4fc9a12b6625939139acde4c1e58b43c837aa659 | Errors on overflows | # Pull request
## Description
Add checks for overflows in arithmetic and error accordingly instead of silently rolling over
## Checklist
* [x] The RFC, if required, has been submitted and approved
* [x] Any user-facing impact of the changes is reflected in docs.tremor.rs
* [x] The code is tested
* [x] Us... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 391649db27..bf2b2ae333 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
### New Features
* Added the `chunk` postprocessor for creating payloads as close to a configurable `max_bytes` as possible
+* Arithmetic expressions now error on overflows
## [0.13.... | 4 | 1 | 0 | [{"id": "G0", "claim": "Add an `#[inline]` attribute to the `try_math` helper, if it works given the generics.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Files added by this pull request are missing a newline at the end of the file, which makes th... | null |
tremor-rs__tremor-runtime__2088 | tremor-rs/tremor-runtime | 2,088 | defect | 64985cc020e7629aa05c9e0d296d831d8bf4eba7 | 597a3bdae9961c5cc189b9b5c0d11278dc704b32 | Revamp hanlding of http client | # Pull request
## Description
Update the HTTP connectir based on feedback in #2083 and the following discussion.
the HTTP connector no longer takes a codec. Instead, it is driven entirely by the content type and the `mime_mapping` config option. It introduces `*/*` as a mime mapping that acts as "default" and ... | diff --git a/src/connectors/impls/http/client.rs b/src/connectors/impls/http/client.rs
index f8582814af..efca7b7b9f 100644
--- a/src/connectors/impls/http/client.rs
+++ b/src/connectors/impls/http/client.rs
@@ -33,8 +33,6 @@ use crate::connectors::utils::tls::{tls_client_config, TLSClientConfig};
use crate::{connector... | 3 | 3 | 1 | [{"id": "G0", "claim": "Rename the HTTP server connector's `custom_codecs` config field to `mime_mapping` (keeping `#[serde(default)]` per the suggestion) to keep it consistent with the client connector.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
tremor-rs__tremor-runtime__2324 | tremor-rs/tremor-runtime | 2,324 | defect | 4519572ce6ae63c964e9908a35e6cee6a34e6065 | 5829e0df07812d6d888de35c4f5157f1c08af491 | Move google connectors to use instead of env var | # Pull request
## Description
The old code did only work with a single environment variable this makes it impossible to use tremor with more then a single service account. This change instead allows specifying either the file to read from (equivalent from the env variable) or as a embedded json.
## Related
... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 94348a74ab..bc93a695cc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog
+## [Unreleased]
+
+## Breaking Changes
+
+* All google connectors now require `token` to be either set to `{"file": "<path to json>"}` or `{"json": {...}}`
## [0.13.0-rc.1... | 1 | 1 | 0 | [{"id": "G0", "claim": "The '// test requerst a result' comment on DefaultClient::new's #[allow] attribute misspells 'requires' as 'requerst' and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tremor-rs__tremor-runtime__2599 | tremor-rs/tremor-runtime | 2,599 | defect | e38ae3e5b7bc267192ff7788b8ad86b40a1615ec | 17e73a966939149e36293aeed2fb6814f9da73cb | Fix-archive-with | Signed-off-by: Heinz N. Gies <heinz@licenser.net>
# Pull request
## Description
Fix arg passing in archive start
## Related
## Checklist
* [x] The RFC, if required, has been submitted and approved
* [x] Any user-facing impact of the changes is reflected in docs.tremor.rs
* [x] The code is tested
* [x] Use of uns... | diff --git a/src/lib.rs b/src/lib.rs
index a54c10f53c..e870c53adc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -43,22 +43,8 @@ pub mod system;
/// Tremor runtime version tools
pub mod version;
-use crate::errors::{Error, Result};
-
-use log::{error, info};
-use std::io::Read;
use system::Runtime;
-use tokio::io::As... | 3 | 3 | 0 | [{"id": "G0", "claim": "The comment should read \"deploy statement\" instead of the typo \"deoploy statement\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment should read \"apply the configuration\" instead of the typo \"applu the conf... | null |
tremor-rs__tremor-runtime__648 | tremor-rs/tremor-runtime | 648 | defect | 878eac36bdfd4cd55d6b0d63cf8eb1aa99bc6e45 | ce6f2f07d8667ce603e4044ec01c091d1455e61d | Fix visibility of pipeline metrics along with reserved/duplicate node name detection | # Pull request
Fix generation of pipeline metrics (as reported in https://github.com/tremor-rs/tremor-runtime/issues/647) and improve handing of cases when a pipeline node is created with the same name as an existing one.
## Description
Ensured consistent id for metrics node when it's added to the pipeline gra... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 135c75c8a2..1e5a4ef4a0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+* Terminate pipeline creation when a node already exists with the given name [#650](https://github.com/tremor-rs/tremor-runtime/issues/650)
+* Fix visibility of pipeline... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request should throw an error when a user names a node `in`, `out`, `err` or `metrics`, since those names are reserved for built-in ports and thus pipeline operator names.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
tremor-rs__tremor-runtime__676 | tremor-rs/tremor-runtime | 676 | defect | 912d62351d1ed06f84841b4405c8a9680d561f7d | 687a32ba02112e312c3cb5ea30c0d370270e3803 | Fix missing newline in error messages for some sources. | # Pull request
## Description
If the source line with the error didnt end with a newline (e.g. last line), we missed to add one, so the callout starts on its own line. This is fixed here (with some horrible workaround for term highlighting).
## Related
## Checklist
<!--
Please fill out the checklist b... | diff --git a/.vscode/launch.json b/.vscode/launch.json
index 4a37d9fce9..e58f918fae 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -31,7 +31,7 @@
//"tremor-cli/tests/cli/data/script_with_error.tremor",
//"-i",
//"tremor-cli/tests/cli/data/input.json",
- "temp/end.tremor"... | 2 | 2 | 1 | [{"id": "G0", "claim": "The PR's changed error-message behaviour should have tests added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A CHANGELOG entry should be added for the fix.", "category": "documentation", "verdict": "supported", "priority": "P... | null |
tremor-rs__tremor-runtime__816 | tremor-rs/tremor-runtime | 816 | defect | 3412a18ba1ff4b083e1b5e4abc0542ebc99b5519 | e3048d5fe3f00c5938a84db181d228ca40708c75 | fix(cli): mark the benchmarks as failing when they fail | Signed-off-by: Akshat Agarwal <humancalico@disroot.org>
# Pull request
## Description
Fix a bug in the `test bench` command that was giving false positives when the benchmarks were failing.
This still doesn't give the proper error trace when a benchmark run fails
<!-- please add a description of what the goa... | diff --git a/tremor-cli/src/report.rs b/tremor-cli/src/report.rs
index 3b11094095..214b8cefe9 100644
--- a/tremor-cli/src/report.rs
+++ b/tremor-cli/src/report.rs
@@ -16,7 +16,7 @@ use crate::test::stats;
use std::collections::HashMap;
/// A test run is a collection of test reports that
-/// have executed int he co... | 3 | 3 | 0 | [{"id": "G0", "claim": "Add a line to the changelog for this fix, after which the pull request can be merged.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The report.insert(...) block is identical in the if and else branches of run_process, so i... | null |
tremor-rs__tremor-runtime__878 | tremor-rs/tremor-runtime | 878 | defect | 1e46fb45596138e5badc4166b5381fe274ae9ed6 | 40effcde7f5835d797beedafc96ed984bb4f0aa0 | refactor: improved file path handling | # Pull request
## Description
<!-- please add a description of what the goal of this pull request is -->
## Related
<!-- please include links to related issues are RFCs, remove if not required -->
* [RFC](https://rfcs.tremor.rs/0000-.../)
* Related Issues: fixes #000, closed #000
* Related [docs PR](h... | diff --git a/tremor-cli/src/job.rs b/tremor-cli/src/job.rs
index f09bfb984f..6b774dc602 100644
--- a/tremor-cli/src/job.rs
+++ b/tremor-cli/src/job.rs
@@ -19,7 +19,7 @@ use tremor_common::file;
use std::collections::HashMap;
use std::path::Path;
-use std::process::{Command, Stdio};
+use std::process::{Command, Exit... | 3 | 2 | 0 | [{"id": "G0", "claim": "Keep slurp_string (or add a tremor-common-style variant of read_to_string) for reading source files instead of fs::read_to_string, because fs::read_to_string gives worse errors — it does not tell the user which file could not be opened.", "category": "maintainability", "verdict": "supported", "p... | null |
trezor__blockbook__1198 | trezor/blockbook | 1,198 | defect | 4a7fdb509569a31ada721801d1ff57ad88afa553 | fe7b7fa5bf741791411191d4b231decb47834363 | Publish confirmed transactions by address | Currently in order to push confirmed transaction notifications to a client, you have to:
- Subscribe to new blocks
- Fetch block from blockbook on new block
- Check if any subsccribed addresses are associated with any transactions in the block
Historically this has worked without any noticeable issue, however in ... | diff --git a/api/worker.go b/api/worker.go
index d478f85c236..09eb38f138f 100644
--- a/api/worker.go
+++ b/api/worker.go
@@ -221,7 +221,7 @@ func (w *Worker) getTransaction(txid string, spendingTxs bool, specificJSON bool
}
return nil, NewAPIError(fmt.Sprintf("Transaction '%v' not found (%v)", txid, err), true)
... | 6 | 6 | 5 | [{"id": "G0", "claim": "publishNewBlockTxsByAddr iterates every address subscription on every new block and could be fairly slow with many channels and few newBlockTxs subscribers; use a counter of publishNewBlockTxs subscriptions (incremented on subscribe, decremented on unsubscribe or channel close) so the per-block ... | null |
trezor__blockbook__1289 | trezor/blockbook | 1,289 | defect | 17fa06fed98b532fa7905e71d4f5e60ce13a7fe5 | 077e5cca48cef4ca1d05378ebcf9c573386bbdb7 | feature: ens resolver | resolves #1108 and #1109 issues
accepts all eth chains now, will test it on other than sepolia networks
workflow:
types.go → ethrpc.go → worker.go
> $ curl "api/v2/address/nick.eth"
{"page":... | diff --git a/api/worker.go b/api/worker.go
index d261590e53..0cdaa19fa4 100644
--- a/api/worker.go
+++ b/api/worker.go
@@ -1319,6 +1319,27 @@ func setIsOwnAddress(tx *Tx, address string) {
// GetAddress computes address value and gets transactions for given address
func (w *Worker) GetAddress(address string, page i... | 5 | 5 | 1 | [{"id": "G0", "claim": "GetAddress logs the resolved address (address was already overwritten and lowercased) where the original ENS name should be logged, so the success log should use the original name captured before it is overwritten.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "... | null |
trezor__blockbook__1363 | trezor/blockbook | 1,363 | defect | 674271fec772a6ccd24b835032e40523e3085b36 | 3e3c129449553d86a0a76a0bbd5c24769f1e1c65 | Security fix for potential DoS issue | Tested with avalanche archive coin.
Testing curls:
```
curl -vk "https://localhost:9199/api/address/0x779A2e26d925b64C04B50A9c40a334Cc4b218835?details=txs&page=9223372036854775807&pageSize=1000"
curl -vk "https://localhost:9199/api/address/0x779A2e26d925b64C04B50A9c40a334Cc4b218835?details=txs&page=-100&pageSiz... | diff --git a/api/worker.go b/api/worker.go
index 135417a609..ae5015c7d0 100644
--- a/api/worker.go
+++ b/api/worker.go
@@ -945,19 +945,45 @@ func (w *Worker) txFromTxAddress(txid string, ta *db.TxAddresses, bi *db.BlockIn
}
func computePaging(count, page, itemsOnPage int) (Paging, int, int, int) {
- from := page * ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The maximum page number of 1,000,000 imposed by validateIntParam is too restrictive and could limit the explorer, since e.g. arb1.trezor.io/blocks currently has over 8,000,000 pages.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
trezor__blockbook__1397 | trezor/blockbook | 1,397 | defect | d76f7c5137ddde8e5934b75b92082e213187907d | ef644d584536bb2246335c1b255514f99d2d9189 | feat: add CSP headers and fix XSS vulnerabilities in templates | Adds Content Security Policy (CSP) headers and fixes XSS vulnerabilities in template rendering.
### Changes
**XSS Fixes:**
- Escape `alias.Type` in `addressAliasSpan` to prevent attribute injection
- Fix JavaScript context escaping in QRCode initialization using `jsStr` helper
- Add XSS tests for `addressAlias... | diff --git a/server/html_templates.go b/server/html_templates.go
index b9c9d62e3e9..d73524313c0 100644
--- a/server/html_templates.go
+++ b/server/html_templates.go
@@ -17,6 +17,25 @@ import (
"github.com/trezor/blockbook/common"
)
+// getContentSecurityPolicy returns a Content Security Policy header value
+// to ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `upgrade-insecure-requests` directive in the newly added Content-Security-Policy will upgrade all resource URLs to HTTPS, which can break HTTP-only deployments if TLS is not configured.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
trezor__blockbook__22 | trezor/blockbook | 22 | defect | df8342dc8d5e026c0d10b729bf1e846c5bca82f0 | 29369573a9e2d7474399d8142ed064f32723a1cd | add monacoin | I added a description for monacoin.
If you need to change the port, I will rewrite it immediately.
I have a question.
Should I write "satoshilabs"?
Please let me know if it needs to be rewritten.
https://github.com/trezor/blockbook/compare/master...wakiyamap:master#diff-b18adf308f4776cacd512b2e1bb47929R2 | diff --git a/Gopkg.lock b/Gopkg.lock
index a4242fc2bf7..2b2b61be91f 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -1,12 +1,24 @@
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
+[[projects]]
+ branch = "master"
+ name = "github.com/aead/skein"
+ packages = [".","threefis... | 8 | 6 | 4 | [{"id": "G0", "claim": "The explorer links specified in the pull request (https://insight.electrum-mona.org/ and https://testnet-mona.insight.monaco-ex.org/) do not work; please specify the links including the /insight path in the service file.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
trezor__blockbook__250 | trezor/blockbook | 250 | defect | be393c6d5d5c6aac96b75576ff3e2ff594e0898f | 8866a6cb92276c03b4d8231459898c5a11dbb466 | Implement the "feestats" endpoint | * Add a FeeStats struct (TxCount, AverageFeePerKb, TotalFeesSat, Deciles).
* Add a TxSpecific struct with additional Vsize and Size fields.
* Refactor GetBlockInfoFromBlockID into a function.
* Add a test case for "feestats". | diff --git a/api/types.go b/api/types.go
index 279c073cec..d8df8d158c 100644
--- a/api/types.go
+++ b/api/types.go
@@ -198,6 +198,13 @@ type Tx struct {
EthereumSpecific *EthereumSpecific `json:"ethereumSpecific,omitempty"`
}
+type FeeStats struct {
+ TxCount int `json:"txCount"`
+ TotalFeesSat *A... | 4 | 4 | 0 | [{"id": "G0", "claim": "Make the TxSpecific type local to the GetFeeStats function instead of exporting it in bchain/types.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Log how long it took to process the block in GetFeeStats, ideally with ... | null |
trezor__blockbook__910 | trezor/blockbook | 910 | defect | c836bdff1f1c111b8ba90734f2a21499bdc33923 | c4e33e1cf6049ade6a0254a80bcf0bd5ad972971 | perf: leverage binary search for managing for Ids and MultiTokenValues | Closing: https://github.com/trezor/blockbook/pull/905 in favor of this to reduce overhead and unsorted nature of `sync.Map`
| diff --git a/blockbook.go b/blockbook.go
index eae21db3476..288adbfab8e 100644
--- a/blockbook.go
+++ b/blockbook.go
@@ -196,6 +196,17 @@ func mainWithExitCode() int {
}
internalState.UtxoChecked = true
}
+
+ // sort addressContracts if necessary
+ if !internalState.SortedAddressContracts {
+ err = index.SortA... | 5 | 5 | 2 | [{"id": "G0", "claim": "SortAddressContracts accumulates a write for every scanned row into one huge write batch (~280M rows on ETH mainnet), which risks excessive resource consumption; it should write per row / per AddrContracts instead of in one huge batch.", "category": "performance", "verdict": "supported", "priori... | null |
trezor__python-mnemonic__73 | trezor/python-mnemonic | 73 | defect | 913977c5525e32ca85a3fd73c8f760d41116fb28 | 293cadc35e358ec46fb70f2acef42b3a159d0ce7 | Add type annotations and distribute them (PEP561) | Closes https://github.com/trezor/python-mnemonic/issues/72
- Add type annotations
- Distribute type data
- Check types using mypy
| diff --git a/.mypy.ini b/.mypy.ini
new file mode 100644
index 0000000..6407fcf
--- /dev/null
+++ b/.mypy.ini
@@ -0,0 +1,20 @@
+[mypy]
+warn_unreachable = True
+warn_unused_ignores = True
+warn_redundant_casts = True
+warn_unused_configs = True
+; Disabling incremental mode is required for `warn_unused_configs = True` t... | 4 | 4 | 0 | [{"id": "G0", "claim": "Please keep the pip install of black (and mypy) in the `install` section of .travis.yml instead of the `script` section.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `AnyStr` instead of `Union[bytes, str]` for norma... | null |
trezor__python-mnemonic__99 | trezor/python-mnemonic | 99 | defect | 6b7ebdb3624bbcae1a7b3c5485427a5587795120 | 9a50be703006ae40a6e045b9b7720b3c913e2b1c | Detect language unambiguously, or raise explanatory exception | Correctly and unambiguously determine Mnemonic language.
@prusnak, perhaps this is sufficiently clear that it doesn't make the reference implementation less tidy? | diff --git a/src/mnemonic/mnemonic.py b/src/mnemonic/mnemonic.py
index 74a8787..8480588 100644
--- a/src/mnemonic/mnemonic.py
+++ b/src/mnemonic/mnemonic.py
@@ -101,16 +101,16 @@ def normalize_string(txt: AnyStr) -> str:
@classmethod
def detect_language(cls, code: str) -> str:
+ """Scan the Mnemonic ... | 3 | 1 | 0 | [{"id": "G0", "claim": "Please fix the style-check failures the pull request's code introduces.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The {word!r} in the new error message looks like a typo.", "category": "correctness", "verdict": "oppo... | null |
trezor__python-shamir-mnemonic__35 | trezor/python-shamir-mnemonic | 35 | defect | cb7f65a38493233e4b3141bc19398ce5c8699447 | 2be2c514fd6cc46b8c03111583c58d5292c56336 | Interface improvements | Resolves https://github.com/trezor/python-shamir-mnemonic/issues/33, namely points 5, 6 and 8:
> 5. Introduced an `EncryptedSeed` class and moved the `decrypt` function there. The `recover_ems()` function returns `EncryptedSeed`, which also carries information about the identifier and interation exponent. This is ea... | diff --git a/README.rst b/README.rst
index b8e4603..90720be 100644
--- a/README.rst
+++ b/README.rst
@@ -75,7 +75,7 @@ You can specify a custom scheme. For example, to create three groups, with 2-of-
.. code-block:: console
- $ shamir create custom --threshold 3 --group 2 3 --group 2 5 --group 4 5
+ $ shamir... | 3 | 3 | 1 | [{"id": "G0", "claim": "In RecoveryState.recover() the two ifs in the group-selection loop should be switched: check group.is_complete() and add the minimal group before breaking once the group threshold is reached.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id"... | null |
trezor__trezor-firmware__4107 | trezor/trezor-firmware | 4,107 | defect | 4397978563b3a73d68a361e116fc3e6a5761e581 | fc11dfa02ac533f985f340a8791633fd0841ceb8 | Memory optimization | Solves https://github.com/trezor/trezor-firmware/issues/4079.
In this pull request, I optimized the implementations of blak256, blake2s, blake2b, groestl and AES in terms of flash size.
| Name | Size before | Size after | Throughput before | Throughput after | Usage ... | diff --git a/core/SConscript.firmware b/core/SConscript.firmware
index 9cd97ee350f..f0c1fac5e81 100644
--- a/core/SConscript.firmware
+++ b/core/SConscript.firmware
@@ -89,6 +89,7 @@ CPPPATH_MOD += [
'vendor/trezor-crypto',
]
CPPDEFINES_MOD += [
+ 'OPTIMIZE_SIZE',
'AES_128',
'AES_192',
('USE_BI... | 4 | 4 | 0 | [{"id": "G0", "claim": "Change `#if 1` to `#if 0` above the ENC_UNROLL definition instead of swapping the definition lines, to keep the diff with upstream smaller.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "Keep the `#ifdef` for blake2s as w... | null |
trezor__trezor-firmware__4140 | trezor/trezor-firmware | 4,140 | defect | 9e18e72a2c7896cbcce1df4c2d908eab0f01564f | b7c5094e0d61c14e31f803b808e73e07a9c01ff9 | fix T3B1 bootloader UI - unsafe screen, boot image | Minor adjustments to T3B1 bootloader UI:
- fixes showing icon on "unsafe, do not use" screen
- removes the empty lock
<!--
If you are a core dev:
Don't forget to set up the fields:
- assign yourself
- set priority to same as original issue
- add PR to sprint
- if Draft -> "in progress"
- if final PR -... | diff --git a/core/SConscript.bootloader b/core/SConscript.bootloader
index 8eb4913013d..45edde382a1 100644
--- a/core/SConscript.bootloader
+++ b/core/SConscript.bootloader
@@ -261,6 +261,10 @@ def cargo_build():
features = ["model_mercury"]
else:
features = ["model_tt"]
+
+ if TREZOR_MODEL in... | 3 | 3 | 1 | [{"id": "G0", "claim": "In bootloader_mod, the empty_lock value should be obtained with cfg!(ui_empty_lock) instead of the two cfg-attributed lets.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In both SConscript.bootloader and SConscript.bootloader_emu... | null |
trezor__trezor-firmware__4157 | trezor/trezor-firmware | 4,157 | defect | 777ad11becfa9d2c2bebb21b1aa1f0c6125cd766 | 95a2b060d3548e570cf17bfd96c741b108114246 | fix bootloader unlocking issues | This PR fixes several unreleased bootloader issues, recently introduced:
- reporting bootloader unlock state via features
- firmware downgrade protection was using incorrect version in one place
- unlocking bootloader on U5 was granting HDP access to firmware, which is unwanted as it contains other stuff than optiga... | diff --git a/core/embed/bootloader/main.c b/core/embed/bootloader/main.c
index d93ec0cf4a5..136bd28c717 100644
--- a/core/embed/bootloader/main.c
+++ b/core/embed/bootloader/main.c
@@ -289,9 +289,9 @@ void real_jump_to_firmware(void) {
ensure(check_image_header_sig(hdr, vhdr.vsig_m, vhdr.vsig_n, vhdr.vpub),
... | 4 | 3 | 1 | [{"id": "G0", "claim": "The local variables `offset`, `len` and the pointer `secret` in secret_optiga_writable() can be declared const (`secret` as `const uint8_t *`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Prodtest can re-lock the bootl... | null |
trezor__trezor-firmware__4172 | trezor/trezor-firmware | 4,172 | defect | 52437b1fc838f7d1aed2a5ad40cd0954f07bbd6b | 1d41779e4012d1faf33eeb167de0617af0f64130 | Introduce TROPIC01 from Tropic Square | * This PR adds [libtropic](https://github.com/tropicsquare/libtropic/) as a dependency to the build and exposes its functionality to Micropython
* On `unix` (Trezor emulator), `libtropic` requires the [Tropic model](https://github.com/tropicsquare/ts-tvl/) to be running and accepting connections over TCP, while the ac... | diff --git a/.gitmodules b/.gitmodules
index 3412a6b589e..ce8a1a98efc 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -27,7 +27,9 @@
[submodule "vendor/cmsis_5"]
path = vendor/cmsis_5
url = https://github.com/ARM-software/CMSIS_5.git
-
[submodule "vendor/stm32u5xx_hal_driver"]
path = vendor/stm32u5xx_hal_driver
... | 11 | 5 | 3 | [{"id": "G0", "claim": "The libtropic unix port path in the T3T1 emulator build has a doubled slash (\"hal//port\") that should read \"hal/port\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The USE_TREZOR_CRYPTO define passed when building libtr... | null |
trezor__trezor-firmware__4274 | trezor/trezor-firmware | 4,274 | defect | a1ab50017d55c9986fc4a11ddcaff86158804604 | 11c84ac3d78ee503a2ed940215d7c3d503cd9a75 | add TOUCH_POWER command to prodtest | Fixes #4252 .
This PR adds TOUCH_POWER command to prodtest, that forces the power supply to turn on for specified time, so that its output can be measured without the need to have touch panel connected.
<!--
If you are a core dev:
Don't forget to set up the fields:
- assign yourself
- set priority to same... | diff --git a/core/embed/prodtest/.changelog.d/4252.added b/core/embed/prodtest/.changelog.d/4252.added
new file mode 100644
index 00000000000..2311fe4cd17
--- /dev/null
+++ b/core/embed/prodtest/.changelog.d/4252.added
@@ -0,0 +1 @@
+Added TOUCH_POWER command to allow testing touch power supply without connected touch ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Replace the hand-rolled busy-wait polling loop with the existing systick_delay() helper to wait out the TOUCH_POWER timeout.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit touch_deinit() call after touch_power_set(fal... | null |
trezor__trezor-firmware__4300 | trezor/trezor-firmware | 4,300 | defect | d38c2e179013e8b908d7fb32e87f77aacf2793c4 | 8c7a3ab0e6d93b6c5865fd6e4914f216f568ef40 | Introduce new global header files | This large PR focuses on cleaning up code structure and organization.
It introduces well-defined global headers that simplify includes, make the code tidier, and establish a system to prevent unnecessary dependencies in API headers.
- **`trezor_types.h`**: Defines commonly used types like `uint8_t`, `uint32_t`, `... | diff --git a/core/SConscript.bootloader_emu b/core/SConscript.bootloader_emu
index f651eefdba7..06822faa68f 100644
--- a/core/SConscript.bootloader_emu
+++ b/core/SConscript.bootloader_emu
@@ -269,7 +269,7 @@ rust = env.Command(
env.Append(LINKFLAGS=f'-L{RUST_LIBDIR}')
env.Append(LINKFLAGS=f'-l{RUST_LIB}')
env.Appen... | 8 | 8 | 0 | [{"id": "G0", "claim": "The comment added to core/embed/models/trezor_bsp.h contains a typo: \"This file should by only included\" should read \"should be only included\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The <trezor_bsp.h> include a... | null |
trezor__trezor-firmware__4325 | trezor/trezor-firmware | 4,325 | defect | 69e683789da3a9699e9bdcc5bc789ae31e927d92 | 36fb71fc62e44c5119d25f53a8e25dd155e95815 | Button driver refactoring | This PR improves button driver:
- Converted into the new driver style (e.g., `g_button_driver`, ...)
- Initialization was added (i.e., `button_init()` to initialize the power button, interrupts, etc.).
- `button_read()` was renamed to button_get_event() to align with the touch API.
- Similar adjustments were made... | diff --git a/core/embed/bootloader/bootui.c b/core/embed/bootloader/bootui.c
index 9980272d6ca..6b173e892ac 100644
--- a/core/embed/bootloader/bootui.c
+++ b/core/embed/bootloader/bootui.c
@@ -168,14 +168,14 @@ void ui_click(void) {
void ui_click(void) {
for (;;) {
- button_read();
- if (button_state(BTN_LE... | 4 | 4 | 0 | [{"id": "G0", "claim": "The g_button_driver driver instances in the stm32f4 and unix button drivers can be declared static.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The button_is_down doc comment is obsolete — it mentions 'left' although the functi... | null |
trezor__trezor-firmware__4629 | trezor/trezor-firmware | 4,629 | defect | e47b604c4886338b185c76763a39dc679d4fe628 | 51265b6841fb1fa7fb3b6e62d20527efce5dcccd | feat(core): introduce hibernate mode | This PR introduces the so-called hibernation mode for T3W1.
Hibernation mode utilizes PMIC ship mode, switching off CPU power while keeping only the VBAT domain powered.
- Added the `powerctl_hibernate()` function, including a syscall, to be available in coreapp.
- Added a new syscall for `powerctl_get_status()`... | diff --git a/core/embed/projects/prodtest/cmd/prodtest_powerctl.c b/core/embed/projects/prodtest/cmd/prodtest_powerctl.c
index 03a6bc66ee3..a91ac199f99 100644
--- a/core/embed/projects/prodtest/cmd/prodtest_powerctl.c
+++ b/core/embed/projects/prodtest/cmd/prodtest_powerctl.c
@@ -43,6 +43,23 @@ static void prodtest_pow... | 2 | 1 | 0 | [{"id": "G0", "claim": "When powerctl_hibernate returns after waiting for the device to power off, it should return false rather than true, since reaching that return likely means hibernation failed.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Ad... | null |
trezor__trezor-firmware__4645 | trezor/trezor-firmware | 4,645 | defect | 45adcd963a4f992b6545f6d52ad4a9412674db57 | 1c24d3cb658865e1ccee24ad6280ffc0c5ab2ba7 | add BLE&NRF tests to prodtest | This PR adds basic BLE & NRF tests to prodtest.
Added tests allow starting and stopping advertising, erasing bonds and reading MAC. You can also pair a device, which is autoconfirmend on prodtest side, but no communication is supported now.
For testing purposes, static MAC address is used when advertising from pr... | diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest
index 4290787b9fa..5028292601a 100644
--- a/core/SConscript.prodtest
+++ b/core/SConscript.prodtest
@@ -9,7 +9,7 @@ PRODUCTION = ARGUMENTS.get('PRODUCTION', '0') == '1'
BOOTLOADER_DEVEL = ARGUMENTS.get('BOOTLOADER_DEVEL', '0') == '1'
HW_REVISION = ARGUM... | 12 | 11 | 6 | [{"id": "G0", "claim": "In the UART receive path the new overflow check resets rx_idx to 0 before the buffer write still runs, so drv->rx_buffer.data[drv->rx_idx - UART_HEADER_SIZE] becomes an invalid (underflowed) index.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i... | null |
trezor__trezor-firmware__4656 | trezor/trezor-firmware | 4,656 | defect | 9f03e0c37b9d581020c2d0de40146f812256f894 | 74a4f5a2ebcf34eb45694d6697ad117cf415374d | Unit test extension for prodtest CLI | This PR introduce an extension to prodtest CLI which allows to register unit tests.
Idea is, that every driver or firmware component may have a several low level unit tests exercising fundamental features, This should be giving user (or maybe in future to automated tester) the quick overview of the FW and HW integr... | diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest
index 4290787b9fa..b3bc387d207 100644
--- a/core/SConscript.prodtest
+++ b/core/SConscript.prodtest
@@ -117,6 +117,7 @@ SOURCE_PRODTEST = [
'embed/projects/prodtest/cmd/prodtest_sdcard.c',
'embed/projects/prodtest/cmd/prodtest_sbu.c',
'embe... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new unit-test command handlers should reject unexpected arguments with an `if (cli_arg_count(cli) > 0) { cli_error_arg_count(cli); return; }` check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be better to mov... | null |
trezor__trezor-firmware__4683 | trezor/trezor-firmware | 4,683 | defect | 323107e6a83d1299147e6a63f0a457122af8f44e | 1622b816ee207846e1a9e4638b026a89836631b0 | DMA2D syscalls | This PR moves DMA2D operations entirely into the kernel. Applications must now use new syscalls instead of directly accessing the DMA2D peripheral. This change enhances security at the cost of some extra CPU cycles due to syscall overhead (approximately 3 microseconds per syscall).
Additionally, the new DMA2D syscal... | diff --git a/core/embed/gfx/bitblt/gfx_bitblt.c b/core/embed/gfx/bitblt/gfx_bitblt.c
index 00f7eb83b99..85ae1820191 100644
--- a/core/embed/gfx/bitblt/gfx_bitblt.c
+++ b/core/embed/gfx/bitblt/gfx_bitblt.c
@@ -17,7 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "dma2d... | 9 | 8 | 2 | [{"id": "G0", "claim": "mpu_inside_active_fb should check that addr+size cannot overflow, because it is a standalone interface that callers will assume is functional on its own.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out g_gfx_cyc... | null |
trezor__trezor-firmware__4698 | trezor/trezor-firmware | 4,698 | defect | 169d25bd9efb3e15d5622bc28c456e9b0661dc15 | 30058054571f912fa7a5473399bcf8bf75b4d2ff | T3W1 tamper-protection testing | <!--
For core developers:
- Assign yourself to the PR.
- Set the priority to match the original issue.
- Add the PR to the current sprint.
- If it's a draft PR, mark it as "In Progress."
- If it's a final PR, mark it as "Needs Review."
For external contributors:
- Please open an issue before submitting a PR s... | diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest
index a01ec73ba05..da2bcaebb7b 100644
--- a/core/SConscript.prodtest
+++ b/core/SConscript.prodtest
@@ -120,6 +120,7 @@ SOURCE_PRODTEST = [
'embed/projects/prodtest/cmd/prodtest_reboot.c',
'embed/projects/prodtest/cmd/prodtest_rgbled.c',
'e... | 8 | 6 | 3 | [{"id": "G0", "claim": "clk_init() may fail, so tamper_init() should check its result and return a boolean so that callers such as prodtest_tamper.c can determine whether tamper initialization succeeded.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
trezor__trezor-firmware__4788 | trezor/trezor-firmware | 4,788 | defect | 0fb1693ea8cb413cf43177d1bcbb033bb7685990 | 3835c20f9864ce4588db4eec268c41479636bef0 | enable tropic in firmware/kernel on hw | This PR unifies the way how tropic initialization is done in unix and on hw.
Syscalls are added to enable interaction with firmware. Libtropic is no longer exposed directly to FW.
Currently the tropic secrets are not fully supported on HW, that is left for next PR.
| diff --git a/core/SConscript.firmware b/core/SConscript.firmware
index 583143cae7f..fdfc72bd8b4 100644
--- a/core/SConscript.firmware
+++ b/core/SConscript.firmware
@@ -45,7 +45,7 @@ FEATURE_FLAGS = {
"AES_GCM": BENCHMARK or THP,
}
-FEATURES_WANTED = ["input", "sd_card", "rgb_led", "dma2d", "consumption_mask", ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The same tropic.c source addition applied to trezor_t3w1_revB.py also needs to be applied to t3w1_revC.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
trezor__trezor-firmware__4789 | trezor/trezor-firmware | 4,789 | defect | 5fd168c363db860b61a251c045d6cc487f5e5545 | 65c57d949e2e29813b761fd6c5c69fda6cd35116 | refactor button events | Changes the structure of button events - uses struct to simplify usage and reduce repetition when packing/unpacking events.
| diff --git a/core/embed/io/button/inc/io/button.h b/core/embed/io/button/inc/io/button.h
index 14a2259b119..7db72ff656d 100644
--- a/core/embed/io/button/inc/io/button.h
+++ b/core/embed/io/button/inc/io/button.h
@@ -17,8 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef... | 2 | 2 | 1 | [{"id": "G0", "claim": "In test_single_button the conditions should use direct inequality (`x != y`) instead of the negated equality (`!(x == y)`) form.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the button_get_event syscall stub the argu... | null |
trezor__trezor-firmware__4857 | trezor/trezor-firmware | 4,857 | defect | 7248bf2a484de1611b906fb7aa915f5d6394d510 | f541ab4763dba834662fda26e029513b20cf0173 | JPEG Overlay | This PR introduces a new shape for our drawing library - `JpegOverlay` - which allows drawing grayscale JPEGs as transparent images.
`JpegOverlay` enables fast rendering of complex backgrounds (like non-linear gradients) and can also be used for content masking. It's available only on T3W1, as it utilizes the hardwa... | diff --git a/core/SConscript.bootloader_emu b/core/SConscript.bootloader_emu
index b65cdbac23d..4cbf99c19c9 100644
--- a/core/SConscript.bootloader_emu
+++ b/core/SConscript.bootloader_emu
@@ -226,6 +226,11 @@ env.Replace(
] + CPPDEFINES_MOD + CPPDEFINES_HAL,
ASPPFLAGS='$CFLAGS $CCFLAGS', )
+try:
+ env.P... | 7 | 5 | 2 | [{"id": "G0", "claim": "The decode_mono8 documentation says the function requires a temporary buffer of size RGBA8888_BUFFER_SIZE, and the reviewer asks whether RGBA8888_BUFFER_SIZE / 4 would be enough instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
trezor__trezor-firmware__4925 | trezor/trezor-firmware | 4,925 | defect | 07ad01220c491d42fa494ad148adb67ce69eed41 | 55a14d672d199051171082ffdcfbae3f226a62f1 | Add max backlight limit to backlight driver | Introduce max backlight limit in the T3W1 backlight driver.
If user will request the backlight which is above the maximal set level, backlight will be automatically adjusted to maximal limit. if the user will increase the max backlight limit later, the backlight will be updated to originally requested level.
Thi... | diff --git a/core/embed/io/backlight/inc/io/backlight.h b/core/embed/io/backlight/inc/io/backlight.h
index c62d7fc7296..44267a5d99f 100644
--- a/core/embed/io/backlight/inc/io/backlight.h
+++ b/core/embed/io/backlight/inc/io/backlight.h
@@ -19,6 +19,9 @@
#pragma once
+#define BACKLIGHT_MAX_LEVEL 255
+#define BACKL... | 2 | 2 | 2 | [{"id": "G0", "claim": "The backlight_set_max_level declaration should not be conditioned on TREZOR_MODEL_T3W1; instead each backlight driver should support the setting, omitting it only for drivers that don't need it (via an empty function or no implementation causing a compilation error if used).", "category": "desig... | null |
trezor__trezor-firmware__4983 | trezor/trezor-firmware | 4,983 | defect | bfd78c8d6e2fc6e1817318207fa0d37981086cee | 6bd7659bf1c4aac6e168f065fbb4c356b872241e | allow infinite testing of NFC functionalities | For usage during testing, certifications it is needed to be able to have NFC turned on continuously | diff --git a/core/embed/projects/prodtest/README.md b/core/embed/projects/prodtest/README.md
index cde2bee6a97..a4e208949b8 100644
--- a/core/embed/projects/prodtest/README.md
+++ b/core/embed/projects/prodtest/README.md
@@ -940,9 +940,12 @@ wpc-update
### nfc-read-card
Activate the NFC in reader mode for a given tim... | 7 | 5 | 0 | [{"id": "G0", "claim": "The log message in prodtest_nfc_write_card misspells 'Writting' and should read 'Writing'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The README documents the command as 'nfc-write_card' (with underscore) while the co... | null |
trezor__trezor-firmware__5060 | trezor/trezor-firmware | 5,060 | defect | 6bdac7614f7302eed68c645527fe77e84530790b | 91e6e12807ccab7b276446f373579ad23e4464eb | adjust bootloader (un)locking for tropic-enabled models | This PR adjust bootloader locking/unlocking mechanism to respect models with tropic.
When unlocking bootloader, secrets for both optiga and tropic should be erased. Therefore, for purpose of bootloader locked status detection, any secret that is not erased means that bootloader is locked and custom firmware should n... | diff --git a/core/embed/projects/bootloader/bootui.c b/core/embed/projects/bootloader/bootui.c
index b952941dfa6..627fb9ae67e 100644
--- a/core/embed/projects/bootloader/bootui.c
+++ b/core/embed/projects/bootloader/bootui.c
@@ -160,7 +160,7 @@ void ui_screen_boot_stage_1(bool fading) { screen_boot_stage_1(fading); }
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The compile flag in wf_firmware_update.c is misspelled as LOCKABLE_BOOTLOADAR and should be LOCKABLE_BOOTLOADER.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
trezor__trezor-firmware__5109 | trezor/trezor-firmware | 5,109 | defect | d52d4655d522cb786ff0550b0401bed049905f58 | 6584ad74cc075add78bdfcce6779f6d1fa2b1b3a | add radio test command to prodtest | This PR adds a ble-radio-test command to prodtest. Originally implemented by @kopecdav .
It assumes radio test is installed on nRF, and proxies the VCP data through uart.
Radio test is useful for i.e. certifications.
As we are also passing this functionality to partners, its useful to have it in main so we don... | diff --git a/core/embed/projects/prodtest/cmd/prodtest_ble.c b/core/embed/projects/prodtest/cmd/prodtest_ble.c
index 916ad72216b..99859aa140f 100644
--- a/core/embed/projects/prodtest/cmd/prodtest_ble.c
+++ b/core/embed/projects/prodtest/cmd/prodtest_ble.c
@@ -19,9 +19,11 @@
#ifdef USE_BLE
+#include <trezor_bsp.h>... | 5 | 3 | 1 | [{"id": "G0", "claim": "The `.info` string \"Connect to Radio test CLI\" is vague and should be expanded to describe that this command proxies data between USB VCP and the NRF radio over USART3.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After... | null |
trezor__trezor-firmware__5131 | trezor/trezor-firmware | 5,131 | defect | d65b4f0e869a02006084f34f8ca7cebbb7c80202 | af709650bcef347b51923de2f7761268dd784a94 | eckhart UI for prodtest | This PR implements Eckhart UI for prodtest. Mainly to show border in homescreen/display-border properly.
Additionaly, when fuel gauge monitor is aborted, homesceen is show to redraw the last data, which otherwise shows outdated values.
| diff --git a/core/embed/projects/prodtest/cmd/prodtest_power_manager.c b/core/embed/projects/prodtest/cmd/prodtest_power_manager.c
index 37d5d2847b2..a06bae284f1 100644
--- a/core/embed/projects/prodtest/cmd/prodtest_power_manager.c
+++ b/core/embed/projects/prodtest/cmd/prodtest_power_manager.c
@@ -152,6 +152,8 @@ voi... | 8 | 3 | 1 | [{"id": "G0", "claim": "The `qr` field is an `Option<Qr>` which does not implement `place`, so calling `place` directly on `self.qr` will not compile; the reviewer asks to unwrap or match the option instead.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cla... | null |
trezor__trezor-firmware__5162 | trezor/trezor-firmware | 5,162 | defect | cafed0d02b438093e3dda7121d79229c87030d73 | 98588a4cd956a491b8b2c74a200f35798f1de52a | Validation of certificates in prodtest | This pull request introduces two features in the validation of the certification chain during provisioning:
1. In https://github.com/trezor/trezor-firmware/commit/05f875da328da82998e8df896dd9d2777b01075c, it parses the common name from the device certificate and verifies that it matches the Trezor model being provis... | diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest
index 155df0f7d2e..0e8d44eeb31 100644
--- a/core/SConscript.prodtest
+++ b/core/SConscript.prodtest
@@ -133,6 +133,7 @@ SOURCE_PRODTEST = [
'embed/projects/prodtest/header.S',
'embed/projects/prodtest/main.c',
'embed/projects/prodtest/comma... | 6 | 6 | 2 | [{"id": "G0", "claim": "The #endif comment of the include guard in common.h reads __CERTIFICATES_H while the guard is __COMMON_H, and should say __COMMON_H.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The challenge parameter of check_cert_cha... | null |
trezor__trezor-firmware__5184 | trezor/trezor-firmware | 5,184 | defect | a67ccb8c405b354c7ab2479af113415fa74311f6 | a88564cb3d55c3dad8814d3241a56e3d70496352 | make secret api more versatile | This PR refactors secret API to accommodate needs for more complex keys handling.
Secret API is unified to be independent on optiga/tropic presence, and a specific secret_keys extension is introduced to handle these specific keys.
Secret storage layout is now model dependent.
On U5, new key variant, public, i... | diff --git a/core/embed/models/D002/model_D002.h b/core/embed/models/D002/model_D002.h
index 3dc4f734765..d8a9d31b8fe 100644
--- a/core/embed/models/D002/model_D002.h
+++ b/core/embed/models/D002/model_D002.h
@@ -21,6 +21,7 @@
#include <rtl/sizedefs.h>
#include "bootloaders/bootloader_hashes.h"
+#include "secret_la... | 5 | 5 | 2 | [{"id": "G0", "claim": "Use the SECRET_HEADER_OFFSET constant instead of the literal 0 when addressing the secret area in the flash_area_get_address/secret_write calls in stm32f4/secret.c and stm32u5/secret.c.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
trezor__trezor-firmware__5227 | trezor/trezor-firmware | 5,227 | defect | c17ce0e89e26a89be55fb8dfe988b508145f31ff | 35c37afbaa2a954de2330c6a1e22156beb101b24 | call bootloader update from coreapp | This PR changes the way bootloader update is invoked.
Instead of embedding bootloader into secmon/kernel, its embedded in firmware(coreapp), and bootloader update is invoked via syscall + smcall. To keep the security same, additional checks are added to update smcall ( signature and hash check).
New command is ... | diff --git a/core/SConscript.firmware b/core/SConscript.firmware
index d5b968405ea..1f737b044f0 100644
--- a/core/SConscript.firmware
+++ b/core/SConscript.firmware
@@ -468,6 +468,7 @@ ALLPATHS = [
'embed/models',
'embed/gfx/inc',
'embed/sys/bsp/inc',
+ 'embed/util/bl_check/inc',
... | 9 | 5 | 1 | [{"id": "G0", "claim": "Add a bounds check on `len` (e.g., `len <= BOOTLOADER_MAXSIZE`) in `bl_check_replace__verified` before calling into `bl_check_replace` to prevent oversized input from causing buffer overflows.", "category": "security", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
trezor__trezor-firmware__5240 | trezor/trezor-firmware | 5,240 | defect | 590dcb9e56be1550e91d00572d68035420458f34 | 2e41cec3146bb250c9795f74b47a2a9ff8821506 | Fix fuel gauge soc limit during initial estimation | This tiny PR fix an issue with out-of-bound SoC estimation during battery initialization.
The initial estimate was not bounded, so time to time it returned crazy estimates when battery was not connected and then showing SoC 255% in the core app.
This PR also add simple prodtest command `pm-new-soc-estimate` which... | diff --git a/core/embed/projects/prodtest/README.md b/core/embed/projects/prodtest/README.md
index 721b3080284..1a13add4df7 100644
--- a/core/embed/projects/prodtest/README.md
+++ b/core/embed/projects/prodtest/README.md
@@ -708,6 +708,16 @@ optiga-counter-read
OK 0E
```
+### pm-new-soc-estimate
+Erase power manage... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new pm-new-soc-estimate command should not erase the whole backup RAM; it should invalidate only the PM recovery data (e.g. by writing version-0/invalid PM data or adding a selective erase-by-key API) so that any other data kept in backup RAM survives, and the reviewer wants this done now ra... | null |
trezor__trezor-firmware__5267 | trezor/trezor-firmware | 5,267 | defect | 3fa5d4e71a942aa648ae34b132525038ce8d1e1b | 932822087be8d6869e8d5887b01ede12784d64cc | update nrf firmware from prodtest | This PR introduces prodtest command to update nRF firmware via VCP, in very similar fashion to updating bootloader.
This can be used for easier switching to i.e. radio test and back.
Some improvement was made to reliability of updating nrf application by prolonging timeouts and repeated attempts in case of failur... | diff --git a/core/embed/projects/prodtest/README.md b/core/embed/projects/prodtest/README.md
index 4ca4d96edc3..fcb1417204c 100644
--- a/core/embed/projects/prodtest/README.md
+++ b/core/embed/projects/prodtest/README.md
@@ -322,6 +322,10 @@ nrf-version
OK 0.1.2.3
```
+### nrf-update
+Updates the nRF firmware.
+
+
... | 3 | 2 | 2 | [{"id": "G0", "claim": "There is no check that the update transition began, so chunks may be sent without a `begin` command; the reviewer suggests creating an `update_begin` flag and checking it in the chunk phase.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
trezor__trezor-firmware__5276 | trezor/trezor-firmware | 5,276 | defect | 545997e8726deae49f23a2108bd14844741d6a3e | 52344a4a0b416964f64503f02001ca1f08a8c802 | Fuel gauge compensation in low power mode | This PR introduces fuel gauge compensation in low power modes, as well as fuel gauge updates during charging in suspend mode. It builds upon the enhanced suspend logic implemented in PR https://github.com/trezor/trezor-firmware/pull/5235
The first two commits add an `rtc_get_timestamp()` function to the RTC library,... | diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest
index d6a6e343757..5725bb56fa4 100644
--- a/core/SConscript.prodtest
+++ b/core/SConscript.prodtest
@@ -169,6 +169,7 @@ SOURCE_PRODTEST = [
'embed/projects/prodtest/cmd/prodtest_help.c',
'embed/projects/prodtest/cmd/prodtest_hw_revision.c',
... | 17 | 10 | 5 | [{"id": "G0", "claim": "Swap the HAL_RTC_GetTime and HAL_RTC_GetDate calls in rtc_get_timestamp() so the date is read first, as the comment documents.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The timestamp calculation uses a fixed 365-day year a... | null |
trezor__trezor-firmware__5324 | trezor/trezor-firmware | 5,324 | defect | 1439a3808131d82f2e27a77f829dddeac540e8e2 | ba39bc2066307399c4ee5439b13856d1e7bd0328 | rtc setup in prodtest | this PR adds commands for setting time in prodtest | diff --git a/core/embed/projects/prodtest/README.md b/core/embed/projects/prodtest/README.md
index 9d0416a11da..99c7c4c7794 100644
--- a/core/embed/projects/prodtest/README.md
+++ b/core/embed/projects/prodtest/README.md
@@ -1066,7 +1066,25 @@ rtc-timestamp
OK 1886533
```
+### rtc-set
+Sets the current RTC date and... | 1 | 1 | 0 | [{"id": "G0", "claim": "The weekday in rtc-get output should be separated by a space like all other values, not by a comma, i.e. date and time input/output should use a consistent space-delimited format.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
trezor__trezor-firmware__5338 | trezor/trezor-firmware | 5,338 | defect | 4b1dacdacadb71102a23750db262863c3a84327e | c8dd638983dd63edc3eeabea8325545e278b4891 | erase backup ram in bootloader when erasing storage | This PR prepares backup ram for future use cases where we would store sensitive data in backup ram
Such data will be erased along with storage when bootloader i.e. changes firmware vendor.
| diff --git a/core/embed/projects/bootloader/main.c b/core/embed/projects/bootloader/main.c
index db0645b0479..3c7b0a402e3 100644
--- a/core/embed/projects/bootloader/main.c
+++ b/core/embed/projects/bootloader/main.c
@@ -585,6 +585,9 @@ int bootloader_main(void) {
secret_bhk_regenerate();
#endif
ensu... | 4 | 2 | 2 | [{"id": "G0", "claim": "The type argument validation uses &&, so when parsing succeeds an out-of-range type does not trigger the argument error; it should use || to reject either a parse failure or an out-of-range value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
trezor__trezor-firmware__5384 | trezor/trezor-firmware | 5,384 | defect | ee40c89f110370c0533d0ac454b3f01d33c63560 | dace6dc65880082414b4461ca5bf9f02ee5a3e42 | nrf pairing | This PR adds support for basic pairing of main MCU and nRF.
Symmetric keys is exchanged in prodtest and stored on nRF. Trezor derives the key from master secret key. | diff --git a/core/embed/io/nrf/inc/io/nrf.h b/core/embed/io/nrf/inc/io/nrf.h
index 0c0edf58266..f28347cf4ac 100644
--- a/core/embed/io/nrf/inc/io/nrf.h
+++ b/core/embed/io/nrf/inc/io/nrf.h
@@ -229,4 +229,12 @@ bool nrf_test_gpio_stay_in_bld(void);
* @return true if the GPIO behavior is correct; false otherwise
*/
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The nrf-pair provisioning could verify the pairing secret like optiga-pair does, by executing the HMAC challenge/response here or adding a separate test command run at the end of provisioning to do these checks.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
trezor__trezor-firmware__5390 | trezor/trezor-firmware | 5,390 | defect | ee40c89f110370c0533d0ac454b3f01d33c63560 | 77590658884ef5a82bd5ece01ff2966ec4d89b39 | nrf pairing verification | This PR implements nrf authentication/pairing key verification.
After challenge is issued by main MCU, nRF calculates HMAC and sends the output back, and the verification is done in secure monitor so that the key does not leak to less protected parts.
So far only verification in prodtest is implemented, to be ab... | diff --git a/core/embed/io/nrf/inc/io/nrf.h b/core/embed/io/nrf/inc/io/nrf.h
index 0c0edf58266..ab8beb3acfc 100644
--- a/core/embed/io/nrf/inc/io/nrf.h
+++ b/core/embed/io/nrf/inc/io/nrf.h
@@ -192,6 +192,8 @@ bool nrf_update_required(const uint8_t *image_ptr, size_t image_len);
*/
bool nrf_update(const uint8_t *imag... | 7 | 6 | 1 | [{"id": "G0", "claim": "In nrf_authenticate the magic constants should not be used: 32 is SHA256_DIGEST_LENGTH and 8 is SHA256_DIGEST_LENGTH/sizeof(uint32_t), or, if the two declarations are switched, 32 = sizeof(challenge).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
trezor__trezor-firmware__5416 | trezor/trezor-firmware | 5,416 | defect | 2dd30b89f7898e21216773fe04bdc04484a1e92c | d9fd238587a30a420989dc79ed34477092595cfb | Revise tropic initialization | This pull request:
* Does not establish the secure channel with the tropic in prodtest.
* Exposes the tropic handle to prodtest, allowing prodtest to use tropic functions directly.
* Simplifies `tropic_init()` by utilizing `lt_port_init()` and `lt_port_deinit()`, which are called from `lt_init()` and `lt_dei... | diff --git a/core/embed/projects/kernel/main.c b/core/embed/projects/kernel/main.c
index 3f48cf85742..740f7afbd97 100644
--- a/core/embed/projects/kernel/main.c
+++ b/core/embed/projects/kernel/main.c
@@ -187,7 +187,7 @@ void drivers_init() {
optiga_init_and_configure();
#endif
#ifdef USE_TROPIC
- tropic_init();
... | 6 | 4 | 1 | [{"id": "G0", "claim": "The author questions why tropic_init() is called in both the kernel and the secure monitor, implying possibly redundant initialization.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The tropic initialization API should follow opt... | null |
trezor__trezor-firmware__5445 | trezor/trezor-firmware | 5,445 | defect | 9960245233cf8a4cea4009ecbcba1bffde6e6ce1 | 678b4e9cfe0261fc2c222a8cb99bca699606e387 | fix prodtest bootloader-update command (T3W1) | This PR fixes the prodtest `bootloader-update` command and allows uploading a bootloader with the new PQC header on T3W1.
1) The `bootloader-update` command writes the new bootloader and boot header to the dedicated flash area (`BOOTUPDATE_AREA`). The update is finalized in the boardloader, so a `reboot` command is ... | diff --git a/core/embed/models/D002/memory.h b/core/embed/models/D002/memory.h
index 8854d283597..4d525becca5 100644
--- a/core/embed/models/D002/memory.h
+++ b/core/embed/models/D002/memory.h
@@ -65,6 +65,12 @@
#define FIRMWARE_SECTOR_START 0x2F
#define FIRMWARE_SECTOR_END 0x1CF
+// overlaps with assets and storag... | 4 | 4 | 1 | [{"id": "G0", "claim": "Fix the column alignment at the end of the new MPU_MODE_BOOTUPDATE SET_REGION line in stm32u5/mpu.c.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use flash_area_write_data instead of a hand-rolled per-block write loop to write th... | null |
trezor__trezor-firmware__5541 | trezor/trezor-firmware | 5,541 | defect | b4f857bdd5bf8ac93d1d8dfb070a5367f00de5f4 | bcf028703f1670b9cf20c6f810a33890e208b08e | Refactoring of USB API | This PR simplifies the USB stack API:
- Significantly reduces the number of USB driver syscalls
- Moves hardware-specific code to the kernel
- Introduces new generic read/write syscalls
- Consolidates USB initialization from multiple locations into a single place in the kernel
- Allows partial reconfiguration (c... | diff --git a/core/SConscript.bootloader b/core/SConscript.bootloader
index 7e6dcc4ea7a..2c5a1794464 100644
--- a/core/SConscript.bootloader
+++ b/core/SConscript.bootloader
@@ -27,6 +27,7 @@ FEATURES_WANTED = [
"secure_mode",
"suspend",
"usb",
+ "usb_iface_wire",
]
if TREZOR_MODEL in ('T3W1', ... | 7 | 7 | 1 | [{"id": "G0", "claim": "In usb_start (stm32/usb.c) the already-started branch has an extra unreachable `return sectrue;` after the if/else that already returns or stops, so the driver restart requested on changed settings is skipped.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "intro... | null |
trezor__trezor-firmware__5542 | trezor/trezor-firmware | 5,542 | defect | 12cafe7baab969cf91eb7aefe0b0c2b594a8afab | 61e9c8b017832bff36afa559c3ff3bcf74d98c1a | update tropic fw | This PR introduces prodtest command for tropic FW update.
FW binary is embedded into prodtest binary.
Libtropic is updated and some API compatibility adjustments were necessary.
SPI is sped up as failures on lower speed occurred when updating the FW. Root cause is still not entirely clear but i suspect some ti... | diff --git a/.gitmodules b/.gitmodules
index 8c862a024af..94ecc04554e 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -33,6 +33,7 @@
[submodule "vendor/libtropic"]
path = vendor/libtropic
url = https://github.com/tropicsquare/libtropic.git
+ branch = develop
[submodule "vendor/ts-tvl"]
path = vendor/ts-tvl
url ... | 5 | 5 | 3 | [{"id": "G0", "claim": "tropic_get_cert() is left returning LT_OK unconditionally instead of retrieving the certificate (or returning an error), and should be fixed or the function removed entirely as done in PR#5525, which the reviewer marked as the only merge blocker.", "category": "correctness", "verdict": "supporte... | null |
trezor__trezor-firmware__5574 | trezor/trezor-firmware | 5,574 | defect | 770053787416b093689eb85403ca118fef620fd7 | 5fc75a26707c254b4a85221f28dacb5bec575f7a | Implement LED switching | Enable LED switching off, similar to the haptic feedback.
Required by [Figma](https://www.figma.com/design/Dkl7W5PLqpr3TnXJ5hbnfd/--Future-Prod---Safe-7?node-id=9814-10190&t=UmICvytuX7Xhh8xy-0)
### LED driver:
- new `enabled` field in the driver struct
- new functions
- `rgb_led_set_enabled`
- `rgb_led_get... | diff --git a/core/embed/io/rgb_led/inc/io/rgb_led.h b/core/embed/io/rgb_led/inc/io/rgb_led.h
index 8f12c004022..77efbe6341c 100644
--- a/core/embed/io/rgb_led/inc/io/rgb_led.h
+++ b/core/embed/io/rgb_led/inc/io/rgb_led.h
@@ -30,15 +30,22 @@ void rgb_led_init(void);
// Deinitialize RGB LED driver
void rgb_led_deinit(v... | 7 | 5 | 3 | [{"id": "G0", "claim": "The storage key _DISABLE_RGB_LED with its double negation is confusing; romanz suggests renaming it to _ENABLE_RGB_LED.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unix RGB LED driver should turn the LED off when it ... | null |
trezor__trezor-firmware__5597 | trezor/trezor-firmware | 5,597 | defect | 6dc393af6991dc2f0da592a7eaef2095a8cea7b6 | b08949975dd492e501aff5569493cd40e2dacace | Introduce RGB LED effects | This PR introduces LED effects into the rgb_led driver.
### LED effects
The rgb_led driver effects are driven by an internal systimer which interrupts every 20ms (50Hz) when an effect is started. The interrupt then calls an effect callback from the lookup table which returns the actual RGB LED color based on the el... | diff --git a/core/embed/io/rgb_led/inc/io/rgb_led.h b/core/embed/io/rgb_led/inc/io/rgb_led.h
index 8f12c004022..c556ed421d3 100644
--- a/core/embed/io/rgb_led/inc/io/rgb_led.h
+++ b/core/embed/io/rgb_led/inc/io/rgb_led.h
@@ -17,28 +17,76 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
... | 9 | 9 | 2 | [{"id": "G0", "claim": "In the syscall dispatcher, rgb_led_effect_stop is called with an undefined variable effect_type although the function takes no parameters.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The condition effect_type < 0 can never... | null |
trezor__trezor-firmware__5605 | trezor/trezor-firmware | 5,605 | defect | 6dc393af6991dc2f0da592a7eaef2095a8cea7b6 | 91b4c81f4e392255e9c69da59556dbb8170121bd | Adjust backlight normal settings to 85 | Update of default normal backlight settings from 150->85 according to request from design | diff --git a/core/embed/projects/bootloader/bootui.h b/core/embed/projects/bootloader/bootui.h
index ac9f2e912af..2634c067ece 100644
--- a/core/embed/projects/bootloader/bootui.h
+++ b/core/embed/projects/bootloader/bootui.h
@@ -25,7 +25,7 @@
#include "rust_ui_bootloader.h"
-#define BACKLIGHT_NORMAL 150
+#define B... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new BACKLIGHT_NORMAL 85 (and the prodtest backlight values) affects other models too and should be guarded by an ifdef so it applies only to T3W1 (or rather the eckhart UI).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The p... | null |
trezor__trezor-firmware__5668 | trezor/trezor-firmware | 5,668 | defect | f01a75cfd29cd2ff9f0d7ee56905eea14ee14667 | fee6479efff123d80d520717d5f2359d4d3d4a6a | Prodtest certificate checks | This PR implements the following checks for device certificate chains in prodtest:
- Ensure that the device S/N is the same as the one set in the end-entity device certificate subject name.
- Validate the MCU device certificate chain, like we already do for Optiga and Tropic.
As usual, untested :see_no_evil:. | diff --git a/core/embed/projects/prodtest/cmd/common.c b/core/embed/projects/prodtest/cmd/common.c
index 4d0186f5735..8a22b1decbf 100644
--- a/core/embed/projects/prodtest/cmd/common.c
+++ b/core/embed/projects/prodtest/cmd/common.c
@@ -19,6 +19,7 @@
#include <trezor_model.h>
#include <trezor_rtl.h>
+#include <util... | 3 | 3 | 1 | [{"id": "G0", "claim": "The length scan in get_device_sn breaks on 0xFF as well as on 0x00, and it is unclear why the scan should stop at the first 0xFF padding byte rather than at the null terminator.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
trezor__trezor-firmware__5670 | trezor/trezor-firmware | 5,670 | defect | ff18b00e45f353e9672568bcc9d2898f00fb78f7 | bebda8ec864ee558259796d61fa9830fa03fdbd1 | Set HSM public keys | This pull request is a generalization of https://github.com/trezor/trezor-firmware/pull/5669. | diff --git a/core/embed/projects/prodtest/cmd/secure_channel.c b/core/embed/projects/prodtest/cmd/secure_channel.c
index a790f1c9fd9..440c522f127 100644
--- a/core/embed/projects/prodtest/cmd/secure_channel.c
+++ b/core/embed/projects/prodtest/cmd/secure_channel.c
@@ -19,6 +19,8 @@
#include "secure_channel.h"
+#in... | 1 | 1 | 1 | [{"id": "G0", "claim": "Backing up and restoring noise context internals directly in prodtest's secure_channel_handshake_2 violates encapsulation (maybe the whole context should be backed up), since only noise.c functions should access the context variables, so the retry logic should be moved into noise.c (e.g. by maki... | null |
trezor__trezor-firmware__5679 | trezor/trezor-firmware | 5,679 | defect | c855dbfb36c63a75ff9467377e025804a4ef4ad6 | a949f87846d869e417018f637cac45333b2f25e0 | ML-DSA device attestation | I changed the MCU device key and certificate from Ed25519 to ML-DSA-44. I am still considering using the stronger ML-DSA-87, but there would be a little more work involved. Firstly, there were some out-of-memory errors during testing, which I don't know what they were exactly about. Also we would need to store the devi... | diff --git a/.gitmodules b/.gitmodules
index 94ecc04554e..c04fee7ad65 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -41,3 +41,7 @@
path = vendor/sphincsplus
url = https://github.com/sphincs/sphincsplus/
branch = consistent-basew
+[submodule "vendor/mldsa-native"]
+ path = vendor/mldsa-native
+ url = https://githu... | 6 | 5 | 3 | [{"id": "G0", "claim": "ML-DSA signing and verification can need roughly 123 kB / 93 kB of stack while the current stack is only 32 kB, which is why out-of-stack errors appeared during testing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "generate... | null |
trezor__trezor-firmware__5697 | trezor/trezor-firmware | 5,697 | defect | dc1862166989f18da9f4ce9f5074e627bb1f2468 | 721b22a762aaa108ac253a366bb08f7bca907603 | Trusted anchors for device certificates in prodtest | This PR adds device authenticity root public keys to prodtest so that we can fully check the device certificate chain. The main reason for this check is to ensure integrity of the certificate chain.
I also changed one behavior which was inconsistent between Optiga and Tropic, vs. MCU certificate storing. We should f... | diff --git a/core/embed/projects/prodtest/.changelog.d/5697.added b/core/embed/projects/prodtest/.changelog.d/5697.added
new file mode 100644
index 00000000000..f99e8df3f96
--- /dev/null
+++ b/core/embed/projects/prodtest/.changelog.d/5697.added
@@ -0,0 +1 @@
+Add trusted anchors for device certificates.
diff --git a/c... | 1 | 1 | 1 | [{"id": "G0", "claim": "The early exit added to cert_write() in prodtest_tropic.c after check_device_cert_chain() plain `return`s and so skips the function's cleanup block (e.g. closing the tropic session); it should `goto cleanup;` instead, as the reviewer's suggestion block proposes.", "category": "correctness", "ver... | null |
trezor__trezor-firmware__5724 | trezor/trezor-firmware | 5,724 | defect | 671847de53ee2bd2c27119bf378e8ef07197f24c | 059e79dff653f5a2aff438b4c44d8a18aa7c89ff | refactor BLE interface | <!--
For core developers:
- Assign yourself to the PR.
- Set the priority to match the original issue.
- Add the PR to the current sprint.
- If it's a draft PR, mark it as "In Progress."
- If it's a final PR, mark it as "Needs Review."
For external contributors:
- Please open an issue before submitting a PR s... | diff --git a/core/embed/io/ble/inc/io/ble.h b/core/embed/io/ble/inc/io/ble.h
index 1f981fff0f9..498b1a610ce 100644
--- a/core/embed/io/ble/inc/io/ble.h
+++ b/core/embed/io/ble/inc/io/ble.h
@@ -19,9 +19,14 @@
#pragma once
-// This module provides interface to BLE (Bluetooth Low Energy) functionality.
-// It allows ... | 7 | 7 | 3 | [{"id": "G0", "claim": "The SYSCALL_BLE_SWITCH_OFF case in the kernel syscall dispatch calls ble_switch_on() instead of ble_switch_off().", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "ble_set_name__verified is declared in syscall_verifiers.h but no... | null |
trezor__trezor-firmware__5759 | trezor/trezor-firmware | 5,759 | defect | 78fbae71ef344aa349ea304772f2b04b76c1ddf8 | e007fb417092db63b8db1e61beb0075e0c262ad2 | Improve state handling around Tropic locking | Changes:
- Return `OK NO` in `tropic-lock-check` if Tropic hasn't been paired.
- Fail `secrets-init` if Tropic locking has already started so that we don't overwrite MCU's pairing secrets.
- Changed global static variable `tropic_is_paired` to a local static variable. It seems confusing to me that it can and was bei... | diff --git a/core/embed/projects/prodtest/cmd/common.c b/core/embed/projects/prodtest/cmd/common.c
index a8d533f7efc..b7cbc3d5d1a 100644
--- a/core/embed/projects/prodtest/cmd/common.c
+++ b/core/embed/projects/prodtest/cmd/common.c
@@ -406,7 +406,7 @@ bool check_cert_chain(cli_t* cli, const uint8_t* chain, size_t chai... | 3 | 3 | 2 | [{"id": "G0", "claim": "The pull request leaves more places where `return` is called instead of `goto cleanup`; the author should adopt commit 76f9b36e268df064649d66888b6c03a6cbcf487d which fixes them.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
trezor__trezor-firmware__5760 | trezor/trezor-firmware | 5,760 | defect | 78fbae71ef344aa349ea304772f2b04b76c1ddf8 | d081132da6e6cc976f3a8d8a0f7abd2719971c09 | Use Tropic in AuthenticateDevice | Successfully tested on a provisioned TS7.
TODOs:
- In a separate PR: Add certificates to the Tropic emulator and add Tropic to the AuthenticateDevice device test, see https://github.com/trezor/trezor-firmware/issues/5801
- @matejcik has some followup improvements for the changes in trezorctl. https://github.com/tr... | diff --git a/common/protob/messages-management.proto b/common/protob/messages-management.proto
index cea95111008..d20cc08cc58 100644
--- a/common/protob/messages-management.proto
+++ b/common/protob/messages-management.proto
@@ -380,8 +380,10 @@ message AuthenticateDevice {
* @end
*/
message AuthenticityProof {
- ... | 5 | 2 | 1 | [{"id": "G0", "claim": "Exposing tropic_data_read to applications via the new TROPIC_DATA_READ smcall/syscall may be too powerful, since it lets custom firmware read any Tropic data slot, which matters if data that custom firmware should not access is ever stored there.", "category": "security", "verdict": "uncertain",... | null |
trezor__trezor-firmware__5775 | trezor/trezor-firmware | 5,775 | defect | 1f9d3fa57549df91900968f1dfa3a50429b5d773 | 4c5487e4e030b2909ad7d8f9f8ec284662896b47 | check nRF FW authenticity in firmware |
<!--
For core developers:
- Assign yourself to the PR.
- Set the priority to match the original issue.
- Add the PR to the current sprint.
- If it's a draft PR, mark it as "In Progress."
- If it's a final PR, mark it as "Needs Review."
For external contributors:
- Please open an issue before submitting a ... | diff --git a/core/SConscript.secmon b/core/SConscript.secmon
index 5f642ff483d..50c067cf98c 100644
--- a/core/SConscript.secmon
+++ b/core/SConscript.secmon
@@ -42,6 +42,7 @@ FEATURES_WANTED = [
"storage",
"suspend",
"tropic",
+ "nrf_auth"
]
if DISABLE_OPTIGA:
diff --git a/core/embed/io/nrf/st... | 3 | 3 | 2 | [{"id": "G0", "claim": "nrf_authenticate() continues into the authentication flow even when the new 5-second pre-check for nRF communication times out; the reviewer asks whether it should return false instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
trezor__trezor-firmware__5797 | trezor/trezor-firmware | 5,797 | defect | ba9b94d3b5f43bba280fce47ba2df2a1206d38a3 | b15c4c7651b416485ed438fb8586cd8d51a6fcfc | Bleska/backlight driver refactoring | <!--
For core developers:
- Assign yourself to the PR.
- Set the priority to match the original issue.
- Add the PR to the current sprint.
- If it's a draft PR, mark it as "In Progress."
- If it's a final PR, mark it as "Needs Review."
For external contributors:
- Please open an issue before submitting a PR s... | diff --git a/core/embed/io/backlight/inc/io/backlight.h b/core/embed/io/backlight/inc/io/backlight.h
index 42c7580eb7b..029d9f201c0 100644
--- a/core/embed/io/backlight/inc/io/backlight.h
+++ b/core/embed/io/backlight/inc/io/backlight.h
@@ -19,6 +19,8 @@
#pragma once
+#include <trezor_types.h>
+
#define BACKLIGHT... | 6 | 3 | 2 | [{"id": "G0", "claim": "In the vg-2864 driver, display_set_backlight stores a hardcoded 255 into drv->backlight_level instead of the passed `level` parameter.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "In the st-7789 driver, display_set_backligh... | null |
trezor__trezor-firmware__5808 | trezor/trezor-firmware | 5,808 | defect | ed1063b7e76213ef388d9391515be6ca6e58fc9f | d1938bf2d7393633eeb5663a5dc995c253f474a9 | feat(core): use tropic chip entropy in RNG | This PR refactors the secmon/kernel API for random number generation.
- `rng_get()` and `optiga_random_buffer()` were removed from syscalls/smcalls, and two more generic functions were introduced: `rng_fill_buffer()` and `rng_fill_buffer_strong()`.
- `rng_fill_buffer_strong()` now uses the Tropic random generator... | diff --git a/core/SConscript.bootloader b/core/SConscript.bootloader
index effcf23ecc3..7f22a36eedc 100644
--- a/core/SConscript.bootloader
+++ b/core/SConscript.bootloader
@@ -107,7 +107,6 @@ CPPPATH_MOD += [
]
SOURCE_MOD += [
- 'embed/upymod/modtrezorcrypto/rand.c',
'embed/gfx/bitblt/gfx_bitblt.c',
'... | 8 | 6 | 2 | [{"id": "G0", "claim": "Add the __wur (warn_unused_result) attribute to rng_fill_buffer_strong() so that ignoring its return value produces a warning.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Tropic factory pairing keys, including the ... | null |
trezor__trezor-firmware__5809 | trezor/trezor-firmware | 5,809 | defect | 7a97dc534c5a5100c18d717121856f87af28c412 | af8a7b9dc35dffbcba728c7b47dc473b9b6f1c2a | allow unit variant rework | <!--
For core developers:
- Assign yourself to the PR.
- Set the priority to match the original issue.
- Add the PR to the current sprint.
- If it's a draft PR, mark it as "In Progress."
- If it's a final PR, mark it as "Needs Review."
For external contributors:
- Please open an issue before submitting a PR s... | diff --git a/core/embed/models/otp_layout.h b/core/embed/models/otp_layout.h
index cd299c6bcf0..0557f244a63 100644
--- a/core/embed/models/otp_layout.h
+++ b/core/embed/models/otp_layout.h
@@ -27,3 +27,4 @@
#define FLASH_OTP_BLOCK_DEVICE_VARIANT 4
#define FLASH_OTP_BLOCK_FIRMWARE_VERSION 5
#define FLASH_OTP_BLOCK_DE... | 6 | 5 | 1 | [{"id": "G0", "claim": "Remove the purposeless empty statement after the block_num declaration.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When rework is requested, block_num is never set to FLASH_OTP_BLOCK_DEVICE_VARIANT_REWORK, so the comm... | null |
trezor__trezor-firmware__6028 | trezor/trezor-firmware | 6,028 | defect | 05fb85a329a1898bf7bd1dad8ab5fe892796e5aa | 1ac6bbfe90a55068cc3fa54dee1cb4b045876f7f | Backlight gamma correction | The human sight has non-linear characteristic which means the eye is more sensible to a difference in backlight brightness at lower levels rather than at high ones.
Trezor wallets with displays don't perform any correction of this characteristic but simply increase/decrease backlight linearly.
This PR offers a s... | diff --git a/core/embed/io/backlight/inc/io/backlight.h b/core/embed/io/backlight/inc/io/backlight.h
index be4fb2a1241..ff701d23935 100644
--- a/core/embed/io/backlight/inc/io/backlight.h
+++ b/core/embed/io/backlight/inc/io/backlight.h
@@ -37,8 +37,10 @@ typedef enum {
// is set to zero level. If the action is set to... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add documentation to the gamma_correction function describing its parameters and the mathematical transformation being applied, since the equation is referenced in the comment above it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
trezor__trezor-firmware__6050 | trezor/trezor-firmware | 6,050 | defect | 76bc9f6271d0876ab0bf15a4ca40c7b1fb15e7fd | 3d9c24f9d0a973752b816125b70b273798b1eedb | battery type selection | This PR does some preparation for using two different battery vendors in one device.
The battery model is selected based on info in unit properties. The model/fuel gauge is adjusted so that dynamic model selection is enabled. | diff --git a/core/embed/sys/power_manager/fuel_gauge/battery_data_jyhpfl333838.h b/core/embed/sys/power_manager/fuel_gauge/battery_data_jyhpfl333838.h
index 303c619458b..5dd8073bd13 100644
--- a/core/embed/sys/power_manager/fuel_gauge/battery_data_jyhpfl333838.h
+++ b/core/embed/sys/power_manager/fuel_gauge/battery_dat... | 5 | 4 | 2 | [{"id": "G0", "claim": "The new comment in fuel_gauge_init contains a spelling mistake: 'we can live it this for a while' should read 'we can live with this for a while'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new switch in fuel_gauge_... | null |
trezor__trezor-firmware__6071 | trezor/trezor-firmware | 6,071 | defect | 27fa2a1761f646c567c98802f1cc20b65309d3dc | 43d85b9f3fa7c5933cb0b28e113b25dce579c63c | Postpone Optiga suspend if SEC is too high | This PR adjust suspend routine to postpone Optiga deinit if the SEC (secure events counter) is too high and leave it some time to decrease.
Firstly, RTC driver was updated with event scheduler to handle multiple RTC wakeup events from different sources, this is needed because RTC is currently also utilized by power... | diff --git a/core/embed/sec/optiga/inc/sec/optiga.h b/core/embed/sec/optiga/inc/sec/optiga.h
index a4a3e188b3d..5d94067996f 100644
--- a/core/embed/sec/optiga/inc/sec/optiga.h
+++ b/core/embed/sec/optiga/inc/sec/optiga.h
@@ -47,6 +47,10 @@ typedef enum _optiga_sign_result {
// Size of secrets used in PIN processing, e... | 11 | 11 | 3 | [{"id": "G0", "claim": "The SEC-decrement delay should use the existing OPTIGA_T_MAX_MS constant instead of the magic literal 5 in the wakeup scheduling call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "suspend_io.c should use the dedicated o... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.