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

Konnect URL is invalid when passing --konnect-addr that doesn't contain api.konghq #1488

Open
1 task
healthy-pod opened this issue Jan 9, 2025 · 0 comments
Assignees

Comments

@healthy-pod
Copy link

healthy-pod commented Jan 9, 2025

Example:

deck gateway ping --konnect-addr="https://global.svc.konghq.tech/api" --konnect-token="token-value"
Error: authenticating with Konnect: making HTTP request: Get "https://global.api.konghqhttps//global.svc.konghq.tech/api/v2/organizations/me": dial tcp: lookup global.api.konghqhttps on 10.0.0.2:53: no such host

Notice the invalid URL value: https://global.api.konghqhttps//global.svc.konghq.tech/api/v2/organizations/me.

@johnharris85 dug and noticed that the function assumes the Konnect API URL is always going to include the string api.konghq and does string manipulation based on that [1].

Internal slack thread: https://kongstrong.slack.com/archives/C04349E4KRC/p1736367550831169

Acceptance Criteria

  • Replace https://(us|eu|au|in|me) with https://global rather than looking for api.konghq
@healthy-pod healthy-pod changed the title Konnect URL is invalid when passing --konnect-addr Konnect URL is invalid when passing --konnect-addr that doesn't contain api.konghq Jan 9, 2025
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