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

add support for network enrollment token enrollment #765

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

ekoby
Copy link
Member

@ekoby ekoby commented Nov 7, 2024

  • simplify enrollment code memory usage
  • fix memory leaks

- simplify enrollment code memory usage
- fix memory leaks
@ekoby ekoby requested a review from a team as a code owner November 7, 2024 14:35
let calling code log errors if so desired
@ekoby ekoby added the minor bump minor version label Nov 7, 2024
.jwt_content = jwt,
.enroll_key = key,
.enroll_cert = cert,
.token = jwt,
Copy link
Member

Choose a reason for hiding this comment

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

why rename these and why would this only be a minor bump? shouldn't this be a major bump since the api is changing?

Copy link
Member Author

Choose a reason for hiding this comment

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

enroll_ prefix is redundant. it is minor to be consistent with how we always versioned things

if (url.query != NULL) {
// TODO magic URL
} else {
// controller URL must be verifiable with default/OS cert bundle
Copy link
Member

Choose a reason for hiding this comment

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

will there be a clear log message or error when trying to use network jwt without a verifiable os / cert bundle?

#define ZITI_ENROLL_H

#include <stdbool.h>
#include "ziti_model.h"
Copy link
Member

Choose a reason for hiding this comment

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

should this be "ziti/ziti_model.h"? "ziti-sdk-c/includes" is the only public include dir.

Copy link
Member Author

Choose a reason for hiding this comment

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

it should work "ziti_model.h" will also resolve against this file's dir

@@ -29,6 +29,7 @@
#include "ziti_model.h"
#include "enums.h"
#include "ziti_events.h"
#include "enroll.h"
Copy link
Member

Choose a reason for hiding this comment

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

"ziti/enroll.h"?

@ekoby ekoby merged commit c37d952 into main Nov 13, 2024
22 checks passed
@ekoby ekoby deleted the network-oidc-enrollment branch November 13, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor bump minor version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants