feat(opsserver): add health, audit, cluster health, and durable credential management hardening
This commit is contained in:
@@ -23,5 +23,16 @@ export class StatusHandler {
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
this.typedrouter.addTypedHandler(
|
||||
new plugins.typedrequest.TypedHandler<interfaces.requests.IReq_GetClusterHealth>(
|
||||
'getClusterHealth',
|
||||
async (dataArg) => {
|
||||
await requireValidIdentity(this.opsServerRef.adminHandler, dataArg);
|
||||
const clusterHealth = await this.opsServerRef.objectStorageRef.getClusterHealth();
|
||||
return { clusterHealth };
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user