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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tektoncd__pipelines-as-code__2284 | tektoncd/pipelines-as-code | 2,284 | defect | 7aa1b467d70bc6f3508c4092fb060324768923b5 | 449cfe7c2e9a8698a0c832d9d4f5bada7bd71eb3 | fix(cli): correct namespace flag binding in tkn-pac | ## 📝 Description of the Change
- The --namespace/-n flag was incorrectly bound to the same variable as --kubeconfig, causing namespace values to overwrite the kubeconfig path
- Fixed template condition to display repos when count > 0
- Added tests for using kube flags with tkn-pac
Tested on local openshift clust... | diff --git a/pkg/cmd/tknpac/info/templates/info.tmpl b/pkg/cmd/tknpac/info/templates/info.tmpl
index 020a2fe0e9..2145f3652a 100644
--- a/pkg/cmd/tknpac/info/templates/info.tmpl
+++ b/pkg/cmd/tknpac/info/templates/info.tmpl
@@ -14,7 +14,7 @@
Webhook URL: {{ .Info.HookConfig.URL }}
{{- end }}
{{- end }}
-{{- if (gt (... | 1 | 1 | 0 | [{"id": "G0", "claim": "The TestKubeOptsFlags test environment is non-deterministic and it skips asserting ConfigPath when --kubeconfig is not provided; it should set HOME and unset KUBECONFIG and always assert the expected default value of ConfigPath in all cases.", "category": "testing", "verdict": "supported", "prio... | null |
tektoncd__pipelines-as-code__2290 | tektoncd/pipelines-as-code | 2,290 | defect | f8c4367fd5048639e2cc467fce32c8f678babd66 | 60619ad1f527c341555e1e0a11a3bdfbbec0e917 | feat: Add support for optional `namespace` parameter in incoming webhook | ## 📝 Description of the Change
Add support for optional `namespace` parameter in incoming webhook
When a Repository CR does not have a unique name in the cluster, a user must disambiguate the desired Repository by specifying a Namespace. The namespace is optional by default, but if the matcher finds more than one ... | diff --git a/docs/content/docs/guide/incoming_webhook.md b/docs/content/docs/guide/incoming_webhook.md
index ef5fe8ce11..59d22f022f 100644
--- a/docs/content/docs/guide/incoming_webhook.md
+++ b/docs/content/docs/guide/incoming_webhook.md
@@ -7,7 +7,8 @@ weight: 50
Pipelines-as-Code supports the concept of incoming ... | 3 | 1 | 1 | [{"id": "G0", "claim": "Errors returned by detectIncoming that are neither errDeprecatedRequestMode nor errMissingFields (e.g. secret or repository retrieval errors) are only logged, so the client is left with no HTTP response; the handler should send an appropriate status code such as 500 Internal Server Error for tho... | null |
tektoncd__pipelines-as-code__2317 | tektoncd/pipelines-as-code | 2,317 | defect | 860c901d2d8d1a920c193136c7efc10563c1cd48 | 0a29e4fdc7b9af5f8da76c0c84bc73ce5211a498 | feat(perf): Cache changed files during event processing | ## 📝 Description of the Change
Calls to `vcs.GetFiles()` only result in one or two API calls (paging
aside). However the method is called each time a CEL expression
references `"path".pathChanged()` or the `on-path-change` annotation is
checked for matches. Because of this, because matching is evaluated
several... | diff --git a/.golangci.yml b/.golangci.yml
index cd3d897e08..38f1e214c1 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -58,7 +58,7 @@ linters:
- zerologlint
settings:
misspell:
- ignore-words:
+ ignore-rules:
- cancelled
extra-words:
- typo: "canceled"
@@ -72,6 +72,8 @... | 4 | 2 | 0 | [{"id": "G0", "claim": "The logic processing the []*scm.Change slice, duplicated in the PullRequest and Push cases of the Bitbucket Data Center GetFiles, could be refactored into a shared helper function to reduce code duplication and improve maintainability.", "category": "maintainability", "verdict": "uncertain", "pr... | null |
tektoncd__pipelines-as-code__2338 | tektoncd/pipelines-as-code | 2,338 | defect | 5b4173f993a8b3ecb90ba1c98946a059a9a41a8b | 1a6af04509a607ba547a1ed63896b4eb15765aa3 | fix: Do not return error when PipelineRun patching is failed | when PipelineRun patch is failed in startPR func, PaC was returning error which was creating a failed check on git provider though PipelineRun was running and it was making user confused, this commit fixes that.
https://issues.redhat.com/browse/SRVKP-9345
## 📝 Description of the Change
## 👨🏻 Linked Jira
... | diff --git a/pkg/pipelineascode/pipelineascode.go b/pkg/pipelineascode/pipelineascode.go
index aa56e90220..4ec9808942 100644
--- a/pkg/pipelineascode/pipelineascode.go
+++ b/pkg/pipelineascode/pipelineascode.go
@@ -300,9 +300,11 @@ func (p *PacRun) startPR(ctx context.Context, match matcher.Match) (*tektonv1.Pi
if le... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR's edit to TestStartPR_PatchBehavior removes `simulatePatchError: true` from the patch-failure case, so the patch failure is never simulated, the whole `simulatePatchError` block becomes unused, and the new log-instead-of-error behavior is untested; the test cases should be restored/adjust... | null |
tektoncd__pipelines-as-code__2359 | tektoncd/pipelines-as-code | 2,359 | defect | 063c5432a9ab0cf86701967e06899687af5fb6d3 | bb215fd64f3de6812d6a01a197f6cc075c713128 | fix(matcher): prevent CEL from matching label events unintentionally | ## 📝 Description of the Change
Add AST inspection in CEL evaluation to skip label events unless the
expression explicitly references labels or event_type.
Replace string/regexp-based CEL parsing with proper AST inspection.
Add generic walkExprAST function with composable NodeMatcher predicates
for detecting var... | diff --git a/pkg/matcher/annotation_matcher.go b/pkg/matcher/annotation_matcher.go
index 4e8d9f8756..bcf8051b3e 100644
--- a/pkg/matcher/annotation_matcher.go
+++ b/pkg/matcher/annotation_matcher.go
@@ -269,14 +269,6 @@ func MatchPipelinerunByAnnotation(ctx context.Context, logger *zap.SugaredLogger
continue
}
... | 4 | 4 | 3 | [{"id": "G0", "claim": "The event_type variable is declared for CEL but is not populated during evaluation, so a CEL expression that references event_type would fail with a runtime error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The label-refe... | null |
tektoncd__pipelines-as-code__2384 | tektoncd/pipelines-as-code | 2,384 | defect | 7ea84731fc81ce0df7c4350f6ea3c1922c792d23 | d92f979384320f767f45f113a2213f7c25f991d2 | refactor(providers): constantize provider StatusOpt conclusion options |
## 📝 Description of the Change
The Conclusion field of StatusOpts has a discrete number of supported values. These being typed as strings has introduced bugs in the past and makes adding new values difficult. Defining the supported values as constant enums improves both the safety of the values and the ease of wo... | diff --git a/pkg/adapter/sinker.go b/pkg/adapter/sinker.go
index 1db6a72539..50746694ae 100644
--- a/pkg/adapter/sinker.go
+++ b/pkg/adapter/sinker.go
@@ -13,6 +13,7 @@ import (
"github.com/openshift-pipelines/pipelines-as-code/pkg/params/info"
"github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode"
... | 10 | 3 | 0 | [{"id": "G0", "claim": "The moved struct could be renamed (e.g. status.Opts or status.UpdateOpts) to avoid the linter's stutter warning about status.StatusOpts; the author is open to renaming.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The e... | null |
tektoncd__pipelines-as-code__2393 | tektoncd/pipelines-as-code | 2,393 | defect | 9b8d81f9b413a04a30d2a17a0317df19db25ef7b | 32ee4c777fd48f9c8883051a2205425b9b6c1d3b | test: Migrate E2E tests to use SHA label filtering | ## 📝 Description of the Change
Updated various E2E tests to use Kubernetes LabelSelector for filtering PipelineRuns by commit SHA instead of listing all PipelineRuns and filtering them client-side. This improves test performance and robustness by leveraging efficient server-side filtering.
The filterPipelineRunsBy... | diff --git a/test/github_config_maxkeepruns_test.go b/test/github_config_maxkeepruns_test.go
index be02d4f369..39c7febedb 100644
--- a/test/github_config_maxkeepruns_test.go
+++ b/test/github_config_maxkeepruns_test.go
@@ -4,6 +4,7 @@ package test
import (
"context"
+ "fmt"
"testing"
"time"
@@ -43,7 +44,9 @@... | 1 | 1 | 1 | [{"id": "G0", "claim": "The label selector built by joining multiple \"key=value\" pairs with commas forms an AND condition that would match nothing, and the code should instead use the \"in\" operator syntax like \"pipelinesascode.tekton.dev/sha in (sha1,sha2,sha3)\".", "category": "correctness", "verdict": "supported... | null |
tektoncd__pipelines-as-code__2399 | tektoncd/pipelines-as-code | 2,399 | defect | 01dfc83ba3327de2b1d3ce849da79c7906db71e5 | d8ebd42f2a9ccfa62308446194cb83e8d1c355bf | fix: show helpful message when /retest has nothing to retest | ## 📝 Description of the Change
When using `/retest` or `/ok-to-test` and all pipelines have already succeeded, the command now shows a helpful message instead of the misleading "could not find any PipelineRun in your .tekton/ directory" error.
**New message:**
> "all PipelineRuns for this commit have already succ... | diff --git a/pkg/matcher/annotation_matcher.go b/pkg/matcher/annotation_matcher.go
index c1b6a85754..19c578bab3 100644
--- a/pkg/matcher/annotation_matcher.go
+++ b/pkg/matcher/annotation_matcher.go
@@ -389,7 +389,13 @@ func MatchPipelinerunByAnnotation(ctx context.Context, logger *zap.SugaredLogger
// Filter out te... | 5 | 4 | 2 | [{"id": "G0", "claim": "The new logic that re-runs all pipelines when /retest or /ok-to-test finds nothing failing is not covered by a unit test; add a test case asserting the full list of matched pipelines is returned.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
tektoncd__pipelines-as-code__2416 | tektoncd/pipelines-as-code | 2,416 | defect | eb39d1428e144bf97ded9501750015d6bc6606eb | 2760eb13d6008e3b99ba270876b02f840f4b4cba | fix: set PipelineURL for cached pipelines to resolve relative task paths | ## 📝 Description of the Change
When multiple PipelineRuns reference the same remote pipeline with relative task paths, the second PipelineRun fails because the PipelineURL is not set when retrieving the pipeline from cache.
This causes assembleTaskFQDNs to receive an empty PipelineURL, which returns relative paths... | diff --git a/pkg/resolve/remote.go b/pkg/resolve/remote.go
index f162966212..8db2c29330 100644
--- a/pkg/resolve/remote.go
+++ b/pkg/resolve/remote.go
@@ -103,6 +103,8 @@ func resolveRemoteResources(ctx context.Context, rt *matcher.RemoteTasks, types
rt.Logger.Debugf("skipping already fetched pipeline %s in annot... | 5 | 3 | 0 | [{"id": "G0", "claim": "The PipelineURL set from the user-controlled pipelinesascode.tekton.dev/pipeline annotation is retained when the fetched pipeline's name does not match the PipelineRun's pipelineRef and the code falls back to a local pipeline, so the local pipeline's relative task paths may be resolved against t... | null |
tektoncd__pipelines-as-code__2424 | tektoncd/pipelines-as-code | 2,424 | defect | 41a632b1c6d8455109b784bf9e4dc85971929ace | 2388f712a9b18fc34fc3a9f38230ea0865a0c73f | fix: Enforce mandatory webhook secret for GitLab validation | ## 📝 Description of the Change
Enforced strict validation to require both the X-Gitlab-Token header and a configured webhook secret. This prevented unauthenticated requests that were previously accepted when both values were empty.
## 👨🏻 Linked Jira
<!-- <https://issues.redhat.com/browse/SRVKP-> -->
## ... | diff --git a/pkg/provider/gitlab/gitlab.go b/pkg/provider/gitlab/gitlab.go
index 38e54ba638..571ac58ad4 100644
--- a/pkg/provider/gitlab/gitlab.go
+++ b/pkg/provider/gitlab/gitlab.go
@@ -156,8 +156,12 @@ func (v *Provider) SetLogger(logger *zap.SugaredLogger) {
func (v *Provider) Validate(_ context.Context, _ *param... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new GitLab validation error messages are awkwardly worded — in particular 'for security reason' should be 'for security reasons' — and should be rewritten for correct grammar, clarity and conciseness in user-facing logs.", "category": "documentation", "verdict": "supported", "priority": "P2"... | null |
tektoncd__pipelines-as-code__2443 | tektoncd/pipelines-as-code | 2,443 | defect | 174fd2766f3d92c9ca8db076a7b89cee98138e6c | 32873b57f2e0b5b1c6a1ed3ec0e3df545ae558d3 | feat(github): add configurable GitOps command prefix | - Users can set a GitOps command prefix in the Repository CR to run /prefix test, /prefix retest, /prefix cancel.
- Configure prefix in Repository CR's settings field.
- Apply prefix-aware matching for GitHub issue/commit comments, including ok-to-test SHA validation and target selection.
- Update repo schema/docs a... | diff --git a/config/300-repositories.yaml b/config/300-repositories.yaml
index 3319d62d5e..5cad2f9a67 100644
--- a/config/300-repositories.yaml
+++ b/config/300-repositories.yaml
@@ -466,6 +466,11 @@ spec:
items:
type: string
type: array
+ ... | 22 | 14 | 9 | [{"id": "G0", "claim": "Compiling regular expressions with regexp.MustCompile from a user-configurable prefix can panic on invalid input or enable ReDoS, crashing the whole controller; escape the prefix with regexp.QuoteMeta or compile with error handling.", "category": "security", "verdict": "supported", "priority": "... | null |
tektoncd__pipelines-as-code__2473 | tektoncd/pipelines-as-code | 2,473 | defect | 0ca906393b30b304ce788de69855226467eb9d50 | 699e2af1233ed1560ba3cdcf123e62e8d09aec25 | fix(github): resolve pull_request_number on retest for pushed commits | - The {{ pull_request_number }} variable was not substituted when a /retest command was issued on a pushed commit (e.g. a commit resulting from a PR merge) because the commit comment handler in ParsePayload did not fetch the associated pull requests for the commit SHA.
- Fetch PRs via getPullRequestsWithCommit in hand... | diff --git a/pkg/provider/github/parse_payload.go b/pkg/provider/github/parse_payload.go
index 9732ab3c75..d6172f85c5 100644
--- a/pkg/provider/github/parse_payload.go
+++ b/pkg/provider/github/parse_payload.go
@@ -625,12 +625,20 @@ func (v *Provider) handleCommitCommentEvent(ctx context.Context, event *github.C
de... | 6 | 4 | 3 | [{"id": "G0", "claim": "Enable the retry mechanism in getPullRequestsWithCommit by passing true for isMergeCommit so that /retest on merged commits tolerates the GitHub API propagation delay.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use the ni... | null |
tektoncd__pipelines-as-code__2476 | tektoncd/pipelines-as-code | 2,476 | defect | 3be830610bab0376027d800d708c108f377802d8 | d47680ba9f20bf901426f212c10f62b4961c38d6 | feat: Switch gitea to forgejo provider type | Introduced native support for Forgejo as a first-class Git provider. Previously, Forgejo was supported indirectly by using the Gitea provider type due to API compatibility. This change adds "forgejo" as a distinct provider type, allowing explicit configuration. The "gitea" provider type is maintained as an alias for ba... | diff --git a/config/300-repositories.yaml b/config/300-repositories.yaml
index 3319d62d5e..3837cb07d6 100644
--- a/config/300-repositories.yaml
+++ b/config/300-repositories.yaml
@@ -210,13 +210,15 @@ spec:
- 'gitlab': GitLab.com or self-hosted GitLab
- 'bitbucket-datac... | 1 | 1 | 1 | [{"id": "G0", "claim": "CreateGiteaRepo in test/pkg/gitea/scm.go creates the webhook with type \"forgejo\", which is likely invalid for the Gitea/Forgejo API and may cause webhook creation to fail and break the gitea e2e tests, so the hook type should be reverted to \"gitea\" (or selected based on the server under test... | null |
tektoncd__pipelines-as-code__2479 | tektoncd/pipelines-as-code | 2,479 | defect | 31f039751d9b89295f312b91b307f0687c7a0a2f | e823d78c9e2e5914b96034236005259a23a9b5f5 | fix: Update Go-SCM to v1.15.17 for Bitbucket Group Permissions | ## 📝 Description of the Change
Bumps vendored `jenkins-x/go-scm` to v1.15.17 to fix three bugs in Bitbucket Data Center group-based permission checking: URL-encoding of group names with spaces, error short-circuiting that aborted authorization checks, and missing repository-level group permission lookups. Adds miss... | diff --git a/go.mod b/go.mod
index 74e315b7c3..84624538ef 100644
--- a/go.mod
+++ b/go.mod
@@ -16,7 +16,7 @@ require (
github.com/google/go-github/v75 v75.0.0
github.com/google/go-github/v81 v81.0.0
github.com/hako/durafmt v0.0.0-20210608085754-5c1018a4e16b
- github.com/jenkins-x/go-scm v1.15.16
+ github.com/jenk... | 5 | 2 | 2 | [{"id": "G0", "claim": "In getProjectGroups the org parameter is interpolated directly into the API path without escaping, so special characters in the organization name can lead to path traversal or API injection on a path used for authorization checks; use url.PathEscape(org).", "category": "security", "verdict": "un... | null |
tektoncd__pipelines-as-code__2481 | tektoncd/pipelines-as-code | 2,481 | defect | 419f3b5dffe8bec9fe2f9b1a248cf4419c3d4799 | 50e09205fe4f1db8ebf6ae2b31ec6acf311c6e84 | feat(github): add update comment strategy for GitHub | ## 📝 Description of the Change
This PR adds an **`update` comment strategy** for GitHub pull requests. When thsi comment strategy is used, PAC creates a single comment per PipelineRun and update it with the latest status and commit SHA on re-execution.
Changes:
* Implementation of the `update` comment strategy.
... | diff --git a/config/300-repositories.yaml b/config/300-repositories.yaml
index 3319d62d5e..afcee58aae 100644
--- a/config/300-repositories.yaml
+++ b/config/300-repositories.yaml
@@ -450,12 +450,14 @@ spec:
properties:
comment_strategy:
descript... | 7 | 2 | 1 | [{"id": "G0", "claim": "If the user-controlled PipelineRun name contained '-->' it could break out of the pac-status HTML comment marker or inject Markdown/HTML into the rendered comment body, so the name should be sanitized (e.g. replace '-->') before being embedded.", "category": "security", "verdict": "opposed", "pr... | null |
tektoncd__pipelines-as-code__2494 | tektoncd/pipelines-as-code | 2,494 | defect | cf0e0f76d4a0bfded18c4372e3a7a550bd7a3ccc | 61d6ae7592b21eb8a5925013100d8e2228020941 | feat: Allow custom user agent for Gitea/Forgejo | ## 📝 Description of the Change
This PR adds support for configuring a custom `User-Agent` header for API requests to Gitea/Forgejo instances. This enhancement addresses scenarios where Gitea/Forgejo instances are protected by AI scraping prevention proxies (such as [Anubis](https://anubis.techaro.lol/)) that block re... | diff --git a/config/300-repositories.yaml b/config/300-repositories.yaml
index b1f2edbaab..9be2f7512d 100644
--- a/config/300-repositories.yaml
+++ b/config/300-repositories.yaml
@@ -448,6 +448,17 @@ spec:
- roles
- secret_ref
type: object
+ ... | 4 | 1 | 0 | [{"id": "G0", "claim": "Refactor the Gitea client initialization to build a slice of forgejo options and make a single forgejo.NewClient call, instead of duplicating forgejo.SetUserAgent(userAgent) in both branches.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
tektoncd__pipelines-as-code__2497 | tektoncd/pipelines-as-code | 2,497 | defect | 490183d521f3019af216691e2275e1a5320ac66c | 747df39117ee65d234b76e74897e973185249c06 | chore: Reenable BitbucketDC and move more tests to GHE | ## 📝 Description of the Change
Reenable Btibucket DC since we have finally renewed license.
Move more tests to GHE, avoiding as much as possible GitHUb.com, and
using the local GHE instance instead.
## 👨🏻 Linked Jira
<!-- <https://issues.redhat.com/browse/SRVKP-> -->
## 🔗 Linked GitHub Issue
Fix... | diff --git a/test/github_pullrequest_oktotest_test.go b/test/github_pullrequest_oktotest_test.go
index c0635a843f..92a03f286a 100644
--- a/test/github_pullrequest_oktotest_test.go
+++ b/test/github_pullrequest_oktotest_test.go
@@ -20,7 +20,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
-func TestGit... | 3 | 2 | 1 | [{"id": "G0", "claim": "The ok-to-test webhook event builds the PR HTML URL from TEST_GITHUB_REPO_OWNER (with TEST_GITHUB_API_URL), which isn't set in CI and wouldn't point at the GHE repo this test now targets, so the URL should be built from the test's GHE options or the corresponding TEST_GITHUB_SECOND_* repo env in... | null |
tektoncd__pipelines-as-code__2510 | tektoncd/pipelines-as-code | 2,510 | defect | 8b14fcde60c110359a54eda65e34dcd76ece3918 | 7f8ced1abfc133b8c8d5deec8cbdaf3d32d148e3 | refactor: move secret creation to reconciler | Move git-auth secret creation from startPR (controller) to the reconciler via a new `secret-created` annotation. PipelineRuns are now created with secret-created=false, and the reconciler creates the secret and patches the annotation to true before the PipelineRun proceeds.
This decouples secret lifecycle management... | diff --git a/config/201-controller-role.yaml b/config/201-controller-role.yaml
index 8e789182f1..d2dfa48cbd 100644
--- a/config/201-controller-role.yaml
+++ b/config/201-controller-role.yaml
@@ -67,7 +67,7 @@ rules:
verbs: ["create"]
- apiGroups: [""]
resources: ["secrets"]
- verbs: ["get", "create", "u... | 10 | 2 | 1 | [{"id": "G0", "claim": "The refactoring makes the reconciler rely on untrusted PipelineRun annotations, creating potential SSRF and broken-access-control vulnerabilities, with severity reduced to low because an attacker needs write access to the PipelineRun.", "category": "security", "verdict": "uncertain", "priority":... | null |
tektoncd__pipelines-as-code__2529 | tektoncd/pipelines-as-code | 2,529 | defect | 093ef51b835474b170b511602c3c77be01274e09 | 9a81c98b8ba79f75bc1b983101ee5df51affc61b | test(e2e): migrate GitHub webhook tests to GHE |
## 📝 Description of the Change
### Summary
- Add infrastructu... | diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml
index a5c173d1a0..db4f5dd570 100644
--- a/.github/workflows/e2e.yaml
+++ b/.github/workflows/e2e.yaml
@@ -86,6 +86,7 @@ jobs:
TEST_GITHUB_SECOND_EL_URL: https://ghe.paac-127-0-0-1.nip.io
TEST_GITHUB_SECOND_REPO_INSTALLATION_ID: 1
... | 3 | 2 | 1 | [{"id": "G0", "claim": "The change introduces a minor bug by requiring the environment variable TEST_GITHUB_SECOND_REPO_OWNER_GITHUBAPP unnecessarily for GHE webhook tests.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The setup implementation is c... | null |
tektoncd__pipelines-as-code__2542 | tektoncd/pipelines-as-code | 2,542 | defect | ba3299cdbb83fa0b347baec389e5719a3c8fad50 | da0c6edce9d926318f2327ab0792ea44811ac21a | test: improve GHE webhook test reliability and naming | ## 📝 Description of the Change
- Add nil checks in collectGitHubAPICalls and TearDown to handle test failures before full initialization. Set PRTest fields immediately upon creation rather than at end of RunPullRequest/RunPushRequest to ensure proper cleanup even when tests fail early.
- Reason for panic: during G... | diff --git a/test/github_comment_strategy_update_test.go b/test/github_comment_strategy_update_test.go
index 608e0accc6..a7d2173050 100644
--- a/test/github_comment_strategy_update_test.go
+++ b/test/github_comment_strategy_update_test.go
@@ -23,7 +23,7 @@ import (
// 1. A CEL error comment is posted for a PLR
// 2. ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test names should be cleaned up to remove the OnWebhook suffix and standardize on the GHEWebhook placement, either as a follow-up or as part of this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tektoncd__pipelines-as-code__2552 | tektoncd/pipelines-as-code | 2,552 | defect | 059c01aa9d2f18d4d3dd2e652d80ea4eef7afdf7 | 89e275bc8e2d0f785c9f3e971a5bc6a4dd805ab7 | feat: cache changed files in Gitea provider | ## 📝 Description of the Change
Implemented a caching mechanism for changed files in the Gitea provider to prevent redundant API requests during the reconciliation process. The implementation mirrors the existing pattern from PR #2317 for other providers.
### Changes Made:
- Added `cachedChangedFiles` field to the Pr... | diff --git a/pkg/provider/gitea/gitea.go b/pkg/provider/gitea/gitea.go
index bfd466d849..ede7131553 100644
--- a/pkg/provider/gitea/gitea.go
+++ b/pkg/provider/gitea/gitea.go
@@ -61,12 +61,13 @@ type Provider struct {
Token *string
giteaInstanceURL string
// only exposed for e2e tests
- Password st... | 2 | 1 | 0 | [{"id": "G0", "claim": "If a Provider instance is reused across different events, cachedChangedFiles is never reset in SetClient, so GetFiles would return the previous event's cached files instead of fetching the current event's; fix by resetting v.cachedChangedFiles to nil in SetClient.", "category": "correctness", "v... | null |
tektoncd__pipelines-as-code__2571 | tektoncd/pipelines-as-code | 2,571 | defect | a21ae43f71441f63969f205a58c660aa8705a0bb | 9b1e1206d8636d1fa2a80379bfac08730a4b8bfb | fix(forgejo): Update /ok-to-test status | when an /ok-to-test is made on unauthorized user's PR, status created for "pending approval" message was remained in pending status for Forgejo because the provider doesn't allow use to either edit the status or delete it. this commit updates that status to success to show that approval has been made for the PR.
## ... | diff --git a/docs/content/docs/guides/gitops-commands/advanced.md b/docs/content/docs/guides/gitops-commands/advanced.md
index 6f8837daca..b8f3b1cd63 100644
--- a/docs/content/docs/guides/gitops-commands/advanced.md
+++ b/docs/content/docs/guides/gitops-commands/advanced.md
@@ -158,6 +158,8 @@ If a repository owner com... | 5 | 2 | 2 | [{"id": "G0", "claim": "The added documentation paragraph describing the GitLab/Gitea /ok-to-test status update is too low-level for end users and need not be called out in the docs.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Changing the defa... | null |
tektoncd__pipelines-as-code__2615 | tektoncd/pipelines-as-code | 2,615 | defect | 182d1819465d3ae5bb73dbf02e24353d3b276e2a | d442566772b93fb4593ab3956c00e3c0ad43c5ae | fix(llm): fix OpenAI param and default analysis to failed runs | ## 📝 Description of the Change
- **fix(openai)**: Replace deprecated `max_tokens` with `max_completion_tokens`
in the OpenAI request struct fixing errors on newer models (gpt-5, o1, o3 series).
The internal `max_tokens` config field is kept provider-agnostic.
- **fix(llm)**: Move the failed-pipeline gate fro... | diff --git a/pkg/llm/analyzer.go b/pkg/llm/analyzer.go
index fbcfa0d938..2fe55a27a2 100644
--- a/pkg/llm/analyzer.go
+++ b/pkg/llm/analyzer.go
@@ -15,6 +15,7 @@ import (
"github.com/openshift-pipelines/pipelines-as-code/pkg/provider"
tektonv1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1"
"go.uber.org/zap"
+... | 3 | 3 | 1 | [{"id": "G0", "claim": "Relying on pr.Status.Conditions[0] to detect a failed PipelineRun is fragile because condition order is not guaranteed and the Succeeded condition might not be the first element; shouldTriggerRole should look the condition up by type with pr.Status.GetCondition(apis.ConditionSucceeded) and treat... | null |
tektoncd__pipelines-as-code__2624 | tektoncd/pipelines-as-code | 2,624 | defect | e61bf6628162546374df77d15c106059d13166dc | 2386c8e34e07c5f0c911b9766f7124ee479643b8 | tests: enforce conventions for go Test | Enforce our convention on test to use table driven tests and better naming across the repository.
Add simple check in linters.yaml to enforce this. Update AGENTS.md so agents can respect it.
## 📝 Description of the Change
Enforces Go test conventions across the repository to improve consistency and maintainability:... | diff --git a/.tekton/linter.yaml b/.tekton/linter.yaml
index 9922b10af1..3f41b14548 100644
--- a/.tekton/linter.yaml
+++ b/.tekton/linter.yaml
@@ -171,6 +171,56 @@ spec:
script: |
make lint-e2e-naming
+ - name: check-test-conventions
+ displayName: "Check Go tes... | 5 | 4 | 0 | [{"id": "G0", "claim": "The linter regex `^func Test[A-Za-z]*_[A-Za-z]` will also flag valid test names that happen to contain an underscore after the first word (e.g. TestGet_User_ID), so consider a regex that instead ensures no underscores exist at all in the function name.", "category": "correctness", "verdict": "op... | null |
tektoncd__pipelines-as-code__2627 | tektoncd/pipelines-as-code | 2,627 | defect | f8e434392b75cdbd67fc350d571918c97b878f73 | da2cf2f26e870f97529a14c695f73d269586d668 | chore: replace real time.Sleep with clockwork in unit tests | ## Summary
Fixes #2594
- Inject `clockwork.FakeClock` into Gitea and GitHub provider structs so retry/backoff loops use a fake clock in tests instead of real `time.Sleep`/`time.After`
- Reduce LLM timeout test mock handler sleep from 2s to 200ms (context timeout is 100ms, so timeout still triggers correctly)
- Total ... | diff --git a/pkg/llm/providers/gemini/client_test.go b/pkg/llm/providers/gemini/client_test.go
index 6a1aa0fac9..81dedfb677 100644
--- a/pkg/llm/providers/gemini/client_test.go
+++ b/pkg/llm/providers/gemini/client_test.go
@@ -463,7 +463,7 @@ func TestAnalyzeTimeout(t *testing.T) {
client.httpClient = &http.Client{... | 1 | 1 | 1 | [{"id": "G0", "claim": "Lazy initialization of the clock field in getClock() is not thread-safe: if getClock() is called concurrently on the same Provider instance while v.clock is nil, a data race will occur on the assignment, so it should return a new clockwork.NewRealClock() directly instead of caching it.", "catego... | null |
tektoncd__pipelines-as-code__2667 | tektoncd/pipelines-as-code | 2,667 | defect | 14a8e6b4adf6c19a2755ce086ca881c79551dd1f | e1bac9fe493ac1f25624e9666f0698ff5f70a48e | perf(informer): add TransformFuncs to reduce cache memory usage | ## 📝 Description of the Change
Add cache transform functions for the Repository and PipelineRun informers, stripping large unnecessary fields before objects enter the informer cache. Inspired by tektoncd/pipeline#9316.
For Repository objects, ManagedFields, Annotations and Status are stripped. The reconciler never... | diff --git a/pkg/informer/transform/transform.go b/pkg/informer/transform/transform.go
new file mode 100644
index 0000000000..0c74c45ac7
--- /dev/null
+++ b/pkg/informer/transform/transform.go
@@ -0,0 +1,97 @@
+// Package transform provides cache transform functions for reducing memory
+// usage in the PAC watcher info... | 3 | 1 | 0 | [{"id": "G0", "claim": "The transform functions RepositoryForCache and PipelineRunForCache mutate the input object in place, which can lead to race conditions or unexpected behavior if other parts of the system hold a reference to the original object; add a DeepCopy so they operate on a copy.", "category": "correctness... | null |
tektoncd__pipelines-as-code__2671 | tektoncd/pipelines-as-code | 2,671 | defect | 4c43e227269f44b0d8023f3457eb2e7961bf0f3d | 071640b6bf8c6f253c511e626c5e23ea96283e98 | fix(gitlab): pin commit statuses to the same pipeline via pipeline_id caching | ## 📝 Description of the Change
When PAC posts commit statuses to GitLab for a merge request, the status updates can get split across two different GitLab pipelines. GitLab's auto-assignment logic can abruptly change routing mid-stream, leaving the original MR pipeline permanently stuck with stale intermediate statuse... | diff --git a/pkg/provider/gitlab/gitlab.go b/pkg/provider/gitlab/gitlab.go
index 8cb4d0a467..2a71c2e868 100644
--- a/pkg/provider/gitlab/gitlab.go
+++ b/pkg/provider/gitlab/gitlab.go
@@ -69,6 +69,11 @@ type Provider struct {
memberCache map[int64]bool
cachedChangedFiles *changedfiles.ChangedFiles
pacUserID... | 4 | 3 | 2 | [{"id": "G0", "claim": "When falling back from the source to the target project, setOptPipelineID leaves the cached source-project pipeline ID in opt.PipelineID when the target has no cached ID, so the source pipeline ID may be sent on a target-project API call; it should be cleared when no cached ID is found for the c... | null |
tektoncd__pipelines-as-code__2683 | tektoncd/pipelines-as-code | 2,683 | defect | de6de63d849a739ce61ddbc458de0faaa3462248 | 537396eacf45b96ac33533bdc4c7a1ae484c3c70 | fix(webhook): prevent duplicate repository CR on trailing slash | The webhook admission controller's checkIfRepoExist used exact string equality to compare repository URLs. This allowed users to create a second Repository CR with the same URL by simply appending a trailing slash (e.g. https://github.com/org/repo vs https://github.com/org/repo/), bypassing the uniqueness validation.
... | diff --git a/pkg/webhook/validation.go b/pkg/webhook/validation.go
index 0695a97eef..c615d1cabc 100644
--- a/pkg/webhook/validation.go
+++ b/pkg/webhook/validation.go
@@ -90,7 +90,7 @@ func checkIfRepoExist(pac pac.RepositoryLister, repo *v1alpha1.Repository, ns st
}
for i := len(repositories) - 1; i >= 0; i-- {
... | 2 | 2 | 1 | [{"id": "G0", "claim": "TrimSuffix only removes a single trailing slash, so the duplicate-repository check can still be bypassed by URLs with multiple trailing slashes (or trailing whitespace); use a more robust normalization like strings.TrimRight with strings.TrimSpace, and centralize the sanitization logic.", "categ... | null |
tektoncd__pipelines-as-code__2694 | tektoncd/pipelines-as-code | 2,694 | defect | 532790b48e9a955c118eba49b87f6061ba0c8eb2 | b81c6d198966ccc433f07af191a24cc1c54397db | feat(forgejo): enable recursive .tekton dir retrieval for Forgejo | ## 📝 Description of the Change
Set Recursive option to true when calling GetTrees so that PipelineRuns nested in subdirectories under .tekton/ are discovered and executed. Previously only top-level entries were returned, causing pipelines in subdirectories to be silently ignored.
Add an E2E test that places Pipe... | diff --git a/pkg/provider/gitea/gitea.go b/pkg/provider/gitea/gitea.go
index 3aed747172..2653b1aab5 100644
--- a/pkg/provider/gitea/gitea.go
+++ b/pkg/provider/gitea/gitea.go
@@ -434,7 +434,7 @@ func (v *Provider) GetTektonDir(_ context.Context, event *info.Event, path, prov
}
// Get all files in the .tekton direct... | 1 | 1 | 1 | [{"id": "G0", "claim": "Handle the API limits that recursive tree retrieval makes more likely to hit by checking the Forgejo/Gitea response's Truncated field (with pagination) and failing loudly, as unchecked truncation can silently ignore PipelineRuns in repositories with many files and leaves the existing TODO unreso... | null |
tektoncd__pipelines-as-code__2696 | tektoncd/pipelines-as-code | 2,696 | defect | 532790b48e9a955c118eba49b87f6061ba0c8eb2 | 654ef3ba82f167cf0d32fe4a48ae38a26b43b664 | fix(github): use provided target ref in GetFileInsideRepo |
## 📝 Description of the Change
GetFileInsideRepo ignored the caller-supplied target ref and substituted runevent.BaseBranch. This caused OWNERS ACL checks to read from the wrong branch when a PR targets a non-default branch, and remote task fetches to resolve against the PR base instead of the specified ref.
#... | diff --git a/pkg/provider/github/github.go b/pkg/provider/github/github.go
index a261ff4c7c..a84ce2ee98 100644
--- a/pkg/provider/github/github.go
+++ b/pkg/provider/github/github.go
@@ -505,7 +505,7 @@ func (v *Provider) GetCommitInfo(ctx context.Context, runevent *info.Event) erro
func (v *Provider) GetFileInsideRep... | 2 | 1 | 1 | [{"id": "G0", "claim": "The change should be cherry-picked to the release-v0.42.x branch as well.", "category": "process", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Unit tests should be added for the change to GetFileInsideRepo.", "category": "testing", "verdict": "support... | null |
tektoncd__pipelines-as-code__2712 | tektoncd/pipelines-as-code | 2,712 | defect | e95177837c86e416e23720e81d3b7aa8753ebe25 | cd02b608c39b9f1f9c41352980f53ac599eb6668 | fix(opscomments): skip key=value args as PR names | ## 📝 Description of the Change
When a user posts "/test custom1=value", the key=value argument was being treated as a PipelineRun name, which bypassed on-comment annotation matching. Return empty string when the first argument contains "=" so the comment falls through to on-comment handling.
## 🔗 Linked GitHub Is... | diff --git a/pkg/opscomments/comments.go b/pkg/opscomments/comments.go
index 228d44600f..4d253ba03e 100644
--- a/pkg/opscomments/comments.go
+++ b/pkg/opscomments/comments.go
@@ -182,6 +182,9 @@ func getNameFromComment(typeOfComment, comment string) string {
return ""
}
- // trim spaces
- return strings.TrimSpac... | 3 | 2 | 1 | [{"id": "G0", "claim": "getNameFromComment returns an empty string instead of the targeted PipelineRun name for comments that specify both a name and parameters (e.g. '/test prname custom1=value'), because the new '=' check runs on the whole first line; it should extract only the first word of the line before checking ... | null |
tektoncd__pipelines-as-code__2724 | tektoncd/pipelines-as-code | 2,724 | defect | 861a5077def11766ccfb35c21c09ea05964ab354 | d2a9f42f19222a6833bbbf14d675c77e23119d2c | fix: label values sanitization and normalization | ## 📝 Description of the Change
Label values need to [respect strict rules](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set).
> Valid label value:
> * must be 63 characters or less (can be empty),
> * unless empty, must begin and end with an alphanumeric charact... | diff --git a/pkg/formatting/k8labels.go b/pkg/formatting/k8labels.go
index 4274c9c2fa..d9cb822a83 100644
--- a/pkg/formatting/k8labels.go
+++ b/pkg/formatting/k8labels.go
@@ -18,8 +18,8 @@ func CleanValueKubernetes(s string) string {
}
replasoeur := strings.NewReplacer(":", "-", "/", "-", " ", "_", "[", "__", "]"... | 1 | 1 | 0 | [{"id": "G0", "claim": "CleanValueKubernetes trims before replacing characters, so replacements like '/' to '-' can leave a label value ending in a hyphen (e.g. 'foo/' becomes 'foo-') and '[' or ']' expansion after truncation can push the value over 63 characters; the code should replace first, then trim, then enforce ... | null |
telepresenceio__telepresence__2867 | telepresenceio/telepresence | 2,867 | defect | 611eb56463f271c76a9ae3487078424fbad2f292 | 3cffa3de2f0794c7fa15217c0c548030064c664f | Fix inconsistencies when --output=json is used. | ## Description
Some output, like "An update of telepresence ...", "Launching Telepresence Root Daemon", and "Connected to context ..." was printed verbatim as unformatted text instead of being included in the JSON output when the `--output=json` flag was used.
This PR ensures that information like that is discard... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 728cf9a1bd..5ccc446de7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,8 +4,19 @@
- Feature: The traffic-manager can now configure all clients that connect through the `client:` map in
the `values.yaml` file.
+
- Feature: The traffic-manager version is now includ... | 4 | 1 | 0 | [{"id": "G0", "claim": "The `status --json` flag should be removed so there is one json flag that also influences subcommands like list.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The global `--output` flag should accept a `-o` shorthand, like kube... | null |
telepresenceio__telepresence__3803 | telepresenceio/telepresence | 3,803 | defect | 7711f8d7be5fa992be681321183e9068538df52b | 1b088e0d3e57d859933c00e060e13e4e8beb2118 | fix: set security context for init intercept | Fixes: https://github.com/telepresenceio/telepresence/issues/3804 | diff --git a/charts/telepresence-oss/README.md b/charts/telepresence-oss/README.md
index 65508ff464..8512368c0f 100644
--- a/charts/telepresence-oss/README.md
+++ b/charts/telepresence-oss/README.md
@@ -32,6 +32,7 @@ The following tables lists the configurable parameters of the Telepresence chart
| agent.logLevel ... | 3 | 3 | 3 | [{"id": "G0", "claim": "Injecting the init-container securityContext from code may be a breaking change; instead add an initSecurityContext value to the helm chart that is injected as an environment variable and used by the injector, making the securityContext fully configurable like resources.", "category": "design", ... | null |
telepresenceio__telepresence__3872 | telepresenceio/telepresence | 3,872 | defect | 945b5595f7f8f637197190a541f3876182c30a7e | 6122750c51fb430d95d17b33e30d21029d9e8c83 | feat: added agent.initContainer.enabled parameter that can be set in … | …values.yaml to control whether the initContainer injection is enabled/disabled
## Description
A few sentences describing the overall goals of the pull request's commits.
Goal: To fix Issue #3868: Request to add config in values.yaml to disable initContainer injection
Now the initContainer injection can be opt... | diff --git a/CHANGELOG.yml b/CHANGELOG.yml
index 46fd50dec5..4565afc3fb 100644
--- a/CHANGELOG.yml
+++ b/CHANGELOG.yml
@@ -24,8 +24,8 @@
#
# For older changes, see CHANGELOG.OLD.md
items:
- - version: 2.23.0
- date: (TBD)
+ - version: 2.24.0
+ date: 2025-06-08
notes:
- type: feature
titl... | 6 | 5 | 4 | [{"id": "G0", "claim": "Remove the manually inserted `- version:`/`date:`/`notes:` block in CHANGELOG.yml (and its generated release-notes output) and add only the release note itself, starting with `- type: feature`, since the decision on which release it goes into is made later.", "category": "documentation", "verdic... | null |
telepresenceio__telepresence__3903 | telepresenceio/telepresence | 3,903 | defect | 85840f78871deb70332a58e1ebd3e5c16399af71 | 24d0398a99e84ce3ff4841025fe0d72f7dc0f1af | feat: add option to remove agents if they have been unused for longer than agents.maxIdleTime | Signed-off-by: Kuang Yu Heng <yuheng3107@gmail.com>
feat: add logic to update config map to store latest time whenever an active engagement is created
feat: added logic in agent polling mechanism to remove agents if they have been unused for longer than AGENT_MAX_IDLE_TIME
feat: add default value for maxIdleTi... | diff --git a/build-aux/docker/images/Dockerfile.client b/build-aux/docker/images/Dockerfile.client
index 437f587465..8055295e18 100644
--- a/build-aux/docker/images/Dockerfile.client
+++ b/build-aux/docker/images/Dockerfile.client
@@ -48,4 +48,4 @@ RUN apk add --no-cache ca-certificates iptables
COPY --from=telepresen... | 15 | 15 | 3 | [{"id": "G0", "claim": "The agent.maxIdleTime row in the chart README should state the default (\"0h = infinite\" / \"0h (infinite, never cleaned up)\") so readers can see the default does not clean the agent up immediately.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
telepresenceio__telepresence__3904 | telepresenceio/telepresence | 3,904 | defect | 85840f78871deb70332a58e1ebd3e5c16399af71 | 56cfb64201558b4867376724fac690faa6fc3353 | Fix wiretap synchronization issue | Wiretap connection `Close` and `Write` could sometimes be out of sync, so that the `Close` would be executed before the `Write`, causing a "read/write on closed pipe" error. | diff --git a/CHANGELOG.yml b/CHANGELOG.yml
index 4456c27ef8..695ffad1a1 100644
--- a/CHANGELOG.yml
+++ b/CHANGELOG.yml
@@ -24,6 +24,14 @@
#
# For older changes, see CHANGELOG.OLD.md
items:
+ - version: 2.23.3
+ date: (TBD)
+ notes:
+ - type: bugfix
+ title: Requests lost when using wiretap
+ ... | 4 | 1 | 0 | [{"id": "G0", "claim": "The writePump error log should use %v instead of %s when printing the error value.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The loop variable name `ii` in tcp.go's wiretap loop is ambiguous and should be renamed to ... | null |
telepresenceio__telepresence__3972 | telepresenceio/telepresence | 3,972 | defect | 23fefa8b770ad1849505698845a6c99e7fdc3222 | 58676b9aa936b8d9e483e54456d22d4dfebd8cc5 | Thallgren/http matcher | This PR aims to consolidate some functionality that was somewhat scattered before, due to the fact that all HTTP-filtering was implemented in the proprietary version of the traffic-agent. Thanks to some significant contributions from @bgruszka that's no longer the case.
This PR has three main commits:
1. Improve th... | diff --git a/CHANGELOG.yml b/CHANGELOG.yml
index a53f614e92..53938c55f7 100644
--- a/CHANGELOG.yml
+++ b/CHANGELOG.yml
@@ -63,11 +63,11 @@ items:
**Conflict Detection**: Intercepts conflict only when their filters would route the same traffic to different
destinations. Key rules:
- - Di... | 3 | 1 | 1 | [{"id": "G0", "claim": "NewOpValue returns nil for unknown ValueOp types, which could cause nil pointer dereferences in calling code; consider returning a default Value (like NewEqual(v)) or panicking with a descriptive error message instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope... | null |
telepresenceio__telepresence__3980 | telepresenceio/telepresence | 3,980 | defect | 3f159f5208d2766a3406f1512e7fd99e3cfddc75 | e1a269fa261d35eedceee9999f82ab44c89e70a9 | Allow regex support for http header | Regular expression support for http header
Issue: if one user one uses --http-header x-intercept-id: some-name::.* , then if another tries using --http-header with the same key 'x-intercept-id' , it wouldn't allow.
Fix: This change reduces false positives, assuming most different regexes won't match the same i... | diff --git a/cmd/traffic/cmd/agent/fwdstate.go b/cmd/traffic/cmd/agent/fwdstate.go
index 330a7b8e53..0b957c5973 100644
--- a/cmd/traffic/cmd/agent/fwdstate.go
+++ b/cmd/traffic/cmd/agent/fwdstate.go
@@ -102,6 +102,8 @@ func pathsCanMatch(filter1, filter2 string) bool {
}
// valuesCanMatch determines if two matcher.... | 1 | 1 | 1 | [{"id": "G0", "claim": "Treating different regex-vs-regex patterns as non-overlapping is too relaxed — two distinct regexes can still match the same string, so conflicts would be missed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
telepresenceio__telepresence__3996 | telepresenceio/telepresence | 3,996 | defect | 84cdc7ad37ffc5cc3de44bd373e4d102b00ee4a4 | b6128c4b8e7e097cdc06a7c5dac463cd0d9e5136 | Add startupProbe support and refactor manager startup logic | This PR introduces a `startupProbe` configuration for the Traffic Manager to ensure better service readiness detection and reorganizes the manager boot sequence by delaying the HTTP server start until all configurations are initialized.
Some general cleanup was also made. See commit comments for details. | diff --git a/CHANGELOG.yml b/CHANGELOG.yml
index 2618208493..4704b84632 100644
--- a/CHANGELOG.yml
+++ b/CHANGELOG.yml
@@ -39,6 +39,19 @@ items:
attempts to create a global intercept while the setting is disabled, they receive a helpful error
message suggesting the use of `--http-header` or `--htt... | 5 | 4 | 2 | [{"id": "G0", "claim": "In ResolveSvcToPod, the final error return formats the `err` variable, which may be nil when no running pod with a valid container port was found, producing confusing messages like 'cannot find pod for service x.y: <nil>'; use a more descriptive message that does not reference `err`.", "category... | null |
telepresenceio__telepresence__4069 | telepresenceio/telepresence | 4,069 | defect | 2188276415a9c8070e455f6dd18e4363ed543f96 | e526d85ac4576d2e12646b7899197c167d1b255b | Fabricionl/fix ingest command bug | ## Description
This PR fixes issue #4067 where `telepresence ingest <workload> -- command` would fail when the container name was not specified.
**Problem:** `AddInterceptor` and `RemoveInterceptor` couldn't find ingests when the ID format was `<workload>/` (empty container name).
**Solution:**
- Refa... | diff --git a/CHANGELOG.yml b/CHANGELOG.yml
index 64630e8cbf..03f94fe1d2 100644
--- a/CHANGELOG.yml
+++ b/CHANGELOG.yml
@@ -24,6 +24,19 @@
#
# For older changes, see CHANGELOG.OLD.md
items:
+ - version: 2.27.1
+ date: 2026-03-04
+ notes:
+ - type: bugfix
+ title: Fix ingest command lookup when cont... | 5 | 4 | 4 | [{"id": "G0", "claim": "The pull request needs an entry in CHANGELOG.md targeted for version 2.27.1, followed by rerunning make docs-files so the entry lands in the release notes.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new CHANGELOG.ym... | null |
telepresenceio__telepresence__4083 | telepresenceio/telepresence | 4,083 | defect | d7147ca7776e9cdd1be2d3e46f4963d71ec4b0a4 | f7b5076a55924bf41810ff4791c3dc319f41f226 | Fix Docker teleroute network subnet conflicts with Kubernetes cluster CIDRs | ## Description
When using `telepresence connect --docker` or `telepresence compose`, Docker's default IPAM allocates subnets sequentially from RFC 1918 ranges (`172.17.0.0/16`, `172.18.0.0/16`, ...). After a few existing Docker networks, the next allocation can collide with the Kubernetes cluster's service CIDR (e.g... | diff --git a/CHANGELOG.yml b/CHANGELOG.yml
index 40d2ae0045..3859c47b68 100644
--- a/CHANGELOG.yml
+++ b/CHANGELOG.yml
@@ -24,6 +24,18 @@
#
# For older changes, see CHANGELOG.OLD.md
items:
+ - version: 2.27.2
+ date: (TBD)
+ notes:
+ - type: bugfix
+ title: Fix Docker teleroute network subnet conf... | 3 | 3 | 2 | [{"id": "G0", "claim": "The changelog entry targets the already-released 2.27.2 and should instead target 2.27.3.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`make docs-files` should be run after adding the changelog entry so the generated rele... | null |
teleproxy__teleproxy__58 | teleproxy/teleproxy | 58 | defect | f51ea0941f2091f77e2162e784718f306f4b6a81 | 1171deb7a355401983eb832b9293234f513eb749 | Handle buffer allocation failures gracefully instead of crashing | Closes #54.
When `alloc_msg_buffer()` returns NULL under memory pressure (~135K concurrent connections on DD instances), three `assert()` calls in the network data path kill the entire process with SIGABRT. This replaces those fatal asserts with graceful connection teardown — dropping the individual connection instead... | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index bd01c12..863b493 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -117,6 +117,9 @@ jobs:
- name: Run DC Probes Tests
run: make test-dc-probes
+ - name: Run Junk Traffic Resilience Test
+ run: make... | 1 | 1 | 0 | [{"id": "G0", "claim": "Replace the four empty `except OSError: pass` blocks in tests/test_junk_traffic.py with bodies that record intent (an explanatory comment and/or log), keeping the exception type and control flow unchanged.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
teloxide__teloxide__202 | teloxide/teloxide | 202 | defect | bef3464fdcf3e23e744144f6c10f3dcaa8fdefc1 | 798102a7d74f54dfd59f837c7293d2cbcece47d2 | Add Redis storage | 3 serializers are available for storing data in Redis: JSON, Bincode in CBOR. Bincode seems to be the most compact (and, probably, quick), and JSON is (obviously) the most readable.
cc #183 | diff --git a/Cargo.toml b/Cargo.toml
index 7f4a51584..535089a97 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,7 +23,10 @@ authors = [
[badges]
maintenance = { status = "actively-developed" }
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+[features]
+redis-storag... | 3 | 3 | 2 | [{"id": "G0", "claim": "The Redis example should be simpler than the finite-state-machine example — e.g. a bot that memorizes a digit.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "RedisStorage should keep a permanent connection instead of opening a new... | null |
teloxide__teloxide__205 | teloxide/teloxide | 205 | defect | 0ede19c6847cac9977bef922f8ba2087bf81f740 | 2455caa1cfce2aa693716ce5ff9255104757c829 | Implement typed commands | Closes #152 | diff --git a/Cargo.toml b/Cargo.toml
index 7f4a51584..70fcf3358 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,7 +45,7 @@ futures = "0.3.1"
pin-project = "0.4.6"
serde_with_macros = "1.0.1"
-teloxide-macros = "0.2.1"
+teloxide-macros = {git="https://github.com/teloxide/teloxide-macros", branch="dev"}
[dev-depen... | 9 | 7 | 3 | [{"id": "G0", "claim": "Rename the ParseError variant LessArguments to TooFewArguments for consistency with the other variant names.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the ParseError variant ManyArguments to TooManyArguments f... | null |
teloxide__teloxide__285 | teloxide/teloxide | 285 | defect | 0c6a81e1b6a4f70d403e667b32a7079f152e8cba | a0d0e22ba4420189cd31054c1e82c3d9aa3df459 | Conditionally add teloxide-macros crate and reexport macros | This PR fixes https://github.com/teloxide/teloxide/issues/283 | diff --git a/Cargo.toml b/Cargo.toml
index 379911456..d92703f7a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,6 +30,8 @@ bincode-serializer = ["bincode"]
frunk- = ["frunk"]
+macros = ["teloxide-macros"]
+
nightly = [] # currently used only for `README.md` tests
[dependencies]
@@ -57,7 +59,7 @@ serde_cbor = {... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add `#![cfg_attr(all(docsrs, feature = \"nightly\"), feature(doc_cfg))]` to the crate root and `#[cfg_attr(all(docsrs, feature = \"nightly\"), doc(cfg(feature = \"macros\")))]` to the items reexported under `#[cfg(feature = \"macros\")]`, so the documentation shows notes about the `cfg`.", "cate... | null |
teloxide__teloxide__356 | teloxide/teloxide | 356 | defect | afa9c8f8f583125c72ef12034dc236b77ef3561a | eac67af27a06699102c092223d6c8ff94d34ddc5 | Fix the storage persistency bug | Closes https://github.com/teloxide/teloxide/issues/304, https://github.com/teloxide/teloxide/issues/302.
- Add `Storage::get_dialogue`.
- Do not return a dialogue from `Storage::{remove_dialogue, update_dialogue}`.
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4761c3d0f..d1e267b84 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [unreleased]
+### Added
+
+ - `Storage::get_dialogue`
+
+### Changed
+
+ - Do not return a dialogue f... | 5 | 3 | 1 | [{"id": "G0", "claim": "The new `Storage::get_dialogue` entry in CHANGELOG.md should get a function description.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `D: ToOwned<Owned = D>` bound added to `InMemStorage` and the `dialogues_repl` functi... | null |
teloxide__teloxide__369 | teloxide/teloxide | 369 | defect | 8d8041ad6d73efd00a15943093413912704ecd14 | 03837c66f2574e98454dc70a4dc5a7ec92a26c7a | Try to remove a dialogue in `Storage::remove_dialogue` even if it does not exist | Try to remove a dialogue in `Storage::remove_dialogue` even if it does not exist (and throw an error if so).
Also, enhance the docs a little bit.
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9491dffc2..11d24a0d0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,11 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- - `Storage::get_dialogue`
+ - `Storage::get_dialogue` to obtain a dialogue indexed by a cha... | 7 | 6 | 0 | [{"id": "G0", "claim": "In InMemStorage::remove_dialogue, use .map_or(Err(InMemStorageError::RowNotFound), |_| Ok(())) instead of .map_or_else with a closure.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Storage::get_dialogue doc comment s... | null |
teloxide__teloxide__550 | teloxide/teloxide | 550 | defect | b07810769466569503063a6be7bf4f852eb0124f | 2c2be46561f9116491285033cf2c98bc5ef62f9a | Refactor `BotCommand` trait & related stuff | 1. Rename `BotCommand` -> `BotCommands`
2. Implement #531 (closes #531)
3. Some unrelated documentation/test/readme/changelog fixes
Note that this PR also requires changes from https://github.com/teloxide/teloxide-macros/pull/15 | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1e2927267..5cbff6c32 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,6 +6,9 @@ on:
name: Continuous integration
+env:
+ RUSTFLAGS: "--cfg CI_REDIS"
+
jobs:
style:
runs-on: ubuntu-latest
diff --git a/CHANGELO... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new `username_from_bot` is not used anywhere and has the wrong shape (async, takes `&impl Requester` and calls `get_me` with `expect`s); the API should instead be reworked around `teloxide::types::Me` — per the thread's outcome, add a synchronous `username_from_me(&Me)` that invokes `usernam... | null |
teloxide__teloxide__753 | teloxide/teloxide | 753 | defect | 512e785999641e224ed5594f2db197901f457093 | aaa4352fefa414959d46db6876a6ec97f082b514 | Extend dialogue storages with RocksDB | The implementation is straightforward and uses a [`MultiThread` database instance](https://docs.rs/rocksdb/latest/rocksdb/index.html). The `delete_chat` method has an excessive check, that allows raising the `DialogueNotFound` exception, though I'm not sure why anybody would need this. Should we remove it? | diff --git a/Cargo.toml b/Cargo.toml
index 65e5135ae..a7bf0700b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,13 +12,14 @@ license = "MIT"
exclude = ["media"]
[features]
-default = ["native-tls", "ctrlc_handler", "teloxide-core/default", "auto-send"]
+default = ["native-tls", "ctrlc_handler", "teloxide-core/defa... | 2 | 1 | 0 | [{"id": "G0", "claim": "The IDE/TOML-formatter reformatting of Cargo.toml should be reverted and the file left as-is, since cargo fmt does not format .toml files and contributors may use different local formatters.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id":... | null |
teloxide__teloxide__837 | teloxide/teloxide | 837 | defect | 6c6ae76dec78db0e438ee7c543d71c122fd58cf5 | b91c79e524b9f58fdde8ce4a1ef4d856005b84b4 | fix split parser for tuple struct with len <2 | fixes #834 | diff --git a/crates/teloxide-macros/src/fields_parse.rs b/crates/teloxide-macros/src/fields_parse.rs
index 5d9d320a0..b06e1d471 100644
--- a/crates/teloxide-macros/src/fields_parse.rs
+++ b/crates/teloxide-macros/src/fields_parse.rs
@@ -125,8 +125,8 @@ fn parser_with_separator<'a>(
})?;
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `found` count in the TooManyArguments error (`#expected + 1`) is probably wrong, because `splitted` might be longer than one extra argument.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The pull request should update ... | null |
teloxide__teloxide__862 | teloxide/teloxide | 862 | defect | 430175278d5ae9617095117221f510982feb278c | dce5ee6920792158434dc060c1ce0e12f96f6d46 | `#[command(hide)]` to hide a command from the help message | <!--
Before making this PR, please ensure the following:
- `CHANGELOG.md` is updated (if necessary).
- Documentation and tests are updated (if necessary).
-->
## Todos:
- [x] Update the `CHANGELOG.md`
- [x] Tests
- [x] Feature documentation
- [x] Deprecate `#[command(description = "off")]`
## Ref
https:/... | diff --git a/crates/teloxide-macros/CHANGELOG.md b/crates/teloxide-macros/CHANGELOG.md
index 19edca639..1805bac8a 100644
--- a/crates/teloxide-macros/CHANGELOG.md
+++ b/crates/teloxide-macros/CHANGELOG.md
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## unreleased
... | 3 | 3 | 1 | [{"id": "G0", "claim": "Mark the temporary `description == \"off\"` check in `description_is_enabled` with a FIXME comment so it is eventually removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Restructure the `Command` construction: remove... | null |
tempesta-tech__tempesta__1077 | tempesta-tech/tempesta | 1,077 | defect | 56e0889501e7f7234136008d2caaead79954a8dc | 0952cbb2c5a725ef37faee62cccbf627ea4bf97b | Fix unstable JS challange passing | Related to JS challenge issue described in #1074
- Synchronize computation of delay in JS Challange between JS and Tempesta code
- Don't close client connection if unchallenged resources was requested before JS challenge is passed. Blocking of clients that makes too many requests with incorrect cookie values is ... | diff --git a/etc/js_challenge.js.tpl b/etc/js_challenge.js.tpl
index 4b98c519e2..a3f464f0e3 100644
--- a/etc/js_challenge.js.tpl
+++ b/etc/js_challenge.js.tpl
@@ -1,10 +1,19 @@
-var prefix = "[% STICKY_NAME %]";
+var c_name = "[% STICKY_NAME %]";
var delay_min = [% DELAY_MIN %];
var delay_range = [% DELAY_RANGE %];
-... | 5 | 4 | 0 | [{"id": "G0", "claim": "The @delay_range field description in the TfwCfgJsCh doc comment (and the Wiki) should be reworded to say it is the maximum range for the random timeout added to delay_min.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ins... | null |
tempesta-tech__tempesta__1081 | tempesta-tech/tempesta | 1,081 | defect | 5e13957b292bbab0b8a58cb627427de3f7236ea5 | 12f1d45ca1cfa4f3a958ca10de6141f4342a4092 | Use struct sockaddr_in6 for all addresses | IPv4 addresses are represented as IPv4-mapped IPv6. | diff --git a/tempesta_fw/addr.c b/tempesta_fw/addr.c
index 01b8529224..8face6c386 100644
--- a/tempesta_fw/addr.c
+++ b/tempesta_fw/addr.c
@@ -33,22 +33,24 @@ static void
validate_addr(const TfwAddr *addr)
{
/* At this point we are not going to support addresses other than
- * IPv4 and IPv6, so we check it here, s... | 5 | 4 | 0 | [{"id": "G0", "claim": "The comment added to test_http_sticky.c says 'for the reset of' where it should say 'for the rest of'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should use the COOKIE_TIMESTAMP constant instead of the bare... | null |
tempesta-tech__tempesta__1141 | tempesta-tech/tempesta | 1,141 | defect | 90c22e08037f414aaf73caf7d3ab4532b803b37a | e8eb4318afe02d8a396b2f30902eeddc32e65b88 | Fixes on serving requests with errors | Requires #1140 and built upon it. Required for #1043
Changes:
- If error has happened during request processing, don't close client connection immediately, send all pending requests first. Don't silently drop request to avoid breaking of the request-response sequence of client. #962
- Replace `TFW_HTTP_SUSPECTED... | diff --git a/tempesta_fw/cache.c b/tempesta_fw/cache.c
index 63f22f24e7..3b54677b10 100644
--- a/tempesta_fw/cache.c
+++ b/tempesta_fw/cache.c
@@ -111,9 +111,9 @@ typedef struct {
long hdrs;
long body;
long hdrs_304[TFW_CACHE_304_HDRS_NUM];
+ DECLARE_BITMAP (hmflags, _TFW_HTTP_FLAGS_NUM);
unsigned char versi... | 5 | 3 | 0 | [{"id": "G0", "claim": "It is questioned whether list_empty_careful() on cli_conn->seq_queue is safe against concurrent __list_cut_position() called from tfw_http_resp_fwd().", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why the reques... | null |
tempesta-tech__tempesta__1159 | tempesta-tech/tempesta | 1,159 | defect | fe8e37dc243dc8bc2cfca2ceb39eb396e3835111 | 67690db9618d858c3613dacd56803f94d61757eb | Fix #1157 | The probles in in nested __kernel_fpu_begin_bh() calls firstly in DEFINE_TLS_TEST()->kernel_fpu_begin() and secondly in
ttls_ecp_group_free()->ttls_bzero_safe()->kernel_fpu_begin().
The fix moves all the TLS unit tests to test_tls.c from tls/ and
make each test responsible for calling kernel_fpu_{begin,end}().
Th... | diff --git a/tempesta_fw/t/unit/test_tls.c b/tempesta_fw/t/unit/test_tls.c
index b6093e7b94..7fbaf62b60 100644
--- a/tempesta_fw/t/unit/test_tls.c
+++ b/tempesta_fw/t/unit/test_tls.c
@@ -1,7 +1,7 @@
/**
* Tempesta FW
*
- * Copyright (C) 2018 Tempesta Technologies, Inc.
+ * Copyright (C) 2018-2019 Tempesta Technol... | 2 | 1 | 0 | [{"id": "G0", "claim": "The replacement of ttls_free() with kfree() in ttls_mpi_free() needs justification, since ttls_free() is still mapped to kfree() and widely used across the tls module.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The tests' 'passe... | null |
tempesta-tech__tempesta__1266 | tempesta-tech/tempesta | 1,266 | defect | 105a766596ba8cd818ada3d8142fd35678137ed4 | acc6c363391081450afad07af4576feddaf1ec3e | vhost selection by sticky sessions | The patchset adds `vhost` caching in HTTP sessions. We now save `vhost` after the first request in a session is processed, and then reuse it for other requests in the session, thus avoiding the selection procedure which may be quite costly.
(fixes https://github.com/tempesta-tech/tempesta/issues/1043) | diff --git a/tempesta_fw/http.c b/tempesta_fw/http.c
index a94a53d98d..4363b275a3 100644
--- a/tempesta_fw/http.c
+++ b/tempesta_fw/http.c
@@ -3353,6 +3353,20 @@ tfw_http_req_process(TfwConn *conn, const TfwFsmData *data)
TFW_INC_STAT_BH(clnt.msgs_otherr);
}
+ if (req->sess) {
+ write_lock(&req->sess->lock);
+ ... | 2 | 2 | 2 | [{"id": "G0", "claim": "req must not be accessed after tfw_http_send_resp()/tfw_cache_process() because the request can be sent out or even destroyed there; the vhost value should be saved right after the vhost is determined (same function, line 3219) and session-specific operations should be moved to http_sess.c.", "c... | null |
tempesta-tech__tempesta__1323 | tempesta-tech/tempesta | 1,323 | defect | 99d75b05c06bcbc3895782cafd2bdb848361098f | 087018c96f60b60490b353f150d05329f59c96c9 | Close the connection after sending tls alerts in the queue | #1308
- Close the socket after sending all pending data on TCP_CLOSE_WAIT and internal errors.
- Close the connection after sending fatal tls alerts and close_notify alert in the queue
- Not encryption for TTLS_SERVER_FINISHED, because encryption is done in `ttls_write_finished()`.
- Sending close_notify al... | diff --git a/tempesta_fw/sock.c b/tempesta_fw/sock.c
index 9e3ad5581e..56a89d35f3 100644
--- a/tempesta_fw/sock.c
+++ b/tempesta_fw/sock.c
@@ -866,17 +866,21 @@ ss_tcp_data_ready(struct sock *sk)
if (ss_tcp_process_data(sk) &&
!(SS_CONN_TYPE(sk) & Conn_Stop)) {
/*
- * Drop connection in case of interna... | 11 | 9 | 3 | [{"id": "G0", "claim": "ss_tcp_state_change() should replace ss_linkerror() with ss_close() on the FIN/TCP_CLOSE_WAIT path, since after receiving FIN we still should send our data.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G4", "claim": "Please add TODO #861 ... | null |
tempesta-tech__tempesta__1330 | tempesta-tech/tempesta | 1,330 | defect | 8fe6b3329c3071992995343ef738c3d5a8c187fa | 9667c83dc3d0a11e533dbf2b82190e30cb5bb3b9 | remove "off" and "trail" fields from TfwFsmData | TLS layer feeds `tfw_http_msg_process()` with multiple skb's at a time. As the smallest possible skb can be as small as one byte, the tail where TLS record tag is located, can span over two or more skb's. Previously we assumed that never happens, but it does depending on network conditions.
It's hard to deal with he... | diff --git a/tempesta_fw/http.c b/tempesta_fw/http.c
index bfd480d306..c1e8d81291 100644
--- a/tempesta_fw/http.c
+++ b/tempesta_fw/http.c
@@ -3943,10 +3943,25 @@ tfw_http_msg_process(void *conn, TfwFsmData *data)
{
int r = T_OK;
unsigned int trail = data->trail;
- struct sk_buff *next;
+ struct sk_buff *next, *la... | 3 | 3 | 0 | [{"id": "G0", "claim": "The loops added to tfw_http_msg_process to locate and free trailing skbs look like a workaround and traverse the skb list several times, so the pull request should not introduce more skb-list loops (and should mark the improbable loop condition `unlikely`).", "category": "design", "verdict": "su... | null |
tempesta-tech__tempesta__1358 | tempesta-tech/tempesta | 1,358 | defect | 1f47da6752b7a1f68163f79d7b63c88dc0b5fb1b | fb325c75c5be7d48fade5821d3dc5c352c2f66e3 | closer to rfc parsing date | Fix #1202
- We must set the HTTP flags, if only the date is successfully parse.
- Parsing date according to rfc
- Fix `__year_day_secs()`.
- If-Modified-Since header parsing tests.
- Fix date format in tests. | diff --git a/tempesta_fw/http_parser.c b/tempesta_fw/http_parser.c
index ebb489802a..f697403de3 100644
--- a/tempesta_fw/http_parser.c
+++ b/tempesta_fw/http_parser.c
@@ -2453,10 +2453,10 @@ STACK_FRAME_NON_STANDARD(__req_parse_referer);
/* Number of days before epoch including leap years. */
#define EPOCH_DAYS (1970... | 8 | 6 | 2 | [{"id": "G0", "claim": "Replace the `__fsm_sz < 3 ? __fsm_sz : 3` conditional with `n = __fsm_sz & 3` here and in all similar places - branches are too expensive in the hot parser.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hand-optimized `(un... | null |
tempesta-tech__tempesta__1367 | tempesta-tech/tempesta | 1,367 | defect | 075966eb6e0f8ca141e2e7b48342eafc2fa27916 | 00de00a4ba5741acb91b70ceed1b953f7202cae2 | fix errors found by static analysers | Fix #1185
- Fix dead assignments.
- Fix dereference of null pointer (`curr_cert_conf`).
- Fix dereference of null pointer (`pos`).
- Fix use uninitialized argument value.
- Add check on NULL in tests.
| diff --git a/tempesta_fw/addr.c b/tempesta_fw/addr.c
index 458bce5222..837731df1f 100644
--- a/tempesta_fw/addr.c
+++ b/tempesta_fw/addr.c
@@ -125,7 +125,6 @@ tfw_addr_pton_v6(const TfwStr *s, TfwAddr *addr)
} else {
++c;
k = 0;
- p = c->data;
}
hole = (words[i] != -1) ? ++i : i;
... | 3 | 1 | 0 | [{"id": "G0", "claim": "The `++p` statement a few lines above in tfw_addr_pton_v6 is also a dead assignment that cppcheck will flag, so the dead-assignment warning was not fixed correctly.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The rem... | null |
tempesta-tech__tempesta__1371 | tempesta-tech/tempesta | 1,371 | defect | 0dd7649358c19a5d481f7c123fd2d28d4ebe0b82 | 338aa8b54465a50fdc002b006ac3233670e8e357 | Process method override | fix #1369
Method override masks real request properties, non-idempotent methods can hide behind idempotent, method is used as a key in cache subsystem to store and look up cached responses. Thus hiding real method can spoil responses for other clients. Use the real method for accurate processing.
Don't rewrite t... | diff --git a/etc/tempesta_fw.conf b/etc/tempesta_fw.conf
index bf15206b23..ed21735196 100644
--- a/etc/tempesta_fw.conf
+++ b/etc/tempesta_fw.conf
@@ -984,6 +984,7 @@
# http_host_required true|false;
# http_methods [METHOD]...;
# http_ct_required true|false;
+# http_method_override_allowed tr... | 4 | 1 | 0 | [{"id": "G0", "claim": "The new http_method_override_allowed option should be described in the Wiki, preferably with a reference to https://cpdos.org/.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In frang_http_methods_override(), the second par... | null |
tempesta-tech__tempesta__1413 | tempesta-tech/tempesta | 1,413 | defect | 50ce6e289b989e396d7a6d17797b23f843efa21c | 4c9e778470fa0a39d4306e28e7c8688aa7db10c3 | Fix parsing short headers | fix #1412 | diff --git a/tempesta_fw/http_parser.c b/tempesta_fw/http_parser.c
index a3f1759485..9e5ee79761 100644
--- a/tempesta_fw/http_parser.c
+++ b/tempesta_fw/http_parser.c
@@ -1032,6 +1032,8 @@ __FSM_STATE(st_curr) { \
__FSM_STATE(RGen_HdrOtherN) { \
__FSM_MATCH_MOVE(token, RGen_HdrOtherN, 0); \
if (likely... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add functional test coverage for the parser change: a test case sending an h2c message to the current HTTP/1 parser, and functional tests for the H1 and H2 cases.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tempesta-tech__tempesta__1450 | tempesta-tech/tempesta | 1,450 | defect | ced091844f43d263e4ee06eb1134eed149265d20 | 3bfe169f935b320bd68d0c75d74274fbea74d1cf | Fix crash | fix #1408
- copying each header to the cache, we must leave space for the string header, also, if there are duplicate headers, then we must write the duplicate header.
Earlier in the presence of duplicates, there was a double shift at the beginning of the copying procedure:
CSTR_MOVE_HDR
CSTR_WRITE_HDR
**CSTR_M... | diff --git a/tempesta_fw/cache.c b/tempesta_fw/cache.c
index 13f28142e9..580f364204 100644
--- a/tempesta_fw/cache.c
+++ b/tempesta_fw/cache.c
@@ -996,7 +996,7 @@ __tfw_cache_strcpy(char **p, TdbVRec **trec, TfwStr *src, size_t tot_len,
{
long copied = 0;
- while (copied < src->len) {
+ while (copied < src->len &&... | 1 | 1 | 1 | [{"id": "G0", "claim": "The added `tot_len - copied` condition in __tfw_cache_strcpy() is a strange workaround that masks the issue root — why a new string copied to the cache could be bigger than the response length in total, a question that needs to be fixed — and it messes up the cache entry so the response is never... | null |
tempesta-tech__tempesta__1460 | tempesta-tech/tempesta | 1,460 | defect | 0ed6eaac313e12b8cafbae6cccf520bd0f378747 | 3015856e9efbb385cc57cf35f92cd40dd101d633 | Inherit sticky cookie configuration as stated in wiki | Inherit sticky cookie configuration as stated in wiki
Main changes:
- 'sticky' directive at top-level now updates default values instead of configuring implicit default vhost. Named vhosts inherit 'sticky' directive if it was defined at top-level.
- implicit default vhost now inherits effective defaults from 'stic... | diff --git a/tempesta_fw/http_sess.c b/tempesta_fw/http_sess.c
index a3771f5675..caab4398f2 100644
--- a/tempesta_fw/http_sess.c
+++ b/tempesta_fw/http_sess.c
@@ -368,12 +368,12 @@ tfw_http_sticky_get_req(TfwHttpReq *req, TfwStr *cookie_val)
#define T_DBG_PRINT_STICKY_COOKIE(addr, ua, sv) \
do { \
char a... | 2 | 1 | 0 | [{"id": "G0", "claim": "The copyright headers of the touched session-configuration files should be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The project wiki should be updated with configuration examples and generic descriptions fo... | null |
tempesta-tech__tempesta__1501 | tempesta-tech/tempesta | 1,501 | defect | e3342e7b6ba1c49b7c961a446024fa282781a37a | 7f3a55197d2bdf6cb7c2029e13f6655d4d8c0bf9 | added the ETag specific alphabet | Fix #1500 | diff --git a/tempesta_fw/http_parser.c b/tempesta_fw/http_parser.c
index 32fac37a86..ea532e9c65 100644
--- a/tempesta_fw/http_parser.c
+++ b/tempesta_fw/http_parser.c
@@ -2473,7 +2473,7 @@ __parse_etag(TfwHttpMsg *hm, unsigned char *data, size_t len)
*/
__FSM_STATE(I_Etag_Val) {
weak = parser->hdr.flags & TFW_S... | 6 | 4 | 1 | [{"id": "G0", "claim": "The comment `/* End of token */` in __parse_etag should be changed to `/* End of ETag */` now that the parser matches the ETag string instead of a token.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new etag matching ... | null |
tempesta-tech__tempesta__1533 | tempesta-tech/tempesta | 1,533 | defect | 13079e172cf2ee90c571043c98566d1cef304a87 | 58248aaeb3b754892e520592ddb5c72da166cfc3 | PURGE w/ update implementation (#1516) | Note that while this seems to work for me, there are some quirks I didn't fix yet. For example:
- "X-Tempesta-Cache" is forwarded to an upstream. Probably need to mark it as an HBH header somewhere.
- The upstream GET request comes with a "Content-Length: 0" header.
There might be other similar problems. I need ... | diff --git a/fw/cache.c b/fw/cache.c
index 683c62b5bb..3c3d9442b7 100644
--- a/fw/cache.c
+++ b/fw/cache.c
@@ -1490,7 +1490,11 @@ tfw_cache_copy_resp(TfwCacheEntry *ce, TfwHttpResp *resp, TfwStr *rph,
}
/* Request method is a part of the cache record key. */
- ce->method = req->method;
+ if (unlikely(req->method ... | 13 | 9 | 5 | [{"id": "G0", "claim": "It would be more convenient to use _TFW_HTTP_METH_NONE instead of the literal 0 when resetting the method override for PURGE requests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The X-Tempesta-Cache header is forwarde... | null |
tempesta-tech__tempesta__1541 | tempesta-tech/tempesta | 1,541 | defect | 7e5c6a841298935c35bbca829a239d5253da63f8 | 7bafaec689e0f56d4efd2d99f9278be3eefd942b | fix alignment & realloc bugs #1540 | This patch should fix the alignment and realloc() problems described
in issue #1540. It also adds a couple of unit tests. | diff --git a/fw/pool.c b/fw/pool.c
index 08f1655278..a93d7e6c6f 100644
--- a/fw/pool.c
+++ b/fw/pool.c
@@ -119,13 +119,12 @@ void *
__tfw_pool_alloc(TfwPool *p, size_t n, bool align, bool *new_page)
{
void *a;
+ unsigned int p_off;
*new_page = false;
+ p_off = align ? TFW_POOL_ALIGN_SZ(p->off) : p->off;
- if ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The align branch in __tfw_pool_alloc's fast path should be restructured to compute the offset once (with likely(align)) and carry a comment explaining that there are no two conditional jumps and no double offset computation, while the code stays well optimized.", "category": "maintainability", "... | null |
tempesta-tech__tempesta__1560 | tempesta-tech/tempesta | 1,560 | defect | e611d43439f866a2ce9697852d3d5a44ed30b4bc | 533d2124d07ff83ee786f543f834f8014d9305aa | Handle Content-Type in GET requests, fixes #1296 | Fixes #1296
Considerations. For methods: GET, HEAD, DELETE, CONNECT, TRACE requests with payload to be dropped.
CONNECT method not supported now and need considerably more work to support.
For HTTP/1.1 payload indicated by presence of Content-Length or Transfer-Encoding headers. Even if Content-Length is zero... | diff --git a/fw/http.c b/fw/http.c
index 952d4b0464..6b40163300 100644
--- a/fw/http.c
+++ b/fw/http.c
@@ -5485,9 +5485,20 @@ tfw_http_req_process(TfwConn *conn, TfwStream *stream, const TfwFsmData *data)
* We don't rewrite the method string and don't remove override header
* since there can be additional interme... | 11 | 8 | 0 | [{"id": "G0", "claim": "Do not leave dead/commented-out code in the commits: the commented-out CONNECT EXPECT_BLOCK_REQ block in content_type_in_bodyless_requests should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Align the new pa... | null |
tempesta-tech__tempesta__1570 | tempesta-tech/tempesta | 1,570 | defect | abc9c219ea9409ac75e6ec4a7246240a7f7eb07a | 408dc40da8aafb1cc2dd6efe84bfc0aba1a53618 | Scheme parsing fix (https) and extending (ws, wss) | Contributes to #755
Signed-off-by: Aleksey Mikhaylov <aym@tempesta-tech.com> | diff --git a/fw/http_parser.c b/fw/http_parser.c
index 8980734b4a..c72475411e 100644
--- a/fw/http_parser.c
+++ b/fw/http_parser.c
@@ -3838,15 +3838,48 @@ tfw_http_parse_req(void *req_data, unsigned char *data, size_t len,
if (likely(c == '/'))
__FSM_JMP(Req_UriMark);
- if (likely(__data_available(p, 7)
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The scheme-parsing code (and, per M002, also the Req_UriAuthorityStart/Req_UriAuthority/Req_UriAuthorityIPv6/Req_UriAuthorityResetHost/Req_UriAuthorityEnd/Req_UriPort states) should be moved out of the hot Req_Uri area into a new cold state, jumping to it when c != '/', i.e. placed after the \"I... | null |
tempesta-tech__tempesta__1571 | tempesta-tech/tempesta | 1,571 | defect | 5f2851db0eb63c1f71595598a1346b3abb39be9f | 8d9320042c2c3d7a0218c9870f5777b234d1d64c | Websocket upgrade directive implementation | Contributes to #755
Considerations.
It seems that to confrom to [RFC7230#section-6.6](https://datatracker.ietf.org/doc/html/rfc7230#section-6.6) we have to be prepared to process requests with `Connection: upgrade` and `Expect: 100-continue` set at the same time and respond with 100 before going further with the ... | diff --git a/fw/http.c b/fw/http.c
index bcd2e39056..7a0877465d 100644
--- a/fw/http.c
+++ b/fw/http.c
@@ -5540,6 +5540,13 @@ tfw_http_req_process(TfwConn *conn, TfwStream *stream, struct sk_buff *skb)
"request dropped: cannot find appropriate "
"virtual host");
TFW_INC_STAT_BH(clnt.msgs_otherr);
+ }... | 10 | 7 | 1 | [{"id": "G0", "claim": "The added `else if (unlikely(test_bit(TFW_HTTP_B_CONN_EXTRA, req->flags)))` line would fit in 80 characters, so it need not be broken across lines.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Now that this PR implement... | null |
tempesta-tech__tempesta__1576 | tempesta-tech/tempesta | 1,576 | defect | 46dd34d7c9cfd5991e13ffadd9280efa6f8565ee | 207ff27c82c70a29c8c05f7828f6de97b0255340 | Connection header parsing fix for well-known prefixed headers | Fixes https://github.com/tempesta-tech/tempesta/issues/1579
Fix of `Connection` header parsing bug discovered.
Bug emerges when token name starts exactly with name of well-known option (`close`) or specially processed header (`keep-alive`).
PR includes fix and new unit test to cover this case.
Signed-off-by... | diff --git a/fw/http_parser.c b/fw/http_parser.c
index 5f53214f4d..d15daf67ef 100644
--- a/fw/http_parser.c
+++ b/fw/http_parser.c
@@ -1432,14 +1432,14 @@ __parse_connection(TfwHttpMsg *hm, unsigned char *data, size_t len)
/*
* Save parsed data to list of raw hop-by-hop headers if data doesn't match
- * to @name a... | 3 | 3 | 3 | [{"id": "G0", "claim": "The I_ConnTok token-end logic sits in the wrong state and uses the new _saved_p field; the parser should apply the flags in the designated EoT/end-of-token state so that _saved_p is not needed and __hbh_parser_add_data() is called only once.", "category": "design", "verdict": "supported", "prior... | null |
tempesta-tech__tempesta__1603 | tempesta-tech/tempesta | 1,603 | defect | 32a282526555353747ecb20aa5fbdc9f58812830 | 55418feae976fffea6508bc022203e87c23363d5 | Implementation of HTTP/2 fuzzer | Contributes to #1297
What was done here:
- added implementation of HTTP/2 fuzzer;
- added more explicit definition of buffer overflow that is storing generated message. | diff --git a/fw/hpack.c b/fw/hpack.c
index dea6570f6f..cf28ffb0ef 100644
--- a/fw/hpack.c
+++ b/fw/hpack.c
@@ -1463,6 +1463,12 @@ tfw_hpack_decode(TfwHPack *__restrict hp, unsigned char *__restrict src,
T_DBG3("%s: value length: %lu\n", __func__, hp->length);
+ if (!hp->length) {
+ T_DBG3("%s: zero-length ... | 7 | 7 | 0 | [{"id": "G0", "claim": "Update the copyright year in fw/t/fuzzer.c to 2015-2022 and the module version to 0.2.0.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "In addch() the if/else should follow the kernel coding style, without braces around t... | null |
tempesta-tech__tempesta__1628 | tempesta-tech/tempesta | 1,628 | defect | b68c8215deda994f299b6f04c404d8f321afc9a0 | 30de4666612c142e547eda1f5f808c41627fee83 | Custom HTTP redirects (Unification) | https://github.com/tempesta-tech/tempesta/issues/856
Remark:
The body of the js challenge redirect can consist of chunks (`tfw_http_sticky_build_redirect()`), but `tfw_h2_frame_local_resp()` is not ready to work with such a body, therefore, to avoid problems, it was temporarily decided to expand such a body into a ... | diff --git a/fw/http.c b/fw/http.c
index c408da6db4..e9a75feb86 100644
--- a/fw/http.c
+++ b/fw/http.c
@@ -119,9 +119,12 @@
#define RESP_BUF_LEN 128
#define URL_BUF_LEN 1024
+#define BODY_BUF_LEN 2048
static DEFINE_PER_CPU(char[RESP_BUF_LEN], g_buf);
static DEFINE_PER_CPU(char[URL_BUF_LEN], g_url_buf);
+stat... | 8 | 7 | 1 | [{"id": "G0", "claim": "The `*action = (TfwHttpActionResult){...}` compound-literal assignments in `tfw_http_tbl_scan()` should be replaced with straightforward field assignments like `action->type = ...; action->vhost = ...;`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
tempesta-tech__tempesta__1666 | tempesta-tech/tempesta | 1,666 | defect | be8b27729f69fbff9a194326129023bc7c3df9b3 | c892828b2e5649688f21a3b4c9904faf02e0e84e | fw/t/unit: Unit tests fixes | * Fixed the issue, when only 1 byte chunk was actually used for testing
* Fixed memory leakage
* Fixed early chunks deallocation for http1 tests causing multiple failures
Signed-off-by: Petr Vyazovik <xen@f-m.fm> | diff --git a/fw/t/unit/test.h b/fw/t/unit/test.h
index 2f6ff5d2e3..1575e86d19 100644
--- a/fw/t/unit/test.h
+++ b/fw/t/unit/test.h
@@ -115,7 +115,8 @@ do { \
TEST_MPART_NAME(unit, assertion, part)(void)
#define TEST_MPART_DEFINE(unit, assertion, cnt, ...) \
- static void (*unit ##__ ##assertion ##__tarr[cnt])... | 1 | 1 | 0 | [{"id": "G0", "claim": "The tfw_frames_chunks_free() call added at the end of the http1 fuzzer test seems unnecessary because other chunks users like FOR_REQ() rely on any following test freeing the chunks in tfw_init_frames(), so the reviewer asks why it is needed and suggests moving the chunks freeing to the end of T... | null |
tempesta-tech__tempesta__1679 | tempesta-tech/tempesta | 1,679 | defect | f8369953d63f180b6c883c4d218c4cc0199c3345 | e06fff714ce5d16cc78c2703fee6231c5bab3a14 | Split unit tests to avoid compilation warnings | Currently, while building unit tests, there is a warning: `note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’`.
Split large individual test functions and the test suite itself. | diff --git a/fw/t/unit/test.c b/fw/t/unit/test.c
index a2dfc901e3..fb6c82fb18 100644
--- a/fw/t/unit/test.c
+++ b/fw/t/unit/test.c
@@ -21,6 +21,7 @@
#include <linux/types.h>
#include <linux/module.h>
#include "test.h"
+#include "test_http_parser_defs.h"
int test_fail_counter;
test_fixture_fn_t test_setup_fn;
@@ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The TEST_MPART_DEFINE lines (and the same for the h2 version) are too wide and should be wrapped to fit the width limit.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment above the H2_* parts-count defines reads \"http1 te... | null |
tempesta-tech__tempesta__1701 | tempesta-tech/tempesta | 1,701 | defect | 2529df2277f5b91de49c4ff94ed3a0957807cd71 | 54084163878b5423ae48775424d8b9f9a46e14e2 | Use separate object file copies for unit tests | Kernel build scripts may rewrite object files in place, and so during parallel builds there is a possibility of having concurrent writers changing files `str_avx2.o`, `http_parser.o`, `http_sess.o`, `str.o`, `ss_skb.o`, `msg.o`, and `http_msg.o`. This race condition may cause builds to fail with cryptic messages.
Th... | diff --git a/fw/t/unit/Makefile b/fw/t/unit/Makefile
index 78c473ff29..4561eccde7 100644
--- a/fw/t/unit/Makefile
+++ b/fw/t/unit/Makefile
@@ -29,15 +29,15 @@ obj-m += tfw_test.o
t-srcs = $(wildcard $(obj)/*.c)
t-objs = $(patsubst %.c, %.o, $(t-srcs))
ifdef AVX2
- t-objs += ../../str_avx2.o
+ t-objs += str_avx2.o
e... | 1 | 1 | 0 | [{"id": "G0", "claim": "At least a comment should be added to fw/t/unit/Makefile explaining the subtle fix, otherwise the include-only source files will cause confusion.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tempesta-tech__tempesta__1721 | tempesta-tech/tempesta | 1,721 | defect | bbf3dadfb53210adbb0254e835ae901e061da847 | 23b1931e7a995d5ceb39a549a25b6078ce1d33a2 | #1697 Fix header field name length check | https://github.com/tempesta-tech/tempesta/issues/1697
~In checking the length of the header field name, we take into account the processed unfixed characters (__FSM_MOVE) and fixed, and not just parsed at the current iteration of the state~
Add a check that we haven't passed a single character since the beginning
... | diff --git a/fw/http_parser.c b/fw/http_parser.c
index a2e14d6464..02847b39a9 100644
--- a/fw/http_parser.c
+++ b/fw/http_parser.c
@@ -1249,12 +1249,18 @@ __FSM_STATE(st_curr) { \
__FSM_STATE(RGen_HdrOtherN) { \
__FSM_MATCH_MOVE(token, RGen_HdrOtherN, 0); \
if (likely(*(p + __fsm_sz) == ':')) { \
+... | 3 | 3 | 2 | [{"id": "G0", "claim": "Unit tests must be added for single character headers, for both HTTP/1 and HTTP/2, testing headers 'X' and 'Z' since the parser makes different movements for characters presented in normal headers and not.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
tempesta-tech__tempesta__1797 | tempesta-tech/tempesta | 1,797 | defect | ec339e5d2540748892843532de49d8615aceec61 | 53d9c6943c47b437b6410012308929aa06501cda | Safe handling of websockets drop | Fix for #1647 (see commit messages). Now
```
for i in `seq 200`; do ./run_tests.py ws.test_ws_ping.CacheTest.test_ping_websockets; done
```
passes for local tests. | diff --git a/fw/http.c b/fw/http.c
index 97a5cac5b3..634068db11 100644
--- a/fw/http.c
+++ b/fw/http.c
@@ -66,7 +66,7 @@
* created HTTP/1.1-message.
*
* Copyright (C) 2014 NatSys Lab. (info@natsys-lab.com).
- * Copyright (C) 2015-2022 Tempesta Technologies, Inc.
+ * Copyright (C) 2015-2023 Tempesta Technologies, ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Running ws.test_ws_ping.CacheTest.test_ping_websockets panics the kernel (BUG in ss_send) because the server connection is used even after its connection is closed; the TFW_CONN_B_UNSCHED bit must be cleared only on an unsuccessful steal so the panic goes away.", "category": "correctness", "verd... | null |
tempesta-tech__tempesta__1820 | tempesta-tech/tempesta | 1,820 | defect | 7b509b2364770cbd0957a1fdfc7690ad01662584 | f66aedb322aa16eaff03a21b55872633cb159458 | Reworked HTTP1 -> HTTP2 message transformation | This patch introduce another approach to HTTP1 -> HTTP2 message transformation. We had following problems with inplace transformation: Each added header was added to new skb fragment, that caused skb fragmentation. Appending value to existing in message header was limited by size which remains after transformation. We ... | diff --git a/fw/cache.c b/fw/cache.c
index 4c92c5c584..91529528c8 100644
--- a/fw/cache.c
+++ b/fw/cache.c
@@ -846,10 +846,15 @@ tfw_cache_send_304(TfwHttpReq *req, TfwCacheEntry *ce)
resp->mit.start_off = FRAME_HEADER_SIZE;
- r = tfw_h2_resp_status_write(resp, 304, TFW_H2_TRANS_EXPAND,
- true);
+ r =... | 30 | 21 | 2 | [{"id": "G0", "claim": "The new comments in fw/cache.c and fw/http.c contain the typo 'builded' where it should read 'built'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The @frame_head documentation says it reserves space for the whole HEADERS... | null |
tempesta-tech__tempesta__1821 | tempesta-tech/tempesta | 1,821 | defect | 7b509b2364770cbd0957a1fdfc7690ad01662584 | 93438dabafcb0ce2b2423688c86a1bf9add678dd | Implement parsing Etag without double quotes | According to RFC #7232 Etag should be enclosed in
double quotes, but unfortunately many do not follow RFC and send Etag without double quotes (wordpress for example). Implement parsing of such Etag values.
Closes: #1813 | diff --git a/fw/http_parser.c b/fw/http_parser.c
index c30b40349d..598ac7c842 100644
--- a/fw/http_parser.c
+++ b/fw/http_parser.c
@@ -458,6 +458,14 @@ do { \
#define __FSM_I_MOVE_fixup(to, n, flag) \
__FSM_I_MOVE_fixup_f(to, n, &msg->stream->parser.hdr, flag)
+#define __FSM_I_MOVE_fixup_quote(to, flag... | 7 | 7 | 2 | [{"id": "G0", "claim": "The existing functional and unit tests should be checked and adjusted to test the new ETag behavior.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code that deliberately violates RFC in ETag parsing should be commented, and ... | null |
tempesta-tech__tempesta__1835 | tempesta-tech/tempesta | 1,835 | defect | 23f797a0f253b45e85d75c052c6fee9411a0fd39 | 850ec55f9896844720da00d831e90210984f8828 | Correctly set TFW_HTTP_B_ACCEPT_HTML bit in req->flags from hpack | Architecture:
- `TfwCachedHeaderState` is added to `TfwHPackEntry` and `TfwHttpParser`.
- Initially this structure is filled from parser-related routines into `parser->cstate` and then it is copied from `TfwHttpParser` into `TfwHPackEntry` before header is added into hpack dynamic table.
- `cstate->is_set` is only s... | diff --git a/fw/hpack.c b/fw/hpack.c
index 881f72e2b4..696c620585 100644
--- a/fw/hpack.c
+++ b/fw/hpack.c
@@ -1179,6 +1179,7 @@ tfw_hpack_hdr_set(TfwHPack *__restrict hp, TfwHttpReq *__restrict req,
const TfwHPackEntry *__restrict entry)
{
char *data;
+ unsigned int i;
unsigned long d_size;
TfwMsgParseIter... | 1 | 1 | 1 | [{"id": "G0", "claim": "Matching \"text/html\" chunk by chunk in tfw_hpack_hdr_set is unreliable because header data may be split across network chunks with wrong chunk descriptors, so the Accept parsing should be redesigned by reusing the HTTP/2 Accept header parser.", "category": "correctness", "verdict": "supported"... | null |
tempesta-tech__tempesta__1837 | tempesta-tech/tempesta | 1,837 | defect | 5f240736693e2280f868808656ffa220e424c2ad | e5f2e7f2abe821b40fddc62e4464844e451c14fe | Fixed chunked body parsing error | In our implementation of parsing chunked body we try to make as less TfwStr's chunks as possible, merging continuous memory TfwStr's chunks in single chunk. However, we didn't take into account that continuous memory can be used by different SKBs.
Body chunk "\r\n8fb1" can be located in continuous memory, but first ... | diff --git a/fw/cache.c b/fw/cache.c
index bbf4d59173..e0bad846ca 100644
--- a/fw/cache.c
+++ b/fw/cache.c
@@ -1159,35 +1159,184 @@ do { \
} while (0)
/**
- * Copies http *chunked* body from plain or compound TfwStr @src to TdbRec @trec.
- * The copied data does not contain the chunked encoding descriptors.
- ... | 3 | 2 | 0 | [{"id": "G0", "claim": "Apply the suggested formatting: put the opening brace of the tfw_cache_strcpy error check in tfw_cache_h2_copy_chunked_body on its own line instead of keeping it after `*tot_len)) < 0)`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"... | null |
tempesta-tech__tempesta__1851 | tempesta-tech/tempesta | 1,851 | defect | df4067aa80cb8f6f1bb23ad9eced9e2ffa23beb3 | 1a2d0fc495ed9f3eb317ff32fbd2db5f055694f4 | Adjustable cache ttl via HTTP tables | [WIP]
Added new http tables action — `cache_ttl` that allows setting lifetime for cache in seconds. This is applied only when upstream hasn't send any cache-related headers.
`$cache -> 1/0` action is replaced by `disable_cache` action without any arguments. It works exactly like `$cache = 0`.
Added global opti... | diff --git a/fw/cache.c b/fw/cache.c
index bbf4d59173..36c77e7e1b 100644
--- a/fw/cache.c
+++ b/fw/cache.c
@@ -212,6 +212,8 @@ static struct {
const char *db_path;
} cache_cfg __read_mostly;
+unsigned int cache_default_ttl;
+
/* Cache modes. */
enum {
TFW_CACHE_NONE = 0,
@@ -516,8 +518,7 @@ tfw_cache_calc_life... | 3 | 3 | 2 | [{"id": "G0", "claim": "Update the copyright year (to 2023) in all the files touched by this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the legacy '$cache' handling code kept only for painless test migration, and update th... | null |
tempesta-tech__tempesta__1874 | tempesta-tech/tempesta | 1,874 | defect | 58654fd6aa1e7a2e63765ff450532642ffc59d88 | 76d1d7a95dae2482e6fafb15e640e0a270b11d74 | Fix invalid hpack decoding | Continue decode hpack value same as we do it
if this value was not devide between several
frames. | diff --git a/fw/connection.h b/fw/connection.h
index a831e04967..e88ed5860e 100644
--- a/fw/connection.h
+++ b/fw/connection.h
@@ -478,6 +478,7 @@ tfw_connection_unlink_from_sk(struct sock *sk)
sk->sk_state_change = NULL;
sk->sk_prepare_xmit = NULL;
sk->sk_write_xmit = NULL;
+ sk->sk_destroy_cb = NULL;
sk->sk... | 7 | 6 | 1 | [{"id": "G0", "claim": "In __sk_close_locked() the ss_conn_drop_guard_exit() call should be made after bh_unlock_sock() rather than before it while the socket lock is held.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Conn_Closed should be renamed t... | null |
tempesta-tech__tempesta__1878 | tempesta-tech/tempesta | 1,878 | defect | dc284c1d2d79564bce0a2969451f5b05ce30cf1a | 9205d4e8f3d93945cf1c88fc4799c3350f41e850 | Validate vhost picked by SNI vs vhost picked by authority | This is alternative implementation of #1688 that compares vhost pointers selected by `tfw_tls_sni()` and HTTP tables mechanism.
Related tempesta-test PR: https://github.com/tempesta-tech/tempesta-test/pull/456 | diff --git a/fw/http_limits.c b/fw/http_limits.c
index 990f96faea..af5bd950e6 100644
--- a/fw/http_limits.c
+++ b/fw/http_limits.c
@@ -738,6 +738,38 @@ frang_http_host_check(const TfwHttpReq *req, FrangAcc *ra)
return TFW_PASS;
}
+static int
+frang_http_domain_fronting_check(const TfwHttpReq *req, FrangAcc *ra)
+{... | 7 | 6 | 3 | [{"id": "G0", "claim": "The frang_msg() call should be reformatted so the whole message sits on one line and the arguments on two more lines.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The copyright year in fw/http_limits.c's header is stale... | null |
tempesta-tech__tempesta__1903 | tempesta-tech/tempesta | 1,903 | defect | 9e974c123d11d9c566feda051a5c44a50c4d760e | 1dfc2c3a531e59cbcbc84d047f975e0883ad90fc | Make HTTP/2 parser reject upper-case headers | Add new token alphabet — token_lc and "link" it with `token` allphabet at initialization time. Use that alphabet to match http/2 header names making it automatically reject non-lower case letters.
PR with enabling tests: https://github.com/tempesta-tech/tempesta-test/pull/472
Most recent pass with patched tests: ... | diff --git a/fw/http_parser.c b/fw/http_parser.c
index 38e9d897f3..293e40b94b 100644
--- a/fw/http_parser.c
+++ b/fw/http_parser.c
@@ -9664,7 +9664,7 @@ tfw_h2_parse_req_hdr(unsigned char *data, unsigned long len, TfwHttpReq *req,
* names MUST be treated as malformed.
* We should use here lower-case matching fu... | 2 | 2 | 2 | [{"id": "G0", "claim": "The lower-case custom token alphabet is initialized into table slot 16, but the reviewer expected slot 8, so the offset passed to __init_custom_a() looks wrong.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The __CUSTOM arra... | null |
tempesta-tech__tempesta__1920 | tempesta-tech/tempesta | 1,920 | defect | d7294b86a563bd18d5af51f701821357ade089de | 773dfb589688a3df315418287f45bf9b12d4389e | Rewrite tfw_hpack_node_compare to make it clean & fast | The idea is simple: when adding header to hpack table, we use `tfw_http_hdr_split` to preprocess header line. Apply the same transformation when we look for hpack entry to make code much more clear.
Also order of hpack items is changed:
- first we compare header name lengths
- then header+value (excluding trailing... | diff --git a/fw/hpack.c b/fw/hpack.c
index 3ad3ad75b0..c81e40da7b 100644
--- a/fw/hpack.c
+++ b/fw/hpack.c
@@ -2194,81 +2194,14 @@ typedef enum {
HPACK_HDR_VALUE_FOUND
} TfwHPackCmpStates;
-#define HP_SH(p) (*(unsigned short *)(p))
#define HP_CHAR(p) (*(unsigned char *)(p))
-#define SH_LC(p) (HP_SH(p) | 0... | 5 | 5 | 1 | [{"id": "G0", "claim": "The rewrite removes all uses of the enum TfwHPackCmpStates but leaves its definition behind, so the unused enum should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The patch adds a new tfw_http_hdr_split() c... | null |
tempesta-tech__tempesta__1966 | tempesta-tech/tempesta | 1,966 | defect | 50244ce3bc3d90a3b52c03f07747e359a4208577 | 0eeb6ccf1ef33ed28f7d285049d67c7a671f5304 | Fix race with using parser fields. | There were some fields in parser structure, which
can be used later in cache thread. But parser struture is one for the whole connection, so it can be race in this case. Move this fields to TfwHttpMsg struture to prevent this race.
Closes #1965 | diff --git a/fw/cache.c b/fw/cache.c
index 2037d23df3..e21800092b 100644
--- a/fw/cache.c
+++ b/fw/cache.c
@@ -2061,7 +2061,7 @@ tfw_cache_copy_resp(TfwCacheEntry *ce, TfwHttpResp *resp, TfwStr *rph,
if (test_bit(TFW_HTTP_B_CHUNKED, resp->flags))
r = tfw_cache_h2_copy_chunked_body(&ce->body_len, &p, &trec,
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new @body_start_data doc comment on TfwHttpMsg should reference the issue number behind the deferred new cutting strategy (TODO #1852).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The word \"cutted\" in the new @cut ... | null |
tempesta-tech__tempesta__1992 | tempesta-tech/tempesta | 1,992 | defect | fb00a82c34cc6005686ee92f94a87228fbaabbe0 | 42a9628fe6f1abe820bdf791c9f68fe5dcc9485e | Fix incorrect processing of request method by frang | When we send request with TCP SEGMENTATION, we call frang on each parsed byte. But when we parse request method we set it value to _TFW_HTTP_METH_UNKNOWN,
before we finish parsing request method. Implement additional value for request method, to mark that
we not fully parse request method and do not process such meth... | diff --git a/fw/http.h b/fw/http.h
index e01d5edaa1..27ea225e6e 100644
--- a/fw/http.h
+++ b/fw/http.h
@@ -114,6 +114,7 @@ typedef enum {
TFW_HTTP_METH_PURGE,
/* Unknown method, passed to upstream without additional processing. */
_TFW_HTTP_METH_UNKNOWN,
+ _TFW_HTTP_METH_MAYBE_UNKNOWN,
_TFW_HTTP_METH_COUNT
} t... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new enum entry should be named _TFW_HTTP_METH_INCOMPLETE instead of _TFW_HTTP_METH_MAYBE_UNKNOWN.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The single-line macro __MK_METH_INCOMPLETE() should be dropped and the method ass... | null |
tempesta-tech__tempesta__1993 | tempesta-tech/tempesta | 1,993 | defect | 1000722bf130a62645805372a3fc729d584a9257 | bfc4d3af487c60b19f9e137d6aaba2b39ea947b3 | Rework stream state processing | Previously we iplement two states for streams (which are not described in the RFC) for two special cases:
- we receive headers without END_HEADERS flag and without END_STREAM flag.
- we receive headers without END_HEADERS flag but with END_STREAM flag. But this states don't cover all possible cases, so in this patch ... | diff --git a/fw/http.c b/fw/http.c
index 65dfeba904..5e0575d0bc 100644
--- a/fw/http.c
+++ b/fw/http.c
@@ -4987,7 +4987,8 @@ tfw_h2_error_resp(TfwHttpReq *req, int status, bool reply, ErrorType type,
tfw_h2_conn_terminate_close(ctx, HTTP2_ECODE_PROTO,
!on_req_recv_event);
} else {
- if (tfw_h2_stream_fs... | 4 | 3 | 0 | [{"id": "G0", "claim": "The if/else branches in tfw_h2_stream_close should be enclosed in braces.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The two EOS flags could be stored as 2 bits borrowed from the state field instead of two bool fiel... | null |
tempesta-tech__tempesta__1994 | tempesta-tech/tempesta | 1,994 | defect | 1000722bf130a62645805372a3fc729d584a9257 | 95297174976670563d1c3f9950b88257cd8d40c6 | Pass marked skb to `tempesta_new_clntsk` function. | We need `skb->mark` to check if we can to create new connection or no in frang module.
Closes #1949 | diff --git a/fw/http.c b/fw/http.c
index 65dfeba904..277f0cab64 100644
--- a/fw/http.c
+++ b/fw/http.c
@@ -1655,13 +1655,15 @@ tfw_http_mark_wl_new_msg(TfwConn *conn, TfwHttpMsg *msg,
if (!tfw_wl_marks.mrks || !(TFW_CONN_TYPE(conn) & Conn_Clnt))
return;
- if (bsearch(&skb->mark, tfw_wl_marks.mrks, tfw_wl_marks.s... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new helper tfw_http_mark_is_in_whitlist should follow the kernel style used in this codebase: the callee placed above its caller and the return type on a separate line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
tempesta-tech__tempesta__2063 | tempesta-tech/tempesta | 2,063 | defect | ee2d801f083ab66f0abeb88953dfe8363e0c9584 | 6d25f5362776c446997a68d29a2cffac1490e37c | Fixed caching response to POST request. | According to RFC 9110 9.3.3:
Responses to POST requests are only cacheable
when they include explicit freshness information
and a Content-Location header field that has the
same value as the POST's target URI. A cached POST response can be reused to satisfy a later GET or
HEAD request. In contrast, a POST request ... | diff --git a/fw/cache.c b/fw/cache.c
index 74aaac8311..08b5cf8666 100644
--- a/fw/cache.c
+++ b/fw/cache.c
@@ -53,10 +53,10 @@
static const int tfw_cache_spec_headers_304[] = {
[0 ... TFW_HTTP_HDR_RAW] = 0,
[TFW_HTTP_HDR_ETAG] = 1,
+ [TFW_HTTP_HDR_CONTENT_LOCATION] = 1,
};
static const TfwStr tfw_cache_raw_heade... | 6 | 3 | 1 | [{"id": "G0", "claim": "Because CC_RESP_CACHEIT includes TFW_HTTP_CC_PUBLIC, a response to a POST request that carries cache-control: public is cached even without explicit freshness information, which looks incorrect.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":... | null |
tempesta-tech__tempesta__2326 | tempesta-tech/tempesta | 2,326 | defect | a9d54be94487bd9259145ec8cacd7ba125c78155 | 4fe37de73d580bda547e960efc9a95b23e5a6c91 | Fix accessing already freed memory. | When Tempesta FW receives HEAD request and cache is enabled Tempesta FW sends GET request to backend
and later deletes body and trailers (if exists) for response. Also Tempesta FW deletes all hop-by-hop
headers. We should skip deleteting hop-by-hop
headers for trailers if they were already deleted
to prevent access... | diff --git a/fw/http.c b/fw/http.c
index e212b44c4d..9d51cd50fc 100644
--- a/fw/http.c
+++ b/fw/http.c
@@ -3649,7 +3649,7 @@ tfw_h1_adjust_req(TfwHttpReq *req)
if (r)
return r;
- r = tfw_http_msg_del_hbh_hdrs(hm);
+ r = tfw_http_msg_del_hbh_hdrs(hm, false);
if (r < 0)
return r;
@@ -4261,6 +4261,7 @@ tfw_h... | 2 | 2 | 1 | [{"id": "G0", "claim": "The fix is not complete: even with trailers_were_deleted, modifying (duplicated) trailer headers via resp_hdr_set, removing 'connection' from trailers, or setting 'date'/'server' in trailers can still access already freed memory, and the reviewer suggests removing each trailer header from the he... | null |
tempesta-tech__tempesta__2341 | tempesta-tech/tempesta | 2,341 | defect | cc8e43c6f38642401e55c6703b21006357475233 | 3ea6f8b3acfb1177fc8e41d2f4f1b12f5d007cb7 | Content-Lenth and Content-Type in bodyless message | RFC 9110 8.6:
A server MUST NOT send a Content-Length header field in any response with a status code of 1xx (Informational) or 204 (No Content).
Now for responses 1xx and 204 Tempesta FW treats `Content-Length: 0` as the absence of a Content-Length header. Some implementations send `Content-Length: 0` within 204 (... | diff --git a/etc/tempesta_fw.conf b/etc/tempesta_fw.conf
index d69dc73ebd..e2a42334a5 100644
--- a/etc/tempesta_fw.conf
+++ b/etc/tempesta_fw.conf
@@ -1189,6 +1189,18 @@
# http_max_header_list_size 4096;
#
+# TAG: allow_empty_body_content_type
+#
+# This directive controls whether HTTP requests are allowed to inc... | 3 | 3 | 1 | [{"id": "G0", "claim": "The documented directive name in the new etc/tempesta_fw.conf sample block should be `http_allow_empty_body_content_type`, matching the `http_`-prefixed spec name the code registers.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
tempesta-tech__tempesta__238 | tempesta-tech/tempesta | 238 | defect | d712d4c75b6c0157eec888a18777434fc4008a6f | 6129be40517e214bea9f836107c804a9c0adae16 | #203. LWS* between name and value and after value for raw headers | In accordance with 3.2 RFC 7230 header value can contain groups of whitespace characters. We consider them the equivalent of a single whitespace character, if there is whitespace character / characters in the rule in the same position. For unification, also work with the keys, although whitespace characters are not per... | diff --git a/tempesta_fw/http_match.c b/tempesta_fw/http_match.c
index 2e7e5aa9ff..5f624e33a7 100644
--- a/tempesta_fw/http_match.c
+++ b/tempesta_fw/http_match.c
@@ -62,6 +62,7 @@
*/
#include <linux/cache.h>
+#include <linux/ctype.h>
#include "http_match.h"
#include "http_msg.h"
@@ -201,27 +202,99 @@ match_hd... | 9 | 9 | 2 | [{"id": "G0", "claim": "`prev` should be initialized with some value (or an implicit assertion added that the strings do not start with a space) because it can be used uninitialized.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`prev` is compared ... | null |
tempesta-tech__tempesta__2503 | tempesta-tech/tempesta | 2,503 | defect | bb15f79ffdeb8494dccaa967d0feaf7bf40dd94f | 8b077daf98c7212d38b32fdac61f44ad3ddefa4e | Allow to use page pool on TX path | Some drivers allocate fragments using page pool, those SKBs doesn't free as regular SKBs they are must be returned to the page pool. To mark SKBs that contain a fragment allocated from page pool used `pp_recycle` flag, when this fragment moves to another skb, `pp_recycle` flag also must be set to this skb. | diff --git a/fw/http.c b/fw/http.c
index 47c2190e91..68677b17f8 100644
--- a/fw/http.c
+++ b/fw/http.c
@@ -85,6 +85,7 @@
#include <linux/string.h>
#include <linux/sort.h>
#include <linux/bsearch.h>
+#include <linux/skbuff_ref.h>
#undef DEBUG
#if DBG_HTTP > 0
@@ -1798,10 +1799,16 @@ __tfw_http_free_cleanup(TfwHtt... | 3 | 2 | 0 | [{"id": "G0", "claim": "Nothing justifies replacing __kfree_skb() with kfree_skb() in __tfw_http_free_cleanup(), since the code owns the skb and knows there are no other references, so no reference tracking should be needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
tempesta-tech__tempesta__2579 | tempesta-tech/tempesta | 2,579 | defect | 04304c37909108247a3d1ed1c806287c9e58bced | 7436674b0f0101891ff5fa673075882fca9ee57f | fix: Large mmap buffer allocation | This patch allows to allocate large mmap buffer, up to 128M. Tempesta tries to allocate non-contiguous high order pages, when it fails rollbacks to order-0 pages. All array of pointers to allocated pages are stored in `struct TfwMmapBufferHolder`, they are freed on Tempesta unloading | diff --git a/fw/mmap_buffer.c b/fw/mmap_buffer.c
index 16de3b878a..4cce6be7a9 100644
--- a/fw/mmap_buffer.c
+++ b/fw/mmap_buffer.c
@@ -101,7 +101,7 @@ dev_file_mmap(struct file *filp, struct vm_area_struct *vma)
{
TfwMmapBufferHolder *holder = filp->private_data;
TfwMmapBuffer *buf = *this_cpu_ptr(holder->buf);
- ... | 2 | 2 | 1 | [{"id": "G0", "claim": "In tfw_mmap_buffer_alloc, the vmalloc'd `pages` array is leaked when the metadata (head) page allocation fails, since the function returns NULL without freeing it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A small fix is... | null |
tempesta-tech__tempesta__476 | tempesta-tech/tempesta | 476 | defect | 26bda3843ea005bc72027931d6a6b8938e612927 | 8e7facb1d435a92f6d85a7a22937642f139d7d85 | Fixes for the #474 and #207 issues | Fixes #474, #207
| diff --git a/tempesta_fw/http_parser.c b/tempesta_fw/http_parser.c
index 7b2d083f98..24e11add41 100644
--- a/tempesta_fw/http_parser.c
+++ b/tempesta_fw/http_parser.c
@@ -335,32 +335,27 @@ static const unsigned long hdr_a[] ____cacheline_aligned = {
#define CSTR_NEQ TFW_BLOCK /* -2 */
#define CSTR_BADLEN -3
/**
- ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Please add appropriate tests for the new tfw_str_eq_cstr_pos function to t/unit/test_tfw_str.c and make sure all corner cases are handled properly.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten comment for __try_st... | null |
tempesta-tech__tempesta__581 | tempesta-tech/tempesta | 581 | defect | 0f24b69d5b718d69acc8e75032f9aa52ca9517f4 | fc59a7927edac4eb52a6f783c6511aa20305b8f9 | #576: fix infinite loop on work queue push() | Fix https://github.com/tempesta-tech/tempesta/issues/576#issuecomment-230177421: do not try to push() socket close work synchronously if current context is the work queue consumer
| diff --git a/tempesta_fw/cache.c b/tempesta_fw/cache.c
index 2e45ae1606..d23648b225 100644
--- a/tempesta_fw/cache.c
+++ b/tempesta_fw/cache.c
@@ -862,6 +862,11 @@ tfw_cache_process(TfwHttpReq *req, TfwHttpResp *resp,
cpu = tfw_cache_sched_cpu(req);
ct = &per_cpu(cache_wq, cpu);
+ /*
+ * TODO don't queue the cac... | 3 | 2 | 1 | [{"id": "G0", "claim": "del_singleshot_timer_sync() is not a correct use of a timer delete function for cli_conn->ka_timer because the timer is rearmed on ss_close() error in tfw_sock_cli_keepalive_timer_cb() and is therefore not a single shot timer.", "category": "correctness", "verdict": "supported", "priority": "P1"... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.