-
Notifications
You must be signed in to change notification settings - Fork 754
Add custom VPP app support #37969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom VPP app support #37969
Conversation
Next up: wire up environment override on bearer token pull to allow that to work, test end-to-end against Apple API
Next steps: 1. Fix tests 2. Make sure setting apps via GitOps works properly 3. Implement proxy auth management/persistence
Next up: manual testing against fake proxy, automated test updates
…tries Licensing wasn't picking up license keys for dev/expired licenses to pass on to the proxy because licenses weren't passed by ref. Still need to figure out what's wrong with the auth-expired case
…n leaving them after soft-deleting them This has now been end-to-end validated. Just need to write tests now.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #37969 +/- ##
==========================================
+ Coverage 65.82% 65.84% +0.01%
==========================================
Files 2387 2387
Lines 190158 190333 +175
Branches 8428 8428
==========================================
+ Hits 125168 125321 +153
- Misses 53609 53619 +10
- Partials 11381 11393 +12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Zed + Opus 4.5; prompt: Fix broken fleetctl tests in https://github.com/fleetdm/fleet/actions/runs/20772756036/job/59652047015. This almost certainly involves replacing the fake iTunes server with a fake VPP apps proxy server, setting env vars appropriately to point at that server.
…with hardcoded bearer tokens Also fixes expected retry logic in the apple_apps API test since we're doing that one level up now
Zed + Opus 4.5; prompt: Replace the TODOs in server/mdm/apple/apple_apps/api_test.go with appropriate tests.
…pecific version numbers correctly
Zed + Opus 4.5; prompt: Add a test for 429s/retry-after to TestDoRetries in server/mdm/apple/apple_apps/api_test.go
| Data []Metadata `json:"data"` | ||
| } | ||
|
|
||
| type Authenticator func(forceRenew bool) (string, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: would be nice to have a comment on this type since it's exported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I'll add that if there are any other non-nit changes I need to make to this PR (which there probably are?)
|
overall lgtm other than the couple things pointed out above |
…for the correct number of requests
jahzielv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the fixes! 🚀
Resolves #32481 for Fleet server-side work.
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/oree/fleetd-chrome/changes.See Changes files for more information.
Input data is properly validated,
SELECT *is avoided, SQL injection is prevented (using placeholders for values in statements)Testing
Added/updated automated tests
QA'd all new/changed functionality manually