Commit graph

10311 commits

Author SHA1 Message Date
Roman Tkachenko a4967833e2
Add flaky tests detector. (#20320)
Co-authored-by: Victor Sokolov <gzigzigzeo@gmail.com>
2023-01-18 10:29:10 -08:00
Jeff Pihach 30d51b6680
Add node and yarn to the buildboxes in preparation for the webapps merge (#20339)
* Add node and yarn to the buildboxes in preparation for the webapps merge.
2023-01-18 17:56:04 +00:00
Edward Dowling 9d97ae63fd
Add hidden label prefix (#19725) 2023-01-18 17:38:15 +00:00
Zac Bergquist f8b4af2d59
tctl edit: fetch resource with secrets (#20334)
Ensure that tctl edit does the equivalent of
    tctl get --with-secrets

Without this, the resource we fetch may be missing important details
that get overwritten when the edit completes.

Fixes #20326
2023-01-18 09:32:22 -07:00
djohns7 b1c3465421
Update okta.mdx (#19795)
* Update okta.mdx

Clarifying XML location and syntax in response to https://github.com/gravitational/teleport/issues/18223
2023-01-18 02:51:29 +00:00
Roman Tkachenko 597d0c1d3d
Update e-ref to latest on master (#20315) 2023-01-17 22:14:43 +00:00
Alan Parra 11d58e25c7
Refactor AccessMFAParams and MFAParams to allow additional data (#20300)
Refactor `services.AccessMFAParams` and the accompanying `MFAParams` methods so
they may be extended to carry additional data (eg, information required to
perform device trust checks).

This PR refactors existing code without adding any new functionality, so it may
be backported to older branches to alleviate eventual conflicts. Follow up
changes will take advantage of it to add support for device trust.

Related to gravitational/teleport.e#514.
2023-01-17 20:02:38 +00:00
Steven Martin 12c9b5660c
Point at source version in docs rather then generic master. (#20299) 2023-01-17 14:48:47 -05:00
Marco André Dinis 15f034f40c
remove direct dependency of gobuffalo/flect (#20297) 2023-01-17 20:03:12 +01:00
Roman Tkachenko 39e52d8c8f
Add Teleport Discover metrics RFD (#18546)
* Add Teleport Discover metrics RFD

* Fix

* Update Events

This commit includes some nit changes:
- adding the unspecified as the first enum
- renaming some messages to add the Discover namespace

Some other changes:
- added the Skipped status to accomodate for when we don't have to
  install the DatabaseService
- merged deploy of services into a single event (deploy of an ssh agent,
  kube agent and database agent)
- added the started event to capture when the wizard is launched

* Remove prefix on enums

Co-authored-by: Marco Dinis <marco.dinis@goteleport.com>
2023-01-17 17:54:22 +00:00
Noah Stride edb19a1adf
Machine ID and GitHub Actions docs copy improvements (#20260)
* spag changes

* Use `tctl` partial

* Further readability changes

* "we" -> "you"

* Further succincty

* Adjust referneces

* show format

* Finaly few copy fixes

* missing y

* Update docs/pages/machine-id/guides/github-actions-kubernetes.mdx

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

* Clarify Teleport user privs

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
2023-01-17 17:25:38 +00:00
Tiago Silva 071e36acf1
tsh, tctl support for creating Pod access requests (#20272)
This PR introduces support for creating resource access requests to `pod` resources to `tsh` and their approval from `tsh` and `tctl`. 

Adds support `tsh request create --resource /<cluster>/pod/<kube_cluster>/<namespace>/<podname>`.

Part of #18434
2023-01-17 17:12:31 +00:00
Rafał Cieślak 613bc9ab63
Set up ClientStore when adding cluster in Connect (#20263) 2023-01-17 16:37:58 +00:00
Tiago Silva e7ff55ddc4
Validate AWS regions when configuring the AWSMatcher (#20278)
This PR validates if the provided list of regions belongs to any AWS partition. If the region list is invalid or empty, Teleport prints a helpful message and exits.

Fixes #20276
2023-01-17 16:20:24 +00:00
Zac Bergquist 13a40ea7a3
Support tctl auth sign --format=windows (#19174)
User certs for desktop access are only valid for a few minutes
and are never written to disk. This can make it difficult to
troubleshoot cert validity.

This commit adds support for generating Windows user certificates
which can be exported to the Windows environment for validation.

Note: at this time, we only write the certificate and not the
corresponding private key, making it impossible to use the generated
cert for any real purpose.
2023-01-17 16:07:17 +00:00
Vitor Enes d6ffe82aaf
Support multiple transformations in role templates (#19696)
Before this commit, only a single transformation like `email.local` or
`regexp.replace` was allowed in role templates.

With this commit now users can write:
- `email.local(regexp.replace(external.email, "_", "-"))`
- `regexp.replace(email.local(regexp.replace(external.email, "_", "-")), "dev", "admin")`

This commit also allows the above expressions to not contain any
variable, i.e., it allows constant expressions like
`email.local("vitor@goteleport.com")`.
2023-01-17 15:24:50 +00:00
STeve (Xin) Huang 69a9dbf3a2
Fix issue database agent fails to get tags for AWS Redshift Serverless VPC endpoints (#20270) 2023-01-17 15:14:26 +00:00
STeve (Xin) Huang 5ee85bdf72
Add sts:AssumeRole to database boundary policy (#20215) 2023-01-17 14:56:39 +00:00
Steven Martin 240739ecb5
spell fixes (#20237) 2023-01-17 02:54:55 +00:00
Tiago Silva c6d3f81f20
Disables TestListPodRBAC to run in parallel with other tests (#20267)
Running computationally expensive tests causes connection failures that lead to test failures.
This PR tries to overcome this problem by making only the subtests run in parallel.
2023-01-16 18:22:52 +00:00
Alan Parra 885d7397ab
chore: Bump Go dependencies (#20264)
Keep up with current releases.

Supersedes the following dependabot PRs:

* dustin/go-humanize - https://github.com/gravitational/teleport/pull/20255
* gobuffalo/flect - https://github.com/gravitational/teleport/pull/20249
* pavlo-v-chernykh/keystore-go/v4 -
  https://github.com/gravitational/teleport/pull/20254
* aws/aws-sdk-go - https://github.com/gravitational/teleport/pull/20253
* aws/aws-sdk-go-v2/service/ec2 -
  https://github.com/gravitational/teleport/pull/20248
* Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v2
  - https://github.com/gravitational/teleport/pull/20250
* elastic/go-elasticsearch/v8 -
  https://github.com/gravitational/teleport/pull/20252
2023-01-16 17:38:53 +00:00
Edward Dowling a4f972bbc4
Add metric for incomplete file uploads (#19724) 2023-01-16 16:58:54 +00:00
Hugo Shaka 3bf6e2d3ec
RFD 0087: Access request notification routing (#16288)
Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2023-01-16 15:09:35 +00:00
Steven Martin 612963d9c8
fix sha256 links (#20257)
* fix sha256 link

* sha256 fix link
2023-01-15 23:03:56 +00:00
Steven Martin c2fafaf6e8
Updates to cloud getting started (#19657)
* Expand cloud getting started to include replaying sessions and all desktop installations
2023-01-15 17:38:26 +00:00
Alex Fornuto ee160d3105
update style guide relating to focus and content duplication (#20024) 2023-01-14 21:05:39 -07:00
Ben Arent c4c7b8d4a5
Docs. Direct invite link via docs (#19810)
Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
2023-01-14 23:54:54 +00:00
Travis Rodgers d0a2fcecf2
adding video banner to documentation (#19924) 2023-01-14 16:40:45 +00:00
Krzysztof Skrzętnicki 06a837eb58
Add Azure and GCP integration to the test plan. (#20182) 2023-01-14 02:54:23 +00:00
Isaiah Becker-Mayer 7d19ffeb93
Clean up web endpoints (#19937)
Abstracts out authenticateRequestWithCluster so that the WithClusterAuth
logic can be used in siteSessionStreamGet without making siteSessionStreamGet
a ClusterHandler, which is expected to return JSON.
2023-01-14 00:48:36 +00:00
Isaiah Becker-Mayer cab45d7712
deletes unused parsing code for defunct trusted_clusters (#20109) 2023-01-14 00:28:30 +00:00
Alex Fornuto 565d399611
[Docs] Use gravitational.com to download checksums. (#20212)
* Note arch Var in OSS tar download

* download checksum from gravitational.com
2023-01-13 23:24:08 +00:00
Alan Parra f2a04515d0
fix: Always dial to root cluster for single-use certificates (#20218)
The Web UI terminal wrongly dials to the leaf cluster, in trusted cluster scenarios, to issue single-use certificates (the kind one needs when `require_session_mfa` is enabled).

This fixes that by always dialing to the root cluster, [a behavior that matches `tsh`][1]

[1]: c23532cc00/lib/client/client.go (L455-L480)

#20208
2023-01-13 22:38:38 +00:00
Alex Fornuto 96e2c6c8e3
lint fix (#20219) 2023-01-13 22:09:26 +00:00
rosstimothy f43a269960
Stop heartbeating during graceful shutdown (#20199)
Ensures that active connections during a graceful shutdown don't
inadvertently prolong the heartbeat.

The added ReadyEvents ensure that TeleportReady is broadcast if 
either the tracing_service or metrics_service is enabled. Not emitting 
them prevents graceful shutdown from completing because the uploader
 service requires the TeleportReady event before it can complete initialization.
2023-01-13 21:57:39 +00:00
matheus 7b3e63700d
[auto] Update webassets in teleport/master from webassets/master (#20220) 2023-01-13 21:32:32 +00:00
Gavin Frazar df44ae849d
Add mysql conn tester (#20177)
* Add mysql conn tester
* fix issues with mysql error codes
2023-01-13 21:10:33 +00:00
fheinecke c23532cc00
Added Apple env var check (#20214) 2023-01-13 20:57:52 +00:00
Isaiah Becker-Mayer 7c4882c747
fixes ldap filter example (#20161) 2023-01-13 20:48:28 +00:00
Lisa Kim 5aac8d4ad1
[auto] Update webassets in teleport/master from webassets/master (#20211) 2023-01-13 20:11:40 +00:00
Lisa Kim 48a5d786ff
Add device trust event type conversion (#20163)
* Moved device trust event related code to
  events.proto to solve import cycling
2023-01-13 19:57:53 +00:00
Steven Martin 6c46eac76a
Download link for cloud installs (#20181) 2023-01-13 19:22:30 +00:00
Edward Dowling 3cd847e3ff
Allow updating of trusted cluster role maps (#18168) 2023-01-13 19:06:17 +00:00
Nic Klaassen 2fec96c2c8
feat: login rule tctl CRUD commands (#20175)
* feat: login rule tctl CRUD commands

This commit implements the `create`, `get`, and `rm` `tctl` commands for
login rule resources.

Much of the Resource <-> Protobuf type conversion code is already
present in teleport.e and is being copied here so that it can be used in
OSS tctl (there is no longer an enterprise-specific resource command for
tctl, everything is in OSS).

https://github.com/gravitational/teleport.e/pull/699 removes the now
redundant code in teleport.e
2023-01-13 18:46:53 +00:00
Andrew LeFevre e71f024a9f
Add OpenSSH CA (#20020)
* WIP adding OpenSSH CA

* fix creating OpenSSH CA for tests

* fix a test name and tctl usage flag

* fix 'tctl status' not displaying openssh CA sometimes

* add OpenSSH CA to TestInit_bootstrap, remove TLS key pair

* add OpenSSH CA to a few more places

* make help text of 'tctl auth rotate' more helpful and accurate

* fix web cert export test

* tbot doesn't need to know about OpenSSH CA

* address feedback

* fix comment formatting
2023-01-13 18:23:19 +00:00
Brian Joerger 2922ad009a
Allow non-standard agent keys. (#18449) 2023-01-13 17:59:51 +00:00
Jakub Nyckowski 86ac5afd07
Update Rust to 1.66.1 (#20197)
Bump up the Rust version to mitigate CVE-2022-46176, context: https://blog.rust-lang.org/2023/01/10/cve-2022-46176.html
2023-01-13 17:32:41 +00:00
Sam Freiberg ad53827424
Update deprecation version (#20167) 2023-01-13 17:18:52 +00:00
Jakub Nyckowski 4e5a776c43
Temporary skip TestReverseTunnelCollapse (#20198)
* Temporary skip TestReverseTunnelCollapse

Co-authored-by: Hugo Shaka <hugo.hervieux@goteleport.com>
2023-01-13 17:04:02 +00:00
Hugo Shaka fb14caf70c
helm: add wait initContainer and preStop hooks (#20106)
Part of [RFD-096](https://github.com/gravitational/teleport/pull/18274): managing the major upgrades safely

This commit's main purpose is to block proxies running a new Teleport major version from connecting to auth pods running an old Teleport version.

This commit does 3 things:
- adding initContainers and preStop hooks to the `teleport-cluster` Helm chart (initContainers were designed in RFD 096, preStop was a nice additoin coming from [the wait PR](https://github.com/gravitational/teleport/pull/19277))
- fixing a bug in the `wait` command (the DNS error was not properly unwrapped and not recognized as a DNS error)
- fixing missing override support on some auth Deployment values. As a rule of thumb for future review, we should not use .Values directly and prefer using $auth and $proxy
2023-01-13 16:50:00 +00:00