You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "stevedlawrence (via GitHub)" <gi...@apache.org> on 2026/07/15 13:52:49 UTC

[PR] Enable support for signing windows executables using SSL.com [daffodil-infrastructure]

stevedlawrence opened a new pull request, #48:
URL: https://github.com/apache/daffodil-infrastructure/pull/48

   - Update the release-candidate action to add support for optionally signing Windows exe files using SSL.com credentials. ASF Infra must provide SSL.com credentials as secrets, and workflows using this action must be provided the secrets. If not provided, exe files are not signed.
   - Update the check-release script to verify exe signatures and also strip signatures to verify reproducibility.
   
   DAFFODIL-3090


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Enable support for signing windows executables using SSL.com [daffodil-infrastructure]

Posted by "olabusayoT (via GitHub)" <gi...@apache.org>.
olabusayoT commented on code in PR #48:
URL: https://github.com/apache/daffodil-infrastructure/pull/48#discussion_r3760374697


##########
actions/release-candidate/dist/post/index.js:
##########
@@ -125633,6 +125642,9 @@ async function run() {
 				if (artifact.name.endsWith(".rpm")) {
 					await exec("rpmsign", ["--define", `_gpg_name ${ gpg_signing_key_id }`, "--define", "_binary_filedigest_algorithm 10", "--addsign", `${ artifact.parentPath }/${ artifact.name }`]);
 				}
+				if (artifact.name.endsWith(".exe") && do_ssl_com_sign) {
+					await exec("jsign", ["--storetype", "ESIGNER", "--alias", "d97c5110-c66a-4c0c-ac0c-1cd6af812ee6", "--storepass", `${ssl_com_username}|${ssl_com_password}`, "--keypass", ssl_com_secret, "--tsaurl=http://ts.ssl.com", "--tsmode", "RFC3161", "--alg", "SHA256", `${ artifact.parentPath }/${ artifact.name }`]);

Review Comment:
   can we move the alias into a descriptive variable or with a comment discussing its origin?



##########
actions/release-candidate/dist/post/index.js:
##########
@@ -125633,6 +125642,9 @@ async function run() {
 				if (artifact.name.endsWith(".rpm")) {
 					await exec("rpmsign", ["--define", `_gpg_name ${ gpg_signing_key_id }`, "--define", "_binary_filedigest_algorithm 10", "--addsign", `${ artifact.parentPath }/${ artifact.name }`]);
 				}
+				if (artifact.name.endsWith(".exe") && do_ssl_com_sign) {
+					await exec("jsign", ["--storetype", "ESIGNER", "--alias", "d97c5110-c66a-4c0c-ac0c-1cd6af812ee6", "--storepass", `${ssl_com_username}|${ssl_com_password}`, "--keypass", ssl_com_secret, "--tsaurl=http://ts.ssl.com", "--tsmode", "RFC3161", "--alg", "SHA256", `${ artifact.parentPath }/${ artifact.name }`]);

Review Comment:
   Also the alg is 256 here, but below we mention sha512; just verifying the discrepancy?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Enable support for signing windows executables using SSL.com [daffodil-infrastructure]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence commented on PR #48:
URL: https://github.com/apache/daffodil-infrastructure/pull/48#issuecomment-5243344671

   I've added a new commit to temporarily remove the `do_publish` check. This will allow us to test this all works with creating an actual release. Once we've confirmed it all works, we can revert that second commit.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Enable support for signing windows executables using SSL.com [daffodil-infrastructure]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence commented on code in PR #48:
URL: https://github.com/apache/daffodil-infrastructure/pull/48#discussion_r3760433643


##########
actions/release-candidate/dist/main/index.js:
##########
@@ -33019,6 +33019,13 @@ async function run() {
 		fs.appendFileSync(`${ sbt_dir }/plugins/build.sbt`, 'addSbtPlugin("com.github.sbt" %% "sbt-sbom" % "0.4.0")\n');
 		fs.appendFileSync(`${ sbt_dir }/build.sbt`, 'bomFormat := "xml"\n');
 
+		// download and install jsign for signing exe files, ignore dependencies assuming that the
+		// workflow already has java installed or will install java at some point
+		const jsign_version = "7.4";
+		const jsign_deb_path = `${ os.tmpdir() }/jsign_${jsign_version}_all.deb`;
+		await exec("curl", ["-L", "-o", jsign_deb_path, `https://github.com/ebourg/jsign/releases/download/${jsign_version}/jsign_${jsign_version}_all.deb`]);
+		await exec("sudo", ["dpkg", "--ignore-depends=ALL", "--install", jsign_deb_path]);

Review Comment:
   I don't think so, and I don't think it's available via a third party repo either. GitHub seems to be the only place to get official .debs.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Enable support for signing windows executables using SSL.com [daffodil-infrastructure]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence commented on code in PR #48:
URL: https://github.com/apache/daffodil-infrastructure/pull/48#discussion_r3760464790


##########
actions/release-candidate/dist/post/index.js:
##########
@@ -125633,6 +125642,9 @@ async function run() {
 				if (artifact.name.endsWith(".rpm")) {
 					await exec("rpmsign", ["--define", `_gpg_name ${ gpg_signing_key_id }`, "--define", "_binary_filedigest_algorithm 10", "--addsign", `${ artifact.parentPath }/${ artifact.name }`]);
 				}
+				if (artifact.name.endsWith(".exe") && do_ssl_com_sign) {
+					await exec("jsign", ["--storetype", "ESIGNER", "--alias", "d97c5110-c66a-4c0c-ac0c-1cd6af812ee6", "--storepass", `${ssl_com_username}|${ssl_com_password}`, "--keypass", ssl_com_secret, "--tsaurl=http://ts.ssl.com", "--tsmode", "RFC3161", "--alg", "SHA256", `${ artifact.parentPath }/${ artifact.name }`]);

Review Comment:
   This command comes from ASF infra: https://infra.apache.org/code-signing-use.html
   
   I'll add this as a comment.
   
   I don't actually know what the alias, I think maybe an identifier to the key that should be used to sign? I'll do some research and give it an appropriate name.
   
   Regarding the sha256 algorithm, again this comes from the infra documentation. I'll do some research and see if sha512 would work or if it's a limitation with jsign or exe signing or something. If I can I'll bump it to 512.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Enable support for signing windows executables using SSL.com [daffodil-infrastructure]

Posted by "jadams-tresys (via GitHub)" <gi...@apache.org>.
jadams-tresys commented on code in PR #48:
URL: https://github.com/apache/daffodil-infrastructure/pull/48#discussion_r3760390400


##########
actions/release-candidate/dist/main/index.js:
##########
@@ -33019,6 +33019,13 @@ async function run() {
 		fs.appendFileSync(`${ sbt_dir }/plugins/build.sbt`, 'addSbtPlugin("com.github.sbt" %% "sbt-sbom" % "0.4.0")\n');
 		fs.appendFileSync(`${ sbt_dir }/build.sbt`, 'bomFormat := "xml"\n');
 
+		// download and install jsign for signing exe files, ignore dependencies assuming that the
+		// workflow already has java installed or will install java at some point
+		const jsign_version = "7.4";
+		const jsign_deb_path = `${ os.tmpdir() }/jsign_${jsign_version}_all.deb`;
+		await exec("curl", ["-L", "-o", jsign_deb_path, `https://github.com/ebourg/jsign/releases/download/${jsign_version}/jsign_${jsign_version}_all.deb`]);
+		await exec("sudo", ["dpkg", "--ignore-depends=ALL", "--install", jsign_deb_path]);

Review Comment:
   I take it it's not already in the standard debian/ubuntu repository?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Enable support for signing windows executables using SSL.com [daffodil-infrastructure]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence commented on code in PR #48:
URL: https://github.com/apache/daffodil-infrastructure/pull/48#discussion_r3760625565


##########
actions/release-candidate/dist/post/index.js:
##########
@@ -125633,6 +125642,9 @@ async function run() {
 				if (artifact.name.endsWith(".rpm")) {
 					await exec("rpmsign", ["--define", `_gpg_name ${ gpg_signing_key_id }`, "--define", "_binary_filedigest_algorithm 10", "--addsign", `${ artifact.parentPath }/${ artifact.name }`]);
 				}
+				if (artifact.name.endsWith(".exe") && do_ssl_com_sign) {
+					await exec("jsign", ["--storetype", "ESIGNER", "--alias", "d97c5110-c66a-4c0c-ac0c-1cd6af812ee6", "--storepass", `${ssl_com_username}|${ssl_com_password}`, "--keypass", ssl_com_secret, "--tsaurl=http://ts.ssl.com", "--tsmode", "RFC3161", "--alg", "SHA256", `${ artifact.parentPath }/${ artifact.name }`]);

Review Comment:
   I can't find any evidence sha512 won't work. It's preferred by ASF for signing other things, so I'll change this to 512 and if something doesn't work we can switch to 256 and see if that fixes.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Enable support for signing windows executables using SSL.com [daffodil-infrastructure]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence merged PR #48:
URL: https://github.com/apache/daffodil-infrastructure/pull/48


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org