Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"permissions": {
"allow": [
"Bash(grep *)",
"Bash(xcodebuild -project FleetAgent.xcodeproj -scheme FleetAgent -destination 'platform=iOS Simulator,name=iPhone 16' -configuration Debug build)",
"Bash(xcrun simctl *)",
"Bash(xcodebuild test *)",
"Read(//Users/sharonkatz/repos/fleet/**)",
"Bash(./build/fleetctl get *)",
"Bash(curl -sk -H \"Authorization: Bearer $\\(cd ~/repos/fleet && ./build/fleetctl get enroll-secret)",
"Bash(python3 -c ' *)",
"Bash(mysql *)",
"Bash(curl *)",
"Bash(ls -1t /Users/sharonkatz/repos/ios_osquery/fleet/server/datastore/mysql/migrations/tables/*.go)",
"Bash(find /Users/sharonkatz/repos/ios_osquery/fleet -type f -name \"*test*.go\" -exec grep -l \"packs\\\\|schedule\\\\|osquery.*config\" {} \\\\;)",
"Bash(find /Users/sharonkatz/repos/ios_osquery/fleet -type f -path \"*/integrationtest*\" -name \"*test*.go\" -exec grep -l \"config\\\\|osquery\" {} \\\\;)"
]
}
}
4 changes: 3 additions & 1 deletion frontend/components/LiveQuery/SelectTargets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ const parseLabels = (list?: ILabelSummary[]) => {
l.name === "macOS" ||
l.name === "MS Windows" ||
l.name === "All Linux" ||
l.name === "chrome"
l.name === "chrome" ||
l.name === "iOS" ||
l.name === "iPadOS"
) || [];
const other = list?.filter((l) => l.label_type === "regular") || [];

Expand Down
4 changes: 3 additions & 1 deletion frontend/interfaces/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ export const QUERYABLE_PLATFORMS = [
"windows",
"linux",
"chrome",
"ios",
"ipados",
] as const;

export const NON_QUERYABLE_PLATFORMS = ["ios", "ipados", "android"] as const;
export const NON_QUERYABLE_PLATFORMS = ["android"] as const;

export type Platform = keyof typeof PLATFORM_DISPLAY_NAMES;
export type DisplayPlatform = typeof PLATFORM_DISPLAY_NAMES[keyof typeof PLATFORM_DISPLAY_NAMES];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ const canTurnOffMdm = (config: IHostActionConfigOptions) => {
};

const canQueryHost = ({ hostPlatform }: IHostActionConfigOptions) => {
// cannot query iOS, iPadOS, or Android hosts
return !isMobilePlatform(hostPlatform);
// iOS and iPadOS hosts can be queried via the Fleet agent
// Android hosts cannot be queried yet
return !isAndroid(hostPlatform);
};

const canLockHost = ({
Expand Down
15 changes: 0 additions & 15 deletions frontend/pages/hosts/details/cards/Policies/HostPolicies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,6 @@ const Policies = ({
};

const renderHostPolicies = () => {
if (hostPlatform === "ios" || hostPlatform === "ipados") {
return (
<EmptyState
header={<>Policies are not supported for this host</>}
info={
<>
Interested in detecting device health issues on{" "}
{hostPlatform === "ios" ? "iPhones" : "iPads"}?{" "}
<CustomLink url={SUPPORT_LINK} text="Let us know" newTab />
</>
}
/>
);
}

if (isAndroid(hostPlatform)) {
return (
<EmptyState
Expand Down
Loading
Loading