feat: enforce read-only wechat archive ingestion
This commit is contained in:
@@ -980,6 +980,15 @@ function hasAllowAllNetworkPolicy(yaml: string, namespaceName: string): boolean
|
||||
&& /^\s*podSelector:\s*\{\}\s*$/mu.test(document));
|
||||
}
|
||||
|
||||
export function prepareLangBotSecretMaterial(): SecretMaterial {
|
||||
return prepareSecretMaterial(readLangBotConfig());
|
||||
}
|
||||
|
||||
export function readLangBotPostgresConninfo(): string {
|
||||
const langbot = readLangBotConfig();
|
||||
return postgresConninfo(langbot, prepareSecretMaterial(langbot));
|
||||
}
|
||||
|
||||
function prepareSecretMaterial(langbot: LangBotConfig): SecretMaterial {
|
||||
const root = secretRoot(langbot);
|
||||
const dbSourcePath = join(root, langbot.runtime.database.sourceRef);
|
||||
|
||||
Reference in New Issue
Block a user