Repository navigation
fix(obs): the collector refused my allowlist, and the deploy said success - #510
Merged
Merged
Conversation
…cess
A `#` comment inside the `transform/pii_allowlist` OTTL expression made the
collector reject its ENTIRE config at startup:
Error: invalid configuration: processors::transform/pii_allowlist:
statement has invalid syntax: 16:3: lexer: invalid input text "# Set as..."
OTTL has no comment syntax, and the YAML `>-` block folds the line into the
expression. The comment was readable and the expression was not.
**The failure mode is the part worth keeping.** The ConfigMap updated, the
Deployment rolled, the new pod crashlooped, and the OLD pod kept serving — so
telemetry kept flowing, `deploy` reported success, and the change had simply
not taken effect. I had already reported the allowlist as live, on the
evidence that the ConfigMap contained it. Reading pod health is what showed
it; the ConfigMap containing the right bytes proves nothing about whether
anything accepted them.
Three changes, because one defect had three causes:
1. The comment moves out of the OTTL into a YAML comment above the processor,
which also warns the next editor — the list looks like somewhere you could
annotate, and it is not.
2. `collector_allowlist.rs` gains a test for exactly this. The gate I wrote
with that PR parses the keep_keys list textually and never looked for a
`#`, so it passed over the thing that broke. Observed failing before being
trusted.
3. `obs_up.sh` now waits on the collector's rollout. `helm upgrade --install`
reports success once the objects are applied, so nothing in the deploy path
could have caught this — only openobserve had a `rollout status`, and the
collector is the one release here that takes a config it can reject at
startup. `deploy.yml` already states the intent ("a telemetry stack that
silently fails to install is worse than a red deploy"); this is what
delivers it.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
athvin
added a commit
that referenced
this pull request
Nov 5, 2026
… not data (#543) The third live attempt at a real landing was refused: #510 skip its detect jobs failed, so every gate reported skipped without running — re-run CI before batching #510 was fine. All three of its detect jobs had completed `success` twenty minutes earlier and the PR was CLEAN; the `14:18:16` timestamp that looked like a push was `updated_at` moving when the `merge-bus` label was added. The check I added in #490 was this: [ "$(gh api ... --paginate --jq '...|length' 2>/dev/null || echo 0)" != "0" ] `--paginate` emits one jq result per page and `|| echo 0` appends another on failure, so a call that emits a page and THEN errors — a secondary rate limit being the obvious candidate, given how many calls this loop makes per candidate — yields the two-line string "0\n0", which is `!= "0"`. A healthy PR is then refused as unverified. This is exactly the defect the pre-flight was fixed for in #482, reintroduced here one commit later. Replaced with a `detect_failures` function that reads the status explicitly, requires one line of three bare integers, and FAILS OPEN on anything else — consistent with the pre-flight, because `mergeStateStatus == CLEAN` remains the gate and a rate limit must not block every merge. It also compares `total_count` against what it fetched, so a commit with more than a page of check-runs says so instead of answering from a prefix. Two further traps hit while fixing it, both the same shape as the original: Whitespace-collapsing is NOT a fix. `"0\n0"` with the newline stripped is `"00"` — still numeric, still `!= "0"`. And the function's own warnings went to STDOUT, so `$(detect_failures …)` captured the warning text along with the count and skipped the PR anyway. A function whose stdout IS its return value must put diagnostics on stderr. My isolation test printed the warning and I read it as informational rather than as contamination; the simulator scenario is what caught it. Covered by `detect-read-flaky`, which asserts a healthy PR still rides when the check-runs read emits output and then fails. Mutation-tested both ways: putting the warnings back on stdout is caught, and restoring the original one-liner is caught. `detect-died` still skips, so the real guard is intact. Suite now 72 assertions. Co-authored-by: bmoore813 <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
athvin
added a commit
that referenced
this pull request
Nov 5, 2026
…n failing (#595) The bus built and validated its first real batch — bus PR #585 for #510, a genuine merge commit of main@1b4668bb and #510's head — and then died in the wait step: GraphQL: Resource not accessible by integration (repository.pullRequest.statusCheckRollup…) `statusCheckRollup` needs **`checks: read`**, which the permissions block did not declare. `mergeStateStatus` kept working throughout, which is why the loop logged BLOCKED six times before dying — only the rollup needed it. Third scope learned this way after `actions: read`; the lesson is the block itself: naming any permission sets every other to `none`. Two further defects, both worse than the missing scope: THE ROLLUP READ WAS FATAL. Under `set -euo pipefail` the failed assignment aborted the step, so the first successful batch left its bus PR open with no report and no cleanup. An unreadable rollup now means "keep waiting". `ACTION_REQUIRED` WAS LISTED AS A BATCH FAILURE, and it is not. A bot-authored pull request's runs are created `conclusion: action_required` with ZERO jobs, waiting for a human to press "Approve and run" — observed on #585, all three runs held, which is also why `/check-runs` returned HTTP 500. Reporting that as "the batch went red" accuses the members of a failure nothing executed, and it is indistinguishable from starvation by step count because both are zero. So `held` is now its own verdict that blames nobody, names the exact remedy, and is excluded from the starvation relabel. The wait step first ATTEMPTS to release the runs itself (hence `actions: write`); approving runs no new untrusted code, since the bus PR is a merge of PRs whose own CI already ran this content. If the token may not approve, it says so and stops rather than inventing a cause. Whether a `GITHUB_TOKEN` may approve its own held runs is the one open question, and the next dispatch answers it. If it may not, the bus needs a different CI vehicle than a pull request — dispatching the three workflows on the batch branch is the obvious candidate — because a human click per round is not unattended batching. Covered by `held-released` and `held-stuck`. Three mutants caught: treating ACTION_REQUIRED as red, removing the self-approval, and removing the guard that keeps `held` out of the starvation path. That last one needed the scenario fixed before it meant anything — the stub was serving 42 executed steps for held runs, where real ones execute zero, so the guard looked untested because the condition it protects never arose. Fourth time this exercise that a sanitised scenario proved nothing; faithfulness to the real failure is the whole value. Also fixed: `paste -sd', '` treats the delimiter as a cycling LIST, so context names joined as `entities,test` rather than `entities, test` in PR comments. Suite now 84 assertions. Co-authored-by: bmoore813 <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This was referenced Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What broke
A
#comment inside thetransform/pii_allowlistOTTL expression (added in#507) made the collector reject its entire config at startup:
OTTL has no comment syntax, and the YAML
>-block folds the line into theexpression.
The failure mode is the part worth keeping
The ConfigMap updated. The Deployment rolled. The new pod crashlooped. The old
pod kept serving. So telemetry kept flowing,
deployreported success, and thechange had simply not taken effect.
I had already reported the allowlist as live, on the evidence that the ConfigMap
contained it. It did. That proves nothing about whether anything accepted it —
only
kubectl get podsshowedREADY=false, RESTARTS=3.Three changes, because one defect had three causes
The comment moves out of the OTTL into a YAML comment above the
processor — which also warns the next editor, because the list looks like
somewhere you could annotate and it is not.
collector_allowlist.rsgains a test for exactly this. The gate Ishipped with feat(obs): the PII boundary is enforced in flight, not trusted (P22) #507 parses the
keep_keyslist textually and never looked fora
#, so it passed over the thing that broke. Observed failing before beingtrusted.
obs_up.shnow waits on the collector's rollout.helm upgrade --installreports success once the objects are applied, so nothing in thedeploy path could have caught this — only
openobservehad arollout status, and the collector is the one release here that takes a config it canreject at startup.
deploy.ymlalready states the intent — "a telemetrystack that silently fails to install is worse than a red deploy" — and this
is what delivers it.
Urgency
The live collector is serving from the pre-#507 pod, so telemetry is not
down. But the new ReplicaSet will never become ready, so the PII allowlist is
not in effect and a node eviction of the old pod would stop ingest.
🤖 Generated with Claude Code