Commit Graph
22161 Commits
Author SHA1 Message Date
Brian Joerger 78c19bd65c feat: Hardware Key Agent - Add hardwarekey.Service interface with adapted PIV implementation (#53674)
* Add hardware key service interface; Add mock service for tests.

* Add piv implementation of hardware key service.

* Remove old yubikey parsing logic in favor of hardwarekey.PrivateKeyRef.

* Remove HardwareSigner in favor of hardwarekey.PrivateKey.

* Add test; Cleanup comment; Don't require pin/touch prompts in tests with MockHarwdareKeyService by default.

* Fix tests.

* Add TODOs.

* Use unhashed digest for WarmupHardwareKey.

* Address comments.

* Fix race condition in test service.

* Address comments.
2025-04-09 22:14:19 +00:00
Gavin Frazar 6b16584c58 Add health check config to cache (#53879) 2025-04-09 22:10:41 +00:00
Lisa Kim ad4575553e Web: create list db_server endpoint (#53780)
* Web: add list db_server endpoint

* Web: process list db_server responses
2025-04-09 21:58:12 +00:00
Nic Klaassen 26906bb085 fix flaky TestMarshalAndParseKey (#53882) 2025-04-09 21:44:38 +00:00
David Boslee 100aaabe85 auth: prevent cnc agent connection count updates on cloud (#53858) 2025-04-09 20:37:42 +00:00
Sakshyam Shah 7e9519928e mention Teleport SAML IdP in Identity Center guide next steps (#53779) 2025-04-09 20:02:48 +00:00
Steven Martin 3bae25839a docs: update git clone for terraform starter (#53825)
* docs: update git clone for terraform starter

* docs: change -b to --branch in git clone

* docs:update --branch usage in git clone
2025-04-09 19:38:43 +00:00
Zac Bergquist f0d4675675 Update gravitational/license (#53571) 2025-04-09 19:16:21 +00:00
Erik Tate 07319db029 adding proxy_protocol_allow_downgrade flag to proxy configurations that downgrades IPv6 source addresses to pseudo IPv4 addresses rather than bailing on connections (#51632) 2025-04-09 19:11:36 +00:00
Gavin Frazar fb9eb52fb6 Add tctl support for health check config resources (#53745) 2025-04-09 18:03:38 +00:00
Noah Stride ee6e527eaf WMI: Allow max TTL for X509 and JWT SVIDs to be configured (#53787)
* Add maximum_ttl fields to the WorkloadIdentity resource

* Update issuer service to respect configurable max TTLs

* Add tests for TTL specification

* Add validation logic & tests

* Update terraform provider

* Fix tbot max ttl limitations

* Clarify name of `ignoreMaximumTTL`

* Introduce `defaultTTL` constant

* Fix generation of jwt

* Update operator resources
2025-04-09 17:28:51 +00:00
Marco Dinis 10fb24adee Docs: fix links to Azure portal (#53789) 2025-04-09 16:37:28 +00:00
Grzegorz Zdunek 525f675714 Update e (#53855) 2025-04-09 15:45:41 +00:00
Michelle Bergquist 6bbeb1dab6 Omit unresolved tasks on resource if empty (#53834) 2025-04-09 15:16:45 +00:00
rosstimothy 1f6cd45387 Add benchmark tests to capture init cost (#53637)
https://github.com/gravitational/teleport/issues/53050 was a result
of some expensive initialization that ended up impacting end users.
Existing benchmark tests did not cover this because they do not
actually launch the entire teleport binary.

The cost can be observed via `inittrace`, though it is documented
that the output is not stable and may be changed at any time.

```
GODEBUG='inittrace=1' ./releases/17.4.1/teleport version 2>&1 | rg '^init' | awk '{print $5 " ms " $2}' | sort -n -r | head -10
170 ms github.com/go-mysql-org/go-mysql/server
2.6 ms github.com/microsoft/go-mssqldb/internal/cp
2.6 ms github.com/goccy/go-json/internal/decoder
2.2 ms cloud.google.com/go/compute/apiv1/computepb
2.0 ms github.com/aws/aws-sdk-go/aws/endpoints
1.8 ms k8s.io/client-go/kubernetes/scheme
1.2 ms github.com/gravitational/teleport/lib/kube/proxy
1.2 ms github.com/gogo/protobuf/types
0.78 ms k8s.io/kubectl/pkg/scheme
0.73 ms github.com/gravitational/teleport/lib/kube/proxy/testing/kube_server
```

In order to cover in a stable way, new tests were added to the tool
package of each binary. The tests does one basic thing, re-execute
the test binary and exits. The re-execution is required to account
for any initialization costs that would otherwise be missed since
they happen prior to TestMain being called.
2025-04-09 15:11:39 +00:00
Erik Tate 2afda8c587 moving session recording file operations behind their own interface (#53702) 2025-04-09 14:25:04 +00:00
Noah Stride 47ec6d7222 Operator support for WorkloadIdentity resource (#53484)
* Generate CRDs

* Update snapshots

* Add apis impl for WorkloadIdentity

* Add WorkloadIdentityReconciler

* Add test for WorkloadIdentityReconciler

* Update RBAC

* Update to include version in kind

* Fix license header

* Fix handling of well-known Struct type

* Ignore revsiion
2025-04-09 14:18:31 +00:00
Michael a41ca41c62 Allow cloud to update access graph settings (#53800) 2025-04-09 13:55:18 +00:00
Steven MartinandPaul Gottschling 2cd85f96d4 docs: update shrinking guidance for k8s upgrade (#53851)
* docs: update shrinking guidance for k8s upgrade

* docs: update auth service instance refs

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

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2025-04-09 13:24:21 +00:00
Tiago Silva 338e67fa49 [netiq] add entitlements field to NetIQResourceAssignmentRef (#53705)
This PR expands `NetIQResourceAssignmentRef` message to include the
`entitlements` to carry information about how a particular role/resource
is mapped into other IdPs.

Each entitlement contains information about name and specially the
`value` field where the information is carried.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2025-04-09 09:40:48 +00:00
Bartosz Leper 71fe1adb1c An endpoint that returns a single role (#53770) 2025-04-09 08:18:06 +00:00
teleport-post-release-automation[bot] 1509493028 [auto] Update AMI IDs for 17.4.3 (#53841)
Co-authored-by: teleport-post-release-automation[bot] <128860004+teleport-post-release-automation[bot]@users.noreply.github.com>
2025-04-09 03:21:02 +00:00
rosstimothy 62420de688 Refactor kube test helpers (#53647)
Moves and duplicates Kubernetes test helpers to keep testing code
out of production binaries. Two of the most extensive init operations
in v17 stem from `lib/kube/testing/kube_server`.

```
$ GODEBUG='inittrace=1' ./releases/17.4.1/teleport version 2>&1 | rg '^init' | awk '{print $5 " ms " $2}' | sort -nr | head -5
0.93 ms github.com/gravitational/teleport/lib/kube/proxy
0.69 ms github.com/gravitational/teleport/lib/kube/proxy/testing/kube_server
0.24 ms github.com/gravitational/teleport/gen/go/eventschema
0.20 ms github.com/gravitational/teleport/lib/config
0.18 ms github.com/gravitational/teleport/api/types/externalauditstorage

$ GODEBUG='inittrace=1' ./releases/17.4.1/teleport version 2>&1 | rg '^init' | awk '{print $8 " bytes " $2}' | sort -nr | head -5
623960 bytes github.com/gravitational/teleport/lib/kube/proxy
555896 bytes github.com/gravitational/teleport/lib/kube/proxy/testing/kube_server
404008 bytes github.com/gravitational/teleport/gen/go/eventschema
402208 bytes github.com/gravitational/teleport/api/types/externalauditstorage
348112 bytes github.com/gravitational/teleport/api/utils/aws

```

To remove this package from the teleport dependency tree, testing
utilities were moved into _test.go files, and some test harness
code was duplicated between lib/kube/grpc and lib/kube/proxy.

Resulting in a difference of

```
$ GODEBUG='inittrace=1' ./build/teleport version 2>&1 | rg '^init' | awk '{print $5 " ms " $2}' | sort -nr | head -5
0.94 ms github.com/gravitational/teleport/lib/kube/proxy
0.25 ms github.com/gravitational/teleport/lib/config
0.21 ms github.com/gravitational/teleport/api/types/externalauditstorage
0.20 ms github.com/gravitational/teleport/api/utils/aws
0.15 ms github.com/gravitational/teleport/api/types/events

$ GODEBUG='inittrace=1' ./build/teleport version 2>&1 | rg '^init' | awk '{print $8 " bytes " $2}' | sort -nr | head -5
558944 bytes github.com/gravitational/teleport/lib/kube/proxy
402208 bytes github.com/gravitational/teleport/api/types/externalauditstorage
357184 bytes github.com/gravitational/teleport/api/gen/proto/go/teleport/integration/v1
348112 bytes github.com/gravitational/teleport/api/utils/aws
344896 bytes github.com/gravitational/teleport/api/types/events
```
2025-04-09 00:14:08 +00:00
Stephen Levine c12b32aa0d Remove beta wording for MUv2 (#53833) 2025-04-08 23:05:40 +00:00
Gavin Frazar 1ae6e6988f Add event stream parser for health check config (#53555) 2025-04-08 21:23:24 +00:00
fheinecke 666e60e40a Fix dependency review workflow (#53815)
Signed-off-by: Fred Heinecke <fred.heinecke@goteleport.com>
2025-04-08 19:12:18 +00:00
Maxim 944f6825da [web] Add hooks for ResizeObserver / element size (#52616)
* feat: Add `useResizeObserver` & `useElementSize` hooks

* test: Add tests for `useResizeObserver`/`useElementSize` hooks
2025-04-08 17:58:27 +00:00
Andrew Burke 1563f87db1 Add session details for agentless sftp sessions (#53360)
This change updates SFTP to emit sftp and sftp_summary events
for sessions on agentless nodes.
2025-04-08 17:36:10 +00:00
Lisa Kim d528034981 Web: move info guide related components into the shared directory (#53679)
* Move info guide context provider to shared directory

* Move sliding panel/info guide related components to shared directory
2025-04-08 16:55:24 +00:00
Edoardo Spadolini 83e6b13e83 Avoid losing events at the end of a shard (#53795) 2025-04-08 16:36:29 +00:00
Matt Smith 317a4d45e3 Update docs with new ingress IPs for apse2 (#53771)
* Update docs with new ingress IPs for apse2

* Update changelog
2025-04-08 15:54:22 +00:00
Edoardo Spadolini 190241b0d2 Avoid throttling on dynamodb DescribeStream (#53790)
* Wait a full second between refreshShards calls

* Wait 200ms between DescribeStream calls
2025-04-08 15:36:57 +00:00
Sakshyam Shah 5afa67e8cf add Microsoft Entra ID SAML service provider preset (#53676)
* add microsoft-entra-id saml service provider preset

* run make fix-imports

* add t.Helper() in getFirstNameID func
2025-04-08 15:18:24 +00:00
dependabot[bot] ca732ae1ae Bump tokio from 1.43.0 to 1.43.1 (#53782)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.43.0 to 1.43.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.43.0...tokio-1.43.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.43.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 13:47:15 +00:00
Pawel Kopiczko 75507d66ec Okta: Align sync settings methods (#53763)
So the same interface can be used for PluginOktaSyncSettings, CreateIntegrationRequest and
UpdateIntegration request for checking scopes.
2025-04-08 10:54:22 +00:00
Zac Bergquist fa5128cdfb Migrate lib/player tests to testing/synctest (#53744)
These tests have been flaky because clockwork's BlockUntil functionality
isn't capable of blocking until the code is waiting on a timer.

The synctest package introduced in Go 1.24 doesn't suffer from this
limitation and allows us to reliably wait for the code to be blocked
on the timer's channel.

This package is experimental only available to the compiler when
the GOEXPERIMENT=synctest environment variable is set. For this reason,
the tests are hidden behind a build flag to prevent `go test` invocations
from failing for devs who haven't set the env var. The makefile does
set the variable, so `make test-go` _will_ execute the test (both
locally and in CI).

Closes #43559
Closes #40842
2025-04-08 03:46:58 +00:00
Gavin Frazar b0564dcc39 Add health check config gRPC service (#53554) 2025-04-08 01:12:18 +00:00
Ryan Clark c39f004306 Update users page to use TanStack query (#53470)
* Update some methods in the user page to use TanStack query

* Update Storybook to allow non-localhost domains

* Update to match new hook name, fix issue when creating users

* Pass MFA response through to create user call

* Set queries and mutations to always use the network
2025-04-08 01:05:33 +00:00
325693810a Update fedramp.mdx with v17 migration instructions (#53489)
* Update fedramp.mdx with v17 migration instructions

based on multiple customer issues, adding instructions about a required CA rotation as of v17 with our new sig algo changes

* Update fedramp.mdx

spelling fix

* Update docs/pages/admin-guides/access-controls/compliance-frameworks/fedramp.mdx

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

* Update fedramp.mdx

update flow based on feedback

* Update fedramp.mdx

move link and add missing word

* Update docs/pages/admin-guides/access-controls/compliance-frameworks/fedramp.mdx

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

* Update fedramp.mdx

remove compliant from description

* Update docs/pages/admin-guides/access-controls/compliance-frameworks/fedramp.mdx

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>
2025-04-07 23:38:37 +00:00
Stephen Levine 362fce8c3d [teleport-update] Add local updater metadata (#53602)
* add metadata

* newline

* cleanup status error

* refactor status error

* fix print

* order

* fix test on linux

* Truncate time to ms

* add host param to request

* jitter locally

* rename host to id

* rename func var
2025-04-07 22:05:56 +00:00
Steven MartinandPaul Gottschling 21a6755f99 docs: update warning on data dir on daemon guide (#52912)
* docs: update warning on data dir on daemon guide

* docs: update wording on data dir default in daemon guide

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

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2025-04-07 21:33:29 +00:00
Nic Klaassen 6d77f84113 docs: edits to CA rotation docs (#52600)
This PR includes a few edits I made while reviewing our current CA
rotation docs that I think should improve accuracy and clarity
(somewhat).
2025-04-07 21:11:51 +00:00
Brian Joerger 58f71101d8 feat: Hardware Key Agent - Add api/utils/keys/hardwarekey package (#53671)
* Move hardware key files into new hardwarekey package.

* Tidy up PIVSlot logic and remove its piv-go dependency.

* Add godoc comments to cliPrompt methods; Update cliprompt.go license year.

* Add godocs.
2025-04-07 19:31:11 +00:00
Andrew Burkeandjoerger b4b79e3928 Enable SSO MFA for headless (#53741)
This change adds support for SSO MFA in headless mode.

Co-authored-by: joerger <bjoerger@goteleport.com>
2025-04-07 19:26:21 +00:00
Matt Smith 82ef2fab6f Temporarily force pass tflint (#53600)
* Temporarily force pass tflint

* Use flag instead of config file

* Ignore problematic module

* Fix loading issues and ignore modules

* Newline
2025-04-07 18:18:13 +00:00
Bartosz Leper cceea91fa0 Remember current standard editor tab (#53644)
* Remember current standard editor tab

* review
2025-04-07 17:36:25 +00:00
Stephen Levine de1092c250 set cmc to mon-thu (#53734) 2025-04-07 16:18:27 +00:00
Stephen Levine dfc84521de Clarify compatibility contract between Managed Updates v1 and v2 in docs (#53733)
* Update Managed Updates v2

* Agent Managed Updates v1
2025-04-07 16:17:09 +00:00
Bartosz Leper b796c9d533 Use checkboxes for resource permissions (verbs) (#53635)
* Use checkboxes for resource permissions (verbs)

As a prerequisite, the set of valid verbs is dynamically computed based
on the resource kinds picked for a given admin rule.

This change also narrows down the scope of compatible roles to those
that don't specify verbs that are irrelevant for a given set of resource
kinds.

Also turns action types supported by `useStandardModel()` into enums.
This makes it easier to navigate and refactor the code.

* review

* review
2025-04-07 16:09:23 +00:00
1d812b0779 Workload ID: Document the Systemd attestor and Unix improvements (#52875)
* Document the Systemd workload attestor

* Document the `binary_path` and `binary_hash` attribute

* Replace period with colon

Co-authored-by: Noah Stride <noah.stride@goteleport.com>

* Add "dbus" to the linter's known words

* Better grammar

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

* Remove extraneous newlines in list

---------

Co-authored-by: Noah Stride <noah.stride@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2025-04-07 14:02:33 +00:00