-
Notifications
You must be signed in to change notification settings - Fork 824
Team policy automation web hook set through UI not overwritten by GitOps #24471
Description
Fleet version: 4.60.1
Web browser and operating system: Any
💥 Actual behavior
https://fleetdm.slack.com/archives/C071NNMSP2R/p1733416063457349
I was working to resolve this issue. I noticed the yaml file we have that controls policy automations was configured to not include any policies (policy ids).
webhook_settings:
failing_policies_webhook:
destination_url: $DOGFOOD_FAILING_POLICIES_WEBHOOK_URL
enable_failing_policies_webhook: true
host_batch_size: 0
policy_ids: []
It seems that policy automation that Victor referenced in Slack must have been set through the UI. I would have expected it to return to the state defined in the yaml during the nightly refresh. I have since unchecked the box for the policy automation in the UI to resolve the reported issue.
🧑💻 Steps to reproduce
- Create a policy and policy automation utilizing a webhook in the UI.
- Via gitops, configure webhook settings but don't apply them to any policy ids.
- Apply settings and notice the webhook automation is still configured.
🕯️ More info (optional)
This was the policy in dogfood: https://dogfood.fleetdm.com/policies/3917?team_id=9
