backend: add missing description for buildAccessRecordingSecretsKey method

This commit is contained in:
juancarmore 2025-06-23 13:54:56 +02:00
parent b44e7e2b6a
commit 49926459cd
2 changed files with 13 additions and 8 deletions

View File

@ -21,7 +21,6 @@ export class S3KeyBuilder implements StorageKeyBuilder {
buildMeetRecordingKey(recordingId: string): string { buildMeetRecordingKey(recordingId: string): string {
const { roomId, egressId, uid } = RecordingHelper.extractInfoFromRecordingId(recordingId); const { roomId, egressId, uid } = RecordingHelper.extractInfoFromRecordingId(recordingId);
return `${INTERNAL_CONFIG.S3_RECORDINGS_PREFIX}/.metadata/${roomId}/${egressId}/${uid}.json`; return `${INTERNAL_CONFIG.S3_RECORDINGS_PREFIX}/.metadata/${roomId}/${egressId}/${uid}.json`;
} }
@ -35,6 +34,11 @@ export class S3KeyBuilder implements StorageKeyBuilder {
return `${INTERNAL_CONFIG.S3_RECORDINGS_PREFIX}/.metadata${roomSegment}`; return `${INTERNAL_CONFIG.S3_RECORDINGS_PREFIX}/.metadata${roomSegment}`;
} }
buildAccessRecordingSecretsKey(recordingId: string): string {
const { roomId, egressId, uid } = RecordingHelper.extractInfoFromRecordingId(recordingId);
return `${INTERNAL_CONFIG.S3_RECORDINGS_PREFIX}/.secrets/${roomId}/${egressId}/${uid}.json`;
}
buildUserKey(userId: string): string { buildUserKey(userId: string): string {
return `${INTERNAL_CONFIG.S3_USERS_PREFIX}/${userId}.json`; return `${INTERNAL_CONFIG.S3_USERS_PREFIX}/${userId}.json`;
} }
@ -42,9 +46,4 @@ export class S3KeyBuilder implements StorageKeyBuilder {
buildApiKeysKey(): string { buildApiKeysKey(): string {
return `${INTERNAL_CONFIG.S3_API_KEYS_PREFIX}.json`; return `${INTERNAL_CONFIG.S3_API_KEYS_PREFIX}.json`;
} }
buildAccessRecordingSecretsKey(recordingId: string): string {
const { roomId, egressId, uid } = RecordingHelper.extractInfoFromRecordingId(recordingId);
return `${INTERNAL_CONFIG.S3_RECORDINGS_PREFIX}/.secrets/${roomId}/${egressId}/${uid}.json`;
}
} }

View File

@ -104,6 +104,7 @@ export interface StorageKeyBuilder {
* Builds the key for global preferences storage. * Builds the key for global preferences storage.
*/ */
buildGlobalPreferencesKey(): string; buildGlobalPreferencesKey(): string;
/** /**
* Builds the key for a specific room. * Builds the key for a specific room.
* *
@ -144,6 +145,13 @@ export interface StorageKeyBuilder {
*/ */
buildAllMeetRecordingsKey(roomId?: string): string; buildAllMeetRecordingsKey(roomId?: string): string;
/**
* Builds the key for access recording secrets.
*
* @param recordingId - The unique identifier of the recording
*/
buildAccessRecordingSecretsKey(recordingId: string): string;
/** /**
* Builds the key for a specific user * Builds the key for a specific user
* *
@ -155,6 +163,4 @@ export interface StorageKeyBuilder {
* Builds Api Key * Builds Api Key
*/ */
buildApiKeysKey(): string; buildApiKeysKey(): string;
buildAccessRecordingSecretsKey(recordingId: string): string;
} }