-
Notifications
You must be signed in to change notification settings - Fork 16
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
enroll segfault with external CA #680
Comments
❯ apport-unpack /var/crash/_opt_openziti_bin_ziti-edge-tunnel.1000.crash /tmp/crashpack
❯ gdb $(realpath $(which ziti-edge-tunnel)) -c /tmp/crashpack/CoreDump
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/openziti/bin/ziti-edge-tunnel...
[New LWP 841720]
[New LWP 841722]
[New LWP 841721]
[New LWP 841723]
[New LWP 841724]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `ziti-edge-tunnel enroll --cert /home/kbingham/.config/ziti/environments/pki/mag'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:74
74 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
[Current thread is 1 (Thread 0x7f95711eb740 (LWP 841720))]
(gdb) |
|
❯ ziti edge list cas 'name="kentest magenta CA"' -j | jq {
"data": [
{
"_links": {
"jwt": {
"href": "./cas/1Mh6VPNScwB6Adk8aKsS6N/jwt"
},
"self": {
"href": "./cas/1Mh6VPNScwB6Adk8aKsS6N"
}
},
"createdAt":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d63eea68a6",
"identityNameFormat": "[caName]-[commonName]",
"identityRoles": null,
"isAuthEnabled": true,
"isAutoCaEnrollmentEnabled": true,
"isOttCaEnrollmentEnabled": false,
"isVerified": true,
"name": "kentest magenta CA",
"verificationToken": "Jbc0GkWU0"
}
],
"meta": {
"filterableFields": [
"isVerified",
"isAutoCaEnrollmentEnabled",
"isOttCaEnrollmentEnabled",
"isAuthEnabled",
"createdAt",
"name",
"fingerprint",
"isSystem",
"verificationToken",
"id",
"updatedAt",
"tags"
],
"pagination": {
"limit": 10,
"offset": 0,
"totalCount": 1
}
}
} ❯ ziti edge list identities 'id="KwAfGkbB0"' -j | jq {
"data": [
{
"_links": {
"auth-policies": {
"href": "./auth-policies/default"
},
"authenticators": {
"href": "./identities/KwAfGkbB0/authenticators"
},
"edge-router-policies": {
"href": "./identities/KwAfGkbB0/edge-router-policies"
},
"edge-routers": {
"href": "./identities/KwAfGkbB0/edge-routers"
},
"enrollments": {
"href": "./identities/KwAfGkbB0/enrollments"
},
"failed-service-requests": {
"href": "./identities/KwAfGkbB0/failed-service-requests"
},
"posture-data": {
"href": "./identities/KwAfGkbB0/posture-data"
},
"self": {
"href": "./identities/KwAfGkbB0"
},
"service-configs": {
"href": "./identities/KwAfGkbB0/service-configs"
},
"service-policies": {
"href": "./identities/KwAfGkbB0/service-policies"
},
"services": {
"href": "./identities/KwAfGkbB0/services"
}
},
"createdAt": "2023-06-14T20:55:47.961Z",
"id": "KwAfGkbB0",
"tags": {},
"updatedAt": "2023-06-14T20:55:47.961Z",
"appData": {},
"authPolicy": {
"_links": {
"self": {
"href": "./auth-policies/default"
}
},
"entity": "auth-policies",
"id": "default",
"name": "Default"
},
"authPolicyId": "default",
"authenticators": {
"cert": {
"fingerprint": "4c9fe2db45b95aa064aa2c9c6cee5f2d5d84501e",
"id": "ldJZGkbU0"
}
},
"defaultHostingCost": 0,
"defaultHostingPrecedence": "default",
"disabled": false,
"enrollment": {},
"envInfo": {},
"externalId": null,
"hasApiSession": false,
"hasEdgeRouterConnection": false,
"isAdmin": false,
"isDefaultAdmin": false,
"isMfaEnabled": false,
"name": "kentest magenta CA-kentest-client0",
"roleAttributes": null,
"sdkInfo": {},
"serviceHostingCosts": {},
"serviceHostingPrecedences": {},
"type": {
"_links": {
"self": {
"href": "./identity-types/Device"
}
},
"entity": "identity-types",
"id": "Device",
"name": "Device"
},
"typeId": "Device"
}
],
"meta": {
"filterableFields": [
"createdAt",
"tags",
"type",
"authPolicyId",
"id",
"updatedAt",
"isSystem",
"roleAttributes",
"name",
"externalId",
"isAdmin",
"isDefaultAdmin"
],
"pagination": {
"limit": 10,
"offset": 0,
"totalCount": 1
}
}
} |
I confirmed the segfault recurs when the |
I didn't have any problem enrolling with a third client cert with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I added and verified a CA enabled for auto-enroll. I issued a client cert from the external CA that I'd verified. I downloaded the verified CA's JWT. I attempted to enroll with latest
ziti-edge-tunnel
. The controller is 0.28.0.After enroll the identity exists but the output file is empty.
Analysis of the reusable autoca token:
The text was updated successfully, but these errors were encountered: