Commit Graph
42 Commits
Author SHA1 Message Date
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
Jorge Falcon 3b09101be9 Bumping up the default version of the saml_auth_proxy_image (#54)
bumping from
`1.12.0@sha256:ddff17caa00c1aad64d6c7b2e1d5eb93d97321c34d8ad12a25cfd8ce203db723`->
`1.16.0@sha256:79ff45f45efb4605a250bfcd92651435963477d8a4265b713b016190efa20503`
2025-06-06 16:40:36 -04:00
Jorge Falcon 97bf28adde Updating go versions to 1.24.2 (#45) 2025-05-20 10:11:57 -04:00
Jorge Falcon 1299f441de Monitoring addon - broken links and documentation updates (#42)
- Updated broken links
- Updated formatting of some wording
- Added note around modifying example for use with `module.fleet` vs
`module.main`
2025-05-15 11:43:04 -04:00
Robert Fairburn ee20ed8f2e Fix typo in cloudfront.pem generation (#32) 2025-04-23 17:35:46 -05:00
Scott Gress 9c7ca60c1d Fix cron monitor issue when jobs have no errors (#30) 2025-04-18 17:42:43 -05:00
Scott Gress a04a23cb6c Digest errors in cron monitor (#18)
This PR updates the cron monitoring Lambda code so that if a job runs
multiple times during the monitoring window (typically 1 hour) and
reports errors during several of those runs, the monitor rolls the
errors up into one report. This will cut down on the number of messages
sent via SNS (and reported in Slack).

Example output:

```
Message: Fleet cron 'usage_statistics' (last updated 2025-03-24 17:42:05 +0000 UTC) raised errors in 4 of the previous 14 runs; the most recent is:
["4d33d9dd"]
```

(the `["4d33d9dd"]` is a random value added to a cron_stats row for
testing purposes)
2025-03-31 13:56:58 -05:00
Robert Fairburn 01271e17c6 Fix tfvalidate and validation errors (#20)
This also removes the broken vuln scans module that never behaved as
expected.
2025-03-27 11:38:26 -05:00
Luke Heath 4d7be48ecf Increment Fleet version to 4.65.0 (#17) 2025-03-14 15:42:36 -05:00
ben 76e55e6a51 Upgrade to latest fleet:v4.64.2 (#16)
Upgrade to latest `fleet:v4.64.2` which fixes `CVE-2025-27509`

cf.
https://github.com/fleetdm/fleet/security/advisories/GHSA-52jx-g6m5-h735
2025-03-14 13:11:43 -05:00
Robert Fairburn 774797c5c4 Have SES module create a default dmarc record (#14) 2025-03-07 13:41:54 -06:00
Robert Fairburn e8154d7bde Cloudfront installers (#13) 2025-03-04 18:09:33 -06:00
George Karr 6ff853ed7b Bumping latest version to 4.64.1 (#9) 2025-02-20 18:19:44 -06:00
Robert Fairburn e68e4851db Remove inadvertent file (#10) 2025-02-20 18:19:12 -06:00
Robert Fairburn 628ba367fa Fix breaking change in geolite2 module (#4) 2025-02-09 21:23:29 -06:00
Robert Fairburn e6fadb737a Update versions to be latest and work with this repo (#3) 2025-02-09 21:23:16 -06:00
Benjamin Edwards df405f4e59 update vuln processing module to use volumes (#2) 2025-02-06 15:46:52 -05:00
Robert Fairburn f378f62db2 Initial migration (#1)
This will be needed to make the initial tags. Once merged to main, I
will tag with the same module revisions as what exists in the Fleet
repo. We can then test the example module using the new settings.

Once validated, we'll then update the main fleet repo to redirect here
for /terraform and remove everything there. Anything referring to old
tags will still work in-place. Additionally any website references will
be updated as well to reflect these changes.
2025-02-04 10:07:51 -06:00