DigiDoc4-Client icon indicating copy to clipboard operation
DigiDoc4-Client copied to clipboard

Required TSL and config files are downloaded from network at build time

Open apteryks opened this issue 6 months ago • 4 comments

Hi,

Various files are needed for the signing feature to work (see for example https://github.com/open-eid/DigiDoc4-Client/issues/1281 for what happens when some are missing), and it is currently easy to miss at least the config files, as the build doesn't abort when they are missing.

I suggest that these critical files should be copied (bundled) in the git repositories and updated when needed, so that anyone can fetch the source and build it offline.

Thanks for the great software!

apteryks avatar Aug 12 '25 10:08 apteryks

We’ve avoided committing these artifacts because several of them are maintained by external authorities and change frequently. Vendoring them would go stale fast and risk broken/offline signing. Instead, we document how to fetch the current set here: https://github.com/open-eid/DigiDoc4-Client/wiki/DeveloperTips

metsma avatar Aug 12 '25 10:08 metsma

I've open this issue because of investigating a build with broken signing (whether offline or online). The build system should fail if the files are missing at least, as it seems they can't be fetched from the network at run time.

apteryks avatar Aug 12 '25 11:08 apteryks

(Currently the build proceeds normally if none of the config.json/config.pub/config.rsa in the common submodule are present, which breaks the signing feature).

apteryks avatar Aug 12 '25 11:08 apteryks

Another reason to carry a copy: these files are otherwise not versioned, and could either vanish (due to operational problems of the servers they're hosted on) or change anytime, perhaps introducing breakage). A local copy that was tested to work with the software makes sense to me.

apteryks avatar Aug 12 '25 11:08 apteryks