Commit graph

15499 commits

Author SHA1 Message Date
lsgunn-teleport b1eb339d1f
Replace mermaid diagram, add guided instructions, remove includes wit… (#33554)
* Replace mermaid diagram, add guided instructions, remove includes with the get context command

* Change strings to pass linter

* Update diagram text, collapse sign in steps, add Kubernetes where missing.

* Remove manual enrollment, add new next steps, modify wording around running commands

* Rename Getting Started to Enroll s Kubernetes Cluster

* Change link to registering clusters toppic
2023-10-26 18:11:50 +00:00
lsgunn-teleport 239c534a9c
Remove SSL and details UI component (#33887)
* Remove SSL and details UI component

* Remove SSL from diagram
2023-10-26 18:11:25 +00:00
Paul Gottschling 6eb7001bbc
Fix potential SEO issues (#33903)
- Fix clashing reference page titles ("Teleport CLI Reference" and
  "teleport CLI reference").
- Add missing redirects: The Teleport blog encountered 404s navigating
  to three pages. This change adds redirects for these pages in case
  other sites link to them as well.
2023-10-26 18:08:09 +00:00
rosstimothy 5b9585ab1c
Add ListUsers to the services.IdentityService (#33582)
Listing users is different from most existing list operations
because multiple resource types are stored under the users prefix.
Care was taken to ensure that these extra resources(passwords,
mfa devices, etc) do not cause lising to omit any users.
2023-10-26 15:18:22 +00:00
Paul Schisa 454bfc7280
Update Oracle DB docs and messaging (#33751)
* Update Oracle DB docs and messaging

update the docs and `tctl auth sign` instructions to call out the need to have the file permissions set to the oracle user

* Update oracle-self-hosted.mdx

* Update oracle-self-hosted.mdx

* Update docs/pages/database-access/guides/oracle-self-hosted.mdx

Co-authored-by: Marek Smoliński <marek@goteleport.com>

* Update tool/tctl/common/auth_command.go

Co-authored-by: Marek Smoliński <marek@goteleport.com>

* Update auth_command.go

---------

Co-authored-by: Marek Smoliński <marek@goteleport.com>
2023-10-25 17:48:13 +00:00
STeve (Xin) Huang 4c2dd577cb
[docs] Database Automatic User Provisioning for MariaDB and Redshift (#33888)
* [docs] Database Automatic User Provisioning for MariaDB and Redshift

* fix spelling
2023-10-25 16:46:58 +00:00
Zac Bergquist a87be85859
Add the no-changelog label to automated PRs (#33854)
These are for things like version updates in the docs and
AWS AMI IDs.
2023-10-25 15:33:35 +00:00
Rafał Cieślak 71a37bf50c
Await peristed state restoration before concluding UI initialization (#33735)
* Wait for restoring persisted state in initUi

* DocumentsReopen: Show number of open tabs and cluster name

* Move the comment for pluralize

* Log errors in AppInitializer

* Create useLogger hook

* Rename functions which initialize the app

* Don't wait for startup modals before showing UI
2023-10-25 09:05:33 +00:00
Grzegorz Zdunek 29e8d4677f
Update e (#33913) 2023-10-25 08:51:54 +00:00
rosstimothy 07abd2277e
Fix enterprise github connector marshaling (#33909)
#32653 refactored github connector marshaling so that enterprise
could call the oss marshaler instead of maintaining a copy of it
in two repos. However, the check on the EndpointURL was not omitted
in ent builds.
2023-10-25 03:01:13 +00:00
Brian Joerger 2ed1538e40
Ignore shared aws config not found error (#33651)
* Ignore shared aws config not found error.

* Move error conversion to lib/cloud/aws/errors.go
2023-10-25 01:56:46 +00:00
Gabriel Corado 860623e72a
Update docs with database user auto provisioning modes (#33819)
* docs(database-access): update create database user mode role option

* docs(database-access): review updates

* docs(database-access): review changes
2023-10-24 20:39:23 +00:00
fheinecke d9f89c12a7
Moved changelog workflow to pull_request trigger and configured concurrency (#33842) 2023-10-24 20:07:44 +00:00
Zac Bergquist 70839063c4
Add a missing trace.Wrap to first time joining errors (#33769)
Spotted this when troubleshooting a customer join issue
2023-10-24 19:25:06 +00:00
Michael b1c24743b3
Return predicate failed message in unified resource requests (#33701) 2023-10-24 19:16:42 +00:00
Brian Joerger 7b66ac7697
Fix flaky test by avoiding session recording test cleanup race condition. (#33556) 2023-10-24 18:58:51 +00:00
Paul Gottschling 3b07cb253a
Add missing redirect (#33879)
Ensure that users visiting `/docs/desktop-access/` are redirected to the
introduction page for the Desktop Access docs section.
2023-10-24 18:38:09 +00:00
teleport-post-release-automation[bot] a9c31826ed
[auto] Update AMI IDs for 14.1.1 (#33849)
Co-authored-by: GitHub <noreply@github.com>
2023-10-24 15:45:42 +00:00
Rafał Cieślak c0812909a8
Send deep link clicks to frontend app in Connect (#33690)
* Organize IPC messages into sent to & from renderer

This way it's more clear which messages are sent from the renderer and
which ones are sent to the renderer.

The channels have also been renamed to include the recipient in the
name.

* Signal frontend app init from renderer to main process

* Send deep links to frontend app

* signalFrontendAppReadiness → signalUserInterfaceReadiness

* Use enums for IPC channels

* Fix grammar in WindowsManager.dispose JSDoc

* Replace mentions of "deep link" in UI with just "link"
2023-10-24 12:14:52 +00:00
Grzegorz Zdunek db4fe9ebbb
Refactor unified resources view (#33635)
* Extract `Resources` component that doesn't use Teleport APIs

* Move shared components to the shared package

* Fix license

* Add `PinningSupport` enum and support hiding the button

* Separate resource fetching from mapping them

* Remove `WindowsDesktopService` from `UnifiedResource`

* Replace `React.JSX.Element` with `React.ReactElement`

* Pass `pinning` object to `UnifiedResources` instead of individual properties

* When pinning is hidden, do not show the tab switcher

* Hide pin tooltip when there is no content
2023-10-24 09:16:10 +00:00
Michael Wilson faac0f1577
Use slices.Contains instead of loops for DeleteRole. (#33851)
slices.Contains is used instead of loops for DeleteRole checks, which makes
the code here cleaner.
2023-10-24 01:20:08 +00:00
Tim Buckley 4c309c4cfa
Fix shared lint from Cloud (#33856)
* Fix shared lint from Cloud

We were missing a single comma which caused a linter complaint in
Cloud.

* Add prettier-ignore because the versions don't agree :(

* Also fix jest/valid-title lint

Different lint, same reason (different linter versions). This removes
a prefix eslint deemed unworthy, in a newer version than is used by
Teleport.
2023-10-24 00:43:50 +00:00
Michael cad5ecfedc
Add RFD 0148 (#32344) 2023-10-23 23:25:38 +00:00
Mike Jensen bc1395730f
Enforce body size limits for http responses (#33768)
This change enforces limits on the response size for http requests across Teleport.
The `e` reference is also being updated as the referenced commit includes similar fixes: https://github.com/gravitational/teleport.e/pull/2479
2023-10-23 22:46:44 +00:00
dependabot[bot] 121d013796
Bump the go group in /integrations/kube-agent-updater with 1 update (#33804)
Bumps the go group in /integrations/kube-agent-updater with 1 update: [k8s.io/api](https://github.com/kubernetes/api).

- [Commits](https://github.com/kubernetes/api/compare/v0.28.2...v0.28.3)

---
updated-dependencies:
- dependency-name: k8s.io/api
  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-10-23 22:38:36 +00:00
Paul Gottschling 1c72af1b93
Add hosted plugin docs (#31371)
* Add hosted Access Request plugin docs

See #29979

For the most part, the documentation for the Teleport Access Request
plugins assumes that a user is self-hosting their plugins, and contains
information for installing and configuring the plugin that is not
relevant to a user of hosted plugins.

This change edits the menu page of the Access Request plugin subsection
of the docs to add instructions for enrolling hosted Access Request
plugins. It also adds a note to the top of each guide for an Access
Request plugin with a hosted counterpart that a user can enable the
hosted version of that plugin. This anticipates a separate change to add
more detailed instructions to the hosted Access Request plugin
enrollment workflow within the Web UI.

* Update docs/pages/application-access/okta/guide.mdx

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

---------

Co-authored-by: Isaiah Becker-Mayer <isaiah@goteleport.com>
2023-10-23 21:48:11 +00:00
Paul Gottschling d68cbf0691
Fix table alignment in tctl tokens ls examples (#33654)
Fixes #32640

On two docs pages, `tctl tokens ls` examples use a built-time variable
to specify a preset token value. The pages space the values of the
example tables to anticipate the variable, not the variable's
replacement value, meaning that the tables appear incorrect on the
rendered docs site. This change fixes the spacing within the tables.
2023-10-23 21:32:35 +00:00
Paul Gottschling 8d8e85a386
Remove unused docs image (#33266) 2023-10-23 21:32:21 +00:00
Mike Jensen 3c6a2f0c0c
Disable fuzz_parser_eval_bool_predicate in oss-fuzz (#33838)
This test seems to false positive with timeouts semi-frequently.  These timeouts are not reproducible outside of oss-fuzz.
2023-10-23 21:15:32 +00:00
Anton Miniailo 8a1be0cfd5
Improve UX for headless kube proxy by giving user more time when reissuing expired certificates (#33728)
* Improve UX for headless kube proxy by giving user more time when reissuing expired certs.

* Add support for '--set-context-name' to 'tsh proxy kube'
2023-10-23 20:56:35 +00:00
STeve (Xin) Huang 8180618c30
Database Automatic User Provisioning support for MariaDB (#33018)
* User auto-provisioning support for MariaDB

* fix lint

* revoke all-in-one role on deactivation

* review comments

* MariaDB to fallback on DeleteUser

* move sql files to a folder
2023-10-23 20:03:56 +00:00
Forrest 54a05b2ca4
event fanout rework (#32978) 2023-10-23 18:59:12 +00:00
STeve (Xin) Huang 4dce835487
Database Automatic User Provisioning support for Redshift (#33307)
* Database Automatic User Provisioning support for Redshift

* capitalize sql script

* DeleteUser to fallback to deactivate.

* add TPxxx code to RAISE messages

* fix missing space in scripts
2023-10-23 18:44:38 +00:00
lsgunn-teleport 8c41503fd4
Update manual AD configuration for desktop access (#33665)
* Update manual AD configuration for desktop access

* Change wording in CA Rotation, Troubleshooting, and intro paragraph

* Remove one xref, replace hard-coded value with the variable

* Switch syntax back to powershell
2023-10-23 17:08:35 +00:00
Edward Dowling 439e5dcdca
Add suggested reviewers as assingee to servicenow incidents (#33704)
* Add suggested reviewers as assingee to servicenow incidents

* Fix suggested reviewers encoding

* Update comment for serviceno assigned_to field
2023-10-23 16:37:52 +00:00
Michael Wilson 6aa69d459b
Fix Assume Roles switch back, don't delete role if access list is using it. (#33746)
* Fix Assume Roles switch back, don't delete role if access list is using it.

When switching back to the regular user permissions after assuming roles via
an access request, Teleport will now use the user login state to ensure that
access list permissions are taken into account.

Additionally, users will not be able to delete roles if they are in use by an
access list. Finally, when refreshing the user while extending a web session,
the user login state will be regenerated and used for permissions.

* Use sentinel errors.

* Trace sentinel error values.

* Use errors.New instead.
2023-10-23 16:20:35 +00:00
dependabot[bot] 761f73740d
Bump the rust group with 2 updates (#33803)
Bumps the rust group with 2 updates: [bitflags](https://github.com/bitflags/bitflags) and [uuid](https://github.com/uuid-rs/uuid).


Updates `bitflags` from 2.4.0 to 2.4.1
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitflags/bitflags/compare/2.4.0...2.4.1)

Updates `uuid` from 1.4.1 to 1.5.0
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/1.4.1...1.5.0)

---
updated-dependencies:
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 16:06:02 +00:00
fheinecke 25c7ba6d73
Set -reviewers="${{ secrets.reviewers }}" on changelog workflow (#33787) 2023-10-23 15:36:42 +00:00
Grzegorz Zdunek a5ab44deb5
Fix the top bar going outside the window (#33752) 2023-10-23 14:55:34 +00:00
Steven Martin bdd07cb8c8
docs: update local windows getting started to include all scopes (#33789) 2023-10-23 14:41:43 +00:00
Grzegorz Zdunek 2d5e583ecc
Fix d3-color@3.1.0 breaking tests (#33809) 2023-10-23 14:18:37 +00:00
Zac Bergquist 78706e2b5b
Disambiguate directory sharing's disabled and inactive states (#33771)
Prior to this change, the UI would show "disabled" when directory
sharing is disabled due to RBAC and when it is enabled but inactive.

Closes #33748
2023-10-23 14:13:58 +00:00
Steven Martin 006a4f7ea1
docs: reword tctl instructions (#33788)
* docs: reword tctl instructions

* update as macOS instead of MacOS

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

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-10-23 13:55:57 +00:00
STeve (Xin) Huang 13a423e324
Fix an issue tsh aws ecs execute-command fails (#33705) 2023-10-23 13:05:20 +00:00
Lisa Kim 794773c35f
Web: Redirect to login upon missing session cookie (#33726)
* Web: Redirect to login upon missing session cookie

* Address CR
2023-10-23 07:14:19 +00:00
fheinecke 9f8530e8db
Added workflow to check changelog entries (#32775)
* Added workflow to check changelog entries

* Addressed PR comments
2023-10-20 22:16:51 +00:00
rosstimothy cbf8f66216
chore: import packages only once (#33782)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
Signed-off-by: Tim Ross <tim.ross@goteleport.com>
Co-authored-by: guoguangwu <guoguangwu@magic-shield.com>
2023-10-20 21:53:44 +00:00
Anton Miniailo 2f5cdf8cfc
Add audit events for headless login (#33719)
* Add audit events for headless login

* Print out error for headless login approve failure event
2023-10-20 21:13:47 +00:00
rosstimothy b236f24ffa
Enable optimistic locking support for roles (#33671)
Updates tctl edit and the web ui to use the new UpdateRole RPC
which uses optimistic locking to enforce that concurrent
modifications to a role are not possible.

A few small improvements  were also done on the github connector tests
which the role tests were based on.

Contributes to #30416.
2023-10-20 20:04:04 +00:00
Anton Miniailo d7791f6280
Add headless mode to 'tsh proxy kube' (#33297)
* Add headless mode to 'tsh proxy kube'

* Require clusters specified for headless mode

* Use cf.Stdout()

Co-authored-by: STeve (Xin) Huang <xin.huang@goteleport.com>

* Remove unneeded check.

This error will be returned from 'c.prepare()'

* Extract logic of running headless proxy into a function

* Add comment about cancel function

* Use []byte instead of strings to avoid unnecessary conversions

* Add information note for the user about shell reexec.

* Modify headless kube proxy info print out.

* Fix protos after rebase.

* Fix mismatched number of returns

---------

Co-authored-by: STeve (Xin) Huang <xin.huang@goteleport.com>
2023-10-20 19:50:44 +00:00