Commit Graph
26849 Commits
Author SHA1 Message Date
Ryan Clark 59d065e511 e2e: Add a login test, remove auth setup from report, better error reporting (#67259)
* Add a dedicated login e2e test

* Remove authenticated setup tests from summary

* Change Roles assertion to a header assertion

* pnpm format

* Avoid collisions during report merging

* Use global setup to avoid authentication tests appearing in report

* Add browser name back to auth state file

* Make the default export nicer

* Surface non-test errors and fix stat tally in runner report

* Generate auth state via global setup for browse/codegen

* Report flaky test details and name failing tests

* Persist trace attachments for --test-results

* Make signup test retry-safe and tolerate login rate limit

* pnpm format

* Skip global setup when there are no bootstrapped users

* Make darktheme test retry-safe and tolerate login rate limit
2026-05-29 17:47:23 +00:00
Angel Dionisio 1fb1af39d1 use HTTPS for vault.centos.org baseurl in centos7 buildbox (#67264)
* use HTTPS for vault.centos.org baseurl in centos7 buildbox

* use HTTPS for vault.centos.org baseurl in centos7 assets buildbox
2026-05-29 17:20:45 +00:00
Nibras Ohin 58e91dc62e feat: updated side panel to be expanded for beams (#66603)
* feat: updated side panel to be expanded for beams

* chore: updating tests to make it more readable as par suggestion

* chore: updated to use userpreference state to validate expand state

* chore: removed dead code definining unused nav categories

* chore: refactor nav item ordering logic for better readability

* chore: udpated default sticky mode value instead of updating user pref
2026-05-29 16:54:16 +00:00
Lion Chen ce7d2f5787 Add User Display Helpers to the API User Type (#67100)
* Add GetDisplay helper to API user type

* refactor: Simplify display retrieval functions in user_display.go

* refactor: Enhance user display retrieval logic with structured sources

* refactor: Replace firstNonEmptyValueDifferentFromUsername with cmp.Or for improved value handling

* refactor: Add first name and last name traits
2026-05-29 16:32:17 +00:00
Evan Freed d17abba37e [18.8.2] Bump cloud docs (#66449)
* [18.7.6] Bump cloud docs

bump cloud docs

* bump to 18.8.0

bump

* Update docs/config.json
2026-05-29 16:09:49 +00:00
rosstimothy 58126ad723 Remove lib/client as a dependency of lib/config (#67257)
Relocates client.ParseLabelSpec to lib/utils/parse. This results in
a net 5MB reduction in the weight of lib/config. This may not
have a correlation in binary size since lib/client is heavily consumed
by other packages.

```bash
$ goda cut './lib/config:all' | rg '^github.com/gravitational/teleport/lib/client\b|^ID'
github.com/gravitational/teleport/lib/client   InDegree=1   Cut.PackageCount=75   Cut.AllFiles.Size=5.3MB   Cut.Go.Lines=129512
```
2026-05-29 15:42:50 +00:00
Grzegorz Zdunek 664500608b Connect: Improve error message for pre-v17 clusters that may not advertise tools version (#67256)
* Connect: Improve error message for pre-v17 clusters that may not advertise tools version

* Drop `advertised an empty tools version`
2026-05-29 15:25:57 +00:00
Zac BergquistandDawid Hanak 2bccbac90b Add SCard Security Status & CCC Handling (#66604)
Signed-off-by: Zac Bergquist <[email protected]>
Co-authored-by: Dawid Hanak <[email protected]>
2026-05-29 14:33:09 +00:00
Alex Carrithers 3b2b7d1882 tctl: document existing format flags (#67163) 2026-05-29 13:48:14 +00:00
Grzegorz Zdunek 8c15be1f1a Properly escape resource names in predicate expressions (#67227) 2026-05-29 13:38:48 +00:00
rosstimothy 45a427eedc Rework scopes feature flags (#67073)
Replace the functions in the scopes package to infer if scoped features
are enabled with a concrete struct that is injected to consumers. This
permits tests to toggle scopes features without having to specify environment
variables.
2026-05-29 13:37:25 +00:00
Maja Cieślak 5e0f7be25d Bring back single Dependabot group for UI updates (#67060) 2026-05-29 10:02:39 +00:00
Marco Dinis e995ce4d2f Docs: Add support for enrolling uniform Azure VM Scale Sets (#66754) 2026-05-29 09:20:05 +00:00
Trent Clarke 8de08c41f1 Reject empty challenges in devicetrust (#67102)
As an empty challenge is never legal, this patch tightens the `devicetrust`
signer and verifier to explicitly reject them.

Changelog: Tightened signature handling in Device Trust
2026-05-29 07:11:52 +00:00
Lisa Kim 75dcd29b72 Web: misc updates (#66310)
* Support selectively rendering check icon for resources

* Support smaller tabs

* Add optional left content to FilterPanel

* Update resource items story

* Address review
2026-05-28 23:04:17 +00:00
Ghassan Gedeon Achi 47bfc60239 feat: add detection get command to tctl (#66888)
Adds the `tctl detections get` command that allows you to retrieve the
details of a security alert from Access Graph.
2026-05-28 21:58:12 +00:00
Ghassan Gedeon Achi 23c42032f7 feat(tctl): add detections ls for Access Graph (#66885)
Adds the first user-facing Access Graph tctl command, listing security
detections with filters and a time window.

Talks to Access Graph through the web proxy and relies on the backend's typed
501/credential errors (see access-graph#1998) instead of a pre-emptive
features.json probe, so the CLI stays stateless.
2026-05-28 21:04:32 +00:00
Michelle Bergquist e7eccdea71 Add environment profile to Cloud Cluster Updates doc (#66876) 2026-05-28 20:35:19 +00:00
Yassine Bounekhla c28001c8c9 Add web_terminal_copy_mode role option (#66597)
* add web terminal copy mode role option

* CR
2026-05-28 19:58:49 +00:00
Ghassan Gedeon Achi c316bba716 feat: add shared utils for tctl accessgraph cmds (#66863)
This PR adds some shared helpers that will be used by upcoming tctl
access graph based commands such as `tctl detections ls | get`
2026-05-28 19:57:31 +00:00
Erik Tate 68b0b974e9 Adding missing validations when creating scoped join tokens (#66977)
* adding scoped token validations

* using strong validation when using token
2026-05-28 19:49:10 +00:00
Brian Joerger bac3c70e6a Fix cleanup in session setup failure path (#64649)
* Add test for session setup failure paths.

* Fix session cleanup in failure paths.

* Fix lint.

* Fix exec party not added to session.

* Use defered close.

* Drop enterprise test modules.

* Use InDelta to avoid InEpsilon hack.
2026-05-28 18:40:18 +00:00
Travis LaDuke 0394d3e4a5 UI interaction events protos (#66372)
* Add ui interaction event protos

* make grpc

* Add userEventService method

* Fix signature

* Fix username field

it would have been logging the hash of ""
2026-05-28 18:36:15 +00:00
Brian Joerger 96449be834 Use session params in non-interactive sessions (#64400)
* Use session params in regular session.

* Add regression test.
2026-05-28 17:59:09 +00:00
Carson Anderson 81517e6f42 service: use GracefulExitContext on event waiting (#67146)
It was observed in cloud that proxies will hang on deletion if they lose
connection to auth prior to being terminated. This will cause pods to
hang until the termination grace period is hit which can be quite long
in some cases. Testing this in cloud allowed disconnected proxies to
exit quickly when terminated.
2026-05-28 17:46:33 +00:00
Ghassan Gedeon Achi 5f6d0caf15 Add access graph client and response helpers to tctl (#66724)
* feat: access graph client and helpers

* fix: validate non-nil json success response

* lint: fix go lint ci errors

* fix: address PR review comments

* fix: improvements based on pr suggestions
2026-05-28 17:28:27 +00:00
Tyler Richardson 587641f80f Add secondary index for Kubernetes server lookup by cluster name (#67103)
Adds a new function, RangeKubernetesServersWithName, to the cache and
presence APIs that returns an iterator over Kubernetes servers
matching a given cluster name.

Replaces the full scan in IsMFARequiredRequest_KubernetesCluster, which
fetched all Kubernetes servers and filtered in-memory, with a range scan
over a secondary index keyed by cluster name.
2026-05-28 17:09:45 +00:00
Marco Dinis 38be341492 Fix TestDiscoveryServerEKS flaky test (#66905) 2026-05-28 16:42:17 +00:00
Forrest 87f8a28487 scoped agent pins (#66590) 2026-05-28 15:48:36 +00:00
Bernard Kim 6c23ad9a69 Remove unused terraform reference doc (#67145) 2026-05-28 15:43:59 +00:00
Alex Carrithers 59b1d9f7be Sanitize AWS federation transport errors (#66753)
* Sanitize AWS federation transport errors

* Rename AWS federation redaction helper and tighten test assertions
2026-05-28 15:29:43 +00:00
Grzegorz Zdunek 3f14f042ab Connect: do not crash tsh daemon if user preferences update is nil (#66899)
* Fix `userpreferences.Update` panic on nil request

* Recover from panic in gRPC middleware, add logging for stream handlers

* Use `trace.Errorf` to log stack trace, skip logging the actual panic

* Make panic recovery interceptor the last interceptor

* Replace incorrect `require.Errorf` usage with `require.ErrorContains`

* Use grpc getters instead of direct field access
2026-05-28 15:20:48 +00:00
Marco Dinis 495f821467 Add support for filtering by Organizational Units in IAM Join (implementation) (#66242)
* Allow IAM Join by specific Organizational Units

* fix for account not found scenario

* move checks to write paths instead of checkandsetdefaults

* fix cache
2026-05-28 15:18:10 +00:00
Grzegorz Zdunek 8c6f09e439 Connect: harden osascripts (#67176)
* Harden osascripts for installing/removing tsh

* Harden osascript for VNet setup
2026-05-28 15:06:44 +00:00
rosstimothy 3f03489943 Inject build type into teleportassets.DistrolessImage (#66693)
This is purely mechanical change to inject the build type as a
depency instead of relying on modules.GetModules().BuildType().

In addition to contributing to https://github.com/gravitational/teleport/issues/62799
this also serves as a prerequisite to future work that will provide
a user supplied build type that is not based on the modules to
retrieve the correct image.
2026-05-28 14:17:34 +00:00
rosstimothy e82eceb456 Make resolved access requests immutable (#66736)
Prevent access requests in APPROVED, DENIED, or PROMOTED states from
being updated through SetAccessRequestState, including same-state
updates that could otherwise mutate resolution metadata.
2026-05-28 14:11:41 +00:00
Steven Martin 520546d031 Update doc urls in teleport-cluster helm chart (#67113) 2026-05-28 11:27:26 +00:00
Noah Stride 12573ca413 bump e (#67185) 2026-05-28 11:12:06 +00:00
Pawel Kopiczko 06caf3c8ff Docs: Promote OIN form beta (#67124) 2026-05-28 10:46:44 +00:00
Tiago SilvaandZac Bergquist 3048bc3e36 fix(aws-sync): fix data race and wrong fallback in EC2 fetcher (#67135)
* fix(aws-sync): fix data race and wrong fallback in EC2 fetcher

Fix two bugs in the Access Graph AWS sync EC2 fetcher:

1. Data race in fetchAWSEC2Instances: goroutines were appending directly
   to the shared `hosts` slice instead of accumulating into a per-goroutine
   `lHosts` local slice and flushing it through the mutex-protected
   collectHosts helper. This caused a data race when multiple regions were
   fetched concurrently.

2. Incorrect fallback in fetchInstanceProfiles: on a pagination error the
   function was returning append(profiles, existing...), mixing partial
   new results with the previous sync's data. The correct behaviour is to
   return only the previous sync's profiles unchanged.

Add tests covering both cases with multiple regions, verifiable with -race.

Fixes https://github.com/gravitational/pressure-washing/issues/265
Fixes https://github.com/gravitational/pressure-washing/issues/186

Signed-off-by: Tiago Silva <[email protected]>

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <[email protected]>

---------

Signed-off-by: Tiago Silva <[email protected]>
Co-authored-by: Zac Bergquist <[email protected]>
2026-05-28 10:29:18 +00:00
Trevor North d664314511 Fix link to docs in terraform provider readme (#66804) 2026-05-28 09:55:16 +00:00
Trevor North e3b48b3698 Resolve LegacyKeyValueFormat warning for build container (#66788) 2026-05-28 09:36:34 +00:00
Trevor North f40f5bfa91 Add ephemeral build config to git ignore (#66789) 2026-05-28 09:36:24 +00:00
Grzegorz Zdunek 44940fca6e Connect: Avoid falling back to system CA in tshd gRPC server when cert cannot be read (#67038)
* Avoid falling back to system CA when cert cannot be read

* Add test

* Fix flaky test

* Ensure cert is trusted by verifier

* Add explicit comment for non-nil `ClientCAs`
2026-05-28 08:52:15 +00:00
Grzegorz Zdunek 564779cdc0 Update pnpm to 11.3, Node.js to 24.16, electron to 42.2, electron-builder to 26.11.1 (#66516)
* Apply `pnpx codemod run pnpm-v10-to-v11`

* Remove `eslint` hoisting, it's in the root package.json anyway

* `pnpm install`

* Bump Node.js to 24.15

* Bump pnpm to 11.1.1

* Update pnpm to 11.3.0

* Update `electron` to 42.2.0, `electron-builder` to 26.11.1

* Update `node-abi` to 4.31.0

* Override `yauzl` to workaround Electron not being installed on Node.js 24.16

* Update Node.js to 24.16

* Bump Playwright to 1.60.0
2026-05-28 08:11:01 +00:00
Noah Stride 1bb374784b Convert (Upsert/Delete)Proxy RPC from HTTP to gRPC (#66124)
* Convert DeleteProxy RPC from HTTP to gRPC

* Use `t.Context()`

* Add more greppable TODO

* Fix usage of deprecated rpc

* Upsert RPC

* Use wrapper message for UpsertResponse

* gofmt

* Simplify godoc

* Update response message

* Update method names on public api client

* fix tests

* Introduce UpsertProxyWithoutServer

* Edoardo comments

* separate

* Change to UpsertProxyServer RPC handler
2026-05-28 07:59:00 +00:00
Alex Carrithers 22bac96447 tctl: add YAML parity for structured output commands (#67126)
* tctl: add YAML parity for structured output commands

* Add WriteProto Go Doc comment

* Make output format flag visible in evaluate-db-access command

* Make output format flag visible in evaluate SSH command

* remove x509 override dry-run format flag

* refactor: simplify error messages for unknown output formats

* refactor: replace printJSON with utils.WriteJSON and WriteJSONArray
2026-05-28 06:26:09 +00:00
Trent Clarke 4b66b2a7a7 Tightens DMI output parser (#66992)
Fixes an off-by-one error in the `tsh dmi-read` output parser and adds tests for same.
2026-05-28 01:50:34 +00:00
Brian JoergerandErik Tate 6609076e29 Fix Enhanced Session Recording in proxy recording mode (#66918)
* Fix enhanced session recording skip in proxy recording mode.

* Update lib/srv/sess_test.go

Co-authored-by: Erik Tate <[email protected]>

---------

Co-authored-by: Erik Tate <[email protected]>
2026-05-27 23:03:30 +00:00
Steven MartinandTener f865fa0f6e docs: Update db docs (#67141)
* docs: Update db docs

* docs: Fix formatting

* docs: fix formatting

Co-authored-by: Tener <[email protected]>

---------

Co-authored-by: Tener <[email protected]>
2026-05-27 20:28:54 +00:00