Commit Graph
15939 Commits
Author SHA1 Message Date
fheinecke cc7608b9da Add Apache-2.0 license to api/ (#35338) 2023-12-04 22:09:57 +00:00
Paul Gottschling 683d99a0c8 Update diagrams in the docs (#35143)
* Update diagrams in the docs

Closes #31324

We introduced a new Lucidchart library for adding diagrams to docs
pages. This change:

- Replaces all MermaidJS diagrams with ones that use the new library,
  which enables us to phase out the `remark-mermaid` plugin.
- Replaces some other diagrams with the new library.

* Minor tweaks to diagram images

Responds to strongeron feedback
2023-12-04 21:50:09 +00:00
Tiago Silva ed74828703 Always prefer multiplex port if Kube Proxy endpoint is specified (#34211)
Signed-off-by: Tiago Silva <[email protected]>
2023-12-04 19:33:33 +00:00
Noah Stride b2be78ab8b Add cluster_auth_preferences to shortcuts for cluster_auth_preference (#35312)
* Add `cluster_auth_preferences` to shortcuts for `cluster_auth_preference`

* Remove half written comment
2023-12-04 19:22:13 +00:00
Alan Parra a469c4ce2b feat!: Apply role device mode to App Access (#35274)
* Apply role device mode to App Access

* nit: Don't capture traces on guard errors

* Consistently return ErrTrustedDeviceRequired

* Surface device error trust error for apps

* Reply with a custom message for device trust errors

* Review: Remove the DisableDeviceAuthorization field

* Review: Refactor device trust message into its own method

* Review: Wrap guard errors

* Review: Simplify device error message
2023-12-04 17:53:30 +00:00
Nic Klaassen d99d63dfdc fix: External Audit Storage bootstrap in us-east-1 (#35283)
This commit fixes the S3 bucket creation for External Audit Storage when
the region is us-east-1.
It's currently broken because we unconditionally set a location
constraint on the bucket so that it will be in our desired region.
This fails when the region is us-east-1.
Because that's the default region for S3 buckets, and AWS has decided
that explicitly asking for the default is wrong.

Changelog: fixes resource bootstrap for External Audit Storage in us-east-1.
2023-12-04 17:40:56 +00:00
Hugo Shaka 7a990606f3 charts/kube-agent: configurable podSecurityContext (#35289)
* charts/kube-agent: configurable podSecurityContext

* fixup! charts/kube-agent: configurable podSecurityContext

* fixup! fixup! charts/kube-agent: configurable podSecurityContext

* Update docs/pages/reference/helm-reference/teleport-kube-agent.mdx
2023-12-04 16:37:27 +00:00
Edoardo SpadoliniandMike Jensen 0ac6c5333f RFD 0150 - SSH connection resumption (#33439)
* RFD 0150 placeholder

* what/why and goals

* Bad explanation of the protocol, needs rewording

* Better protocol explanation including some changes

* all the security concerns i could come up with

* introduce the security section

* tweak

* future work

* Clarify direct dial mode

* proxy-terminated connection resumption

* warn against using the wire protocol in general

* Update rfd/0150-ssh-connection-resumption.md

Co-authored-by: Mike Jensen <[email protected]>

* Update protocol

* Update limits recommendation

* Complete phrase.

* confirm that locks work at a higher level already

* Diffie-Hellman for the resumption token xchg

* v0 -> v1 in description

* Update approvers

---------

Co-authored-by: Mike Jensen <[email protected]>
2023-12-04 16:19:24 +00:00
dependabot[bot] cb26dec454 Bump the go group in /build.assets/tooling with 1 update (#35298)
Bumps the go group in /build.assets/tooling with 1 update: [howett.net/plist](https://github.com/DHowett/go-plist).

- [Commits](https://github.com/DHowett/go-plist/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: howett.net/plist
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 15:04:13 +00:00
dependabot[bot] 5edbc7bdf5 Bump the go group in /integrations/kube-agent-updater with 1 update (#35301)
Bumps the go group in /integrations/kube-agent-updater with 1 update: [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry).

- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](https://github.com/google/go-containerregistry/compare/v0.16.1...v0.17.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 14:23:41 +00:00
dependabot[bot] 4e352131e1 Bump the go group with 4 updates (#35299)
Bumps the go group with 4 updates: [github.com/ClickHouse/clickhouse-go/v2](https://github.com/ClickHouse/clickhouse-go), [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go), [github.com/aws/smithy-go](https://github.com/aws/smithy-go) and [github.com/go-webauthn/webauthn](https://github.com/go-webauthn/webauthn).


Updates `github.com/ClickHouse/clickhouse-go/v2` from 2.15.0 to 2.16.0
- [Release notes](https://github.com/ClickHouse/clickhouse-go/releases)
- [Changelog](https://github.com/ClickHouse/clickhouse-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ClickHouse/clickhouse-go/compare/v2.15.0...v2.16.0)

Updates `github.com/aws/aws-sdk-go` from 1.48.7 to 1.48.11
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.48.7...v1.48.11)

Updates `github.com/aws/smithy-go` from 1.17.0 to 1.18.1
- [Release notes](https://github.com/aws/smithy-go/releases)
- [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/smithy-go/compare/v1.17.0...v1.18.1)

Updates `github.com/go-webauthn/webauthn` from 0.9.1 to 0.9.4
- [Release notes](https://github.com/go-webauthn/webauthn/releases)
- [Commits](https://github.com/go-webauthn/webauthn/compare/v0.9.1...v0.9.4)

---
updated-dependencies:
- dependency-name: github.com/ClickHouse/clickhouse-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/aws/smithy-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/go-webauthn/webauthn
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 14:23:26 +00:00
dependabot[bot] 56d4556dd5 Bump the rust group with 1 update (#35297)
Bumps the rust group with 1 update: [rsa](https://github.com/RustCrypto/RSA).

- [Changelog](https://github.com/RustCrypto/RSA/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RustCrypto/RSA/compare/v0.9.5...v0.9.6)

---
updated-dependencies:
- dependency-name: rsa
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 14:22:04 +00:00
dependabot[bot] 0f890b02dc Bump the go group in /assets/aws with 3 updates (#35296)
Bumps the go group in /assets/aws with 3 updates: [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2).


Updates `github.com/aws/aws-sdk-go-v2` from 1.23.2 to 1.23.5
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.23.2...v1.23.5)

Updates `github.com/aws/aws-sdk-go-v2/config` from 1.25.8 to 1.25.11
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.25.8...config/v1.25.11)

Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.137.3 to 1.138.2
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.137.3...service/ec2/v1.138.2)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 14:21:50 +00:00
Noah Stride 5a0612a05b Restore teleport-spacelift-runner build process (#35122)
* Re-add spacelift to dronegen

* Fix promote workflow name
2023-12-04 11:56:17 +00:00
Tiago Silva 8c0b6e41f3 TAG: Add protobuf for resource definition for Kube, App, DB and Windows (#35000)
This PR adds the necessary API boilerplace code for TAG to be able to
receice Windows, Kube, App and Database servers from Teleport.

Part of https://github.com/gravitational/access-graph/issues/265
Part of https://github.com/gravitational/access-graph/issues/264
Part of https://github.com/gravitational/access-graph/issues/263
Part of https://github.com/gravitational/access-graph/issues/262
2023-12-04 09:56:52 +00:00
Noah Stride 14b9d98635 Switch to webclient.Find from webclient.Ping for tbot (#35260) 2023-12-04 09:27:30 +00:00
STeve (Xin) Huang d9e2492eb4 Database Automatic User Provisioning support for self-hosted MongoDB (#33717)
* Database Automatic User Provisioning support for self-hosted MongoDB

* Use user's customData instead of teleport-auto-user role

* cache admin connections

* add UT in db/mongodb

* add UT in db/autousers_test

* check version for showCustomData

* remove command comment to compat with older versions

* address comments round 1

* update new license

* ensure shared client is diabled during CI
2023-12-03 02:37:31 +00:00
STeve (Xin) Huang da6646287b [docs] AWS management console duration troubleshoot, DB fixes (#35074)
* [docs] AWS management console duration troubleshoot, DB fixes

* fix spell

* review comments
2023-12-03 02:29:42 +00:00
Lisa Kim 464f7a8672 Update e (#35285) 2023-12-02 00:51:13 +00:00
Brian JoergerandLisa Kim 704f3fccd3 Teleport Connect MFA prompt (#34135)
* Add PromptMFA to tshd event service.

* Add custom MFA prompt using the tshd event service PromptMFA method.

* Generalize and reuse mfa prompt goroutine logic.

* Use important modal sempahore for MFA prompts.

* Update lib/client/api.go

Co-authored-by: Lisa Kim <[email protected]>

* Fix file name.

* Fix lint.

---------

Co-authored-by: Lisa Kim <[email protected]>
2023-12-01 22:43:24 +00:00
Forrest c8a81a4b0f reduce variable duration test flake (#35272) 2023-12-01 21:55:28 +00:00
Zac Bergquist baeefa1317 Clean up debug logs (#35184)
During some unrelated troubleshooting I noticed a number of cases
where we log an error that is guaranteed to be nil. Replace this
error with the session ID to make the logs more useful.
2023-12-01 21:35:34 +00:00
fheinecke 3683b89564 Fixed "fix-license" makefile target for AGPL-v3 change (#35267) 2023-12-01 20:25:25 +00:00
Zac Bergquist def0737cae README: update to AGPL 3.0 (#35270)
Replace the badge and link from Apache 2.0 to AGPL 3.0
2023-12-01 20:10:03 +00:00
Anton Miniailo e33830a77e Make EKS fetcher to lazy initialize AWS EKS client (#35077)
* Continue discovery initialization after EKS fetcher error

* Lazily initialize EKS discovery fetcher client.

* Remove assumeRoleErrors from tests
2023-12-01 19:37:33 +00:00
Michael Wilson ec519b4d0e Support piecemeal names and descriptions for Okta apps and user groups. (#35204)
New labels have been added to Okta apps and user groups to allow the UI to
display the names and descriptions separately. Some tweaks were made to the
UI endpoints that extract these labels and use them for friendly names and
descriptions. Additionally, the unified resources have been updated to use
the friendly name where appropriate for apps and user groups.
2023-12-01 19:32:25 +00:00
rosstimothy 85c29d1cf4 Implement and use UpsertOIDCConnectorV2 (#35144)
While the api client already had support for the new upsert method
it was unimplemented server side and would always fallback to the
legacy UpsertOIDCConnector RPC. This implements the RPC handler
and updates the signature of UpsertOIDCConnector to return the
upserted connector in the same manner that Create and Update do.
2023-12-01 19:22:41 +00:00
Noah Stride 1fa50acf7b bump e (#35266) 2023-12-01 18:56:46 +00:00
Lisa Kim 6eaf5eaf55 Web: Audit use of isUsageBasedBilling flag (#35172)
* Add team and igs flag to web config

* Use isTeam and igs flag in TeleportContext

* Update ButtonLockedFeature

* Update IntegrationTiles

* Update Sessions

* Update Support

* Fix grammar

* Add clarifying comment on isUsageBasedBilling flag
2023-12-01 18:01:27 +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
Cam Hutchison 464edfa2cd drone: Replace tag build pipelines with GHA workflows (#35235)
* dronegen: enumerate linux tag build pipelines

Unroll the loops over architectures, fips and package type and just list
all the pipelines explicitly. This makes it a bit easier to understand
the combinations and to replace them with GitHub actions workflows.

Running `make dronegen` results in no changes to `.drone.yml`.

* dronegen: Convert some linux tag pipelines to GitHub Actions

Convert some of the linux-based tag build pipelines to run on GitHub
Actions. The following pipelines have been converted:

    build-linux-amd64
    build-linux-amd64-centos7
    build-linux-amd64-centos7-fips
    build-linux-386
    build-linux-arm
    build-linux-amd64-deb
    build-linux-amd64-deb-fips
    build-linux-amd64-centos7-rpm
    build-linux-amd64-centos7-fips-rpm
    build-linux-386-deb
    build-linux-386-rpm
    build-linux-arm-deb
    build-linux-arm-rpm

The GHA workflows builds tarballs as well as deb/rpm packages in the one
workflow, so the `-deb` and `-rpm` pipelines will need to be manually
removed from `.drone.yml`. The amd64 centos7 and non-centos7 pipelines
have been combined as they were calling the same `make` target
duplicating work. The amd64 build is always done on centos7. As a
result, we do not name the pipeline with -centos7 any more, but we do
still specify it as the build.assets `Makefile` still has a centos7
target which is called, and we do still release an asset named with
"centos7".

Still remaining of the linux-based tag build pipelines are the arm64
pipelines which are already converted using a different workflow and the
non-native windows build.

* dronegen: Convert linux-arm64 pipeline to common pipeline

Convert the build-linux-arm64 and push-build-linux-arm64 pipelines to
use the common `release-linux` workflow instead of the arm64-specific
`release-linux-arm64` workflow. This aligns it with the other linux
build pipelines and allows us to get rid of the specific workflow.

The pipelines for building the arm64 rpm and deb packages have not been
generated by dronegen for some time now - since the arm64 build was
converted to GitHub Actions. The OS packages were still built as
dronegen does not remove pipelines, so the existing pipelines from
before the GHA migration remained in `.drone.yml` and continued to run.

These os packaging pipelines will be manually removed in a subsequent
commit.

* dronegen: Add pipeline for building legacy AMIs

Generate a pipeline for calling a GitHub Actions workflow to generate
the legacy AMIs. There were two existing manually added pipelines -
`build-oss-amis` and `build-ent-amis` - that are replaced by this.

The new pipeline needs to be manually added and the old ones manually
removed.

* dronegen: Replace oci build with GitHub Actions workflow

Replace the `teleport-container-images-branch-tag` workflow that builds
the legacy and operator OCI images with a call to the GitHub Actions
workflow that does the same on GitHub Actions.

This requires the manual addition of the `build-oci` pipeline and manual
removal of the `teleport-container-images-branch-tag` pipeline, followed
by running `make dronegen` to flesh out `build-oci` and sign .drone.yml.

* dronegen: Remove now-unused functions and vars

Remove the now-unused functions and vars after converting pipelines to
calling GitHub Actions instead of running stuff on Drone.

* drone: Update .drone.yml for GHA workflows

Update .drone.yml by running `make dronegen` to update the following
pipelines to call GitHub Actions to build instead of building on Drone:

build-linux-amd64
build-linux-amd64-fips
build-linux-386
build-linux-arm64
build-linux-arm

Add two new pipelines for building AMIs and OCIs on GHA:

build-legacy-amis
build-oci

Remove the following pipelines as the build of deb/rpm packages are done
within the above pipelines on GitHub Actions now and the ami/oci
pipelines have been replaced:

build-linux-amd64-deb
build-linux-amd64-fips-deb
build-linux-amd64-centos7-rpm
build-linux-amd64-centos7-fips-rpm
build-linux-386-deb
build-linux-386-rpm
build-linux-arm64-deb
build-linux-arm64-rpm
build-linux-arm-deb
build-linux-arm-rpm
build-oss-amis
build-ent-amis
teleport-container-images-branch-tag

Remove the following pipelines as AMD64 builds are always centos7 builds, but
we were just doing it twice. No need for these any more, as the GHA workflow
will build the release artifacts for these with the centos7 targets:

build-linux-amd64-centos7
build-linux-amd64-centos7-fips

The pipelines were added/removed using the following script, followed by
`make dronegen`:

AWK_SCRIPT='
/^---$/ { printf "%s", accumulator; accumulator = "" }
/^---$/ || accumulator { accumulator = accumulator $0 "\n" }
/^name: / {
	drop = $2 == to_remove
	if ($2 == before && to_add) {
		printf "---\nname: %s\n", to_add
	}
	if (!drop) { printf "%s", accumulator }
	accumulator = ""
	next
}
!drop && !accumulator { print }
ENDFILE { printf "%s", accumulator }'

toremove=(
	build-linux-amd64-{centos7,centos7-fips}
	build-linux-amd64-{deb,fips-deb,centos7-rpm,centos7-fips-rpm}
	build-linux-386-{deb,rpm}
	build-linux-arm64-{deb,rpm}
	build-linux-arm-{deb,rpm}
	build-{oss,ent}-amis
	teleport-container-images-branch-tag
)
add_before=build-buildboxes
toadd=(
	build-legacy-amis
	build-oci
)

for pipeline in "${toremove[@]}"; do
	gawk -i inplace -v to_remove=$pipeline "$AWK_SCRIPT" .drone.yml
done
for pipeline in "${toadd[@]}"; do
	gawk -i inplace -v to_add=$pipeline -v before=$add_before "$AWK_SCRIPT" .drone.yml
done
2023-12-01 01:23:09 +00:00
Lisa Kim a1f9dbead9 Update e (#35238) 2023-12-01 00:41:07 +00:00
Nic Klaassen d9fdb61b9e update e ref (#35226) 2023-11-30 23:15:56 +00:00
Tiago SilvaandNic Klaassen 56939dda8f Correctly clone RoleV6 when downgrading (#35230)
* Correctly clone RoleV6 when downgrading

Fix panic caused by improper clone of `RoleV6` when downgrading.
This PR forces a clone before downgrading it.

Fixes #35229

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

* add test to ensure it was properly cloned

* clear comment

* make test fail without the fix

---------

Signed-off-by: Tiago Silva <[email protected]>
Co-authored-by: Nic Klaassen <[email protected]>
2023-11-30 23:07:20 +00:00
Lisa Kim ee32982679 Add ProductType to features and add IGS checks with access request verify limit (#35075)
* Add product type to features and define feature limit helpers

* Add IGS check with access request monhtly verify

* Move limit getters to enterprise

* Simplify product type conversion

* Add clarifying comment
2023-11-30 22:04:48 +00:00
Zac Bergquist 1bd30f6d5e docs: clarify app access header rewrites (#35222)
The syntax [unfortunately] differs when apps are defined in
teleport.yaml as compared to when they are defined as YAML
resources and applied with tctl.
2023-11-30 20:47:10 +00:00
rosstimothy 88bb9cfd96 Implement and use UpsertSAMLConnectorV2 (#35208)
While the api client already had support for the new upsert method
it was unimplemented server side and would always fallback to the
legacy UpsertSAMLConnector RPC. This implements the RPC handler
and updates the signature of UpsertSAMLConnector to return the
upserted connector in the same manner that Create and Update do.
2023-11-30 19:09:44 +00:00
STeve (Xin) Huang 4c2832589f Removed edited trigger from vercel-preview action (#35210) 2023-11-30 17:50:17 +00:00
Nic KlaassenandJakub Nyckowski 243f1f5f94 fix: sanitize error messages in EAS cluster alerts (#35173)
* fix: sanitize error messages in EAS cluster alerts

External Audit Storage emits cluster alerts when elevated error rates
are observed, and includes a recently observed error message in the
alert, because cloud customers have no other access to logs that would
reveal these errors.

Cluster alerts do not allow control characters, so some of these alerts
were not being created during my manual testing. This commit sanitizes
and truncates the error messages before including them in the alert.

* remove all non-printing characters

Co-authored-by: Jakub Nyckowski <[email protected]>

* use explicit err in all test cases

---------

Co-authored-by: Jakub Nyckowski <[email protected]>
2023-11-30 16:51:43 +00:00
Nic Klaassenandrosstimothy d14ce0b958 fix: tctl create should not upsert EAS without -f (#35166)
* fix: `tctl create` should not upsert EAS without -f

This commit adds a CreateDraftExternalAuditStorage RPC that will be used by
tctl when called without the -f flag, to avoid overwriting the current
draft without -f.

* update messaged

* remove draft prefix from message

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

---------

Co-authored-by: rosstimothy <[email protected]>
2023-11-30 16:51:29 +00:00
matheus afd44d46c7 Fix tiles integration layout (#35201) 2023-11-30 16:32:09 +00:00
7771aa5c38 Migrate GenerateHostCert RPC from HTTP to gRPC (#35001)
* Initial progress on moving GenerateHostCert to gRPC

* Missing import of `time`

* Thread thru GenerateHostCert dependency

* Fix imports

* Flesh out testing

* `meta data` -> `metadata`

Co-authored-by: Marek Smoliński <[email protected]>

* Remove double `a`

Co-authored-by: Sakshyam Shah <[email protected]>

* `Open SSH` -> `OpenSSH` in comment

Co-authored-by: Sakshyam Shah <[email protected]>

* Use switch for clearer fallback

* fix imports

* Regenerate protos

---------

Co-authored-by: Marek Smoliński <[email protected]>
Co-authored-by: Sakshyam Shah <[email protected]>
2023-11-30 15:58:46 +00:00
rosstimothy b2bc325703 Implement and use UpsertGithubConnectorV2 (#35132)
While the api client already had support for the new upsert method
it was unimplemented server side and would always fallback to the
legeacy UpsertGithubConnector RPC. This implements the RPC handler
and updates the signature of UpsertGithubConnector to return the
upserted connector in the same manner that Create and Update do.
2023-11-30 15:01:40 +00:00
STeve (Xin) Huang 5ba3457494 [docs] clarify database name override label (#34858)
* [docs] clarify database name override label

* fix link

* mark teleport.dev/database_name as legacy

* apply h3 and remove Admonition
2023-11-30 14:27:27 +00:00
Brian Joerger d3ff1deeb9 Clarify error message. (#35179) 2023-11-30 13:59:31 +00:00
Edward DowlingandMarco André Dinis 722e82ccdd Make Opsgenie plugin update statussink on healthcheck (#35047)
* Make Opsgenie plugin update statussink on healthcheck

* Update integrations/access/opsgenie/client.go

Co-authored-by: Marco André Dinis <[email protected]>

* Simplify logger use in opsgenie client

---------

Co-authored-by: Marco André Dinis <[email protected]>
2023-11-30 13:32:40 +00:00
Tiago Silva b0837620c5 Fix incorrect Kubernetes event watcher chunking (#34981)
Improve handling of streaming events in response to non-chunked content-type from the Kubernetes API.

Previously, when dealing with streaming events, the code streamed the response into the target connection.
However, the Kubernetes API did not provide the content-type as chunked.
This lack of information caused the forwarder to be unaware that the connection was chunked.
Consequently, the forwarder delayed response writing by buffering it, intending to minimize the number of writes.

In scenarios where the connection stream was busy with events, users might not receive individual events as chunks,
leading to incomplete data. This could result in users receiving malformed JSON, triggering an abort of the process.

To address this issue, this commit introduces a modification. After each event, the response is now flushed to ensure
that users receive the event as a complete and well-formed chunk.
This adjustment improves the reliability and integrity of the data received by users during streaming events.

Fixes #34977

Signed-off-by: Tiago Silva <[email protected]>
2023-11-30 09:55:49 +00:00
Rafał Cieślak a7d95b75c0 Discover: Add UI for connection test for Connect My Computer (#35131)
* Rename existing component to LegacyTestConnection

* Set up new component with feature flag

* Copy server TestConnection to Connect My Computer

* ConnectionDiagnosticResult: Add prop for having step number and desc on same line

This will be needed in connection test for Connect My Computer to make
it consistent with the look of previous steps.

* Adjust TestConnection to Connect My Computer, add story

* Start test automatically if there's one login

* Remove unnecessary fragments
2023-11-30 09:54:57 +00:00
Cam Hutchison b7a951bea4 operator: Fix GHA Dockerfile with new/old paths (#35187)
Fix the operator `Dockerfile.gha` to copy the correct paths from the
context for the build. These paths changed pretty much at the same time
as `Dockerfile.gha` was added - just an overlap in development - in
commit f31a90d4a4, which modified the
original `Dockerfile` on which `Dockerfile.gha` is based.
2023-11-30 09:37:17 +00:00
Marco André Dinis 0b5c9c9f1d Discover: Remove App and Discovery Role when generating helm chart using v13 (#35149)
* Discover: Remove App Role when generating helm chart using v13

* for v13, only kube is allowed
2023-11-30 08:01:55 +00:00