Commit graph

12510 commits

Author SHA1 Message Date
Grzegorz Zdunek 5641b22f52
Connects: SearchBar improvements (#24190)
* Add stories for longer resource and cluster names

* Extract `PickerContainer`, improve styling of pickers and input

* Extract `FilterButton` component to avoid repeating the same code

* Add a message about excluded clusters

* Show a hint message when input is empty

* Show cluster filters only when there is more than one cluster

* Make search bar input responsive

* Review fixes

* Add a story for no results state

* Fix missing margin when input wraps

* Add license header

* Render `NoResultsItem` and `TypeToSearchItem` as extra items above regular items

* Use `calc` to calculate padding

* Fix comment

* Show TypeToSearchItem only after filter actions attempt finishes

* Run filter search synchronously

---------

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
2023-04-11 13:20:54 +00:00
Paul Gottschling 54c7bc82fd
Fix example API client imports (#24359)
This is the result of `make fix-imports`.
2023-04-11 13:20:31 +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
Trent Clarke 9efd43cb51
Make distroless images default in docs (#24037)
* Make distroless images default in docs

* Review fixes

* Update Getting started guide

* Update ent starting guide

* Update docker.mdx

* Add Distroless to dictionary

* Typo fix
2023-04-11 12:24:46 +00:00
dependabot[bot] abb5c3f633
Bump golang.org/x/oauth2 from 0.6.0 to 0.7.0 (#24316)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/oauth2/releases)
- [Commits](https://github.com/golang/oauth2/compare/v0.6.0...v0.7.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 08:07:15 +00:00
dependabot[bot] 5538ae34d1
Bump cloud.google.com/go/iam from 0.13.0 to 1.0.0 (#24319)
Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 0.13.0 to 1.0.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/v0.13.0...dlp/v1.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 07:19:31 +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
Cam Hutchison d72c29644a
drone: Switch Mac (darwin) pipelines to GitHub Actions (#24102)
* dronegen: Sort workflow inputs for stable output

Sort the GitHub Actions inputs when generating the `gh-trigger-workflow`
command line so that it does not randomly change order, as happens when
iterating a map directly.

* dronegen: Have darwin pipelines call out to GitHub Actions

Update the darwin pipelines to run workflows on GitHub Actions instead
of locally on drone builders. This replaces four pipelines with a single
GitHub actions workflow as the one workflow builds the tarballs, Mac
packages and Mac disk images.

We continue to drive the push build from drone until we work out how
secrets are safely managed in the Teleport OSS repo.

* drone: Regenerate .drone.yml for Mac pipeline changes

To regenerate the `.drone.yml` file, first three pipelines were manually
removed:
- build-darwin-amd64-pkg
- build-darwin-amd64-pkg-tsh
- build-darwin-amd64-connect

Then
    make dronegen

was run to update the pipelines:
- push-build-darwin-amd64
- build-darwin-amd64
2023-04-11 05:16:32 +00:00
Trent Clarke a662a01200
Add OCI rebuild info to preflight checklist (#23630)
* Add OCI rebuild info to preflight checkist

* Update preflight.md

* Update preflight.md

* Fix Link
2023-04-11 04:25:47 +00:00
Trent Clarke 75395e3a0d
Removes default 30-minute timeout from gh-trigger-workflow (#24178)
The `gh-trigger-workflow` will now default to waiting forever for a
GitHub Workflow to complete. A timeout can be optionally specified
if desired.
2023-04-11 01:29:40 +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
dependabot[bot] 25fe4222fc
Bump github.com/aws/aws-sdk-go-v2/credentials from 1.13.19 to 1.13.20 (#24348)
Bumps [github.com/aws/aws-sdk-go-v2/credentials](https://github.com/aws/aws-sdk-go-v2) from 1.13.19 to 1.13.20.
- [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/credentials/v1.13.19...credentials/v1.13.20)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/credentials
  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>
2023-04-10 20:01:19 +00:00
dependabot[bot] ffc0a73da0
Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.92.1 to 1.93.2 (#24349)
Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.92.1 to 1.93.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/service/ec2/v1.92.1...service/ec2/v1.93.2)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 19:23:07 +00:00
Steven Martin e723829aac
Fields in WebAuthn comments (#22975)
* Fields in WebAuthn comments

* Update webauthn definitions

* consolidate cap edit options

* formatting edits

---------

Co-authored-by: alexfornuto <alex.fornuto@goteleport.com>
2023-04-10 19:13:52 +00:00
Alan Parra 8c91e33967
chore: Bump Buf from 1.16.0 to 1.17.0 (#24220)
Bump Buf to the latest version.

* https://github.com/bufbuild/buf/releases/tag/v1.17.0
2023-04-10 18:35:12 +00:00
dependabot[bot] 6919a226df
Bump github.com/aws/aws-sdk-go-v2/config from 1.18.19 to 1.18.20 (#24324)
Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.18.19 to 1.18.20.
- [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.19...config/v1.18.20)

---
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>
2023-04-10 18:34:10 +00:00
Michael Wilson 67ff921f92
Update e reference. (#24330)
Update e reference so that the Okta service will match the upcoming cache and
permissions changes.
2023-04-10 17:46:51 +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
Paul Gottschling e667486c31
Support spellchecking in docs content (#23783)
* Support spellchecking in docs content

In gravitational/docs#261, we will add a script that checks the spelling
of each version of the docs. This change edits one version of the docs
content to support this, including:

- A cspell configuration file
- A new step in the GitHub Actions in the "Lint (Docs)" workflow that
  runs the spellcheck script we will add in `gravitational/docs`
- Fix mispellings so this passes the lint job. The mispellings are in a
  file that we generated automatically, but there are few enough of
  them, and we haven't merged the auto-generation script yet, that I
  think it makes sense to fix them in the generated file for now.

* Respond to PR feedback

- Remove misspellings from the ignore list
- Sort the ignore list (and format it via prettier)

* Use the new yarn spellcheck command

* Spelling fixes

* spell fixes and add words to cspell.json

---------

Co-authored-by: Steven Martin <steven@goteleport.com>
2023-04-08 01:25:30 +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
teleport-post-release-automation[bot] 0d15b80bf9
[auto] Update AMI IDs for 12.2.1 (#24297)
Co-authored-by: GitHub <noreply@github.com>
2023-04-07 23:20:53 +00:00
Paul Gottschling df3e36e49e
Add longer meta descriptions to high-traffic pages (#24296)
Longer meta descriptions lessen the likelihood that Google will
automatically determine the description of a page within search results.
2023-04-07 22:09:38 +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
rosstimothy bd62bdc9a0
Update Performance section of Test Plan (#24161)
* Update Performance section of Test Plan

* add additional testing scenarios

* Update scaling section

* add random soak test
2023-04-07 19:53:31 +00:00
Paul Schisa 785fa04627
Fixes to metrics docs (#24200)
* Fixes to metrics docs

Based on my testing, setting Teleport in debug mode is not required to expose the metrics

~~~
# cat /etc/systemd/system/teleport.service
ExecStart=/usr/local/bin/teleport start  --config=/etc/teleport.yaml --diag-addr=http://172.31.36.239:3434 --pid-file=/run/teleport/teleport.pid

# cat /etc/teleport.yaml
teleport:
  log:
    severity: INFO

# curl http://172.31.36.239:3434/metrics | more
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP audit_failed_disk_monitoring Number of times disk monitoring failed.
# TYPE audit_failed_disk_monitoring counter
audit_failed_disk_monitoring 0
# HELP audit_failed_emit_events Number of times emitting audit event failed.
# TYPE audit_failed_emit_events counter
audit_failed_emit_events 0
# HELP audit_percentage_disk_space_used Percentage disk space used.
# TYPE audit_percentage_disk_space_used gauge
audit_percentage_disk_space_used 100
# HELP audit_server_open_files Number of open audit files
# TYPE audit_server_open_files gauge
audit_server_open_files 0
...
~~~

Also, curling the diag endpoint without the metrics part returns a 404 page not found which is a confusing way to validate it is working

~~~
# curl http://172.31.36.239:3434/
404 page not found
~~~

* Docs: add flag var and extra detail for debug (#24242)

* add flag var and extra detail for debug

* Update docs/pages/includes/diagnostics/diag-addr-prereqs-tabs.mdx

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

---------

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

* Update diag-addr-prereqs-tabs.mdx

---------

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-04-07 18:12:47 +00:00
Paul Gottschling b9a1398fd5
Remove unnecessary query string (#24277)
Fixes #16242
2023-04-07 18:03:54 +00:00
Gavin Frazar c706b8222e
fix protocol name for elasticsearch guide (#24262) 2023-04-07 16:06:27 +00:00
Alex Fornuto 2f31c7479c
purge extra newlines (#24247) 2023-04-07 16:03:01 +00:00
Steven Martin 94077c960e
Update to Teleport Access Platform name in teleport,tctl (#24261)
* Update to Teleport Access Platform name in teleport,tctl

* update to match platform title
2023-04-07 14:22:13 +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
Steven Martin ae66157f3e
docs: update service description to default (#24249) 2023-04-07 00:26:32 +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
Alex Fornuto a1756469aa
add Datadog to audit events index (#24210) 2023-04-06 21:01:53 +00:00
Noah Stride 57b464b665
Include correct identity in post-renewal log message (#24240) 2023-04-06 20:15:25 +00:00
Anton Miniailo 05f46d2d45
Add missing continue and handle error in the test echo SSH server (#24224) 2023-04-06 20:09:16 +00:00
rosstimothy 502174f0f2
Fix race in TestSSH/ssh_jump_host_access (#24195)
* Prevent races in proxyClusterGuesser

Uses the same mechanism as api.client.proxy.clusterName within
lib.client.proxyClusterGuesser to prevent races on the cluster
name when connecting via ssh.

* Correctly set up transport service tls config

Using `setupTLSConfigClientCAsForCluster` was overwriting the
tls.Config.ClientAuth on each client connection which caused falling
back to connecting via ssh.
2023-04-06 19:09:17 +00:00
Gavin Frazar 3351e134e7
revert marshal database tls mode (#24066) 2023-04-06 18:43:52 +00:00
Michael 50826a1b41
Add FileTransferRequests to session for moderated scp (#23875)
Part of https://github.com/gravitational/teleport/pull/23546

This will add a fileTransferRequest to a session and allow environment variables to be passed from the webUI in order to validate a request that happens "outside" the moderated session (via HTTP request).
2023-04-06 18:21:58 +00:00
Mike Jensen e923525197
Disable build-macos and build-windows on PR (#24131)
* Disable `build-macos` and `build-windows` on PR

This commit removes the `build-macos` and `build-windows` from the PR flow, instead delegating to the bypass job.
These jobs still run at the merge queue point.

This of course means that failures in these two jobs may not be known until the merge queue.
There is an unequestionable disadvantage in not discovering those issues until that point, but this change is being recommended because:
* Currently MacOS builds are 31% of our Teleport Actions spend (~$3,500 / week)
* Windows builds are also significant at 13% (~$1,400 / week)
* There has been relatively few failures of these jobs (without other jobs also failing)

Although merge queue verification is not ideal because it's later in the process, it is considered the most critical in ensuring that `master` remains stable.

* Make sure all bypass jobs run on `ubuntu-latest`

In a couple cases this allows the jobs to be run on a cheaper instance.
2023-04-06 17:33:58 +00:00
Steven Martin 9faead34ab
docs: use teleport systemd include for start (#24177)
* docs: use teleport systemd include for start

* docs: use systemctl start include

* patch broken include

* copy edits

---------

Co-authored-by: alexfornuto <alex.fornuto@goteleport.com>
2023-04-06 17:17:18 +00:00
Gabriel Corado 2c0abc02d0
Add SQL Server as supported engine family in RDS proxy docs (#24193)
* docs(database-access): add sql server as supported in rds proxy

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

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

---------

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
2023-04-06 17:00:04 +00:00
Justinas Stankevičius 1ebefe3f35
Make react-router-dom and @types versions consistent (#24201) 2023-04-06 15:19:56 +00:00
Paul Gottschling fd02bc54f6
Lowercase "Teleport Service" (#24149)
The Core Concepts page uses "Teleport Service" in uppercase. While I
think it is appropriate to capitalize "Service" when naming specific
Teleport architectural components, e.g., "Database Service",
"Application Service", etc., I'm not sure we want to imply that
"Teleport Service" is a distinct product by making it a proper noun.

The docs tend to use "Teleport service", where "service" is a general
computing term. We don't lose any meaning by using "Teleport service"
instead of "Teleport Service", and don't risk suggesting that Teleport
services have more in common than they really do.
2023-04-06 15:09:58 +00:00
Roman Tkachenko 2370355068
Fix tctl test timeouts (#24101)
* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix
2023-04-06 14:49:39 +00:00
Zac Bergquist 0bea127eec
Remove unused vagrant directory (#24162)
This hasn't been actively maintained since the very early days
of Teleport, and is awkward to use on Apple Silicon.
2023-04-06 14:05:01 +00:00