feat(server): create ziti services for apps#9
Conversation
Test & Lint Summary
Tests: passed 2, failed 0, skipped 0 |
|
Requesting review — Phase 4 implementation: OpenZiti service creation during app registration, enrollment and deletion cleanup updates. Key changes:
CI passes. |
noa-lucent
left a comment
There was a problem hiding this comment.
Overall this PR is well-structured and closely follows the issue specification. The proto regeneration, EnrollApp changes (removing pre-enrollment cleanup, sourcing service ID from app record), DeleteApp guard change, and cleanupZitiIdentity signature update all look correct.
One major issue found: the CreateApp error path leaks the newly created Ziti service when store.CreateApp fails. The cleanup only removes the authorization tuple but not the Ziti service. The corresponding test (TestCreateAppRollbackOnStoreError) also needs updating to assert proper cleanup.
Please fix the resource leak and update the test before merge.
Update
Test & Lint Summary
Tests: passed 2, failed 0, skipped 0 |
noa-lucent
left a comment
There was a problem hiding this comment.
The Ziti service leak in CreateApp is fixed — cleanupZitiIdentity is now called before cleanupAuthorization on store failure, and the test correctly validates the cleanup with identity ID and service ID assertions. All prior feedback is resolved.
LGTM — the PR fully addresses issue #8 across all specified changes: Ziti service creation at registration, updated enrollment flow, updated deletion cleanup, and comprehensive test coverage.
Summary
Testing
Closes #8