You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should we sign disk images to prevent translocation? #792
no translocation when people install app with cp -R instead of using the Finder to move the app
Currently we disable autostart and autoupdate when launching from disk image. We detect that by checking if the path contains "AppTranslocation". We would have to change that logic.
Currently, we notarize the disk image, but we don't notarize / staple the resulting app. That means that if people copy the app from the disk image, it will not have a ticket stapled, which can cause issues when the user launches the app but does not have internet access.
So to improve the workflow, I would suggest the following change to our notarisation process:
notarize & staple .app
create dmg
sign dmg
notarize & sign dmg
That should result in a foolproof deliverable that will work no matter how people attempt to install it.
Edit: Translated into English for clarity. The reported results and questions are unchanged.
Hello, could you clarify whether the DMG signing and container notarization approach discussed in this issue applies to the specific release asset below? These are pre-installation check results, not an allegation of malware. The application has not been installed or launched.
Downloaded file SHA-256: 9fc7d0dc08cf46dfd94bb32cbaaad81b41b37847a42d6dcb2f9fbd292813defb, matching the official release asset listing.
System: macOS 26.6.2 (25G83), Apple Silicon / arm64.
Application identifier: com.postgresapp.Postgres2; version 2.9.6, build 381.
Application signing identity: Developer ID Application: Jakob Egger (ZF84SJ5A3G).
Recorded application CDHash: ef99d0e7e5d2247454a3c12d7c52c3f22dab7e49. This is the observed value only; we are not claiming to have separately verified ticket coverage for every architecture and embedded component.
The relevant trust assessments ran on the macOS host as the current user, without sudo. Gatekeeper reported assessments enabled.
Recorded results
In the commands below, <DMG> and <APP> are redacted placeholders for the release asset above and the Postgres.app inside its read-only mounted image. These are records of completed checks, not new execution instructions.
valid on disk; satisfies its Designated Requirement
spctl --assess --type execute --verbose=4 <APP>
0
accepted; source=Developer ID
xcrun stapler validate <DMG>
0
The validate action worked!
spctl --assess --type open --context context:primary-signature --verbose=4 <DMG>
3
rejected; source=no usable signature
syspolicy_check distribution <APP>
70
Reported only a missing application ticket: Notary Ticket Missing, marked Fatal by the tool
xcrun stapler validate <APP>
65
does not have a ticket stapled to it
No signatures, notarization tickets, quarantine attributes, or system trust policies were changed. We did not repackage the asset or run stapler staple. The application has not been installed or launched, and no database has been initialized.
We understand that ticket stapling and code signing are separate checks; the absence of a local application ticket does not, by itself, show that the application was never notarized. Conversely, a successful container ticket validation does not automatically explain other policy rejections. The historical discussion in this issue and the v2.9.6 build scripts help explain the process, but we have not established the asset-specific connection for the SHA-256 above.
Request for release-specific clarification
Could you provide a publisher-verifiable explanation or release record tied to the final release SHA-256 above, addressing these two questions?
Does this DMG itself have a Developer ID primary signature? Is the no usable signature result consistent with how this particular asset was distributed, and what explains it?
How does this DMG's notarization result correspond to the application inside it (com.postgresapp.Postgres2 / 2.9.6 / build381) and its code identifiers? Could you provide a redacted notarization Accepted result, relevant ticketContents, or a release record establishing the same connection?
If the file submitted for notarization and the final stapled release asset have different hashes, please explain their build/release relationship; we are not requiring those hashes to be identical. There is no need to provide developer account access, certificate private keys, credentials, or other sensitive information.
If this asset needs a publisher-side correction, or a different verified official artifact should be used instead, please identify that artifact and the supporting verification information. We are not requesting instructions to disable Gatekeeper, add exceptions, or remove quarantine attributes.
The DMG is not signed. It would be a good idea to sign DMGs in the future, but right now the only thing we do is to notarize the DMG.
The cdhash ef99d0e7e5d2247454a3c12d7c52c3f22dab7e49 matches the cdhash of the arm64 slice of the main executable (Postgres-2.9.6-18.dmg/Postgres.app/Contents/MacOS/Postgres). I can confirm that this is the same hash reported in the notarisation log. Unfortunately there is no easy way to verify this. I don't know of a tool that displays the contents of notarisation tickets.
Activity
jakob commentedon Apr 28, 2025
Currently, we notarize the disk image, but we don't notarize / staple the resulting app. That means that if people copy the app from the disk image, it will not have a ticket stapled, which can cause issues when the user launches the app but does not have internet access.
So to improve the workflow, I would suggest the following change to our notarisation process:
That should result in a foolproof deliverable that will work no matter how people attempt to install it.
fvyt001-lab commentedon Oct 8, 2026
Edit: Translated into English for clarity. The reported results and questions are unchanged.
Hello, could you clarify whether the DMG signing and container notarization approach discussed in this issue applies to the specific release asset below? These are pre-installation check results, not an allegation of malware. The application has not been installed or launched.
Release asset and environment
Postgres-2.9.6-18.dmg.9fc7d0dc08cf46dfd94bb32cbaaad81b41b37847a42d6dcb2f9fbd292813defb, matching the official release asset listing.com.postgresapp.Postgres2; version 2.9.6, build 381.Developer ID Application: Jakob Egger (ZF84SJ5A3G).ef99d0e7e5d2247454a3c12d7c52c3f22dab7e49. This is the observed value only; we are not claiming to have separately verified ticket coverage for every architecture and embedded component.assessments enabled.Recorded results
In the commands below,
<DMG>and<APP>are redacted placeholders for the release asset above and the Postgres.app inside its read-only mounted image. These are records of completed checks, not new execution instructions.hdiutil verify <DMG>codesign --verify --deep --strict --verbose=4 <APP>valid on disk;satisfies its Designated Requirementspctl --assess --type execute --verbose=4 <APP>accepted;source=Developer IDxcrun stapler validate <DMG>The validate action worked!spctl --assess --type open --context context:primary-signature --verbose=4 <DMG>rejected;source=no usable signaturesyspolicy_check distribution <APP>Notary Ticket Missing, markedFatalby the toolxcrun stapler validate <APP>does not have a ticket stapled to itNo signatures, notarization tickets, quarantine attributes, or system trust policies were changed. We did not repackage the asset or run
stapler staple. The application has not been installed or launched, and no database has been initialized.We understand that ticket stapling and code signing are separate checks; the absence of a local application ticket does not, by itself, show that the application was never notarized. Conversely, a successful container ticket validation does not automatically explain other policy rejections. The historical discussion in this issue and the v2.9.6 build scripts help explain the process, but we have not established the asset-specific connection for the SHA-256 above.
Request for release-specific clarification
Could you provide a publisher-verifiable explanation or release record tied to the final release SHA-256 above, addressing these two questions?
no usable signatureresult consistent with how this particular asset was distributed, and what explains it?com.postgresapp.Postgres2 / 2.9.6 / build381) and its code identifiers? Could you provide a redacted notarizationAcceptedresult, relevantticketContents, or a release record establishing the same connection?If the file submitted for notarization and the final stapled release asset have different hashes, please explain their build/release relationship; we are not requiring those hashes to be identical. There is no need to provide developer account access, certificate private keys, credentials, or other sensitive information.
If this asset needs a publisher-side correction, or a different verified official artifact should be used instead, please identify that artifact and the supporting verification information. We are not requesting instructions to disable Gatekeeper, add exceptions, or remove quarantine attributes.
Thank you.
jakob commentedon Oct 8, 2026
@fvyt001-lab
jakob commentedon Oct 8, 2026
@fvyt001-lab https://www.mothersruin.com/software/Archaeology/get.html can show the contents of the notarization ticket