Commit graph

15336 commits

Author SHA1 Message Date
Steven Martin 6c166b85a0
docs: remove internal label listing (#33143) 2023-10-09 14:55:36 +00:00
Rafał Cieślak d21ae196e4
Add docs for Connect My Computer (#32798)
* Add docs for Connect My Computer

* Update Troubleshooting Connect My Computer header

This way it doesn't conflict with the general Troubleshooting header.

* Add troubleshooting section about expired token

* Expand section on agent not being visible in cluster

* Mention that logout removes the agent
2023-10-09 14:36:22 +00:00
Alan Parra ceab9afe80
Add single-use certificate issuance to GenerateUserCerts (#33083)
* Refactor TestGenerateUserSingleUseCert, remove stream assumptions

* Refactor TestGenerateUserSingleUseCert, rename to match RPC

* Refactor TestGenerateUserSingleUseCert, assert error messages

* Add single-use certificate issuance to GenerateUserCerts

* Test unary single-use cert issuance

* Change _deviceAuthz test to use unary RPC

* Rename again

* Apply validations to all cert issuance calls
2023-10-09 14:26:16 +00:00
rosstimothy 603bcf43ac
Set revisions on SSO users (#32873)
Update GitHub users to always have the correct revision set when
updating the user.
2023-10-09 13:59:50 +00:00
Marco André Dinis c3550a24e6
OneOff Script: use ent build if cluster is Enterprise (#33061)
* OneOff Script: use ent build if cluster is Enterprise

We were always using the OSS version of teleport in the one-off scripts.

This PR changes that to pick the correct version depending on the
running version in the Proxy.

* use gzip bestspeed for compressing files
2023-10-09 13:44:30 +00:00
Alan Parra 4f2c82b79c
Add Purpose to UserCertsRequest (#33049)
* Add Purpose to UserCertsRequest

* Update generated protos
2023-10-09 13:15:31 +00:00
Gabriel Corado 31fd98a71d
Split RDS Proxy guides per protocol (#32903)
* docs(database-access): split rds proxy page per protocol

* docs(database-access): fix lint
2023-10-09 12:33:35 +00:00
Edward Dowling 4aef0a3a71
Remove check that enforces slack oauthProviders are set (#32910)
* Remove check that enforces slack oauthProviders are set

* Remove test that checks for an error when hosted plugins is true

* Set hosted plugins to always be true

* Update tests that check hosted plugins is disabled

* Add comment explaining hosted being set to true at all times
2023-10-09 11:17:34 +00:00
Anton Miniailo a26b6d88bf
Fix Proxy Kube listener behavior regarding PROXY protocol usage (#32893)
* Fix Proxy Kube listener behavior regarding PROXY protocol usage

We always provided Proxy's PROXYProtocolMode to the listnening kube server,
but its listener could be already behind alpn multiplexed listener,
which already consumed PROXY protocol.

* Use clusterNetworkConfig

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

* Improve wording.

* Add option for testing proxy kube multiplexer

* Modify option for setting IgnoreSelfConnections on kube's multiplexer

* Fix spelling

---------

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>
2023-10-08 23:16:04 +00:00
Tiago Silva c210c39138
Add initial command to session trackers (#32947)
When user starts a session, we do not report the initial command used
which causes visibility problems to moderators when they need to figure
out if they join or not the session.

This PR exposes the intial command for SSH and Kubernetes so moderators
can decide if they want to join the session or not based on the initial
command.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2023-10-07 20:25:18 +00:00
Jakub Nyckowski 0834f13d09
Fix git installation path on CentOS 7 docker image (#32714)
When checking GHA logs of OS Compatibility build, I notice info log
```
The repository will be downloaded using the GitHub REST API
To create a local Git repository instead, add Git 2.18 or higher to the PATH
```
suggesting that our self-compiled git is not being used. For some reason out git binary was installed in /usr/local/usr/local/bin/git. I removed the additional /usr/local prefix to install the binary in the correct directory. I also updated git to the latest version.
2023-10-07 16:13:40 +00:00
Zac Bergquist 04d1b4f0b4
Fix some Rust lint warnings caught by Clippy 1.73.0 (#33033) 2023-10-06 21:03:36 +00:00
Steven Martin a63e63ec80
docs: include info for accessing database audit activity (#33063)
* docs: include info for accessing database audit activity

* fix for spelling

* verbiage update

* update verbiage

* verbiage update

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

* update info

* verbiage update

* verbiage update

* capitatlization

* verbiage update

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

* verbiage update

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-10-06 20:46:08 +00:00
Gus Luxton d2e75a784f
docs: Remove surplus connect.sh script content from docs (#33086) 2023-10-06 20:14:45 +00:00
Gus Luxton 5930977eb2
docs: Add WinSCP to PuTTY client instructions (#32868)
* docs: Add WinSCP to PuTTY client instructions

* Restore validity section

* Restore validity section

* Formatting tweaks

* Merge lists

* Change title

* Fix docs link title to match page

* Bump tsh version for WinSCP support

* Whitelist WinSCP in spellcheck

* putty.mdx -> putty-winscp.mdx
2023-10-06 18:55:58 +00:00
Paul Gottschling d44bd92a30
Deploy 1 docs version in Vercel preview workflow (#32403)
The Vercel preview workflow currently inserts the head branch of a pull
request into the edge version of the Teleport docs. This makes it
difficult to post a link to the correct version, since we need to
include the version number in the path.

This change edits the Vercel preview workflow to include only one
version of the docs--the user's version--in the preview site. This makes
it easier to find the user's changes.
2023-10-06 18:40:49 +00:00
Nic Klaassen db39fb56f9
Reliability improvements for HSM tests (#32911)
* log message improvements

* fix etcd cleanup

* re-enable TestHSMDualAuthRotation

* retry client connection tests

* fixes based on code review

* make fix-imports

* fix: use EventuallyWithT

* set short polling period
2023-10-06 18:30:42 +00:00
Michael Wilson e4da6ab470
Update e ref. (#33065)
Update the e ref to take in the test fixes related to access list frequency.
2023-10-06 15:26:48 +00:00
Marco André Dinis 134974c761
Web: add link to CloudShell on EICE/EC2 Discover flow (#33062)
* Web: add link to CloudShell on EICE/EC2 Discover flow

* use official name: AWS CloudShell
2023-10-06 15:20:50 +00:00
Jakub Nyckowski b32ee8a678
Update docker tag images to v15 (#33042) 2023-10-06 15:13:40 +00:00
Gus Luxton 5feaa11b02
terraform: Remove accidental backend.tf commit (#33076) 2023-10-06 15:11:45 +00:00
Steven Martin 9858281b3d
docs: update fips docker address (#33009)
* docs: update fips docker address

* Revert "docs: update fips docker address"

This reverts commit e80fafdd75.

incorrect commit

* fips docker distro changes
2023-10-06 14:53:33 +00:00
Steven Martin da2f060ccc
docs: title zypper enterprise linux install tab (#33017) 2023-10-06 14:18:32 +00:00
Andrew LeFevre 31ac8ee746
fix leaf SSH sessions not getting recorded (#32163)
* fix leaf SSH sessions not getting recorded

* add integration test

* address feedback, overhaul integration test

* make each test case use fresh clusters to fix failing case

* address feedback

* Apply suggestions from code review

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

* fix integration test failures

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2023-10-06 12:54:57 +00:00
Tiago Silva 37909ce9b3
Deflake TestInteractiveSessionsNoAuth test (#32842)
* Deflake `TestInteractiveSessionsNoAuth` test

For this test, the LockWatcher is marked as stalled. When in stalled
mode, the watcher bypasses cache and hits auth server directly.
During the test, the auth rate limit is exceeded which causes the
watcher to fail and report unexpected errors.

This PR bumps the auth server limits to prevent these cases.

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

* add comment

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2023-10-06 11:46:49 +00:00
Krzysztof Skrzętnicki 2fc901c444
Remove unused permissions from App role. (#32952) 2023-10-06 09:43:13 +00:00
Rafał Cieślak a26e4b0dc0
Downgrade Electron to 25.9.0 (#33011) 2023-10-06 09:30:34 +00:00
Marco André Dinis 45de4f6e5b
AWS OIDC - EICE: improve error when EC2 does not accept SSH connections (#32899)
* AWS OIDC - EICE: improve error when EC2 does not accept SSH connections

* improve error message
2023-10-06 07:13:28 +00:00
Alan Parra c01487a366
chore: Bump Go to v1.21.2 (#33044)
* chore: Bump Go to 1.21.2

* Run `make dronegen`
2023-10-06 03:14:52 +00:00
Alan Parra 194dcc5d72
Implement MFA verification on CreateAuthenticateChallenge (#32994)
* Implement MFA verification on CreateAuthenticateChallenge

* Update IsMFARequired tests

* Test challenge verification in CreateAuthenticateChallenge

* Add TODO regarding Required vs MFARequired
2023-10-05 21:24:59 +00:00
Gavin Frazar 061c2f55b9
fix backend range keys (#33003)
* use ExactKey to get/delete all cert authorities

* use ExactKey for backend ranges
2023-10-05 20:59:39 +00:00
Michael Wilson ed488aabcc
Add the Access List review backend. (#32924)
* Add the Access List review backend.

The Access List review backend has been added to Teleport.

* Update tests to remove frequency_changed.

* Update lib/services/access_list.go

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

* Update lib/services/access_list.go

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

* Tweak errors, add gRPC client to go along with new interfaces.

* Update comments, fix errant bugs with api client, remove reviews getter.

* Fix comments in proto, tweaks to tests and backend.

* Remove call to SetName.

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2023-10-05 20:32:25 +00:00
rosstimothy 03ed2cc744
Track connections to direct dial nodes across clusters (#33035)
#32688 added support for tracking connections to sessions via a
reverse tunnel node but failed to account for sessions to direct
dial nodes.
2023-10-05 20:09:51 +00:00
Andrew Burke 01fb621778
Add helper for generating request TTL options (#32998)
This change moves the `requestTtlMiddleValues` function from
gravitational/teleport.e#2306 to OSS.
2023-10-05 19:20:00 +00:00
Alan Parra 4485f8125a
chore: Bump Buf to v1.27.0 (#32997)
Update to the latest version.

* https://github.com/bufbuild/buf/releases/tag/v1.27.0
2023-10-05 18:16:20 +00:00
Mike Jensen 9205b0eeb6
RFD-146: Repo mirroring and release branch security scanning (#32233) 2023-10-05 17:44:52 +00:00
Michael 58b8a16a4f
Add sort index trees to unified resource cache (#32709) 2023-10-05 16:45:27 +00:00
rosstimothy afb2eab0fa
Allow breaker tripped error to be configurable (#32869) 2023-10-05 16:43:55 +00:00
Gus Luxton 99b4cb4d3d
docs: Update HA Terraform reference and add starter cluster reference (#32354)
* docs: Update Terraform reference documentation

* Fixes to shell script
2023-10-05 16:14:44 +00:00
Brendan O'Halloran f9aa261681
Update cloud docs to 13.4.2 (#33010)
Signed-off-by: Brendan O'Halloran <brendan.ohalloran@goteleport.com>
Co-authored-by: Evan Freed <2314084+evanfreed@users.noreply.github.com>
2023-10-05 16:03:47 +00:00
Rafał Cieślak d57f9b42dc
Fix --debug flag in Connect & enable devtools in debug mode (#33005)
* Change --debug to --connect-debug

* Add debug and insecure to RuntimeSettings, change how dev is set

* Enable devtools in debug mode instead of dev mode

This will allow us to access devtools in a packaged app if needed.
2023-10-05 15:43:51 +00:00
Mike Jensen b1cb60e546
Yarn replacement version bumps (#32982)
Updates minor versions for `minimist` `@types/react` and `webpack`
2023-10-05 15:32:00 +00:00
Alan Parra 1aad66d956
Add MFARequiredCheck to CreateAuthenticateChallenge (#32993)
* Add MFARequiredCheck to CreateAuthenticateChallenge

* Update generated protos
2023-10-05 13:49:02 +00:00
Tobiasz Heller 225a8ed172
Add cost optimized pagination search for athena (#32547)
* rework athena TestSearchEvents

* add cost optimized search for athena query
2023-10-05 09:25:18 +00:00
Forrest bb562408da
fanout buffer (#32323)
* add fanout buffer

* Update buffer.go

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

* Update buffer.go

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

---------

Co-authored-by: Brian Joerger <bjoerger@goteleport.com>
2023-10-05 04:37:01 +00:00
lsgunn-teleport e0c9b35a55
Update based on Mike's comments (#32988) 2023-10-04 19:54:42 +00:00
lsgunn-teleport c33b8484e5
docs: Reduce the use of capitalized trusted clusters and a few other fixes (#32432)
* Reduce the use of capitalized trusted clusters and a few other fixes

* fix a typo

* Modify the description of trusted clusters in core concepts

* Lower case cluster, add root and leaf to the description for self-hosted

* OpenSSH split into two topics
2023-10-04 19:40:44 +00:00
lsgunn-teleport 061b5690f4
docs: Caveat for token permissions not scoped to any resource context (#32780)
* caveat for token permissions not scoped to any resource context

* Add section for token resource

* Split paragraph

* Modify wording to remove type of token language

* fix typo
2023-10-04 19:40:05 +00:00
Zac Bergquist b33ca74376
Remove integration test bypass workflows (#32968)
Remove bypass workflows for integration tests (root) and kube
integration tests (non-root) in favor of the paths-filter approach,
since path filtering is not supported with the merge queue.
2023-10-04 18:25:02 +00:00
rosstimothy a70f0bba82
Remove unused bloat bypass workflow (#32969)
The bloat check runs on push and not PR and is not a required
check making the bypass workflow a waste of time and money.
2023-10-04 18:23:53 +00:00