Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDI supports SHA256 #869

Merged
merged 4 commits into from
Jul 29, 2019

Conversation

dobleralex
Copy link
Contributor

@dobleralex dobleralex commented Jul 18, 2019

Adds SHA 256 hash to output of:

GET /{tenant}/controller/v1/{controllerid}/deploymentBase/{actionId}
GET /{tenant}/controller/v1/{controllerid}/softwaremodules/{softwareModuleId}/artifacts

Example response:

{
  "id" : "4",
  "deployment" : {
    "download" : "forced",
    "update" : "forced",
    "maintenanceWindow" : "available",
    "chunks" : [ {
      "part" : "jvm",
      "version" : "1.0.15",
      "name" : "oneapp runtime",
      "artifacts" : [ {
        "filename" : "binary.tgz",
        "hashes" : {
          "sha1" : "8b71973e835cd0718827238b1cf89f0079e44dae",
          "md5" : "a90218782025c48e09ba0436cf30d029",
          "sha256" : "77837523c5aed7d5e80738baea1f4b768bb776e8a9345bc1bf8d1b7944f2b8cb"
        }, 
...
}

Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>
Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>
@schabdo schabdo merged commit bde3548 into eclipse-hawkbit:master Jul 29, 2019
@schabdo schabdo deleted the feature_ddi_sha256_support branch July 29, 2019 12:11
@schabdo schabdo changed the title Feature ddi sha256 support DDI supports SHA256 Jul 29, 2019
AmmarBikic pushed a commit to bosch-io/hawkbit that referenced this pull request Oct 2, 2020
* Add SHA256 file hash to ddi GET outputs

Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>

* Integrate review findings for SHA256 changes

Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>

* Renamed hashes to base16hases in store() parameters

Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>

* Added missing javadoc according to sonarqube findings

Signed-off-by: Alexander Dobler <alexander.dobler3@bosch-si.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants