logging: add read-only clickhouse logreader user + Vault-synced secret #400
Reference in New Issue
Block a user
Delete Branch "benvin/clickhouse-logreader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
CLI tools and the logviewer UI need ClickHouse access without write or DDL rights. The only existing app user (
vector) hasaccess_managementand write access; this adds a properly scoped read-only login using the same secret-sourcing mechanism.Changes
logreaderuser to thelogsClickHouseInstallation: password hash viasecretKeyRefto the Vault-syncedclickhouse-logreaderSecret (same mechanism asvector), networks::/0,readonlyprofile, scoped to thelogsdatabase onlyreadonlyprofile (readonly: 1, same memory/time limits as default)clickhouse-logreaderVaultStaticSecret mirroring the existingclickhouse-credentialsobject (kv-v2, 5m refresh, VSO-created destination Secret)Vault kv
Seeded at
kv/kubernetes/namespace/logging/default/clickhouse-logreader(version 1) with keys:username,password,password_sha256_hex. No secret material lands in git; the CHI only ever sees the sha256 hash via the synced Secret.