Restrict plugin lookups and reuse cached chat reads (Refs #98)
This commit is contained in:
@@ -78,7 +78,12 @@ export function routePermission(routeId: string | null, method: string): RoutePe
|
||||
return 'admin';
|
||||
|
||||
// These reads initiate fleet file scans or spend external API quota.
|
||||
if (routeId === '/api/drift' || routeId === '/api/plugins/github/release') return 'operator';
|
||||
if (
|
||||
routeId === '/api/drift' ||
|
||||
routeId === '/api/plugins/github/release' ||
|
||||
routeId === '/api/plugins/updates'
|
||||
)
|
||||
return 'operator';
|
||||
|
||||
// Summaries remain visible to viewers; raw configuration, historical file
|
||||
// bytes, and unfiltered diagnostics may contain runtime credentials.
|
||||
|
||||
Reference in New Issue
Block a user