feat(cluster,server,auth): add operational health endpoints, persist cluster topology, and hide credential secrets from runtime listings
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartstorage',
|
||||
version: '6.3.3',
|
||||
version: '6.4.0',
|
||||
description: 'A Node.js TypeScript package to create a local S3-compatible storage server using mapped local directories for development and testing purposes.'
|
||||
}
|
||||
|
||||
+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