Fleet versions
- Discovered: rc-minor-fleet-v4.93.0 (f16843c)
Web browser and operating system: Chrome on macOS
💥 Actual behavior
After Apple MDM is turned off, a VPP token that was added earlier still works: Software > Add software > App store lists the token's Apple apps, and they can be added to a fleet. That contradicts Settings > Integrations > MDM, which says "To enable Volume Purchasing Program (VPP), first turn on Apple (macOS, iOS, iPadOS) MDM." and no longer shows the token.
🛠️ Expected behavior
When Apple MDM is off, App Store (VPP) apps can't be listed or added, as the Settings copy says. The App store tab shows the "VPP isn't enabled (MDM required)" empty state.
🧑💻 Steps to reproduce
These steps:
- With Apple MDM on, add a VPP token in Settings > Integrations > MDM > VPP and make it available to "All fleets".
- Turn off Apple MDM. The VPP card now says to turn on Apple MDM first.
- Go to Software > Add software > App store, platform Apple. The token's apps are listed.
- Pick an app and click Add software. It's added to the fleet's library.
🕯️ More info (optional)
Neither layer checks Apple MDM:
- Backend:
GetAppStoreApps and AddAppStoreApp (ee/server/service/vpp.go:686, :760) only check authz and whether a token exists. GET /api/v1/fleet/software/app_store_apps?fleet_id=0 returns 113 apps with Apple MDM off.
- Frontend:
SoftwareAppStoreVpp.tsx:155 gates only on teamHasVPPToken, not on mdm.enabled_and_configured.
Fleet versions
Web browser and operating system: Chrome on macOS
💥 Actual behavior
After Apple MDM is turned off, a VPP token that was added earlier still works: Software > Add software > App store lists the token's Apple apps, and they can be added to a fleet. That contradicts Settings > Integrations > MDM, which says "To enable Volume Purchasing Program (VPP), first turn on Apple (macOS, iOS, iPadOS) MDM." and no longer shows the token.
🛠️ Expected behavior
When Apple MDM is off, App Store (VPP) apps can't be listed or added, as the Settings copy says. The App store tab shows the "VPP isn't enabled (MDM required)" empty state.
🧑💻 Steps to reproduce
These steps:
🕯️ More info (optional)
Neither layer checks Apple MDM:
GetAppStoreAppsandAddAppStoreApp(ee/server/service/vpp.go:686,:760) only check authz and whether a token exists.GET /api/v1/fleet/software/app_store_apps?fleet_id=0returns 113 apps with Apple MDM off.SoftwareAppStoreVpp.tsx:155gates only onteamHasVPPToken, not onmdm.enabled_and_configured.