dnslink-cloudflare icon indicating copy to clipboard operation
dnslink-cloudflare copied to clipboard

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

Open HamidullahMuslih opened this issue 3 years ago • 4 comments

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

HamidullahMuslih avatar Jul 25 '22 05:07 HamidullahMuslih

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.

allezxandre avatar Jul 27 '22 09:07 allezxandre

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

HamidullahMuslih avatar Jul 27 '22 14:07 HamidullahMuslih

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)

allezxandre avatar Jul 27 '22 16:07 allezxandre

I used global API key, those permissions did not work

HamidullahMuslih avatar Jul 28 '22 09:07 HamidullahMuslih