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

Can't edit DNSlink TXT record created by Web3 Gateway. #76

Open
HamidullahMuslih opened this issue Jul 25, 2022 · 4 comments
Open

Can't edit DNSlink TXT record created by Web3 Gateway. #76

HamidullahMuslih opened this issue Jul 25, 2022 · 4 comments

Comments

@HamidullahMuslih
Copy link

I have web3 IPFS gateway subcription. when I create an IPFS gateway it will create DNS records as well (hostname and DNSLink), I can't update the DNSLink record.

Should I check the API token permisssion?
or
this binary does not have this funtionaly to edit DNSLink created by IPFS gateway?

Thanks

@allezxandre
Copy link

After some testing on my end, it turns out Cloudflare Web3 Gateway can only be edited through their new Web3 Gateway API (and the token needs a new web3-gateway:write role). See here: https://api.cloudflare.com/#web3-hostname-edit-web3-hostname

The fact the DNS API is unable to edit the DNS Link could explain why editing of the DNS Link from the Dashboard DNS page is also restricted.

@HamidullahMuslih
Copy link
Author

HamidullahMuslih commented Jul 27, 2022

can you please elborate about the permissions you used?

I chose permission zone ===Web3 Hostnames === edit

and for zone resource I choce

include ==== Specific zone ==== mydomain.com

I try to use curl command to list the hostnames, shows authoriztion problem

@allezxandre
Copy link

I'm using:

All zones - Web3 Hostnames:Edit, Zone:Read, DNS:Edit

I haven't tried removing the DNS:Edit permission, it might be required (but I'm keeping it anyways as I'm still using dnslink-cloudflare to set-up another non-gateway record)

@HamidullahMuslih
Copy link
Author

I used global API key, those permissions did not work

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

No branches or pull requests

2 participants