Commit graph

9975 commits

Author SHA1 Message Date
Krzysztof Skrzętnicki dd67a49ab5
Azure CLI access (#18675) 2022-12-12 19:34:53 +00:00
Steven Martin 01775b73f1
Correct teleport start for db getting started (#19265) 2022-12-12 16:40:12 +00:00
Travis Rodgers ee3b370d48
updated video to latest (#18795) 2022-12-12 15:55:21 +00:00
rsyracuse 166ef1adcc
Add redirect for outdated Machine ID CLI Ref (#18381) 2022-12-10 18:26:41 +00:00
STeve (Xin) Huang 43529b2653
AWS Redshift Serverless auto-discovery (#18974) 2022-12-09 21:23:56 +00:00
rosstimothy 0f6b0e439e
Improve and unify cache logging (#19156)
* Improve and unify cache logging

Re-init the cache errors now provide the error via `WithError` instead
of passing the stringify error into the log message. This allows for
the stack trace of the log to show up in the logs to help determine
which resource caused the error.

Logging in the various collection resources was all converted to
follow the same pattern to ensure consistency.

The `Logger` field of the cache was also moved to a named field instead
of being an embedded field.
2022-12-09 18:06:07 +00:00
STeve (Xin) Huang 66a915fcb7
Fix issue "redis" engine is not registered (#19239) 2022-12-09 17:39:56 +00:00
Nic Klaassen 3845dd7ab5
deps: update gravitational/predicate to v1.3.0 (#19213)
Updating our predicate fork to get support for object methods and binary
expressions within function arguments. These will be useful for
implementing login rules (RFD 78).
2022-12-09 17:00:42 +00:00
Steven Martin 616ec94d87
Remove ignored user parameter for non-local auth connector examples (#19235) 2022-12-09 09:04:51 -07:00
Alan Parra d5e329e9ea
Add tsh device debug commands (#19166)
Add `tsh device collect` and `tsh device keyget`, which are useful to debug
device trust functionality.

gravitational/teleport.e#514
2022-12-09 10:38:52 -03:00
Łukasz Kozłowski a8d8caa7b4
Fix desktop access setup docs (#19003) 2022-12-09 10:20:37 +00:00
Noah Stride ce9af8943e
Update docs with new location of setup GitHub Action (#19221) 2022-12-09 08:44:23 +00:00
Tim Buckley a453df4fc5
Drop usage events after too many retries (#19223)
* Drop usage events after too many retries

This change adds a retry counter to individual events (5) and drops
them after too many failures. If an event is malformed and can never
be submitted, or if the backend is down for an extended period of
time, events are dropped instead of generating excessive log spam.

Additionally, only failed events are resubmitted rather than entire
batches as some events may have submitted successfully.

Also, a few log messages are revised.

* Remove `dropped` since we can calculate all the info we need

* Fix lints
2022-12-09 03:29:10 +00:00
rosstimothy 1a172c6dd7
Add proto.AuthService/ListAppSessions (#19171) 2022-12-09 01:15:53 +00:00
Mike Jensen 6692d5e18f
CodeQL: Set a timeout limit to ensure jobs don't hang (#19224)
Recently the CodeQL jobs started hanging, this is a stop gap measure to make sure action costs remain under control.
2022-12-09 00:45:06 +00:00
Steven Martin 016e22aad5
Change git clone to use a specific branch version, not the current master (#19220) 2022-12-08 23:53:15 +00:00
Steven Martin b7c25ffd85
Update connect your client for Idp and other minor items (#19186)
* Updated to match SAML/OIDC/GitHub scenarios.  Removed root and other minor updates.
2022-12-08 22:19:16 +00:00
Hugo Shaka 1babd9d477
Fix Kubernetes version detection on EKS (#19188)
This PR fixes a bug introduced in the kubernetes join method.

EKS is not formatting version.Minor as an integer, (e.g. `23+`). It is not possible to reliably parse this field and this blocks nodes from joining.

Co-authored-by: Noah Stride <noah.stride@goteleport.com>
Co-authored-by: Nic Klaassen <nic@goteleport.com>
2022-12-08 19:01:23 +00:00
Steven Martin 9b17869308
Include Teleport Connect reference to installation (#19165) 2022-12-08 18:14:48 +00:00
Matheus 6afd0dbd59
Add license and download verbs to user context ACL and default editor role (#19049) 2022-12-08 18:05:49 +00:00
Paul Gottschling 67391f93e7
Add a glossary of Teleport terms (#16762)
* Add a glossary of Teleport terms

Closes #16121
Closes #13363

- Create a Core Concepts page based on the Architecture Overview page.
  The Overview page is an outline of core concepts, so I thought it
  would make a good starting point for the glossary.

- Add the Core Concepts page to the Home section to make it more
  prominent for users who are visiting the docs homepage. This should
  give it more traffic than leaving it in the Architecture section.

- Move definitions out of the "Definitions" table. Since this table
  repeats content from the body sections and comes after them, it makes
  sense to condense all content into brief body sections.

- Alphabetize sections

- Bold the first instance of each keyword within a given section. Not
  adding links since these are all to the same page. It might get a bit
  confusing to click a link and not see a change in view, since the
  target section would already be on the page.

- Remove the intro paragraph of the old Overview page, since it's not
  strictly related to core concepts.

* Respond to PR feedback and add further edits

- Group definitions into H3-level sections organized into H2s, improving
  readability by presenting the more central components first.

- Group "Machine ID" with "Teleport Services" to simplify the glossary.

- Call instances of a Teleport Service an "agent". This is consistent
  with our source and informal language about Teleport. This also
  removes the "Node" terminology, which is prone to misuse (does it mean
  "a Service instance"? An "SSH Service instance"? Both are present in
  the docs) and easily confused with the lowercase "node" (i.e., a
  host).

- For simplicity, remove the term "Teleport Process" and simply explain
  that multiple Teleport Services can run via the same binary.

- Add a section on Teleport's editions, including the terms "Community
  Edition", "Enterprise", and "Enterprise Cloud".

- Remove the mention of Teleport Discover, which isn't documented yet.

- Minor wording/readability changes.

* Respond to PR feedback

* Respond to zmb3 feedback
2022-12-08 17:32:50 +00:00
Steven Martin 9fc8237a63
Add listing and playing recorded interactive sessions to tsh docs (#18792) 2022-12-08 15:45:58 +00:00
Rafał Cieślak aae077a672
daemon.Service: Rename GetCluster to ResolveFullCluster (#19180) 2022-12-08 15:34:52 +00:00
Jim Bishopp a7cfb30185
Bump cloud version to 11.1.2 (#19175)
Teleport Cloud tenants will be upgraded to 11.1.2 on 12/8/22.
2022-12-08 10:04:06 -05:00
STeve (Xin) Huang 94e29f971b
Attempt to deflake TestDatabaseAccess/AgentState (#19169) 2022-12-08 14:39:38 +00:00
Steven Martin be3454583b
Organized machine-id docs menu to match other protocols (#19187) 2022-12-08 14:10:12 +00:00
Gabriel Corado c746ab6b30
Azure SQL Server auto-discovery documentation (#19100)
Co-authored-by: alexfornuto <alex.fornuto@goteleport.com>
2022-12-08 13:06:39 +00:00
Łukasz Kozłowski 033ade28ca
Fetch and buffer all entries from LDAP search (#19002) 2022-12-08 12:54:39 +01:00
Tiago Silva 1c1b6b076b
Kubernetes Portforward via Websockets (#18791)
This PR extends the Kubernetes Service to support the WebSocket
protocol in Kubernetes Porforward calls.

The Websocket protocol is required so that Kubernetes clients
like C#, Python, and Javascript can create portforward requests
to Kubernetes PODs. Although Teleport supports clients using WebSocket
protocol, it still uses SPDY protocol when connecting to upstreams -
Teleport Services or Kubernetes API.

Contrary to requests through SPDY, WebSocket requests do not support any
concurrency or multiplexing. This is a protocol limitation since
it only creates a single stream pair per port. When using it
concurrently, the requests will be mixed and fail.

Fixes #18783
2022-12-08 10:27:49 +00:00
Mike Jensen 7a13c74c57
errors.go: Update link in error message for self signed cert setup (#19132) 2022-12-07 23:45:45 +00:00
Sam Freiberg 04b9d66d67
Properly escape maps in log entries (#19148)
Properly escape maps in log entry
2022-12-07 23:18:55 +00:00
Vitor Enes 9819e192b8
Optimize trait loop evaluation (#19097)
This commit reduces the number of `log.Debug`s in the trait loop evaluation in case of a mismatch.

This commit also optimizes the trait eval loop ensuring that each regexp is compiled at-most once, and only if strictly needed.
2022-12-07 22:34:46 +00:00
Alan Parra f0333a34a5
Bump Buf to v1.10.0 (#19162)
Bump Buf to the latest version (housekeeping so we keep up with the releases).
No lint/format/generate changes.

See https://github.com/bufbuild/buf/releases/tag/v1.10.0.
2022-12-07 22:13:41 +00:00
Michael Wilson 7d7e574aa4
Eventually require connection failure in TestTCPCertExpiration tests. (#18978)
The TestTCPCertExpiration test may have a race condition where the connection
made to the test application immediately after the cert expiry may succeed.
Due to the wonky nature of using the fake clock in this test, I'm introducing
a requires.Eventually here to hopefully mitigate this race.
2022-12-07 21:49:37 +00:00
Gavin Frazar ae2d4ca78c
Run main test (#19134) 2022-12-07 20:30:51 +00:00
Alan Parra 73d058d7a7
Return user-friendly messages for common enroll errors (#19115)
Handle a few common macOS errors, as well as gRPC unimplemented errors, and
return more user-friendly messages in their place.

gravitational/teleport.e#514
2022-12-07 20:10:14 +00:00
Alan Parra 29166a56b7
Add the tsh device enroll command (#19108)
Wire the device enrollment ceremony, implemented by lib/devicetrust/enroll, to
`tsh`.

gravitational/teleport.e#514
2022-12-07 19:46:39 +00:00
Alan Parra 0ed766bbb8
Tidy Go modules (#19158)
Should fix some of the CI breakages we are observing.
2022-12-07 19:27:29 +00:00
Paul Gottschling 75f43f456f
Fix a link with a long redirect chain (#19110)
One link to the Teleport Downloads page in the Connect your Client
section introduction was being redirected multiple times. This change
fixes the link.
2022-12-07 18:57:31 +00:00
Alan Parra d218fd2625
Implement macOS device enrollment methods (#19079)
Implement native macOS methods required by device enrollment, namely methods to
Create/Get the device key, Sign challenges with it, and to collect device data
(aka serial number).

The implementation is rather similar to lib/auth/touchid, but simpler in a few
aspects:

1. Device keys don't require user interaction (as in they don't cause a touch ID
   prompt); and
2. There exists, at most, a single device key at all times.

I've added a tiny refactor to reuse Apple public key parsing from touchid, plus
some changes so touchid doesn't break in the face of unexpected keys (which the
device key didn't cause, per se, but my experiments getting to it did).

gravitational/teleport.e#514
2022-12-07 18:11:21 +00:00
Isaiah Becker-Mayer fc33246807
Fixes dissonance between disconnect_expired_cert vs require_session_mfa (#18607) 2022-12-07 17:00:38 +00:00
Tobiasz Heller d0646d2cdd
Dependency updates (#19139)
* Bump github.com/bufbuild/connect-go from 1.1.0 to 1.3.2

Bumps [github.com/bufbuild/connect-go](https://github.com/bufbuild/connect-go) from 1.1.0 to 1.3.2.
- [Release notes](https://github.com/bufbuild/connect-go/releases)
- [Commits](https://github.com/bufbuild/connect-go/compare/v1.1.0...v1.3.2)

---
updated-dependencies:
- dependency-name: github.com/bufbuild/connect-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump golang.org/x/sys from 0.2.0 to 0.3.0

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump go.opentelemetry.io/otel/sdk from 1.11.1 to 1.11.2

Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.11.1...v1.11.2)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump github.com/aws/aws-sdk-go-v2 from 1.17.1 to 1.17.2

Bumps [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) from 1.17.1 to 1.17.2.
- [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/v1.17.1...v1.17.2)

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

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

* Bump libc from 0.2.137 to 0.2.138

Bumps [libc](https://github.com/rust-lang/libc) from 0.2.137 to 0.2.138.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.137...0.2.138)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace

Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace](https://github.com/open-telemetry/opentelemetry-go) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.11.1...v1.11.2)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump go.opentelemetry.io/otel from 1.11.1 to 1.11.2

Bumps [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.11.1...v1.11.2)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.74.0 to 1.75.0

Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.74.0 to 1.75.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.74.0...service/ec2/v1.75.0)

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

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

* Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.17.5 to 1.17.6

Bumps [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) from 1.17.5 to 1.17.6.
- [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/config/v1.17.5...config/v1.17.6)

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

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

* Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp

Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp](https://github.com/open-telemetry/opentelemetry-go) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.11.1...v1.11.2)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds

Bumps [github.com/aws/aws-sdk-go-v2/feature/ec2/imds](https://github.com/aws/aws-sdk-go-v2) from 1.12.19 to 1.12.20.
- [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/credentials/v1.12.19...credentials/v1.12.20)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace in /api

Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace](https://github.com/open-telemetry/opentelemetry-go) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.11.1...v1.11.2)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* go mod tidy

* Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-07 17:27:07 +01:00
Rafał Cieślak db09b3c4a2
Fix typo in integration/db.SetupDatabaseTest (#19095)
While working on integration tests, I noticed that testOptions.leafConfig
is simply ignored because after we set up the leaf cluster config, we call
testOptions.rootConfig instead.
2022-12-07 15:40:33 +00:00
Alan Parra c4d88ee28b
Update Go to 1.19.4 (#19120)
Update Go to latest security patch.
2022-12-07 13:52:04 +00:00
Przemko Robakowski b2e1807d03
Make bitmaps opaque in Desktop Access (#18985)
This change brings back setting alpha to 100% (fully opaque) before sending bitmap data to TDP in Desktop Access.
This fixes problem with using Desktop Access with Windows 10.
2022-12-07 13:00:24 +00:00
Noah Stride 4ec894a112
Update examples/systemd/machine-id to use best practices! (#19101)
* Update example systemd file and guide for Machine ID

* Trailing newline !

* Shorten advice

* Remove confusing comma

* Format warning nicer!
2022-12-07 10:10:50 +00:00
Isaiah Becker-Mayer 8498346fba
Displays Server Disconnect reason to the user (#18959) 2022-12-07 03:18:53 +00:00
Isaiah Becker-Mayer fd8ef873dd
[auto] Update webassets in teleport/master from webassets/master (#19131) 2022-12-06 17:05:49 -08:00
Roman Tkachenko 79b578457b
[auto] Update AMI IDs for 11.1.2 (#19130) 2022-12-06 23:28:12 +00:00
Christopher Cooper 9c2192ebb6
Prepare sql server kinit authorization (#18299) 2022-12-06 22:55:20 +00:00