Commit Graph
8960 Commits
Author SHA1 Message Date
rosstimothy 1973fcee24 Span improvements (#15388)
* Add spans to TeleportClient/ProxyClient/NodeSession

* Improve dialer tracing

* Alter default http client span name to include path

* propagate tracing options in NewClientConn
2022-08-18 21:29:03 +00:00
Steven Martin e26b97614e Remove duplicate words in trusted cluster overview (#15635) 2022-08-18 19:08:26 +00:00
Joel aa9d003a81 Fix invalid Write implementation on K8S join stream (#15503) 2022-08-18 18:06:10 +00:00
Joel 5d9aa74375 RFD 82 - Session Tracker Resource RBAC (#15524)
* session tracker resource rbac

* typo

* add a section dealing with existing clusters
2022-08-18 17:15:09 +00:00
Bence Kiglics e217b8131e Add documentation for Event Handler chart (#13732) 2022-08-18 10:22:23 +00:00
Tobiasz Heller 251a099f69 Improve error logging on reconnect node (#15477) 2022-08-18 11:15:32 +02:00
Anton Miniailo 1e5826d16c Make tctl auth sign to write out kube TLS server name if TLS routing is enabled (#15536)
* Make tctl write out kube tls server name if tls routing is enabled

Fixes #14489

* Extract kube TLS name generation function to shareable location

We want tctl to be able to use this function as well, so we're locating it
in a place where both tctl and tsh can use it.
Also changing input parameter to k8s host, since it doesn't really care
 about port number.
2022-08-17 22:36:51 +00:00
Tiago Silva 76d6dc8215 Fix 'get-kubeconfig.sh' to work with Kubernetes v1.24+ (#15612)
Kubernetes v1.24 enabled, by default, the LegacyServiceAccountTokenNoAutoGeneration feature.
This feature prevents Secrets containing service account tokens from being automatically created for every ServiceAccount.
Instead, when enabled, it requires a manual action for creating the Secret bound to the SA.

Fixes #15611
2022-08-17 19:48:28 +01:00
Grzegorz Zdunek bcd480ca08 Reorganize approach to cluster names in Connect (#15200) 2022-08-17 17:38:37 +02:00
Krzysztof SkrzętnickiandPaul Gottschling bd8c2f7ca9 Document teleport.dev/database_name tag. (#14923)
* Document `teleport.dev/database_name` tag.

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2022-08-17 16:07:07 +02:00
Hugo Shaka 2baa7e72d9 ami: update Grafana to 9.0.7 (#15585)
Fixes #4218

This commit:
- Bumps the grafana version
- Fixes the packer script failing when `DEBUG` is unset
- Makes nginx propagate the Host header required since
  https://grafana.com/blog/2022/02/08/grafana-7.5.15-and-8.3.5-released-with-moderate-severity-security-fixes/
- Makes nginx proxy websocket calls properly (since grafana 8)
- Retab nginx conf files that were a mix of tabs and spaces
- Makes Terraform compute s3 files md5 to detect and apply changes
2022-08-17 13:38:17 +00:00
Vitor Enes ee3a2e91b7 Remove unused vars in dynamodbbk.go (#15554) 2022-08-17 12:18:17 +00:00
Vitor Enes e6dacedfa0 Add TurnOnTimeToLive and TurnOnStreams functions to dynamo/configure.go (#15557) 2022-08-17 10:50:18 +00:00
7629c635c1 Document tsh aliases usage. Change implementation details. (#14931)
* Document `tsh` aliases usage.

* Rename: `TSH_ALIAS` => `TSH_UNALIAS`

* Support $TSH variable in alias definitions.

* Document `$TSH` in tsh aliases.

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Roman Tkachenko <roman@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2022-08-17 09:49:24 +02:00
Hugo Shaka 65e861daeb Stop validating schema for labels in k8s operator (#15206)
* Stop validating schema for labels (#15204)
* operator: support receiving invalid TeleportRole CRs

This PR makes the controller-runtime manager decode TeleportRole
resource in an unstructured object. This avoid errors during decoding.
The resource is later decoded as a TeleportRole, with proper error
handling.
2022-08-17 03:18:17 +00:00
Hugo Shaka 82c520c818 helm: allow to disable local auth in teleport-cluster chart (#13827)
Fixes #12974

This commit introduces a new `authentication` value controlling:
- the authentication type (previously `authenticationType`)
- the second-factor (previously under `authenticationSecondFactor`)
- if local auth is enabled (new feature)
- the connector name (new feature)
- the locking mode (new feature)

If previous values `authenticationType` and `authenticationSecondFactor`
are specified we'll prefer them for backward compatibility.
2022-08-16 22:38:11 +00:00
Logan Davis 76606fc18b Update buildbox to push to ECR (#15058) 2022-08-16 21:07:07 +00:00
Roman Tkachenko 960a82a81c Fix bot's test (#15586) 2022-08-16 20:31:21 +00:00
Alex McGrathandPaul Gottschling 94e63ea0ff Document multi-role-behavior for create_host_user option (#15549)
* Document multi-role-behavior for `create_host_user` option

* Update docs/pages/access-controls/reference.mdx

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

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2022-08-16 20:01:00 +00:00
Vitor Enes 0e87ca8fe2 Remove unused isBillingModeProvisioned var in dynamoevents.go (#15555) 2022-08-16 19:31:32 +00:00
d8c9b08001 Support China and GovCloud for database access (#15359)
Co-authored-by: waylen <waylen.guo@gmail.com>
Co-authored-by: Jianghui Guo <89057156+waylenguo@users.noreply.github.com>
Co-authored-by: STeve (Xin) Huang <huangin52@gmail.com>
2022-08-16 18:42:18 +00:00
Noah Stride 843d9d6a7b Reorganise Machine ID docs (#15522)
* Move Machine ID support matrix into the introduction page

* Link to Machine Id specific guides in support matrix

* Add Machine Id guides to introduction page

* Move machine id guides to includes

* Fix links to guides

* Remove already-answered question from FAQ
2022-08-16 16:19:06 +00:00
Steven Martin 8c8a5a5825 Add AWS troubleshooting page and add into applicable pages (#15515) 2022-08-16 15:43:12 +00:00
Tobiasz Heller cf205b01a5 Store AuthConnector in profile (#15374) 2022-08-16 14:52:31 +02:00
Marco André Dinis 37b80c03b1 Connection Diagnostic: update, traces and ConnectionTester (#15158)
This PR adds the concept of ConnectionTester

ConnectionTester will generate ConnectionDiagnostics by connecting to
the actual resource using a user and some Resource Specific parameters
(principal for SSH access, Database User and Name for Database access,
and so on) and storing the result of multiple checkpoints.

Each resource will have a ConnectionTester (we'll start by SSH access
and then Databases).

It also improves Connection Diagnostics by adding
- update operation (similar to the create one)
- a list of traces, which contain the result of checkpoints in multiple
  steps of the connection flow

As an example, for SSH, we'll have at least the following checks:
- Node is reachable
- User has the right permissions
- Node has the expected Principal

The trigger to test a connection will be an endpoint, because our
primary goal is to let the user test the access right after adding the
resource.

This PR does not implement the actual SSHConnectionTester but creates
most of the boilerplate to do so.

The next PR will focus in adding the actual traces.
2022-08-16 11:03:06 +01:00
Tobiasz Heller 2ae11882cf Add info to login command about passwordless (#15371) 2022-08-16 10:49:40 +02:00
Logan Davis 1f0b4a744b Update fpm images to use amazon ECR (#15274) 2022-08-15 23:28:34 +00:00
Roman Tkachenko dd1cfc7dd9 [auto] Update AMI IDs for 10.1.4 (#15532) 2022-08-15 22:44:29 +00:00
Andrew Burke 9607fdd78c Allow reverse tunnel join without exposing the web API (#13598)
This change allows agents to join over a reverse tunnel (port 3024 by default) only, instead of also requiring access to the web API (port 3080).
2022-08-15 21:28:24 +00:00
Zac Bergquist 732b291a6f docs: clarify references to capturing groups in regexp.replace
Fixes #15450
2022-08-15 14:59:58 -06:00
Zac Bergquist a4b4bd0e02 Clarify email.local interpolation func
Fixes #15449
2022-08-15 14:59:58 -06:00
Zac Bergquist af43fbf370 docs: grammar fix
Fixes #15442
2022-08-15 14:59:58 -06:00
Roman Tkachenko 90f34c3a5e Update Cloud package repo instructions (#15528) 2022-08-15 20:37:26 +00:00
Andrew BurkeandRoman Tkachenko d46ccb22ab Lower EC2 label log frequency (#15179)
This change makes the error message for when EC2 tags aren't available in instance metadata only emit once, to reduce log spam.

Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2022-08-15 10:01:04 -07:00
Alex McGrath f56dd09ebd Add an installer script resource type and public HTTP endpoint (#13146)
* Add an installer script resource type and HTTP endpoint

* Add default installer scripts

* Resolve comments

- run `shfmt` over the installer script
- add MustNewInstaller
- move default installer logic to GetInstaller
- only include PublicProxyAddr in server.Config

* Resolve comments

- move from auth_with_roles -> auth/grpcserver
- document `MustNewInstallerV1`
2022-08-15 10:27:33 +00:00
Isaiah Becker-Mayer 321d3482dd SharedDirectoryMoveRequest and SharedDirectoryMoveResponse (#14959) 2022-08-14 21:15:49 +00:00
Zac Bergquist eff38e2fa5 bot: don't treat docs reviewers as external authors (#15510)
This fixes a corner case where a docs review who submits a PR that
touches code or examples is treated as an external author instead
of an internal employee.
2022-08-13 20:10:31 +00:00
Nic Klaassen 1a91e9cfd3 Fix inverted check for join_params and auth_token mutual exclusion (#15513) 2022-08-13 17:20:03 +00:00
fheinecke 9ff2df0539 Added docs for new RPM repos (#15268)
* Added docs for new RPM repos

* Fixed typos

* Added/fixed supported version links

* Updated docs to use gpg key in new APT repos
2022-08-13 15:25:49 +00:00
Russell Jones 823bbfcc22 Refactor tests under httplib package.
Refactored all tests under "lib/httplib" to use testify instead
of gocheck.
2022-08-12 17:11:13 -07:00
Paul Gottschling 83fef305cd Edit the Mattermost guide (#15041)
Fixes #14577

Update the guide and make it easier to use:

- Give this guide the structure of the Slack guide, adding stepped
  headings and a section on configuring Access Requests, to make this
  guide easier to follow step by step.
- Add the initial Access Request RBAC setup as a partial
- Indicate that this has been tested with Mattermost v7.0.1
- Add clarity tweaks throughout
- Update the instructions for editing the plugin configuration. The
  configuration fields have changed since guide was written.
2022-08-12 21:46:11 +00:00
Paul Gottschling a95231db08 Add redirect from /user-manual (#15419)
An earlier commit erroneously removed the /user-manual redirect, causing
404s for several pages on the goteleport site that still point to this
outdated URL. This change reinstates the redirect.
2022-08-12 20:55:13 +00:00
Tim BuckleyandPaul Gottschling 1c2c5d07b0 Add Machine ID Kubernetes and Apps guides (#14976)
* Add Machine ID Kubernetes guide and partial Apps guide

* Small wording tweaks to the k8s guide

* Rename menu titles to match convention

* Fix inaccurate CA cert recommendation on the API access guide

* Tidy up the Kubernetes guide

* Finish up first pass on Apps guide

* Remove empty admonition

* Address review feedback

* Fix doctest lints

* Apply suggestions from code review

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

* Address a batch of review comments

* Apply suggestions from code review

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

* Address further review comments

* Apply suggestions from code review

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

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2022-08-12 19:50:09 +00:00
Steven Martin edc29051ec Remove tctl access ls from cli ref (#15455)
Remove tctl access ls
2022-08-12 18:42:26 +00:00
Joel 669d32bbed Improve K8S session join error propagation (#15242) 2022-08-12 17:31:11 +00:00
Joel f2dd75801a Remove legacy session service (#15155) 2022-08-12 16:39:45 +00:00
Forrest Marshall 51411cf5b9 github releases scraper 2022-08-12 08:15:58 -07:00
Zac Bergquist b1d4d608b2 auditlog: fix panic during concurrent streams of the same session (#15361)
The code attempts to wait on an existing download if one is already
in progress rather than starting a concurrent download of the same
session. If this code path runs, we incorrectly defer a call to a
nil function, triggering a panic.

This bug was introduced in #7360.
2022-08-12 14:47:54 +00:00
Andrew LeFevre 0acf527e8f RFD 74: Add SFTP Support (#13216) 2022-08-12 14:12:50 +00:00
Vitor Enes 1afb7d5832 Use the absolute path of the teleport binary in node join script (#15466) 2022-08-12 13:18:06 +00:00