Commit graph

13424 commits

Author SHA1 Message Date
Noah Stride f4a4ae6f41
Add prometheus endpoint to tbot (#27394) 2023-06-05 23:19:58 +00:00
Forrest 2ec7490283
loadtesting automation improvements (#25366)
* move existing loadtest assets

* new loadtest automation helpers

* ignore sourcing uncovered files
2023-06-05 23:11:56 +00:00
Michael Wilson e5ba338cea
Document new Okta import rule regexes. (#27396)
* Document new Okta import rule regexes.

Okta import rules now support regex matching for label application.

* Use a better word for the example regex.
2023-06-05 22:33:34 +00:00
Alan Parra 5316027d21
chore: Bump golangci-lint to v1.53.2 (#27381)
Update to latest patch.
2023-06-05 21:37:48 +00:00
Jakub Nyckowski a3b793e23f
Add Assist to the access role (#27413)
* Add Assist to the access role

Per our latest conversation, we want to add Teleport Assist access to everyone with the built-in access role.

* Fixed test
2023-06-05 21:20:53 +00:00
Tiago Silva 828271eeea
Update RFD 9 - Locking (#27398)
This PR updates the RFD 9 to include the most recent supported lock
types.
2023-06-05 20:28:35 +00:00
Brian Joerger 8660dac4f4
Propagate proxy public addr in Web UI ssh session. (#27058) 2023-06-05 20:25:32 +00:00
Lisa Kim 8b994fcec0
WebDiscover: Check for RDS length before setting a limit for listing DBs (#27194)
* Fix bug: Check for fetched rds results before determining limit for fetching db servers

* Address crs
2023-06-05 18:56:08 +00:00
rosstimothy 8442a4d74a
Update github.com/gravitational/predicate to v1.3.1 (#27390)
`v1.3.1` contains performance improvements that help address
https://github.com/gravitational/teleport/issues/27228.
2023-06-05 18:48:58 +00:00
Steven Martin 66c4a77cee
Adds info on exporting requirements for impersonated certs (#22066)
* Adds info on exporting requirements for impersonated certs

* Update note on certificate

* language

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

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2023-06-05 17:45:58 +00:00
Jeff Anderson d61be73e53
Add Minimum TLS version (#25277) 2023-06-05 17:42:09 +00:00
Paul Gottschling 491bb0ab7c
Edit the docs test plan (#27200)
* Edit the docs test plan

Add an item to remove version warnings for versions we no longer
support. Currently, we remove these version warnings as we encounter
them. This change makes this task a regular, predictable step when
releasing a new major Teleport version.

* Respond to stevenGravy feedback
2023-06-05 17:40:44 +00:00
Paul Gottschling 5a61eb3d0a
RFD 0130: Autogenerate the Teleport Resource Reference (#27191)
* RFD: auto-generate the `tctl` resource reference

* Partial response to codingllama feedback

* Partially respond to feedback

- Be more specific about expectations around struct tags
- Propose replacing struct field names in field descriptions with the
  user-facing field name
- Use comments instead of separate files for example YAML
- Be more explicit about the scope of the RFD (it applies to resources
  applied via `tctl`)
- Use a Go map for the generator configuration
- Indicate that this Make target will depend on `make grpc`.
- Add a second Eng reviewer
- Propose making running the generator part of our release procedure

* Propose including all Teleport resources

And excluding user-configured resources

* Give this an RFD number

* Apply suggestions from code review

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

* Fix RFD number clash

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-06-05 17:11:01 +00:00
dependabot[bot] 02996ef1b9
Bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3 in /api (#27331)
* Bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3 in /api

Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.2...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Go mod tidy with root

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Jensen <jentfoo@users.noreply.github.com>
Co-authored-by: Mike Jensen <mike.jensen@goteleport.com>
2023-06-05 17:10:19 +00:00
Tiago Silva f2a9311f4d
Extend host lock enforcement to other built in roles besides Node (#27018)
This PR extends Teleport support for applying `tctl lock
--server-id=<host_id>` for other builtin roles besides `RoleNode`.

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-06-05 17:08:18 +00:00
Lisa Kim 9f8214867a
Update e ref (#27387) 2023-06-05 16:24:09 +00:00
Alan Parra f6d8d49f31
chore: Bump Buf to v1.20.0 (#27267)
Keep up with latest releases.

https://github.com/bufbuild/buf/releases/tag/v1.20.0
2023-06-05 16:20:12 +00:00
dependabot[bot] 7e7d1f7fcf
Bump cloud.google.com/go/iam from 1.0.1 to 1.1.0 (#27335)
Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 1.0.1 to 1.1.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/iam/v1.0.1...dlp/v1.1.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/iam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-05 16:19:43 +00:00
dependabot[bot] db074b8e04
Bump github.com/stretchr/testify in /build.assets/tooling (#27340)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-05 16:19:27 +00:00
Lisa Kim c01fafeac0
Create api handler specifically for FormData (#27178) 2023-06-05 15:37:27 +00:00
Mike Jensen a7f94ca097
tncon: Remove unused return variables (#27278)
This was originally recommended in this PR: https://github.com/gravitational/teleport/pull/27184/files#r1212402781

In addition there is some potential for this value to overflow (notably on a 32 bit system).  Although it is not used, it is safest to just remove this return value.
2023-06-05 15:15:33 +00:00
dependabot[bot] 65149de7ce
Bump github.com/aws/aws-sdk-go-v2/service/glue from 1.49.0 to 1.50.0 (#27336)
Bumps [github.com/aws/aws-sdk-go-v2/service/glue](https://github.com/aws/aws-sdk-go-v2) from 1.49.0 to 1.50.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.49.0...service/ec2/v1.50.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/glue
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-05 15:07:49 +00:00
dependabot[bot] d4b4631689
Bump github.com/googleapis/gax-go/v2 from 2.9.1 to 2.10.0 (#27337)
* Bump github.com/googleapis/gax-go/v2 from 2.9.1 to 2.10.0

Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.9.1 to 2.10.0.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.9.1...v2.10.0)

---
updated-dependencies:
- dependency-name: github.com/googleapis/gax-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove extra require block

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Jensen <mike.jensen@goteleport.com>
2023-06-05 15:07:38 +00:00
dependabot[bot] c68574a229
Bump github.com/stretchr/testify in /integrations/kube-agent-updater (#27348)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-05 15:04:19 +00:00
Gus Luxton 6967846c1a
docs: Formatting/grammar fixes for TLS routing (#27310)
* docs: Formatting/grammar fixes for TLS routing

* Update tls-routing.mdx

---------

Co-authored-by: Steven Martin <steven@goteleport.com>
2023-06-05 14:20:34 +00:00
Michael Wilson 1fe310b3a7
WebPublicAddr includes user specified port. (#27269)
* WebPublicAddr includes user specified port.

The WebPublicAddr function did not include the user specified port for public
addresses, which could potentially yield a public address that does not exist.
This was impacting the SAML identity provider, which uses this function for
determining the public address of the identity provider.

* Preserve existing behavior for KubeAddr.

* Tune the logic to minimize impact on kube address.

* Move port declaration closer to where it's used.
2023-06-05 14:06:41 +00:00
Grzegorz Zdunek ed2bb4b54b
Connect: Adjust to the light theme (#27080)
* Adjust Connect to light theme

* Remove `clusters/*` element

* Add terminal colors

* Remove warning about using `false` as `color`

* Add custom styling for `Toggle`

* Fix light theme for file transfer, use the same border color for the drop area as for the input

* Do not hardcode color in `CliCommand`

* Use #000 as black

* Convert rgba colors to be non-opaque

* Fix two slightly incorrect colors
2023-06-05 13:01:35 +00:00
Anton Miniailo 8464dc2850
Add kube credentials lockfile to prevent possibility of excessive login attempts (#26102) 2023-06-05 12:56:43 +00:00
Steven Martin e21e62c9fe
docs: update enrollment steps for active dir (#27328)
* docs: update enrollment steps for active dir

* remove extra space
2023-06-05 10:46:59 +00:00
Ryan Clark b539b5f388
Assist bug fixes (#27266)
* Remove react-use-websocket

* Stop large command outputs from overflowing

* Try to select a login that isn't root/ubuntu/etc

* Stop the navigation switcher from closing whilst assist tooltip is shown

* Update web/packages/teleport/src/Assist/contexts/messages.tsx

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>

* Sort logins alphabetically and put the root logins last

* Add a test for logins sorting

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
2023-06-05 10:06:18 +00:00
Trent Clarke 4ebb31c1f0
Vendors the pagerduty plugin source into teleport (#27262)
* Vendors the `pagerduty` plugin source into `teleport`

This commit vendors the PagerDuty Access Plugiun code into the `teleport`
repo (from `teleport-plugins`), with only the minimal set of changes
required to get it to compile and tests to pass.

Changes include:
 - updating the package name (`main` -> `pagerduty`)
 - removing `main.go`
 - removing installation scripts
 - minor testing tweaks to aid local debugging

* Revert test change

* `go mod tidy`

* fmt

* linter appeasement
2023-06-05 07:34:53 +00:00
Nic Klaassen 7c8c6747cd
cache parsed role template expressions (#27257)
* cache parsed template expressions

* make fix-license

* only log once every 100 cache evictions

* make fix-license

* check error inside loop
2023-06-03 00:25:28 +00:00
Isaiah Becker-Mayer d5856d0ec7
removes now irrelevant webpackChunkName comments, which vite doesn't recognize (#27259) 2023-06-03 00:16:33 +00:00
Brian Joerger 8592bfacf4
Move and update Proxy Template docs. (#26969) 2023-06-02 23:40:10 +00:00
Jakub Nyckowski e2f8b53e87
Disable GHA cache (#27305)
GHA cache seems to be problematic and store/restore operations seems to take more time than the build itself.
2023-06-02 21:09:13 +00:00
Michael Wilson ea7b5ec1a1
Use the proper check for the SAML IdP session. (#27217)
* Use the proper check for the SAML IdP session.

KindWebSession should be used for checking SAML IdP permissions instead of
KindSAMLIdPSession.

* Add in tests.

* Fix tests.

* Make sure proxy can create sessions.

* Remove debug statement.

* Remove errant comment.
2023-06-02 20:48:30 +00:00
Michael Wilson 11713a9327
Update e ref. (#27302)
Update the e reference to pull in the new static credential methods on the
plugin service.
2023-06-02 19:37:55 +00:00
Gavin Frazar b93abb2053
Add IAM auth info to ElastiCache guide (#26989)
* Add IAM auth info to ElastiCache guide

* Update docs/pages/database-access/guides/redis-aws.mdx

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>

---------

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
2023-06-02 18:37:27 +00:00
Michael Wilson fc23f654a0
Add plugin static credentials getter. (#27255)
* Add plugin static credentials getter.

The plugins service now supports getting plugin static credentials through
gRPC. This is necessary for supporting static credentials storage and
reading in our plugins.

* Rename to Search instead of Get.

* Add explanatory comment for search.
2023-06-02 18:25:09 +00:00
Brian Joerger b5c31b749b
Only wait for headless authentication watcher initialization in tests. (#27059) 2023-06-02 17:56:48 +00:00
Lisa Kim cc148f2b8e
Web: Fix local storage clearing (#27256)
* Fix local storage clearing

* Address cR
2023-06-02 17:47:41 +00:00
Sakshyam Shah 3593cc6268
Get locks in tctl get all (#27168)
* register resource marshaler and unmarshaler for locks

* bootstrap locks

* include , protocmp.Transform() in diff test

* direct return item
2023-06-02 17:41:00 +00:00
Roman Tkachenko fe46ac0e58
Add docs for database auto user provisioning (#26987)
* Add docs for database auto user provisioning

* Address feedback

* Fix

* More lint fixes

* Fix

* Apply suggestions from code review

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

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2023-06-02 17:20:25 +00:00
Jakub Nyckowski 9b1a657ade
Allow overriding docker in make grpc (#27268)
* Set the correct file permission on make grpc

https://github.com/gravitational/teleport/pull/26640 introduced the new GRPC buildbox. The new Docker image uses the default user (root) which changes the generated files owner on all generates files.
This PR sets XDG_CACHE_HOME to allow buf to run as a provided user.

Note: This is mainly Linux issue, as MacOS does not change the owner of modified files in mounted volumes.

* Use podman for GRPC generation

* Remove docker override on Linux

* Restore example ARG values

* Update build.assets/Dockerfile-grpcbox

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>

---------

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>
2023-06-02 16:02:40 +00:00
Michelle Bergquist 82f1fec490
add circle icon helper (#27185) 2023-06-02 15:52:12 +00:00
Mike Jensen bab1a5d54b
Build change for when go caching should be used (#27209)
* Build change for when go caching should be used

This commit does the following:
* Updates all `setup-go` actions to use v4 (which has caching enabled by default)
* For `shared-workflow` jobs caching is left enabled due to the presumed small size
* For `teleport` jobs caching is now disabled due to the size exceeding the cache limit

This should make all of the mentioned jobs a little faster.

* Update build-api.yaml to re-enable caching
2023-06-02 15:42:56 +00:00
Tiago Silva 04774100cc
Add endpoints to export AuditEvents as unstructured data (#27026)
This PR adds a new gRPC service `AuditLogService` that allows clients to
request audit log events as unstructured data. Data is returned as
`structpb.Struct` representation which is convertible to JSON.

Unstructured data allows clients to receive audit events without
prior knowledge of their proto wire representation if their end goal is to
export the events as JSON to an upstream service. It allows clients
whose version is older than Auth's version to receive events that their
proto version doesn't support. Exporters can continue operating without
losing events or having to upgrade them each time Auth is upgraded.

Part of https://github.com/gravitational/teleport-plugins/pull/821
Part of https://github.com/gravitational/teleport/issues/23388
2023-06-02 14:49:42 +00:00
Alan Parra 32db884cce
Reply with a user-friendly message on verification errors (#27221) 2023-06-02 14:13:01 +00:00
Tiago Silva 6c10c7f5f0
Pin golangci-lint to v1.53.1 and upgrade depguard config to v2 (#27264)
* Bump golang-ci to `v1.53.0` and upgrade `depguard` config to `v2`

* pin golangci-lint version

* Keep golangci version only in the Dockerfile

* Bump golangci-lint to v1.53.1

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-06-02 13:47:42 +00:00
Zac Bergquist dbcb8a890a
docs: mention locking as an alternative to CA rotation for revoking access (#27160) 2023-06-01 20:11:27 +00:00