Commit graph

7 commits

Author SHA1 Message Date
Eric
703e825105
Website: Add two exits to vpp app metadata proxy (#43531)
Related to: https://github.com/fleetdm/confidential/issues/15379

Changes:
- Added two exits to the VPP metadata proxy that are used when the Apple
API returns errors. `appleApiReturnedServerError` Is returned when the
Apple API returns a 500 error, and `appleApiReturnedForbiddenResponse`
is used when the Apple API returns a 403 response.
- Updated the error handler in the VPP metadata proxy to return the body
of the logged error.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Improved Apple App Store API error handling: forbidden (403) and
server (500) responses are now distinguished and mapped to specific
error outcomes.
* Other API errors now return the API response body (not the internal
error object), and error logging text was clarified for better
diagnostics.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-14 11:06:41 -05:00
Eric
5652731f89
Website: Update logging in VPP proxy endpoint (#43124)
Changes:
- Updated the get-vpp-app-metadata endpoint to log all errors returned
by the Apple API
2026-04-07 10:26:38 -05:00
Eric
55f7c1a963
Website: Reduce noise from vpp proxy endpoint (#39490)
Changes:
- Updated the get-vpp-app-metadata endpoint to only log errors returned
from the Apple API related to authentication
2026-02-06 12:05:43 -06:00
Eric
19efc42871
Website: Update logged warnings in get-vpp-app-metadata (#38313)
Changes:
- Updated the get-vpp-app-metadata action to not log warnings if a Fleet
server sends a request with an invalid vpp token
2026-01-14 09:55:11 -06:00
Eric
390c149445
Website: prefix header in proxied apple request (#38312)
Changes:
- Updated the get-vpp-app-metadata action to prefix the provided vpp
token before it sends it to an Apple API
2026-01-14 09:34:48 -06:00
Eric
7f23411c94
Website: Update VPP proxy endpoints (#38203) 2026-01-13 18:06:10 -06:00
Eric
b3bd4686a3
Website: Add VPP metadata proxy (#37997)
For https://github.com/fleetdm/fleet/issues/37261

Changes:
- Added a new database model: `FleetInstanceUsingVpp`
- Added `/api/vpp/v1/register`: An API endpoint that validates provided
Fleet license keys, creates a database record for the proxy
registration, and returns a generated secret used to authenticate
requests to the other VPP proxy endpoint
- Added `/api/vpp/v1/metadata/:storeRegion`: An API endpoint that
forwards requests to the
`https://api.ent.apple.com/v1/catalog/${storeRegion}/stoken-authenticated-apps`
Apple API with a token generated using Fleet's Apple developer
credentials.

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
2026-01-08 11:29:53 -06:00