cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide
Apache License 2.0
8.44k stars 735 forks source link

Allow deletion of DNS routes via cloudflared command line tool💡 #781

Open ftclausen opened 1 year ago

ftclausen commented 1 year ago

Describe the feature you'd like There is already a feature in 32336859f82 to delete CIDR routes but not DNS routes. While the API can be used it would be more convenient to have this in cloudflared.

Describe alternatives you've considered The API should allow this to happen but it'll be easier to do this in the cloudflared cli tool. This issue requested the same but was closed. The comment here misinterpreted the changelog; that changelog entry was not for DNS routes but, rather, network (CIDR netblocks) routes.

Additional context This is useful for automated pipelines creating and deleting tunnels as part of CI/CD in service of developer testing.

sudarshan-reddy commented 1 year ago

I'll let @abelinkinbio track this.

abelinkinbio commented 1 year ago

This feature request makes sense. We'll look into it and keep you posted on any progress we make.

luqasn commented 1 year ago

Any news on this? This would be great to have, these DNS entries are really cluttering up our dns zone and it's not great to have to add another authentication mechanism and api interaction model into the pipeline just for removing the records.

neilborromeo commented 1 year ago

Any news on this?

shadowjig commented 1 year ago

I'm looking for this feature too.

smashah commented 4 months ago

Is this hard to implement?

remotemerge commented 2 months ago

There is an overwrite option available, which could be helpful.

cloudflared tunnel route dns --overwrite-dns <UUID or NAME> <hostname>

for example:

cloudflared tunnel route dns --overwrite-dns 2f089xdf-5x7b-4563-80xf-9b786xec2248 app.example.com
dattito commented 1 week ago

Any updates to this?