feat(cluster,server,auth): add operational health endpoints, persist cluster topology, and hide credential secrets from runtime listings
This commit is contained in:
+6
-2
@@ -9,6 +9,10 @@ export interface IStorageCredential {
|
||||
secretAccessKey: string;
|
||||
}
|
||||
|
||||
export interface IStorageCredentialMetadata {
|
||||
accessKeyId: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Authentication configuration
|
||||
*/
|
||||
@@ -311,7 +315,7 @@ type TRustStorageCommands = {
|
||||
createBucket: { params: { name: string }; result: {} };
|
||||
getStorageStats: { params: {}; result: IStorageStats };
|
||||
listBucketSummaries: { params: {}; result: IBucketSummary[] };
|
||||
listCredentials: { params: {}; result: IStorageCredential[] };
|
||||
listCredentials: { params: {}; result: IStorageCredentialMetadata[] };
|
||||
replaceCredentials: { params: { credentials: IStorageCredential[] }; result: {} };
|
||||
getClusterHealth: { params: {}; result: IClusterHealth };
|
||||
};
|
||||
@@ -391,7 +395,7 @@ export class SmartStorage {
|
||||
return this.bridge.sendCommand('listBucketSummaries', {});
|
||||
}
|
||||
|
||||
public async listCredentials(): Promise<IStorageCredential[]> {
|
||||
public async listCredentials(): Promise<IStorageCredentialMetadata[]> {
|
||||
return this.bridge.sendCommand('listCredentials', {});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user