Skip to content
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 team ID to synced events #827

Merged

Conversation

np5
Copy link
Contributor

@np5 np5 commented Jun 24, 2022

The team ID cannot be extracted from the signing certificate information, when the binary comes from the App Store. With this PR, we are trying to include it in the event information.

@russellhancox russellhancox self-assigned this Jun 24, 2022
@russellhancox russellhancox added enhancement sync service Issues related to the sync service / protocol labels Jun 24, 2022
@russellhancox
Copy link
Contributor

Thanks for the PR!

Would you mind adding an assertion to the event upload test here?

NSArray *certs = event[kSigningChain];

This is not a great test. The event fixture doesn't have a Team ID, and
since it is an event about the `yes` binary, it would be weird to add
one.
@np5
Copy link
Contributor Author

np5 commented Jun 24, 2022

Not too happy with the last commit. How would you like me to proceed? Update the fixture to include a Team ID? I also took the liberty to put the extra test after the cert test, for consistency with the other additions in this PR.

@pmarkowsky
Copy link
Contributor

@np5 yes please update the fixture to include a Team ID.

@np5
Copy link
Contributor Author

np5 commented Jun 24, 2022

I didn't know really how to proceed, so I simply manually edited the fixture and added a Team ID to the yes event.

@russellhancox russellhancox enabled auto-merge (squash) June 24, 2022 19:54
@russellhancox russellhancox merged commit b7421e4 into google:main Jun 24, 2022
@np5 np5 deleted the 20220623_add_event_team_id branch June 24, 2022 20:01
np5 added a commit to zentralopensource/zentral that referenced this pull request Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement sync service Issues related to the sync service / protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants