Commit graph

121 commits

Author SHA1 Message Date
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
Gus Luxton 6696cec6f0
Add tunnel listener and target group to Terraform example for use with ACM (#3302) 2020-01-27 13:38:44 -04:00
Gus Luxton 7717b78d98
Add sudo to launchd commands 2020-01-25 10:35:18 -04:00
Ben Arent fd66de6184
Teleport Production Guide (#3236)
* Start Production Guide
Co-authored-by: Gus Luxton <webvictim@gmail.com>
2020-01-08 15:15:58 -08:00
Ben Arent 010b42bf0c
Bumping 4.2.0 In Docs (#3238)
* Bumping 4.2.0 In reference in docs
2020-01-07 16:24:30 -08:00
Gus Luxton 6e5f3c079c
Set public_addr for ssh_service on demo instances so that we can use tsh join (#3224) 2019-12-18 12:58:40 -04:00
Gus Luxton 0c2764fa50
Add SessionCreate to launchd example (#3189) 2019-12-04 13:06:26 -04:00
Gus Luxton 7b54e7f892
Don't end the script on a certbot error (#3170) 2019-11-22 15:19:47 -04:00
Russell Jones a88fe5bc9c Added example launchd configuration for macOS. 2019-11-21 17:56:08 -08:00
Gus Luxton 0a5f3f6bfc
Cloudflare agent fixes for demo environments in Kubernetes (#3157)
* Added wait time for Cloudflare and retry logic for LetsEncrypt, also removed wildcard registration
* Move log statement
2019-11-14 13:50:04 -04:00
Gus Luxton 2ca75d06e6
Add setuptools to Docker (#3151) 2019-11-13 14:04:54 -04:00
Gus Luxton 7c9e704ada
Change latest tag to buster in Teleport demo containers (#3150) 2019-11-13 13:57:24 -04:00
Gus Luxton f99dc4e4d9
Update pip to pip3 in cloudflare-agent container (#3149) 2019-11-13 13:50:06 -04:00
Ben Arent 95047dea33
Re-order Enterprise Guide and added FIPS Support page (#3129)
* Re-order Enterprise Guide and add FIPS Support page
2019-11-11 09:35:26 -08:00
Ben Arent c00511712e
Expand Examples Readme (#3120)
* Update Readme Examples
2019-11-01 16:49:48 -07:00
Gus Luxton ecfe3cf1cb
Fix some cfn_nag complaints and add metadata for ignoring rules (#3104) 2019-10-24 17:40:35 -03:00
Lele c2f656cefe Update teleport.yaml, for pkg/etc/teleport.yaml and it's systemd unit. 2019-10-17 18:44:33 -07:00
Brendan Germain 1b10e3aad5 Helm Chart updates kubernetes >= 1.16 support (#3065)
* PV template to use Values.persistence.accessMode

* use apps/v1

* expose replica count for modification
2019-10-09 16:47:50 -07:00
Gus Luxton 4efef0cab1
Added FIPS AMI build support (#3051) 2019-10-04 15:49:47 -03:00
Gus Luxton ad6bf79f98
Add Dynamo stream configuration to Terraform (#3023)
* Add Dynamo stream configuration
* Update to NEW_IMAGE as per docs
2019-10-03 14:34:58 -03:00
Lele 7774fb760c
Fixed anti-pattern use of /var/run as the PID dir (#3035)
Fixed anti-pattern use of /var/run as the PID dir
2019-10-01 21:27:18 +02:00
Ben Arent d161538e2e
Additional IAM permissions (#3022)
* Update Terraform for IAM Requirements with S3 requirements.
2019-09-25 11:32:37 -07:00
Gus Luxton 152d626a1d Make license optional in Terraform to improve use with OSS (#2978) 2019-09-11 13:38:17 -07:00
Alexander Klizhentas 7f494f7c10
Updating dependencies for etcd v3.3.15 (#2965)
Fixes #2762

This commit updates go etcd client that fixes
issue of the first etcd peer going down briging down
the whole cluster.
2019-09-08 10:50:56 -07:00
Ben Arent b014d85230
Example CloudFormation using AMI & Let's Encrypt (#2887)
- Added a CloudFormation example to the repo.
2019-08-16 16:11:48 -07:00
Gus Luxton f9d194d0f5
Various small fixes for Grafana (#2836)
* Update default version to 4.0.0
* Various fixes for default Grafana password/dashboards, plus adding missing auth server data
2019-07-04 17:14:18 -03:00
Gus Luxton 882e5ed27f
Automatically restart Teleport process in demo environments (#2824)
* Expose diagnostic endpoint and add liveness/ready checks to pods to enable automatic restart if Teleport shuts down
* Force add OIDC connector to suppress error message when container restarts, also add missing echo to errors
* Force adding of trusted cluster on restart
2019-07-03 14:40:04 -03:00
Sasha Klizhentas 70297fa5a1 Add actions on streams to examples.
Teleport 4.0 uses streaming and IAM should
be updated accordingly.
2019-06-25 16:39:58 -07:00
Gus Luxton 5564855b87
Fix kubeconfig generator script and tidy up odd mention of 'jenkins' (#2771) 2019-06-12 18:08:04 -03:00
Alexander Klizhentas 511d777de2 Update default inage in values.yaml for helm chart 2019-05-23 13:40:03 -07:00
Russell Jones 0e3e4a1e62 Do not emit events in mirror mode.
Update mirror mode (for both the memory and SQLite backends) to no
longer emit events when an element expires. This allows caches to handle
update/delete logic themselves.

This fixes an issue where services.ProxyWatcher was not getting updates
to the list of proxies.
2019-05-21 09:58:43 -07:00
Jessynt 387e7e283d fix: OSTYPE command not found (#2590) 2019-04-23 16:01:33 -07:00
Alexander Klizhentas 92e5bf5081
Fixes in DynamoDB event polling (#2661)
* Add resest for buffers to close watchers
and reset buffer the state.
* Add reconnect logic to DynamoDB
* Add tests for cache watchers, make sure
the errors of the cache internal watcher propagate to
external watchers.
2019-04-17 18:52:09 -07:00
Gus Luxton 9dc033f54b
Various extra fixes for Teleport Demo environments (#2647)
* Create wildcard DNS record for the main cluster as well as single A record so we can use Kubernetes forwarding to remote clusters via proxy properly
* Automatically delete created Cloudflare DNS records via pre-delete hook when the chart is deleted to keep the zone tidy
* Don't explicitly print Cloudflare API credentials in debug mode (they're logged along with the curl commands anyway)
* Add a function to handle Cloudflare API calls rather than copy/pasting code
2019-04-11 17:38:54 +01:00
Gus Luxton d328296b04
Reproducible Teleport demo environments in Kubernetes (#2585)
* Initial commit with split Helm chart for proxy/auth and node elements
* Many, many changes to add all required features
* Remove cert-manager and nginx-ingress
* Update TTL
* Add build-essential and python-dev to cloudflare-agent Docker build and set exit on error
* Add --force-upgrade flag to Tiller for potentially different Helm versions
* Enable Letsencrypt by default
* Overhaul naming to allow better multi-tenancy on k8s clusters
* Add NOTES.txt to provide cluster usage instructions
* Make the use of trusted clusters entirely optional
* Actually make the use of trusted clusters entirely optional this time
* Update .gitignore
* Update whitespace formatting in NOTES.txt
* Enable Letsencrypt by default
* Move secrets to git submodule
* Fix README typo and add secrets to .gitignore
* Update documentation
* Add some extra details to NOTES.txt
* Address PR comments plus update all references to Teleport 3.1.4 -> 3.1.7
* Make Cloudflare TTL optional (use Cloudflare's auto value when it's not provided)
* - Explicitly add admin role to clusters with use of kubernetes_groups
- Fix use of claims_to_roles so it can be specified in values.yaml
- Improve Minikube/NodePort support
- Replace use of containerPort with service port for LoadBalancer objects
* Update secrets in submodule to use Kubernetes-enabled license
* Add admin role script to containers
* Ignore all secrets files
* Update k8s RBAC to fix proxy functionality, also create 'clusteradmin' and 'admin' roles in Teleport to split permissions
* Update default version to 3.1.8
* Add k8s cluster roles and bindings to allow use of CSR APIs and limited permission scope
* Restrict admin role from seeing/updating auth_connectors
* Fix whitespace and naming bug
* Change from using k8s CSR API to impersonation API
* Update from kubectl 1.12.4 -> 1.12.5 for security fix
* Updated build scripts to use Docker cache properly, also using version tags for all containers now to keep things tidier
* Use docker build --pull rather than manual pull, also remove unused TELEPORT_VERSION arguments
2019-04-09 14:09:25 +01:00
Daniel Aquino e260c440a8 helm-chart: allow custom tls-web secret names 2019-04-03 10:16:05 -07:00
Daniel Aquino 9322b7b63f helm-chart: disable service account automount 2019-04-03 10:15:55 -07:00
Brendan Germain 1e44be361b expose deployment update strategy 2019-04-01 17:48:22 -07:00
Brendan Germain ea17f9c2be add externalTrafficPolicy to helm service 2019-03-21 13:19:40 -07:00
Sasha Klizhentas aefe8860c1 Kubernetes proxy to use impersonation API
This commit switches Teleport proxy to use impersonation
API instead of the CSR API.

This allows Teleport to work on EKS clusters, GKE and all
other CNCF compabitble clusters.

This commit updates helm chart RBAC as well.

It introduces extra configuration flag to proxy_service
configuration parameter:

```yaml
proxy_service:
   # kubeconfig_file is used for scenarios
   # when Teleport Proxy is deployed outside
   # of the kubernetes cluster
   kubeconfig_file: /path/to/kube/config
```

It deprecates similar flag in auth_service:

```yaml
auth_service:
   # DEPRECATED. THIS FLAG IS IGNORED
   kubeconfig_file: /path/to/kube/config
```
2019-03-18 15:46:49 -07:00
Gus Luxton 689bb5b4f8
Change cluster validation method from using CA cert to CA pin hash (#2602)
* Change cluster validation method from using CA cert stored in SSM to CA pin hash stored in SSM - also fixes issues with proxy/node being unable to join the cluster if the cluster name is reused. Split builds into local 'debug' versions and separate production/marketplace versions with different names
2019-03-14 12:11:16 +00:00
Gus Luxton e3f229b443 Update region line 2019-03-07 17:07:57 +00:00
Gus Luxton fa26cd894f
Updates to copy license correctly when using Terraform (#2591)
* Fixes for Terraform documentation and license
* Update Makefile and README
* Makefile formatting fixes
* Add build timestamps back into Jenkins
* Add BuildTimestamp into user tags
* Add region to modify-image-attribute command
* Add owner ID into list command
2019-03-07 16:05:07 +00:00
Gus Luxton 1265d4cf63
Single AMI changes for Amazon Marketplace (#2486)
* Add single AMI build/setup
* Add ACM support to Terraform and Letsencrypt support to single AMI
* Finish Letsencrypt support for Single AMI, also add ACM to Single AMI and tidy up Terraform versioning
* Fix Letsencrypt cert acquistion, reduce startup timers from 5 minutes to 3 minutes, tweaks for ACM/non-ACM in Terraform
* Remove AWS-based license from Enterprise AMI to convert to BYOL
* Tidy up - move Cloudformation into a separate subdirectory and remove old Terraform code
* Updated TIG stack to latest versions and tested
* Tidy up CloudFormation builds and improve instructions
* Fix VPC variable name
2019-01-29 18:26:32 +00:00