-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
issues with ipfs routing get | put
#9716
Comments
cc @lidel |
I'm getting closer, we're putting in the self key apparently, the mechanism is not clear to me: ipfs dag import ../t0114-gateway-subdomains/fixtures.car &&
WRONG_KEY=`ipfs routing put /ipns/${RSA_KEY} ../t0114-gateway-subdomains/${RSA_KEY}.ipns-record` &&
echo "Wrong key: $WRONG_KEY" && ## this is the SELF key here, not RSA_KEY
echo &&
ipfs routing get /ipns/${WRONG_KEY} && ## succeeds
echo &&
echo "RSA_KEY: $RSA_KEY" &&
ipfs routing get /ipns/${RSA_KEY} ## routing not found |
https://docs.ipfs.tech/reference/kubo/cli/#ipfs-routing-put
|
Thank you for digging into this and preparing fixes @laurentsenta
|
Thanks for taking the time to share advice and clarifying some of my misunderstandings @lidel I'll focus on (2) since that's the most blocking one: We do normalize the key before sending it to the routing API, Lines 30 to 53 in 1457b4f
I realized getting an output with I'll look into the routing implementation. |
Checklist
Installation method
built from source
Version
Config
(default)
Description
My work on ipfs/gateway-conformance#2 got me into #9654, and now #9667 is blocked with a few issues.
I run the following code:
it generates
${RSA_KEY}.ipns-record
,${ED25519_KEY}.ipns-record
.Then I rm my .ipfs folder to start from a clean slate.
I have the following issues:
1. Wrong Key
ipfs routing put /ipns/${ED25519_KEY} ./${RSA_KEY}.ipns-record
succeedsexpected: failure, we're using the wrong ipns name.
touch empty && ipfs routing put /ipns/${ED25519_KEY} ./empty
succeedsexpect: failure, we're using an empty file
2. PUT(K, V) && GET(K) fails on GET
ipfs routing put /ipns/${ED25519_KEY} ./${ED25519_KEY}.ipns-record && ipfs routing get /ipns/${ED25519_KEY}
failsexpected:
This is failing in PR on #9667.
See sharness result: https://tf-aws-gh-runner.s3.amazonaws.com/kubo/ipfs/kubo/4382756151/3/sharness.html#t0114-gateway-subdomains
3.
ipfs routing ....
commands print the wrong keyipfs routing put /ipns/${ED25519_KEY} ./${ED25519_KEY}.ipns-record
prints theself
key.Expected: print the key that was used; which should be
${ED25519_KEY}
4.
ipfs routing put | get
does not support--allow-offline
I prepared a change to support
allow-offline
in the following branches:We seem to have the rest of the API ready, but I'm not sure this should be prioritized.
The text was updated successfully, but these errors were encountered: