You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a limit has 5 override IDs, the "overrideKey" field of that singular limit struct will get overwritten 4 times, resulting in only the last value actually being preserved in the limit struct. This will throw off metrics about override utilitzation:
When parsing limit overrides, we first create a pointer to a
limit{}
struct:boulder/ratelimits/limit.go
Line 159 in 1b7b9a7
then, for each override ID, we set that limit's
overrideKey
field:boulder/ratelimits/limit.go
Line 177 in 1b7b9a7
then save the pointer to this limit into a map:
boulder/ratelimits/limit.go
Line 185 in 1b7b9a7
If a limit has 5 override IDs, the "overrideKey" field of that singular limit struct will get overwritten 4 times, resulting in only the last value actually being preserved in the limit struct. This will throw off metrics about override utilitzation:
boulder/ratelimits/limiter.go
Line 293 in 1b7b9a7
The text was updated successfully, but these errors were encountered: