Skip to content

Team policy automation web hook set through UI not overwritten by GitOps #24471

@allenhouchins

Description

@allenhouchins

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.

https://github.com/fleetdm/fleet/blob/3737e5b75b55b7924dd89f5cf565f39f83aca962/it-and-security/default.yml#L63C1-L68C21

🧑‍💻  Steps to reproduce

  1. Create a policy and policy automation utilizing a webhook in the UI.
  2. Via gitops, configure webhook settings but don't apply them to any policy ids.
  3. 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
Screenshot 2024-12-06 at 9 26 02 AM

Metadata

Metadata

Assignees

Labels

#g-orchestrationOrchestration product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documented~released bugThis bug was found in a stable release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions