Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve checksums for agent jar(s) download (#3884)
Before this commit the (md5) checksums for various jars are were encoded in base64 and hex encoding: curl -s https://example.com/go/admin/latest-agent.status -I | grep MD5 Agent-Content-MD5: xcOIJGRG6DVEndmh+ngL0w== Agent-Launcher-Content-MD5: YZZ/8vOLt9tme93YVwtoIg== Agent-Plugins-Content-MD5: 0fc9e52a2619dedfd7973959b8c92063 TFS-SDK-Content-MD5: FDZDpIK84xCKx0EO+HZu9A== This caused problems when checksums were verified because the agent was always verifying passwords using base64, and the plugins zip was encoded in hex format, causing the agent to re-download the plugins.zip every time it was started up. Additionally there was another bug with how the `agent-plugins.zip` checksum was computed. The checksum was computed was basically the equivalent of: `cat [list of plugin.jar] | md5sum`. Whereas it should have been: `zip [list of plugin.jar] | md5sum`
- Loading branch information
Showing
10 changed files
with
58 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
105 changes: 0 additions & 105 deletions
105
base/test/com/thoughtworks/go/util/FileDigesterTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.