Implement path-based secret loading

This commit is contained in:
Erik Parawell
2025-05-19 13:06:35 -07:00
committed by Aarnav Tale
parent c3a50ea4f4
commit 8ea8c7195f
11 changed files with 1743 additions and 167 deletions
+7 -3
View File
@@ -10,12 +10,16 @@ import { HostInfo } from '~/types';
import log from '~/utils/log';
export async function loadAgentSocket(
authkey: string,
authkey: string | null,
path: string,
ttl: number,
) {
if (authkey.length === 0) {
return;
if (authkey === null || authkey.length === 0) {
log.warn(
'agent',
'Agent authkey is not configured or is empty, agent support will be disabled.',
);
return undefined;
}
try {