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 a Signing ID Format Helper #1365

Merged

Conversation

pmarkowsky
Copy link
Contributor

This PR adds a helper function to format the Signing IDs in Santa and to ensure they're always handled and formatted the same way.

It's marked draft until we're sure that it's used everywhere it should be and that folks are happy with it.

@russellhancox russellhancox self-assigned this Jun 10, 2024
Source/common/SigningIDHelpers.h Outdated Show resolved Hide resolved
Source/common/SigningIDHelpers.m Outdated Show resolved Hide resolved
Copy link
Contributor

@mlw mlw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be more powerful if things like SID were made into their own type. Having a helper is nice, but there's no format enforcement mechanism by keeping it a string.

@russellhancox
Copy link
Contributor

I think it would be more powerful if things like SID were made into their own type. Having a helper is nice, but there's no format enforcement mechanism by keeping it a string.

Agree in principle but they'll be strings coming in from MOLCodesignChecker and need to be converted back to strings in several other places (syncservice, event database) so the type is only going to ensure that the code in this helper is used in the few places it should be and will make this change significantly bigger for a pretty small gain.

@pmarkowsky pmarkowsky marked this pull request as ready for review June 11, 2024 18:33
@pmarkowsky pmarkowsky requested a review from a team as a code owner June 11, 2024 18:33
@russellhancox russellhancox merged commit 4b0ad39 into google:main Jun 11, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants