Commit graph

375 commits

Author SHA1 Message Date
Jakub Nyckowski d3848c2cbd
Update Docker images to use v14 (#27189)
After the new Docker images have been published https://github.com/gravitational/teleport/pull/27055 this PR makes use of them in GHA.
2023-06-01 19:47:51 +00:00
Krzysztof Skrzętnicki d7627b5019
flaky test detector: pass --skip flag in all jobs, skip new tests (#27145)
* Use `--skip` flag in all difftest invocations.

* make `difftest` respect the `--skip` flag for new tests.
2023-06-01 06:54:02 +00:00
Edoardo Spadolini 0975df744d
Add buf breaking to the CI linter (#26828)
* Add `buf breaking` to the CI linter

* Add Makefile target for local development
2023-05-30 20:19:12 +00:00
Grzegorz Zdunek 90803a1f45
Add missing dependabot.yml ignore entries (#27019) 2023-05-29 08:16:07 +00:00
Alan Parra 760ea60c52
Assign module experts in Dependabot reviews (#27023) 2023-05-26 17:50:28 +00:00
Mike Jensen 61448c9f0c
Update Dependabot Scheduled Config (#26867)
* Update Dependabot Scheduled Config

Update Dependabot with the following:
* Add `jentfoo` to reviewers list
* Remove `crypto` ignore on `api` (no longer using forked version)
* Add configurations for missing gomod paths

* Update .github/dependabot.yml

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

* Remove `examples` from Dependabot

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-05-25 20:27:12 +00:00
Zac Bergquist fffa7c275c
ci: build tctl in the build-windows job (#26865)
We don't officially support tctl on Windows yet, but it does now build
and we want to ensure it stays that way.
2023-05-25 17:28:23 +00:00
Tiago Silva 5c37f8b1d7
Upgrade K8S related dependencies to v0.27.2 (#25136) 2023-05-23 15:03:27 +00:00
Paul Gottschling ad4205610e
Edit the docs issue template (#26607)
- Add an item to define a scope for resolving the issue to avoid scope
  creep and make it easier to close issues.
- Make a stronger plea for "Related Issues" items, since these are often
  not included.
2023-05-22 21:06:05 +00:00
Zac Bergquist d6f2a52155
flaky test detector: add exclusion step (#26542)
Depends on gravitational/shared-workflows#115
2023-05-19 22:47:22 +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
Gavin Frazar 401ce30a46
skip rdpclient build in integration tests (#26492)
* add RDPCLIENT_SKIP_BUILD opt to makefile

* skip rdpclient build in go integration tests
2023-05-18 18:00:06 +00:00
Tiago Silva da8e894cdb
Add proxy peering to test plan (#26440)
Test plan misses testing access when using proxy peering. Nothing should
differ from normal reverse tunnel access but it makes some assumptions
that differ from the reverse tunnel.
2023-05-18 10:56:42 +00:00
Steven Martin 740262573d
bypass os-compatibility-test-bypass for md and mdx files (#26450)
* bypass os-compatibility-test-bypass for md and mdx files

* include ignore md and mdx files
2023-05-17 21:14:04 +00:00
Steven Martin 6d0e0f7239
skip md and mdx files for go linting (#26434) 2023-05-17 15:07:56 +00:00
Tiago Silva 537ddcce89
Ignore K8S dependencies until K8S API v0.27.2 is released (#26326)
This PR adds K8S dependencies to the dependendabot ignore list.

We can revert this PR after
https://github.com/gravitational/teleport/pull/25136 merges to master.

`sigs.k8s.io/controller-runtime` is holding the K8S deps update because
it does not support K8S API 0.27.1. `controller-runtime` will release a
new version once `k8s.io/api@v0.27.2` is released.
2023-05-16 12:42:47 +00:00
Mike Jensen 99d56c6bc1
Remove our replacement for Logrus (#26241)
* Remove our replacement for Logrus

Recently I attempted to update our Logrus fork.  However this comment pointed out that our changes have been merged upstream: https://github.com/gravitational/logrus/pull/12#issuecomment-1515303744

For that reason this removes the dependency on the fork.

* Remove ignored dependabot dependencies that are no longer replaced
2023-05-15 19:02:53 +00:00
Tiago Silva 32d8d5f489
Restore Kubernetes Integration tests (#25624)
* Restore Kubernetes Integration tests

This PR re-enables the Kubernetes integrations tests using a KinD
(Kubernetes in Docker) cluster.

New steps have been introduced to GitHub's Integrations (Non-Root)
Action that configure the KinD cluster using
[`helm/kind-action`](https://github.com/helm/kind-action) and do some
network configurations allowing the container where tests run to connect
to the KinD control plane.

This PR also fixes some of the tests and fixes a bug that affected
joining operations when the target service was a legacy kubernetes
proxy. Some improvements will be introduced in future patches to improve
the logic and reduce the time required for the tests to run.

Fixes #25539

* fix data race in spdystream dep

* address feedback

* remove docker installation

* fix test
2023-05-12 16:38:16 +00:00
Paul Gottschling 532c74f3e0
Update the docs test plan (#26015)
- Refresh out-of-date URLs for docs pages and `docs/config.json`
- Remove the step to add pages to the `/docs/older-versions` page, since
  we generate this automatically from `gravitational/docs/config.json`,
  and there is already a step to check that file
- Add a step to ensure that git submodule directories match those in
  `.gitmodules`. This prevents unexpected deployment issues.
- Add more clarity to the changelog step
- Add a step to check on the status of documentation for relevant
  features in the release
2023-05-11 18:47:21 +00:00
Andrew Burke bd000daa1f
Add GCP join method (#24493)
This change implements the GCP join method.
2023-05-10 23:56:59 +00:00
Mike Jensen 7e75aeff1d
Add CodeQL Config update requirement to preflight.md docs (#25672)
* Add CodeQL Config update requirement to preflight.md docs

* .github/workflows/codeql.yml: Update branch list to include v13
2023-05-05 15:37:40 +00:00
Paul Gottschling daa8361f60
Use the GHA base container for Lint (Docs) (#25173)
* Use the GHA base container for Lint (Docs)

This way, we can take advantage of the software the comes pre-installed
on the GHA `ubuntu-latest` container image. Otherwise, we need to find a
way to portably install Chromium on the `gravitational/docs` container
in order to run the Mermaid CLI. Currently, the docs engine exits with
an error during the "Lint (Docs)" job when attempting to build mermaid
diagrams due to not being able to locate Chromium.

For this change to work, the "Lint (Docs)" job checks out
`gravitational/docs`, removes the default git submodule configuration,
then adds a git submodule for the current `gravitational/teleport`
branch. From there, it can install dependencies via `yarn` and run our
CI scripts.

* s/GITHUB_HEAD_REF/GITHUB_SHA/

* Base the submodule branch source on the event type
2023-05-05 15:31:49 +00:00
Nic Klaassen c69e7a4f9e
docs: update CloudHSM docs (#25306)
Some edits I made to the CloudHSM docs while going through the v13 test
plan. The biggest change is an update to use the Client SDK 5, instead
of version 3. This has many benefits, you are not required to run a
client daemon, and it works with the kernel in FIPS mode (v3 doesn't).

I also added much more detail to the guide and added code samples where
I could, you should be able to go through this mostly without reading
the AWS docs, I link there for downloads or extra/optional information.
The AWS docs are very hard to follow.
2023-05-02 23:32:57 +00:00
Przemko Robakowski 75df7682e5
Add non-AD tests to test plan (#25266) 2023-04-27 18:49:22 +00:00
Tobiasz Heller 28e7e88f00
Fix dynamo TestEmitAuditEventForLargeEvents (#25256)
* Fix dynamo TestEmitAuditEventForLargeEvents

* extend test plan
2023-04-27 14:11:34 +00:00
Michael Wilson e4960017a8
Add SAML IdP to test plan. (#25150)
The SAML IdP feature has been added to the test plan.
2023-04-25 20:20:25 +00:00
Michael Wilson d115832d0e
Correct add application in test plan. (#24979)
Add Application has been changed to link directly to the documentation,
so the test plan has been updated accordingly.
2023-04-24 13:51:10 +00:00
Anton Miniailo 702efde420
Add IP Pinning section to testplan (#24870) 2023-04-21 13:40:17 +00:00
Alan Parra de8c4af08f
Remove U2F migration testplan instructions (#24923) 2023-04-20 19:52:46 +00:00
Marco André Dinis ec6085e949
Web TestPlan: add Discover wizard (#24808) 2023-04-20 09:07:33 +00:00
Yassine Bounekhla e56ef740ca
move locks section up (#24822) 2023-04-19 17:53:16 +00:00
Gabriel Corado a0e0ec77c0
chore(testplan): add sql server with pkinit and rds proxy (#24661) 2023-04-17 10:04:59 +00:00
STeve (Xin) Huang 0174f95741
TLS Routing behind LB test plan update (#24636) 2023-04-17 09:16:57 +00:00
Marek Smoliński a949c6d4ba
Oracle Testplan update (#24592) 2023-04-14 12:15:57 +00:00
Gavin Frazar 2446a46f1b
update test plan (#24499)
* add cross-account aws access to testplan

* add postgres cancel request to testplan
2023-04-13 21:28:46 +00:00
Nic Klaassen ab8d928794
add Login Rules and HSM to test plan (#24505) 2023-04-13 15:32:28 +00:00
Zac Bergquist 18df826a0d
Rename the web test plan issue template (#24381)
This was copied from the original test plan template, but the
name was never changed. As a result, the GitHub UI shows an
error: "There is a problem with this template"
2023-04-11 17:46:34 +00:00
Steven Martin eb149b7e26
Move docs builds down in GitHub Actions (#24382)
The docs build takes the longest so best to get a failure from the faster steps first (spelling, lint).
2023-04-11 15:20:27 +00:00
Paul Gottschling e667486c31
Support spellchecking in docs content (#23783)
* Support spellchecking in docs content

In gravitational/docs#261, we will add a script that checks the spelling
of each version of the docs. This change edits one version of the docs
content to support this, including:

- A cspell configuration file
- A new step in the GitHub Actions in the "Lint (Docs)" workflow that
  runs the spellcheck script we will add in `gravitational/docs`
- Fix mispellings so this passes the lint job. The mispellings are in a
  file that we generated automatically, but there are few enough of
  them, and we haven't merged the auto-generation script yet, that I
  think it makes sense to fix them in the generated file for now.

* Respond to PR feedback

- Remove misspellings from the ignore list
- Sort the ignore list (and format it via prettier)

* Use the new yarn spellcheck command

* Spelling fixes

* spell fixes and add words to cspell.json

---------

Co-authored-by: Steven Martin <steven@goteleport.com>
2023-04-08 01:25:30 +00:00
rosstimothy bd62bdc9a0
Update Performance section of Test Plan (#24161)
* Update Performance section of Test Plan

* add additional testing scenarios

* Update scaling section

* add random soak test
2023-04-07 19:53:31 +00:00
Mike Jensen e923525197
Disable build-macos and build-windows on PR (#24131)
* Disable `build-macos` and `build-windows` on PR

This commit removes the `build-macos` and `build-windows` from the PR flow, instead delegating to the bypass job.
These jobs still run at the merge queue point.

This of course means that failures in these two jobs may not be known until the merge queue.
There is an unequestionable disadvantage in not discovering those issues until that point, but this change is being recommended because:
* Currently MacOS builds are 31% of our Teleport Actions spend (~$3,500 / week)
* Windows builds are also significant at 13% (~$1,400 / week)
* There has been relatively few failures of these jobs (without other jobs also failing)

Although merge queue verification is not ideal because it's later in the process, it is considered the most critical in ensuring that `master` remains stable.

* Make sure all bypass jobs run on `ubuntu-latest`

In a couple cases this allows the jobs to be run on a cheaper instance.
2023-04-06 17:33:58 +00:00
Isaiah Becker-Mayer b7f0c08f2a
update Makefile to use cargo sparse protocol in all cargo commands (#23856)
* update Makefile to use cargo sparse protocol in all cargo commands

* Adds a cargo version print to build-macos for debugging

* uses the same setup steps for the rust and go toolchains as are being used in the similar enterprise workflow

* Uses the prepare-toolchain-mac composite action in the build-macos.yaml workflow.

* checkout e so that the prepare-toolchain-mac composite action is available

* Fetch the correct e ref for the composite action

* Attempts to checkout with submodules

* fetch-depth: 0

* seems that I can't get to teleport.e from the oss actions

* updates bypass

* testing ci

* testing ci

* testing for ci

* fixing indentation

* trying to get CI to actually run

* fixing indentation

* fixing lib/srv/desktop/rdp/rdpclient/client.go
2023-04-04 19:32:02 +00:00
Roman Tkachenko e71a4ec530
GHA: Update path filters to include workflow files and Makefile (#23940) 2023-04-04 02:20:59 +00:00
Andrew LeFevre 2210f49aca
Add agentless items to test plan (#23918)
* add agentless items to test plan

* add link to agentless docs
2023-04-03 21:30:26 +00:00
Steven Martin 99c5002eee
Add Flaky detector Bypass before merging (#23923)
* Add Flaky Bypass before merging

* edit to descriptions
2023-03-31 20:17:12 +00:00
Tiago Silva 5478cde0e6
Fix Flaky Tests Detector bypass on merge queue (#23896)
* Fix Flaky Tests Detector bypass on merge queue

* Do not run fld in the mq

---------

Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2023-03-31 15:24:12 +00:00
Roman Tkachenko 654ea4c364
GHA: Add bypass workflow for flaky tests detector (#23851) 2023-03-30 20:09:13 +00:00
Mike Jensen be70217e85
Remove push workflow for jobs that already run on PR and merge (#23843)
In an attempt to reduce our Actions usage this PR removes the workflow execution for `push` actions on several jobs.

The following files were left as an exception to make sure flakey tests are discovered:
* integration-tests-non-root.yaml
* integration-tests-root.yaml
* unit-tests-code.yaml
* unit-tests-integrations.yaml
2023-03-30 18:22:26 +00:00
Roman Tkachenko 2e180e4f11
GHA: Add post-release workflow that updates AMI IDs (#23583)
Co-authored-by: Victor Sokolov <gzigzigzeo@gmail.com>
2023-03-30 16:36:08 +00:00
Jeff Pihach 044e637e1c
Adds a new section to the UI for managing locks. (#22437)
New endpoints were added to the API server for fetching, creating and deleting locks.
The 'editor' role now has the ability to create, edit, and remove locks by default.
Created new SlidePanel component to easily add a panel that slides in from the right of the screen.
2023-03-30 16:11:50 +00:00
Isaiah Becker-Mayer 533b74b0f6
Bump bitflags from 1.3.2 to 2.0.2 (#23741)
* Bump bitflags from 1.3.2 to 2.0.2
Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.0.2.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](bitflags/bitflags@1.3.2...2.0.2)

---
updated-dependencies:
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-major
...

* removes todo from dependabot.yml

* removes bitflags from ignore list
2023-03-29 13:24:17 +00:00
Alan Parra a0ff11a177
chore: Drop ignore and update genproto to latest (#23655)
* chore: Drop dependabot ignore for genproto

* chore: Bump google.golang.org/genproto to latest
2023-03-27 18:45:31 +00:00
dependabot-batcher[bot] 4adf3e135a
Batched Dependabot updates (#23628)
* Bump github.com/aws/aws-sdk-go-v2/credentials from 1.13.15 to 1.13.18

Bumps [github.com/aws/aws-sdk-go-v2/credentials](https://github.com/aws/aws-sdk-go-v2) from 1.13.15 to 1.13.18.
- [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/mq/v1.13.15...service/mq/v1.13.18)

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

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

* Bump github.com/snowflakedb/gosnowflake from 1.6.17 to 1.6.19

Bumps [github.com/snowflakedb/gosnowflake](https://github.com/snowflakedb/gosnowflake) from 1.6.17 to 1.6.19.
- [Release notes](https://github.com/snowflakedb/gosnowflake/releases)
- [Changelog](https://github.com/snowflakedb/gosnowflake/blob/master/release.go)
- [Commits](https://github.com/snowflakedb/gosnowflake/compare/v1.6.17...v1.6.19)

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

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

* Bump cloud.google.com/go/container from 1.13.1 to 1.14.0

Bumps [cloud.google.com/go/container](https://github.com/googleapis/google-cloud-go) from 1.13.1 to 1.14.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/container/v1.13.1...video/v1.14.0)

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

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

* Bump github.com/fsouza/fake-gcs-server from 1.44.0 to 1.44.1

Bumps [github.com/fsouza/fake-gcs-server](https://github.com/fsouza/fake-gcs-server) from 1.44.0 to 1.44.1.
- [Release notes](https://github.com/fsouza/fake-gcs-server/releases)
- [Commits](https://github.com/fsouza/fake-gcs-server/compare/v1.44.0...v1.44.1)

---
updated-dependencies:
- dependency-name: github.com/fsouza/fake-gcs-server
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump github.com/googleapis/gax-go/v2 from 2.7.1 to 2.8.0

Bumps [github.com/googleapis/gax-go/v2](https://github.com/googleapis/gax-go) from 2.7.1 to 2.8.0.
- [Release notes](https://github.com/googleapis/gax-go/releases)
- [Commits](https://github.com/googleapis/gax-go/compare/v2.7.1...v2.8.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>

* Bump google.golang.org/grpc from 1.53.0 to 1.54.0 in /api

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.53.0 to 1.54.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.53.0...v1.54.0)

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

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

* Ignore bitflags updates

* Tidy modules

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-03-27 16:22:04 +00:00
Roman Tkachenko af0ab029f8
GHA: Add dummy post-release workflows (#23585) 2023-03-24 18:42:31 +00:00
Roman Tkachenko 505068e6c2
GHA: Flaky tests detector and cache tweaks (#23469)
* GHA: Flaky tests detector and cache tweaks

* Fix
2023-03-23 20:31:55 +00:00
Andrew Burke ec101853cb
Add Azure join method docs (#21597)
This change adds documentation for the Azure join method (#20019).
2023-03-23 17:50:06 +00:00
Paul Gottschling 75300d151e
Attempt to build the docs in "Lint (Docs)" (#23464)
In gravitational/docs#253, we substantially reduced the resource
consumption of docs builds. As a result, we can try building the docs as
part of the "Lint (Docs)" GitHub Actions workflow in order to prevent
build issues from breaking docs deployments.

It is currently possible to merge a docs content PR into
gravitational/teleport that can later end up breaking deployments of the
docs site, e.g., because a video ID is malformed, a code snippet label
is unsupported, etc. By building the docs during the lint job, we can
prevent this kind of thing from happening.

One complication is that the docs engine reads a `config.json` file to
match git submodule directories with version of the docs. In the
`gravitational/docs` container, `config.json` expects three submodules
pointing to three versions of the docs.

To get GitHub Actions to build a single docs version, this change
overrides the `config.json` file in the gravitational/docs container so
it only expects a single version of the docs.
2023-03-23 16:05:30 +00:00
Jonathan Lassoff 5d82604d58
Add a GitHub Workflow for the Trivy security scanner (#23084)
* Add a GitHub Workflow for the Trivy security scanner

* Add initial ignore statements for Trivy

This accepts all the current latent findings in the repository, while still
enabling Trivy to flag new findings.
2023-03-23 01:31:54 +00:00
Justinas Stankevičius 6af6e7f566
Vendor slack plugin and supporting libraries (#23045)
* Vendor slack plugin and supporting libraries

* Fix up plugin integration tests (wip)

* Run GCI on vendored code

* Use newtype instead of type alias

golangci-lint currently panics on this,
"skip-files" et al don't help, as it is a linter panic, not an error

See d717045480

* Remove long-runing plugins tests from difftest

* Move access plugin tests to unit-tests-integrations
2023-03-22 19:39:07 +00:00
Joel 884a95cc10
Teleport Usage Script (#23304)
* draft go script

* print end stats

* remove empty

* default start date

* prios

* todo

* update ratelimiter algo

* add comments

* dockerfile stuff

* include image workflow

* use official product names

* comments + rephrase output

* fix various script bugs

* feedback

* wording

* show users option

* use multistage to reduce image size

* make throttle error handling stable

* lowercase fns

* set go.mod to 1.19 to match main project

* Update examples/teleport-usage/main.go

Co-authored-by: Gavin Frazar <gavin.frazar@goteleport.com>

* exp ratelimit

* okay, seems binary search throttling is best

* add test coverage for ratelimiter

* add span test

* remove unused const

* use custom retry passby

* update flaky tests ci

* split job

* fix makefile

* oops

* run tests in integration job

* go mod tidy

---------

Co-authored-by: Gavin Frazar <gavin.frazar@goteleport.com>
2023-03-22 16:36:21 +00:00
Hugo Shaka 5040fbda56
kube-updater: add Dockerfile & GHA pipelines (#22983) 2023-03-22 13:05:02 +00:00
Mike Jensen 2e2911438d
Update CodeQL Schedule to scan release branches (#23169)
* Update CodeQL Schedule to scan release branches

This allows us to switch our release branches to also use the scheduled CodeQL check so we can remove CodeQL from the PR flow for our release branches too.

* Use go dependency caching with auto build

This change speeds up the build by about ~2 minutes (10%)
2023-03-17 15:12:00 +00:00
Mike Jensen 7ee72cd194
Build API on root go.mod changes (#23170)
Without this build step when the root go.mod is changed it's possible to merge a change that will result in api dependencies being out of sync.
2023-03-16 13:40:48 +00:00
Mike Jensen f0987b5198
Remove ossfuzz from CI (#23089)
This removal is primarily cost motivated.  We will continue to have scheduled scans executed by ossfuzz, but for now we are disabling this job from our PR / merge queue workflows.
2023-03-15 00:43:20 +00:00
Steven Martin 1f01bc3a4b
add bypasses for lint go and lint docs (#22299)
* Adds bypass for lint go for RFD and Docs changes.

* spacing

* Update docs test to only check for docs, examples changes or bypass

* include merge groups

* test docs change

* remove change

* Test go change

* remove go test change

* test doc changes

* remove docs test change

* fix indentation

* fix indentation
2023-03-14 19:22:13 +00:00
Grzegorz Zdunek dab301b182
Add testplan items for Connect config (#22873)
* Add testplan items for Connect config

* Rename "three dots" to "More Options"
2023-03-14 10:04:16 +00:00
Mike Jensen dab1eb5e27
CodeQL improvements (#22854)
This makes two changes:
* Reduces action instance type to 16 cores.  This will half the cost without a significant speed difference
* Switch from `make full` to CodeQL Auto Build.  This speeds up the build by about 10 minutes.  I confirmed there is not a reduction in the scan coverage
2023-03-09 21:56:47 +00:00
Hugo Shaka 3a9c96d37a
kube-updater: initial commit (#22067)
This PR implements the core of the kube-agent-updater, which is part of
https://github.com/gravitational/teleport/issues/21516#issue-1576935859

In order to have a fully working updater we still need to:
- implement the interfaces for version retrieval, image validation and maintenance trigger
- add statefulset support (and deal with the potential deadlocks)
- implement the CI and release pipeline (Dockerfile, README, Makefile, github action, drone)
- integrate in the `teleport-kube-agent` helm chart

Those changes will happen in subsequent PRs.
2023-03-06 18:40:28 +00:00
Hugo Shaka 9e1f53d33a
Move operator into integrations/ (#22618)
* Move operator into `integrations/`

* fixup! Move operator into `integrations/`

* fixup! fixup! Move operator into `integrations/`

* fixup! fixup! fixup! Move operator into `integrations/`

* fixup! fixup! fixup! fixup! Move operator into `integrations/`
2023-03-06 17:59:02 +00:00
Roman Tkachenko d4163e1d01
Flaky tests detector tweaks (#22607) 2023-03-03 20:50:13 +00:00
Jakub Nyckowski 8329021148
Skip building webassets in CI (#22549)
* Skip building webassets in CI

Building webassets is not always needed and many of our CI build just builds them and ends up not using them after.
This PR skips building the webassets for all pipelines where they are not needed. This should save us some time and $$.

* Make some changes to trigger CI

* Create the missing directory
2023-03-03 15:14:25 +00:00
Roman Tkachenko 9537bd8d1a
Run UI checks in merge queue (#22323) 2023-02-27 17:36:39 +00:00
Jeff Pihach 2973755587
add bypassses for UI GHA's (#22105) 2023-02-22 17:31:43 +00:00
Zac Bergquist caec32a2a4
CI: bypass OS compatibility check for some changes (#21989)
Docs changes, web UI changes, or RFD updates cannot change the
OS compatibility of Teleport, so allow them to bypass the
OS compatibililty check.
2023-02-17 18:39:58 +00:00
Mike Jensen 10bd548162
Switch CodeQL to scheduled (#21883)
We still plan to address this root issue, and are tracking making CodeQl faster so it can be a required PR check: https://github.com/gravitational/SecOps/issues/269

However, until then we need to switch this job to be a scheduled task rather than on every PR and push.  This is partly cost motivated, but also we are already hitting our timeouts.  This PR also increases the analysis timeout so that the daily job can be sure to complete.
2023-02-16 17:30:59 +00:00
Jakub Nyckowski e62ff82183
Unify x86/ARM64 build process (#21660)
* Unify x86/AMD64 build process

Currently, our ARM64 pipeline builds limited subset of Teleport features as none of the 3rd party dependencies (openssh, libbpf etc) are not built on AMR64. This change build all dependencies on AMR64 in the same way as we do on x86.

FIPS changes are not included as we do not support FIPS on ARM64.

* Apply suggestions from code review

Co-authored-by: Roman Tkachenko <roman@goteleport.com>

---------

Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2023-02-15 15:38:59 +00:00
Roman Tkachenko f57150376f
Run reviewers check on (un)labeled PR events (#21814) 2023-02-14 16:56:39 +00:00
Zac Bergquist c924be5c6d
Refer to tsh apps subcommand (#21431)
The `tsh appps` family of commands is aliased to `tsh apps`, so both
invocations work correctly. The command itself is defined as `tsh apps`,
so this is what appears in the help message.

Update references to `tsh app` to recommend `tsh apps` instead so that
there isn't confusion when browsing `tsh help` and looking for a missing
`app` subcommand.

Fixes #21367
2023-02-10 21:40:55 +00:00
Zac Bergquist d74d78b9f0
Create go workspace prior to build (#21668) 2023-02-10 21:18:18 +00:00
Zac Bergquist 46bfc6bd8a
Fix build-api workflow (#21658)
- Add missing runs-on stanza
- Fix recursive glob
2023-02-10 17:24:48 +00:00
Alan Parra f8386bf0ae
Add testplan items for Device Trust role support (#21472)
* Add testplan items for Device Trust role support

* Trim whitespaces
2023-02-10 15:53:59 +00:00
Jakub Nyckowski 20f5d0b3e0
Move CentOS 7 assets to GitHub repo (#21435)
Moving our CentOS build assets, aka Clang-10 is the first step to enabling our full Teleport to build on ARM64. This change should also save us some $$ as getting the assets from S3 sounds expensive.
2023-02-10 15:46:36 +00:00
Joel f93d401df2
Update Firestore and held-back dependencies (#21190)
* update dep

* implicit aggregate

* fix kind check

* remove cring address manip

* correct import

* invert if

* fix rename

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2023-02-10 14:20:15 +00:00
Gabriel Corado 22dc3dfb2e
Update SQL Server library (#21065)
* refactor(sqlserver): change to microsoft fork

* chore(gomod): update mssqldb dep

* test(sqlserver): add server on parsing PLP RPC packets

* fix(db): change mssql import

* chore(gomod): update go-mssqldb reference

* test(protocol): use fuzz arguments

* chore: code review suggestions

* test(sqlserver): add missing protocols attribute
2023-02-10 11:39:11 +00:00
Edoardo Spadolini 5122f308e6
Run go mod tidy in CI (#21140)
* Run go mod tidy in CI

* Update e_imports.go

* Use git diff on just go.mod/go.sum, tidy api too

* Fix the e_imports list by accomodating build tags

* Wording

* Simplify commands in the workflow

* Delete go.sum before go mod tidy

* Shell suggestions

* Fix missing saml imports for upcoming PRs
2023-02-08 17:22:21 +00:00
Roman Tkachenko ea5f334821
Fix operator build (#21362) 2023-02-07 01:15:55 +00:00
Krzysztof Skrzętnicki 1ca9a37dde
Test plan: expand test description for proxy service TLS routing. (#20697)
* Test plan: expand test description for proxy service TLS routing.

* Expand the description of open ports.
2023-02-06 18:47:15 +00:00
Michael Wilson 6f9ad9553a
Protos-up-to-date is now part of the lint job. (#21217)
The lint job now includes protos-up-to-date as a step.
2023-02-03 16:05:36 +00:00
Jeff Pihach 26f6022689
Initial pass at lint and test GHA for UI. (#21110)
* Initial pass at lint and test GHA for UI.

* Fix lint

* Add --frozen-lockfile

* Skip the e directory if it doesn't exist while linting.

* Update failing snapshots.

* use a more reasonable filter for eslint to support missing e

* ignore type check on e imports.

* ignore failing file that requires e teleterm file.

* fix lint

* quiet down the log output for prettier-write.
2023-02-02 22:56:55 +00:00
Tiago Silva b2c2886341
Update Kubernetes Access test plan (#20274)
* Update Kubernetes Access test plan

* update

* add gke auto-discovery
2023-02-02 18:01:19 +00:00
Michael Wilson 6bf65b0f4d
Add check if protos are up to date. (#21066)
* Add check if protos are up to date.

A new check has been added that will detect if protobufs are up to date. The
script will exit abnormally if protobufs need to be regenerated.

* Alan's feedback.

* Restoring the script.

* Update script comment.

* Add in the set -eu.

* Add a comment for the pull_request/merge_group bit in the new github action.

* Remove helper script.

* Reduce the runner size.
2023-02-02 05:54:20 +00:00
dependabot-batcher[bot] e1673dec70
Batched Dependabot updates (#21043)
* Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc

Bumps [go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.37.0 to 0.38.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go-contrib/compare/zpages/v0.37.0...zpages/v0.38.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
  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 from 1.44.189 to 1.44.191

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.189 to 1.44.191.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.189...v1.44.191)

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

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

* Bump sigs.k8s.io/controller-tools from 0.11.1 to 0.11.2

Bumps [sigs.k8s.io/controller-tools](https://github.com/kubernetes-sigs/controller-tools) from 0.11.1 to 0.11.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-tools/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-tools/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-tools/compare/v0.11.1...v0.11.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-tools
  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.80.1 to 1.83.0

Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.80.1 to 1.83.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.80.1...service/ec2/v1.83.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 go.opentelemetry.io/otel/sdk from 1.11.2 to 1.12.0 in /api

Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.11.2 to 1.12.0.
- [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.2...v1.12.0)

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

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

* Bump cloud.google.com/go/container from 1.10.0 to 1.13.0

Bumps [cloud.google.com/go/container](https://github.com/googleapis/google-cloud-go) from 1.10.0 to 1.13.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/asset/v1.10.0...pubsub/v1.13.0)

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

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

* Revert "Bump cloud.google.com/go/container from 1.10.0 to 1.13.0"

This reverts commit 8987cba9a0aa8bd26743dabee99f8336637e35be.

* go mod tidy

* bring back coreos/pkg

* add container to ingores deps

* Bumps go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from 0.37.0 to 0.38.0

* Bumps go.opentelemetry.io/otel/exporters/otlp/otlptrace from 1.11.2 to 1.12.0

* Bumps go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.11.2 to 1.12.0

* Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp from 1.11.2 to 1.12.0

* Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tobiasz Heller <tobiasz.heller@goteleport.com>
2023-02-01 17:06:45 +00:00
dependabot-batcher[bot] 26a623b5be
Batched Dependabot updates (#20903)
* Bump google.golang.org/grpc from 1.52.1 to 1.52.3

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.52.1 to 1.52.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.52.1...v1.52.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  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 from 1.44.186 to 1.44.189

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.186 to 1.44.189.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.186...v1.44.189)

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

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

* Bump sigs.k8s.io/controller-runtime from 0.14.1 to 0.14.2

Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.14.1 to 0.14.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.14.1...v0.14.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  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/config from 1.18.9 to 1.18.10

Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.18.9 to 1.18.10.
- [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.18.9...config/v1.18.10)

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

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

* Bump github.com/bufbuild/connect-go from 1.4.1 to 1.5.0

Bumps [github.com/bufbuild/connect-go](https://github.com/bufbuild/connect-go) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/bufbuild/connect-go/releases)
- [Commits](https://github.com/bufbuild/connect-go/compare/v1.4.1...v1.5.0)

---
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 github.com/snowflakedb/gosnowflake from 1.6.16 to 1.6.17

Bumps [github.com/snowflakedb/gosnowflake](https://github.com/snowflakedb/gosnowflake) from 1.6.16 to 1.6.17.
- [Release notes](https://github.com/snowflakedb/gosnowflake/releases)
- [Changelog](https://github.com/snowflakedb/gosnowflake/blob/master/release.go)
- [Commits](https://github.com/snowflakedb/gosnowflake/compare/v1.6.16...v1.6.17)

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

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

* Bump github.com/Azure/azure-sdk-for-go/sdk/azidentity

Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/v1.2...sdk/azidentity/v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump github.com/go-webauthn/webauthn from 0.5.0 to 0.7.0

Bumps [github.com/go-webauthn/webauthn](https://github.com/go-webauthn/webauthn) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/go-webauthn/webauthn/releases)
- [Commits](https://github.com/go-webauthn/webauthn/compare/v0.5.0...v0.7.0)

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

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

* Bump google.golang.org/grpc from 1.52.1 to 1.52.3 in /api

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.52.1 to 1.52.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.52.1...v1.52.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Revert "Bump github.com/go-webauthn/webauthn from 0.5.0 to 0.7.0"

This reverts commit 5cb883d540e37b21c457b2f00886798ef734845f.

* add go-webauthn to dependabot skip

* bring back coreos/pkg

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tobiasz Heller <tobiasz.heller@goteleport.com>
Co-authored-by: Tobiasz Heller <14020794+tobiaszheller@users.noreply.github.com>
Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2023-01-31 20:26:29 +00:00
Zac Bergquist f8921bf85f
Add workflow for building the API module (#20902)
In the past, we've mistakenly introduced dependencies on a newer
Go version than what the API module declares as its minimum
required version.

To prevent this from happening in the future, this job will build
the API with the version of Go declared by the API.
2023-01-31 19:59:16 +00:00
Rafał Cieślak 2e1420d07f
Add more items to Connect test plan (#20909) 2023-01-31 11:28:02 +00:00
Gavin Frazar 082886579f
update test plan to include tsh aws -e (#20878) 2023-01-30 17:55:19 +00:00
Roman Tkachenko 170eee2c0d
Use ghcr image for doc tests (#20874) 2023-01-28 03:30:47 +00:00
Ada 43100d4ed0
Remove environment in check and backport workflows (#20862)
Context:
* Update the workflows to use repository secrets instead of environment
  secrets
2023-01-27 22:16:17 +00:00
Brian Joerger ff60acd2f2
Remove app access from hardware key support tests since it is currently not supported. (#20787) 2023-01-27 20:50:44 +00:00
Zac Bergquist b817a05d91
Use a GitHub app for the check and backport workflows (#20850)
These workflows need to be able to check org membership
for the PR author in order to determine whether or not
the author is an internal employee. This information is
only available when authenticated.
2023-01-27 20:39:18 +00:00
Roman Tkachenko 2838091b4b
Add fake "check reviewers" workflow for merge queue (#20851) 2023-01-27 12:10:30 -08:00
Reed Loden 278e74d260
ci: Use large macOS runner for build-macos workflow (#20713)
Use larger macOS runner with GitHub Actions to speed up builds.

Comment-only change to `client.go` to cause macOS build to be run.
2023-01-25 19:39:22 +00:00
rosstimothy 4cc1c76e4d
Batched dependabot updates (#20624)
* Update rsa requirement in /lib/srv/desktop/rdp/rdpclient

Updates the requirements on [rsa](https://github.com/RustCrypto/RSA) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/RSA/releases)
- [Changelog](https://github.com/RustCrypto/RSA/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RustCrypto/RSA/compare/v0.7.2...v0.8.1)

---
updated-dependencies:
- dependency-name: rsa
  dependency-type: direct:production
...

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

* Bump rsa from 0.7.2 to 0.8.1

Bumps [rsa](https://github.com/RustCrypto/RSA) from 0.7.2 to 0.8.1.
- [Release notes](https://github.com/RustCrypto/RSA/releases)
- [Changelog](https://github.com/RustCrypto/RSA/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RustCrypto/RSA/compare/v0.7.2...v0.8.1)

---
updated-dependencies:
- dependency-name: rsa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump github.com/gravitational/trace from 1.2.0 to 1.2.1 in /api

Bumps [github.com/gravitational/trace](https://github.com/gravitational/trace) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/gravitational/trace/releases)
- [Commits](https://github.com/gravitational/trace/compare/v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/gravitational/trace
  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 from 1.44.180 to 1.44.184

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.180 to 1.44.184.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.180...v1.44.184)

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

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

* Bump github.com/coreos/go-semver from 0.3.0 to 0.3.1

Bumps [github.com/coreos/go-semver](https://github.com/coreos/go-semver) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/coreos/go-semver/releases)
- [Commits](https://github.com/coreos/go-semver/compare/v0.3.0...v0.3.1)

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

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

* Bump k8s.io/apimachinery from 0.26.0 to 0.26.1

Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/kubernetes/apimachinery/releases)
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.26.0...v0.26.1)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  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.78.0 to 1.80.0

Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.78.0 to 1.80.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.78.0...service/ec2/v1.80.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 k8s.io/api from 0.26.0 to 0.26.1

Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/kubernetes/api/releases)
- [Commits](https://github.com/kubernetes/api/compare/v0.26.0...v0.26.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump cloud.google.com/go/storage from 1.28.1 to 1.29.0

Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.28.1 to 1.29.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/storage/v1.28.1...spanner/v1.29.0)

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

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

* Bump k8s.io/cli-runtime from 0.26.0 to 0.26.1

Bumps [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/kubernetes/cli-runtime/releases)
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.26.0...v0.26.1)

---
updated-dependencies:
- dependency-name: k8s.io/cli-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* revert firestore to v1.6.0

* Bump k8s.io/kubectl from 0.26.0 to 0.26.1

Bumps [k8s.io/kubectl](https://github.com/kubernetes/kubectl) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/kubernetes/kubectl/releases)
- [Commits](https://github.com/kubernetes/kubectl/compare/v0.26.0...v0.26.1)

---
updated-dependencies:
- dependency-name: k8s.io/kubectl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump k8s.io/client-go from 0.26.0 to 0.26.1

Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.26.0...v0.26.1)

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

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

* Bump k8s.io/apiserver from 0.26.0 to 0.26.1

Bumps [k8s.io/apiserver](https://github.com/kubernetes/apiserver) from 0.26.0 to 0.26.1.
- [Release notes](https://github.com/kubernetes/apiserver/releases)
- [Commits](https://github.com/kubernetes/apiserver/compare/v0.26.0...v0.26.1)

---
updated-dependencies:
- dependency-name: k8s.io/apiserver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* use firestore v1.6.1

* go mod tidy

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-batcher[bot] <122306277+dependabot-batcher[bot]@users.noreply.github.com>
2023-01-25 00:25:59 +00:00
Brian Joerger 5b6e2ada79
Test plan additions (#20586) 2023-01-24 17:41:45 +00:00
Jakub Nyckowski c1f59a1803
Disconnect moderated session on Ctrl+C (#20580)
* Disconnect moderated session on Ctrl+C

* Add moderated session to the test plan.
2023-01-24 01:37:34 +00:00
Mike Jensen 261dce259f
dependabot-batcher - Specify environment (#20563)
The environment needs to be specified to have access tot he GitHub App auth.
2023-01-23 18:41:52 +00:00
Mike Jensen 2235827c0e
Update dependabot-batcher to use GitHub app for authentication (#20342) 2023-01-23 13:42:39 +00:00
Roman Tkachenko 98fba76f80
Switch to teleport13 buildbox in CI (#20430) 2023-01-19 13:54:25 -08:00
Alan Parra 4afd9df966
Add credential picker to passwordless testplan (#20431)
Add an item to cover credential pickers in the testplan.
2023-01-19 20:59:19 +00:00
Edoardo Spadolini 1267b3b466
Add trusted cluster role map editing to the test plan (#20325) 2023-01-19 14:51:22 +00:00
Jeff Pihach 34f102bdeb
Enable building teleport with the new UI location (#20361)
* Changes for merging webapps into teleport.
2023-01-18 22:22:25 +00:00
Roman Tkachenko a4967833e2
Add flaky tests detector. (#20320)
Co-authored-by: Victor Sokolov <gzigzigzeo@gmail.com>
2023-01-18 10:29:10 -08:00
Krzysztof Skrzętnicki 06a837eb58
Add Azure and GCP integration to the test plan. (#20182) 2023-01-14 02:54:23 +00:00
Zac Bergquist 553381d3c0
Break web UI test plan out into a separate template (#20136)
Co-authored-by: Isaiah Becker-Mayer <isaiah@goteleport.com>
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-01-12 22:58:20 +00:00
STeve (Xin) Huang f9e4b28b5a
Add RDS Proxy and Redshift Serverless to test plan (#20098) 2023-01-12 20:23:34 +00:00
Gabriel Corado d73c54f79f
feat(issue_template): add azure sql server to testplan (#20123) 2023-01-12 17:51:46 +00:00
rosstimothy 3ebbfdd222
Batch Dependabot PRs (#19745) 2023-01-05 13:13:05 +00:00
Jakub Nyckowski d68cb9377b
Switch golang.org/x/crypto to gravitational fork (#19579)
* Switch golang.org/x/crypto to gravitational fork

* Update golden files

* Add comment to go.mod

* Update api module to use crypto fork.

* Move x/crypto to replaced section in dependabot.yml
2023-01-04 19:30:58 +00:00
rosstimothy d3cb592304
Dependency Updates (#19814)
* Bump github.com/aws/aws-sdk-go-v2/config from 1.18.6 to 1.18.7

Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.18.6 to 1.18.7.
- [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.18.6...config/v1.18.7)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
  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 from 1.44.163 to 1.44.171

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.163 to 1.44.171.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.163...v1.44.171)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  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>
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-01-04 15:03:24 +00:00
Roman Tkachenko 844fff1767
Add merge_group triggers to GHA CI workflows (#19749) 2022-12-30 21:11:48 +00:00
Roman Tkachenko c6d2b1d3ea
Add docs section to test plan (#18179) 2022-12-30 18:50:27 +00:00
Gavin Frazar 5bb0ef15db
add dynamodb database access (#18843)
* Add a new db engine
* Add tests for new engine
* Update tsh db subcommands
* Refactor error message and suggestions for unsupported tsh commands
* Add dynamodb to test plan
* Add AWS external ID to db config and update protos
2022-12-30 18:22:30 +00:00
Roman Tkachenko f690008528
Fix missing closing apostrophe on operator workflow (#19740) 2022-12-30 00:56:25 +00:00
Roman Tkachenko c286e4cd94
Run GHA tests on Dockerfile updates (#19622) 2022-12-22 20:08:52 +00:00
Roman Tkachenko 1b387aba2c
Run GHA tests when build.assets/Makefile changes (#19616) 2022-12-22 19:04:44 +00:00
Roman Tkachenko f873cbe0ce
Fix skipped but required checks for Github Actions (#19594) 2022-12-22 01:44:11 +00:00
Jakub Nyckowski fcdde32955
Add BPF to the test plan (#19380)
Add BPF-related tests to the test plan.
2022-12-21 19:46:21 +00:00
Rafał Cieślak 380b572152
Update Teleport Connect test plan (#17123)
Co-authored-by: Michael <michael.myers@goteleport.com>
Co-authored-by: Grzegorz Zdunek <grzegorz.zdunek@goteleport.com>
2022-12-20 15:39:59 +00:00
Roman Tkachenko 91f7030900
Add workflows that build tools on Mac OS and Windows (#19226)
Signed-off-by: Roman Tkachenko <roman@goteleport.com>
Co-authored-by: Victor Sokolov <gzigzigzeo@gmail.com>
2022-12-20 05:25:56 +00:00
Russell Jones f44b36ada6 Added "Robustness" section to test plan.
Added "Robustness" section to test plan that tests connectivity without
access to Auth Server.
2022-12-19 11:26:39 -08:00
rosstimothy 3f52d028fb
Dependency updates (#19329)
* Bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp

Bumps [go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.36.4 to 0.37.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go-contrib/compare/zpages/v0.36.4...zpages/v0.37.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump k8s.io/apiserver from 0.25.4 to 0.26.0

Bumps [k8s.io/apiserver](https://github.com/kubernetes/apiserver) from 0.25.4 to 0.26.0.
- [Release notes](https://github.com/kubernetes/apiserver/releases)
- [Commits](https://github.com/kubernetes/apiserver/compare/v0.25.4...v0.26.0)

---
updated-dependencies:
- dependency-name: k8s.io/apiserver
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Bump cloud.google.com/go/storage from 1.28.0 to 1.28.1

Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.28.0 to 1.28.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/pubsub/v1.28.0...storage/v1.28.1)

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

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

* Bump github.com/schollz/progressbar/v3 from 3.12.1 to 3.12.2

Bumps [github.com/schollz/progressbar/v3](https://github.com/schollz/progressbar) from 3.12.1 to 3.12.2.
- [Release notes](https://github.com/schollz/progressbar/releases)
- [Commits](https://github.com/schollz/progressbar/compare/v3.12.1...v3.12.2)

---
updated-dependencies:
- dependency-name: github.com/schollz/progressbar/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Bump cloud.google.com/go/iam from 0.7.0 to 0.8.0

Bumps [cloud.google.com/go/iam](https://github.com/googleapis/google-cloud-go) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/v0.7.0...v0.8.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>

* Bump golang.org/x/text from 0.4.0 to 0.5.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  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>
Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>
2022-12-16 21:53:25 +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
Hugo Shaka 207567b548
helm: use new helm-unittest plugin (#18964)
* Invoke helm plugins with correct path
* helm: breaking - change helm unittest plugin
* helm: document test plugin fork choice
* Add Makefile target checking helm plugins
2022-12-05 18:58:32 +00:00
Hugo Shaka f0dd7d7d85
Kubernetes joinMethod (#18659)
This commit adds a new joinMethod as described in https://github.com/gravitational/teleport/pull/17905

This method allow pods running in the same Kubernetes cluster than the auth servers to join the Teleport cluster. It relies on Kubernetes tokens to establish trust. The goal is to be able to deploy proxies and auths separately and join them in a single cluser.

Pre Kubernetes 1.20, the tokens are static, long-lived, not bound to pods. We support them for compatibility reasons. Starting with Kubernetes 1.20, tokens are bound to pods (and starting with 1.21 they can be mounted through projected volumes). Starting with 1.21 we should only accept bound tokens. The chart will ensure tokens are properly mounted with projected volumes so we can benefit from the 1h to 10min token lifetime.
2022-12-02 20:30:52 +00:00
Roman Tkachenko 710b7d18ef
Implicitly set go version in prepare-workspace (#18953)
- Determine Go version for cache key automatically instead of hardcoding.
- Do not build ghcr CI images (etcd and buildboxes) on PRs to avoid unintended breakages.
- Only build/push them on push events which mirrors our current Drone setup. We might add ability to trigger them manually via workflow_dispatch events later.
- Add release branches pattern for buildbox images trigger as well.
- Remove packages: read permission from test jobs since buildbox images are now public.

Signed-off-by: Roman Tkachenko <roman@goteleport.com>
Co-authored-by: Victor Sokolov <gzigzigzeo@gmail.com>
2022-12-01 00:40:53 +00:00
Roman Tkachenko cda4be5273
Add Go version to GHA cache key and CI image workflow (#18877)
* Include Go version in the cache key to prevent cache reuse when upgrading Go.
* Push buildboxes to Github container registry to avoid public ECR rate limiting.

Signed-off-by: Roman Tkachenko <roman@goteleport.com>
Co-authored-by: Victor Sokolov <gzigzigzeo@gmail.com>
2022-11-30 00:25:45 +00:00
Alan Parra 77cd4e600a
Ignore Dependabot crypto updates on api/go.mod (#18866)
Add the crypto ignore to `/api` too.
2022-11-29 19:05:36 +00:00
Alan Parra 118c91f4c2
Bump Go dependencies (#18819)
Manually bump Go dependency versions, directs only.

A few release logs for bumps that caught the eye:

* https://github.com/grpc/grpc-go/releases/tag/v1.51.0
* https://github.com/elastic/go-elasticsearch/blob/main/CHANGELOG.md
* https://github.com/go-redis/redis/blob/master/CHANGELOG.md
* https://github.com/moby/term/commits/master
2022-11-29 13:31:58 +00:00
Roman Tkachenko a6dfac72ed
Set permissions for GHA workflows (#18728) 2022-11-22 17:35:43 -08:00
Roman Tkachenko 3fd1cca5b2
Github Actions workflow (#18617)
Signed-off-by: Roman Tkachenko <roman@goteleport.com>
Co-authored-by: Victor Sokolov <gzigzigzeo@gmail.com>
2022-11-22 16:55:26 -05:00
Mike Jensen 2d345bd0e7
CodeQL: Rename from codeql-analysis.yml to codeql.yml (#18663) 2022-11-22 16:37:41 +00:00
Alan Parra c09792fd4a
Add warning about /x/crypto v0.3.0+ updates (#18570)
[A recent /x/crypto commit][1] breaks compatibility with OpenSSH <=7.6, so we
are adding a warning to avoid bumping crypto until that is solved.

As a last resort we have https://github.com/gravitational/crypto, but we are not
using it yet.

[1]: 6fad3dfc18
2022-11-17 19:56:32 +00:00
Alan Parra 2a25c3eeda
Bump Go dependencies (#18531)
Update minor/patch versions of direct dependencies.

Changelogs (minor bumps):

* https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md
* https://github.com/aws/aws-sdk-go-v2/blob/main/config/CHANGELOG.md
* https://github.com/aws/aws-sdk-go-v2/blob/main/credentials/CHANGELOG.md
* https://github.com/googleapis/gax-go/blob/main/v2/CHANGES.md
* https://github.com/mdlayher/netlink/blob/main/CHANGELOG.md
2022-11-17 17:46:51 +00:00
Alan Parra 2ad0c04542
Bump Go dependencies (#18267)
Pull in dependency updates from the past few weeks.

Done using `go get -u ./...`, with some manual cherry-picking to avoid
[problematic/forked modules][1].

google-cloud-go proto migration guide:
https://github.com/googleapis/google-cloud-go/blob/main/migration.md.

[1]: https://github.com/gravitational/teleport/blob/master/.github/dependabot.yml#L7
2022-11-08 20:31:08 +00:00
Isaiah Becker-Mayer 75373dd412
Updates clipboard docs and testplan (#17965) 2022-11-02 21:49:41 +00:00
Tiago Silva b52590fe31
Update Kubernetes Access test plan (#16998)
* Update Kubernetes Access test plan
2022-10-27 17:09:03 +00:00
Brian Joerger 013b87d025
Fix Hardware Key support for App Access (#17674) 2022-10-21 21:32:37 +00:00
Alex McGrath b2d1a39d2c
Update testplan for ec2 instance discovery (#17223) 2022-10-19 13:13:49 +00:00
Tobiasz Heller 4a346830c5
Update testplan with windows hello tasks (#17422) 2022-10-17 17:39:44 +00:00
Jeff Pihach 5614107997
Correct shortcut for switching terminals on mac (#17404)
* Correct shortcut for switching terminals on mac
2022-10-14 16:05:17 +00:00