Skip to content

feat(0477): prices_writer monitoring grants (system.mutations + view_refreshes) - #399

Merged
stkrolikiewicz merged 2 commits into
developfrom
ops/0477_prices-writer-monitoring-grants
Aug 12, 2026
Merged

feat(0477): prices_writer monitoring grants (system.mutations + view_refreshes)#399
stkrolikiewicz merged 2 commits into
developfrom
ops/0477_prices-writer-monitoring-grants

Conversation

@stkrolikiewicz

Copy link
Copy Markdown
Collaborator

Two read-only grants for the prices_writer XML user, requested by the prices owner after their 07-21 → 08-03 coarse-rollup freeze post-mortem: pending mutations sat undone for 13 days, and system.mutations alone would have flagged it days before anyone noticed. Their new freshness alarm measures data, not MV exit status; these let it also watch the precursor signals.

  • GRANT SELECT ON system.mutations
  • GRANT SELECT ON system.view_refreshes

Same shape as the system.parts grant from task 0314. RBAC doc row updated in the same commit.

Apply path (no container recreate): the box file is a single-file bind mount, so ansible's write-and-rename never reaches the container (0314 lesson). Instead the box copy is overwritten in place (cat new > services.xml, inode preserved) — ClickHouse hot-reloads users.d on content change. This PR is the byte-identical mirror, so the next --tags app deploy rsyncs nothing.

Verification: CH config-reload log line + SHOW GRANTS FOR prices_writer on the box, then the prices owner confirms a live SELECT count() FROM system.mutations under their credentials.

…w_refreshes

Requested by the prices owner after the 07-21..08-03 coarse-rollup
freeze: pending mutations sat undone for 13 days and this signal alone
would have flagged it days earlier. Read-only, same shape as the 0314
system.parts grant. Applied on the box via inode-preserving in-place
edit (no container recreate needed); this commit is the byte-identical
mirror so the next --tags app deploy is a no-op.
@stkrolikiewicz
stkrolikiewicz merged commit d0201c2 into develop Aug 12, 2026
6 checks passed
stkrolikiewicz added a commit that referenced this pull request Aug 12, 2026
nx format:check --all runs against the merge result, so two unformatted
files on develop fail CI for every open PR, not just their own. Table
column padding only, no content change.

Refs #371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant