Commit graph

5078 commits

Author SHA1 Message Date
Marek Smoliński bf695e0cb4
Database Agent - remove Support for UserCA (#23758) 2023-04-14 07:57:38 +00:00
Michael Wilson a48bee3ef8
Introduce an OktaAssignmentsGetter and use it in the watcher. (#24440)
* Introduce an OktaAssignmentsGetter and use it in the watcher.

The `OktaAssignmentWatcher` has been adjusted to use an
`OktaAssignmentsGetter` interface, which is a read only interface. This is
due to the fact that the `OktaAccessPoint`, used by the Okta service, does
not fully implement the `OktaAssignments` interface (it does not implement
`DeleteAllOktaAssignments`). As the watcher only needs the read functions,
this will allow us to prevent the Okta service from having access to the
`DeleteAll` while still being able to use the `OktaAssignmentWatcher`.

* Update lib/services/okta.go

Co-authored-by: Marek Smoliński <marek@goteleport.com>

* Update lib/services/okta.go

Co-authored-by: Marek Smoliński <marek@goteleport.com>

---------

Co-authored-by: Marek Smoliński <marek@goteleport.com>
2023-04-13 21:18:27 +00:00
Andrew LeFevre 94baceef87
only call 'user.Current' when we really need to (#24156)
Calling 'user.Current' can be extremely slow in some instances, so avoid
it when possible.
2023-04-13 21:16:26 +00:00
David Boslee b1bcd8b90c
Fix authenticated conn metrics for http reporter (#24058)
* Fix authenticated conn metrics for http reporter

* Use sync.Map

* Remove conn tracker

* Use underlying *tls.Conn to ensure map key is comparable
2023-04-13 20:15:30 +00:00
Nic Klaassen b054261bc1
Update jonboulle/clockwork to 0.4.0 (#24099)
* Bump github.com/jonboulle/clockwork from 0.3.0 to 0.4.0

Bumps [github.com/jonboulle/clockwork](https://github.com/jonboulle/clockwork) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/jonboulle/clockwork/releases)
- [Commits](https://github.com/jonboulle/clockwork/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: github.com/jonboulle/clockwork
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* also update clockwork in api/

* consistently use fake clock in TestGenerateCerts

* fix TestGenerateUserCerts

* test fixes

* `go mod tidy` in api/

* fix TestGetKubeCredentialData

* tentative fix for TestUsageReporterDiscard

* fix test timeouts in lib/srv

* pass current time to getCredentialData

* fix timezone for circuit breaker test

* remove UTC conversions in test instead of adding in the production code

* tentative fix for TestSessionTracker_UpdateRetry flakiness

* fix aggregating.TestSubmitOnce

* add initial wait for session tracker retries

* fix kube proxy forwarder tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com>
2023-04-13 20:04:38 +00:00
rosstimothy 0120c2bceb
Fix TestService_ProxySSH_Errors flakiness (#24552)
The server may kill the stream prior to sending or receiving a message
so the test now checks whether an io.EOF was received in response
interacting with the server. We expect that an io.EOF should be
received either when sending or receiving a message. If both complete
successfully then we expect to receive the actual access denied error.
2023-04-13 18:49:06 +00:00
Michael Wilson 3906b36c0e
Allow the Okta role to read the cluster name. (#24538)
The Okta role is now able to read the cluster name.
2023-04-13 15:59:51 +00:00
Tiago Silva d9fe3e688b
Remove Role v6->v5 downgrade logic (#24510)
Teleport 13 supports clients running `>=12.0.0 && <=13.x.x` and all of
them already support Role `v6`, thus the downgrade logic can be removed
without impact.
2023-04-13 14:33:07 +00:00
Anton Miniailo de52c3a790
Fix IP pinning for SSO login (#24343)
We didn't get login IP when generating certificates for
SSO logins, so we couldn't pin certificates.
2023-04-13 13:41:46 +00:00
Noah Stride 95db60f4cb
Machine ID: Add ability to request RouteToCluster in generated certs (#23838)
* Add ability to request RouteToCluster in generated certs

* Start to account for identity impersonation when using client

* Expose routed and unrouted impersonated identities

* Fix tests

* Add Close method to mock auth

* Add support for other tests to use AuthenticatedUserClientFromIdentity

* Neater wrapping of args
2023-04-13 13:25:06 +00:00
Tobiasz Heller 7ce53f2a42
athena - prevent int overflow on 32arch (#24522) 2023-04-13 13:04:18 +00:00
Marek Smoliński b0e887a957
Add ability to overwrite default Teleport MySQL Engine Version (#24464)
* Add ability to overwrite default Teleport MySQL Engine Version

* Rename MySQLEngineVerson -> MySQLServerVersion
2023-04-13 10:09:10 +00:00
Tobiasz Heller 88fb60c164
athena audit logs - publisher (#23987)
* athena audit logs - publisher

* pass also version id

* Update lib/events/athena/publisher.go

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* rename snsCli and parse large_events_payload url before

* use aws sdk retry

* Wrapping errors

* update description

* go mod tidy

* Drop unused endpoints

* move log and awsCOnfig to top level config

* update aws-sdk-go-v2 deps

* address last PR comments

* update e_import and run go mod tidy

* go mod tidy

* make ci linter happy

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2023-04-13 08:58:52 +00:00
Krzysztof Skrzętnicki 2af9d76ec0
AWS-hosted OpenSearch support (#23305)
* AWS-hosted OpenSearch support.

* Review: comments, case, cleanup.

* Review: comments, region discovery, typos, shared func, fix error type, fix empty CA case.

* Review: address comments.

- add docs
- refactor opensearch engine code
- make `opensearchsql` default client
- drop utils.CloneRequest function, it is not suitable for general use
- drop "extra args" functionality, it should be a separate PR and more generic
- minor refactorings

* Fix: linting, refactoring issues.

* Review: update the comment for accuracy.

* Correct merge issue.

* Review: reuse transport, use different context, rename tests

* Review: unexport internal error types, explicitly test the error serialization.
2023-04-13 06:14:39 +00:00
Michael d9023fad9a
[web] Add isModeratedSession flag to web ssh session (#24238)
* Add isModeratedSession flag to web ssh session

* Fix lint

* Change to snakecase

* Change to moderated
2023-04-12 21:26:57 +00:00
Brian Joerger aaac6769cd
Add check for nil auth.local in ping response. (#24467) 2023-04-12 21:07:16 +00:00
Gavin Frazar 8be84115f5
update aws configurator (#24362)
* fix iam statements for AWS assumed-role identity
  * configurator tries to convert assumed-role to role
* revert IAM semaphore to use identity name
* hide the unused --attach flag, fix typo
* godoc reminder for databases with IAM db users
* add AWS Keyspaces and DynamoDB to AWS configurator
* relax constraint on external id in fileconfig
  * add fileconf test for externalid w/o assume role
* check for actions before prompting to confirm
* fix teleport discovery bootstrap --confirm
2023-04-12 19:47:35 +00:00
Andrew LeFevre 9ea710dc38
don't duplicate 'tsh scp' error messages (#18657) 2023-04-12 16:20:01 +00:00
Marco André Dinis e0d6c1de49
Integrations: web API and tctl (#24145)
* Integrations: web api and tclt

This PR adds end user interface to manage integrations:

`tctl`
```
$ tctl get integrations --config teleport.yaml --format text
Name        Type     Spec
----------- -------- ----------------------------------------------
myawsint    aws-oidc RoleARN=arn:aws:iam::123456789012:role/DevTeam
mynewawsint aws-oidc RoleARN=arn:aws:iam::123456789012:role/OpsTeam
```

HTTP API
```
$ curl 'https://127.0.0.1.nip.io:3080/v1/webapi/sites/lenix/integrations'

{
  "items": [
    {
      "name": "myawsint",
      "subKind": "aws-oidc",
      "awsOIDC": {
        "roleARN": "arn:aws:iam::123456789012:role/DevTeam"
      }
    },
    {
      "name": "mynewawsint",
      "subKind": "aws-oidc",
      "awsOIDC": {
        "roleARN": "arn:aws:iam::123456789012:role/OpsTeam"
      }
    }
  ],
  "nextKey": ""
}
```

* Add explicit type

* add awsoidc role arn setter

* change serializer

* ignore bodyclose linter false positive

* check for error before reading

* simplify webPack.DoRequest call

* fix godoc of WebClientPack.DoRequest

* return body and status code only
2023-04-12 16:06:30 +00:00
Andrew LeFevre fedb62f573
fix SFTP regression where non-existent source paths would have no error reported (#24444) 2023-04-12 15:57:10 +00:00
Andrew LeFevre 268c3c8db2
refactor web UI file transfers to use sftp package (#24260)
The sftp package is where modern file transfer logic lives and is
being maintained. Make the web UI use this package to unify
how we transfer files.
2023-04-12 13:48:15 +00:00
Marco André Dinis c0e5e1a1ef
Integration: add service to server and client (#24133)
* Integration: add service to server and client

* Add cache for Integration to Proxy

* Add RO for Integration resource for Proxy role
2023-04-12 11:34:21 +00:00
Marco André Dinis 9bc8e0d820
Restore MajorVersion template var for Installers (#24388)
* Restore MajorVersion template var for Installers

* Set Version for Installers template
2023-04-12 10:45:23 +00:00
Edoardo Spadolini 37919f1912
Remove unused function call forward (#24401) 2023-04-12 09:54:21 +00:00
rosstimothy f7845b6415
Prevent races when using WithoutJumpHosts (#24400)
Instead of modifying the current `TeleportClient` to have no jump
hosts, a new one is cloned from the existing one without the jump
hosts set.

Closes #24185
2023-04-12 01:39:42 +00:00
rosstimothy c692538864
Improve client api for listing resources (#23592)
Adds `GetResource` helpers that leverage generics to return a slice
of the expected resource type. This eliminates the need to use
a `type.ListResourcesResponse` and then call `AsServers` to convert
the `[]types.ResourceWithLabels` to `[]types.Server`.

Only calls for `types.Server` have been converted. Other resources
can be converted over time.
2023-04-11 18:23:47 +00:00
Gavin Frazar 7dbcb50a1e
reduce log spam when AWS Aurora engine name is not recognized (#24365) 2023-04-11 17:54:17 +00:00
Brian Joerger 66f1535c1e
* Add --mlock flag with auto, off, best_effort, and strict options. (#24236)
* Default headless to --mlock=best_effort to reduce errors to a debug
  log.

* Add error for non-linux operating systems using headless.

* Add a better mlock error message and add corresponding troubleshooting
  docs.
2023-04-11 17:27:26 +00:00
rosstimothy dda4af2cec
Update tsh bench ssh (#24276)
- Adds support for connecting to a random host
- Removes ability to test interactive sessions since they did not
actually open an interactive session.
2023-04-11 16:15:52 +00:00
Lisa Kim a5e3079eb5
Add integration access rule to web user context (#24256) 2023-04-11 16:03:29 +00:00
rosstimothy 992daa38c0
Convert tsh ls to use cluster client (#24294)
Migrates `tsh ls` to connect to the cluster via the new
`client.ClusterClient` to help reduce latency caused by geolocation.
Doing so resulted in some tests failing due to the cluster name of
the client not being set correctly. The `ClusterClient` now only
uses the guessed client if jump hosts were provided and the inferred
cluster name is not the root cluster.
2023-04-11 15:58:20 +00:00
Michael Wilson f958facdac
Add CA, Role, Lock AuthPreference RO persmissions to RoleOkta. (#24089)
* Add CA, Role, Lock AuthPreference RO persmissions to RoleOkta.

RoleOkta now has read only access for CertAuthority, Role, Lock, and
ClusterAuthPreference objects so that it can utilize an authorizer when
redirecting apps.

* Remove lock from Okta cache, remove tasks*.go.
2023-04-11 15:44:56 +00:00
Justinas Stankevičius aec3669d17
Hosted plugin manager prerequisites (#23922)
* Expose Ping() in bare auth server

* Handle both pointer and bare PluginStatusV1

* Add metric name

* Add StatusSink

* Run GCI

* Move comment back to auth_with_roles

* Update lib/auth/auth.go

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

* Rework SetStatus

* Inline TryEmitStatus and use a proper context

* Fix copyright notice

* Fix bug in statusFromStatusCode

* Test statusFromResponse

* Add link to Slack API schema

* Refactor statusFromStatusCode

* Expand comment for Ping()

* Add basic check for status in slack test

* Address nits

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-04-11 15:24:25 +00:00
Edoardo Spadolini 7f3a868400
Fix log output in aggregating.Reporter (#24368)
Before this change, the UUID was written to the log in base64.
2023-04-11 15:19:57 +00:00
Michael Wilson f52e04e1c7
Add Okta assignment update statuses to Okta access point. (#24002)
The Okta assignment update statuses function has been added to the Okta
access point for use by the Okta enterprise service.
2023-04-11 15:04:52 +00:00
Michael Wilson ff11ce1c46
Expose CopyAndConfigureTLS. (#24377)
CopyAndConfigureTLS will be used by the enterprise Okta service. It has been
refactored and exposed to allow for this.
2023-04-11 15:02:38 +00:00
Andrew LeFevre f29d83970c
enable globbing when using 'tsh scp' (#23789)
* enable globbing when using 'tsh scp'

Also fix copying symlinked files.

* addressed feedback
2023-04-11 14:54:40 +00:00
dependabot-batcher[bot] 64eee28c6e
Batched Dependabot updates (#24327)
* Bump github.com/docker/docker in /integrations/kube-agent-updater

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 20.10.21+incompatible to 20.10.24+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v20.10.21...v20.10.24)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/docker/docker in /examples/service-discovery-api-client

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.1+incompatible to 23.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.1...v23.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump uuid from 1.3.0 to 1.3.1

Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.0...1.3.1)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump golang.org/x/net from 0.8.0 to 0.9.0 in /api

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump bitflags from 2.0.2 to 2.1.0

Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.0.2 to 2.1.0.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0)

---
updated-dependencies:
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump libc from 0.2.140 to 0.2.141

Bumps [libc](https://github.com/rust-lang/libc) from 0.2.140 to 0.2.141.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.140...0.2.141)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.4.0 to 1.5.0

Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.4.0...sdk/azcore/v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/bufbuild/connect-go from 1.5.2 to 1.6.0

Bumps [github.com/bufbuild/connect-go](https://github.com/bufbuild/connect-go) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/bufbuild/connect-go/releases)
- [Commits](https://github.com/bufbuild/connect-go/compare/v1.5.2...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/bufbuild/connect-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump cloud.google.com/go/kms from 1.10.0 to 1.10.1

Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.10.0...kms/v1.10.1)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/kms
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump golang.org/x/text from 0.8.0 to 0.9.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds from 1.13.1 to 1.13.2

Bumps [github.com/aws/aws-sdk-go-v2/feature/ec2/imds](https://github.com/aws/aws-sdk-go-v2) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.13.1...service/mq/v1.13.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* regenerate porehog file after updating connect-go

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-batcher[bot] <122306277+dependabot-batcher[bot]@users.noreply.github.com>
Co-authored-by: Tobiasz Heller <tobiasz.heller@goteleport.com>
2023-04-11 12:57:19 +00:00
Forrest b2a30234f4
maintenance window agent export logic (#23062)
* client-side upgrade window export

adds client-side logic for exporting maintenance windows
for external updaters. export behavior is enabled via
env var (`TELEPORT_EXT_UPGRADER=kube|unit`).

* print raw version

* update e-ref
2023-04-11 06:28:41 +00:00
Forrest ceb61f53d2
maintenance window API (#22850) 2023-04-11 00:23:03 +00:00
Brian Joerger fe0810b5cb
* Fix headless authentication watcher race condition on wait condition (#24166)
* Fix headless authetnication watcher race condition on initial backend
  check

* Fix rare race conition in headless authn watcher test using sync.Once

* Customize time between put events to avoid unwanted stale checks.
2023-04-11 00:01:59 +00:00
Andrey Bulgakov 62bfd2175b
Proto changes for partial cache (#24229) 2023-04-10 17:42:31 +00:00
Gavin Frazar c42ae4e6ce
AWS cross-account db discovery (#22866) 2023-04-10 16:36:32 +00:00
Michael Wilson ff15a40654
Ensure the Okta service can connect through the reverse tunnel. (#24107)
* Ensure the Okta service can connect through the reverse tunnel.

A few additional spots were not updated when enabling tunneling for the new
enterprise Okta service. Those spots are:

* `auth.DefaultDNSNamesForRole` needed to be updated to ensure that wildcard
  certs for the API domain are generated.
* `reversetunnel` updates to ensure the `OktaTunnel` is handled in a similar
  fashion to the `AppTunnel`.
* `process.getAdditionalPrincipals` needed to be updated to account for the
  `HostUUID` as part of the principals supported for certificates.

With these, the Okta service is able to handle connections over the reverse
tunnel properly.

* Add comment to getConn switch statement.
2023-04-10 13:52:43 +00:00
Michael Wilson 7973a1e6c6
Allow Okta role to heartbeat app servers. (#24061)
App servers can be heartbeated by the Okta role.
2023-04-10 13:13:18 +00:00
Gavin Frazar a190a2e0fa
support cross-account AWS db access (#23680)
* AWS cross account database access

* update aws cloud clients, engines, metadata
* base64 encode semaphor
* update tests for refactored cloud clients

* use TTL cache for AWS sessions
2023-04-08 00:01:56 +00:00
Noah Stride 5000c097f8
Consistent role impersonation expiry between normal join & delegated joining bots (#24228)
* Consistency for role impersonation expiry between normal join & delegated joining bots

* Add testing for certificate expiry configuration

* Add another test case
2023-04-07 20:58:38 +00:00
Andrew LeFevre 40c113b8da
refactor SFTP backend to use upstream dep, not our fork (#23786)
* refactor SFTP backend to use upstream dep, not our fork

This change also greatly reduces the number of SFTP audit logs.
Now SFTP events are only sent when files are opened or modified
in any way, instead of for *every* SFTP request.

* added to SFTP integration test

* fix error when handling setstat on dirs

* fix linter warning

* move file/dir permission constants to lib/defaults package
2023-04-07 01:51:22 +00:00
Zac Bergquist bf52b4f3f5
Export desktop recordings to video (#23253)
* Export desktop recordings to video

Add a new tsh command that will write Windows desktop recordings
to an AVI file for offline playback. Encoding is done client side
to avoid consuming server resources.

This uses the Motion JPEG codec (https://en.wikipedia.org/wiki/Motion_JPEG)
for its simplicity and ease of use. Something like ffmpeg would perform
better in nearly every aspect (run time, compression / file size, video
quality, etc), but that would complicate our build process and add extra
native dependencies. This implementation uses pure Go and works on any
platform where tsh runs today.

Also make sure `tsh recordings ls` shows Windows and SSH recordings.

* Untangle test imports

lib/events/eventstest is allowed to import lib/events
(it needs to in order to implement interfaces and use types)

This means lib/events can not import lib/events/eventstest,
which requires that we move some tests from package events
to package events_test

* tdp: break dependency on lib/srv

The lib/srv package is large and contains Unix-specific code.
Now that tsh needs to understand the TDP protocol, we need to
avoid importing lib/srv so that tsh can still build on Windows.
2023-04-06 23:20:00 +00:00
Edoardo Spadolini 851cb6598e
Fix package names for v1 protos, misc proto changes (#24183)
* Delete teleterm's ptyHost/v1, added by mistake

* Add package name to protos conforming to PACKAGE_VERSION_SUFFIX

* use go run in buf-connect-go.gen.yaml directly

* Run protogen in place

* Run the buf-go generation off of go run

This also adds protoc-gen-go-grpc to go.mod
2023-04-06 22:53:31 +00:00