summaryrefslogtreecommitdiff
path: root/internal/clients/baseclient.go
AgeCommit message (Collapse)Author
2026-04-10Fix known-hosts trust deadlock, host key stat, and optional nozstd buildPaul Buetow
- stdout logger: release mutex while waiting on pause resume so prompt callbacks can log (fixes hang after trusting new hosts; known_hosts was written but Resume never ran). - known hosts callback: stop borrowing the SSH dial throttle channel (could block or interact badly with parallel handshakes). - host key path: use errors.Is(..., fs.ErrNotExist) for RootedPath.Stat wrapped errors; stat errors now fail fast instead of mis-read. - public key path: same ErrNotExist check for authorized_keys miss. - Build: optional DTAIL_NO_ZSTD=yes / nozstd tag for CGO-free builds; split zstd readers into tagged files. - Docs/examples: firewalld note for port 2222, log prune timer+script, SSHBindAddress note, dserver unit disabled-by-default comment; firewalld helper script example. - Regression test for stdout pause/mutex behavior. Made-with: Cursor
2026-03-13task be5429a7: cover reconnect session restorePaul Buetow
2026-03-13task 57753d28: add interactive query controlPaul Buetow
2026-03-13task 407: add client session transportPaul Buetow
2026-03-13task 399: add client session spec scaffoldingPaul Buetow
2026-03-10Introduce client runtime boundariesPaul Buetow
2026-03-04fix: avoid defer-in-loop cancel in base client retry (task 359)Paul Buetow
2026-03-03feat(config): add auth-key CLI and server cache settingsPaul Buetow
2026-03-03feat(client): register AUTHKEY after SSH session startPaul Buetow
2026-03-02clients: add jittered exponential reconnect backoffPaul Buetow
2026-02-03Add SSH agent key selection and fix MapReduce outfile handlingPaul Buetow
This commit adds two major features and fixes: 1. SSH Agent Key Selection: - Add --agentKeyIndex flag to select specific SSH agent key (0-based) - Solves "too many authentication failures" with multiple SSH keys - Default -1 uses all keys (backwards compatible) - Available in dtail, dcat, dgrep, dmap commands 2. MapReduce Outfile Fixes: - CSV files now written at every interval, not just on exit - Proper signal handling (SIGTERM/SIGINT) with graceful shutdown - 5-second grace period for cleanup before force exit - Fixes issue where outfile remained as .tmp during execution Usage: dtail --servers host --agentKeyIndex 0 --query '...' outfile results.csv This is particularly useful with YubiKey/hardware tokens where many keys are loaded in the SSH agent, and for monitoring MapReduce results in real-time as they're computed. Co-authored-by: Cursor <cursoragent@cursor.com>
2024-03-29lint warningsPaul Buetow
2022-07-15Fix typos.Paul Buetow
2021-11-07can set ssh private key path file via env varPaul Buetow
2021-10-27Fix --shutdownAfter client switchPaul Buetow
2021-10-27integration tests use separate ssh private key filePaul Buetow
2021-10-10vetting and linting and some code restylingPaul Buetow
2021-10-06move health check to separate client binaryPaul Buetow
2021-10-06enable faster shutdown - useful for dgrep/dmap and dcat commandsPaul Buetow
2021-10-05more on thisPaul Buetow
2021-10-05more on thisPaul Buetow
2021-10-02move args to config packagePaul Buetow
logger package rewrite as dlog
2021-10-02fix auto reconnectPaul Buetow
2021-10-02remote connector is now an interfacePaul Buetow
2021-10-02add spartan modePaul Buetow
2021-10-02new docker test cases - also change default FATAL bg color to magentaPaul Buetow
2021-10-02mapreduce tables are in colors now tooPaul Buetow
2020-12-26initial quiet switchPaul Buetow
2020-12-26rename spartan to quietPaul Buetow
2020-12-26initial spartan mode supportPaul Buetow
2020-12-08merge developPaul Buetow
2020-09-10printing client stats every other second only if the connection count has ↵Paul Buetow
changed or when SIGUSR1 or SIGINFO recieved
2020-09-04fix regex bugPaul Buetow
2020-09-04server side support for new regex packagePaul Buetow
2020-09-04add more unit tests and deserializer/serializer to regexPaul Buetow
2020-05-20can specify a private ssh key via command line, no password support yet thoughPaul Buetow
2020-03-04can tail probe with a given timeout and then write a mapreduce resultPaul Buetow
2020-02-11more on scheduled jobs and ssh callbacksPaul Bütow
2020-02-10initial scheduled jobsPaul Bütow
2020-02-07Introduce drun command, refactor code to use context packagePaul Bütow
2020-01-21Move commands to cmd/ and move internal dependencies to internal/Paul Bütow