Commit Graph
36 Commits
Author SHA1 Message Date
Hugo Shaka 0d6adaa50a Standardize systemd LimitNOFILE (#17893)
Actual LimitNOFILE varies greatly between the systems as it depends on the
systemd version and the go version used to build Teleport. The goal of this
commit is to run Teleport in the same setup, regardless of the distro nor
Teleport version.

New systemd defaults are 1024:524288, and starting with go 1.19, go process can
increase their soft limit up to the hard limmit dynamically. Old systemd
versions don't suppoprt `soft:hard` notation and old go versions don't
automatically increase up to the hard limit. For this reasons, the most
compatible setting is to set softlimit=hardlimit=524288.
2022-10-31 16:56:02 +00:00
Ryan Clark 37e832aab2 Fix setting an incorrect port when generating a Teleport config (#17121) 2022-10-07 10:48:29 +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
Brian Joerger a62b8a0b64 Default debug to false in aws AMI scripts (#15887)
Default debug to false in aws scripts.
2022-08-29 17:00:07 +00: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
Brian Joerger 66a428bcf0 Use Debug flag in aws scripts (#15407)
Wrap set -x with DEBUG check to prevent inadvertently logging secrets, such as join tokens held in the /etc/teleport.d/conf.
2022-08-11 16:32:20 +00:00
Hugo Hervieux 5528138e54 Fix cert renewal by recovering certbot state (#3610) 2022-08-04 13:35:38 -04:00
fheinecke b1b3e947bf Fixed AWS 'teleport-generate-config' script when IMDSV2 is used (#13417) 2022-06-15 16:57:49 +00:00
Steven Martin f7169aad07 Enable wildcard dns to support Application Access (#12972) 2022-06-10 15:31:48 +00:00
Håkon SolbjørgandGus Luxton 18575ddba2 fix(generate-config): Always set TELEPORT_CLUSTER_NAME for auth_service (#11564)
Co-authored-by: Gus Luxton <gus@goteleport.com>
2022-06-01 15:35:27 +00:00
Jeff Anderson 704b28fcaf bump nginx1.12 to nginx1
amazon_linux_extras has marked nginx1.12 topic as EOL and nginx1 is the
new stable topic to use.
2021-12-09 21:58:58 -08:00
Jeff Anderson 30acd1c5a7 Use in-memory cache for autoscale HA cluster
* Use in-memory cache for autoscale HA cluster
* bump max_connections and add BATS test
2021-12-09 21:58:58 -08:00
Alen a5e1fd2dd1 remove sudo from yum install
removed sudo from yum install b/c it's not required and causes issues with security hardened base AMIs
2021-12-08 18:27:48 -08:00
Gus Luxton 4a0e1e64d8 [ami] Get wildcard DNS cert when using certbot/Letsencrypt with Terraform AMI (#8792) 2021-11-01 09:47:44 -07:00
Gus Luxton f9220893e5 Add agent support to Teleport AMIs for use with Terraform (#8387)
* Initial commit adding agent mode

* Disable auth_service and proxy_service for agents

Also explicitly start the Teleport service when the config job has run

* Remove kubernetes support from agent

Preferred deployment method is in-cluster using the Helm chart

* Handle difference between labels and static_labels

* Don't override local hostname for agents
2021-10-18 12:35:05 -07:00
Gus Luxton 0101f2f065 aws: Add updates to AMIs for database access (#7487)
* aws: Add updates to AMIs for database access

Also separates/adds unit tests for NLB alias/non-alias mode

* Make tctl version checks more resilient/optional
2021-07-13 11:24:41 -07:00
Gus Luxton 1b14d477c9 Update AMI IDs for 6.2.0 (#7037) 2021-05-26 11:17:51 -07:00
Gus Luxton 1d60d723b6 Moves license_file to the correct section and adds unit test (#6420)
Fixes #6411
2021-04-15 09:23:00 -07:00
Gus Luxton 029acc9505 Remove .bash suffix from bats includes to enable compatibility with older versions (#6053) 2021-03-18 18:50:05 -07:00
Gus Luxton 1f93c23d7d Add unit tests to teleport-generate-config AMI script (#5682) 2021-03-16 09:58:58 -07:00
Gus Luxton 85a31ce918 Add Kubernetes listener to HA Terraform (#5633) 2021-02-23 20:45:28 -04:00
Gus Luxton 50200fc2d8 Change to handle cert sync logic in AMIs when running in all-in-one mode (#5452) 2021-02-09 18:19:15 -04:00
Gus Luxton 08775e34c7 Upgrade pip to fix installation issues in AMI (#5514) 2021-02-09 16:27:52 -04:00
Forrest Marshall 8ebd7ddf71 add inputs.net to telegraf config 2021-02-02 14:51:58 -08:00
Gus Luxton b76e22ca9a Teleport AMI fixes (#5157) 2020-12-17 14:46:48 -04: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 c62f9865b6 Fixed a bug with making AMIs public (#4742) 2020-11-17 16:10:08 -04:00
Gus Luxton 2795df3f6a Various AMI fixes (#4744) 2020-11-17 10:49:56 -04:00
Travis SwientekandGus Luxton 8df9a4f2fc Utilize IMDS v2 endpoints for instance metadata. (#4649)
* Utilize IMDS v2 endpoints for instance metadata.
* DRY out the IMDS token header.
* Silence CURL output from token generation.

Co-authored-by: Gus Luxton <gus@gravitational.com>
2020-11-05 09:24:18 -06:00
Gus Luxton 434775692a Revert "Fix shellcheck quotation warnings" (#4477)
This reverts commit f06e9204d1.
2020-10-07 14:00:02 -03:00
Gus Luxton 17254fc824 Fix AWS AMI install script after shellcheck breakage 2020-10-07 09:18:52 -07:00
Andrew LytvynovandGus Luxton b37b02cd62 Update assets/aws/files/make-amis-public.sh
Co-authored-by: Gus Luxton <gus@gravitational.com>
2020-10-06 17:32:38 +00:00
Andrew LytvynovandGus Luxton 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
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 c33dde5263 Add AMI builds to Drone (#4144) 2020-08-10 09:51:26 -03:00