60 Commits
Author SHA1 Message Date
Maja Cieślak ed40e1c66d Add mobile_device.create_enroll_token permission; make boombuler/barcode a direct dep (#67863)
* Add `mobile_device` kind for `mobile_device.create_enroll_token` permission

* Update preset-roles.json

* Add `mobile_device.create_enroll_token` to user ACL

* Make boombuler/barcode a direct dep

It's used in teleport.e to generate the QR code that's going to be
consumed by the mobile app.

* Enable defaultAllowRules to return roles which need `buildType`

* Backfill device-admin role

* Add `mobile_device.create_enroll_token` to admin role
2026-06-26 15:53:20 +00:00
Ryan Clark c61782ed0e Resize RDP images in Rust instead of Go (#66696)
* Resize RDP images in Rust instead of Go

* go mod tidy all

* cargo fmt

* Add tests

* Remove unused Thumbnail()

* Change ResizeCrop() to return an error

* Avoid hard-coding the bytes per pixel

* Release resources in tests

* Clamp dimensions to at least 1x1

* Add x/image to e_imports

* Fix linting

* Fold resize options and crop bounds check into resize_crop_into

* Run cargo fetch
2026-06-08 11:00:18 +00:00
Dan Upton daccc169a5 Fix untidy SPIFFE modules (#66512) 2026-05-07 10:35:16 +00:00
rosstimothy 7691ff5a1c Remove dependency on github.com/buger/jsonparser (#65830)
The library has had a number of CVEs recently and uses shady
dependencies. https://github.com/gravitational/teleport.e/pull/8513
removed the dependency pulled in via teleport.e. This updates the
e_imports.go to reflect that change which moved buger/jsonparser to
an indirect dependency.

To remove the dependency entirely, mark3labs/mcp-go was updated to
the latest version. In that version they have replaced
github.com/invopop/jsonschema, which brough in buger/jsonparser,
with github.com/google/jsonschema-go. As a result buger/jsonparser
is no longer in our dependency tree.
2026-04-20 15:55:16 +00:00
rosstimothy 2e358b6d8c Clean up unused symbols (#64445)
* Clean up unused symbols

Update enterprise imports

* Update enterprise imports
2026-03-09 22:07:12 +00:00
Ryan Clark 2e8fdffcf9 Update OpenAI library to v3 (#61323) 2025-11-21 10:20:08 +00:00
Ryan Clark 86b1924f55 Add tiktoken to e-imports, update vt10x (#60048) 2025-11-06 08:31:00 +00:00
Bartosz Leper f3ad993adc Add support for Bedrock models to the session summarizer (#60030)
* Add support for Bedrock models to the session summarizer

- Add protocol buffers
- Add validation
- Add dependency on Bedrock SDK
- Move GenerateTestSession to the OSS code

* Tidy up the go.mod file

* Enable/disable Bedrock on the auth server level

* Add bedrockruntime to e_imports, rerun mod-tidy-all

* Add a comment to GetModules()

* Revert e/ change
2025-10-22 05:12:45 +00:00
Brian Joerger f2ddc726f2 feat: JSONPath interpolation for Login Rules (OIDC) (#56598)
* Add jsonpath parser for user attributes.

* Included unmapped claims in login rule evaluation.

* Add TestJSONPath.

* Add better error message for jsonpath errors.

* Make jsonpath return nil instead of error for non-json values.

* Pass unmapped claims to loginrule evaluation as a separate env variable.

* Remove jsonpath function from the default parser and add opts for parsers to provide custom localized express functions.

* Update comment

* Remove ExpressionParserOpts.

* Move JSONPath fn to /e.

* Remove unnecessary changes.
2025-08-05 18:41:26 +00:00
Bartosz Leper 0a645282d5 OSS layer of the session summarizer (#56551)
* Configuration resources for the session summarizer

* Review

* OSS layer of the session summarizer

- The backend service
- A stub gRPC service which communicates that the feature is only
  available in Enterprise
- e_imports statement that adds an OpenAI client that will be used by
  the enterprise build
- Necessary wiring that allows `ProtoStream` instances to notify
  listeners about upload completion; the accompanying enterprise change
  will use it for triggering summarization

* review

* review

* Rename the resources

* Rename the resources

* Review

* go mod tidy

* lint

* Add response messages

* Add return types to the gRPC server

* Split out the resources gRPC service from summarizer

* Fix CI issues

* Add some comments, fix existing ones

* Remove unnecessary e/ change

* Fix broken lint

* Replace summarizer wrapper with summarizer provider

This fixes a minor race condition, adds some missing unit tests, and
hopefully reduces confusion about the entire concept.

* Fix license and import order

* review

* Clean up tests

* Review

Move code around, switch from atomic pointer to a mutex in the
summarizer provider.

* Fix stream_test

* Review

* Narrow down the number of event types accepted by Summarizer

* Fix tests

* Review

* Review: some renamings
2025-07-28 11:22:57 +00:00
rosstimothy c1f5a17cf5 Update e ref (#56518) 2025-07-07 21:08:34 +00:00
Brian Joerger 251f88279c followup: Remove piv-go v1 (#56108)
* Update e ref.

* Remove piv-go v1.
2025-06-30 22:57:31 +00:00
Brian Joerger 8adeb860d2 Update piv-go to v2.3.0 (#55890)
* Use piv-go v2.

* Fix import.
2025-06-18 22:26:09 +00:00
Tiago Silvaandrosstimothy 8cb8a091ec [iac] add github plugin boilerplate (#54952)
* [iac] add github organization name to proto

This PR adds the github organization name to GithubConfigV1 proto
message.

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

* add github plugin type

* add secret plugin

* [iac] add github plugin boilerplate

This PR adds the boilerplate code to create the github plugin using
`tctl` and adds the required dependencies.

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

* Update e_imports.go

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

* fix lint error

---------

Signed-off-by: Tiago Silva <[email protected]>
Co-authored-by: rosstimothy <[email protected]>
2025-05-20 20:50:33 +00:00
rosstimothy 44dccd9c35 Replace graviational/go-oidc with zitadel/oidc (#54148)
OSS supporting changes for the OIDC library conversion.
2025-05-06 14:23:04 +00:00
rosstimothy 618f70a0dc Update e modules (#54154)
github.com/zitadel/oidc is needed for
https://github.com/gravitational/teleport.e/pull/6383 to pass CI.
Once teleport.e#6383 lands a follow up to this will bump the e ref
and clean up oidc dependencies.
2025-04-21 13:42:42 +00:00
Hugo Shaka c20095e9d6 Align semver libs (#52795)
* Convert autoupdate version handling to coreos/go-semver

* get the right version in installer endpoint + get rid of x/mod/semver

* depguard x/mod/semver

* Add nolint rules for existing x/mod/semver usages

* Add depguard explanation
2025-03-19 18:03:35 +00:00
rosstimothy a1467b18cd Bump gravitational/trace to 1.5.0 (#51062)
This also updates the e reference to include
https://github.com/gravitational/teleport.e/pull/5843 in order
to accomodate the upgrade.
2025-01-15 16:16:38 +00:00
Tiago Silva e1dfb942d3 [chore] remove github.com/xanzy/go-gitlab from direct depenencies (#50857)
After deprecation of `github.com/xanzy/go-gitlab` in favour of
`gitlab.com/gitlab-org/api/client-go`, this PR drops the direct
dependency from Teleport module. The dependency is still indirect
because it's imported by `cosign`. Hopefully in future versions, the
dependency will be updated and fully removed.

Signed-off-by: Tiago Silva <[email protected]>
2025-01-08 11:44:22 +00:00
Tiago Silva c07a3502a8 [chore] replace gitlab client with gitlab.com/gitlab-org/api/client-go (#50856)
Gitlab moved the golang client under its organization and deprecated
`github.com/xanzy/go-gitlab` in favour of
`gitlab.com/gitlab-org/api/client-go`. The codebase is the same and it's
a pure fork of the original client but it's now controlled by Gitlab.

Signed-off-by: Tiago Silva <[email protected]>
2025-01-08 10:20:53 +00:00
Edoardo Spadolini bcbfa8192e Get rid of math/rand in favor of math/rand/v2 (#49294)
* Get rid of math/rand in favor of math/rand/v2

* Update retryutils to use rand.N

* Update e ref
2024-11-21 12:57:32 +00:00
Sakshyam ShahandMarek Smoliński ae2c22215e new aws-sdk-go-v2 deps (#48255)
* new aws-sdk-go-v2 deps:
- github.com/aws/aws-sdk-go-v2/service/organizations
- github.com/aws/aws-sdk-go-v2/service/identitystore
- github.com/aws/aws-sdk-go-v2/service/ssoadmin

* re-do go get and go mod tidy

* group aws-sdk-go-v2 deps

* temp:update e-ref

* udpate e-imports

* e_imports.go 2

* re-re-re go mod tidy inside integrations

---------

Co-authored-by: Marek Smoliński <[email protected]>
2024-11-01 09:56:12 +00:00
rosstimothy 3fe2c3df43 Update e (#47999)
Includes https://github.com/gravitational/teleport.e/pull/5257 and
updates e_imports.go to reflect that cfssl is no longer a direct
dependency.
2024-10-28 14:14:49 +00:00
rosstimothy 63f4576ba8 Update depgaurd rules to prevent logrus from being imported in e (#47962)
The teleport.e repo was recently converted to log exclusively with
slog. In order to prevent logrus from accidentally being reintroduced
into teleport.e the logrus depguard rule was updated to include
the e repo. Additionally the e_imports.go file was updated to reflect
that logrus is no longer required.
2024-10-25 19:53:58 +00:00
Trent Clarke 802f2bca0d Adds AWS SDK dependencies for Identity Center Integration (#47786)
* Adds AWS SDK dependencies for Identity Center Integration

* Terraform mod tidy

* Event handler mod tidy

* Protect updates from `go mod tidy`

* Re-tidy integrations
2024-10-23 08:36:45 +00:00
Zac Bergquist 7a0d924f58 Remove oxy (#47499)
Closes #28474
2024-10-11 16:18:40 +00:00
Tiago Silva 73ef050467 remove github.com/mailgun/holster (#46916) 2024-10-02 18:29:01 +00:00
Alan Parra 780301089e chore: Bump google.golang.org/grpc to v1.66.3 (#47084)
* chore: Bump google.golang.org/grpc to v1.66.3

* Update e_imports.go

* Tidy modules again
2024-10-02 14:44:29 +00:00
Justinas Stankevičius 9caf780714 Remove MS Graph SDK dependency (#44344)
* Remove MS Graph SDK dependency

* Add msgraph-sdk-go to depguard deny list

* Tidy secondary go modules
2024-07-18 14:30:23 +00:00
Justinas Stankevičius 5a22d66e2e Entra ID reconciler: directory reconciler prerequisites (#40778)
* Add Entra ID resource origin

* Ignore ID and Revision from `header` in cmp

* Add e_imports for MS Graph SDK
2024-05-02 16:47:29 +00:00
Justinas Stankevičius 68886bb8ef Entra ID integration boilerplate (#40998)
* Add e imports for MS Graph SDK

* Add ability to sign Entra ID OIDC JWTs, rework KID handling

- Synthesize Key IDs for our JWT keys. For backwards compatibility, also
  include the same keys with an empty `kid` in JWKS.
- Sign AWS OIDC tokens with a `kid=""` header claim,
  rather than omitting the `kid` claim altogether.
  See comment for details.

* Add validation for Entra ID plugin

* Fix typo in assertion function name

* Update the OIDC JWKS test to expect the same key twice

* Add Entra ID plugin type constant

* go mod tidy

* Fix expected JWKS size in integration test

* Add basic tests for KeyID

* Move Azure auth settings from Plugin to Integration

* Address review comments

* Add a unit test to ensure KeyID compatibility

* Add license header to token_generator.go

* Rename validation function per new conventions
2024-05-02 13:44:32 +00:00
Tiago Silva d2f2a5dde0 Add Gitlab client go.mod entry (#40716)
This PR adds the Gitlab client to `go.mod` and `e_imports.go` file.

Signed-off-by: Tiago Silva <[email protected]>
2024-04-24 08:39:46 +00:00
Edoardo Spadolini 540d523261 Migrate to connectrpc.com/connect (#38377) 2024-02-19 09:54:51 +00:00
Trent Clarke f4791f6176 SCIM Dependencies (#37408)
* SCIM Dependencies

Adds new external packages required by SCIM in Enterprise Teleport

* mod tidy

* even more tidy

* Linter appeasement
2024-01-29 14:14:43 +00:00
Zac Bergquist fb370b484f Update e ref (#36462) 2024-01-09 19:45:59 +00:00
Zac BergquistandEdoardo Spadolini 0caca686e7 Update cloudflare/cfssl in order to fix enterprise builds (#36439)
* Update cloudflare/cfssl in order to fix enterprise builds

We now depend on cloudflare/cfssl transitively via
gravitational/license. The cfssl repo itself has a dependency on
zmap/zlint, which is outdated and doesn't build on newer versions
of Go:

    # github.com/zmap/zlint/util
    ../../../go/pkg/mod/github.com/zmap/[email protected]/util/encodings.go:38:24: cannot use atv.Type (variable of type "github.com/zmap/zcrypto/encoding/asn1".ObjectIdentifier) as "encoding/asn1".ObjectIdentifier value in argument to IsNameAttribute
    ../../../go/pkg/mod/github.com/zmap/[email protected]/util/oid.go:136:16: cannot use v.Type (variable of type "github.com/zmap/zcrypto/encoding/asn1".ObjectIdentifier) as "encoding/asn1".ObjectIdentifier value in argument to oid.Equal

The fix is to upgrade cfssl to a version that uses a newer version of
zlint. Cloud team resolved a similar issue in the past:
https://github.com/gravitational/cloud/pull/3805#discussion_r1143909550

* fix2

* deps update

This also includes e_imports from gravitational/teleport.e#3114

* gci

* new tag for e_imports, tpmsimulator

---------

Co-authored-by: Edoardo Spadolini <[email protected]>
2024-01-09 16:09:34 +00:00
Zac Bergquist 44a6bb1933 Use pkg slices from the standard library (#35905)
Prefer the stdlib version of the experimental package.
Includes a depguard update to prevent future regressions,
as well as an e-ref update to appease depguard.

Generated with:

    $ gofmt -w -r '"golang.org/x/exp/slices" -> "slices"' . && \
        make fix-imports
2023-12-19 23:06:53 +00:00
fheinecke b178b8b732 Updated Teleport codebase to AGPL3 license (#35259)
Signed-off-by: Fred Heinecke <[email protected]>
2023-12-01 17:48:14 +00:00
Marek Smoliński 2484750450 Audit Log Oracle settings (#29566) 2023-08-21 12:33:12 +00:00
Grzegorz Zdunek 9d05287cc9 Update kingpin & allow autocompletion (#26238)
* Update kingpin version

* Convert `defaultUsageTemplate` to "text/template"

* Add // replaced

* Sort deps

* Change kingpin v2.3.1 to v2.3.2

* Add missing indirect dep

* Update go.sum

* Delete kingpin_deleteme.go
2023-05-19 07:10:53 +00:00
Noah Stride fbe7b8f7bf Proto and Go module changes for Windows TPM support (#26325)
* Proto and Go module changes for Windows TPM support

* Obligatory `go mod tidy` && `make fix-imports`

* Godocs for proto conversion methods

* Move dependencies to main indirect block

* Handle nil more gracefully
2023-05-16 09:59:59 +00:00
matheus 0697011eaa Add events to cta clicks (#25325)
* (wip) add unlock feature button to support page

* Fix typo

* (wip) add locked feature join session

* Improve session join style

* Add session join lock button

* Remove hover on locked join menu

* Update copy

* Only show `join as...` when appropriate

* (wip)

* Make ButtonLockedFeature theme sensitive

* Remove debug stuff

* Adjust feature button height

* Fix session join button on locked

* Remove unused import

* typo

* Add link to cta button

* Remove teams flag

* Add cta service

* Update snapshots

* Lock button style

* Add cta to context

* Rename cta to ctaService

* Stories and tests

* Add comments clarifying that ctas are not used currently

* add showActiveSessionsCTA to useSessions

* Licenses

* Lint license

* Remove commented out code

* Add missing types

* Replace cta service for an object with cta on context

* Fix menu hack

* small refactor in styled stuff

* Update SessionJoinBtn to use master code

* Snapshot update

* Add events to cta clicks

* rebase

* revert e ref update

* Revert e change

* Update proto message to start at 1

* Use enum from proto files instead of rewriting

* Improve comments on usageevents.proto cta enum

* Fix import

* Fix type errs

* Add comments

* Rename CtaEvents > CtaEvent

* Copy the CtaEvent enum instead of importing from proto

* Add back blank line

* Fix import order

* Update proto files

* Add TODO comment
2023-05-05 18:53:02 +00:00
Edoardo Spadolini 12f6161089 Tweak e_imports, tidy go.mod and go.sum (#24533) 2023-04-13 19:57:00 +00:00
Gavin Frazar f3591f8e6c add golang.org/x/time/rate dep (#24498) 2023-04-13 14:09:28 +00:00
Edoardo Spadolini 851cb6598e Fix package names for v1 protos, misc proto changes (#24183)
* Delete teleterm's ptyHost/v1, added by mistake

* Add package name to protos conforming to PACKAGE_VERSION_SUFFIX

* use go run in buf-connect-go.gen.yaml directly

* Run protogen in place

* Run the buf-go generation off of go run

This also adds protoc-gen-go-grpc to go.mod
2023-04-06 22:53:31 +00:00
Justinas Stankevičius cc4c0b924b Bump e ref, remove dependency on teleport-plugins (#23498) 2023-03-29 10:24:56 +00:00
Michael Wilson b347501b69 Add Okta client import for Okta service. (#23338)
The Okta client import has been added for the Okta service.
2023-03-22 14:07:35 +00:00
Justinas Stankevičius c056efe974 Hosted plugins: add plugin management UI prerequisites (#22831)
* Add GetType() to Plugin

* Add Plugins feature flag to web

* Run prettier

* Update e_imports.go with slack plugin subpackage

Respective enterprise changes imports a new subpackage,
which pulls new dependencies.
2023-03-14 12:44:22 +00:00
Zac Bergquist 2ae9d770fc Refactor tctl's dependencies (#22693)
* Move configuration from lib/service to lib/service/servicecfg

The new servicecfg package will hold only configuration for services.
This will allow other packages (like tctl and tsh) to depend on
servicecfg without pulling in all of lib/service (which has a number
of platform-specific details).

This is the first step towards being able to build tctl for Windows.

* Move PAM and BPF config into servicecfg

This breaks a compile-time dependency on BPF/PAM for tctl.
2023-03-09 17:48:36 +00:00
Joel 59ba7a5ae6 Add github.com/google/go-attestation/attest to e imports (#22336)
* add github.com/google/go-attestation/attest to e imports

* reset

* addp

* tidy

* fix it

* fix path

* fmt
2023-02-27 20:10:53 +00:00