Skip to content

feat(runtime): expose data-plane endpoint identity - #34

Open
WenYuLuo wants to merge 1 commit into
inclusionAI:mainfrom
WenYuLuo:feat/data-plane-endpoint-identity
Open

feat(runtime): expose data-plane endpoint identity#34
WenYuLuo wants to merge 1 commit into
inclusionAI:mainfrom
WenYuLuo:feat/data-plane-endpoint-identity

Conversation

@WenYuLuo

Copy link
Copy Markdown
Contributor

Summary

  • extend StartResponse with committed port mappings, bridge IP, and endpoint generation;
  • allocate a non-zero generation whenever a network lease is assigned;
  • persist generation in the serialized network resource so recovery retains endpoint identity;
  • add protobuf contract and generation tests.

The endpoint identity is consumed by the YuanRong Rust Edge/Node data plane to reject stale routes after a sandbox network lease is rebuilt.

Validation

  • make check-protos PROTOBUF_BUILD_ARGS=--network=host
  • make check-fmt
  • GOFLAGS=-buildvcs=false make vet
  • GOFLAGS=-buildvcs=false make test
  • exercised by the cn-north-4 sandbox create/invoke/restore data-plane validation

Related YuanRong PR: https://gitcode.com/openeuler/yuanrong/merge_requests/1008

Extend StartResponse with committed port mappings, the real bridge address, and a non-zero endpoint generation. Persist generation in the serialized network lease so recovery retains endpoint identity while a newly allocated lease receives a fresh value.

Signed-off-by: robbluo <luo1442@gmail.com>
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