<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #40493 Changes already reviewed in the PRs merged to this feature branch. Only additive change was https://github.com/fleetdm/fleet/pull/50595/commits/c0934e1fee46a734f9499a4c782563d4fcc345c4 to address CodeRabbit's comments. # Checklist for submitter - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [x] Added/updated automated tests - [x] QA'd all new/changed functionality manually https://github.com/user-attachments/assets/ea7f5157-a67a-4d83-842d-62197bd1546d ## New Fleet configuration settings - [ ] Setting(s) is/are explicitly excluded from GitOps If you didn't check the box above, follow this checklist for GitOps-enabled settings: - [x] Verified that the setting is exported via `fleetctl generate-gitops` - [x] Verified the setting is documented in a separate PR to [the GitOps documentation](https://github.com/fleetdm/fleet/blob/main/docs/Configuration/yaml-files.md#L485) - [x] Verified that the setting is cleared on the server if it is not supplied in a YAML file (or that it is documented as being optional) - [x] Verified that any relevant UI is disabled when GitOps mode is enabled <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit * **New Features** * Added host activity automations with configurable webhook destinations. * Manage automations from the Hosts page with validation, permissions, and enable/disable controls. * Added GitOps support for team and unassigned-host webhook settings. * Activity webhooks now include fleet-scoped host IDs where applicable. * Added profile UUIDs to MDM profile resend activity details. * **Bug Fixes** * Improved Windows MDM enrollment activity details by including the linked host ID when available. * Preserved existing webhook settings when omitted during updates. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import PropTypes from "prop-types";
|
|
|
|
export default PropTypes.shape({
|
|
destination_url: PropTypes.string,
|
|
policy_ids: PropTypes.arrayOf(PropTypes.number),
|
|
enable_failing_policies_webhook: PropTypes.bool,
|
|
host_batch_size: PropTypes.number,
|
|
});
|
|
|
|
export interface IWebhookHostStatus {
|
|
enable_host_status_webhook?: boolean;
|
|
destination_url?: string;
|
|
host_percentage?: number;
|
|
days_count?: number;
|
|
}
|
|
export interface IWebhookFailingPolicies {
|
|
destination_url?: string;
|
|
policy_ids?: number[];
|
|
enable_failing_policies_webhook?: boolean;
|
|
host_batch_size?: number;
|
|
}
|
|
|
|
export interface IWebhookSoftwareVulnerabilities {
|
|
destination_url?: string;
|
|
enable_vulnerabilities_webhook?: boolean;
|
|
host_batch_size?: number;
|
|
}
|
|
|
|
export interface IWebhookActivities {
|
|
enable_activities_webhook: boolean;
|
|
destination_url: string;
|
|
}
|
|
|
|
export interface IWebhookHostActivities {
|
|
enable_host_activities_webhook: boolean;
|
|
destination_url: string;
|
|
}
|
|
|
|
export type IWebhook =
|
|
| IWebhookHostStatus
|
|
| IWebhookFailingPolicies
|
|
| IWebhookSoftwareVulnerabilities
|
|
| IWebhookActivities
|
|
| IWebhookHostActivities;
|