• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mendersoftware / mender-server / 1956764459
66%
main: 74%

Build:
Build:
LAST BUILD BRANCH: fix/new-theme-things
DEFAULT BRANCH: main
Ran 30 Jul 2025 10:49AM UTC
Jobs 22
Files 441
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jul 2025 10:36AM UTC coverage: 65.555% (+0.005%) from 65.55%
1956764459

Pull #833

gitlab-ci

alfrunes
feat(deviceauth): Add rate limiting configuration for authenticated requests

Added the following configuration parameters:

```yaml
ratelimits:
  # auth configures ratelimits for authenticated requests.
  auth:
    # enable rate limiting also requires redis_connection_string to be effective.
    enable: false
    # reject_unmatched rejects requests that does not resolve to a
    # ratelimit group. That is, if either there's no api_pattern matching
    # the request or if the group_expression does not match a group.
    # Defaults to false - disable ratelimiting for unmatched requests.
    reject_unmatched: false
    # groups specify rate limiting groups that overrides the parameters in the
    # default group.
    groups:
        # name defines the name of the group. The name is used in
        # match.group_expression to match an api_pattern with a group.
      - name: default
        # interval is the time interval when the rate limiter resets.
        interval: 1m
        # quota is the number of requests allowed in an interval.
        quota: 300
        # event_expression is a go template for grouping requests.
        # The following attributes are available in the context:
        # Identity - contains a subset of the JWT claims:
        # .Subject  (jwt:"sub")          string
        # .Tenant   (jwt:"mender.tenant") string
        # .Plan     (jwt:"mender.plan")   string
        # .Addons   (jwt:"mender.addons") []struct{Enabled bool; Name string}
        # .IsUser   (jwt:"mender.user")   bool
        # .IsDevice (jwt:"mender.device") bool
        # .Trial    (jwt:"mender.trial")  bool
        event_expression: "{{with .Identity}}{{.Subject}}{{end}}"
        # More example groups:
    # - name: "example_slow_group_by_tenant"
    #   quota: 1
    #   interval: 30s
    #   event_expression: "{{with .Identity}}{{.Tenant}}{{end}}"
    # match specifies matching expressions for mapping API requests to rate
    # limiting groups.
    match:
      ... (continued)
Pull Request #833: Update ratelimits configuration interface

30 of 46 new or added lines in 2 files covered. (65.22%)

4 existing lines in 2 files now uncovered.

32389 of 49407 relevant lines covered (65.56%)

1.39 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
17.91
9.69% backend/pkg/config/ratelimits/config.go
10
81.69
-5.45% backend/pkg/rate/limit_http.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
75.39
0.0% backend/services/reporting/app/reporting/reporting.go
2
81.69
-5.45% backend/pkg/rate/limit_http.go
Jobs
ID Job ID Ran Files Coverage
3 useradm-acceptance - 1956764459.3 30 Jul 2025 10:50AM UTC 70
48.44
4 deviceauth-acceptance - 1956764459.4 30 Jul 2025 10:50AM UTC 86
37.94
5 deployments-unit - 1956764459.5 30 Jul 2025 10:49AM UTC 78
50.81
6 inventory-unit - 1956764459.6 30 Jul 2025 10:49AM UTC 25
65.17
7 deviceauth-unit - 1956764459.7 30 Jul 2025 10:49AM UTC 59
57.54
8 reporting-unit - 1956764459.8 30 Jul 2025 10:50AM UTC 44
54.07
9 deviceconnect-unit - 1956764459.9 30 Jul 2025 10:49AM UTC 33
62.27
10 inventory-acceptance - 1956764459.10 30 Jul 2025 10:50AM UTC 46
49.09
11 deviceconfig-unit - 1956764459.11 30 Jul 2025 10:49AM UTC 21
63.75
12 deviceconnect-acceptance - 1956764459.12 30 Jul 2025 10:50AM UTC 59
32.05
13 iot-manager-unit - 1956764459.13 30 Jul 2025 10:49AM UTC 46
54.74
14 workflows-acceptance - 1956764459.14 30 Jul 2025 10:50AM UTC 54
47.47
15 deviceconfig-acceptance - 1956764459.15 30 Jul 2025 10:50AM UTC 48
46.29
16 integration - 1956764459.16 30 Jul 2025 10:50AM UTC 333
41.39
17 workflows-unit - 1956764459.17 30 Jul 2025 10:50AM UTC 30
44.75
18 useradm-unit - 1956764459.18 30 Jul 2025 10:50AM UTC 38
55.95
19 deployments-acceptance - 1956764459.19 30 Jul 2025 10:50AM UTC 101
49.74
20 create-artifact-worker-unit - 1956764459.20 30 Jul 2025 10:49AM UTC 8
15.34
21 iot-manager-acceptance - 1956764459.21 30 Jul 2025 10:50AM UTC 69
47.96
22 pkg-unit - 1956764459.22 30 Jul 2025 10:50AM UTC 57
59.31
0 frontend-e2e-enterprise 30 Jul 2025 09:54AM UTC 0
0.0
0 frontend-e2e 30 Jul 2025 09:52AM UTC 0
0.0
Source Files on build 1956764459
  • Tree
  • List 441
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • GitLab CI Build #1956764459
  • Pull Request #833
  • PR Base - main (#1956569745)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc