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

Don't overwrite identity json when enrolling #533

Merged
merged 4 commits into from
Oct 20, 2022

Conversation

scareything
Copy link
Member

fixes #268
fixes #532
fixes #516

@scareything scareything requested a review from a team as a code owner October 19, 2022 18:30
@@ -2018,6 +2025,10 @@ static void enroll_cb(ziti_config *cfg, int status, char *err, void *ctx) {
}

static void enroll(int argc, char *argv[]) {
uv_loop_t *l = uv_loop_new();
Copy link
Member

Choose a reason for hiding this comment

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

process_tunnel_commands calls enroll_ziti_async which calls this function. is it appropriate to get the log level and log init here?

Copy link
Member

@dovholuknf dovholuknf Oct 20, 2022

Choose a reason for hiding this comment

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

also seems like enroll should take the loop as a param?

Copy link
Member

Choose a reason for hiding this comment

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

nevermind. it uses ziti_enroll instead. my bad! :) lgtm

@scareything scareything merged commit 04239ac into main Oct 20, 2022
@scareything scareything deleted the dont.overwrite.identity.json branch October 20, 2022 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants