Tags: m-lab/locate
Tags
feat(auth): Add JWT authentication for heartbeat endpoints (#228) * Add JWT-protected heartbeat endpoint with organization validation * Fix JWT audience to match token-exchange service * Fix JWT claims extraction for ESP v1 (GAE Flex) * Use portable JWT parsing with go-jose library * Update heartbeat client to use JWT authentication * feat(auth): add JWT token refresh for heartbeat connections Implements automatic JWT token renewal before expiry to handle GAE's 1-hour connection limits. Includes comprehensive test coverage. * update comment * feat(auth): update handler to read ESPv1's custom header * add debug logging * fix(auth): parse claims as a JSON string * use base64.StdEncoding * restore expiry parsing from JWT * Make tests table-driven
Avoids a nil pointer dereference error in Geo() (#227) * Avoids a nil pointer dereference error in Geo() There was a case in staging where Locate was returning this for a host: "neubot-mlab4-syd04.mlab-staging.measurement-lab.org": { "Health": null, "Registration": null, "Prometheus": { "Health": false } }, ... this was causing a panic in Locate. This commit avoids this, and adds a new unit test to be sure it working as intended. * Fixes a few typos in a comment in Geo()
Avoids a nil pointer dereference error in Geo() (#227) * Avoids a nil pointer dereference error in Geo() There was a case in staging where Locate was returning this for a host: "neubot-mlab4-syd04.mlab-staging.measurement-lab.org": { "Health": null, "Registration": null, "Prometheus": { "Health": false } }, ... this was causing a panic in Locate. This commit avoids this, and adds a new unit test to be sure it working as intended. * Fixes a few typos in a comment in Geo()
PreviousNext