Dogfood - re-enabling webhook log destination (#30690)

- Disabling firehose log destination
- Re-enabling webhook log destination

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Enabled webhook logging by activating environment variables for
webhook URLs.
* Webhook log plugin is now conditionally set based on the presence of a
webhook URL.

* **Chores**
* Updated environment variable management by removing firehose-logging
addon variables from the configuration.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Jorge Falcon 2025-07-09 12:43:08 -04:00 committed by GitHub
parent e2827199b9
commit aa2a080711
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,9 +71,9 @@ locals {
FLEET_DEV_ANDROID_ENABLED = "1"
FLEET_DEV_ANDROID_SERVICE_CREDENTIALS = var.android_service_credentials
# Webhook Results & Status Logging Destination
# FLEET_WEBHOOK_STATUS_URL = var.webhook_url
# FLEET_WEBHOOK_RESULT_URL = var.webhook_url
# FLEET_OSQUERY_RESULT_LOG_PLUGIN = var.webhook_url != "" ? "webhook" : ""
FLEET_WEBHOOK_STATUS_URL = var.webhook_url
FLEET_WEBHOOK_RESULT_URL = var.webhook_url
FLEET_OSQUERY_RESULT_LOG_PLUGIN = var.webhook_url != "" ? "webhook" : ""
}
sentry_secrets = {
FLEET_SENTRY_DSN = "${aws_secretsmanager_secret.sentry.arn}:FLEET_SENTRY_DSN::"
@ -142,7 +142,6 @@ module "main" {
}
extra_iam_policies = concat(module.firehose-logging.fleet_extra_iam_policies, module.osquery-carve.fleet_extra_iam_policies, module.ses.fleet_extra_iam_policies)
extra_environment_variables = merge(
module.firehose-logging.fleet_extra_environment_variables,
module.osquery-carve.fleet_extra_environment_variables,
module.ses.fleet_extra_environment_variables,
local.extra_environment_variables,