nickchomey
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
Thanks for your help!
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
Yes, that took me a while to figure out. Once I realized that, it made it all much easier. Though i then did a lot of unnecessary bash scripting to incorporate this all into a cross-os cli too, but its far easier to do it all with a remotely managed tunnel, api request to update the tunnel route and dns cnames.
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
oh god, im a fool. I filtered them earlier to focus on the tunnel stuff.
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
{newsubdomain}.{oneofmydomains.com}. No path. no settings. just https localhost:443
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
yes
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
very weird. I dont see anthing for dns_records
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
Anyway, its not a big deal. I can do separate api requests to modify Zone DNS. Its nice that the remotely managed endpoint doesnt require restarting the cloudflared service. And also has the web UI.
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
No, dev tools only shows a few GET requests to the tunnel config endpoint, and a single PUT request to it as well. Nothing to Zone DNS . it must handle the zone dns behind the scenes. it calls
https://dash.cloudflare.com/api/v4/accounts
rather than https://api.cloudflare.com/client/v4/accounts/
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
@Chaika I just created a remotely managed tunnel in the web UI and created a few routes. It does, indeed, seem very simple to add/remove routes in the json payload. However, I just did that from curl requests and while it successlly modifies the tunnel config, it isn't modifying the zone CNAMES. Does that only happen when you modify things via the zero trust web UI? If so, I suppose I need to make additional api calls to modify the cnames, just as I am already doing with locally-managed tunnels? This seems to be the case (and works when I do it). I just want to make sure that I'm not missing anything/not doing anything extra.
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
ok, thanks. I'll look into the json approach that you mentioned above!
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
well, make the remotely and locally managed tunnels use all of the same mechanisms, such that they are both just different client wrappers over the same thing. There's a lot of subtle differences
27 replies
CDCloudflare Developers
•Created by nickchomey on 9/19/2024 in #general-help
Is it possible to add routes to a Cloudflare Remotely-managed Tunnel via API calls?
Oof. Thanks very much for the quick answer! I'll take a look, but will probably stick with the locally managed method.
Are there any plans to unify them at all?
27 replies
CDCloudflare Developers
•Created by nickchomey on 6/19/2024 in #general-help
Multiple hostnames/domains with locally managed tunnels?
FYI, I just realized cloudflared is written in Go, which I'm starting to learn and work in anyway. So, I think I'm going to take a crack at fixing the
cloudflared tunnel route dns
mechanism, such that it doesnt create the CNAME as a subdomain of whatever zone was originally linked with the tunnel.
Or, at the very least, I'll try to identify where it is happening so I can provide a starting point in the GH Issue that I'll create44 replies
CDCloudflare Developers
•Created by nickchomey on 6/19/2024 in #general-help
Multiple hostnames/domains with locally managed tunnels?
Thanks very much for your help. When I get this working with DDEV, I know that a lot of people will find it to be enormously useful. And I assume it'll end up bringing customers to CF
44 replies
CDCloudflare Developers
•Created by nickchomey on 6/19/2024 in #general-help
Multiple hostnames/domains with locally managed tunnels?
Ok, it was both application error, and I forgot to update the CNAMEs for a new tunnel that I created. I think its working now
44 replies
CDCloudflare Developers
•Created by nickchomey on 6/19/2024 in #general-help
Multiple hostnames/domains with locally managed tunnels?
i'm debugging now
44 replies
CDCloudflare Developers
•Created by nickchomey on 6/19/2024 in #general-help
Multiple hostnames/domains with locally managed tunnels?
Actually, it might be an issue with my application
44 replies
CDCloudflare Developers
•Created by nickchomey on 6/19/2024 in #general-help
Multiple hostnames/domains with locally managed tunnels?
44 replies
CDCloudflare Developers
•Created by nickchomey on 6/19/2024 in #general-help
Multiple hostnames/domains with locally managed tunnels?
44 replies