Commit Graph
9343 Commits
Author SHA1 Message Date
Walt Della 531bc515ae Fetch tags when promoting rpm/deb
Without this any tag that isn't part of the history on master will fail
to successfully promote.  This breaks most dev builds, which don't end
up as part of master or a release branch.
2022-10-04 14:38:15 -07:00
Walt Della 0bd1d1b3d5 Fix OS package repo promotion issue
Without these changes, the promote step will always fail because of a
mismatch between where the repo is cloned and where it is referenced:

  /go/src/.../teleport.git
vs
  /go/src/.../teleport

(cherry picked from commit b209b98f0d)
2022-10-04 14:38:15 -07:00
Walt Della cde282365b Run Dronegen
@Joerger missed running it before
https://github.com/gravitational/teleport/pull/15874 merged.
2022-10-04 14:38:15 -07:00
Alan Parra 4615abd757 Tidy modules (#17015)
Tidy Go modules and re-adds a few modules removed by #16971.
2022-10-04 20:30:45 +00:00
Zac BergquistandHugo Shaka 91719f064a Ensure operator tests are run when Go dependencies change (#17000)
Co-authored-by: Hugo Shaka <hugo.hervieux@goteleport.com>
2022-10-04 20:15:31 +00:00
Steven Martin 9fb62b503f correct plugin name reference (#17013)
* correct plugin name

* correct plugin name
2022-10-04 19:37:49 +00:00
dependabot[bot] f14f70b1ee Bump github.com/aws/aws-sdk-go-v2/config from 1.17.7 to 1.17.8 (#16971)
Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.17.7 to 1.17.8.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.17.7...config/v1.17.8)

---
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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-04 18:46:14 +00:00
Lisa Kim 8bb0636863 Partial delete deprecated code for "DELETE IN 11.0.0" and lower (#16947)
* Deleted 
   - GetAppServers
   - GetApplicationServers 
   - GetDatabaseServers 
   - GetKubeService 
   - UpsertAppServer
   - DeleteAppServer
   - DeleteAllAppServers
   - RotateUserTokenSecrets
* Delete list nodes fallback
* Use AppServer type for heartbeat test
2022-10-04 17:58:30 +00:00
Alan Parra 2b44e5f23e Bump golangci-lint to 1.50.0 (#16966)
Update golangci-lint to v1.50.0 and fix a few linter issues.
2022-10-04 17:28:23 +00:00
Alex Fornuto cf89f568fc correct protocol name (#16848) 2022-10-04 11:47:59 -05:00
David Boslee 0edbc8252b Add documentation for proxy peering (#15790) 2022-10-04 11:00:37 -05:00
Mike Wilson a4af8ae256 Revert "Ensure audit logging of tsh app login."
This reverts commit 31859e5d30.
2022-10-04 11:14:12 -04:00
Michael WilsonandRoman Tkachenko f9fb39206e Update tool/tsh/app.go
Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2022-10-04 10:53:20 -04:00
Mike Wilson 6b269b630e Fix unit test. 2022-10-04 10:53:20 -04:00
Michael WilsonandZac Bergquist 3dbe762526 Update tool/tsh/app.go
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2022-10-04 10:53:20 -04:00
Mike Wilson 3321c45bf2 Remove cacert flag from curl output during tsh app login.
The cacert flag was removed from the curl output during the tsh app login as
most production Teleport clusters are likely to be using publicly trusted CAs,
and therefore wouldn't need the flag. If the user specifies an insecure login,
however, the cacert flag is included with the curl output as it used to be.

Additionally, some tests have been added for the formatAppConfig function. It
was discovered that the YAML output format was outputting two newlines, so a
small modification was made to remove this.

Addresses issue #7518.
2022-10-04 10:53:20 -04:00
Ryan Clark e7b022de1d Fix incorrect proxy_servers mention in the config reference docs (#16962) 2022-10-04 14:30:43 +00:00
Alan Parra ee5d2df565 Enable automatic updates via Dependabot (#16907)
Let the robots do regular updates for us.

References:
* [Configure dependabot.yml][1]
* [Configure security updates][2]

[1]: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
[2]: https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#overriding-the-default-behavior-with-a-configuration-file
2022-10-04 14:14:20 +00:00
STeve (Xin) Huang 684f3e5468 Refactor TestResolveEndpoints to avoid test failure when AWS SDK changes (#16943) 2022-10-04 12:32:36 +00:00
Gabriel Corado 0f67969138 Add message for "certificate has expired" error on database connect (#14794) 2022-10-04 12:02:34 +00:00
Forrest Marshall bd0ae3819b RFD 0090 - Upgrade System 2022-10-03 17:51:30 -07:00
Lisa Kim bc81db4655 Use field hostname for node resource for predicate expr using "name" identifier (#16902)
* Predicate expressions using the "name" identifier will now use
  field "hostname" when `ls` querying for nodes, as expected by
  the user
* Change predicate expression for access request that use
  name identifier to using the actual json field names
2022-10-04 00:20:04 +00:00
Zac Bergquist bb0000441f Improve BPF tests (#16939)
This doesn't address the flakiness in TestRootScript, but it does:

- ensure that the background goroutine terminates
- ensure that test failures are only done in the main goroutine
- fix a race condition due to the shadowing of the 'err' variable

Updates #16908
2022-10-03 17:53:53 -06:00
Alex FornutoandPaul Gottschling 7162921bbc [Docs] Update and Align Metric Reference (#16857)
* format table

* Re-implement #14729

* Apply suggestions from code review

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

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2022-10-03 23:17:42 +00:00
Christopher CooperandNic Klaassen b3800ca500 Ccooper/add proxy ls auth ls 12965 (#14701)
* check if proxy requested already has an active profile that is not expired before relogging the user in

maintain cert reissue

use site name

make client for currently logged in proxy

simplify if

remove cert reissue

simplify and add test

revert comment

explicitly save profile

add initial commands

add better output

* review comments

* Update tool/tctl/common/proxy_command.go

Co-authored-by: Nic Klaassen <nic@goteleport.com>

* Update tool/tctl/common/proxy_command.go

Co-authored-by: Nic Klaassen <nic@goteleport.com>

* remove stdout redirect for now

* lint

Co-authored-by: Nic Klaassen <nic@goteleport.com>
2022-10-03 19:01:37 -04:00
STeve (Xin) Huang d319ee2734 Azure Cache for Redis auto discovery (#16755) 2022-10-03 20:54:44 +00:00
Michael Wilson d6f575517b Fix CIFuzz artifact upload (#16802)
The CI fuzz artifacts upload will now work as expected. The artifacts produced
by oss-fuzz were (partially) chmodded 600 and owned by root, so an explicit
chmod step has been added to the cifuzz workflow.
2022-10-03 20:25:29 +00:00
Jakub Nyckowski 3871d15b2f Generate cross-package trampolines on ARM (#16931) 2022-10-03 17:46:23 +00:00
efaf97e872 [Docs] Update 'Using Teleport Connect' for Linux & Windows (#16770)
* pre-update edits

* update for multiple OSes

Also adjusted line breaks assuming a 100char cutoff.

* add insecure flag for Windows

* Apply suggestions from code review

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>

* Update docs/pages/connect-your-client/teleport-connect.mdx

* Update docs/pages/connect-your-client/teleport-connect.mdx

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>

* Apply suggestions from code review

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

* don't use markdown's auto-iteration

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2022-10-03 12:09:48 -05:00
Forrest Marshall ae99259f41 begind namespace deprecation 2022-10-03 09:04:27 -07:00
Forrest Marshall 76f92ec9f3 move to compare-and-swap node hbs 2022-10-03 09:04:27 -07:00
Tiago Silva d3bc7bd7f4 Add option to disable the ServiceAccount creation for teleport-kube-agent chart (#16876)
When assigning AWS IAM permissions to Teleport, `eksctl create iamserviceaccount` command manages the ServiceAccount lifecycle. 

This PR allows any user to configure an existing Kubernetes ServiceAccount used by the agent.

Part of #11866
2022-10-03 16:25:51 +01:00
Noah Stride eb42cabbea Revert "Introduce ProvisionTokenV3 (#16361)" (#16934)
This reverts commit 3fba50261f.
2022-10-03 14:14:01 +00:00
Noah Stride 791f97eba7 Remove Apache license headers from BPF modules (#16896) 2022-10-03 10:02:31 +00:00
Marek Smoliński 6a89687e7d Fix background database local proxy termination by SIGINT signal (#16875) 2022-10-03 09:52:33 +02:00
Roman Tkachenko 4df01494b7 [auto] Update AMI IDs for 10.3.1 (#16924) 2022-10-02 19:58:39 +00:00
Brian Joerger 92c7432197 PIV touch prompt (#16781) 2022-10-01 01:19:49 +00:00
Brian Joerger ce20b20753 PIV login enforcement (#15874)
Add private key policy enforcement.

  - Add private key policy cert extensions and enforcement.

  - Add private key policy settings and attestation logic.

  - Wire attestation request through login endpoints.

  - Store attestation data for reissue requests.

  - Add private key policy discovery and logic.

  - Relogin on hardware key policy errors.

  - Include integration with Teleport Connect.
2022-09-30 23:27:48 +00:00
Zac Bergquist 09de0ba530 Revert "Remove [direct] dependency on go.uber.org/atomic (#16884)" (#16918)
This reverts commit 4f3aa9a3f2.

We're unable to build for 32-bit Linux due to
https://github.com/golang/go/issues/55152,
which looks like it will be fixed with Go 1.19.2 next week.

We'll re-evaluate with the next Go release and reintroduce this change
as soon as we can.
2022-09-30 22:41:45 +00:00
Alan Parra 59bcdf51c5 Update k8s related dependencies (#16909)
Update k8s.io/ and sigs.k8s.io/ modules and drop dependency on k8s.io/utils.
2022-09-30 22:07:05 +00:00
Yassine Bounekhla 09633dd47f Remove license feature flags for Moderated Sessions, Resource Access Requests, Machine ID (#16585) 2022-09-30 21:46:25 +00:00
Philippe M. Chiasson 2b3c0915f7 Fixes Dismiss Stale Workflows Runs GitHub Actions (#16894) 2022-09-30 21:24:35 +00:00
rosstimothy 4f4fac1580 Stop using gosaml2 fork (#16913) 2022-09-30 21:02:59 +00:00
Zac Bergquist 4f3aa9a3f2 Remove [direct] dependency on go.uber.org/atomic (#16884)
Go 1.19's sync/atomic package provides the same functionality
2022-09-30 20:39:05 +00:00
Nic Klaassen 60950a9aa0 security: log non-interactive SSH commands at beginning of session (#16872)
* include exec command in session.start.initial_command

* trim oversized events
2022-09-30 19:57:01 +00:00
Alan Parra e61da10df2 Update (even more) Go dependencies (#16900)
Do another large batch of dependency updates.

Most updates are around minor versions, so _theoretically_ safe. The following
v0.x updates draw attention:

* cloud.google.com/go/iam (likely safe, as Google is largely trunk-based)
* github.com/Microsoft/go-winio

Notable exceptions are k8s-related modules, which are harder to update for
various reasons.

* Update Go dependencies
* Fix lib/srv/app/aws/endpoints_test.go
2022-09-30 19:22:35 +00:00
Alan Parra dd3a884abe Drop direct dependency on github.com/golang/protobuf (#16898)
Drop dependency on the (superseded) github.com/golang/protobuf and add a
depguard.
2022-09-30 18:19:44 +00:00
Forrest Marshall 3533dd3e36 local alert resync 2022-09-30 10:48:12 -07:00
Mike Wilson 31859e5d30 Ensure audit logging of tsh app login.
Application sessions were previously only logged when launching an application
session via the UI, and not from the `tsh app login` command. This has been
corrected. The AppName and AppURI are now passed in as part of the gRPC
request to the auth server, which is then used to emit the audit event.
2022-09-30 12:53:13 -04:00
Joel d0c4dc251a Add docs for IdP-initiated SSO (#16093) 2022-09-30 16:18:37 +00:00