Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Traffic Ops client certificate authentication (#7392)
* initial client certificate auth code for login * Add intermediate cert for chain testing. Add LDAP check for UID parsed from cert * Add nil check for client TLS connection state * Update cdn.conf to include Root cert location. Remove test certs * Remove filesystem tests for root cert * Use long descriptive form in JSON for cdn.conf * Add checks for config values. Update example logic * Initial documentation commit instead of stash * Moved client.go and server.go to separate folders because they are both main functions * Add Apache license to example server+client * Remove commented code lines * Use JWT constanswconstants instead of string literals * Refactor so `goto` is unnecessary * Lowercase error messages * Use separte PKI directory for TO root certificates * Reject certs that are group or world-writable * Do not fully bail on unpocessable files * - Reject certificate subjects with multiple UIDs - Only fail when the UID is empty if no UID was found * Use %s for error in format string * Track github.com/apache/trafficcontrol/lib/go-rfc/ldap * Use %s for error type --------- Co-authored-by: Taylor Frey <[email protected]>
- Loading branch information