summaryrefslogtreecommitdiff
path: root/internal/ssh
AgeCommit message (Collapse)Author
2025-06-19Refactor: Extract magic numbers as constants and reduce client code duplicationPaul Buetow
- Created internal/constants package with organized constant files: - timeouts.go: All time duration constants (timeouts, intervals, delays) - channels.go: Channel buffer size constants - limits.go: Numeric limits and configuration values - buffers.go: Buffer size constants in bytes - Replaced all magic numbers throughout codebase with named constants: - Time durations (2s, 3s, 5s, 10s, 100ms, 24h) now use descriptive constants - Buffer sizes (8KB, 64KB, 1MB) extracted to constants - Channel buffer sizes and multipliers - Configuration limits (max connections, concurrency, etc.) - Health check status codes - Percentage calculations - Reduced code duplication in client implementations: - Created CommonClient to share functionality between CatClient, GrepClient, and TailClient - All three clients now inherit from CommonClient - Eliminated duplicate makeHandler() and makeCommands() methods - Simplified client constructors This refactoring improves code maintainability by centralizing configuration values and reducing redundant code across similar client implementations.
2021-12-04Fix code smell - as reported by SonarQubePaul Buetow
2021-11-06Remove insecure and dangerous relaxed auth modePaul Buetow
2021-10-29explicitly use dlog.Server for server packages and dlog.Clent for client ↵Paul Buetow
packages for logging
2021-10-29refactor integration test ssh_host_key configurationPaul Buetow
2021-10-29mergePaul Buetow
2021-10-29Dont use relaxed SSH Auth mode anymore for integration testsPaul Buetow
2021-10-27integration tests use separate ssh private key filePaul Buetow
2021-10-24Fix DCat color test.Paul Buetow
2021-10-21merge developPaul Buetow
2021-10-21backport ECDSA key support form masterPaul Buetow
2021-10-19Can configure DTail client not to mess with ~/.ssh/known_hosts via env var - ↵Paul Buetow
this is useful for running unit and integration tests in jenkins
2021-10-10vetting and linting and some code restylingPaul Buetow
2021-10-02refactor config reader - also looks in additional search paths for config ↵Paul Buetow
file unless NONE is specified
2021-10-02move args to config packagePaul Buetow
logger package rewrite as dlog
2021-08-22introduces the protocol packagePaul Buetow
2021-03-16Support ECDSA SSH keyPhilip Foulkes
2020-09-04add ssh relaxed auth modePaul Buetow
2020-05-20can specify a private ssh key via command line, no password support yet thoughPaul Buetow
2020-05-13add more ssh key debuggingPaul Buetow
2020-05-13refactorPaul Buetow
2020-02-11more on scheduled jobs and ssh callbacksPaul Bütow
2020-02-10initial scheduled jobsPaul Bütow
2020-02-08move prompt to io/Paul 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