Commit graph

13827 commits

Author SHA1 Message Date
Steven Martin 18602f913f
docs: use -o file instead of sudo tee (#28688) 2023-07-06 17:15:16 +00:00
teleport-post-release-automation[bot] dfcc95e7e6
[auto] Update AMI IDs for 13.2.0 (#28750)
Co-authored-by: GitHub <noreply@github.com>
2023-07-06 17:10:37 +00:00
Paul Gottschling 27de231270
Edit playbook user in the Ansible guide (#28674)
Closes #16612

The guide names the Machine ID getting started guide as a prerequisite,
and the getting started guide shows how to authorize Machine ID to log
in as `root`.

This change edits the playbook example in the Ansible guide to use
`root`, and uses a `Var` component in case the user configured Machine
ID to have another login instead.
2023-07-06 17:05:35 +00:00
rosstimothy f51d94d3eb
Remove reversetunnel.RemoteSite alias (#28758)
The alias can be safely removed now that
https://github.com/gravitational/teleport.e/pull/1761 migrated `e`
to use reversetunnelclient.RemoteSite. The `e` ref was already
bumped in https://github.com/gravitational/teleport/pull/28745
to include the change so only the removal of the alias is needed.
2023-07-06 17:01:56 +00:00
Paul Gottschling 8bc39305cd
Minor clarifications in the Azure AD guide (#28678)
Closes #10678

- Clarify the URL to use for the Entity ID and Reply URL, using the
  `Var` component to streamline instructions for self-hosted and Cloud
  users.
- Clarify the optional nature of SAML token encryption
2023-07-06 17:01:44 +00:00
Tiago Silva e06fc88e98
Extend Teleport RBAC to support Kubernetes Verbs (#27096)
* Extend Teleport RBAC to suport Kubernetes Verbs

This PR extends Teleport per-Resource RBAC to support Kubernetes verbs
restriction. With this change it's possible to restrict certain actions
allowed by the underlying `kubernetes_users` and `kubernetes_resources`.

Supported verbs:
- `get`
- `create`
- `update`
- `patch`
- `delete`
- `list`
- `watch`
- `deletecollection`

Fixes #27095

* address timr's comments

* assign wildcard to verbs for role <7

* address marco's reviews
2023-07-06 15:39:11 +00:00
Paul Gottschling ed3278817e
Use more restrictive S3 object permissions (#28554)
Fixes #28449

Change the `docs/pages/includes/s3-iam-policy.mdx` partial to define a
more restrictive list of S3 permissions.

Currently, the partial includes the `s3:*Object` action. This change
expands the wildcard for only the permissions that the Auth Service
needs.

All the possible `s3:*Object` permissions are:

`DeleteObject`
`GetObject`
`PutObject`
`ReplicateObject`
`RestoreObject`

The Auth Service needs `GetObject` for `*Handler.Download` and
`PutObject` for `*Handler.Upload` (lib/events/s3sessions/s3handler.go),
but only uses `DeleteObject` for tests in `*Handler.deleteBucket`. It
doesn't seem to need `ReplicateObject` or `RestoreObject`.
2023-07-06 14:47:22 +00:00
Alex Fornuto 90d4076ffb
Docs: Update/Refresh OneLogin SSO guide (#28444)
* update to not be SSH-specific

* hard breaks ~80 chars

* undo changes from d80ab5b...

I had adjusted this section to fit as a prereq bullet point. It makes more sense for this to be a unique section at the bottom of SSO pages, so that the reader only changes the default auth method _after_ completing the setup.

* update onelogin SSO guide

* Respond to @ptgott's feedback
2023-07-06 14:42:36 +00:00
Jakub Nyckowski 784e6197d2
Fix imports on non-linting files (#28752)
Our linter does not run on all files, so the incorrect sorting is not reported, but GCI keeps fixing these imports each time I run it, hence the PR.
2023-07-06 14:32:56 +00:00
Alex Fornuto 2cf7284404
Docs: clarify the value of 'host' key where needed (#28490)
* clarify the value of 'host' key where needed

* Respond to @ptgott's feedback
2023-07-06 14:21:04 +00:00
Noah Stride 5306331d17
Machine ID: GCP Delegated Joining support (#28663)
* Add GCP joining support to tbot

* Comment SPAG

* Fix imports

* Actually fix imports
2023-07-06 14:16:53 +00:00
Michael Wilson 6140bdc7cd
Introduce Access List internal object. (#28479)
* Introduce Access List internal object.

The Access List internal object has been introduced. This object will be used
for backend storage and JSON/YAML unmarshaling.

This PR introduces a few concepts:

* Access List is intended to be created with a builder.
* Access List is a regular struct instead of an interface.
* There are common objects, which are largely copies of their current protobuf
  counterparts, that also have builders.
* These common builders can be integrated with regular resource builders, like
  the access list builder.

* Linting fixes.

* More linting.

* Remove builder.

* Modify to match most recent proto updates.

* Move IsValidLabelKey back to common.

* Tuning of function named returns, add in tests for IsValidLabelKey, expand IsValidLabelKey comment.

* SetKind/SetVersion at the end of CheckAndSetDefaults.

* Remove pointers from AccessList/Header objects.

* Move SetKind/SetVersion back to beginning of CheckAndSetDefaults.
2023-07-06 13:30:42 +00:00
Tiago Silva c5ac4b40e9
Support GCP joining when google claim is not present (#28651)
Teleport assumes that the `google` claim is present in the identity token that the Teleport service shares with Auth server. This is valid for VMs but it's not valid for GKE clusters using Workload identity and other GCP services. Teleport requests the identity token with `format=full` to receive this enhanced token.

Example of an identity token with a `google` claim:

```json
{
   "iss": "[TOKEN_ISSUER]",
   "iat": [ISSUED_TIME],
   "exp": [EXPIRED_TIME],
   "aud": "[AUDIENCE]",
   "sub": "[SUBJECT]",
   "azp": "[AUTHORIZED_PARTY]",
   "google": {
    "compute_engine": {
      "project_id": "[PROJECT_ID]",
      "project_number": [PROJECT_NUMBER],
      "zone": "[ZONE]",
      "instance_id": "[INSTANCE_ID]",
      "instance_name": "[INSTANCE_NAME]",
      "instance_creation_timestamp": [CREATION_TIMESTAMP],
      "instance_confidentiality": [INSTANCE_CONFIDENTIALITY],
    }
  }
}
```

The problem arises when one tries to use GCP joining for a Teleport service running on a GKE pod. When inside a pod with a binding between the Kubernetes Service account and the Google IAM Service Account, Google's metadata service token does not include the `google` claim. so it fails to join the cluster because of the unknown `project_id`.

To bypass this limitation, this PR extracts the `project_id` from the Google Service Account Email claim
`<service_account_name>@<project_id>.iam.gserviceaccount.com`. We use regex to extract the `project_id` and ensure the email follows the specified format above. Tests were introduced to validate the email.

Fixes #28636

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
2023-07-06 12:20:22 +00:00
Ryan Clark b204ebbe76
Fix theme not loading on first login & overflowing command result summary (#28702)
* Share styling between command result & summary

* Correctly override the theme preference with the legacy preference

* Update web/packages/teleport/src/services/localStorage/localStorage.ts

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

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-07-06 09:24:14 +00:00
fheinecke ee93fd8cda
Fixed CPIO digest mismatch on RHEL 8 (#28745)
* Fixed CPIO digest mismatch on RHEL 8

* bumped `e`
2023-07-06 00:30:01 +00:00
dependabot[bot] a80f4e79b9
Bump github.com/aws/aws-sdk-go-v2/service/iam from 1.20.3 to 1.21.0 (#28717)
Bumps [github.com/aws/aws-sdk-go-v2/service/iam](https://github.com/aws/aws-sdk-go-v2) from 1.20.3 to 1.21.0.
- [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/efs/v1.20.3...service/s3/v1.21.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/iam
  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-07-05 22:09:28 +00:00
dependabot[bot] 057636a76f
Bump cloud.google.com/go/firestore from 1.10.0 to 1.11.0 (#28715)
Bumps [cloud.google.com/go/firestore](https://github.com/googleapis/google-cloud-go) from 1.10.0 to 1.11.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/dlp/v1.10.0...kms/v1.11.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/firestore
  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-07-05 21:43:29 +00:00
dependabot[bot] ac631ff2c7
Bump google.golang.org/api from 0.128.0 to 0.130.0 (#28708)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.128.0 to 0.130.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.128.0...v0.130.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-05 21:42:43 +00:00
rosstimothy 336b89158b
Fix TestNodeAccess (#28729)
#28499 missed adding the augmented device certificates retrieved from
DeviceLogin to the local agent which causes TestNodeAccess to fail.
This was not caught in #28499 because TestNodeAccess is in `e` and
tests from `e` are not run on `oss` PRs.
2023-07-05 21:44:23 +00:00
rosstimothy a91ad82708
Firestore backend improvements (#28473)
* Test concurrent compare and swaps

The backend test suite was not validating that simultaneous CAS
operations result in only one attempt succeeding. The test now
runs multiple concurrent CAS operations and ensures that only a
single operation succeeds. This shortcoming with the test allowed
the Firestore backend to pass the compliance test while not perfoming
CAS in an atomic manner.

* Firestore backend improvements

1) CAS now utilizes a transaction to ensure the operation is atomic

The original implementation did not use transactions which violated
the atomic guarantees of the CAS operation. The backend compliance
test was able to catch this when it was updated to run concurrent
CAS opertations.

2) Update is limited to updating a value

The original implementation of Update was actually doing a get and
then upsert. However, there are no guarantees that prevent a delete
from occurring between get and upsert, which means Update would
upsert the value instead of failing. Instead of get and then upsert
we now update the document using the (firestore.DocumentRef) Update
method.

3) Watching items from the collection filters out any audit events

If Teleport is configured to use the same collection for backend state
and audit events the collection watcher ends up consuming all audit
events as empty backend items. To avoid this the watcher is now filtering
out any collections which have an empty key since it is not possible
for backend resources to be written without a key this will only
exclude audit events which have a different schema.

4) SearchEvents now filters out backend resources

Similar to above, the Firestore events implementation now excludes
any documents which have an empty session id to prevent backend
resources from getting included in queries for audit events if the
collection is being shared.

* speed up backend test suite

* conditionally delete expired items on get

* fix: cleanup tests
2023-07-05 21:16:29 +00:00
dependabot-batcher[bot] 7e6b941dcd
Batched Dependabot updates (#28584)
* Bump google.golang.org/protobuf from 1.30.0 to 1.31.0 in /api

Bumps google.golang.org/protobuf from 1.30.0 to 1.31.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  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/dynamodb/attributevalue

Bumps [github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue](https://github.com/aws/aws-sdk-go-v2) from 1.10.25 to 1.10.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/feature/dynamodb/attributevalue/v1.10.25...feature/dynamodb/attributevalue/v1.10.30)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/sashabaranov/go-openai from 1.10.1 to 1.12.0

Bumps [github.com/sashabaranov/go-openai](https://github.com/sashabaranov/go-openai) from 1.10.1 to 1.12.0.
- [Release notes](https://github.com/sashabaranov/go-openai/releases)
- [Commits](https://github.com/sashabaranov/go-openai/compare/v1.10.1...v1.12.0)

---
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 cloud.google.com/go/container from 1.21.0 to 1.22.1

Bumps [cloud.google.com/go/container](https://github.com/googleapis/google-cloud-go) from 1.21.0 to 1.22.1.
- [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/pubsub/v1.21.0...pubsub/v1.22.1)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/google/go-attestation

Bumps [github.com/google/go-attestation](https://github.com/google/go-attestation) from 0.4.4-0.20220404204839-8820d49b18d9 to 0.5.0.
- [Release notes](https://github.com/google/go-attestation/releases)
- [Commits](https://github.com/google/go-attestation/commits/v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-attestation
  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/service/glue from 1.51.0 to 1.53.0

Bumps [github.com/aws/aws-sdk-go-v2/service/glue](https://github.com/aws/aws-sdk-go-v2) from 1.51.0 to 1.53.0.
- [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.51.0...service/ec2/v1.53.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/glue
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump google.golang.org/protobuf from 1.30.0 to 1.31.0

Bumps google.golang.org/protobuf from 1.30.0 to 1.31.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/alicebob/miniredis/v2 from 2.30.2 to 2.30.4

Bumps [github.com/alicebob/miniredis/v2](https://github.com/alicebob/miniredis) from 2.30.2 to 2.30.4.
- [Release notes](https://github.com/alicebob/miniredis/releases)
- [Changelog](https://github.com/alicebob/miniredis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/alicebob/miniredis/compare/v2.30.2...v2.30.4)

---
updated-dependencies:
- dependency-name: github.com/alicebob/miniredis/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/prometheus/client_golang from 1.15.1 to 1.16.0

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.15.1 to 1.16.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.15.1...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/sigstore/cosign/v2 in /integrations/kube-agent-updater

Bumps [github.com/sigstore/cosign/v2](https://github.com/sigstore/cosign) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/sigstore/cosign/releases)
- [Changelog](https://github.com/sigstore/cosign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sigstore/cosign/compare/v2.1.0...v2.1.1)

---
updated-dependencies:
- dependency-name: github.com/sigstore/cosign/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump golang.org/x/sys from 0.9.0 to 0.10.0

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/hashicorp/golang-lru/v2 from 2.0.2 to 2.0.4

Bumps [github.com/hashicorp/golang-lru/v2](https://github.com/hashicorp/golang-lru) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/hashicorp/golang-lru/releases)
- [Commits](https://github.com/hashicorp/golang-lru/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/golang-lru/v2
  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.10.0 to 0.11.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.10.0...v0.11.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/elastic/go-elasticsearch/v8 from 8.8.1 to 8.8.2

Bumps [github.com/elastic/go-elasticsearch/v8](https://github.com/elastic/go-elasticsearch) from 8.8.1 to 8.8.2.
- [Release notes](https://github.com/elastic/go-elasticsearch/releases)
- [Changelog](https://github.com/elastic/go-elasticsearch/blob/v8.8.2/CHANGELOG.md)
- [Commits](https://github.com/elastic/go-elasticsearch/compare/v8.8.1...v8.8.2)

---
updated-dependencies:
- dependency-name: github.com/elastic/go-elasticsearch/v8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump cloud.google.com/go/storage from 1.30.1 to 1.31.0

Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.30.1 to 1.31.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/pubsub/v1.30.1...pubsub/v1.31.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Bump golang.org/x/mod in /integrations/kube-agent-updater

Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/mod/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump golang.org/x/net from 0.11.0 to 0.12.0 in /api

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/net/compare/v0.11.0...v0.12.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 golang.org/x/mod from 0.11.0 to 0.12.0 in /build.assets/tooling

Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/mod/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* go mod tidy

* revert attestation and tpm updates

* fix: make grpc

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Ross <tim.ross@goteleport.com>
2023-07-05 21:15:42 +00:00
Paul Gottschling c5ced551eb
Edit forScopes configurations and edit guides (#28443)
* Edit forScopes configurations and edit guides

Closes #26500

This change requires merging gravitational/docs#326 to add a Team scope
to the docs.

This updates pages within the docs so that:

- Each page's `forScopes` configuration is accurate, especially with
  regard to support for Teleport Team.
- All scoped components match the `forScopes` configuration for each
  page. For this, I used the linter introduced by
  gravitational/docs#327.

* Respond to alexfornuto feedback
2023-07-05 20:58:08 +00:00
Alexander Klizhentas 1687b2cc12
Update assist docs (#28595)
* Update assist docs

* Update AI Assist documentation for multiple hosts

The AI Assist documentation was updated to clarify the configuration process for both Proxy and Auth Service hosts.

* Apply suggestions from code review

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

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2023-07-05 20:13:57 +00:00
Gus Luxton 8abbea6fec
tsh: Implement puttyconfig command to add saved PuTTY sessions to Windows registry (#19316)
* tsh: Implement puttyconfig command to add saved PuTTY sessions to Windows registry

* Addressed comments from code review

* Add support for leaf clusters

* Refactoring from code review

Also moved registry/hostname functions into external packages

* Address more feedback from code review

* Rebase following tsh/common changes

* Fix up putty_config_windows

* Reorder command

* Remove surplus comment

* Use a separate list instead of overloading the 'extra' key

* Address Tim's code review comments

* Address some of Zac's comments

* Refactor formatLocalCommandString to use text/template

* Refactor non-Windows logic into puttyhosts

* Fix subcommand name

* Fix test structure

* Add some more hostnames test cases

* Apply suggestions from code review

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

* Fix up

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-07-05 17:53:46 +00:00
Steven Martin 99d82593ed
docs: openssh updates (#28438)
* docs: openssh updates

* instructions update

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>

* update language and variables

* verbiage update

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

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
2023-07-05 17:39:53 +00:00
Alan Parra 02a5f11127
Make dependabot ignore go-tpm updates (#28691) 2023-07-05 17:39:03 +00:00
Ryan Clark c1efc0409e
[Assist] Clear the refresh websocket timeout when closing Assist (#28610)
* Clear the refresh websocket timeout when closing Assist

* Missing semicolon to please prettier

* Add comment to remove once the new session implementation is done
2023-07-05 17:11:03 +00:00
Roman Tkachenko 98ff66f3e7
Teleport discover RFD (#13440)
* Teleport discover RFD

* Updates

* Updated Day 1 experience

* Apply suggestions from code review

Co-authored-by: Isaiah Becker-Mayer <isaiah@goteleport.com>
Co-authored-by: Xin Ding <xin@goteleport.com>

---------

Co-authored-by: Xin Ding <xin@goteleport.com>
Co-authored-by: Isaiah Becker-Mayer <isaiah@goteleport.com>
2023-07-05 16:59:27 +00:00
Noah Stride 30f78a69b4
Fix Machine ID guide index and adjust FAQ (#28633) 2023-07-05 16:31:12 +00:00
Yassine Bounekhla d5b27b0398
update eref (#28654) 2023-07-05 16:20:13 +00:00
rosstimothy 119dc7a3a3
Reduce login latency (#28499)
Reuse the root cluster auth client during the login process
to reduce latency.

Closes #26712.
Partially addresses #26712.
2023-07-05 15:51:56 +00:00
Marco André Dinis 15d3564382
Rename database_labels to db_labels (#28649) 2023-07-05 15:48:47 +00:00
Steven Martin 89bbe26426
docs: edits to the headless webauthn guide (#24328)
* docs: edits to the headless webauthn guide

* lint fix

* lint fix

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>

* fix language

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2023-07-05 15:43:39 +00:00
public-renovate-gha[bot] e6d8f2bc49
Update RDP Client (#28587)
Co-authored-by: public-renovate-gha[bot] <135069952+public-renovate-gha[bot]@users.noreply.github.com>
2023-07-05 15:04:59 +00:00
Rafał Cieślak 6547a0150f
lib/teleterm: Remove misleading error log after LocalAgent.GetKey (#28662)
* lib/teleterm: Remove misleading error log after LocalAgent.GetKey

* Remove unnecesarry check
2023-07-05 12:05:53 +00:00
STeve (Xin) Huang 2cba82cb33
tsh db connect should prefer mongosh (#28539) 2023-07-04 19:47:30 +00:00
Steven Martin 18389d5b1c
docs: correct docker installation table (#28604) 2023-07-04 16:02:05 +00:00
Yassine Bounekhla b2cd70c865
add docs for idp-initiated sso for grafana (#28058) 2023-07-04 15:41:34 +00:00
Marco André Dinis 37243f8fa4
Script to configure IAM for the DeployService (#28436)
* Script to configure IAM for the DeployService

* use any instead of interface{}

* fix test typo
2023-07-04 15:10:00 +00:00
Gabriel Corado a62b109b87
Move database validation to gRPC methods (#28619)
* refactor: move database validation to grpc

* test(local): update CRUD databases test
2023-07-04 13:39:17 +00:00
Edoardo Spadolini a1f8f06405
update e ref (#28630) 2023-07-04 08:14:58 +00:00
Lisa Kim 31b66f0922
WebDiscover: Partially implement auto deploy database server view (#27924)
* Add new endpoint, types, update types

* Preserve user selected aws rds db

* Rename DownloadScript to ManualDeploy

- Remove duplicate test
- Use discover context instead of passed in props
- Rename util to common
- Move hasMatchingLabels to common.tsx for re-use

* Add another action button and pass autoFocus field

* Implement auto deploy screen

* Implement auto manual view toggler

* Update db view config

* Only allow back on user trait if user manually deployed agent

* Add TODO comment

* Address CRs

* Fix lint/test

* Address CRs

* Revert back to original flow

* Define type for service deploy method

* Address CR and revert a change

- aws field for database has to be empty if the
  result comes back empty. this field determines
  if the database is hosted by aws
- add a clarifying comment

* Remove optional rds field
2023-07-04 03:39:38 +00:00
Michael Wilson 679749eaa1
Update e ref. (#28614)
Update the e reference to take in the Okta applications to group mapping
fix.
2023-07-03 20:53:36 +00:00
Lisa Kim adabe847d5
Add custom component prop type for react-select (#28596)
* Add custom select comp type for react-select

* use tsdoc comment style
2023-07-03 20:07:34 +00:00
Gavin Frazar 4b8567068f
improve startup with empty db or discovery config (#28552)
* log a warning when db/discovery service init is skipped but the service is enabled
* dont register discovery service event mapping when init is skipped to avoid log spam waiting on DiscoveryReady event
* fix godoc for DiscoveryReady event
2023-07-03 19:39:38 +00:00
Logan Davis 9bc3c7afff
Athena Migration Script: Add additional migration options (#28560)
* Add additional function

* Update examples/dynamoathenamigration/migration.go

Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com>

---------

Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com>
2023-07-03 18:07:43 +00:00
Michelle Bergquist 79754a325d
set onboarding survey on user preferences (#28530) 2023-07-03 17:43:06 +00:00
public-renovate-gha[bot] 10653fde60
Update module google.golang.org/protobuf to v1.31.0 (#28590)
Co-authored-by: public-renovate-gha[bot] <135069952+public-renovate-gha[bot]@users.noreply.github.com>
2023-07-03 17:21:56 +00:00
Jakub Nyckowski c29765b7d4
Add t.Parallel() to several tsh tests (#28470)
Added the `t.Parallel()` function call in each test function to enable parallel test execution. This should reduce the overall time it takes to run all these tests by enabling them to run concurrently.
2023-07-03 16:51:42 +00:00
Michael Wilson 22d72d3bc5
Introduce the Access List object. (#28385)
* Introduce the Access List object.

The Access List object, which is the foundational object for access grants,
has been introduced. Due to the size/complexity of this object, the
implementation in api/types will come in a follow up.

* Use duration, update comments.

* Remove more requested membership bits, clarify what happens for user login state.

* Add in duration type mapping to buf-gogo.gen.yaml.

* Use an array instead of csv string.

* Migrate from legacy to regular protobuf.

* Make common resource header and metadata for use by non-legacy objects.

* Use repeated trait list instead of map for traits, remove V1 suffix since things are in a v1 package anyway.

* Move common bits into separate files.

* Use separate packages for traits, resource header, and metadata.
2023-07-03 16:50:20 +00:00