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

implement tunnel enroll command #925

Merged
merged 1 commit into from
Aug 9, 2024
Merged

implement tunnel enroll command #925

merged 1 commit into from
Aug 9, 2024

Conversation

ekoby
Copy link
Member

@ekoby ekoby commented Aug 8, 2024

No description provided.

@ekoby ekoby requested a review from a team as a code owner August 8, 2024 20:32
@@ -626,6 +627,32 @@ static int process_cmd(const tunnel_command *cmd, command_cb cb, void *ctx) {
break;
}

case TunnelCommand_Enroll: {
Copy link
Member

Choose a reason for hiding this comment

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

This needs to work with ziti-edge-tunnel.c's TunnelCommand_AddIdentity. Is that coming?

Copy link
Member Author

Choose a reason for hiding this comment

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

This needs to work with ziti-edge-tunnel.c's TunnelCommand_AddIdentity. Is that coming?

no, this command does enrollment and returns ziti_config, AddIdentity makes assumptions on where/how config is stored (file system) which is not true for other consumers of tunneler SDK

ideally AddIdentity should be re-implemented as Enroll -> store -> LoadIdentity, but it is out of scope now

@ekoby ekoby merged commit a29e13b into main Aug 9, 2024
15 checks passed
@ekoby ekoby deleted the tunnel-enroll-cmd branch August 9, 2024 11:22
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.

3 participants