505 Commits

Author SHA1 Message Date
Krishna Vachhani 45a0746776 add support for patching agent endpoints (#241)
* add support for patching agent endpoints

* clean up dead code and comments

* remove mutex

* fix lint extra space

* address review feedback
2026-05-15 09:52:58 -07:00
Benjamin Pollack 37d414cfeb Merge pull request #243 from ngrok/bmps/push-rpzuvrkuspvn
feat(diagnoser): return CAs used for TLS verification
v2.1.4
2026-04-27 09:26:01 -04:00
Benjamin Pollack 0033546fe5 feat(diagnoser): return CAs used for TLS verification 2026-04-23 18:51:58 +00:00
Roxy Light d5e65d8c25 Remove unused HandleTLSConnection function (#239) 2026-04-14 13:55:16 -07:00
Krishna Vachhani cab8b6badf add support for additional endpoint fields (#238) v2.1.3 2026-04-13 09:48:51 -07:00
Benjamin Pollack 89f78c81b5 Merge pull request #237 from ngrok/bmps/session-id
feat: expose the agent session ID
v2.1.2
2026-03-25 12:56:39 -04:00
Benjamin Pollack 914f21633c feat: expose the agent session ID
Resolves AGENT-426
2026-03-24 19:20:23 +00:00
Benjamin Pollack f7805c57cc Merge pull request #236 from ngrok/bmps/go-fix
chore: run go fix
2026-03-24 13:51:20 -04:00
Benjamin Pollack f14dfdde3f chore: run go fix 2026-03-24 17:17:55 +00:00
Krishna Vachhani 845f7704db add support for endpoint name (#234)
* add support for endpoint name

* add integration test utils changes (#235)
2026-03-20 13:32:50 -07:00
Roxy Light 8702ab9822 Rework integration_tests.MakeHTTPRequest function (#232)
- Make Context first parameter (Go convention)
- Check status code is 200 before returning
- Mark as test helper so that test output line numbers make sense
- Return error instead of unconditionally failing the test
- Ensure connection is closed before returning from the function
- Use `testing.TB` instead of `*testing.T` to allow use in benchmarks and fuzzing
2026-03-03 14:12:22 -08:00
Roxy Light 229632215b Extract and unify test certificate creation (#233)
We have a few different places where we create a test certificate.
This change creates a new package and updates all the tests to reference.
2026-03-03 12:50:08 -08:00
Roxy Light 04b0af1fad Rework integration_tests.SetupListener function (#230)
- Make Context first parameter (Go convention)
- Mark as test helper so that test output line numbers make sense
- Automatically close listener during cleanup
- Use `testing.TB` instead of `*testing.T` to allow use in benchmarks and fuzzing
- Remove testify usage
2026-03-03 10:30:51 -08:00
Roxy Light f3ca474fe3 Automatically disconnect agent during integration test cleanup (#228) 2026-03-03 10:28:11 -08:00
Roxy Light f1eb6f970a Introduce internal/testcontext package (#227)
This function will return a `Context` that obeys the `go test -timeout` flag.
Rather than having an arbitrary timeout that can cause flakiness,
the test runner can specify the timeout and the tests will run as long as they need.
2026-03-03 10:23:11 -08:00
Roxy Light 8ccd56abc2 Merge pull request #231 from zombiezen/push-zrlozkmolsos
Run online tests as separate GitHub Actions job
2026-03-03 09:37:33 -08:00
Roxy Light 5e921dabc6 Run online tests as separate GitHub Actions job 2026-03-03 09:08:05 -08:00
Roxy Light 2d22ef05cf Use go test -short flag to gate long tests 2026-03-03 08:46:25 -08:00
Krishna Vachhani c2ca9c0d53 expose connection and request metrics (#220) 2026-02-26 12:37:48 -08:00
Benjamin Pollack a4039b02ed Merge pull request #225 from ngrok/bmps/sdk-diagnostics
feature: add diagnostics support
2026-02-26 13:25:41 -05:00
Benjamin Pollack 631a6e05f4 fix: don't ignore errors in tests 2026-02-26 17:44:04 +00:00
Benjamin Pollack d7a4e069a4 fix: clean up goroutines in tests 2026-02-26 17:44:04 +00:00
Benjamin Pollack eda11e4916 fix: use localhost, not 127.0.0.1 2026-02-26 17:44:04 +00:00
Benjamin Pollack d1da39703e fix: adjust testing timeouts 2026-02-26 17:44:04 +00:00
Benjamin Pollack fc7ba835d7 fix: un-export diagnoseError 2026-02-26 17:44:04 +00:00
Benjamin Pollack 79f8fea783 fix: refactor to a single addr, and fix the errors with it 2026-02-26 17:44:04 +00:00
Benjamin Pollack 3ab2050217 fix: embed Agent in Diagnoser 2026-02-26 17:44:03 +00:00
Benjamin Pollack 37a39eec25 fix: use context.AfterFunc 2026-02-26 17:44:03 +00:00
Benjamin Pollack 3a77bcfd39 cleanup: use cmp.Or instead of a pile of if foo == nil checks 2026-02-26 17:44:03 +00:00
Benjamin Pollack 26fff5a830 chore: fix import paths 2026-02-26 17:44:03 +00:00
Benjamin Pollack cf4d86fac2 chore: rename Diagnosable -> Diagnoser 2026-02-26 17:44:03 +00:00
Benjamin Pollack 088b268c56 feature: add diagnostics support 2026-02-26 17:44:03 +00:00
Benjamin Pollack 8ba0084943 Merge pull request #226 from ngrok/bmps/routine-maintenance
chore: bump dependencies and clean up go.mod
2026-02-25 14:25:33 -05:00
Benjamin Pollack b95ea1005f chore: update Go dependencies to latest versions 2026-02-25 19:22:42 +00:00
Benjamin Pollack bf810c6355 fix: prevent goroutine panic after TestListenAndTCPConnection fails 2026-02-25 19:22:42 +00:00
Benjamin Pollack ae0f099b80 chore: update stale GitHub Actions in lint workflow 2026-02-25 18:53:57 +00:00
Benjamin Pollack b03dc46770 Merge pull request #224 from ngrok/bmps/todo-maintenance
chore: clean up a couple TODOs
2026-02-24 16:02:42 -05:00
Benjamin Pollack 0f4fc78b42 fix: resolve two TODO items
As far as I can tell, we're already doing item 7, and item 8 was a
one-line fix with no backcompat concerns
2026-02-23 19:48:25 +00:00
Benjamin Pollack e5183ef0de fix: add .claude/settings.local.json to ignores 2026-02-23 19:47:12 +00:00
Benjamin Pollack f77fff5e0a chore: sort .gitignore 2026-02-23 19:47:12 +00:00
Krishna Vachhani 203fb3cb91 Merge pull request #221 from ngrok/bmps/update-go-version
chore: update Go version
2026-02-18 15:59:02 -08:00
Krishna Vachhani c2cfeb10fc Merge pull request #222 from ngrok/kmvachhani/fix-ci
fix: increase test timeout
2026-02-18 15:57:13 -08:00
kmvachhani 19d6f63192 keep old tls client connection code 2026-02-18 14:44:03 -08:00
kmvachhani cbf679a902 increase test timeout 2026-02-18 14:43:05 -08:00
kmvachhani 5f8e7524e0 perform explicit tls handshake before forwarding to upstream 2026-02-18 13:59:52 -08:00
Benjamin Pollack bc175ddde5 fix: ignore the new errors found by the updated golint 2026-02-18 18:46:56 +00:00
Benjamin Pollack 0bf0b6bdab chore: bump golint config to v2 2026-02-18 18:46:56 +00:00
Benjamin Pollack 3b455f41c1 chore: update Go version 2026-02-18 18:46:55 +00:00
Jonathan Stacks 3bd43281ea Merge pull request #219 from ngrok/stacks/pre-2.1.1-release
chore: prep v2.1.1
v2.1.1
2025-12-05 13:13:07 -06:00
Jonathan Stacks cfc0b9798a chore: prep v2.1.1
Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
2025-12-05 13:10:38 -06:00