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

refinements to ops verify-traffic to integrate and work with ziti edge login #2513

Merged
merged 5 commits into from
Oct 31, 2024

Conversation

dovholuknf
Copy link
Member

the existing ziti ops verify-traffic were not integrated with the ziti edge login functionality. Jens needs/wants an example of how to integrate better with ziti login but apparently we haven't done that yet when using the edge-apis library.

This should provide a mechanism to obtain a new management client from the edge-apis library while integrating with ziti edge login as well. This will allow not only for updb style login but also enables cert/key/file-based login:

ziti ops verify-traffic --cleanup --file testadmin.json

Using an identity file greatly simplifies the command and is more secure than shipping a user/pwd. example:
image

@dovholuknf dovholuknf requested review from a team as code owners October 31, 2024 11:56
@@ -91,7 +91,7 @@ type HybridStorage struct {
serviceUsers cmap.ConcurrentMap[string, *Client]

startOnce sync.Once
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is unused, should we just remove it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dunno. it's an @andrewpmartinez question. I just made the linter happy :) i was pointed it out to andrew...

@@ -48,7 +49,7 @@ type stringMapList []interface{}

type StringMap map[string]interface{}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add this, just to ignore it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meh - it was just a consistency thing... all the other commands pass these params so it was consistent. i had it with no params, but then verify-traffic needed in/out streams... so -- yeah that's 'why'

@dovholuknf dovholuknf merged commit 3a0fd6a into main Oct 31, 2024
53 checks passed
@dovholuknf dovholuknf deleted the ops-verify-login branch October 31, 2024 15:45
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

Successfully merging this pull request may close these issues.

2 participants