Skip to content

docs(operator): grant the usage breakdown tables to the DB user - #314

Merged
v0l merged 1 commit into
masterfrom
fix/operator-usage-breakdown-grants
Jul 29, 2026
Merged

v0l merged 1 commit into
masterfrom
fix/operator-usage-breakdown-grants

Conversation

@v0l

@v0l v0l commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

#309 added a DELETE+INSERT rewrite of app_deployment_service_usage and app_deployment_volume_usage (lnvps_db/src/mysql.rs:4300-4331) without widening the documented operator grant, which was still SELECT everywhere plus UPDATE on app_deployment. In production the operator gets DELETE command denied and every deployment's breakdown stays empty; the totals still update, since those are an UPDATE on app_deployment.

Docs only — the grant itself is applied by hand on the database.

GRANT INSERT, DELETE ON lnvps.app_deployment_service_usage TO 'lnvps_operator'@'%';
GRANT INSERT, DELETE ON lnvps.app_deployment_volume_usage TO 'lnvps_operator'@'%';

From the lnvps channel.

@v0l
v0l merged commit 3f3d2f0 into master Jul 29, 2026
6 checks passed
@v0l
v0l deleted the fix/operator-usage-breakdown-grants branch July 29, 2026 08:06
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