Commit graph

15336 commits

Author SHA1 Message Date
Alan Parra e19bfee841
Drop MFARequired TODO (#33418)
* Drop MFARequired TODO

* Update generated protos
2023-10-12 21:21:26 +00:00
Lisa Kim b0b2e552e9
Web: add identity management nav section (#33409) 2023-10-12 21:10:13 +00:00
Michael 51721c4e65
Use searchAsRoles in unified requests (#33314) 2023-10-12 20:41:29 +00:00
Yassine Bounekhla 82a0e8fb54
add security group picker to deployservice step (#32885) 2023-10-12 20:21:37 +00:00
dependabot[bot] 639d5d5216
Bump golang.org/x/net in /examples/access-plugin-minimal (#33345)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.8.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 20:19:56 +00:00
dependabot[bot] 874c9a060e
Bump golang.org/x/net from 0.8.0 to 0.17.0 in /examples/api-sync-roles (#33343)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.8.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 20:05:45 +00:00
dependabot[bot] ca7174a4bc
Bump golang.org/x/net in /examples/service-discovery-api-client (#33342)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.8.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 19:54:14 +00:00
dependabot[bot] 6ef35ed620
Bump golang.org/x/net from 0.7.0 to 0.17.0 in /examples/go-client (#33341)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.7.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.7.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 19:54:10 +00:00
Alan Parra 13d326e1eb
Move lib/client MFA issuance to GenerateUserCerts (#33305)
* Update ClusterClient to use GenerateUserCerts

* Refactor performMFACeremony into a plain func

* Move IssueUserCertsWithMFA to performMFACeremony

* Address linter issues, handle errors
2023-10-12 19:25:21 +00:00
dependabot[bot] 26bceaf766
Bump golang.org/x/net in /examples/desktop-registration (#33346)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.7.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.7.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 19:22:21 +00:00
Michael ab0e1d24de
Add resource pinning to Unified Resource cards (#32980)
* parent b905eaf472
author Michael Myers <michael.myers@goteleport.com> 1694885352 -0500
committer Michael Myers <michael.myers@goteleport.com> 1696979801 -0500
gpgsig -----BEGIN PGP SIGNATURE-----

 iQGzBAABCAAdFiEETMffNTGCRZBrrPo/svAculE8l1QFAmUl21kACgkQsvAculE8
 l1Qn3wwAjHFOvII2t68vDH4HD93nX3vxSDED9DLgjjFSCjklKTuWVC9Vxb+vO4kL
 XrbZxQiEN/Q10Z5DSXB1scn6SP2kgk9Ae2TMfZJskTMd9hLhZJVuhwzAW4/brj9t
 3zIW4k7uBQF2sCGN7aG8+sSuNl43lacaJDN550MuGZwagRrgXXNDyNUdn7AzULVX
 PcMyKrcp5kuN+uWIRb7z1ZJR+s4m1wyI1MoX8ikUrBdWwk6bTFFXM3TvxFCtNb2j
 8+ILDFWJ6HZ0k9Sx2ExQAbN9M76BQcWqE06BhuLQ9UTUIbw0pmk2j/DjlaOlZhjF
 LlHEjM8se3rO7Gqy5Kj1lPs6j3AIwUqfhEwE9pWRl10P1oCxv47MHhs9jfZFkihl
 yWUm7ey1Un36wl46F3/POdT4Fzf0PwavCRogcMIUo5J6xqKM47C3jY8szjympeJW
 lp7g0nvNhvgbGE0kW2FZQFmuQfZdGtiZ6gVPeIER9cKwJYWtiEOURqd6/R99j+q8
 29I8CwLA
 =qgBc
 -----END PGP SIGNATURE-----
Add pinned resources to the web UI

* Fix merge conflict

* Add abort controller

* Use local abort controller

* Fix lint and stories

* Show loading cards on cluster preferences attempt

* Replace clusterPrefs with useCallbacks

* Add pinning disabled state

* Fix lint

* Remove unneeded useCallback

* Remove not_supported flag if prefs exist in cache

* Show pinned resources error if not supported
2023-10-12 19:07:37 +00:00
STeve (Xin) Huang 103dd6e7b5
Fix an issue tsh fails to connect Proxy behind TLS-terminated loadbalancer in separate port mode (#33374) 2023-10-12 18:33:15 +00:00
lsgunn-teleport 891356e5d6
docs: Add timing for automatic agent updates to the cloud FAQ (#33177)
* Add agent updates follow the cluster upgrade to the FAQ

* Revise maintenance window start time topic

* Edit the upgrade topics

* Modify auto update information for cluster services and agents

* Fix link to agent update enrollment

* Revise cluster and agent Upgrade > Update FAQs

* Fix update typo
2023-10-12 18:19:48 +00:00
lsgunn-teleport 33b2ae621c
docs: Reorganize and revise moderated sessions (#32420)
* Get revision for moderated sessions into the 15.x directory

* Add backticks and < > around mode

* Add keywords

* Fix typo

* remove extraneous line

* Update connect your client with changes related to moderated sessions

* updates from Zac's review

* fix typo

* fix typo

* You can only require session moderation using Enterprise editions

* Clarify the Teleport Enterprise requirement

* Add paragraph about role mapping and moderated sessions

* updates from Paul's review

* updates from Paul's review-2

* Replace caveat about join_sessions/deny rules
2023-10-12 18:11:38 +00:00
lsgunn-teleport 10939c465c
Add Docker to Slack access request plugin (#33330) 2023-10-12 17:56:51 +00:00
lsgunn-teleport 29268d3da2
Add Docker to Mattermost plugin (#33328) 2023-10-12 17:56:28 +00:00
lsgunn-teleport 7e3738bac2
Add Docker to MSFT teams plugin (#33326) 2023-10-12 17:55:52 +00:00
lsgunn-teleport b55703cfaa
Fix a couple of typos and reword scenario descriptions (#33318) 2023-10-12 17:55:24 +00:00
STeve (Xin) Huang c48753b624
[docs] clarify RDS/Aurora databases getting modified (#33312) 2023-10-12 17:48:03 +00:00
Lisa Kim 74bb29878b
Fix access list audit log formatting (#33344)
* Fix access list audit log formatting

* Address CR
2023-10-12 17:45:04 +00:00
Lisa Kim c53dc1d081
Web: Add notification store (#32970)
* Add notification bell to top bar

Also fixes topbar.test act warnings (even though tests passed)

* Add attention dot to navigation switcher

* Add attention dot to navigation item

* Create store notification and enable it

* Address review

- Made store notification type more generic
- Drop opactiy styling for top bar drop downs
- Use assertUnreachable in switch cases

* Address CR

* Fix import path and rename file

* Leave a TODO comment
2023-10-12 17:41:21 +00:00
Tiago Silva 4e6a760773
Prevent double registration of Kubernetes GVK for older Kube clusters (#33253)
* Prevent double registration of Kubernetes GVK for older Kube clusters

Older Kubernetes clusters might have types that live outside of default
Kubernetes types but are registered using different APIs. When Teleport
starts, it tries to pull the resources from the cluster and panics
because a certain type is already registered.

This PR adds a check that prevents double registration.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* add unit test to check for panic

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2023-10-12 17:38:27 +00:00
Marco André Dinis 44ca3463d2
DiscoveryConfig: WebAPI CRUD (#32591)
* DiscoveryConfig: WebAPI CRUD

* split test into subtests
2023-10-12 17:36:33 +00:00
Brian Joerger 8015b4c3e2
Add pcscd install instructions for hardware key support (#33187)
* Add pcscd install instructions for hardware key support.

* Expand smart card driver information.

* Fix typo and spell check.
2023-10-12 17:35:34 +00:00
Steven Martin a586a2f2d9
docs: update macos app remove command to delete dir (#33365) 2023-10-12 15:15:23 +00:00
dependabot[bot] 0b9dece13a
Bump golang.org/x/net from 0.16.0 to 0.17.0 in /assets/backport (#33339)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 15:12:59 +00:00
Alex McGrath dcb2f13af4
Wait for nodes to be availble in disconnection tests (#33298) 2023-10-12 13:17:38 +00:00
dependabot[bot] ca146072cd
Bump golang.org/x/net in /integrations/kube-agent-updater (#33338)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 12:55:30 +00:00
dependabot[bot] b68f6a6492
Bump golang.org/x/net from 0.16.0 to 0.17.0 in /build.assets/tooling (#33340)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 12:55:19 +00:00
Tobiasz Heller 8d99cd16e4
external_cloud_audit: add resource layer (#32833) 2023-10-12 10:26:58 +00:00
Brian Joerger 4d094a7743
Remove deprecate function; update e ref. (#32275) 2023-10-12 00:31:46 +00:00
Michael Wilson 82522acfb0
Allow access requests to use user login state. (#33317)
Access requests are now able to use the user login state as opposed to just
the static user definition. This will allow access lists to influence who can
review access requests.
2023-10-11 22:02:49 +00:00
Zac Bergquist 3afd112bb7
docs: mention support for multiple AD domains (#33273)
This documents the changes in #33218
2023-10-11 20:41:30 +00:00
Brian Joerger b7dbf85f52
Revert private key policy error handling in WebUI (Redo) (#33237)
* Revert private key policy error handling in WebUI.

* Update e ref.
2023-10-11 19:44:35 +00:00
Michael Wilson d43fe953ec
Remove access lists and members from the cache. (#33308)
The access lists and members have been removed from the cache. There's not
a lot of value having them in there and they create some uncomfortable
questions since members are dependent on access lists and the cache isn't
designed for dependent operations like this. By removing them we avoid a
lot of pain here.
2023-10-11 18:56:40 +00:00
Zac Bergquist f6e8c65b18
Refactor desktop audit event emission (#33189)
Our methods for emitting audit events take 10 arguments already,
and we need to add more as part of the work in #30417. To make
this more manageable, create an auditor struct that will hold on
to state that is shared for all audit events in a session (ID,
user identity, the desktop we're connecting to, etc.)

As a result, the "audit cache" for directory sharing events is
also simplified - we now create one of these per-session rather
than maintaining one large cache for all sessions.
2023-10-11 18:28:28 +00:00
Jakub Nyckowski b4a7ee8760
Update Docker images to ghcr.io/gravitational/teleport-buildbox:teleport15 (#33302)
This commit updates all the Docker images from ghcr.io/gravitational/teleport-buildbox:teleport14 to ghcr.io/gravitational/teleport-buildbox:teleport15 in multiple workflow files.
2023-10-11 16:14:18 +00:00
Andrew LeFevre b1a2444061
fix useless type assertion in session recorder test (#33267) 2023-10-11 14:59:42 +00:00
Marco André Dinis de3a0cc5fd
DiscoveryConfig: init service and add resource to tctl (#32399)
* DiscoveryConfig: init service and add it to `tctl`

This PR starts the DiscoveryConfig service in gRPC server and allows
`tctl` to interact with those records.

It also adds access to the `editor` role.
Users should be able to RW any DiscoveryConfig.

DiscoveryService should be able to watch those resources, so that it can
act upon any changes.

* add revision

* add upsert method

* improve tctl -f command
2023-10-11 10:24:05 +00:00
Tobiasz Heller 435e7d4f44
external cloud audit proto (#33022) 2023-10-11 09:03:21 +00:00
Brian Joerger a36d4d1e34
Configure custom PIV slot for hardware key support (#31732)
* Update RFD.

* Add custom PIV slot logic.

* Add custom piv slot to cluster auth preference.

* Fix error handling of parsing private key policy errors.

* Add new PIVSlot string type.
2023-10-11 01:36:22 +00:00
Lisa Kim 040f25b010
Update e (#33279) 2023-10-11 01:01:46 +00:00
Michael cea7a603ae
Properly check for SAMLIdPServiceProvider access (#33190)
* Properly check for SAMLIdPServiceProvider access

* Remove unneeded debug log
2023-10-11 00:22:04 +00:00
Michael b905eaf472
Add PinnedResources to ListUnifiedResources Request (#32077) 2023-10-10 22:48:25 +00:00
Andrew Burke 4f497c8134
Fix function reference from e (#33271) 2023-10-10 22:24:47 +00:00
Zac Bergquist d30c5fa646
Allow for Windows PKI operations to target a different domain (#33218)
Today, our AD support largely assumes there is a single active directory
domain. The certificates that we generate are for users in this domain,
the computers we discover via LDAP come from this domain, and the PKI
set up we perform targets this domain.

In more complicated AD configurations, PKI is often configured in a root
domain, while users, servers, and discovery should be done against a
child domain.

The new pki_domain configuration field will allow you to override the
default domain specified in the ldap section with a root domain that is
used for configuring the NTAuth store and publishing the CRL. Teleport
continues to do discovery and issue certificates for the domain
specified in the ldap section of the config.
2023-10-10 22:22:47 +00:00
Alan Parra f7d74eeee2
chore: Bump google.golang.org/grpc to v1.58.3 (#33263)
Update due to recent security patches.

* https://github.com/grpc/grpc-go/releases/tag/v1.58.3
2023-10-10 22:10:02 +00:00
Bernard Kim 27fae1a28a
Add support for deploy service agent auto updates (#31982)
* Add support for ecs agent auto updates

* fix unit test

* Remove unused var

* Addres feedback

* Use list of available AWS database regions

* Run update task on proxy instances

* Revert GenerateAWSOIDCToken

* Move const to start of file

* Address feedback

* Create separate DeployServiceUpdater struct

* Address feedback

- Perform updates in parallel
- Add additional logging
- Add additional documentation

* debug

* Address feedback

- Check OwnershipTags
- Use semaphore pkg
- Release semaphore lease on success

* Make OwnershipTags explicitly required

* Add cluster alert

* Fix typo and update message

* Revert cluster alert

* Update err messages

* Check minimum compatible server version

* Update log msg
2023-10-10 22:00:09 +00:00
lsgunn-teleport 3ac955a30b
Add Docker to email plugin (#33239) 2023-10-10 21:42:29 +00:00
Mike Jensen ff2f72766a
utils.RecursiveChown: Fix for Privilege Escalation due to following symlinks (#33244)
* utils.RecursiveChown: Harden against user access race conditions

Prior to this change a user could exploit Teleports privileged access to `chown` arbitrary files on the system.

This is due to the directory being changed first, allowing a small time window where a user can remove or rename the still `root` owned files with a symlink.  The added tests help show this issue in a more controlled way.

A switch to `os.Lchown` avoids the risk in following symlinks to files.  In addition, in order to remove the risk for hardlinks (notably on OSX with reduced hardlink protections), as well as risks with directory symlinks, the folder structure is inspected before any `chown` operation.  And then the files are updated before their parent directories.

* Update other instances of `os.Chown` to `os.Lchown`

None of these cases should expect a symlink that would need to be followed.
2023-10-10 21:32:19 +00:00