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

How to get the service's intercepts config via ztx(client edge)? #661

Closed
Alonza0314 opened this issue Jan 15, 2025 · 1 comment
Closed

Comments

@Alonza0314
Copy link

Hi Ziti Team,

I am currently developing my own client application using this golang sdk. After successfully enrolling an identity and creating a ziti.Context with the identity JSON, I encountered a challenge.

While I am able to retrieve the list of services using ztx.GetServices(), the service details only include the config IDs(like the image below). However, I need to access the full intercept configuration.

image

Based on the OpenZiti documentation, I see that the Management API can be used to retrieve config content. However, my application is designed to function similarly to the desktop-edge-win role, meaning I can only utilize the Client API.

Could you please advise if there is a way to retrieve the intercept configs directly via the Client API? Or is there another recommended approach for achieving this in a client-side application?

Thank you for your guidance!

@dovholuknf
Copy link
Member

Hi @Alonza0314. FYI, the official support forum for questions like this is over at https://openziti.discourse.group. it's better suited to provide support than a GitHub issue. Would you please continue any conversation there if needed? We get numerous GitHub notifications and we miss issues routinely, but we very rarely miss posts to the support forum. (And you can auth with GitHub)

When you request services, you should specify what config types you want to retrieve. The easiest solution is to use "all". You can change this to whichever config types you want though.

Something like this discourse post might help?
https://openziti.discourse.group/t/ziti-go-sdk-dialaddr-not-working/3351/3

I'm going to close this issue. If you need more help, would you post/repost over on discourse? Cheers

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