mirror of
https://github.com/tale/headplane.git
synced 2026-08-21 18:26:38 +00:00
Revert "Implement path-based secret loading"
This reverts commit 8ea8c7195f.
This commit is contained in:
@@ -10,16 +10,12 @@ import { HostInfo } from '~/types';
|
||||
import log from '~/utils/log';
|
||||
|
||||
export async function loadAgentSocket(
|
||||
authkey: string | null,
|
||||
authkey: string,
|
||||
path: string,
|
||||
ttl: number,
|
||||
) {
|
||||
if (authkey === null || authkey.length === 0) {
|
||||
log.warn(
|
||||
'agent',
|
||||
'Agent authkey is not configured or is empty, agent support will be disabled.',
|
||||
);
|
||||
return undefined;
|
||||
if (authkey.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user