Commit Graph
437 Commits
Author SHA1 Message Date
Steven Martin 9fb62b503f correct plugin name reference (#17013)
* correct plugin name

* correct plugin name
2022-10-04 19:37:49 +00: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
Roman Tkachenko 4df01494b7 [auto] Update AMI IDs for 10.3.1 (#16924) 2022-10-02 19:58:39 +00:00
Joel d0c4dc251a Add docs for IdP-initiated SSO (#16093) 2022-09-30 16:18:37 +00:00
Steven Martin 9a3e643e5d aws terraform http_endpoint setting required for metadata options (#16881)
* http_endpoint option required

* correction

* http_endpoint required

when http_tokens is set http_endpoint is required
2022-09-30 15:08:27 +00:00
Reed Loden 823057f9b0 terraform: Fix all tfsec, tflint, and ansible-lint warnings within examples/aws/terraform (#16531) 2022-09-28 22:35:49 +00:00
Ryan Clark 806a568ada Introduce config v3, add auth_server and proxy_server, remove auth_addresses (#15761) 2022-09-28 15:30:15 +00:00
Roman Tkachenko 7f19ac38f8 [auto] Update AMI IDs for 10.2.6 (#16778) 2022-09-28 01:12:45 +00:00
Roman Tkachenko 79d57bbb9c [auto] Update AMI IDs for 10.2.4 (#16721) 2022-09-26 18:25:20 +00:00
Steven Martin 2e56b592bb gcp secret only in gcp mode fix (#13319) 2022-09-26 16:14:56 +00:00
Bence Kiglics 41474a021d Add documentation for Slack Helm chart (#13726)
It includes an updated guide and the reference of the new Helm chart.
2022-09-26 10:11:17 +00:00
Hugo Shaka cfb2fb01b4 helm: support imagePullSecret in kube-agent chart in statefulset mode (#16508) 2022-09-23 15:24:50 +00:00
Hugo Shaka 1cf949e5c4 helm: add minReadySeconds to teleport-cluster chart (#16465)
Fixes #13129

This PR sets minReadySeconds to 15 by default. During a rollout we still have proxies that don't have tunnels to all agents, but at least agents don't end up with 0 active tunnels.
2022-09-23 14:20:03 +00:00
Brian Joerger 2654add770 RequireMFAType (#16034)
Replace role/authPref RequireSessionMFA (bool) with RequireMFAType
(string).

  - Add new RequireMFAType constant values with custom boolean marshalling.

  - Add RequireMFAType to role and auth preference and deprecate
RequireSessionMFA.

  - Add session-mfa override login when hardware_key_touch is enforced.

  - Add protobuf enum for RequireMFAType.

  - Add support for proto enums in protoc-gen-crd and update Kubernetes
Operator manifests.
2022-09-22 20:30:32 +00:00
c9fbcc03ad Document MsTeams access plugin (#15941)
Co-authored-by: alexfornuto <alex@fornuto.com>
Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2022-09-22 18:35:06 +00:00
Roman Tkachenko 9d04ee27c2 Fix CA pool loading for etcd backend (#16484) 2022-09-20 22:03:07 +00:00
Roman Tkachenko 60a98847bc [auto] Update AMI IDs for 10.2.2 (#16524) 2022-09-20 21:41:38 +00:00
Hugo ShakaandPaul Gottschling 920495c6d7 helm: allow custom CA in teleport-cluster without custom certs (#16325)
Provides a solution for #9298

This removes an unnecessary limitation of the Helm chart: `.Values.tls.existingCASecretName` can now be used without `.Values.tls.existingSecretName`. This allows users to trust their own CAs without building custom images.

Context:
- go's x509 library supports loading system certs based on the SSL_CERTS_FILE environment variable
- we are already using this in the chart to trust private CAs (teleport proxy needs to trust its own certs to start)
- users might want to trust custom CAs to
  - speak with a S3 backend (minio)
  - validate upstream app certs (unlike DB access you can't trust certs per-application)
  - trust another cluster
  - call an OIDC provider
- teleport-kube-agent chart already has the feature

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2022-09-16 15:53:35 +00:00
ec47195944 Linting adjustment for comment-space complaint (#13280)
Co-authored-by: Gus Luxton <gus@goteleport.com>
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2022-09-15 19:05:38 +00:00
c67130052f helm: Add conditional creation of serviceAccount (#16337 and #11895)
Add conditional creation of `serviceAccount` in both `teleport-cluster` and `teleport-kube-agent` charts.

Signed-off-by: Hugo Hervieux <hugo.hervieux@goteleport.com>
Co-authored-by: nickolanick <biliaievnk@gmail.com>
Co-authored-by: Gus Luxton <gus@goteleport.com>
Co-authored-by: Mykola Biliaiev <mykola@firebolt.io>
2022-09-13 12:25:19 +00:00
Hugo Shaka 0290c671ed helm: support Kubernetes 1.25 (#16243)
Check if PodSecurityPolicy resources are supported before attempting to
deploy one. See https://kubernetes.io/docs/reference/using-api/deprecation-guide/#psp-v125
2022-09-12 20:30:30 +00:00
Steven Martin 408671c19b Remove SSH from Teleport SystemD description (#14780)
systemd service is used for multiple protocols, not just SSH
2022-09-12 11:28:33 +00:00
Roman Tkachenko 65d1da6dd2 [auto] Update AMI IDs for 10.2.1 (#16298) 2022-09-09 22:57:53 +00:00
Bence Kiglics c522b38383 Add documentation for MatterMost Helm chart (#13728)
Includes an updated guide and the reference of the new Helm chart.
2022-09-08 11:49:30 +00:00
Roman Tkachenko 0ba6019412 [auto] Update AMI IDs for 10.1.9 (#16007) 2022-08-31 10:23:55 -07:00
Bence Kiglics 5e476ed17d Add documentation for PagerDuty Helm chart (#13729) 2022-08-31 15:57:20 +00:00
Paul Gottschling 7204503cca Edit the PagerDuty Access Request plugin guide (#15498)
Fixes #14576

- Add updated instructions, as the behavior and configuration settings
  for the PagerDuty plugin have changed since we first added this guide.
- Ensure the guide can be followed as a set of step-by-step
  instructions. For example, this change tells the user to create two
  PagerDuty services and refers to these services throughout the page.
- Also edits example configs for the PagerDuty and Mattermost plugins.
2022-08-30 16:42:52 +00:00
Bence KiglicsandPaul Gottschling 6e246ab5c9 Add documentation for Jira Helm chart (#13730)
* Add documentation for Jira Helm chart

It includes an updated guide and the reference of the new Helm chart.

* Fixed some minor mistakes in the guides

* Reorganized Helm related examples

* Fixed a few minor mistakes

* Alphabetized jira.* settings

* Renamed Cloud to Executable in Testing

* Extended YAML config example with explanation

* Edit Jira Access Request plugin Helm chart docs

- Edit the configuration instructions so we don't instruct Helm users to
  use the `configure` subcommand. Also use the `Tabs` component's
  dropdown functionality so we can include both self-hosted and Teleport
  Cloud instructions for Helm and VM users.

- Minor style tweaks.

* Add Helm Chart example to Installation section

* Removed confusing (and broken) link
git push

* Fixed wrong default value

Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
2022-08-26 12:23:07 +00:00
Logan Davis 6cbc9e1142 Update helm chart snapshots and tests for amazon ECR Public (#15355) 2022-08-23 16:03:40 +00:00
Tiago Silva 76d6dc8215 Fix 'get-kubeconfig.sh' to work with Kubernetes v1.24+ (#15612)
Kubernetes v1.24 enabled, by default, the LegacyServiceAccountTokenNoAutoGeneration feature.
This feature prevents Secrets containing service account tokens from being automatically created for every ServiceAccount.
Instead, when enabled, it requires a manual action for creating the Secret bound to the SA.

Fixes #15611
2022-08-17 19:48:28 +01:00
Hugo Shaka 2baa7e72d9 ami: update Grafana to 9.0.7 (#15585)
Fixes #4218

This commit:
- Bumps the grafana version
- Fixes the packer script failing when `DEBUG` is unset
- Makes nginx propagate the Host header required since
  https://grafana.com/blog/2022/02/08/grafana-7.5.15-and-8.3.5-released-with-moderate-severity-security-fixes/
- Makes nginx proxy websocket calls properly (since grafana 8)
- Retab nginx conf files that were a mix of tabs and spaces
- Makes Terraform compute s3 files md5 to detect and apply changes
2022-08-17 13:38:17 +00:00
Hugo Shaka 65e861daeb Stop validating schema for labels in k8s operator (#15206)
* Stop validating schema for labels (#15204)
* operator: support receiving invalid TeleportRole CRs

This PR makes the controller-runtime manager decode TeleportRole
resource in an unstructured object. This avoid errors during decoding.
The resource is later decoded as a TeleportRole, with proper error
handling.
2022-08-17 03:18:17 +00:00
Hugo Shaka 82c520c818 helm: allow to disable local auth in teleport-cluster chart (#13827)
Fixes #12974

This commit introduces a new `authentication` value controlling:
- the authentication type (previously `authenticationType`)
- the second-factor (previously under `authenticationSecondFactor`)
- if local auth is enabled (new feature)
- the connector name (new feature)
- the locking mode (new feature)

If previous values `authenticationType` and `authenticationSecondFactor`
are specified we'll prefer them for backward compatibility.
2022-08-16 22:38:11 +00:00
Roman Tkachenko dd1cfc7dd9 [auto] Update AMI IDs for 10.1.4 (#15532) 2022-08-15 22:44:29 +00:00
Paul Gottschling 15d5699d92 Add an Email Access Request guide (#15133)
Co-authored-by: Steven Martin <steven@gravitational.com>

Closes #8695
Closes #6438
2022-08-11 14:44:26 +00:00
Zac Bergquist d1c6b0618e Fix lint warnings (#15312)
Mostly duplicated imports and redundant types in struct literals.
2022-08-08 20:20:29 +00:00
Hugo Hervieux b87f47934d Fix bash examples in terraform README 2022-08-04 13:35:38 -04:00
Hugo Hervieux 6630f42e9c Support terraform v1 (#15087) 2022-08-04 13:35:38 -04:00
Roman Tkachenko 9c7d9134e2 [auto] Update AMI IDs for 10.1.2 (#15157) 2022-08-03 18:22:12 +00:00
Hugo Shaka f8be9cb6be helm: Add support for mounting existing TLS root CA (#13671)
* helm: Add support for mounting existing TLS root CA #12594
* Document per-database CA trust
2022-08-03 16:23:40 +00:00
Hugo Shaka 5add07799d helm: configure dynamoDB autoscaling in teleport-cluster (#13808)
* helm: configure dynamoDB autoscaling in teleport-cluster (#12046)
* Clarify best practices around DynamoDB autoscaling
2022-08-02 15:11:24 +00:00
Tiago Silva 40abd14635 Kubernetes Secret storage for Agent's Identity (#13942)
This MR introduces Kubernetes Secret storage for Teleport Kubernetes Agent state.

When running Teleport Agent inside a Kubernetes cluster where TELEPORT_REPLICA_NAME and KUBE_NAMESPACE exist, the agent will store identities and states in a Kubernetes Secret instead of local storage.

Otherwise, if the above environment variables are not present or not in Kubernetes, the agent persists state in SQLite.

Notes:

Fresh installs will enable the Kubernetes Secret Storage by default.
If PV storage is configured, the agent will store its identity in a Secret and use the PV for non-identity objects.
If the operator is upgrading from an existing release that didn't support Secret storage, the Helm chart will convert the objects to enable Kube Secret Storage. If the current object is a Deployment, the Helm chart installs a new Statefulset side by side and will trigger a Helm hook that is responsible for deleting the Deployment once Statefulset pods are healthy. Otherwise, if upgrading from a Statefulset the agent will read the credentials stored in PV and move them into Kube Secret.

Implementation of #12958
Related to #5585
2022-07-29 13:21:51 +00:00
Hugo Shaka 290b34f3be helm: Deploy CRDs when the operator is enabled (#14942)
* helm: Deploy CRDs when the operator is enabled
2022-07-28 17:05:11 +00:00
Hugo Shaka b3fd61790b helm: configure session recording in teleport-cluster (#13705)
* helm: configure session recording in teleport-cluster (#13543)
* Update docs/pages/setup/helm-reference/teleport-cluster.mdx
2022-07-28 15:51:25 +00:00
Hugo Shaka b0afb172eb helm: Add CA Pinning Support (#13685)
helm: Add CA Pinning Support
2022-07-26 17:30:21 +00:00
Hugo Shaka 22c75e1ee9 Support dynamic registration in kube-agent helm chart (#13641)
* Support dynamic registration in kube-agent helm chart(#9846)
* Update docs/pages/setup/helm-reference/teleport-kube-agent.mdx
2022-07-25 20:37:46 +00:00
Marco Dinis 5effbd8359 Add Teleport operator
This commit adds the Teleport operator. The operator reconciles
TeleportUsers and TeleportRoles Kubernetes resources with Users and
Roles Teleport resources.
2022-07-25 15:27:10 -04:00
Steven Martin e9bd3e78c6 Spelling fixes additional (#14823) 2022-07-25 14:41:34 +00:00
Steven Martin 83256ed760 Spelling Fixes (#14815)
* Misspelling fixes
2022-07-23 20:24:45 +00:00
Hugo Shaka 0adb3c16e8 Allow setting public addresses in teleport-cluster chart (#14603)
Allow setting public addresses in `teleport-cluster` chart
2022-07-21 16:49:38 -04:00