teleport/lib/web
Hugo Shaka 2077868d08
assist: support recording non-interactive forwarded sessions (#28677)
* assist: support recording non-interactive forwarded sessions

* assist: add integration tests for assist command recording on agentless

This also fixes a bugged openssh integration test check.

* Mock OpenAI API in integration tests.

Also fixes the OpenAI mock handler that was not supporting the "/v1/*"
routes used in some web/ tests.

* Docstrings + adressing again a feedback that got lost during a rebase

* restore signer function signature

* Address Jakub's feedback + diverse improvements

- improve comments
- simpler file creation
- more efficient rsa key generation
- use assert instead of require in other goroutines
- only save env vars if they are Teleport-related
- move more logic into newTestCredentials for readability

* Update lib/srv/forward/sshserver.go

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* Add a timeout in the ssh handler coroutine

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-07-14 15:03:57 +00:00
..
app Makes custom CORS logic a middleware (#28755) 2023-07-07 16:45:38 +00:00
desktop Export desktop recordings to video (#23253) 2023-04-06 23:20:00 +00:00
mfajson Remove U2F support (#10476) 2022-02-24 19:54:28 +00:00
scripts DeployService IAM Configure: unescape arguments (#28807) 2023-07-12 22:11:24 +00:00
session Support for benchmarking web sessions (#24864) 2023-06-23 15:08:06 +00:00
ui DeployService: auto upsert IAM Join Token (#28537) 2023-07-06 19:31:44 +00:00
addr.go Teleport Proxy Behind ALB support for IP Pinning (#26623) 2023-06-28 13:09:24 +00:00
addr_test.go Teleport Proxy Behind ALB support for IP Pinning (#26623) 2023-06-28 13:09:24 +00:00
apiserver.go split recording session events and emitting audit events (#27873) 2023-07-11 19:53:33 +00:00
apiserver_login_test.go Rate limit all unauthenticated HTTP endpoints (#24623) 2023-05-01 21:54:22 +00:00
apiserver_ping_test.go Return auto-enroll status on Ping (#24752) 2023-04-24 14:43:29 +00:00
apiserver_test.go split recording session events and emitting audit events (#27873) 2023-07-11 19:53:33 +00:00
apiserver_test_utils.go Remove support for DEBUG_ASSETS_PATH (#21346) 2023-02-08 17:27:22 +00:00
apps.go Web related tweaks for access request user groups (#28455) 2023-06-30 18:16:48 +00:00
assets.go Remove support for DEBUG_ASSETS_PATH (#21346) 2023-02-08 17:27:22 +00:00
assistant.go [Assist] Provide interactive updates during agent execution (#27893) 2023-07-03 14:48:06 +00:00
assistant_test.go assist: fix flaky assist test (#29029) 2023-07-13 13:36:06 +00:00
cachehandler.go Add caching to web assets (#22137) 2023-02-23 12:20:58 +00:00
command.go assist: support recording non-interactive forwarded sessions (#28677) 2023-07-14 15:03:57 +00:00
command_test.go Allow configuring number of parallel execution workers (#28151) 2023-07-12 12:53:48 +00:00
command_utils.go assist: support recording non-interactive forwarded sessions (#28677) 2023-07-14 15:03:57 +00:00
command_utils_test.go Assist: fix summary logic (#28487) 2023-06-29 22:54:26 +00:00
conn_upgrade.go Add missing Connection header for ALPN connection upgrade (#25346) 2023-05-01 13:09:19 +00:00
conn_upgrade_test.go Teleport Proxy Behind ALB support for IP Pinning (#26623) 2023-06-28 13:09:24 +00:00
connection_diagnostic.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
databases.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
databases_test.go Add elasticache:Connect AWS permission to auto-IAM (#26648) 2023-05-31 18:37:45 +00:00
desktop.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
desktop_playback.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
envelope.pb.go Use Buf to build/lint/format lib/ protos (#15870) 2022-08-29 17:44:18 +00:00
files.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
fuzz_test.go Fix moderated session presence checking (#25988) 2023-06-08 20:27:13 +00:00
gziphandler.go Remove use of deprecated ioutil package (#11296) 2022-03-21 18:00:34 +00:00
headless.go Headless SSO web endpoint and UI (#22914) 2023-03-22 15:16:09 +00:00
integrations.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
integrations_awsoidc.go DeployService IAM Configure: unescape arguments (#28807) 2023-07-12 22:11:24 +00:00
integrations_awsoidc_test.go DeployService IAM Configure: unescape arguments (#28807) 2023-07-12 22:11:24 +00:00
join_tokens.go Script to configure IAM for the DeployService (#28436) 2023-07-04 15:10:00 +00:00
join_tokens_test.go Install Script: don't enable Automatic Upgrades for non-systemd systems. (#28960) 2023-07-11 21:42:06 +00:00
mfa.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
mfa_codec.go Fix moderated session presence checking (#25988) 2023-06-08 20:27:13 +00:00
oidcidp.go WebAPI: thumbprint endpoint (#24997) 2023-04-28 17:01:21 +00:00
oidcidp_test.go WebAPI: thumbprint endpoint (#24997) 2023-04-28 17:01:21 +00:00
password.go Migrate ChangePassword RPC from HTTP to gRPC (#18682) 2022-11-26 12:47:43 +00:00
resources.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
resources_test.go Add option to allow for host users not to be deleted (#26892) 2023-06-23 13:35:57 +00:00
server.go Track active ssh sessions established via the web (#20231) 2023-01-27 14:38:39 +00:00
servers.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
sessions.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
sessions_test.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
sign.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
terminal.go Assist: mark individual nodes as finished (#28477) 2023-07-07 16:24:55 +00:00
terminal_test.go Fix moderated session presence checking (#25988) 2023-06-08 20:27:13 +00:00
user_groups.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
userevent.go lib/usagereporter refactor and consolidation (#22460) 2023-03-01 18:40:53 +00:00
userpreferences.go set onboarding survey on user preferences (#28530) 2023-07-03 17:43:06 +00:00
users.go Adds automatic approver user for use with access plugins (#27829) 2023-06-24 00:25:05 +00:00
users_test.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
web.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
ws_io.go Assist - Execution web endpoint (#25955) 2023-05-11 20:23:01 +00:00