You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(pr2): trim cert renewal and JWT enrollment refactor
PR #1741 was reviewed as too large. Reduce its scope to A+B (refactor +
transparent routing) by backing out the cert-renewal additions (C) and
the JWT-based enrollment pivot (D). Both will be opened as their own
PRs against master.
Cert renewal (C) removed:
- Agent-side: drop the pre-loop expiry check, periodic cert_expiry_tick
in the main select! loop, ConnectionOutcome enum, and the
`is_cert_expiring` / `read_agent_name_from_cert` /
`generate_csr_from_existing_key` helpers from enrollment.rs.
- Gateway-side: drop the agent's ability to drive renewal; the
CertRenewal proto messages stay (they exist on master from #1738) and
the listener keeps the stub debug-and-drop arm. AGENT_CERT_VALIDITY_DAYS
reverts to 365.
JWT enrollment refactor (D) removed:
- Gateway: revert token.rs (TunnelEnroll only, no AgentEnroll/AgentRead),
extract.rs (no AgentManagement scope unions), and api/tunnel.rs to
master (EnrollmentTokenStore-backed enroll handler with
quic_endpoint in the response).
- Agent-tunnel crate: restore enrollment_store module + handle getter +
registration in bind().
- Agent CLI: revert main.rs and cli_tests.rs to before --advertise-domains
(config-side advertise_domains support stays, only the CLI flag goes).
Test JWTs go back to gateway.tunnel.enroll scope.
- NuGet: delete EnrollmentClaims.cs, drop GatewayAgentEnroll/Read from
AccessScope.cs, revert csproj version, drop the new
JsonSerializationTests cases.
0 commit comments