Commit Graph
1136 Commits
Author SHA1 Message Date
Marek Smoliński 2484750450 Audit Log Oracle settings (#29566) 2023-08-21 12:33:12 +00:00
Trent Clarke acb89407b1 Changes to Discord plugin for running in hosted mode. (#30432)
* Changes to Discord plugin for running in hosted mode.

Includes:
 * Moves Default API URL setting into Sidcord config
   CheckAndSetDefaults()
 * Only creates a Teleport client is one is not supplied during
   plugin construction.
 * Optional hosted-plugin status updates

* fmt
2023-08-21 03:32:08 +00:00
Sakshyam Shah c584138b49 Add FeatureRecommendationEvent to Prehog (#30526)
* add FeatureRecommendationEvent to prehog

* udpate name captureFeatureRecommendation to captureFeatureRecommendation(Event) for consistency
2023-08-19 00:37:48 +00:00
Alex McGrath 4fdaf08c11 Add DeleteClusterMaintenanceConfig for terraform (#30214) 2023-08-18 10:21:55 +00:00
rosstimothy 71b68695c9 Make TestWebClientClosesIdleConnections more stable (#30630)
Improves reliability of the test by eliminating the reliance of
connection states being received in the expected order. Instead all
states are sorted and compared with the expected states.

Fixes #30535
2023-08-17 19:23:33 +00:00
Michael Wilson 0e1b0df90d Begin separating access list members from access list resources. (#30500)
* Begin separating access list members from access list resources.

Access list members are currently part of access list resources, and this can
result in access list resources that are larger than 400KB, making them
unsuitable for use by dynamo. This commit begins the process of extracting
the members from the access list resources.

The existing access list members field on the access list messages and
internal object have been left during this migration so as not to cause any
build breakages, but will be removed once the rest of the boilerplate is
in place.

* Correct spelling.

* GCI.

* Restore members in access list spec in tests/conversion to maintain compatibility during migration.
2023-08-17 13:59:39 +00:00
Forrest 4e66a6fc67 support case-insensitive routing option (#29320)
* support case-insensitive routing option

* update docs
2023-08-17 00:48:19 +00:00
Michael Wilson c954d149cb Generate user login state from access lists and integrate into certificates. (#29364)
* Generate user login state from access lists and integrate into certificates.

On login, the user login state will be generated, using access lists to
register additional roles and traits that will be inserted into the user's
certificate.

Tests have been added to exercise this as well.

* Cache user login states, filter roles that aren't in the backend.

* Small refactor.

* Optimize RPC calls, test merge login in auth.go more thoroughly.

* Warn when role is missing.

* Update so access info uses the user login state directly, user login state comprises the whole state as opposed to a mix.

* Logic tweaks to restore tests.

* Integrate user login state cache.

* Swap out get user for get user state where applicable.

* Revert unrelated debug change.

* Add in missing err check.

* Further replacing with user state.

* Revert changes to helpers to try to get integration tests working.

* Revert "Revert changes to helpers to try to get integration tests working."

This reverts commit 682e92064b.

* Add in user type to generator.

* Use supplied user for generating SSH certs.
2023-08-17 00:44:32 +00:00
Justinas Stankevičius 96f3df96b1 Enable limited Access Requests feature for the Team plan (#29866)
* Add access request monthly limit to Features

* Add a method to retrieve usage of Access Requests

* Verify access request limit when creating

* Remove AccessRequestsFeature.Enabled

Feature is always enabled now, the flag serves no purpose

* Expose usage of access requests in auth server

* Reimplement access request usage using audit log

* Disallow unauthenticated access to resource usage

* Tidy proto structures

* Start enforcing access request limit in auth

* Run GCI

* Add a license header to usage_test.go

* Add missing godoc

* Restructure usage proto per PR comments

* Construct proto.AccessRequestUsage in getARMU

* Reduce log level when encountering an unexpected event

* Simplify return

* Add godoc to GetResourcesUsage in client

* Fix merge mess-ups

* Count all requests, no matter their review state

* Factor out GetAccessRequestMonthlyUsage

* Move out resource usage to its own service

* Validate the limit after dry run is done

Unbreak UI when the limit is up

* Fix imports

* Remove Limit

SearchEvents will default to defaults.EventsIterationLimit

* Rename the service proto

* Add godocs to the gRPC service

* Move resource usage to a dedicated package

* Define single GetUsage rpc for all resource types

* Additions for limited access requests UI rework

* Add a test for GetAccessRequestMonthlyUsage

* Address lint

* Run GCI

* Add licenses where missing

* Expect CTA_UNSPEICIFED rather than `undefined`

* Expect CTA_UNSPECIFIED instead of undefined
2023-08-16 17:20:34 +00:00
Bartosz LeperandMichael Myers 6a3dae2e6f Add filtering by kind and sorting by name or kind to the Unified Resources view (#30124)
* Update resourceKind method to return slice

* Add UnifiedResourceComponent

* Add unifiedResourceWatcher to auth server

* Init unified resource watcher

* Convert to strings for error output

* Add license

* Add some tests

* Fix a race condition and properly close the watcher

* add defer

* Add kubes to watcher

* Add uninit check

* Notify if stale

* Add SAML to watcher

* Update test and fix lint

* Fix license

* Add godocs

* Add Kind to ui structs

* Add FakePaginateParams

* Update ListUnifiedResources proto messages

* Update uses of FakePaginate

* Include type in seenmap for MatchResourceByFilters

* Update TestAuthServer with unified resource watcher

* CheckAndSetDefaults for ListUnifiedResourcesRequest

* Add ListUnifiedResources rpc

* Update protos

* Add test

* Add docs and update tests

* Add more docs

* Combine app types in switch

* Fix tests

* Add kube access checker

* Add remaining kinds

* Add a Unified Resource card component

* Lint fixes

* WIP: Unified Resource list

* Review feedback

* Add configurable queuesize to NewWatcher

* Move Get to collector

* Review comments

* Rename AgentKind and fix lint issues

* make unified resource cache public

* Move to common interface

* Use copy as value

* Move saml getter

* Review comments

* WIP: infinite scrolling

* Prevent VS Code from showing errors in tsconfig

If tsconfig doesn't have an `outDir` option set, VS Code shows multitude of errors of the following kind:

```
Cannot write file '/Users/bartosz/code/teleport/e/web/teleport/babel.config.js' because it would overwrite input file.
```

* Remove unnecessary files

* todo

* Cleanup

* Add license

* invert watcher and cache

* Fix imports

* Fix lint: check for err

* Add Kind to ui structs

* Add FakePaginateParams

* Update ListUnifiedResources proto messages

* Update uses of FakePaginate

* Include type in seenmap for MatchResourceByFilters

* Update TestAuthServer with unified resource watcher

* CheckAndSetDefaults for ListUnifiedResourcesRequest

* Add ListUnifiedResources rpc

* Update protos

* Add test

* Add docs and update tests

* Add more docs

* Combine app types in switch

* Fix tests

* Add kube access checker

* Add remaining kinds

* use cache instead of watcher

* review round 1

* Update test

* Review, fixing broken tests

* Add copy to get

* Add a search panel to the unified resources list

* Add CloneAny interface to help with unified resource cloning

* Use cloneany

* Add sort for name and kind

* Add app and saml, fix tests

* Review

* Review

* Lint

* Watch kube server instead of cluster

* Watch kube server instead of cluster

* Get kubecluster from server

* update proto file

* Add no access test case

* Review, fix CI problems

* One more lint fix

* Yet another lint fix

* move sorting

* Fix sorting by name

* Review feedback round 2

* Remove unneeded bk return

* Keep grpc naming convention

* Add missing docs

* defer log

* WIP: filter and sort

* Make sorting work

* Make filters (almost) work

* Fix the filters

* Fix filter history handling and kind-based sorting

* Visual tweaks

* lint and test fixes

* Add licenses

* Review

* Fix the useEffect dependency list

* Review feedback

* Adds a UnifiedResource watcher to the auth server. This watcher
will watch all the types that are displayed in the web UI and store
them in-memory to allow us to search/filter/query and get multiple
kinds returned at the same time.
[RFD](https://github.com/gravitational/teleport/pull/28162)

* Add ListUnifiedResources gRPC and web endpoints (#29661)

Adds the `ListUnifiedResources` grpc endpoint that returns paginated unified resources and exposes it in the web apiserver

* Fix tests

---------

Co-authored-by: Michael Myers <michael.myers@goteleport.com>
2023-08-16 15:21:07 +00:00
Yassine Bounekhla c9a8288920 add feature hiding license flag (#30083) 2023-08-15 20:56:33 +00:00
Alan Parra b30d9c22c5 Remove lib/auth/webauthn dependency from webauthncli (#30377)
* Alias `api/types/webauthn` imports to `wanpb`

* Use `webauthnpb` as the default package name

* Move messages.go to webauthntypes/

* Move extensions.go to webauthntypes/

* Move proto.go to webauthntypes/

* nit: Use consistent license style

* Use the `wantypes` alias for webauthntypes

* Use the `wanwin` alias for webauthnwin

* nit: Move winwebauthn.go to webauthnwin.go

* Document package webauthntypes

* Alias types required by e/

* Appease linter

* Add all main types/method to compat.go

* Reinstate spaces on proxy_test.go

* Alias newly-added usages
2023-08-14 21:24:37 +00:00
Michael 9c55a33e01 Add Unified Resource watcher (#28296)
* Adds a UnifiedResource watcher to the auth server. This watcher
will watch all the types that are displayed in the web UI and store
them in-memory to allow us to search/filter/query and get multiple
kinds returned at the same time.
[RFD](https://github.com/gravitational/teleport/pull/28162)

* Add ListUnifiedResources gRPC and web endpoints (#29661)

Adds the `ListUnifiedResources` grpc endpoint that returns paginated unified resources and exposes it in the web apiserver

* Fix test
2023-08-14 21:13:46 +00:00
Alan Parra a394a0ee1b chore: Bump golang.org/x/exp and fix breakages (#30439)
* Bump golang.org/x/exp

* Fix `slices.SortFunc` and `slices.SortStableFunc` calls

* Avoid Time.Compare in api/
2023-08-14 18:29:48 +00:00
Gabriel Corado 0f4536dd09 Add PostgresSQL and MySQL benchmark commands (#30172)
* feat: add tsh bench for mysql and postgres databases

* refactor(benchmark): code review changes

* test(tsh): make error assert more generic
2023-08-14 16:04:30 +00:00
Przemko Robakowski ef42fbecb7 Limited access to non-AD desktop for OSS users (#28977) 2023-08-11 18:02:23 +00:00
Marco André Dinis 1e4a54eb0a AgentMetadataEvent: add AWS OIDC Deploy Service install method (#30255)
This PR adds a new install method (`awsoidc_deployservice`) to agent
metadata events that are sent to posthog in tp.agent.metadata event.

The task definition was changed to include a new env var that indicates
this installation method.
2023-08-11 13:15:40 +00:00
Alex McGrath 3ace75516c Set network restrictions static fields upon update (#30274) 2023-08-11 09:08:00 +00:00
Trent Clarke 945d4b2584 Adds Discord settings to API types. (#30166)
Changelog: none
2023-08-10 23:18:22 +00:00
Alan ParraandZac Bergquist 5d7ca18d03 Error if users attempt to do tsh login --headless (#30298)
* Do not trigger SSO warning for local auth

* Escalate headless debug log to error

* Tweak error message

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

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-08-10 19:29:38 +00:00
Andrew Burke 0c55fe92cf Emit event for auto-discovered VMs (#29285)
This change adds the ability for Teleport to emit `ResourceCreateEvent`s
when an SSH node, database, or kube cluster is auto-discovered.
2023-08-10 18:48:10 +00:00
STeve (Xin) Huang 116d88063c Database Service to validate URL of database resources from Discovery Service (#30054)
* url checker

* add ut

* add comment in test plan

* warnOnError only when err is not nil

* fix typos etc.

* enable metadata service permission for discovered databases

* add a debug log when azure db url is validated
2023-08-10 16:48:08 +00:00
Marco André Dinis e32248c312 EC2 Instance Connect Endpoint: List EC2 Instances (#29366)
* EC2 Instance Connect Endpoint: List EC2 Instances

We must list the EC2 instances to the user, so they can pick one and
then add them as a Node.

This PR adds EC2 Instance Listing.
To do this, we convert the EC2 Instance into Teleport Server with a
special subkind: SubKindOpenSSHEC2InstanceConnectEndpointNode

This is similar to the ListDatabases endpoint.

* review pt1

* fix const and add test

* use any instead of interface{}
2023-08-10 11:26:10 +00:00
Andrew LeFevre 929a8bba84 add option to force re-authentication for OIDC connectors (#29815)
* add option to force re-authentication for OIDC connectors

* expose max_age directly

* update comment for MaxAge, regen operator manifests to make linter happy

* make max_age nullable

* make max_age a duration

* use google.protobuf.Duration

* Revert "use google.protobuf.Duration"

This reverts commit e6c3b7deaf9ffebb33492e3b6e575289e3ad1c37.

* make it more clear that max age is a full duration

* document how MaxAge duration is represented

* rebuild operator manifests
2023-08-09 21:52:41 +00:00
Michael Wilson 64e3cdfb50 Add in the access list tctl command. (#29321)
* Add in the access list tctl command.

The access list (acl) command has been added into tctl, which will allow
for the management of access lists from tctl. Access lists can be created
and deleted by administrators as well.

Additionally, a bug with the access list wrapper client was corrected where
the access list was not being properly added into the upsert access list
request. A final proto nil check was added into access list's FromProto
to ensure that there's no potential panics here.

* GCI.

* Use slices, tweak function names.

* Use paginated list instead of list.

* Correct the user-name flag, correct typo.

* Revert back to expires.
2023-08-09 20:06:54 +00:00
64d3e8c505 Add discovery for Kubernetes apps (#28988)
* Add discovery for Kubernetes apps

* Address review comments

* Init nil slice instead of empty one

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

* Improve comment wording.

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

* Optimize discovery clients initiation code

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

* Combine var usages

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

* Fix error message

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

* Handle the error

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

* Remove unneeded input

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

* Use once for kubernetes client getter

* Simplify clients structure for discovery

* Add umbrella field for discovery matchers

* Move port protocol detection into discovery

* Add automatic protocol detection to the Kuberentes fetcher

* Simplify kube apps discovery test

* Return concrete fetcher instead of interface

* Remove parallelization of a test.

* Fix race condition in the test

* Fix after rebase

* Address review comments

* Use var instead of empty slice

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

* Optimize switch

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

* Decapitalize error message

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

* Use var instead of empty slice

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

* Use t.Parallel()

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

* Remove unneeded test parameter

* Use t.Parallel()

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

* Use var instead of empty slice

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

* Fix tests

* Improve wording.

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Address review comments

* Refactor discovery clients location

* Fix flaky tests

* Fix comment

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

* Address review comments

* Fix tests after rebase

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>
2023-08-09 14:44:58 +00:00
Michael Wilson 54c7343c9b Add user login state to the cache. (#30139)
* Add user login state to the cache.

The user login state has been added to the cache. This will allow user login
state lookups to be quickly looked up on login.

* Add in user login state service to attach to cache.

* Use fallback for user login state.

* Defer after checking branch, address new logger.
2023-08-09 02:53:03 +00:00
rosstimothy ff6a81a8bd Removes support for legacy ssh connections to the Proxy (#30043)
In preparation for v14 we can remove support for SSH connections
to the Proxy from the `api/proxy.Client` since all supported instances
should all be serving the TransportService.
2023-08-09 02:10:44 +00:00
Marco André Dinis f1d1d67ebe EC2 Instance Connect Endpoint: HTTP endpoint to create Nodes (#29370)
* EC2 Instance Connect Endpoint: HTTP endpoint to create Nodes

When the user receives a list of EC2 instances, they must be able to
pick one and add it to the cluster.

To do so, we must provide an API that accepts the node information and
adds it to the backend.

Only Nodes of type SubKindOpenSSHEC2InstanceConnectEndpointNode are
allowed.
Other nodes have their own join method which is not part of the HTTP
API.

* review pt1

* rename subkind

* fix import order
2023-08-08 17:52:10 +00:00
Tiago Silva 1178971b3d Remove GetAppSessions and deprecated DatabaseServerSpecV3 fiels (#30141)
This PR removes `GetAppSessions` functions in favor of
`ListAppSessions`.

It also removed all the deprecated fields in the `DatabaseServerSpecV3`
message.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2023-08-08 16:59:46 +00:00
Gavin Frazar d688444488 refactor label string formatting (#30079)
* Add FormatLabels helper func in tools/common

* add --verbose to tsh clusters and tsh request search

* replace tctl label format func with common.FormatLabels

* replace tsh label format funcs with common.FormatLabels

* remove dead code

* fix kube test

* fix json serialization

* respect verbose flag for truncating labels

* tsh clusters
* tsh request search
2023-08-08 16:57:34 +00:00
Alan Parra 98701a9146 chore: Bump gravitational/trace to v1.3.1 (#30152)
The latest patch fixes trail+aggregate support.
2023-08-08 13:16:44 +00:00
Alex McGrath 91471f605e Add option to configure JWT claim rewriting (#29687)
stringify & remove the jwt values when asked

Plumb up the file configuration

Add a test for jwt token rewriting

resolve comments

Use string instead of enum
2023-08-08 10:30:27 +00:00
rosstimothy 0df19b2727 Remove deprecated UpsertToken and CreateToken RPCs (#30078) 2023-08-08 08:33:56 +00:00
Tiago Silva 1aa6acde91 Remove deprecated code from Teleport codebase (#30120)
This PR removes from the Teleport codebase the following deprecated
code:
- Kubernetes Secret storage compatibility layer: This piece of code was
  introduced in Teleport 11 to help users migrating from on-disk
  credentials storage to Kubernetes secret storage. Since then, all
  users should already migrated to Kube secret storage and it's no
  longer needed.
- Expected `no kubernetes_users/kubernetes_groups` error message:
  The error message changed in Teleport 13 and was left for compatiblity
  reasons since Auth server supported `kubernetes_services` running
  `v12.x.x`.
- References to `kube.` SNI prefix for Kube access

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2023-08-07 20:50:35 +00:00
d11ddbbf60 Batched Dependabot updates (#30105)
* Bump github.com/aws/aws-sdk-go-v2/service/ec2 in /assets/aws

Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.109.1 to 1.110.0.
- [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/service/ec2/v1.109.1...service/ec2/v1.110.0)

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

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

* Bump golang.org/x/net from 0.13.0 to 0.14.0 in /api

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/net/compare/v0.13.0...v0.14.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 golang.org/x/crypto from 0.11.0 to 0.12.0 in /api

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/crypto/compare/v0.11.0...v0.12.0)

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

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

* Bump golang.org/x/oauth2 from 0.10.0 to 0.11.0 in /build.assets/tooling

Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  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/service/ec2 from 1.109.1 to 1.110.0

Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.109.1 to 1.110.0.
- [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/service/ec2/v1.109.1...service/ec2/v1.110.0)

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

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

* Bump golang.org/x/sys from 0.10.0 to 0.11.0

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.0)

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

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

* Bump github.com/fsouza/fake-gcs-server from 1.47.2 to 1.47.4

Bumps [github.com/fsouza/fake-gcs-server](https://github.com/fsouza/fake-gcs-server) from 1.47.2 to 1.47.4.
- [Release notes](https://github.com/fsouza/fake-gcs-server/releases)
- [Commits](https://github.com/fsouza/fake-gcs-server/compare/v1.47.2...v1.47.4)

---
updated-dependencies:
- dependency-name: github.com/fsouza/fake-gcs-server
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump cloud.google.com/go/compute from 1.22.0 to 1.23.0

Bumps [cloud.google.com/go/compute](https://github.com/googleapis/google-cloud-go) from 1.22.0 to 1.23.0.
- [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/pubsub/v1.22.0...pubsub/v1.23.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/compute
  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.9.0 to 1.10.0

Bumps [github.com/bufbuild/connect-go](https://github.com/bufbuild/connect-go) from 1.9.0 to 1.10.0.
- [Commits](https://github.com/bufbuild/connect-go/compare/v1.9.0...v1.10.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 github.com/aws/aws-sdk-go from 1.44.314 to 1.44.317

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.314 to 1.44.317.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.314...v1.44.317)

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

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

* Bump github.com/jackc/pgx/v5

Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.4.3-0.20230722133532-492283b90b67 to 5.4.3.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/commits/v5.4.3)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  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.11.0 to 0.12.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.11.0...v0.12.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/service/rds from 1.48.1 to 1.50.0

Bumps [github.com/aws/aws-sdk-go-v2/service/rds](https://github.com/aws/aws-sdk-go-v2) from 1.48.1 to 1.50.0.
- [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/service/rds/v1.48.1...service/ec2/v1.50.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/rds
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump golang.org/x/oauth2 from 0.10.0 to 0.11.0 in /assets/backport

Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.10.0...v0.11.0)

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

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

* Bump sigs.k8s.io/controller-runtime in /integrations/kube-agent-updater

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.15.0...v0.15.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump github.com/google/go-containerregistry

Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.15.2 to 0.16.1.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.15.2...v0.16.1)

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

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

* Bump golang.org/x/term from 0.10.0 to 0.11.0

---------

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: Tim Ross <tim.ross@goteleport.com>
2023-08-07 18:04:27 +00:00
Michael Wilson 98d71ae325 Add in paginated access list endpoint. (#29406)
A paginated access list endpoint has been added. As access lists can be
large objects, the risk of crafting responses that are too large is much
higher than other objects. Pagination will help mitigate this.
2023-08-07 15:19:28 +00:00
Alan Parra 0c964aab05 chore: Bump gravitational/trace to v1.3.0 (#30064)
* chore: Bump gravitational/trace to v1.3.0

* Replace `trace.IsEOF` with `errors.Is`

* Fix IsPermanentEmitError
2023-08-04 21:39:24 +00:00
Edward Dowling 3215ff96fd Add initial auto approval flow for opsgenie plugin (#28650)
* Add initial auto approval flow for opsgenie plugin

* Fix logging fields in opsgneie plugin

* Add context to opsgenie config

* Use systemAccessApprover user in opsgenie plugin

* Rename error used by opsgneie plugin to denote missing annotations

* Fix grammer in comments for opsgenie plugin

* Remove embeded baseapp from opsgenie plugin

* Add error message for missing annotations

* Remove ctx from opsgenie config stuct

* Change warning log in opsgneie plugin to be clearer

* Add config tests to opsgenie plugin

* Add remaining opsgenie tests and minor fixes

* Fix broken tests for opsgneie plugin and add missing one

* Remove unused code from opsgenie tests
2023-08-04 14:55:00 +00:00
36da104452 Changes to the Jira plugin required to run as a hosted integration (#29729)
* Changes to the Jira plugin required to run as a hosted integration

Includes:
 * Jira plugin settings types
 * The ability to optionally enable the Jira Webhook server (so
   that it can be left disabled when run as a hosted plugin)
 * Only creating a GRPC Teleport client if no client is provided
   from configuretion
 * Optional status reporting via plugin StatusSink

* Fix test failure

* Switch default behaviour to running the webhook receiver

* Apply suggestions from code review

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

* Remove Username, rename Project in Jira settings

* Comment update

* Lint & US-ify spelling

* USify spelling

* Update plugin.go

* Tests

---------

Co-authored-by: Roman Tkachenko <roman@goteleport.com>
Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2023-08-04 11:01:33 +00:00
Lisa Kim dd9378bdb3 [Mattermost] Lax requiring recipients and set raw recipients on cfg init (#29889)
* [Mattermost] Set raw recipients map and define toml fields

* Lax defining recipients (team/channel or email)
2023-08-03 20:47:56 +00:00
971600e89d Batched Dependabot updates (#29935)
* Bump github.com/fsouza/fake-gcs-server from 1.45.2 to 1.47.2

Bumps [github.com/fsouza/fake-gcs-server](https://github.com/fsouza/fake-gcs-server) from 1.45.2 to 1.47.2.
- [Release notes](https://github.com/fsouza/fake-gcs-server/releases)
- [Commits](https://github.com/fsouza/fake-gcs-server/compare/v1.45.2...v1.47.2)

---
updated-dependencies:
- dependency-name: github.com/fsouza/fake-gcs-server
  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/dynamodb/attributevalue

Bumps [github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue](https://github.com/aws/aws-sdk-go-v2) from 1.10.30 to 1.10.35.
- [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/feature/dynamodb/attributevalue/v1.10.30...feature/dynamodb/attributevalue/v1.10.35)

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

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

* Bump github.com/aws/aws-sdk-go-v2/service/sqs from 1.23.4 to 1.24.1

Bumps [github.com/aws/aws-sdk-go-v2/service/sqs](https://github.com/aws/aws-sdk-go-v2) from 1.23.4 to 1.24.1.
- [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/service/ecs/v1.23.4...service/s3/v1.24.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sqs
  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/config in /assets/aws

Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.18.30 to 1.18.32.
- [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.18.30...config/v1.18.32)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  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.12.0 to 0.13.0 in /api

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/net/compare/v0.12.0...v0.13.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 github.com/jackc/pgconn from 1.14.0 to 1.14.1

Bumps [github.com/jackc/pgconn](https://github.com/jackc/pgconn) from 1.14.0 to 1.14.1.
- [Changelog](https://github.com/jackc/pgconn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgconn/compare/v1.14.0...v1.14.1)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgconn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump cloud.google.com/go/container from 1.23.0 to 1.24.0

Bumps [cloud.google.com/go/container](https://github.com/googleapis/google-cloud-go) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/pubsub/v1.23.0...pubsub/v1.24.0)

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

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

* Bump sigs.k8s.io/controller-tools from 0.12.0 to 0.12.1

Bumps [sigs.k8s.io/controller-tools](https://github.com/kubernetes-sigs/controller-tools) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-tools/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-tools/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-tools/compare/v0.12.0...v0.12.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Tidy modules

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-08-03 20:47:23 +00:00
Anton Miniailo 419b88eb91 Remove returning Teleport version on dialing a host (#29799)
It was required for compatibilty reasons - v13 proxy could connect to v12 agents,
which didn't support signed PROXY headers. But we don't need it in v14.
2023-08-03 02:40:44 +00:00
Jakub NyckowskiandBrian Joerger 7b5aec2043 Fix authorization rules to the Assistant and UserPreferences service (#29481)
* "Add authorization rules to the Assistant and UserPreferences service"

This commit introduces authorization rules into the Assistant service to restrict operations based on the authenticated user's role permissions.

Now each method in the Assistant service checks if the authenticated user has necessary permissions to perform the requested operation. The permissions are checked via defined RBAC rules.

A user requires specific permissions to perform various operations such as creating a conversation, updating a conversation, fetching a user's conversations, deleting a conversation, and adding a message to a conversation.

Also, even if a user has necessary permissions, they cannot perform operations for a different user. Each user can only access their own data.

* Add missing logger

* "Refactor user preferences request handling"

This commit refactors how GetUserPreferences and UpsertUserPreferences handle requests.
The `username` field is removed from request parameters. Instead of having the client send the user's username in a request, the server now automatically uses the username of the authenticated user making the request.
This change improves the security by preventing a user from attempting to fetch or manipulate another user's preferences. Removed tests were specifically testing the old, insecure behavior.

* Refactor to use authz.HasBuiltinRole

Refactored code in the 'auth_with_roles.go' file to use 'authz.HasBuiltinRole' instead of 'HasBuiltinRole'. This change is in line with recommended practices for deprecation and makes the code more standard and easier to manage. The original 'HasBuiltinRole' function is marked as deprecated and will be removed in future once 'teleport.e' is updated to use 'authz.HasBuiltinRole'.

* Reserve removed username again?

* Fix UT

* Add local user permissions checks in authz

This commit introduces two new methods in permissions.go to check if a user is a local user, and if a given action is performed by a local user. These permission checks are then used to replace existing checks in service.go, when performing actions like creating conversation, updating, listing, etc. This simplifies checks and provides a more consolidated and unified method for verifying user actions.

* Fix tests

* Tweak RBAC

* Address review comments

* Separate client and server interfaces for user preference services.

* Apply core review suggestions

* Apply suggestions from code review

Co-authored-by: Brian Joerger <bjoerger@goteleport.com>

---------

Co-authored-by: joerger <bjoerger@goteleport.com>
2023-08-02 20:55:01 +00:00
Lisa Kim b6e677b491 Use enum to describe IAMPolicyStatus instead of a bool (#29721)
* use enum to describe the IAMPolicyStatus instead of a bool

Allows distinguishing between two falsey values between
"has policy been checked" vs "policy is not valid" and
backwards compatibility.

* Address CR

* Fix lint
2023-08-02 18:35:42 +00:00
Alan Parra 63698a93a9 Represent protocol within wanlib and update go-webauthn (#29750)
* Represent the entirety of protocol within lib/auth/webauthn

* Bump github.com/go-webauthn/webauthn to v0.6.2

* Fixes for v0.6.x: Challenge, RPOrigins

* Bump github.com/go-webauthn/webauthn to v0.7.2

* Document new v0.7.2 fields

* Bump github.com/go-webauthn/webauthn to v0.8.2

* Fixes for v0.8.x: UserEntity.ID

* Bump github.com/go-webauthn/webauthn to v0.8.6

* Let bots update go-webauthn

* Drop support for RP and User icon

* Update generated protos

* Add a brief godoc to cloned types
2023-08-02 17:09:57 +00:00
Alex McGrath 2fbe27b7e8 Allow host users to be created with a specific UID or GID (#29305)
* Allow setting HostUserUID/GID traits

* Create users with specified UID/GID

* rename the traits, fix typo

* Document host user creation with specific UID/GID

* resolve comments

* Resolve comments

* Update doc and help strings
2023-08-02 14:14:42 +00:00
34816f97e0 Batched Dependabot updates (#29786)
* Bump github.com/aws/aws-sdk-go-v2/service/ec2 in /assets/aws

Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.105.1 to 1.108.1.
- [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/service/ec2/v1.105.1...service/ec2/v1.108.1)

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

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

* Bump github.com/snowflakedb/gosnowflake from 1.6.22 to 1.6.23

Bumps [github.com/snowflakedb/gosnowflake](https://github.com/snowflakedb/gosnowflake) from 1.6.22 to 1.6.23.
- [Release notes](https://github.com/snowflakedb/gosnowflake/releases)
- [Changelog](https://github.com/snowflakedb/gosnowflake/blob/master/release.go)
- [Commits](https://github.com/snowflakedb/gosnowflake/compare/v1.6.22...v1.6.23)

---
updated-dependencies:
- dependency-name: github.com/snowflakedb/gosnowflake
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump github.com/aws/aws-sdk-go-v2/service/sqs from 1.23.2 to 1.23.4

Bumps [github.com/aws/aws-sdk-go-v2/service/sqs](https://github.com/aws/aws-sdk-go-v2) from 1.23.2 to 1.23.4.
- [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/service/ecs/v1.23.2...service/ecs/v1.23.4)

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

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

* Bump github.com/aws/aws-sdk-go-v2/service/rds from 1.47.0 to 1.48.1

Bumps [github.com/aws/aws-sdk-go-v2/service/rds](https://github.com/aws/aws-sdk-go-v2) from 1.47.0 to 1.48.1.
- [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/service/ec2/v1.47.0...service/rds/v1.48.1)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/rds
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump github.com/sashabaranov/go-openai from 1.13.0 to 1.14.1

Bumps [github.com/sashabaranov/go-openai](https://github.com/sashabaranov/go-openai) from 1.13.0 to 1.14.1.
- [Release notes](https://github.com/sashabaranov/go-openai/releases)
- [Commits](https://github.com/sashabaranov/go-openai/compare/v1.13.0...v1.14.1)

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

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

* Bump github.com/elastic/go-elasticsearch/v8 from 8.8.2 to 8.9.0

Bumps [github.com/elastic/go-elasticsearch/v8](https://github.com/elastic/go-elasticsearch) from 8.8.2 to 8.9.0.
- [Release notes](https://github.com/elastic/go-elasticsearch/releases)
- [Changelog](https://github.com/elastic/go-elasticsearch/blob/main/CHANGELOG.md)
- [Commits](https://github.com/elastic/go-elasticsearch/compare/v8.8.2...v8.9.0)

---
updated-dependencies:
- dependency-name: github.com/elastic/go-elasticsearch/v8
  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.14.0 to 1.15.0

Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go) from 1.14.0 to 1.15.0.
- [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.14.0...kms/v1.15.0)

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

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

* Bump google.golang.org/api from 0.132.0 to 0.134.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.132.0 to 0.134.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.132.0...v0.134.0)

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

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

* Bump github.com/ClickHouse/clickhouse-go/v2 from 2.11.0 to 2.12.0

Bumps [github.com/ClickHouse/clickhouse-go/v2](https://github.com/ClickHouse/clickhouse-go) from 2.11.0 to 2.12.0.
- [Release notes](https://github.com/ClickHouse/clickhouse-go/releases)
- [Changelog](https://github.com/ClickHouse/clickhouse-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ClickHouse/clickhouse-go/compare/v2.11.0...v2.12.0)

---
updated-dependencies:
- dependency-name: github.com/ClickHouse/clickhouse-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump google.golang.org/grpc from 1.56.2 to 1.57.0

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.56.2 to 1.57.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.56.2...v1.57.0)

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

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

* Bump google.golang.org/grpc from 1.56.2 to 1.57.0 in /api

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.56.2 to 1.57.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.56.2...v1.57.0)

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

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

* Sort directs and indirects

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-08-01 22:10:53 +00:00
Alan Parra 5aac6d8bc5 Listen on "localhost" for tests (#29732)
* Listen on "localhost" for tests

Avoids popups on macOS.

* Revert changes on webclient_test.go

* Partially revert sshserver_test.go
2023-08-01 13:51:34 +00:00
Anton MiniailoandTiago Silva 3904c180dc Add a way to construct Teleport app from Kubernetes service (#29241)
* Add a way to construct Teleport app from Kubernetes service

* Address review comments

* Log errors of kube apps discovery instead of returning error

Returning error would prevent other non-errored apps to be discovered.

* Move automatic protocol checking out of services package

* Add annotation for overriding app name

* Return error in case of invalid label key

* Change value for discovery name annotation

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Use local service name even for external services

---------

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>
2023-08-01 02:37:10 +00:00