Commit graph

13609 commits

Author SHA1 Message Date
dependabot[bot] 9d432be41c
Bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 in /build.assets/tooling (#27999)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  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-06-20 12:29:08 +00:00
dependabot[bot] a9acbe1af5
Bump github.com/aws/aws-sdk-go-v2/service/athena from 1.30.0 to 1.30.2 (#27984)
Bumps [github.com/aws/aws-sdk-go-v2/service/athena](https://github.com/aws/aws-sdk-go-v2) from 1.30.0 to 1.30.2.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.30.0...service/s3/v1.30.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/athena
  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-06-20 12:28:30 +00:00
Marco André Dinis 782c385ef9
AWS OIDC Integration: Deploy DB Service in a single click (#27035)
* AWS OIDC Integration: Deploy DB Service in a single click

This PR adds a new AWS OIDC Integration action: deploy database service

This uses Amazon ECS to deploy a Database and a Discovery Service in a
single click.
Please read `lib/integrations/awsoidc.DeployDBService` for more
information.

* set discovery group to uuid

* add agent matcher labels

* add tags to indicate ownership

* create deployment mode

* allow for dot named clusters

* rename service and taskdefinition to include deployment mode

* add ECS service dashboard url to the response

* change ownership tags

* remove delete service api call

* fix json indent in comment and iam token name
2023-06-20 11:07:25 +00:00
Noah Stride 44127eb3db
Windows Device Trust documentation (#27758)
* Add rough docs for Windows TPM device trust

* Add EKCert to cspell

* Add minimum version requirements

* `specialist` -> `dedicated`

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* Use more precise language where possible

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

* Use `tctle dit cluster_auth_preference`

* SPAG & Clarity suggestions from docs team

Co-authored-by: lsgunn-teleport <136391445+lsgunn-teleport@users.noreply.github.com>

* More SPAG adjustments from review

Co-authored-by: lsgunn-teleport <136391445+lsgunn-teleport@users.noreply.github.com>

* Reflow some lines after PR review changes

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
Co-authored-by: lsgunn-teleport <136391445+lsgunn-teleport@users.noreply.github.com>
2023-06-20 10:04:20 +00:00
Grzegorz Zdunek 12204708e7
Connect: Make tabs shadows look better (#27931)
* Add bottom shadow for inactive tabs and inset for the active one

* Add shadow for new tab item by using common styling

* Adjust `KeyboardShortcutsPanel` to the light theme

* Center Servers/Databases/Kubes navbar vertically between tabs and table by using the same margin values (8px)

* Set title on the element that is dragged
2023-06-20 08:57:59 +00:00
Rafał Cieślak 8833ac247b
Update Connect's test plan (#25059)
* Update gateway cert renewal item

* Remove items related to the command bar

* Add items for search bar
2023-06-20 08:33:43 +00:00
Grzegorz Zdunek 0d28a44400
Fix Assist import so it does not break storybook (#28023)
* Fix `Assist` import path

* Fix `TopBar` story
2023-06-20 07:40:19 +00:00
Grzegorz Zdunek 453700e570
Connect: Fix overlapping placeholder and keyboard shortcut in the search bar (#28026)
* Fix overlapping placeholder and keyboard shortcut in the search bar

* Run prettier
2023-06-19 21:34:18 +00:00
Alan Parra ec8594f96d
fix: Ignore staticcheck false positive on darwin (#28038) 2023-06-19 18:42:10 +00:00
Michael Wilson 6ed1a58e1f
Add HasPluginType to plugins interface. (#27903)
The plugins interface now supports HasPluginType, which returns true if a
plugin of the given type has been detected within the backend.
2023-06-19 16:44:11 +00:00
Michael Wilson f4ae931cbc
Update e ref. (#28035)
The e ref has been updated to fix the issue with GetPlugins not being present
when plugins are not enabled on an auth server.
2023-06-19 16:20:47 +00:00
Ryan Clark 876277feb0
Fix command output showing when running on multiple nodes (#27936) 2023-06-19 15:37:28 +00:00
Rafał Cieślak 5e836688f5
Reorder resource filters in the search bar (#28032) 2023-06-19 14:41:52 +00:00
dependabot[bot] a18a71e1ff
Bump k8s.io/api in /integrations/kube-agent-updater (#28004)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.27.2 to 0.27.3.
- [Commits](https://github.com/kubernetes/api/compare/v0.27.2...v0.27.3)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-19 13:42:01 +00:00
Grzegorz Zdunek ca3411426a
Connect: Update Electron to 25.1 and TypeScript to 5.1 (#27837)
* Update Electron to 25.1, TypeScript to 5.1

* Use the same focusing mechanism on all platforms

* Use `role: about` in the app menu as Linux supports it

* Bump Electron to 25.1.1
2023-06-19 13:03:42 +00:00
Justinas Stankevičius ec6295b3cf
Compile binaries for access plugin tests (#27819)
* Compile binaries for access plugin tests

* Fix PD test asserts for newer Teleport versions

* Unpin role from V6 in access plugin tests

* Remove license from OSS plugins tests

We now run tests against OSS Teleport in the OSS repo,
and against Enterprise Teleport in the E repo.
So the assumption that CI always needs an enterprise license
is incorrect.

* Only compile the required binaries
2023-06-19 12:36:34 +00:00
Gus Luxton 2dd03761ca
helm: Use local auth server address in auth pod to prevent extra connections (#27871)
* helm: Use local auth server address to prevent extra connections

* Update snapshots
2023-06-16 23:25:46 +00:00
Alan Parra 20e5a11f0e
Remove deprecated/unused device trust protos (#27975)
* Remove device trust linter exemptions

* Remove deprecated/unused device trust protos

* Update generated protos
2023-06-16 22:13:24 +00:00
Krzysztof Skrzętnicki 57609fd6bd
Fix invalid command example. (#27943) 2023-06-16 21:01:08 +00:00
Michael Wilson 6f27d40eee
Update e ref. (#27972)
The e ref has been updated to pull in the modifications to the NewUserGroup
function and to not use deprecated device trust components.
2023-06-16 19:49:02 +00:00
Alan Parra ca76220e61
Temporarily ignore Device Trust deprecation warnings (#27964) 2023-06-16 18:57:10 +00:00
Paul Gottschling b888698993
Make Teleport config instructions easier to follow (#27582)
In the `docs/pages/includes/tls-certificate-setup.mdx` partial, one code
snippet includes an escape character after a pipe in order to render a
shell command across two lines. For users who copy the command manually,
this can lead to unexpected results. This change removes the escape
character and renders the command on one line.

This change also makes the use of `Var` components in code snippets more
explicit so users aren't tempted to paste the example command into, say,
a browser address bar in order to change the placeholder values. (This
is what led to issues with the escape character to begin with.)
2023-06-16 18:40:14 +00:00
Steven Martin eaf1a4e89f
docs: include tsh install in connect your client tsh page (#26132)
* docs: include tsh install in connect your client tsh page

* fix links

* Updates install and uninstall language

* version number

* match windows install

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

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

* Lint fix

* Lint fix

* verbiage update

Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>

* fix windows install reference

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: Alex Fornuto <alex.fornuto@goteleport.com>
2023-06-16 18:25:18 +00:00
Steven Martin 3e4a9e8f7a
docs: update cloud downloads (#27934)
* docs: update cloud downloads

* matches cloud installation for macos

* remove character

Co-authored-by: Noah Stride <noah.stride@goteleport.com>

* cloud windows installation

* update tsh install language

* fix variable name

---------

Co-authored-by: Noah Stride <noah.stride@goteleport.com>
2023-06-16 18:07:21 +00:00
Alan Parra 52e357f1cc
Add a delete confirmation step to SyncInventory (#27906)
* Change SyncInventory streams to track missing devices

* Update generated protos

* Convert new device profile fields

* Update fileconf.go example
2023-06-16 17:55:57 +00:00
Michael Wilson 4bc2c04e63
Add mapping between user groups and applications. (#27812)
* Add mapping between user groups and applications.

Within Okta, user groups can assign permission to many applications and
applications can belong to many user groups. This commit establishes that
mapping so that the Okta service can perform more user friendly access
requests by adding all applications from a user group to the access request
and additionally allowing application access requests to request associated
user groups as well.

* Adjust NewUserGroup to take a spec.
2023-06-16 17:52:31 +00:00
Noah Stride 60a325aa7c
Device Trust: tsh privilege elevation for TPM enrollment (#27833)
* Start fleshing out UAC elevation

* Use `runas` and ShellExecuteW to open a child process with elevated privileges

* Add tsh command to re-execute

* Add method to be called in the elevated child process

* Ugly, but working, credential activation in UAC dialogued child

* Add TODO

* Add some further notes/explanation on windows.ShellExecute

* Change error message to match function name

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

* Improve comment

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

* Use `trace.BadParameter` instead of `Errorf`

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

* Use `tpm-activate-credential` instead of `activate-credential`

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

* Remove spurious newline

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

* Move towards more production ready elevated process

* Add stubs for darwin/other

* Use path in state dir for cred activation results

* Fix stub return values

* Fix test missing context.Context pass

* Add additional message when cred activation completes

* Use ShellExecuteExW to get handle to process to wait on

* Improve comment in windowsexec

* Minor stylistic changes from review

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

* Minor adjustments to error handling and logging

* Use `windows` over `syscall`

* Leverage `mkwinsyscall`'s error handling

* Missing param in test

* Always show error, not just when `-d` is provided

* Remove unnecessary trace.Wrap(err)

* Restore cf.Debug check

* Explicitly ignore return values from `FPrintln`

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

* Simplify code

* Add null check to `info.hProcess`

* Minor format changes from review

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-06-16 17:35:03 +00:00
Paul Gottschling 4e1eda9d9a
Fix CHANGELOG spelling errors (#27954) 2023-06-16 17:28:52 +00:00
Noah Stride 10a3a59921
Add more accurate info to cloud download page re: tbot (#27937) 2023-06-16 15:23:10 +00:00
Yassine Bounekhla 6be5d884e4
add saml wizard to ui (#27518) 2023-06-16 13:50:46 +00:00
Krzysztof Skrzętnicki 1b69fbcbed
OpenSearch AWS autodiscovery (#27537)
* OpenSearch AWS autodiscovery

* Normalize description, check err.

* Fix tests.
2023-06-16 12:56:53 +00:00
Noah Stride 4151218576
Add Machine ID tip when tctl auth sign is used (#27804)
* Add prompt to machine id page when using `tctl auth sign` for a user credential

* Use FPrintf with stderr instead of `log.Info`

* Move newline

* Remove emoji from message in case it breaks terminals
2023-06-16 10:39:50 +00:00
Grzegorz Zdunek 95e6482043
Connect: Add theme configuration (#27788)
* Add a config item for the theme and adjust Electron's `nativeTheme` based on that

* Listen to theme changes and update the app accordingly

* React to theme changes in teleterm stories

* Rename channel

* Return boolean from handlers

* Do not mock the whole app context in storybook

* Fix linting issue

* Fix typo
2023-06-16 09:28:21 +00:00
Nic Klaassen e23e6b6082
fix: correct minSupportedLabelExpressionVersion to v13.1.1 (#27894)
Label expressions went out in v13.1.1, this commit corrects the
`minSupportedLabelExpressionVersion` constant to match.
This is necessary for label expressions to work when nodes on versions
between 13.1.1 and 13.2.0 connect to auth servers on versions
>=14.0.0-alpha.
This doesn't affect any released versions, we just want this to be right
before we ship v14.

This was expected, so testcases already use
`minSupportedLabelExpressionVersion` and are automatically up to date.
2023-06-16 07:39:41 +00:00
Sakshyam Shah 1762c764ae
feat: adds motd to the ui (#27813)
* feat: adds motd to the ui

* address review suggestions:
- update MOTD to Motd
- moved motd state to useLogin
- added behaviour tests

* add motd test to apiserver_test.go webconfig. update snapshot test to address motd warning

* git mv to update MOTD to Motd

* multiple fix:
- add unmount test
- remove motd title
- group states together in useLogin
- update arrow func to classic js func

* remove unused waitForElementToBeRemoved
2023-06-16 02:43:17 +00:00
Jakub Nyckowski a2986f5310
Make use of keepAliveInterval in terminal handler (#27705)
* Make use of keepAliveInterval in terminal handler

Looks like keepAliveInternal is being ignored in the web terminal handler. This change sets the keep alive interval from the request if provided or uses the cluster value as a backup. As a side effect, TestTerminalPing runs < 1s instead of ~ 10s.

* Set the minimal ping time to one second

* Update lib/web/apiserver.go

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-06-15 21:55:12 +00:00
teleport-post-release-automation[bot] 4901bb3815
[auto] Update AMI IDs for 13.1.1 (#27870)
Co-authored-by: GitHub <noreply@github.com>
2023-06-15 21:49:55 +00:00
Paul Gottschling e72254ed55
Use the one-liner in install-linux.mdx (#27364)
* Use the one-liner in install-linux.mdx

Closes #25505

We now have a one-line installation command for Teleport Community
Edition. Since the script the command runs already checks the user's OS
and attempts to use the appropriate package manager, there is no need
for the tabbed installation instructions in the Community Edition tab of
`install-linux.mdx`.

* Linter fix
2023-06-15 21:41:12 +00:00
Zac Bergquist 32900f0dd5
docs: mention required scope for GitHub app (#27730)
At a minimum, the GitHub app that Teleport uses must have the
read:org scope so that we can identify which users are members
of which teams.

Closes #14825
2023-06-15 21:37:27 +00:00
Walt fe34634a14
Add arm deb dependency to distroless builds (#27902)
Without this in place, build-teleport-oci-distroless-images will race
with build-linux-arm-deb, as seen at:

https://drone.platform.teleport.sh/gravitational/teleport/25230/24/2

Vanilla Arm is part of the matrix:

016b065a35/.github/workflows/release-teleport-oci-distroless.yml (L164)
2023-06-15 21:09:32 +00:00
Alex Fornuto d80ab5b556
Docs: Update Okta SSO Guide (#26806)
* make dynamic edit first

* expand scope...

So that dynamic resource is still the default option for all scopes

* add local auth tip...

Since we're telling the reader to switch to SAML before it's configured, we should provide a way to log in again using local auth.

* provide full path to key...

Since updated docs using <code>tctl sso configure</code> won't always include the key for easy reference in its output.

* update okta guide to use tctl sso configure

* Specify enterprise/cloud tctl downloads...

Because <code>tctl sso configure saml</code> is only available in the enterprise tctl versions. This makes this PR dependent on #26124

* strongly encourage testing

* use preset flag
2023-06-15 21:00:33 +00:00
Alan Parra 2aa68358ac
chore: Bump golangci-lint to v1.53.3 (#27898) 2023-06-15 19:12:08 +00:00
Anton Miniailo 023a2d4be4
Provide client login IP when SSO initiated in a browser. (#27661) 2023-06-15 17:07:51 +00:00
Zac Bergquist 80707cd328
Remove duplicate imports (#27886) 2023-06-15 17:06:18 +00:00
Michelle Bergquist b283530b16
design updates for team gated features (#27756)
* update designs for gated features

* remove Card bg where set to default

* update snapshots
2023-06-15 16:14:25 +00:00
Jakub Nyckowski 09c4035b60
[Assist] Fix panic when writing to one WS from multiple threads (#27828)
* [Assist] Fix panic when writing to one WS from multiple threads

 Fixes https://github.com/gravitational/teleport.e/issues/1650

* Remove mutex on SetReadDeadline

* Move SetPongHandler

* Fix typos
2023-06-15 15:25:39 +00:00
Edoardo Spadolini 94aea6f188
Pass context through UpsertAuthServer (#27867)
* Pass context through UpsertAuthServer

* Pass context in (*ProcessStorage)GetState
2023-06-15 14:52:21 +00:00
Brian Joerger 19e36d6a67
Fix tsh relogin on not found errors (#27825)
* Add new no credentials error wrapping. tsh will relogin on matching errors.

* Add comments.
2023-06-15 00:51:52 +00:00
Walt fafa16a19c
Remove unused FIPS build boxes (#26859)
FIPS is only built on amd64, and only on our centos:7 buildboxes.  These
other dockerfiles and targets are vestigial.  Furthermore, the buildbox
is a security risk, as ubuntu:18.04 is not supported after 2023-05-31.

If/when we want to support FIPS on ARM, we can build off the centos:7
infrastructure, or its successor.
2023-06-14 23:44:38 +00:00
Nic Klaassen 4f0105349c
docs: document label expressions (#27811)
* docs: document label expressions

This commit adds documentation for the label expressions feature
described in RFD 116.

* Apply suggestions from code review

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

* use v6 role

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

* explain setting both <kind>_labels and <kind>_labels_expression

---------

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2023-06-14 23:29:47 +00:00