8000 Removal of unused `signed_struct` to reduce OpenSSL requirement by AbhijithGanesh · Pull Request #494 · pyrsia/pyrsia · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Removal of unused signed_struct to reduce OpenSSL requirement #494

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

Merged
merged 54 commits into from
Mar 29, 2022

Conversation

AbhijithGanesh
Copy link
Member
@AbhijithGanesh AbhijithGanesh commented Mar 15, 2022

Signed-off-by: Abhijith Ganesh 67182544+AbhijithGanesh@users.noreply.github.com

PR Checklist

  • I've built the code cargo build. For major changes, cargo build --workspace --release is recommended.
  • I've run the automated unit tests cargo test. This executes our automated unit tests.
  • I've not broken any existing tests or functionality. In addition to cargo test, I've run cargo clippy
  • I've not introduced any new known security vulnerabilities. I've run cargo audit
  • I've included a brief description and a good title of the proposed changes and how to test them.
  • I've read the contributing guidelines.
  • I've associated an issue with this Pull Request.
  • I've checked that the code is up-to-date with the pyrsia/main branch.
  • I've read "What is a Good PR?"
  • I've assigned this Pull Request to "pyrsia/collaborators"

Description

Fixes #484
Closes #86

This PR deletes signed_struct, signed effectively removing the OpenSSL dependency for the Node.

Screenshots (optional)

Signed-off-by: Abhijith Ganesh <67182544+AbhijithGanesh@users.noreply.github.com>
* keep all logs in release build and default to DEBUG log output for demo (part of pyrsia#442) (pyrsia#480)

* Provide and retrieve artifacts via the kademlia p2p network (pyrsia#477)

* lookup blobs via kademlia content provisioning
* use dial and identify to add new node to dht
* add local peer_id to status

* Update source folder readme with more terminology and sub-crate (pyrsia#446)



Co-authored-by: Sudhindra Rao <41690+betarelease@users.noreply.github.com>

Co-authored-by: Erwin Morrhey <erwin@lodgon.com>

Co-authored-by: Sudhindra Rao <41690+betarelease@users.noreply.github.com>
Co-authored-by: Erwin Morrhey <erwin@lodgon.com>

* Bump clap from 3.1.5 to 3.1.6 (pyrsia#474)

Bumps [clap](https://github.com/clap-rs/clap) from 3.1.5 to 3.1.6.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@v3.1.5...v3.1.6)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump once_cell from 1.9.0 to 1.10.0 (pyrsia#485)

Bumps [once_cell](https://github.com/matklad/once_cell) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](matklad/once_cell@v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Introduce the `KeyBox` for consensus engine (pyrsia#464)

* delete signed structs

build passes

* more traces of openssl

* cargo fmt

Co-authored-by: Erwin Morrhey <erwin@lodgon.com>
Co-authored-by: Joeri Sykora <joeri@sertik.net>
Co-authored-by: Chris Mc <christopherm@jfrog.com>
Co-authored-by: Sudhindra Rao <41690+betarelease@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions bot added the has conflict Pull request has merge conflict(s) that need to be resolved label Mar 16, 2022
@github-actions
Copy link

👋 Hi, @AbhijithGanesh,

I detected conflicts against the base branch. You'll want to sync 🔄 your branch with upstream!


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

@github-actions github-actions bot removed the has conflict Pull request has merge conflict(s) that need to be resolved label Mar 16, 2022
Signed-off-by: Abhijith Ganesh <67182544+AbhijithGanesh@users.noreply.github.com>
@AbhijithGanesh AbhijithGanesh marked this pull request as draft March 16, 2022 08:20
Signed-off-by: Abhijith Ganesh <67182544+AbhijithGanesh@users.noreply.github.com>
Signed-off-by: Abhijith Ganesh <67182544+AbhijithGanesh@users.noreply.github.com>
@AbhijithGanesh AbhijithGanesh marked this pull request as ready 8000 for review March 17, 2022 05:41
@erwin1 erwin1 requested review from a team and removed request for a team March 17, 2022 10:10
@codecov
Copy link
codecov bot commented Mar 17, 2022

Codecov Report

Merging #494 (05f5402) into main (f7bde48) will increase coverage by 2.23%.
The diff coverage is 93.64%.

@@            Coverage Diff             @@
##             main     #494      +/-   ##
==========================================
+ Coverage   59.24%   61.48%   +2.23%     
==========================================
  Files          24       24              
  Lines        2184     1711     -473     
==========================================
- Hits         1294     1052     -242     
+ Misses        890      659     -231     
Impacted Files Coverage Δ
src/node_manager/handlers.rs 14.28% <ø> (-3.37%) ⬇️
src/metadata_manager/metadata.rs 86.79% <90.24%> (-0.31%) ⬇️
src/docker/v2/handlers/manifests.rs 53.28% <94.30%> (+0.52%) ⬆️
src/node_manager/model/artifact.rs 96.29% <100.00%> (ø)
src/node_manager/model/package_version.rs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7bde48...05f5402. Read the comment docs.

@tiainen
Copy link
Collaborator
tiainen commented Mar 17, 2022

Just so that I understand correctly, this PR will cause all metadata to be stored in plain unsigned JSON?

@github-actions github-actions bot added the has conflict Pull request has merge conflict(s) that need to be resolved label Mar 25, 2022
@github-actions
Copy link

👋 Hi, @AbhijithGanesh,

I detected conflicts against the base branch. You'll want to sync 🔄 your branch with upstream!


This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.

Signed-off-by: Abhijith Ganesh <67182544+AbhijithGanesh@users.noreply.github.com>
@github-actions github-actions bot removed the has conflict Pull request has merge conflict(s) that need to be resolved label Mar 26, 2022
Signed-off-by: Abhijith Ganesh <67182544+AbhijithGanesh@users.noreply.github.com>
Signed-off-by: Abhijith Ganesh <67182544+AbhijithGanesh@users.noreply.github.com>
Signed-off-by: Abhijith Ganesh <67182544+AbhijithGanesh@users.noreply.github.com>
@AbhijithGanesh
Copy link
Member Author

@prince-chrismc @fishseabowl please review

Copy link
Member
@fishseabowl fishseabowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespaces.db, package_types.db and package_versions.db should not be merged into codebase

Co-authored-by: Xuefei Han <xuefeih@jfrog.com>
@AbhijithGanesh
Copy link
Member Author

I ll remove them

AbhijithGanesh and others added 3 commits March 27, 2022 11:42
Signed-off-by: Abhijith Ganesh <67182544+AbhijithGanesh@users.noreply.github.com>
Co-authored-by: Xuefei Han <xuefeih@jfrog.com>
@@ -186,4 +181,4 @@ jobs:
context: .
push: true
file: installers/docker/CodeCoverage.Dockerfile
tags: pyrsiaoss/codecoverage:1.0
tags: pyrsiaoss/codecoverage:1.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks incorrect 🤔 this file does not need to be changed

Copy link
Member
@fishseabowl fishseabowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AbhijithGanesh AbhijithGanesh merged commit 677cb7a into pyrsia:main Mar 29, 2022
@AbhijithGanesh AbhijithGanesh deleted the openssl-patch-1 branch March 30, 2022 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove all program references to OpenSSL Explore: Alternatives to OpenSSL Add version information to signed structs.
5 participants
0