Skip to content

Refactor registry lifecycle, fix xDS snapshots, and make SPIRE optional - #34

Merged
bpalermo merged 1 commit into
mainfrom
feat/xds-spire-refactor
Mar 21, 2026
Merged

bpalermo merged 1 commit into
mainfrom
feat/xds-spire-refactor

Conversation

@bpalermo

@bpalermo bpalermo commented Mar 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Rename Registry.Start to Initialize and add Close to the interface for explicit lifecycle management outside the controller manager
  • Fix etcd client leak when connectivity check fails during initialization
  • Add --spire-enabled flag (default true) to allow running without SPIRE; nil-guard spireBridge calls in CNI server pod handlers
  • Remove Consistent() checks from partial listener/cluster snapshots that were incorrectly failing due to cross-resource references
  • Skip empty RouteConfiguration when no virtual hosts exist
  • Update all registry backends (DynamoDB, etcd, CloudMap, Kubernetes) to implement the new Initialize/Close interface

Test plan

  • All unit tests pass (bazel test //agent/... //registry/...)
  • CI passes (unit tests, integration tests)
  • Verify agent starts correctly with --spire-enabled=false

🤖 Generated with Claude Code

…PIRE optional

- Rename Registry.Start to Initialize and add Close to the interface
  for explicit lifecycle management outside the controller manager.
- Fix etcd client leak when connectivity check fails in Initialize.
- Close registry on agent shutdown via defer reg.Close().
- Add --spire-enabled flag (default true) to allow running without SPIRE;
  nil-guard spireBridge calls in CNI server pod handlers.
- Remove Consistent() checks from partial listener/cluster snapshots
  that were incorrectly failing due to cross-resource references.
- Skip empty RouteConfiguration when no virtual hosts exist.
- Update CloudMap and Kubernetes registry backends to implement the
  new Initialize/Close interface.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@bpalermo
bpalermo enabled auto-merge (squash) March 21, 2026 23:16
@bpalermo
bpalermo merged commit 87ee50e into main Mar 21, 2026
6 checks passed
@bpalermo
bpalermo deleted the feat/xds-spire-refactor branch March 21, 2026 23:17
bpalermo added a commit that referenced this pull request Oct 4, 2026
#1210)

Clears Dependabot alerts #32, #33 and #34 (website/requirements_lock.txt):
GHSA-8988-9cw3-xx77 (high), GHSA-vxq7-64xx-v4gw (high) and
GHSA-gh4c-6fx4-qh6g (moderate), all fixed in urllib3 2.8.0.

urllib3 is transitive via mkdocs-material -> requests and only reaches
//website:{build_site,mkdocs,site,site_test}; no go_binary or image does.
Floored in requirements.in, as #768 did for pymdown-extensions, so a lock
regeneration cannot drop the fix. The lock was regenerated with
`uv pip compile --upgrade-package urllib3`: urllib3 is the only package
that moved.


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant