mirror of
https://github.com/tale/headplane.git
synced 2026-08-22 02:36:38 +00:00
Implement path-based secret loading
This commit is contained in:
committed by
Aarnav Tale
parent
c3a50ea4f4
commit
8ea8c7195f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user