2026-01-05 16:43:26 +00:00
|
|
|
import React, { useContext, useState } from "react";
|
|
|
|
|
import classnames from "classnames";
|
|
|
|
|
import { ISoftwareTitleDetails, IAppStoreApp } from "interfaces/software";
|
|
|
|
|
import { ILabelSummary } from "interfaces/label";
|
|
|
|
|
|
|
|
|
|
import { useQuery } from "react-query";
|
|
|
|
|
|
|
|
|
|
import { NotificationContext } from "context/notification";
|
Remove UI gating in GitOps mode for excepted entities (#42486)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #42184
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [ ] 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.
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.
- [ ] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
## Testing
- [ ] Added/updated automated tests
- [ ] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)
- [ ] QA'd all new/changed functionality manually
For unreleased bug fixes in a release candidate, one of:
- [ ] Confirmed that the fix is not expected to adversely impact load
test results
- [ ] Alerted the release DRI if additional load testing is needed
## Database migrations
- [ ] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [ ] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [ ] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
## 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:
- [ ] Verified that the setting is exported via `fleetctl
generate-gitops`
- [ ] 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)
- [ ] 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)
- [ ] Verified that any relevant UI is disabled when GitOps mode is
enabled
## fleetd/orbit/Fleet Desktop
- [ ] Verified compatibility with the latest released version of Fleet
(see [Must
rule](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/workflows/fleetd-development-and-release-strategy.md))
- [ ] If the change applies to only one platform, confirmed that
`runtime.GOOS` is used as needed to isolate changes
- [ ] Verified that fleetd runs on macOS, Linux and Windows
- [ ] Verified auto-update works from the released version of component
to the new version (see [tools/tuf/test](../tools/tuf/test/README.md))
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Release Notes
* **New Features**
* Added support for GitOps exceptions per entity type (labels, software,
secrets), allowing specific areas to bypass GitOps mode restrictions
when configured.
* **Bug Fixes**
* Improved GitOps mode behavior to properly respect per-entity-type
exception settings across software, labels, and secrets management.
* **Tests**
* Extended test coverage for GitOps exception handling scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-31 14:10:56 +00:00
|
|
|
import useGitOpsMode from "hooks/useGitOpsMode";
|
2026-01-05 16:43:26 +00:00
|
|
|
|
|
|
|
|
import softwareAPI from "services/entities/software";
|
|
|
|
|
import labelsAPI, { getCustomLabels } from "services/entities/labels";
|
|
|
|
|
|
|
|
|
|
import Card from "components/Card";
|
|
|
|
|
import Modal from "components/Modal";
|
|
|
|
|
import ModalFooter from "components/ModalFooter";
|
|
|
|
|
import Checkbox from "components/forms/fields/Checkbox";
|
|
|
|
|
import TargetLabelSelector from "components/TargetLabelSelector";
|
2026-02-06 16:19:35 +00:00
|
|
|
import GitOpsModeTooltipWrapper from "components/GitOpsModeTooltipWrapper";
|
2026-01-05 16:43:26 +00:00
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
CUSTOM_TARGET_OPTIONS,
|
|
|
|
|
generateSelectedLabels,
|
|
|
|
|
getCustomTarget,
|
2026-02-20 22:03:34 +00:00
|
|
|
getDisplayedSoftwareName,
|
2026-01-05 16:43:26 +00:00
|
|
|
generateHelpText,
|
|
|
|
|
getTargetType,
|
|
|
|
|
} from "pages/SoftwarePage/helpers";
|
|
|
|
|
|
|
|
|
|
import InputField from "components/forms/fields/InputField";
|
|
|
|
|
import Button from "components/buttons/Button";
|
|
|
|
|
|
|
|
|
|
import { DEFAULT_USE_QUERY_OPTIONS } from "utilities/constants";
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
ISoftwareAutoUpdateConfigFormValidation,
|
|
|
|
|
ISoftwareAutoUpdateConfigInputValidation,
|
|
|
|
|
validateFormData,
|
|
|
|
|
} from "./helpers";
|
|
|
|
|
|
|
|
|
|
const baseClass = "edit-auto-update-config-modal";
|
|
|
|
|
const formClass = "edit-auto-update-config-form";
|
|
|
|
|
|
|
|
|
|
// Schema for the form data that will be used in the UI
|
|
|
|
|
// and sent to the API.
|
|
|
|
|
export interface ISoftwareAutoUpdateConfigFormData {
|
|
|
|
|
autoUpdateEnabled: boolean;
|
|
|
|
|
autoUpdateStartTime: string;
|
|
|
|
|
autoUpdateEndTime: string;
|
|
|
|
|
targetType: string;
|
|
|
|
|
customTarget: string;
|
|
|
|
|
labelTargets: Record<string, boolean>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface EditAutoUpdateConfigModal {
|
|
|
|
|
teamId: number;
|
|
|
|
|
softwareTitle: ISoftwareTitleDetails;
|
|
|
|
|
refetchSoftwareTitle: () => void;
|
|
|
|
|
onExit: () => void;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const EditAutoUpdateConfigModal = ({
|
|
|
|
|
softwareTitle,
|
|
|
|
|
teamId,
|
|
|
|
|
refetchSoftwareTitle,
|
|
|
|
|
onExit,
|
|
|
|
|
}: EditAutoUpdateConfigModal) => {
|
|
|
|
|
const { renderFlash } = useContext(NotificationContext);
|
Remove UI gating in GitOps mode for excepted entities (#42486)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #42184
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [ ] 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.
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.
- [ ] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
## Testing
- [ ] Added/updated automated tests
- [ ] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)
- [ ] QA'd all new/changed functionality manually
For unreleased bug fixes in a release candidate, one of:
- [ ] Confirmed that the fix is not expected to adversely impact load
test results
- [ ] Alerted the release DRI if additional load testing is needed
## Database migrations
- [ ] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [ ] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [ ] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
## 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:
- [ ] Verified that the setting is exported via `fleetctl
generate-gitops`
- [ ] 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)
- [ ] 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)
- [ ] Verified that any relevant UI is disabled when GitOps mode is
enabled
## fleetd/orbit/Fleet Desktop
- [ ] Verified compatibility with the latest released version of Fleet
(see [Must
rule](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/workflows/fleetd-development-and-release-strategy.md))
- [ ] If the change applies to only one platform, confirmed that
`runtime.GOOS` is used as needed to isolate changes
- [ ] Verified that fleetd runs on macOS, Linux and Windows
- [ ] Verified auto-update works from the released version of component
to the new version (see [tools/tuf/test](../tools/tuf/test/README.md))
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Release Notes
* **New Features**
* Added support for GitOps exceptions per entity type (labels, software,
secrets), allowing specific areas to bypass GitOps mode restrictions
when configured.
* **Bug Fixes**
* Improved GitOps mode behavior to properly respect per-entity-type
exception settings across software, labels, and secrets management.
* **Tests**
* Extended test coverage for GitOps exception handling scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-31 14:10:56 +00:00
|
|
|
const { gitOpsModeEnabled } = useGitOpsMode("software");
|
2026-01-05 16:43:26 +00:00
|
|
|
|
|
|
|
|
const formClassNames = classnames(formClass, {
|
|
|
|
|
[`edit-auto-update-config-form--disabled`]: gitOpsModeEnabled,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const [isUpdatingConfiguration, setIsUpdatingConfiguration] = useState(false);
|
|
|
|
|
const [formData, setFormData] = useState<ISoftwareAutoUpdateConfigFormData>({
|
|
|
|
|
autoUpdateEnabled: softwareTitle.auto_update_enabled || false,
|
2026-01-12 17:08:26 +00:00
|
|
|
autoUpdateStartTime: softwareTitle.auto_update_window_start || "",
|
|
|
|
|
autoUpdateEndTime: softwareTitle.auto_update_window_end || "",
|
2026-01-05 16:43:26 +00:00
|
|
|
targetType: getTargetType(softwareTitle.app_store_app as IAppStoreApp),
|
|
|
|
|
customTarget: getCustomTarget(softwareTitle.app_store_app as IAppStoreApp),
|
|
|
|
|
labelTargets: generateSelectedLabels(
|
|
|
|
|
softwareTitle.app_store_app as IAppStoreApp
|
|
|
|
|
),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Fetch labels for TargetLabelSelector
|
|
|
|
|
const { data: labels } = useQuery<ILabelSummary[], Error>(
|
|
|
|
|
["custom_labels"],
|
2026-01-08 14:33:27 +00:00
|
|
|
() => labelsAPI.summary(teamId).then((res) => getCustomLabels(res.labels)),
|
2026-01-05 16:43:26 +00:00
|
|
|
{
|
|
|
|
|
...DEFAULT_USE_QUERY_OPTIONS,
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const [
|
|
|
|
|
formValidation,
|
|
|
|
|
setFormValidation,
|
|
|
|
|
] = useState<ISoftwareAutoUpdateConfigFormValidation>(() =>
|
|
|
|
|
validateFormData(formData)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// Currently calls the "edit app store app" API.
|
|
|
|
|
// FUTURE: switch endpoint based on software title type?
|
|
|
|
|
const onSubmitForm = async (evt: React.MouseEvent<HTMLFormElement>) => {
|
|
|
|
|
evt.preventDefault();
|
|
|
|
|
|
|
|
|
|
const newValidation = validateFormData(formData, true);
|
|
|
|
|
setFormValidation(newValidation);
|
|
|
|
|
|
|
|
|
|
if (!newValidation.isValid) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setIsUpdatingConfiguration(true);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
await softwareAPI.editAppStoreApp(softwareTitle.id, teamId, formData);
|
|
|
|
|
|
|
|
|
|
renderFlash(
|
|
|
|
|
"success",
|
|
|
|
|
<>
|
2026-02-20 22:03:34 +00:00
|
|
|
<strong>
|
|
|
|
|
{getDisplayedSoftwareName(
|
|
|
|
|
softwareTitle.name,
|
|
|
|
|
softwareTitle.display_name
|
|
|
|
|
)}
|
|
|
|
|
</strong>{" "}
|
|
|
|
|
configuration updated.
|
2026-01-05 16:43:26 +00:00
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
refetchSoftwareTitle();
|
|
|
|
|
onExit();
|
|
|
|
|
} catch (e) {
|
|
|
|
|
renderFlash(
|
|
|
|
|
"error",
|
|
|
|
|
"An error occurred while updating the configuration. Please try again."
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
setIsUpdatingConfiguration(false);
|
|
|
|
|
return true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const onToggleEnabled = (value: boolean) => {
|
|
|
|
|
const newFormData = { ...formData, autoUpdateEnabled: value };
|
|
|
|
|
setFormData(newFormData);
|
|
|
|
|
setFormValidation(validateFormData(newFormData));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const onChangeTimeField = (update: { name: string; value: string }) => {
|
|
|
|
|
// Ensure HH:MM format with proper characters.
|
|
|
|
|
const value = update.value.substring(0, 5).replace(/[^0-9:]/g, "");
|
|
|
|
|
const newFormData = { ...formData, [update.name]: value };
|
|
|
|
|
setFormData(newFormData);
|
|
|
|
|
const newValidation = validateFormData(newFormData);
|
|
|
|
|
// Can be "autoUpdateStartTime" or "autoUpdateEndTime".
|
|
|
|
|
const fieldName = update.name as keyof ISoftwareAutoUpdateConfigFormValidation;
|
|
|
|
|
const fieldValidation = newValidation[
|
|
|
|
|
fieldName
|
|
|
|
|
] as ISoftwareAutoUpdateConfigInputValidation;
|
|
|
|
|
// We don't want to show an error message as the user types.
|
|
|
|
|
// (that will happen on blur instead)
|
|
|
|
|
// We'll just clear any existing error if the field is valid.
|
|
|
|
|
if (fieldValidation?.isValid) {
|
|
|
|
|
setFormValidation(newValidation);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const onSelectTargetType = (value: string) => {
|
|
|
|
|
const newData = { ...formData, targetType: value };
|
|
|
|
|
setFormData(newData);
|
|
|
|
|
setFormValidation(validateFormData(newData));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const onSelectCustomTargetOption = (value: string) => {
|
|
|
|
|
const newData = { ...formData, customTarget: value };
|
|
|
|
|
setFormData(newData);
|
|
|
|
|
setFormValidation(validateFormData(newData));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const onSelectLabel = ({ name, value }: { name: string; value: boolean }) => {
|
|
|
|
|
const newData = {
|
|
|
|
|
...formData,
|
|
|
|
|
labelTargets: { ...formData.labelTargets, [name]: value },
|
|
|
|
|
};
|
|
|
|
|
setFormData(newData);
|
|
|
|
|
setFormValidation(validateFormData(newData));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const earliestStartTimeError =
|
|
|
|
|
formValidation.autoUpdateStartTime?.message ||
|
|
|
|
|
(formValidation.windowLength?.message ? "Earliest start time" : undefined);
|
|
|
|
|
|
|
|
|
|
const latestStartTimeError =
|
|
|
|
|
formValidation.autoUpdateEndTime?.message ||
|
|
|
|
|
(formValidation.windowLength?.message ? "Latest start time" : undefined);
|
|
|
|
|
|
|
|
|
|
const updateWindowLabel = formValidation.windowLength?.message || (
|
|
|
|
|
<>Update window (host’s local time)</>
|
|
|
|
|
);
|
|
|
|
|
const updateWindowLabelClass = classnames("form-field__label", {
|
|
|
|
|
"form-field__label--error": !!formValidation.windowLength?.message,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Modal className={baseClass} title="Schedule auto updates" onExit={onExit}>
|
2026-03-10 22:30:55 +00:00
|
|
|
<div className={formClassNames}>
|
|
|
|
|
<div className={`${formClass}__form-frame`}>
|
|
|
|
|
<Card paddingSize="medium" borderRadiusSize="medium">
|
|
|
|
|
<div className={`${formClass}__auto-update-config`}>
|
|
|
|
|
<div className={`form-field`}>
|
|
|
|
|
<div className="form-field__label">Auto updates</div>
|
|
|
|
|
<div className="form-field__subtitle">
|
|
|
|
|
Automatically update{" "}
|
|
|
|
|
<strong>
|
|
|
|
|
{getDisplayedSoftwareName(
|
|
|
|
|
softwareTitle.name,
|
|
|
|
|
softwareTitle.display_name
|
|
|
|
|
)}
|
|
|
|
|
</strong>{" "}
|
|
|
|
|
on all targeted hosts when a new version is available.
|
2026-02-06 16:19:35 +00:00
|
|
|
</div>
|
2026-03-10 22:30:55 +00:00
|
|
|
<div>
|
|
|
|
|
<Checkbox
|
|
|
|
|
value={formData.autoUpdateEnabled}
|
|
|
|
|
onChange={(newVal: boolean) => onToggleEnabled(newVal)}
|
|
|
|
|
>
|
|
|
|
|
Enable auto updates
|
|
|
|
|
</Checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{formData.autoUpdateEnabled && (
|
|
|
|
|
<>
|
|
|
|
|
<div>
|
|
|
|
|
<div className="form-field">
|
|
|
|
|
<div className={updateWindowLabelClass}>
|
|
|
|
|
{updateWindowLabel}
|
2026-01-05 16:43:26 +00:00
|
|
|
</div>
|
2026-03-10 22:30:55 +00:00
|
|
|
<div className="form-field__subtitle">
|
|
|
|
|
Times are formatted as HH:MM in 24 hour time (e.g.,
|
|
|
|
|
"13:37").
|
2026-02-06 16:19:35 +00:00
|
|
|
</div>
|
2026-01-05 16:43:26 +00:00
|
|
|
</div>
|
2026-03-10 22:30:55 +00:00
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div className={`${formClass}__auto-update-schedule-form`}>
|
|
|
|
|
<span className="date-time-inputs">
|
|
|
|
|
<InputField
|
|
|
|
|
value={formData.autoUpdateStartTime}
|
|
|
|
|
onChange={onChangeTimeField}
|
|
|
|
|
onBlur={() =>
|
|
|
|
|
setFormValidation(validateFormData(formData))
|
|
|
|
|
}
|
|
|
|
|
label="Earliest start time"
|
|
|
|
|
name="autoUpdateStartTime"
|
|
|
|
|
parseTarget
|
|
|
|
|
error={earliestStartTimeError}
|
|
|
|
|
/>
|
|
|
|
|
<InputField
|
|
|
|
|
value={formData.autoUpdateEndTime}
|
|
|
|
|
onChange={onChangeTimeField}
|
|
|
|
|
onBlur={() =>
|
|
|
|
|
setFormValidation(validateFormData(formData))
|
|
|
|
|
}
|
|
|
|
|
label="Latest start time"
|
|
|
|
|
name="autoUpdateEndTime"
|
|
|
|
|
parseTarget
|
|
|
|
|
error={latestStartTimeError}
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</Card>
|
|
|
|
|
<Card paddingSize="medium" borderRadiusSize="medium">
|
|
|
|
|
<TargetLabelSelector
|
|
|
|
|
selectedTargetType={formData.targetType}
|
|
|
|
|
selectedCustomTarget={formData.customTarget}
|
|
|
|
|
selectedLabels={formData.labelTargets}
|
|
|
|
|
customTargetOptions={CUSTOM_TARGET_OPTIONS}
|
|
|
|
|
className={`${formClass}__target`}
|
|
|
|
|
onSelectTargetType={onSelectTargetType}
|
|
|
|
|
onSelectCustomTarget={onSelectCustomTargetOption}
|
|
|
|
|
onSelectLabel={onSelectLabel}
|
|
|
|
|
labels={labels || []}
|
|
|
|
|
dropdownHelpText={
|
|
|
|
|
generateHelpText(false, formData.customTarget) // maps to !automaticInstall help text
|
|
|
|
|
}
|
|
|
|
|
subTitle="Changes to targets will also apply to self-service."
|
|
|
|
|
/>
|
|
|
|
|
</Card>
|
2026-01-05 16:43:26 +00:00
|
|
|
</div>
|
2026-03-10 22:30:55 +00:00
|
|
|
</div>
|
|
|
|
|
<ModalFooter
|
|
|
|
|
primaryButtons={
|
|
|
|
|
<>
|
|
|
|
|
<Button onClick={onExit} variant="inverse">
|
|
|
|
|
Cancel
|
|
|
|
|
</Button>
|
|
|
|
|
<GitOpsModeTooltipWrapper
|
Remove UI gating in GitOps mode for excepted entities (#42486)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #42184
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [ ] 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.
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements), JS
inline code is prevented especially for url redirects, and untrusted
data interpolated into shell scripts/commands is validated against shell
metacharacters.
- [ ] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
## Testing
- [ ] Added/updated automated tests
- [ ] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)
- [ ] QA'd all new/changed functionality manually
For unreleased bug fixes in a release candidate, one of:
- [ ] Confirmed that the fix is not expected to adversely impact load
test results
- [ ] Alerted the release DRI if additional load testing is needed
## Database migrations
- [ ] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [ ] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [ ] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
## 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:
- [ ] Verified that the setting is exported via `fleetctl
generate-gitops`
- [ ] 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)
- [ ] 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)
- [ ] Verified that any relevant UI is disabled when GitOps mode is
enabled
## fleetd/orbit/Fleet Desktop
- [ ] Verified compatibility with the latest released version of Fleet
(see [Must
rule](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/workflows/fleetd-development-and-release-strategy.md))
- [ ] If the change applies to only one platform, confirmed that
`runtime.GOOS` is used as needed to isolate changes
- [ ] Verified that fleetd runs on macOS, Linux and Windows
- [ ] Verified auto-update works from the released version of component
to the new version (see [tools/tuf/test](../tools/tuf/test/README.md))
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Release Notes
* **New Features**
* Added support for GitOps exceptions per entity type (labels, software,
secrets), allowing specific areas to bypass GitOps mode restrictions
when configured.
* **Bug Fixes**
* Improved GitOps mode behavior to properly respect per-entity-type
exception settings across software, labels, and secrets management.
* **Tests**
* Extended test coverage for GitOps exception handling scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-31 14:10:56 +00:00
|
|
|
entityType="software"
|
2026-03-10 22:30:55 +00:00
|
|
|
position="right"
|
|
|
|
|
tipOffset={8}
|
|
|
|
|
renderChildren={(disableChildren) => (
|
|
|
|
|
<Button
|
|
|
|
|
type="submit"
|
|
|
|
|
onClick={onSubmitForm}
|
|
|
|
|
isLoading={isUpdatingConfiguration}
|
|
|
|
|
disabled={
|
|
|
|
|
!formValidation.isValid ||
|
|
|
|
|
isUpdatingConfiguration ||
|
|
|
|
|
disableChildren
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
Save
|
|
|
|
|
</Button>
|
|
|
|
|
)}
|
|
|
|
|
/>
|
|
|
|
|
</>
|
|
|
|
|
}
|
|
|
|
|
/>
|
2026-01-05 16:43:26 +00:00
|
|
|
</Modal>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default EditAutoUpdateConfigModal;
|