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
Embed binary releases signing key as a file instead of hardcoding a string #9247
buildIssues caused by or requiring changes to the build system (scripts or Docker image)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
You can then sign binaries with the private key using stsigtool sign, verify them with the public key using stsigtool verify, and have Syncthing accept these signatures by replacing the compiled in public key. This may be useful in an enterprise setting, for example.
So, "in an enterprise setting" you'd either need to patch/replace signingkey.go on the fly or maintain separate copy of the repo and rebase signature changes on top of every release.
Solution
Since introduction of embed package in Go 1.16 embedding keyfile becomes as simple as this:
buildIssues caused by or requiring changes to the build system (scripts or Docker image)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
upgrade: extract signing key to embedded file
lib/upgrade: Extract signing key to embedded file (fixes #9247) (#9296)
Merge branch 'main' into tokensdb
Merge branch 'main' into cli_completion