Commit graph

264 commits

Author SHA1 Message Date
joerger f020f75078 Refactor API client into a separate package. 2020-12-29 10:06:37 -08:00
Kevin Nisbet 7947160afa Apply suggestions from code review
Co-authored-by: Andrew Lytvynov <andrew@goteleport.com>
2020-12-17 11:06:05 -08:00
Kevin Nisbet eb386e21f0 add PSP to kube-agent helm chart 2020-12-17 11:06:05 -08:00
Ben Yitzhaki c0232bfd0e
Use tag as string instead of number in chart values (#5075)
* Use "5.0" as string instead of integer

Otherwise, it won't find the tag as it will look for tag 5, instead of 5.0

* update values for teleport-auto-trustedcluster and teleport-deamonset

Co-authored-by: Gus Luxton <gus@gravitational.com>
Co-authored-by: Andrew Lytvynov <andrew@goteleport.com>
2020-12-16 10:28:27 -08:00
Gus Luxton d61c8fa9a8
[auto] Update AMI IDs for 5.0.2 (#5130) 2020-12-16 09:30:45 -04:00
Andrew Lytvynov 441cb95a77
kube-agent helm chart: use image tag 5.0 instead of 5.0.0 (#5117)
Automatically picks up the latest patch version.
2020-12-14 13:44:20 -04:00
Gus Luxton 11c660936d
[auto] Update AMI IDs for 5.0.1 (#5100) 2020-12-11 17:52:18 -04:00
Steven Martin 8957b67856
Provide enterprise create user instructions for terraform example (#5069) 2020-12-08 19:47:32 -08:00
Gus Luxton 96dcfde3c4
Always set proxy public_addr port to 443 when ingress is enabled (#5019) 2020-12-02 10:36:25 -04:00
jane (quin) 9c26188d30
Fix coordinated omission bug (#4643)
* benchmark package

* use default config if path is not specified

* progressiveBench as a config method

* implement a main.go approach to run progressive tests

* make teleport client, run specified benchmark

* function and method descriptions

* make teleport client

* testing

* change interface method signatures

* dry up bench.go code, move producer goroutines to own function

* output formatting

* remove yaml

* fix linter errors

* remove print

* PR suggested changes, moved export latency profile functionality to the benchmark package

* PR fixes

* method description

* update testing

* linter

* docs and example

* PR suggestion changes

* fix coord omission bug

* remove benchmark struct

* remove threads, using open system

* recover in run

* close channel, check if open with each execution

* update testing, pr suggestions

* add more instructions to readme

* update example.go

* pass back context

* use SyncBuffer

* export response and service histograms

* update readme, exporting profiles section

* return from execute()

* export singular latency profile

* export response profile

* Revert "export response profile"

This reverts commit 5a21cb034c.

* export response profile

* update branch

* format example.go

* remove threads

* update example.go

* update branch

* goimports

* add signal handler & update docs

* PR suggestions

* exit out of interactive session

* revert execute

* PR suggestion

* run commmand on non-interactive instead of nil
2020-12-01 11:04:31 -08:00
jane (quin) 6eaaf3a27e
Linear benchmark generator (#4588)
* benchmark package

* use default config if path is not specified

* progressiveBench as a config method

* implement a main.go approach to run progressive tests

* make teleport client, run specified benchmark

* function and method descriptions

* make teleport client

* testing

* change interface method signatures

* dry up bench.go code, move producer goroutines to own function

* output formatting

* remove yaml

* fix linter errors

* remove print

* PR suggested changes, moved export latency profile functionality to the benchmark package

* PR fixes

* method description

* update testing

* linter

* docs and example

* PR suggestion changes

* PR changes

* wrap errors

* move bench to benchmark & testing updates

* PR changes

* PR suggestions
2020-11-25 15:47:39 -08:00
Gus Luxton a51596d8d7
Update metrics endpoint from 3434 to default 3000 as per docs (#4955) 2020-11-25 17:47:59 -04:00
Gus Luxton 553d632b2d
Post-release checklist for 5.0 (#4982) 2020-11-25 17:23:00 -04:00
Gus Luxton 22c4915799
[auto] Update AMI IDs for 5.0.0 (#4981) 2020-11-25 17:04:19 -04:00
Andrew Lytvynov 1159c4ba7b
Adda a helm chart for in-cluster kubernetes_service agent (#4963)
* Add helm chart for in-cluster kubernetes_service agent

This is a simplified version of the teleport chart, intended to only run
a "stateless" `kubernetes_service` instance within a kubernetes cluster.
This instance joins an externally-managed teleport cluster, given a
proxy address and a join token. The connection is always over a reverse
tunnel, per our recommended approach.

The chart is opinionated and only lets the user modify the bare minimum.

* Apply suggestions from code review

Co-authored-by: Gus Luxton <gus@gravitational.com>

* Move join token into a secret

Secret can be more tightly restricted via RBAC, and encrypted at rest
with KMSs.

Also, a few other small tweaks for UX.

Co-authored-by: Andrew Lytvynov <andrew@gravitational.com>
Co-authored-by: Gus Luxton <gus@gravitational.com>
2020-11-24 20:20:00 -08:00
Russell Jones e3aaf86753 Updated Application Access RFD.
Updated Application Access RFD to include a small example program that
can be used to verify a JWT.
2020-11-20 17:19:18 -08:00
Brian Joerger 1439f35902
[docs] Go API Docs CA (#4777) 2020-11-20 10:17:39 -08:00
Gus Luxton e7b8cda3ee
Update Terraform to 0.13 (#4950) 2020-11-20 10:05:23 -04:00
Gus Luxton 3dfc56624b
[auto] Update AMI IDs for 4.4.5 (#4868) 2020-11-19 19:13:23 -04:00
Gus Luxton 2795df3f6a
Various AMI fixes (#4744) 2020-11-17 10:49:56 -04:00
Gus Luxton 02d62f9be9
Update to Helm v3 and package all charts (#4809) 2020-11-12 21:02:33 -04:00
Brian Joerger 4abb0cb40e
Go API Docs improved descriptions/examples (#4704)
* Update go-client example readme and code.
* Update docs for go-api.
* Build up each section of the docs with more info examples.
2020-11-10 16:36:26 -08:00
Gus Luxton 8a1c226d5e
[auto] Update AMI IDs for 4.4.4 (#4743) 2020-11-09 14:49:05 -04:00
Ben Arent 51f3076973
[examples] Fixing extra s/admins/admin (#4683) 2020-11-03 08:34:38 -08:00
Gus Luxton aaa2451908
[auto] Update AMI IDs for 4.4.1 (#4625) 2020-10-23 15:09:03 -03:00
Gus Luxton fe36035819
Update examples to 4.4 (#4608) 2020-10-21 16:00:17 -03:00
Ben Arent 6e784c9413
[docs] Feature content for Teleport 4.4 (#4488)
Co-authored-by: Gus Luxton <gus@gravitational.com>
2020-10-19 08:28:36 -07:00
Gus Luxton 5a124f6d27
Remove Marketplace AMI builds, plus other tidying (#4502) 2020-10-13 11:44:34 -03:00
Steven Martin 26ca81bfde
Update etcd image to 3.4.X version for example (#4473) 2020-10-07 14:47:21 -04:00
Gus Luxton 434775692a
Revert "Fix shellcheck quotation warnings" (#4477)
This reverts commit f06e9204d1.
2020-10-07 14:00:02 -03:00
Andrew Lytvynov 5b93ebb800 Disable quotation shellcheck warning in some cases
`dirname` will always output a single item.
2020-10-06 17:32:38 +00:00
Andrew Lytvynov 4b6cf2b2c9 Apply suggestions from code review
Co-authored-by: Gus Luxton <gus@gravitational.com>
2020-10-06 17:32:38 +00:00
Andrew Lytvynov f06e9204d1 Fix shellcheck quotation warnings
And enable all shellcheck checks in CI.
2020-10-06 17:32:38 +00:00
Gus Luxton 20d3dd3b68
Update Teleport Helm/Terraform/CloudFormation to 4.3.7 (#4453) 2020-10-05 18:28:40 -03:00
Travis Swientek 8bc142b62b
[docs] AWS Terraform Quick Start (#4149) 2020-10-01 10:30:57 -07:00
Gus Luxton 803c3fb410
Add higher LimitNOFILE limit to Teleport unit file (#4417) 2020-10-01 11:35:24 -03:00
Andrew Lytvynov 8d7a217089 Run shellcheck during "make lint"
Shellcheck is a linter for shell scripts. Since we have quite a few of
those for release packaging and examples, we'll benefit from an extra
set of (robot) eyes.

Note: I disabled https://github.com/koalaman/shellcheck/wiki/Sc2086 to
make this PR smaller. That specific check is for the most frequent
mistake in our scripts - not quoting env var expansions. I'll do a
separate PR cleaning those up.

`build.assets/pkg` is no longer used and was removed.
2020-09-29 20:40:16 +00:00
Gus Luxton 32890ab70c
Fix namespace usage in k8s-auth script (#4388)
* Fix namespace usage in k8s-auth script

* Fix more namespace usages
2020-09-29 11:07:43 -03:00
Gus Luxton 470bd61dc4
Remove unused teleport-demo chart (#4387) 2020-09-29 09:43:52 -03:00
Gus Luxton 360f642fc8
Remove autoscaler ARN (#4360) 2020-09-23 13:09:27 -03:00
Steven Martin 5e166d425e
Updated READMEI AMI example to 4.3.5 from 4.2.3 (#4341) 2020-09-17 19:31:15 -03:00
Andrew Lytvynov 03064cfa96 etcd: don't confuse prefixes during migration
The prefix fetching logic has a bug: it treats everything starting with
`/teleport` as the legacy prefix data, even if it's `/teleport-foo/bar`.
This is an issue if user specifies `/teleport-foo` as their custom
prefix. Each restart will copy the data from `/teleport-foo/...` to
`/teleport-foo-foo/...`.

Set the legacy prefix const to `/teleport/` instead. This avoids
excessive copying during startup.

Prefixes can still be confused later on, with `Watch` and `GetRange`,
but this is harder to migrate with backwards-compatibility.
2020-09-14 21:26:36 +00:00
Gus Luxton 09245cc091
Add scripts and Makefile targets to automatically update AMI IDs (#4219) 2020-08-24 17:17:34 -03:00
Steven Martin c0a99aa837
Correct SAML web callback (#4158) 2020-08-04 08:44:32 -04:00
Steven Martin 8a2fe9b84b
correct public web address port (#4153) 2020-07-31 09:58:33 -04:00
Gus Luxton 3408a7d306
Fix Helm chart public_addr for proxy when using Ingress (#4107) 2020-07-28 12:10:34 -03:00
Travis Swientek c538fb2e73
Workflow Documentation Fixes (#4111)
* Fixes documentation typo for Slack workflow.
* Improve the example workflow Slack toml comments.
* Remove --pid-file from workflow systemd units.
* PR feedback. teleport-slackbot -> teleport-slack
2020-07-24 10:17:59 -05:00
Andrew Lytvynov de9f9b9ce9
Universal kubeconfig provisioning script (#4086)
This script is similar to `examples/gke-auth/get-kubeconfig.sh` but
should work for any k8s setup.

It uses a service account bearer token for authentication instead of TLS
key/cert. These tokens shouldn't expire and are more appropriate for
automation. It also fetches the CA cert from the service account secret,
which is more reliable than assuming a `kube-dns` pod exists in the
cluster.

In addition, this script sets up the needed k8s RBAC objects for
impersonation, saving the user a few extra steps.
2020-07-21 12:31:22 -07:00
Chad H dec724285c
Typofix: there's no "y" in Teleport (#4079) 2020-07-20 11:25:05 -03:00
Gus Luxton 523d5d6bcb
Update Teleport version in Helm chart to 4.3.0 (#4037) 2020-07-15 13:22:02 -03:00
Ben Arent c2f1eb3202
Teleport EKS Guide (#3921) 2020-07-14 11:03:13 -07:00
Gus Luxton d72aff82f7
http -> https (#3991) 2020-07-08 00:14:56 -03:00
Andrew Lytvynov a5e0720107 etcd: propagate the prefix from config
Prefix-handling code was using a hardcoded prefix (`/teleport`) instead
of the prefix specified in config. Use the correct config prefix and add
a test.
2020-07-02 23:24:49 +00:00
Gus Luxton 72b3679018
Add Helm chart packaging for Teleport (#3943) 2020-07-02 10:48:54 -07:00
Steven Martin 576e4b510d
Update to Teleport Chart (#3821) 2020-07-02 10:47:56 -07:00
Ben Arent da216db761
Updated Teleport Jira Server Approval Plugin Docs & Updated Plugin TOML (#3879) 2020-06-25 10:11:38 -07:00
Ben Arent ff4d3ed43a
Update SSO Docs via Testing Feedback (#3898) 2020-06-25 10:04:41 -07:00
Andrew Lytvynov 5bd66a396e Plumb caller username for CRUD events via contexts
Our auth middleware already attaches a TLS identity as context value.
Plumb contexts through and extract the username when recording events.
If the received context doesn't have an identity attached, use "system"
as username.

Lots of noise here due to missing context.Context plumbing :(
We should eventually plumb contexts to all those RPC interfaces.

Updates #3816
2020-06-18 19:01:35 +00:00
Ben Arent 3976a99771
Teleport 4.3 Docs (#3423)
* Base fork for 4.3 docs

* [docs] external email identities and Kube Users (#3628)

* Base fork for 4.3 docs

* [docs] external email identities and Kube Users (#3628)

* Remove trailing whitespace from docs files

Some editors will do this automatically on save. This causes a lot of
diffs when editing the docs in such an editor.
Clean them up once now and we'll try to keep it tidy going forward.

* Add make rules for docs whitespace and milv

docs-test-whitespace: checks for trailing whitespace in all .md files
  under docs/.
docs-fix-whitespace: removes trailing whitespace in all .md files under
  docs/.
docs-test-links: runs milv in all docs/ subdirectories that have
  milv.config.yaml.
docs-test: runs whitespace and links tests, used during `make docs`

* Document the new `--use-local-ssh-agent` flag for tsh

The flag is used to bypass the local SSH agent even when it's running.
Specifically, this helps with agents that don't support certs.

The flag was added in #3721

* Remove pam_script.so docs from SSH PAM page

With #3725 we now populate teleport-specific env vars in a way that's
accessible to `pam_exec.so`. There's no longer any reason to install
pam_script.so separately and duplicate our docs.

Updates #3692

* Using the correct --insecure-no-tls flag

* Run docs-fix-whitespace make rule in a busybox container


* Fixes #3414

Co-authored-by: Andrew Lytvynov <andrew@gravitational.com>
Co-authored-by: Gus Luxton <gus@gravitational.com>
Co-authored-by: Steven Martin <steven@gravitational.com>
Co-authored-by: Gus Luxton <webvictim@gmail.com>
2020-06-17 17:09:41 -07:00
Andrew Lytvynov e0c7f80f6c Update example helm charts with SelfSubjectAccessReview permissions
The new permission is there to allow the proxy to self-test
impersonation powers at startup and surface RBAC problems early.
2020-06-11 00:14:50 +00:00
Steven Martin 32109d8836
Teleport example helm README update (#3750)
* Teleport helm upgrade command update

The --name in the helm upgrade example was not a valid parameter.  Also put in comments that ca.pem is not required.  It is off by default.

* Modified comments based on feedback
2020-05-20 18:41:42 -04:00
Gus Luxton 4e9c679a05
Add Helm chart with DaemonSet to provide access to underlying host nodes (#3674) 2020-05-19 10:41:12 -03:00
Gus Luxton 7c7c91da10 Add more detail to README 2020-05-01 14:17:49 -07:00
Gus Luxton 218aec357b Change LoadBalancer to ClusterIP 2020-05-01 14:17:49 -07:00
Gus Luxton a3151111bf Update README 2020-05-01 14:17:49 -07:00
Gus Luxton b9c9174e07 Update README 2020-05-01 14:17:49 -07:00
Gus Luxton 2934f65fe2 Removed all requirements for TLS 2020-05-01 14:17:49 -07:00
Gus Luxton 4368891b4e Don't set Kubernetes public address 2020-05-01 14:17:49 -07:00
Gus Luxton 3378dfccd9 Update TLS secret names 2020-05-01 14:17:49 -07:00
Gus Luxton cd4cb69894 More README tweaks 2020-05-01 14:17:49 -07:00
Gus Luxton c5b9d3e68f Changes to README 2020-05-01 14:17:49 -07:00
Gus Luxton 84cd3cc13b Update README 2020-05-01 14:17:49 -07:00
Gus Luxton ed80914d7f Updates 2020-05-01 14:17:49 -07:00
Gus Luxton 292fa32813 Add ability to automatically set up a trusted cluster to Helm chart 2020-05-01 14:17:49 -07:00
Karl-Johan Grahn 39a720d47b
Add support for linux-musl (#3641) 2020-04-29 16:59:56 -03:00
Jonathon Canada e172456938
[examples] Add image types, AMI IDs, extend AuthASG timeout for Cloudformation Enterprise (#3503)
* Add image types, AMI IDs, extend AuthASG timeout
Added options for m4.large and m5.large. Added AMI IDs for all regions. Extended the timeout on the Auth ASG from 20 minutes to 30 minutes.
* Update ent.yaml
Co-authored-by: Ben Arent <ben@gravitational.com>
Co-authored-by: Gus Luxton <gus@gravitational.com>
2020-04-29 09:19:15 -07:00
Jonathon Canada f19ee7e04b
Fixed ASG timeout and updated AMIs (#3631)
Prolonged ASG timeout to 30 minutes, updated the AMIs with 4.2.8, and added additional instance size options
2020-04-27 14:17:13 -07:00
Ben Arent 7290720845
Fix for #3420 - Docs for OIDC for set prompt option. (#3589)
* Fix for #3420
* sets current prompt
2020-04-22 17:16:56 -07:00
Andrew Lytvynov 1cd247905c Fix broken build in example Go client code
The API of auth package changed in an incompatible way. Fix the usage.
2020-04-08 17:38:03 -07:00
Ben Arent 723ea0cd12
Error in Github.yaml (#3523) 2020-04-07 09:21:20 -07:00
Jonathon Canada 5481491160
[docs] Added instructions for license.pem (#3504)
* Added instructions for license.pem
Co-authored-by: Ben Arent <ben@gravitational.com>
2020-03-31 10:02:39 -07:00
Gus Luxton 3245a65687 Also set TELEPORT_PROXY_SERVER_LB for tunnel configs 2020-03-30 17:27:28 -07:00
Gus Luxton 7880e67ea3 Reflect auth server AMI changes in Cloudformation 2020-03-30 17:27:28 -07:00
Russell Jones 43eabd9989 Update get-kubeconfig.sh 2020-03-30 17:26:30 -07:00
Matthew Adams 304b1031d8 also make user configurable 2020-03-30 17:26:30 -07:00
Matthew Adams 208d8142b4 Make CN configurable 2020-03-30 17:26:30 -07:00
Ben Arent 59a652522f Fix formatting issues on Trusted Cluster and GSuite 2020-03-30 17:21:50 -07:00
Steven Martin 0cab6e5847 bump teleport version up 2020-03-30 16:58:38 -07:00
Steven Martin 5dbcc4dae7 Bump teleport version up 2020-03-30 16:58:38 -07:00
Gus Luxton b254b5743b
Some tidying for Terraform code (#3408) 2020-03-05 18:47:10 -04:00
Gus Luxton 608cd0ba71
Update region list/Teleport version for Terraform (#3405) 2020-03-05 16:26:15 -04:00
Gus Luxton 5b34237ce2
Use HTTPS for backend connections from LB with Terraform and ACM (#3399) 2020-03-03 15:49:24 -04:00
aelkugia 748691ff19 Adding sample k8s-groups role to .../examples/resources 2020-02-28 18:31:45 -08:00
Ben Arent 930be29dd2
Updated Auth Connectors Examples and Documentation.
* Update all connector YAML configs
* User <cluster-url> as standard
* Leverage markdown_include.include
* Include screenshots for Buttons based on Display.
2020-02-26 14:57:25 -08:00
Gus Luxton 76e9c3b5c3
Docs fixes for Teleport demo charts (#3353) 2020-02-13 15:03:49 -08:00
jon-can b5db717d47
Update README.md (#3349) 2020-02-12 18:45:21 -08:00
Gus Luxton 2594bc75d3
Update README.md 2020-02-12 17:07:19 -04:00
Heinz Wiesinger aae854dda0 Add support for a defaults file to systemd service.
The defaults file is a common location to define service specific
environment variables. Defining the variables is still up to the
admin, but like this at least the service file doesn't need to be
modified anymore.
2020-02-07 15:43:38 -08:00
Gus Luxton 84ed04b0c5
Add auth server LB public_addr to Teleport config (#3333) 2020-02-07 06:14:45 -08:00
Gus Luxton 545e52391f
Update Terraform code to support Terraform 0.12.x and AWS provider 2.x (#3319) 2020-02-06 11:08:57 -08:00