Skip to content

v0.75.5

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 07:34
· 15 commits to main since this release
Immutable release. Only release title and notes can be modified.

A security release, of what a review of the code since 0.69.2 found: a
pull request with many recording rules could hold the backtest port for
hours, one Grafana export could end the process that read it, one long
workload name could stop every run of a serve with a Postgres ledger and
--rollouts, and the Notifications page could be made to read the ledger
once for each receiver. Each fix with a test that failed before it.

Before upgrading (no schema change: the ledger stays at 036):

  • A backtest job that changes a recording rule, by the recipe or the
    action: where an alert rule that reads it couldn't be replayed with the
    change, FAIL_ON_ERROR and FAIL_MISSED fail now, and a report from a
    lapilli before 0.75.3 fails both wherever a recording rule differs.
    FAIL_ON_RECORDING=false (the action's fail-on-recording: false) keeps
    0.75.4's gates (Changed).
  • The backtest port refuses a request with more than 20,000 recording
    rules on a side, or as many alert rules reading one that differs; and
    the port and lapilli verdict refuse a Grafana math expression more than
    32 brackets deep or longer than 8192 bytes, and a rule can't be
    replayed where a step of its math gives more than 100,000 series, or
    more than the bigger of the two sides it pairs.
  • An agent's compare, test_expectation and propose_expectation
    are each one of its tries (60 an hour, apart from its person's), and a
    reader's backtests may hold the comparison 15 minutes an hour: past
    either, the agent is told to try again later.
  • The report's JSON: a recording rule that differs lists the first ten
    of the rules not replayed with it (not_replayed) and counts the rest
    (not_replayed_more); an alert rule that reads recording rules by a
    pattern of their names is listed under each of them.
  • Readers below admin read the flag where an error names an address
    serve was given, and the Notifications page says the routing
    configuration couldn't be read, where the log says why.
  • With --rollouts, a series whose namespace is longer than 63
    characters, or a name longer than 253, is left out, and the log says how
    many and one of them.

Fixed (security)

  • One Grafana export could end the process that read it (affected:
    lapilli verdict reading a Grafana export, every release that reads
    them; lapilli serve's backtest port from 0.61.0, which reads a pull
    request's Grafana rules before it checks them; and lapilli serve
    reading its rules from a Grafana that takes such a rule). A math
    expression was read with no bound on how deep its brackets went, and
    two and a half million of them in a 2.5 MB export overflowed the stack,
    which Go doesn't recover from: serve, its pages, runs and ports, went
    down with one request. So did a short sum of a query that gives series
    with labels and one without, replayed: Grafana's math pairs a series
    with no labels with every series on the other side, so each term
    doubled the series, and 22 terms were eight million series and 3 GB. A
    math expression is read to 32 brackets deep and 8192 bytes at most now,
    and refused past either, with why; and a step of one gives as many
    series as the bigger of the two sides it pairs, or 100,000, at most,
    past which the rule can't be replayed, and its replay says so.
  • A pull request's recording rules could hold a backtest port's turns
    for hours
    (affected: 0.75.3 to 0.75.4). Working out which recording
    rules an alert rule reads, and listing what wasn't replayed under each
    recording rule that differs, grew with the cube of how many there were:
    a few thousand recording rules with no metric name, and as many alert
    rules alike on both sides, in a request under 1.5 MB, held one of the
    port's two reading turns and then its lane for hours. Both grow with the
    rules now; working out what an alert reads has a budget, past which the
    rules reading the recording rules are said not to be replayed; a
    recording rule keeps the first ten of them by name (not_replayed) and
    counts the rest (not_replayed_more); and an alert rule that reads
    recording rules by a pattern of their names is said once, under each,
    not with the names it could match. Through serve a request with more
    than 20,000 recording rules on a side, or as many alert rules reading
    one that differs, is refused.
  • One long workload name in the history stopped every run of a serve
    with a Postgres ledger and --rollouts
    (affected: 0.72.0 to 0.75.4).
    Namespaces and workload, pod and owner names were kept as they were read
    from the history's labels, in keys Postgres can't hold past 2704 bytes: a
    series with a name of a few thousand, from anyone who could put one in
    the history, failed the run that read it, and every run after it,
    recording nothing for any team. A series whose namespace isn't a
    Kubernetes one (63 characters at most) or whose name isn't (253) is left
    out now, and counted, and the log says how many and one of them.
  • The Notifications page could be made to read the ledger once for each
    receiver, on every view
    (affected: 0.72.0 to 0.75.4). Each receiver
    whose first notification came after the hours shown began was counted
    again over its own hours, and its notifications summed by reading every
    receiver's, on every view a cache missed and on each /metrics after a
    notification came in; thousands of receivers, which anyone with the
    notifications token could make, made each a long read. The counts are
    read once for each hour a receiver began in, summed once, and the view
    is kept until the ledger changes.
  • A pull request's comment and report from serve's backtest port said the
    services a catch went through, by --depends' service graph, and what
    fail_missed found of incidents caught only through it (their labels,
    alerts, signals and the titles an entry hides), which serve's own pages
    keep to its readers (affected: 0.72.0 to 0.75.4). Through the port a
    catch is said to be through the service graph, not through which
    services, and the report keeps only the fields it lists.
  • A change to a recording rule made so that it can't be replayed (a
    scalar(), a group limit) replayed the alerts reading it against what
    was recorded and passed every gate of the backtest recipe (affected:
    0.75.3 to 0.75.4). FAIL_ON_ERROR counts such rules as unreplayed and
    FAIL_MISSED as not known now, and a report that doesn't say how many
    there were (lapilli before 0.75.3) fails both where a recording rule
    differs; FAIL_ON_RECORDING=false (the action's fail-on-recording)
    leaves them out of both.
  • An agent's compare and test_expectation counted against nothing, and
    could hold the one comparison all the time, so that people's proposals
    were told another ran (affected: compare from 0.13.0,
    test_expectation from 0.65.0, to 0.75.4). They and
    propose_expectation are each one of the agent's tries an hour now,
    with the heavy turn, and a reader's backtests (an agent's apart) may
    hold the turn 15 minutes an hour; a request refused before it runs
    costs no try.
  • A link to /rules or /firings could put any text in the notice of a
    bulk action's result, on Lapilli's own pages (affected: 0.75.0 to
    0.75.4). The notice names only rules the ledger knows now, and counts the
    rest.
  • One response source's token could keep every other source's writes
    refused, as they shared one rate and one write turn (affected: 0.72.0 to
    0.75.4). Each source's token has its own.
  • A PagerDuty alert whose details held a number where an alert was looked
    for stopped the PagerDuty incidents and responses recipes before they
    sent anything, while the incident was in their window (affected: 0.67.0
    for incidents, 0.72.0 for responses, to 0.75.4); so did the same in the
    FireHydrant, Jira, incident.io and Rootly recipes. Such a value is left
    out now. With the chart, its own copies are fixed with it.
  • Why the routing configuration couldn't be read (its address or path,
    and up to 300 bytes of what its server answered) was kept and shown on
    the Notifications page to every reader (affected: 0.72.0 to 0.75.4).
    The page says it couldn't be read, and the log says why; hours kept
    with the old text are shown with the new.
  • The addresses serve was given (--prometheus, --grafana, --loki,
    --ruler, --alarms, --on-call, --alertmanager-config) were said in
    errors shown to readers below admin: the status banner's, the run
    history's and its API's, the Data sources and Settings pages', and MCP
    answers. They read the flag that gave each now; an admin reads the
    address.
  • Silences the event recorder told of were matched against every firing
    of their rule before the work-out's time began, and the reports of
    notifications without their firings over a month or less took no turn
    (affected: 0.72.0 to 0.75.4). A silence is matched against the firings
    that began near it, and those long or still open, within the work-out's
    time; such a report takes the heavy turn on a cache miss, and is
    answered from the cache without it.