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

Getting Unauthorized for Existing tunnel. #64

Closed
drpdishant opened this issue Aug 3, 2022 · 2 comments
Closed

Getting Unauthorized for Existing tunnel. #64

drpdishant opened this issue Aug 3, 2022 · 2 comments

Comments

@drpdishant
Copy link

Can you please put some guidance regarding how to connect to an existing tunnel, managed with Zero Trust Dashboard.

For the credentials.json I am using the output of cloudflared tunnel token , also I tried using the tunnel secret from that file to authorize with the tunnel. According to the cloudflare document its the only way to get authentication details for existing tunnel.

@adyanth
Copy link
Owner

adyanth commented Aug 3, 2022

Hey @drpdishant connecting to an existing tunnel is possible by setting either the CLOUDFLARE_TUNNEL_CREDENTIAL_FILE or CLOUDFLARE_TUNNEL_CREDENTIAL_SECRET in the secret referred by tunnel.spec.cloudflare.secret.

If using CLOUDFLARE_TUNNEL_CREDENTIAL_FILE, the whole file content (base64 encoded for k8s secret) should be used. If using CLOUDFLARE_TUNNEL_CREDENTIAL_SECRET, set it to the (base64 encoded) TunnelSecret field from the credential.json file.

If the above does not work for regular (non managed) tunnels, please attach a log from the controller-manager and I will try to reproduce the same.

But, tunnels managed by the Zero Trust Dashboard have not been tested, and might not work.
It is in the roadmap to support managed tunnels by making use of the Cloudflare APIs for configuration. See #47 (comment)

@drpdishant
Copy link
Author

Got it

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