Commit Graph
67 Commits
Author SHA1 Message Date
Robert Fairburn d5da95f5a9 Improvements to KMS encryption stance on ALB logs (#185) 2026-03-06 08:14:15 -06:00
Robert Fairburn a62e432d2f Allow Fleet ECS target-group protocol to be configured for https support (#184) 2026-03-02 11:51:59 -06:00
Jorge Falcon 2877050841 Module: Monitoring - readme updates (#183) 2026-02-24 10:19:04 -05:00
Jorge Falcon e7a026671d Add TLSConfig support to monitoring module (#182)
- Allows MySQL TLS Config to be set to connect to MySQL over TLS.
Default: `true`
2026-02-23 15:00:44 -05:00
Robert Fairburn 0512d6da11 Initial cross-account log sharing module (#176) 2026-02-18 07:30:11 -06:00
Robert Fairburn 2c4933346d Bump docker provider for geolite2 (#178) 2026-02-12 14:49:41 -06:00
Robert Fairburn 8c61c6fa6e Okta condiitonal access subdomain (#154) 2026-01-12 09:50:33 -06:00
Jorge Falcon f4aa0416ac Update example in addons/monitoring/README.md (#153)
Closes: https://github.com/fleetdm/fleet-terraform/issues/149 

- Updates `mysql_password_secret_name` for documented monitoring example
in `addons/monitoring/.header.md` & `addons/monitoring/README.md` to
address `inconsistent final plan`
2025-12-16 11:37:27 -05:00
Robert Fairburn ca8373b5f9 Initial firehost-splunk module (#150) 2025-12-05 11:03:23 -06:00
Jorge Falcon 132e9b91d4 Example and logging-destination README updates (#148) 2025-12-03 16:22:38 -05:00
Jorge Falcon 671326e61d Add S3 bucket outputs for logging destination addons (#146)
addons/logging-destination-datadog
- Adds `output.fleet_s3_datadog_failure_config`

addons/logging-destination-firehose
- Adds `output.fleet_s3_firehose_osquery_results_config`
- Adds `output.fleet_s3_firehose_osquery_status_config`
- Adds `output.fleet_s3_firehose_audit_config`

addons/logging-destination-snowflake
- Adds `output.fleet_s3_snowflake_failure_config`
2025-12-03 15:33:31 -05:00
Jorge Falcon b63348a0c7 Update addon/cloudfront-software-installers/README.md (#145) 2025-12-01 19:52:15 -05:00
Jorge Falcon 836a1c7b6a Support for using an existing cloudfront key group with a new distribution (#144)
- Pins nested module, `module.cloudfront_software_installers`, to
`5.2.0`
- Adds support for `var.key_group_id` to use an existing Cloudfront Key
Group
2025-12-01 19:29:34 -05:00
Robert Fairburn 1efd176302 Update osquery-perf example docs (#141) 2025-11-17 17:18:03 -06:00
Robert Fairburn e000ea39e2 Set better defaults and make task size and memory configurable (#140) 2025-11-14 13:59:20 -06:00
Robert Fairburn 757bd3cbae Update docs for addon/logging-destination-snowflake (#139) 2025-11-14 13:59:09 -06:00
Robert Fairburn a4278ad0f7 Allow for custom iam policy name (#138) 2025-11-14 09:33:02 -06:00
Robert Fairburn c7860450ac Update monitoring example. (#137)
Use module.fleet over module.main to reflect the reference architecture
examples.
2025-11-12 13:09:58 -06:00
Robert Fairburn ed4d3c01de Initial monitoring of cloudwatch logs (#136) 2025-11-12 12:28:23 -06:00
Jorge Falcon 8765c8c1e0 Fixes migration script issue with max_capacity value getting set to 1 when scaling up (#135)
- Fixes how MAX_CAPACITY is being used to avoid value getting set to 1,
leading to failure scaling up.
2025-11-10 20:22:05 -05:00
Jorge Falcon cb44f6fd83 Module logging-alb regex update (#134)
- Updates regex in the logging-alb module
2025-11-10 08:31:20 -05:00
Jorge Falcon 7113a2a427 SES Module README updates (#130) 2025-10-31 16:39:44 -04:00
Jorge Falcon a1778b2e3a Updates SES module to support toggling policy creation on and off (#129)
- Addded variable `create_iam_policy` to drive policy creation. Defaults
to `true`
2025-10-31 16:08:41 -04:00
Jorge Falcon c248d36a33 Updating monitoring module version in monitoring README.md (#127) 2025-10-27 11:17:29 -04:00
Jorge Falcon fc25a6954a Add --max-capacity support to migrate.sh (#117)
- Adds support for `CAPACITY_MAX="${MAX_CAPACITY}"`, if scaling up.
`CAPACITY_MAX = 0`, if scaling down.
- Adds support for `--max-capacity` in the `${ADJUST_AUTOSCALING}` logic
2025-10-24 12:47:04 -04:00
Jorge Falcon 53d2a07140 Cron ignore list to monitoring module (#122)
- Updates monitoring module to use aws sdk v2
- Adds support for suppressing cron monitoring alerts
2025-10-20 13:41:39 -04:00
Jorge Falcon ae8863ce64 Support for internal load balancer and deletion protection, iam policy attachment processing, osquery perf fix, and cloudfront software installers (#105)
# Main terraform

- Modified iam `resource "aws_iam_role_policy_attachment" "extras"` from
`for_each` to `count`, which allows terraform to apply even if roles are
not yet created. In cases where role is not yet created, a second
terraform apply is required for the resource to attach the policy.
- Modified iam `resource "aws_iam_role_policy_attachment"
"execution_extras"`, which allows terraform to apply even if roles are
not yet created. In cases where role is not yet created, a second
terraform apply is required for the resource to attach the policy.
- Added support for internal load balancers to be provisioned.
- Added support for toggling deletion protection on and off on the load
balancer resource.

# Example Module

- Updated example module with changes alb changes.

# Module: Cloudfront Software Installers

- Added a count & tertiary to cloudfront software installer kms key
policy, as it's fed in as an input. In cases where the key had not yet
been created, apply would fail.
- Modified `variable "s3_kms_key_id"` to allow default value `null`

# Module: Logging Destination Firehose

- Added prefix variable to support use-cases where multiple environments
are deployed in the same account

# Module: Osquery Perf

- Added dependency on
`data.aws_secretsmanager_secret_version.enroll_secret` to fix race
condition.
2025-09-19 16:16:22 -04:00
Jorge Falcon 3ee9106631 Force destroy support for firehose log destination (#104)
- Added `force_destroy = true` to firehose log destination s3 buckets
2025-09-04 18:46:35 -04:00
Jorge Falcon a4647fb2d4 Duplicate filter {}'s removal on firehose logging destination (#100)
- Removing duplicate `filter {}` from
`addons/logging-destination-firehose/main.tf`
2025-08-29 17:21:42 -04:00
Jorge Falcon d4b1804783 Fix regex pattern causing logs to not display (#97)
- Fixed issue where status code `505` logs were not displaying in Athena
2025-08-26 12:36:56 -04:00
Robert Fairburn ecb3910653 Update logging-alb docs (#96) 2025-08-22 08:52:14 -05:00
Robert Fairburn 193f6495da Fix athena table creation when s3 prefix doesn't match bucket prefix (#95) 2025-08-22 08:22:37 -05:00
Robert Fairburn e1527926dc Initial support for bypassing URLs on the allowlist (#94) 2025-08-22 07:34:09 -05:00
Jorge Falcon e9f841e1b2 Updating saml-auth-proxy image to 1.17.3 (#90)
- Updating variables.tf `saml_auth_proxy_image = 1.16.1` ->
`saml_auth_proxy_image = 1.17.3`
2025-08-20 11:14:06 -04:00
Robert Fairburn 379e51d0dc Create athena table in logging_alb (#92) 2025-08-19 12:21:18 -05:00
Robert Fairburn 333b53caf5 Remove extra copies of geolite2 module (#91) 2025-08-19 12:14:27 -05:00
Jorge Falcon def4b33206 AWS Region Terraform deprecation fixes (#87)
- aws_region Terraform attribute `name` has been deprecated in favor of
`region`, introduced in v6 of the hashicorp/aws provider.
- Updated
  - `addons/byo-firehose-logging-destination/target-account/firehose.tf`
  - `addons/external-vuln-scans/main.tf`
  - `addons/logging-alb/main.tf`
  - `addons/logging-destination-datadog/outputs.tf`
  - `addons/mdmproxy/main.tf`
  - `addons/migrations/main.tf`
  - `addons/saml-auth-proxy/main.tf`
  - `addons/xrays-sidecar/outputs.tf`
  - `byo-vpc/byo-db/byo-ecs/main.tf`
  - `byo-vpc/byo-db/byo-ecs/outputs.tf`
2025-08-11 11:49:01 -04:00
Jorge Falcon 0166b67f74 Add custom domain support to SES module (#86)
- Added variable to drive custom mail from configuration
- Added resource for MX record to a specific route 53 zone, if custom
mail value from is enabled
- Add SPF record to local.spf_records list, if custom mail value from is
enabled. Current spf resource takes care of
  - Creating the record if the value is present
- Destroying the record if the value is not present (when disabled or
variable is not set)
2025-08-07 17:13:18 -04:00
Robert Fairburn 050609fae8 Fix example in snowflake readme (#83) 2025-08-04 10:44:24 -05:00
Robert Fairburn 6cebbf2cff Initial snowflake module config (#72) 2025-07-31 10:23:24 -05:00
Robert Fairburn 22ce3187c3 Update TLS version used in load balancers (#78)
Updated per
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/describe-ssl-policies.html
2025-07-30 14:37:06 -05:00
Jorge Falcon c0d008bbf4 s3 lifecycle updates (#75)
- Added `filter {}` to resource `aws_s3_bucket_lifecycle_configuration`
block(s)
- Added `filter = []` to `module.s3_bucket_for_logs in
addons/logging-alb/main.tf`
- Added `filter = []` to `module.athena-s3-bucket in
addons/logging-alb/main.tf`

---

Addresses the following warnings.
```
No attribute specified when one (and only one) of [rule[0].filter,rule[0].prefix] is required
```

---

```
╷
│ Warning: Invalid Attribute Combination
│ 
│   with module.logging_alb.module.athena-s3-bucket[0].aws_s3_bucket_lifecycle_configuration.this[0],
│   on .terraform/modules/logging_alb.athena-s3-bucket/main.tf line 219, in resource "aws_s3_bucket_lifecycle_configuration" "this":
│  219: resource "aws_s3_bucket_lifecycle_configuration" "this" {
│ 
│ 2 attributes specified when one (and only one) of [rule[0].expiration[0].date,rule[0].expiration[0].days,rule[0].expiration[0].expired_object_delete_marker] is required
```
2025-07-29 17:19:19 -04:00
Robert Fairburn 81bb303312 Firehose audit (#71) 2025-07-28 11:39:13 -05:00
Robert Fairburn b6b499063a osquery-perf module to accept an enroll secret (#69) 2025-07-10 11:16:43 -05:00
George Karr ba0007c841 Updating version (#70) 2025-07-09 17:00:05 -05:00
George Karr 6fdce2f1c8 Updating default versions (#64) 2025-06-30 16:29:29 -05:00
Benjamin Edwards c78a71ed9c add datadog logging-addon via firehose (#57)
sets up an addon we can use to get a readily configured firehose
delivery stream that has the Datadog sink configured
2025-06-30 14:49:35 -04:00
Jorge Falcon 33ebcf7abc Updating saml-auth-proxy image to 1.16.1 (#61)
- Bumping saml-auth-proxy docker image from
`1.16.0@sha256:79ff45f45efb4605a250bfcd92651435963477d8a4265b713b016190efa20503`
to
`1.16.1@sha256:5be44e1f1232279774be48f6719a6a3ca0b0510bb2459ee6cf9c5015da1ab60c`
2025-06-27 09:01:36 -04:00
Jorge Falcon 8befe6f9f5 Go update to 1.24.4 (#62)
- Incrementing go version in monitoring module from 1.24.2 -> 1.24.4
2025-06-26 17:35:05 -04:00
Benjamin Edwards dd3c807f02 migrations assume role support (#31) 2025-06-10 09:15:20 -04:00