Commit graph

375 commits

Author SHA1 Message Date
fheinecke 25c7ba6d73
Set -reviewers="${{ secrets.reviewers }}" on changelog workflow (#33787) 2023-10-23 15:36:42 +00:00
fheinecke 9f8530e8db
Added workflow to check changelog entries (#32775)
* Added workflow to check changelog entries

* Addressed PR comments
2023-10-20 22:16:51 +00:00
Mike Jensen 7452614827
Remove CodeQL Scanning for release branches (#33723)
* Remove CodeQL Scanning for release branches

In RFD 114 (PR #32233) we setup mirroring for the Teleport release branches to the `teleport-sec-scan` repos.  There are several advantages to moving the CodeQL scanning to these repos:
* It removes the manual process described in `preflight` to update the codeql scanning branch
* It solves the issue of alerts being repeatedly opened and closed as they are found on release branches and only fixed in master, for example: https://github.com/gravitational/teleport/security/code-scanning/560

As such CodeQL has already been configured on these repos and the initial findings triaged: https://github.com/gravitational/teleport-sec-scan-1/blob/master/.github/workflows/codeql-mirror.yml

* codeql: Comment relaese branch scanning
2023-10-20 17:08:16 +00:00
Walt ba3e630a7d
Downgrade create-github-app-token to a pre-nodejs 20 version (#33670)
Because this step runs in a centos7 container, we need a version that
runs an older nodejs release, and is thus compatible with a older GLIBC.
2023-10-18 22:05:45 +00:00
Walt 80279b5846
Swap actions/create-github-app-token for tibdex/github-app-token (#32106)
tibdex is some random developer.  We prefer 2nd party actions from
GitHub, as we have a contractual relationship with them.

As part of this change, I'm also comfortable dropping the SHA pinning --
since the `actions` org can be held to a higher level of trust for
both security and backwards compatibility concerns.
2023-10-18 20:29:43 +00:00
rosstimothy 9d7eed5bcc
Fix Flaky Test Detector (#33471)
#33403 removed the test-go-libfido2 make target but the flaky test
detector was still trying to invoke it resulting in all runs to fail.
2023-10-13 18:06:32 +00:00
Jakub Nyckowski b4a7ee8760
Update Docker images to ghcr.io/gravitational/teleport-buildbox:teleport15 (#33302)
This commit updates all the Docker images from ghcr.io/gravitational/teleport-buildbox:teleport14 to ghcr.io/gravitational/teleport-buildbox:teleport15 in multiple workflow files.
2023-10-11 16:14:18 +00:00
dependabot[bot] ccadcdf69b
Bump aws-actions/amazon-ecr-login from 1 to 2 (#33152)
Bumps [aws-actions/amazon-ecr-login](https://github.com/aws-actions/amazon-ecr-login) from 1 to 2.
- [Release notes](https://github.com/aws-actions/amazon-ecr-login/releases)
- [Changelog](https://github.com/aws-actions/amazon-ecr-login/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/amazon-ecr-login/compare/v1...v2)

---
updated-dependencies:
- dependency-name: aws-actions/amazon-ecr-login
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Walt <walt@goteleport.com>
2023-10-10 20:09:03 +00:00
Rafał Cieślak fdf44c3ce6
Add execing into a pod to Connect test plan (#33206) 2023-10-10 13:12:48 +00:00
Paul Gottschling d44bd92a30
Deploy 1 docs version in Vercel preview workflow (#32403)
The Vercel preview workflow currently inserts the head branch of a pull
request into the edge version of the Teleport docs. This makes it
difficult to post a link to the correct version, since we need to
include the version number in the path.

This change edits the Vercel preview workflow to include only one
version of the docs--the user's version--in the preview site. This makes
it easier to find the user's changes.
2023-10-06 18:40:49 +00:00
Alan Parra 4485f8125a
chore: Bump Buf to v1.27.0 (#32997)
Update to the latest version.

* https://github.com/bufbuild/buf/releases/tag/v1.27.0
2023-10-05 18:16:20 +00:00
Gus Luxton 99b4cb4d3d
docs: Update HA Terraform reference and add starter cluster reference (#32354)
* docs: Update Terraform reference documentation

* Fixes to shell script
2023-10-05 16:14:44 +00:00
Zac Bergquist b33ca74376
Remove integration test bypass workflows (#32968)
Remove bypass workflows for integration tests (root) and kube
integration tests (non-root) in favor of the paths-filter approach,
since path filtering is not supported with the merge queue.
2023-10-04 18:25:02 +00:00
rosstimothy a70f0bba82
Remove unused bloat bypass workflow (#32969)
The bloat check runs on push and not PR and is not a required
check making the bypass workflow a waste of time and money.
2023-10-04 18:23:53 +00:00
Nic Klaassen 22dafc6a9d
disable etcd debug logging (#32943)
I'm hoping this makes the Dockerfile compatible with both etcd 3.3.9 and
3.5.9
2023-10-04 03:14:12 +00:00
Nic Klaassen a30f23d6ba
upgrade test etcd to v3.5.9 (#32936) 2023-10-03 23:44:19 +00:00
fheinecke f01acfdd1c
Fixed integration test issue causing unnecessary runs (#32853) 2023-10-02 16:54:17 +00:00
Jakub Nyckowski eaa5d5be61
Revise Docker handling in OS compatibility script (#32711)
* Revise Docker handling in OS compatibility script

This commit revises how Docker containers are interacted with in build-test-compat.sh. Optimized Docker image pulling process by pulling images in parallel to speed up the testing process. Makefile targets in Github workflow are also parallelized to speed up the build process.

* Simplify and parallel docker logic
2023-09-28 17:39:24 +00:00
Jakub Nyckowski 6e7f538aae
An attempt to fix our failing builds (#32681)
* An attempt to fix our failing builds

* Add merge_group condition to checkout step in workflows

This update adds a condition to the checkout step in various GitHub workflows to ensure it only runs when the event_name is "merge_group".

* Fix syntax

* Use v4 tag for checkout action instead of pinned commit

Co-authored-by: Reed Loden <reed@goteleport.com>

---------

Co-authored-by: Reed Loden <reed@goteleport.com>
2023-09-27 23:20:56 +00:00
fheinecke d20606f54e
Cut CI unit test runtime in half (#32706) 2023-09-27 23:17:19 +00:00
Zac Bergquist 28449cb70f
Remove bypass workflows devbox, integrations, and AWS E2E tests (#32401)
Follows the same approach taken in #31953
2023-09-23 14:58:40 +00:00
dependabot[bot] 8c1be0b016
Bump actions/checkout from 3 to 4 (#32058)
* Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* Do not upgrade to checkout v4 on centos:7 workflows

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Walt <walt@goteleport.com>
2023-09-22 18:51:59 +00:00
Paul Gottschling b529a4b9e9
Upload one file per Vercel preview deployment (#32231)
Currently, the Vercel preview workflow uses the default `vercel deploy`
behavior, which uploads every source file to Vercel. The result is often
rate limiting by the Vercel API, which prevents some preview workflows
from running.

This change adds the `--archive=tgz` flag to the `vercel deploy` command
to upload a single tarball instead, as recommended by Vercel support.

The flag is undocumented, but you can consult the PR that added it to
the `vercel` CLI (vercel/vercel#8356) for context.
2023-09-20 20:26:44 +00:00
Edoardo Spadolini 336e185581
ci: clarify failure on go mod tidy (#32205)
This PR updates the name of the step that checks that there's no changes to `go.mod` and `go.sum` after a `go mod tidy` to make it more obvious what the issue is.
2023-09-20 18:54:18 +00:00
Walt 4a657b5cdf
Bump helm/kind-action from 1.5.0 to 1.8.0 (#31993)
Bumps [helm/kind-action](https://github.com/helm/kind-action) from 1.5.0 to 1.8.0.
- [Release notes](https://github.com/helm/kind-action/releases)
- [Commits](https://github.com/helm/kind-action/compare/v1.5.0...v1.8.0)

---
updated-dependencies:
- dependency-name: helm/kind-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...
2023-09-20 18:14:06 +00:00
Walt 4d71008b52
Bump configure-aws-credentials to 3.0.1 (#31045)
This suppresses some noisy warnings, and provides useful debug
information (such as the assumedRoleId) baked into the command.

AWS Account IDs are no longer masked by default.
2023-09-18 21:09:54 +00:00
Zac Bergquist 73cf6779e9
Remove bypass workflow for integration and docs tests (#31953)
* Remove bypass workflow for integration tests

It turns out, the 'paths' filter is not supported with the merge
queue. As a result, we're running a lot more actions in the merge
queue than we thought we were. For example, integration tests are
running even if the PR(s) in the queue only contain docs changes.

Instead of relying on GitHub to do the filtering (which isn't supported)
and using the "multiple workflows with the same name" hack, we use a
third party action to detect what files were changed and determine
whether subsequent jobs should run.

* Remove doc-tests bypass

This will allow us to test both cases

* Address review comments
2023-09-15 21:58:32 +00:00
dependabot[bot] a84ed24078
Bump actions/checkout from 3 to 4 (#31413)
* Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* Update .github/workflows/os-compatibility-test.yaml

* Do not upgrade checkouts that run in centos:7

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Walt <walt@goteleport.com>
2023-09-15 21:38:13 +00:00
dependabot[bot] 4e1e35f620
Bump jetpack-io/devbox-install-action from 0.6.0 to 0.6.1 (#31720)
Bumps [jetpack-io/devbox-install-action](https://github.com/jetpack-io/devbox-install-action) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/jetpack-io/devbox-install-action/releases)
- [Commits](https://github.com/jetpack-io/devbox-install-action/compare/v0.6.0...v0.6.1)

---
updated-dependencies:
- dependency-name: jetpack-io/devbox-install-action
  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-09-15 14:32:09 +00:00
Mike Jensen 1b9420dd38
CodeQL: Fix Go 1.21 build fix and update branch list (#31892)
* CodeQL: Set go version based off go.mod

* CodeQL: Update branch list to drop v11 and include v14
2023-09-14 21:40:25 +00:00
Rafał Cieślak ec4fd48a09
Explain agent forwarding testplan item (#31863) 2023-09-14 19:08:15 +00:00
Mike Jensen d82f595464
bloat test: Disable UI build (#31724)
This is currently failing due to `yarn` not being on the build image.  I am disabling the UI part of the build until we can develop a long term solution.
2023-09-11 19:47:08 +00:00
Andrew LeFevre 5054cb685c
return an error when attempting to join a session of an OpenSSH node (#31472)
* return an error when attempting to join a session of an OpenSSH node

* remove item from test plan and note to docs

* add test coverage to integration test

* fix integration test

* fixed linter issue
2023-09-08 22:16:02 +00:00
dependabot[bot] 867a209c02
Bump jetpack-io/devbox-install-action from 0.4.0 to 0.6.0 (#31193)
Bumps [jetpack-io/devbox-install-action](https://github.com/jetpack-io/devbox-install-action) from 0.4.0 to 0.6.0.
- [Release notes](https://github.com/jetpack-io/devbox-install-action/releases)
- [Commits](https://github.com/jetpack-io/devbox-install-action/compare/v0.4.0...v0.6.0)

---
updated-dependencies:
- dependency-name: jetpack-io/devbox-install-action
  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-09-08 19:05:47 +00:00
Paul Gottschling c027b38f7f
Add Vercel preview workflow (#30873)
* Test vercel-deploy workflow

* Specify the Vercel environment

Co-authored-by: Ada <70969399+adaadb6@users.noreply.github.com>

* Tweak the Vercel workflow

- Include a more user-friendly URL in the preview message that points to
  the version of the docs site that shows the user's changes.

- Add write permissions for PRs to the Vercel worfklow.

* Respond to zmb3 feedback

---------

Co-authored-by: dumez-k <kenneth.dumez@goteleport.com>
Co-authored-by: Kenneth DuMez <41009873+dumez-k@users.noreply.github.com>
Co-authored-by: Ada <70969399+adaadb6@users.noreply.github.com>
2023-09-08 15:48:58 +00:00
Marek Smoliński b9d61d5209
Test Plan Update: Add auto user provisioning and ClickHouse (#31292) 2023-09-08 04:03:40 +00:00
Zac Bergquist 3d820def14
post-release: specify base branch for docs PR (#31499)
* post-release: specify base branch for docs PR

* post-release: add docker images

Signed-off-by: Zac Bergquist <zac.bergquist@goteleport.com>

---------

Signed-off-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Steven Martin <steven@goteleport.com>
2023-09-07 14:27:37 +00:00
Isaiah Becker-Mayer f4cc473c6d
Adds link to patch for desktop access warnings/errors test (#31540) 2023-09-06 21:20:40 +00:00
Alan Parra 23e8f1d67e
chore: Bump Go to 1.21.1 (#31505)
* Don't attempt to use Go 1.19 in the root module

* Use Go 1.21 on grpcbox

* Bump Go to 1.21.1

* Bump Go toolchain to go1.21.1

* Run `make dronegen`
2023-09-06 17:14:55 +00:00
Mike Jensen db9cfcb9d6
Add environment leak test to bloat test CI (#26033)
* Add new `make test-env` to CI

This is a new test which exports an environment variable, and then validates that none of the build binaries contain the unexpected variable.
This is designed to help make sure that secrets don't unexpectedly leak from any of our build environments.

* Remove environment leak workflow and instead combine with the `bloat` workflow

* bloat: Fix for environment test being on the current commit instead of last commit

* Apply suggestions from code review

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* Update .github/workflows/bloat.yaml

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* test-env target updates

* env-test: replace spaces with tabs for bash commands

* bloat workflow: Fail job on first failure

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2023-09-06 16:33:17 +00:00
Zac Bergquist 6ac4dbb222
test plan: remove restricted sessions (#31461)
This feature is being deprecated in Teleport 14 and removed in
Teleport 15, so it doesn't need to be part of the test plan going
forward.
2023-09-06 15:39:03 +00:00
Michael 0334cf6755
Update test plan with unified resource tasks (#31214) 2023-09-06 13:26:48 +00:00
Paul Gottschling 843d619ce5
Clarify the docs test plan (#31311)
This change edits the documentation test plan to clarify some points of
friction:

- Includes a sample command for adding a new submodule to the docs site
  so the person updating the docs site config doesn't need to figure
  this out.
- Notes the source of features in the upcoming major version so we can
  test the docs for those features.
2023-09-05 21:50:07 +00:00
Marco André Dinis dd3e2e8252
TestPlan: remove OpenSSH nodes tests (#31409)
Teleport can connect to Nodes using their OpenSSH daemons.
To do so, OpenSSH must be configured to trust Teleport's CA.

Previously (<=v13), all ssh servers could be dialed into from Teleport.
The connection would be accepted if the ssh server trusted the Teleport
CA.

V14+ doesn't allow this and all nodes must be registered in Teleport.
If they are not, then Teleport won't connect to them.
2023-09-05 16:21:15 +00:00
Alan Parra bf95126ea1
Tweak passwordless and device trust testplan (#31368)
* Point passwordless to the tsh download

* Point device trust to the enterprise download

* Verify Windows device enrollments

* Verify `tsh device` support commands

* Trim whitespace

* Separate support commands per platform
2023-09-01 22:18:15 +00:00
Alan Parra dc46f6f589
Pin golangci-lint and buf versions (#31300)
* Pin golangci-lint to v1.54.2

* Pin Buf to v1.26.1

* Pin devbox
2023-08-31 20:41:26 +00:00
Noah Stride 8c43a9b61e
Update Machine ID test plan (#31306) 2023-08-31 18:45:35 +00:00
Krzysztof Skrzętnicki e540aaede8
Add Database access tests for OpenSearch. (#31276) 2023-08-31 16:16:35 +00:00
Edoardo Spadolini e0b62513f0
Fix buf breaking order (#31255) 2023-08-30 20:42:58 +00:00
Edoardo Spadolini abec9056a3
Add Postgres to the test plan (#31243)
* Add Postgres to the scaling test

* Add Postgres to the backends test
2023-08-30 19:41:45 +00:00