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
{{ message }}
Repository navigation
feat(otel): use dedicated least-privilege monitoring user for OTel Collector sidecar #344
The OTel Collector sidecar (added in #342) currently uses PGUSER/PGPASSWORD from the <cluster>-app secret (the CNPG application user) to connect to PostgreSQL. Following the principle of least privilege, the sidecar should use a dedicated monitoring user with only pg_monitor role access.
Motivation
Least privilege: The monitoring sidecar only needs to run health-check queries and read pg_stat_* views — it should not have application-level read/write access.
Audit clarity: Monitoring queries would be attributable to a separate role in pg_stat_activity.
Future-proof: pg_monitor already grants read access to all stats views, supporting richer metrics without needing superuser.
Blast radius: If the OTel Collector is compromised, the attacker only gets read-only stats access.
Proposed Implementation
Operator creates a dedicated otel_monitor PostgreSQL role with pg_monitor grant
Store credentials in a dedicated secret (e.g., <cluster>-otel-monitor)
OTel sidecar reads from the dedicated secret instead of <cluster>-app
Applied:go Project fields suggested: Component controllers · Priority P2 · Effort L · Status Triage Confidence: 0.80 (llm)
Reasoning
LLM: Security-motivated least-privilege refactor touching role creation, secret management, and OTel sidecar configuration across multiple controller components.
If a label is wrong, remove it manually and ping @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.
👋 @udsmicrosoft — this issue has been assigned for 56 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
👋 @udsmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
Activity
documentdb-triage-tool commentedon Apr 29, 2026
🤖 Auto-triaged by documentdb-triage-tool.
Applied:
goProject fields suggested: Component
controllers· PriorityP2· EffortL· StatusTriageConfidence: 0.80 (llm)
Reasoning
LLM: Security-motivated least-privilege refactor touching role creation, secret management, and OTel sidecar configuration across multiple controller components.
If a label is wrong, remove it manually and ping
@patty-chowso the rules can be tuned. The bot will not re-label items that already have component labels.documentdb-triage-tool commentedon Aug 27, 2026
👋 @udsmicrosoft — this issue has been assigned for 56 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
documentdb-triage-tool commentedon Sep 11, 2026
👋 @udsmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.