Commit graph

15284 commits

Author SHA1 Message Date
Gavin Frazar e3f34a22c6
remove docs for deprecated flags (#32525) 2023-09-27 01:33:27 +00:00
lsgunn-teleport 9c1fd94f69
Remove reference to use a load balancer (#32596) 2023-09-26 22:49:24 +00:00
STeve (Xin) Huang 1ee983b8ef
Fix issue Teleport Connect Kube terminal throws internal server error (#32595)
Co-authored-by: fheinecke <23390735+fheinecke@users.noreply.github.com>
2023-09-26 22:31:09 +00:00
Paul Gottschling 9b61099dfe
Fix overflow in dropdown menu (#32386)
Closes gravitational/docs#353

One dropdown menu item within the Installation page has a label that
overflows. This change shortens the label to fix the overflow.

While another route would have been to change the CSS of the dropdown
menu, widening it would start to approach the maximum width of some
mobile devices.

In general, the Installation page is filled with interactive boxes that
make for a somewhat convoluted reading experience. A later change will
reconsider the information architecture of this page.
2023-09-26 22:14:34 +00:00
Jakub Nyckowski e13137016c
Add 'promoted' access request state (#31346)
* This change introduces a new 'promoted' access request state. The state represents that an access request has been promoted to an access list.

Affected code was modified to adjust to the new promoted state and ensure correct system's behavior.

Added a new 'GetAccessRequest' method for internal use to retrieve access request info.
Disallowed direct promotion of access requests. Introduced 'SubmitAccessReviewAllowPromotion' for promotions.
Added 'PromoteAccessRequest' method and updated its usage to restrict direct promotions.
Refactored code for better readability and testing. Renamed some functions, simplified logic, added test helpers.
Introduced 'promoted' state for access requests to handle promotion workflow.
Added 'PromotedAccessListTitle' in 'AccessReview' to track promotion state.

* Refactor function and message names for better clarity

The function and message names related to the promotion of an access request to an access list were restructured for better readability and consistency. Names like 'PromoteAccessReqResponse'  have been replaced with more descriptive names such as 'PromoteAccessRequestResponse'. This increases clarity and consistency across the project.

* Remove the hacky GRPC server implementation

* Change method names to be more descriptive

Renamed all instances of 'PromoteAccessRequest' to 'AccessRequestPromote' in multiple files. The new method name provides a more descriptive and clear understanding of the method's function, which improves code readability and maintenance. This change applies to method definitions, comments, and error messages.

* Refine error message and introduce IsPromoted method

Refined the error message in 'access_request.go' to better indicate that only promoted requests can set the promoted access list title, not just have one. This enhances clarity of error message. Additionally, introduced 'IsPromoted' method in 'access_request.go' file. This method will be useful for quickly checking if a request is in the PROMOTED state.

* Rename variable in SubmitAccessReview method

Renamed the variable "params" to "submission" in the 'SubmitAccessReview' function, in 'auth_with_roles.go' file. The name "submission" provides clearer indictation of its role in submitting access review. This enhances code readability and understandability. No logic changes were made during this update.
2023-09-26 18:46:50 +00:00
Paul Gottschling 7f5387c595
Update the supported versions table for v14 (#31321)
Also note the updated release cadence:

- We release a major version every four months.
- With our policy to support three versions, each major version is supported for
  12 months.
2023-09-26 18:08:48 +00:00
Brian Joerger 64d94666b7
Refactor PIV metadata certificate logic (#32250)
* Change PIV metadata cert to be self signed by an ephemeral key so it can be signed without touch/pin.

* Refactor touch prompt logic.

* Prompt user before overwriting non-teleport certificates instead of just returning an error.

* Update RFD and Docs.

* Address CR.

* Export some methods and variables for use in tests.

* Address comments.
2023-09-26 18:04:40 +00:00
Steven Martin 8d38a06fdd
docs: oracle guide steps (#32518) 2023-09-26 18:00:12 +00:00
Paul Gottschling 2c457b11c1
Fix install-linux.mdx (#32402)
Closes #32195

Correct some issues that were confusing or wrong:

- Move "Community Edition" to the first, default tab. Since we removed
  scopes from the docs, and "Teleport Team" was the first tab in this
  partial, it looked like Teleport Team was the intended default
  installation.  This is incorrect.
- Change the Teleport Team installation instructions to show the Cloud
  installation steps.
2023-09-26 17:59:44 +00:00
Edoardo Spadolini 0a15612b40
Simplify LockTarget.IsEmpty implementation (#32568) 2023-09-26 17:36:03 +00:00
rosstimothy e035f4dbf3
Propagate resource revision to/from the backend (#32040)
* Set revision on resources retrieved from the backend

Adds a new `MarshalOption` that ensures the resource revision is
set when unmarshalling a backend item. The new `WithRevision` option
was also applied everywhere that the legacy `WithResourceID` was
being used.

* Prevent storing resource revision in the backend item value

The revision follows the same semantics as the resource id for
marshalling. This prevents both items from showing up in the value
of the backend item, which can prevent compare and swap operations
from completing succesfully. Each backend is responsible for
persisting the revision in some manner.

The existing PreserveResourceID was reused to prevent having to
make multiple copies of a resource when clearing the id and revision.
The marshal option will be updated in a follow up when the resource
id is removed.

* Ignore revision in resource comparisons
2023-09-26 16:58:04 +00:00
Andrew Burke 042d56ec15
Fix label name mismatch (#32361) 2023-09-26 16:00:04 +00:00
STeve (Xin) Huang 8de44f04f5
Database Automatic User Provisioning support for MySQL (#31902)
* RDS MySQL auto user provisioning

* add UT

* let go code manage procedure version

* Add reporting.

* fix lint

* change hash and use prepare stmt

* check same Teleport user

* fix UT

* Compare user roles if active connections

* fix typos
2023-09-26 15:09:30 +00:00
Rafał Cieślak 562b72b72d
Make UUIDs used in test helpers less random (#32551) 2023-09-26 14:32:49 +00:00
Rafał Cieślak 6d3dd3c47d
Update copy of Connect My Computer setup & misc improvements (#32544)
* Update copy of Connect My Computer setup

* Fix setup stories by using ResourcesContextProvider

* Add alignSelf to Button

* Use Flex to specify gap instead defining margins on individual elements

* Prevent setup story from updating store on each render

Otherwise I was getting Immer errors about updating frozen objects after
updating the Setup component.
2023-09-26 14:23:52 +00:00
Marco André Dinis 20d220e2ea
DiscoveryConfig: add service and client (#32328)
This PR adds a Service and Client implementation for the DiscoveryConfig
resource.

It does not add any initialization/usage to keep the PR small.
2023-09-26 14:04:46 +00:00
Rafał Cieślak ba2b5a752f
Remove Preview from Connect title bar (#32552) 2023-09-26 14:03:00 +00:00
Tiago Silva 9a556d8ab1
Add support for Protobuf Enums into Operator CRDs (#32469)
* Add support for Protobuf Enums into Operator CRDs

This PR marks the Teleport enum fields as integer or string values. The
integer option is to ensure we are backwards compatibile with
previously installed CRDs.

Users can now represent their roles in Kubernetes custom resources and
refer enum fields as strings while their protobuf wire type is int32.

Fixes #29686

* add tests

* fix unit test
2023-09-26 13:43:50 +00:00
Alan Parra 13c283036b
Deprecate AddMFADevice and its top-level messages (#32516)
* Test registration with unusable devices

* Count devices according to cluster settings

* Use AddMFADeviceSync in test helpers

* Use AddMFADeviceSync on lib/auth tests

* Remove AddMFADeviceRequestInit from mfaAddTestOpts

* nit: Pass testing.T to lib/web.TestTerminalRequireSessionMFA funcs

* Ignore AddMFADevice usage in interceptor tests

* Deprecate AddMFADevice and its top-level messages

* Update generated protos

* Deprecate lib/client RPC wrapper

* Deprecate AddMFADevice in lib/auth.IdentityService

* Address deprecation warnings
2023-09-26 13:16:29 +00:00
Rafał Cieślak 321022f1fc
Add alignSelf to Button (#32545) 2023-09-26 13:01:10 +00:00
Michael Wilson a69f37ecaa
Add Access Review gRPC service methods and messages. (#32421)
* Add Access Review gRPC service methods and messages.

Protobuf methods and messages for Access Reviews have been added.

* removed_users to removed_members, fix up proto comment.

* Rename body to notes.

* Allow for multiple reviewers.
2023-09-26 12:57:57 +00:00
Alan Parra 93cd4891b5
fix: Let users without a useable device issue register challenges (#32428)
* Test registration with unusable devices

* Count devices according to cluster settings
2023-09-26 12:40:36 +00:00
Tobiasz Heller 32e8565495
athena: configure limits in examples (#32124) 2023-09-26 10:04:48 +00:00
Rafał Cieślak fedf790a7f
ExtendWebSession: Update roles on req.ReloadUser (#32470)
This method would already update traits if ReloadUser was passed. This
was enough when adding a new SSH node through Discover. For Connect My
Computer though, we have to refresh the role list in order to get access
to a freshly added node.
2023-09-26 08:42:25 +00:00
Reed Loden cc9343f513
Correct grammar error in PagerDuty integration notification (#32534)
s/which/who/

Fixes https://github.com/gravitational/teleport-plugins/issues/659.
2023-09-26 08:02:59 +00:00
Michael Wilson c20d5b3c40
Update devbox.lock. (#32509)
The devbox.lock has been updated to account for the most recent version of
devbox.
2023-09-26 08:02:04 +00:00
fheinecke ad059049e0
Updated Packer versions to fix tag builds (#32524)
* Updated packer version to fix tag builds

* Update packer version for enterprise builds as well.

---------

Co-authored-by: Reed Loden <reed@goteleport.com>
2023-09-26 01:38:27 +00:00
Zac Bergquist 0aa4d03098
Remove mention of reversetunnel_connected_proxies (#32512)
As far as I can tell, this metric never actually existed.

Closes #5043
2023-09-25 22:48:17 +00:00
Steven Martin dfdb4593a8
docs: add faq answer for using oss or ent release for agents (#32442)
* docs: add faq answer for using oss or ent release for agents

* rename file for spelling

* update verbiage

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

* update verbiage

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

* applied edits recommended

* update verbiage

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

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2023-09-25 22:42:05 +00:00
Alexander Klizhentas 98a36f0b4a
Update getting started (#32502) 2023-09-25 20:35:33 +00:00
Brian Joerger 1c88f9ed1b
Move lib/utils/prompt to api/utils/prompt (#32334)
* Move /lib/utils/prompt to /api/utils/prompt.

* Replace uses of lib/utils/prompt with api/utils/prompt and delete pacakge.

* go mod tidy.
2023-09-25 19:31:37 +00:00
Gus Luxton bd2afe19d6
docs: Flip Github connector examples for OSS vs Commercial (#32501)
The Github connector examples in the docs were switched around.

Trying to create a Github connector with `api_endpoint_url` or `endpoint_url` set when using Teleport Community Edition results in an error:

```
[ec2-user@teleport ~]$ sudo /usr/local/bin/tctl create -f github.yaml
ERROR: this feature requires Teleport Enterprise
```

Setting both these values to empty strings causes creation to succeed.

Reported on Slack.
2023-09-25 18:18:01 +00:00
lsgunn-teleport c2550cb922
Add new topic to the left nav (#32431) 2023-09-25 18:07:56 +00:00
Michael Wilson db04c82d06
Update e ref. (#32495)
Update the e ref to pull in access list usage events.
2023-09-25 17:50:16 +00:00
Rafał Cieślak 151682f750
Use important alert for teleterm dev setup (#32461) 2023-09-25 17:12:45 +00:00
Alexander Klizhentas 7e2cff599e
Updates README. (#32456)
Updates hero image, removes happy talk, uses new language
focusing on protection.
2023-09-25 17:01:50 +00:00
Steven Martin 6ca7e91187
docs: helm install agent updates (#32443)
* docs: db guide updates for helm

* fix namespace refs

* fix teleport-agent namespace references
2023-09-25 15:36:37 +00:00
dependabot[bot] e5edd0a1d6
Bump the go group in /api with 1 update (#32449)
Bumps the go group in /api with 1 update: [google.golang.org/grpc](https://github.com/grpc/grpc-go).

- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.58.1...v1.58.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 15:32:02 +00:00
Steven Martin f9567295d1
docs: remove v10 references (#32444)
* docs: remove v10 requirement from proxy peering doc

* remove v10 refs
2023-09-25 15:16:06 +00:00
Zac Bergquist 91b887d749
Remove gravitational/configure dependency (#32447)
This repo hasn't been updated in 7 years and is not up to our current
quality or security standards. In addition, we only leveraged a single
function from it.

Updates #5685
2023-09-25 14:56:03 +00:00
dependabot[bot] bf2e57c355
Bump the go group in /assets/aws with 2 updates (#32450)
Bumps the go group in /assets/aws with 2 updates: [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2/config` from 1.18.39 to 1.18.42
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.39...config/v1.18.42)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.118.0 to 1.120.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.118.0...service/ec2/v1.120.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 14:46:22 +00:00
dependabot[bot] 246b9fe832
Bump the go group with 9 updates (#32451)
Bumps the go group with 9 updates:

| Package | From | To |
| --- | --- | --- |
| [cloud.google.com/go/firestore](https://github.com/googleapis/google-cloud-go) | `1.12.0` | `1.13.0` |
| [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) | `1.45.11` | `1.45.15` |
| [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) | `1.18.39` | `1.18.42` |
| [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) | `1.11.83` | `1.11.86` |
| [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.118.0` | `1.120.0` |
| [github.com/aws/aws-sdk-go-v2/service/ec2instanceconnect](https://github.com/aws/aws-sdk-go-v2) | `1.16.5` | `1.17.0` |
| [github.com/aws/aws-sdk-go-v2/service/sns](https://github.com/aws/aws-sdk-go-v2) | `1.21.5` | `1.22.0` |
| [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.141.0` | `0.142.0` |
| [google.golang.org/grpc](https://github.com/grpc/grpc-go) | `1.58.1` | `1.58.2` |


Updates `cloud.google.com/go/firestore` from 1.12.0 to 1.13.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/kms/v1.12.0...kms/v1.13.0)

Updates `github.com/aws/aws-sdk-go` from 1.45.11 to 1.45.15
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.45.11...v1.45.15)

Updates `github.com/aws/aws-sdk-go-v2/config` from 1.18.39 to 1.18.42
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.39...config/v1.18.42)

Updates `github.com/aws/aws-sdk-go-v2/feature/s3/manager` from 1.11.83 to 1.11.86
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/feature/s3/manager/v1.11.83...feature/s3/manager/v1.11.86)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.118.0 to 1.120.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.118.0...service/ec2/v1.120.0)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2instanceconnect` from 1.16.5 to 1.17.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.17.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.16.5...v1.17.0)

Updates `github.com/aws/aws-sdk-go-v2/service/sns` from 1.21.5 to 1.22.0
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.22.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/efs/v1.21.5...service/s3/v1.22.0)

Updates `google.golang.org/api` from 0.141.0 to 0.142.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.141.0...v0.142.0)

Updates `google.golang.org/grpc` from 1.58.1 to 1.58.2
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.58.1...v1.58.2)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/firestore
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2instanceconnect
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sns
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 14:45:31 +00:00
Rafał Cieślak 68bacde33b
Refresh resources after Connect My Computer setup (#32381)
* Add resources context

* Refresh resources after Connect My Computer setup

* Verify useServerSideResources uses the same args on refetch

* Convert ResourceFilter comments to JSDoc
2023-09-25 14:24:20 +00:00
Michael Wilson b6a2fd4329
Prevent duplicate Access List owners. (#32422)
* Prevent duplicate Access List owners.

Duplicate access list owners are now prevented. In the event that duplicate
access list owners are currently in the backend, this commit will deduplicate
them and choose the first owner with the same name when getting the access
list to maintain backwards compatibility.

* Use map struct, run GCI.
2023-09-25 13:25:36 +00:00
Steven Martin 326902c6fd
docs: remove duplicate warning (#32441)
* docs: remove duplicate warning

* remove scopes
2023-09-25 13:09:52 +00:00
Grzegorz Zdunek 02a092b5d0
Connect My Computer: Add progress bar to the setup screen (#32312)
* Extract `ShowState` component in the setup story to minimize code duplication

* Add `ProgressBar`

* Add a sentence above the setup steps

* Automatically start setup in some stories

* Replace `wait` with Promise that never resolves

---------

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
2023-09-25 12:43:01 +00:00
Edoardo Spadolini 650e31acb2
pgbk: remove CREATE PUBLICATION (#32464) 2023-09-25 12:17:17 +00:00
Noah Stride 667a511d4c
Fix incorrect CA in Machine ID database access guide (#32370) 2023-09-25 10:02:48 +00:00
Grzegorz Zdunek 40b29c746d
compareSemVers should return 0 if values are equal (#32315) 2023-09-25 08:19:51 +00:00
Tiago Silva 76f0aa453b
Add support for gh token from Keyrings (#32378)
Previous to `gh` `v2.24.0`, GitHub auth tokens were stored in plaintext
under `~/.config/gh/hosts.yaml` but since the mentioned version, tokens
are stored in the system keyring.

- Keychain on macOS
- GNOME Keyring on Linux (Secret Service dbus interface)
- Wincred on Windows

This PR executes `gh auth token` to extract the provided token.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2023-09-25 08:03:00 +00:00