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

Separate encrypted and non-encrypted paths #84

Merged
merged 3 commits into from
Sep 9, 2023

Conversation

gammazero
Copy link
Contributor

Do not rely on dbl-sha2-256 codec to determine if querying for encrypted or non-encrypted multihash. Use URL path instead.

Do not rely on dbl-sha2-256 codec to determine if querying for encrypted or non-encrypted multihash. Use URL path instead.
gammazero added a commit to ipni/indexstar that referenced this pull request Aug 29, 2023
Do not rely on dbl-sha2-256 codec to determine if querying for encrypted or non-encrypted multihash. Use URL path instead.

Fixes #127

Requires ipni/dhstore#84
@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2023

Codecov Report

Patch coverage: 77.77% and project coverage change: +0.79% 🎉

Comparison is base (d555005) 57.08% compared to head (9ce066a) 57.87%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
+ Coverage   57.08%   57.87%   +0.79%     
==========================================
  Files          12       12              
  Lines         925      940      +15     
==========================================
+ Hits          528      544      +16     
+ Misses        353      352       -1     
  Partials       44       44              
Files Changed Coverage Δ
pebble/pebble.go 66.00% <ø> (+0.43%) ⬆️
server/server.go 65.69% <77.77%> (+1.87%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gammazero gammazero requested a review from masih September 7, 2023 22:51
…ash is dbl-sha2-256 and if not found fall back to uncrypted (dhfind) lookup.

Logging not used in dhstore/pebble, errors logged by callers.
@gammazero gammazero force-pushed the separate-encrypted-path branch from dc7421d to 54044ae Compare September 7, 2023 22:57
server/server.go Outdated Show resolved Hide resolved
@gammazero gammazero merged commit 94242b8 into main Sep 9, 2023
7 checks passed
@gammazero gammazero deleted the separate-encrypted-path branch September 9, 2023 21:43
gammazero added a commit to ipni/indexstar that referenced this pull request Sep 9, 2023
* Do not rely on dbl-sha2-256 codec to determine if querying for encrypted or non-encrypted multihash. Use URL path instead.

Requires ipni/dhstore#84

Fixes #127
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.

4 participants