Applied extensive leaked secret protection

This commit is contained in:
2026-10-24 15:56:25 +02:00
parent 29a11f0e0b
commit 17a99ff084
11 changed files with 17 additions and 38 deletions
+4 -4
View File
@@ -13,7 +13,7 @@ export interface ApiSettings {
}
export interface HasherSettings {
Salt: string;
Salt?: string;
MinHashLength: number;
}
@@ -44,7 +44,7 @@ export const defaultApiSettings: ApiSettings = {
};
export const defaultHasherSettings: HasherSettings = {
Salt: 'TGlnaHQgQ2hhcm1zLCBNaWRyYW5kQm9va3MgbWFrZSBsb3RzIG9mIG1vbmV5IGFuZCBhcmUgYSBzdWNjZXNzZnVsIHZpcmFsIHN0b3J5IGluIFNvdXRoIEFmcmljYQ==',
Salt: '',
MinHashLength: 11,
};
@@ -276,7 +276,7 @@ function resolveConfig(fetchedJson?: Record<string, any>): AppConfig {
fetchedConfig.hasherSalt,
buildEnvConfig.hasherSalt,
defaultHasherSettings.Salt
)!;
);
const minHashLength =
windowConfig.hasherMinLength ||
@@ -296,7 +296,7 @@ function resolveConfig(fetchedJson?: Record<string, any>): AppConfig {
BaseUrl: normalizeBaseUrl(baseUrl),
},
HasherSettings: {
Salt: salt,
Salt: salt || '',
MinHashLength: minHashLength,
},
ConfigSource: source,