Commit graph

14183 commits

Author SHA1 Message Date
Gus Luxton 2035263c71
terraform-agent-pool: Fix token provisioning and add expiry (#29900) 2023-08-02 17:08:22 +00:00
Paul Gottschling a94a817373
Add Kubernetes/Helm instructions to the RDS guide (#27899)
* Add Kubernetes/Helm instructions to the RDS guide

Closes #27753

Add "Kubernetes" tabs as counterparts to Linux host instructions,
following the structure we have used in Access Request plugin guides:
where we show how to install Teleport on a VM, include `helm repo add`
instructions. And when we show how to run a Teleport service, include
`helm install` instructions.

In this guide, I've hardcoded a Teleport configuration file in order to
run `teleport db configure bootstrap`, then inserted the config file
into a Helm values file.

This change also includes instructions to use a local `teleport` binary
in order to bootstrap IAM resources.

This also adds minor formatting and readability changes, e.g., the `Var`
component.

* Respond to alexfornuto feedback

* Update docs/pages/database-access/guides/rds.mdx

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>

* Fix linter warnings

* Add Service Account IAM instructions

Frame the guide around authenticating the Teleport agent pod's service
account via the IAM OIDC provider.

* Respond to stevenGravy feedback

* Minor tweaks

- Ensure `Var` names are consistent
- Use obviously fake values for resource URIs
- Use the correct value for the OIDC issuer ID

* Respond to alexfornuto feedback

* Fix spelling

* Fix linter issues

---------

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
2023-08-02 16:39:12 +00:00
Zac Bergquist e232c96f01
tctl: add devices command to OSS (#29836)
Device Trust remains an enterprise-only feature and is fully enforced
by the enterprise auth server. Move the tctl commands to OSS as part
of our effort to eliminate the enterprise build of tctl.
2023-08-02 15:25:00 +00:00
Edoardo Spadolini 687fec9d6d
Postgres and Azure Blob Storage backend docs (#29688)
* Postgres backend docs

* trailing whitespace

* Azure Blob Storage docs

* finish an incomplete sentence

* Add version warning for 13.3+

* Command examples for wal_level and user creation

This also expands on Teleport's self attribute grant

* the config file -> Teleport's config file

* Update wal2json instructions

* avoid "reconnections"

* add words to cspell list

* Apply suggestions from code review

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* Removed `login privilege`

* Restructure "initiating replication" paragraph

* Update docs/pages/reference/backends.mdx

* fix default postgres event retention

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2023-08-02 14:55:11 +00:00
Alan Parra e10e240f5b
chore: Bump Go to 1.20.7 (#29881)
* chore: Bump Go to 1.20.7

* Run `make dronegen`
2023-08-02 14:21:48 +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
Jakub Nyckowski 9fc2679ea2
Replace custom test render with gotestsum - part II (#29877)
* Replace custom test render with gotestsum - part II

CContinuation of https://github.com/gravitational/teleport/pull/29862
As the Docker image has been updated now gotestsum is used for all tests except flaky test detector.
I'll tackle it separate as it requires more work due to custom generated report format.

* Add $(RENDER_TESTS) to makefile test-go-flaky target as test render was removed from the test-go-prepare target.
2023-08-02 14:02:50 +00:00
Alan Parra a40df5c802
chore: Bump openssl to 3.0.10 (#29876)
Update to the latest patch.

* https://github.com/openssl/openssl/blob/openssl-3.0.10/CHANGES.md#changes-between-309-and-3010-1-aug-2023
2023-08-02 13:25:18 +00:00
Cam Hutchison 886cd70fb6
web: Ignore .swc directory when computing web SHA (#29892)
Ignore any `.swc` directories when computing the SHA of SHAs to
determine if `make ensure-webassets` should rebuild the web UI. The
`.swc` directories are in the `.gitignore` file, so should also be
ignored when computing the SHA of the web files.

On a fresh checkout of `teleport`, running `make ensure-webassets`
causes a plugin to be build or downloaded into
`web/packages/teleport/.swc/plugins/v4`. As this is inside the directory
over which the SHA of SHAs is computed, if you re-run
`make ensure-webassets`, it ends up rebuilding the web UI for the same
result. It should not rebuild the web UI if it hasn't changed. The SHA
of SHAs generated from a fresh checkout of teleport should match another
fresh checkout. This fails as generating the enterprise webassets after
generating the OSS webassets includes the plugin as part of the SHA, and
that is not there on a fresh checkin.

This will make a difference if we want to build the web assets as a
separate step on CI so that the `webassets` directory can be copied into
other builds. This will allow a later version of node.js to be used to
build the web UI that what may be available on the OS we're building
Teleport on (I'm looking at you, Centos 7).

Fix a shellcheck-reported issue of quoting while we're here.
2023-08-02 09:59:55 +00:00
Bernard Kim acab5c69e5
docs: add client tools download section (#29835)
* Add client tools download section

* Inlcude tsh and tctl description

* Consistent code style & remove Notice
2023-08-02 06:02:31 +00:00
Trent Clarke 621beccf9e
Adds tctl auth sign --tar docs to Docker Installation Guide (#29665)
* Adds FAQ entry for `tctl auth sign --tar`

* Add preferred option as well

* Actually include the flag we're documenting

* words

* Update docs/pages/faq.mdx

* Move to installation guide, re-word example for Docker

* fmt
2023-08-01 23:22:26 +00:00
dependabot-batcher[bot] 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
Jakub Nyckowski 0b714c5c54
Add gotestsum to devbox (#29873)
gotestsum has been added to the Docker image in https://github.com/gravitational/teleport/pull/29862 Unfortunately, devbox failed to rebuild the image due to a bug in devbox that has been fixed in 0.5.8.
This PR re-adds the gotestsum to devbox and upgrades the version used in the CI.
2023-08-01 22:09:57 +00:00
Brian Joerger 69f24f59cd
Fix call count race condition; Fix grpc server stop race condition; Make timeout less aggressive. (#29880) 2023-08-01 21:46:54 +00:00
teleport-post-release-automation[bot] 531aff4be1
[auto] Update AMI IDs for 13.3.0 (#29882)
Co-authored-by: GitHub <noreply@github.com>
2023-08-01 21:38:54 +00:00
Brian Joerger 29ff71ef09
Implement headless watcher approval logic in the Electron App. (#29097) 2023-08-01 18:44:47 +00:00
Tiago Silva 6fb9f08108
Fix AWS EKS E2E tests (#29869)
After merging #28845, the cluster name is different and the test failed.
Since the AWS E2E tests are not required, the merge happened and broke
all tests.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2023-08-01 17:59:16 +00:00
Jakub Nyckowski e225422749
Replace custom test renderer with gotestsum (#29862)
* Replace custom test renderer with gotestsum

All instances of the custom test renderer (`${RENDER_TESTS}`) in the Makefile have been replaced with gotestsum calls. This allows to provide a more standardized and extendible tool for handling the test output. The gotestsum tool, being a popular and actively maintained project, adds additional features such as output formatting options and compatibility with developer tools. As a result, it improves the readability and accessibility of our test results.

* Add gotestsum and update Makefile, Dockerfile, and devbox files

Changes have been made in Makefile, Dockerfile, and devbox.json files to install gotestsum if it's not already installed and use it in the test commands. The devbox.lock file has also been updated accordingly to reflect the addition of gotestsum.

* Update gotestsum installation in Makefile

The Makefile has been adjusted to ignore any errors while installing 'gotestsum'. This is a temporary measure until 'gotestsum' is added to the Dockerfile, to prevent the build process from failing.

* Fix devbox?

* Apply a review suggestion
Revert devbox changes - devbox seems to be broken. I'll introduce this change in a new PR, so the current one is not blocked on an admin approval.

* Revert `make e2e-aws` to use render-test to prevent CI failing
2023-08-01 17:51:48 +00:00
Noah Stride 062a276bb5
Machine ID: Kubernetes Secret Destination (#29746)
* Hash out fundamentals of a Kubernetes Secret destination (it works!)

* Propagate context through Init()

* Propagate context.Context through Destination.Write

* Propagate context.Context through destination.Read

* Use _ for unused context.Contexts

* Add docs for `kubernetes_secret` destination

* Basic tests for DestinationKubernetesSecret

* Add test based on fake k8s client

* Require init before usage

* Refine documentation for kubernetes_secret destination

* Improve logging when secret is created

* Fix test

* Fix imports

* Fix lock copy

* Use dry run for initialization

* Ensure same destination is not reused
2023-08-01 17:29:37 +00:00
Gavin Frazar dd65427766
propagate tctl verbose flag (#29839) 2023-08-01 17:11:46 +00:00
Jakub Nyckowski 55e9e285cb
Update e (#29814) 2023-08-01 17:04:36 +00:00
Andrew LeFevre 1ca745ca0e
allow the default editor role to create nodes (#29763) 2023-08-01 16:32:26 +00:00
Noah Stride db08adca8e
Patch memory leak for token based bots (#29855) 2023-08-01 15:54:31 +00:00
Tiago Silva edd6f9e3de
Add docs on how to impersonate Kubernetes ServiceAccounts (#29393)
* Add docs on how to impersonate Kubernetes ServiceAccounts

This PR brings clarity around how to impersonate Kubernetes ServiceAccounts.

This feature has been supported for a long time but unfortunately it wasn't documented and there was an issue that implied it wasn't supported.

Closes #5248

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* Apply suggestions from code review

Co-authored-by: Gus Luxton <gus@goteleport.com>

* Apply suggestions from code review

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Co-authored-by: Gus Luxton <gus@goteleport.com>
Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
2023-08-01 15:49:57 +00:00
Tiago Silva e1da9490b9
Split list and deletecollection handlers into seperate files (#29853)
This PR splits the resource list and delete collection handlers into
separate files.

It does not include any change to the codebase.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2023-08-01 15:35:14 +00:00
Michelle Bergquist bb2b67a7df
add oss support for existing user onboard survey (#29535) 2023-08-01 15:14:22 +00:00
Tiago Silva fa07f9b5aa
tests: add discovery endpoint for Kube Mock (#29843)
This PR adds the support of discovery endpoints to Teleport Kubernetes
Mock api.

The discovery API will be used to build a collection of cluster
CRD namespaced resources supported by the server.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2023-08-01 14:57:39 +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
Alan Parra 4114bb663f
Bump github.com/gravitational/go-libfido2 to 0b44d4f35e28 (#29752) 2023-08-01 13:50:00 +00:00
Tiago Silva 58dcfe859c
Add Kubernetes Access FAQ and Troubleshooting docs (#29632)
* Add Kubernetes Access FAQ and Troubleshooting docs

This PR adds two new major sections for Kubernetes Access docs:

- FAQ
- Troubleshooting

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* Apply suggestions from code review

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

* update version to be v7

* Apply suggestions from code review

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>

* add intros

* Update docs/pages/kubernetes-access/troubleshooting.mdx

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
2023-08-01 11:22:17 +00:00
Bartosz Leper 853fb528fd
Prevent VS Code from showing errors in tsconfig (#29808)
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.
```
2023-08-01 09:58:01 +00:00
Rafał Cieślak e9056d1375
lib/teleterm TestStart: Increase timeout, improve error handling (#29809) 2023-08-01 08:44:06 +00:00
Krzysztof Skrzętnicki 9ac76d65cb
Postgres: reduce logging level for individual messages. (#29810) 2023-08-01 08:01:54 +00:00
Cam Hutchison edf2202d13
dronegen: Build Teleport Connect for amd64 push build (#29622)
* dronegen: Build Teleport Connect for amd64 push build

Add an input parameter when calling the release-linux workflow to build
Teleport Connect for the AMD64 build. This was previously done when
Drone was doing the build but got accidentally dropped when moving to
GitHub actions.

This will also be used for the tag builds when they migrate to GHA as we
do a release build of Teleport Connect for each architecture.

* ci: Update .drone.yml

Update .drone.yml with `make dronegen` to add the `build-connect`
parameter to the call of the `release-linux` workflow.

* Update e ref for release-linux teleport param

Update e ref for 98fc02c3f276054b72fe7c55544b45834d964b9b so we can call
the release-linux workflow with the `build-connect` parameter.
2023-08-01 04:32:48 +00:00
dependabot[bot] e4a9ecc3ff
Bump github.com/aws/aws-sdk-go-v2/config in /assets/aws (#29784)
Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.18.28 to 1.18.30.
- [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.28...config/v1.18.30)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Trent Clarke <trent@goteleport.com>
2023-08-01 02:37:37 +00:00
Anton Miniailo 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
Trent Clarke a7be5f6249
Vendors Discord plugin source into Teleport (#29798)
* Vendors Discord plugin source into Teleport

In preparation for running the Discord integration as a hosted plugin,
this PR transplants the plugin source into Teleport.

* gci
2023-08-01 00:40:15 +00:00
Gus Luxton 1b03ce6058
docs: Minor cosmetic tweaks to tsh puttyconfig (#29831)
Fixes an extra full stop and tenant name which was included accidentally.
2023-07-31 21:32:07 +00:00
rosstimothy 23806a8b11
Add support for deleting proxy resources to tctl (#29832) 2023-07-31 20:51:03 +00:00
Gus Luxton e68c2dbb29
docs: tsh puttyconfig (#29458)
* docs: Add info on tsh puttyconfig

* docs: Add info on tsh puttyconfig

* docs: tsh puttyconfig

* Updates

* Fix lint

* Further lint fixes

* Apply code review comments
2023-07-31 19:30:05 +00:00
Gavin Frazar 745e8be7a9
fix tsh db connect with active mysql cert (#29819)
* quote database name predicate

* Add test for GetDatabase

* ensured test fails without the predicate quoting fix
* tested with and without active cert, to test the different list API paths
2023-07-31 18:08:19 +00:00
Gavin Frazar 8d4d467a50
Fix tsh db <subcommand> <db> prefix logic (#29720)
* Fix tsh db login

* when prefix matches exactly, choose that db

* add ChooseOneDatabase test
2023-07-31 18:05:55 +00:00
Gavin Frazar 5c1d8d665b
differentiate discovered resource names (#28845)
* implement RFD 129 cloud resource renaming

* rename assumeRoler to stsClient

[skip ci]

* unit test makeDiscoverySuffix

[skip ci]

* rename validator funcs

[skip ci]

* subtype redis and RDS matchers for unique naming

* fix check for rds cluster vs instance
2023-07-31 17:49:43 +00:00
Mike Jensen 2125ece87b
Enable CodeQL security-extended query suite (#28311) 2023-07-31 16:25:53 +00:00
STeve (Xin) Huang a0dbc26747
ALPN upgrade with custom X-Teleport-Upgrade header (#29683)
* ALPN upgrade with custom X-Teleport-Upgrade header

* try to fix race

* update rfd
2023-07-31 16:12:58 +00:00
Yassine Bounekhla 3628516cfb
add backwards compatibility for listing apps (#29693) 2023-07-31 15:28:08 +00:00
Evan Freed 16a50dc9b1
docs: call out minimum agents for cloud upgrades (#29711)
* specifically highlight minimum agents and major upgrades

Signed-off-by: Evan Freed <evan.freed@goteleport.com>

* fmt

Signed-off-by: Evan Freed <evan.freed@goteleport.com>

---------

Signed-off-by: Evan Freed <evan.freed@goteleport.com>
2023-07-31 15:03:36 +00:00
Rafał Cieślak cd000accaa
Ensure Connect shows Connect My Computer only to local users (#29804)
* Make sure Connect My Computer is not shown to SSO users

* Improve user type check in RoleSetup

* Reexport UserType

* Fix protos

* Add makeLoggedInUser test helper and use it in tests
2023-07-31 14:37:20 +00:00
Rafał Cieślak 17d32268d1
Fix data race in TestTeleterm/CreateConnectMyComputerRole (#29803) 2023-07-31 12:18:30 +00:00
Rafał Cieślak a1cd7179e2
Update e ref (#29726) 2023-07-31 11:54:00 +00:00