From 2de007f9ef8ae2724b9fbe2808ee25cbfe4ca876 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 3 Mar 2026 10:45:50 +0200 Subject: feat(config): add auth-key CLI and server cache settings --- internal/config/initializer.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'internal/config/initializer.go') diff --git a/internal/config/initializer.go b/internal/config/initializer.go index 146d1a0..b540457 100644 --- a/internal/config/initializer.go +++ b/internal/config/initializer.go @@ -92,6 +92,10 @@ func (in *initializer) processEnvVars(args *Args) { if len(sshPrivateKeyPathFile) > 0 && args.SSHPrivateKeyFilePath == "" { args.SSHPrivateKeyFilePath = sshPrivateKeyPathFile } + authKeyPath := os.Getenv("DTAIL_AUTH_KEY_PATH") + if len(authKeyPath) > 0 && args.SSHPrivateKeyFilePath == "" { + args.SSHPrivateKeyFilePath = authKeyPath + } // Check if turbo boost should be disabled from environment variable // Turbo boost is enabled by default, can be explicitly disabled if Env("DTAIL_TURBOBOOST_DISABLE") { @@ -113,6 +117,18 @@ func (in *initializer) setupConfig(sourceCb transformCb, args *Args, if args.NoColor { in.Client.TermColorsEnable = false } + if args.NoAuthKey { + in.Client.AuthKeyDisable = true + } + if in.Client.AuthKeyDisable { + args.NoAuthKey = true + } + if args.SSHPrivateKeyFilePath == "" { + args.SSHPrivateKeyFilePath = in.Client.AuthKeyPath + } + if args.SSHPrivateKeyFilePath != "" { + in.Client.AuthKeyPath = args.SSHPrivateKeyFilePath + } if args.LogDir != "" { in.Common.LogDir = args.LogDir } -- cgit v1.2.3