Skip to content

Conversation

@smithjw
Copy link

@smithjw smithjw commented Nov 19, 2025

  • Set --identical_payload_identifier_uuid with the generate_guidance.py script to use the same UUID for each PayloadIdentifier/PayloadUUID pair
  • Set --no-creation-date with the generate_guidance.py script to no longer include the created date in the PayloadDescription profile keys
  • Formats the import statements
  • Removes some whitespace throughout the generate_guidance.py script
  • Removes some f-strings that did not include any variables

Tried to make this as cleanly as possible. The first commit contains the sorted import statements, removes trailing whitespace, and f-strings that don't include any variables. The second commit includes the new CLI flags.

The current behaviour is retained when not including these flags.

With --no-created-date

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
....
	<key>PayloadDescription</key>
-	<string>Created: 2025-11-19
-Configuration settings for the com.apple.applicationaccess preference domain.</string>
+	<string>Configuration settings for the com.apple.applicationaccess preference domain.</string>
....
</dict>
</plist>

With --identical-payload-identifier-uuid

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
....
			<key>PayloadIdentifier</key>
-			<string>mscp.com.apple.applicationaccess.f13cf92b-4479-43fe-b601-ecfb3677a827</string>
+			<string>f13cf92b-4479-43fe-b601-ecfb3677a827</string>
			<key>PayloadType</key>
			<string>com.apple.applicationaccess</string>
			<key>PayloadUUID</key>
			<string>f13cf92b-4479-43fe-b601-ecfb3677a827</string>
....
	<key>PayloadIdentifier</key>
-	<string>com.apple.applicationaccess.cis_lvl1</string>
+	<string>39e504c4-33e8-4d8e-8efd-6602491d9ed7</string>
	<key>PayloadOrganization</key>
	<string>macOS Security Compliance Project</string>
....
	<key>PayloadUUID</key>
	<string>39e504c4-33e8-4d8e-8efd-6602491d9ed7</string>
....
</dict>
</plist>

- Set `--identical_payload_identifier_uuid` with the
`generate_guidance.py` script to use the same UUID for each
`PayloadIdentifier`/`PayloadUUID` pair
- Set `--no-creation-date` with the `generate_guidance.py` script to
no longer include the created date in the `PayloadDescription` profile
keys
- Formats the import statements
- Removes some whitespace throughout the `generate_guidance.py` script
- Removes some f-strings that did not include any variables
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.

1 participant