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

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

Build:
Build:
LAST BUILD BRANCH: fix/new-theme-things
DEFAULT BRANCH: main
Ran 30 Jul 2025 10:50AM UTC
Files 70
Run time 2s
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: 48.444% (+0.1%) from 48.296%
1956764459.3

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

2599 of 5365 relevant lines covered (48.44%)

0.52 hits per line

Source Files on job useradm-acceptance - 1956764459.3
  • Tree
  • List 70
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1c28b8
  • GitLab Build #1956764459
  • 1c28b86b on github
  • Prev Job for on ratelimits-config-agian (#1956569745.10)
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