334 Commits

Author SHA1 Message Date
Vladimir Urushev
87f8d8e819 Fix panic when remote forward target is unavailable (#355) 2025-10-07 11:56:27 -04:00
Antonio Mika
34b5d5dc7e Update dependencies 2025-07-26 15:18:30 -04:00
Antonio Mika
d4c13b3bbb Ensure connection and listeners close if failure v2.20.0 2025-07-01 16:22:54 -04:00
Nikolaos Karaolidis
8268a9c9e7 Add proxy-ssl-termination option (#347)
Can be used when sish runs behind a reverse proxy to display HTTPS URLs despite running on the HTTP port

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
v2.19.0
2025-05-24 19:11:36 -04:00
Antonio Mika
e08f49add1 Fix test 2025-05-24 18:53:42 -04:00
Antonio Mika
47a56f6844 Update golangci-lint 2025-05-24 17:06:40 -04:00
Antonio Mika
9fd9b0b089 Update dependencies v2.18.0 2025-04-10 16:03:11 -04:00
Antonio Mika
e29172c299 Move accept logic to a goroutine so it becomes non-blocking (#345) 2025-04-10 16:01:44 -04:00
carlfriedrich
d067d8889a Make welcome message configurable (#343)
The message displayed to the user upon connection (which used to be a
hard-coded "Press Ctrl-C to close the session.") can now be configured
using the "welcome-message" setting in the config file or the
"--welcome-message" command line argument. The default value is the
beforementioned message, so without an explicit configuration the
behavior will be the same as before.
2025-04-02 15:48:52 -04:00
Antonio Mika
199d95b3a4 Add caching to docker build 2025-03-29 12:13:57 -04:00
Antonio Mika
3c679f1a71 Fix sni address for console 2025-03-21 13:27:50 -04:00
Antonio Mika
9c10f0a5e6 Update deps and fix PR builds 2025-03-21 11:16:55 -04:00
carlfriedrich
aba14b3bbc Support time zone in deadline setting (#342) 2025-03-21 11:09:34 -04:00
Antonio Mika
2e923b65f0 Fix actions for pull requests 2025-03-10 11:51:21 -04:00
carlfriedrich
3ed55464fa Add support for setting a connection deadline (#339)
This is useful if you do not want to keep a tunnel open for an unlimited
time and have Sish taking care of closing it automatically.
2025-03-10 11:43:04 -04:00
carlfriedrich
62f2590b36 Disable password authentification on empty password (#338)
If no password is set, disable password authentification completely
by setting an empty password callback function. This prevents brute
force attacks guessing the password and hence reduces server load and
log amount.
2025-03-04 11:34:27 -05:00
Antonio Mika
cb04dec529 Update packages, remove deps, lint cleanup 2025-02-23 11:05:05 -05:00
Antonio Mika
c2045ca37d Bump go version to 1.24 v2.17.0 2025-02-12 22:09:43 -05:00
Antonio Mika
b57ad24222 Set version for go releaser 2025-01-08 14:34:26 -05:00
Antonio Mika
5a2a4cf7fc Update github workflows v2.16.1 2025-01-08 14:30:16 -05:00
Antonio Mika
1cdff5a244 Fix deprecation for conn policy 2025-01-08 14:14:42 -05:00
Antonio Mika
c7a5a7c76a Fix workflow runs for PRs and update mods 2025-01-08 14:03:30 -05:00
Eric Bower
c234cc7f7c docs: update styles (#329)
* chore: go tidy

* style: docs

* style: tweak
2025-01-08 14:00:54 -05:00
Mac Chaffee
33f4005fc8 Document how to obtain the real client IP (#327) 2025-01-08 14:00:25 -05:00
Eric Rodrigues Pires
23ccc59337 Add password authentication request validation (#323)
This adds a password-based authentication mechanism under the option
`--authentication-password-request-url`, which functions similarly
to `--authentication-key-request-url`, but takes a password
instead of a public key.

Closes #322
2024-09-17 12:27:42 -04:00
Antonio Mika
b06d594a51 Use _sish as the dns prefix 2024-08-29 23:09:39 -04:00
Antonio Mika
dd019ce457 Update to go 1.23 2024-08-26 16:45:49 -04:00
Antonio Mika
cf234a11f6 Simplify logic for sni and tcp load balancers 2024-08-26 16:36:13 -04:00
Eric Bower
23a5184f47 docs: update pdocs (#312)
* docs: update pdocs

docs: fixed link

* fix: fmt
2024-07-18 08:53:25 -04:00
Antonio Mika
c31c49efe1 Add the ability to cancel tunnel requests (#311)
* Add the ability to cancel tunnel requests

* No need to check for session with cancellations
2024-07-11 11:41:11 -04:00
Antonio Mika
b59cd1e613 Allow on demand cert creation for root domain. Closes #287. v2.16.0 2024-05-28 10:55:45 -04:00
Antonio Mika
f381389cb0 Update deps (#302)
* Update deps

* Use bufio reader

* Revert "Use bufio reader"

This reverts commit c8003d469e.

* Print peeked info

* Revert "Revert "Use bufio reader""

This reverts commit ff656b0c94.

* Fixed sni reading

* Handle sni based unix conn better
v2.15.0
2024-04-30 16:52:08 -04:00
dependabot[bot]
81e435018e Bump golang.org/x/net from 0.22.0 to 0.23.0 (#301)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 09:36:38 -04:00
Antonio Mika
7ad6956c40 Enable the use of environment vars (#300) v2.14.0 2024-03-08 08:56:04 -05:00
Antonio Mika
9f3f566b7d Update to go 1.22 and use multilistener (#298)
* Update to go 1.22 and use multilistener

* Update

* Updates

* Set ports for tcp addresses properly

* Fix address separator

* Fixes

* Update multilistener

* Cleanup rogue log
v2.13.0
2024-03-07 18:33:15 -05:00
Eric Bower
d0511c4ebf chore: update pdocs to latest (#295)
* chore: update pdocs to latest

* design: sidebar
2024-03-07 09:13:34 -05:00
Eric Bower
3ad5105ec5 feat(docs): sitemap with links for headers (#292) 2024-02-13 10:24:03 -05:00
Dominik Konik
c64d009b3b Fix typo in comment (#294) 2024-02-12 23:08:27 -05:00
Antonio Mika
e8c56f637f Fix docs build 2024-01-29 10:30:04 -05:00
Antonio Mika
97edc2eed1 Run go mod tidy 2024-01-29 10:26:41 -05:00
Eric Bower
0c4f193f7d feat: docs site (#286)
* feat: docs site

* docs: copy

* chore(docs): update cli post

* revert

* chore: go.mod
2024-01-29 10:17:13 -05:00
Antonio Mika
689211287c Initial work on private aliases (#291)
* Initial work on private aliases

* Ensure the current user is allowed to access the alias

* Print the self ssh fingerprint

* Add pubkeyfingerprint to alias log line

* Start conn with self allowed for tcp aliases

* Cleanup
v2.12.0
2024-01-23 11:32:29 -05:00
Antonio Mika
4ed4208228 Pin golang to major.minor.patch (#284)
* Pin golang to major.minor.patch

* Update package deps
v2.11.0
2023-10-12 16:20:01 -04:00
Antonio Mika
7ca0808b5d Update golang versions. Supersedes up #282 (#283) 2023-10-11 19:49:44 -04:00
Antonio Mika
b89a4638f2 Set conn deadline to both reads and writes (#281) v2.10.1 2023-10-09 14:48:00 -04:00
Antonio Mika
56816e6de7 Updated go deps and general package work (#279)
* Updated go deps and general package work

* Update used go version to 1.21

* feat: wildcard support

* Fixed lint

* feat: auto redirect to https

* Use proper hostname in redirect

* Add wildcards to sni proxy

* Ensure wildcard isn't too greedy and fix sni on https port

* Code cleanup

---------

Co-authored-by: Son Nguyen <sonntuet1997@gmail.com>
v2.10.0
2023-10-07 20:14:32 -04:00
Antonio Mika
62dec83b13 Use original address for forwarded channel. Fix #237 v2.9.2 2022-12-20 13:31:17 -05:00
Antonio Mika
c54d681122 Force lower case aliases and subdomains v2.9.1 2022-12-12 12:04:17 -05:00
Antonio Mika
4b5c2db6c8 Update ci/cd and deps (#262)
* Update ci/cd and deps

* Fix build args
v2.9.0
2022-12-12 10:56:14 -05:00
Antonio Mika
a8236e5422 Fixed http override port (#256)
* Fixed http override port

* Cleanup references used for establishing tunnels

* Removed short flag from authentication-key-request-url
v2.8.1
2022-10-25 10:20:34 -04:00