Add organizations service bootstrap for selfhosted deployments#376
Merged
Conversation
The organizations service requires a seeded `orgs` table for the identity service prefetcher to list users. Without this, OrgService/List returns 0 orgs and the identity service reports "Prefetched 0 users/apps". This adds: 1. A bootstrap init container that runs `bootstrap-tenant organizations` after the migrate init container 2. bootStrapConfig in the organizations configMap with the org name from global.UNION_ORG Unlike the authorizer (which has automatic RunBootstrap in GrpcRegistrationHook), the organizations service requires the CLI command to be explicitly invoked. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Contributor
Current Aviator status
This PR was merged using Aviator (commit 53f8701).
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
mhotan
reviewed
May 7, 2026
| - name: bootstrap | ||
| args: | ||
| - cloudorganizations | ||
| - bootstrap-tenant |
Contributor
There was a problem hiding this comment.
I did not know this was a thing.
mhotan
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bootstrap-tenant organizationsafter DB migrationbootStrapConfigto organizations configMap usingglobal.UNION_ORGProblem
The organizations service requires a seeded
orgstable for the identity service prefetcher to list users. Without this bootstrap,OrgService/Listreturns 0 orgs and the identity service reports "Prefetched 0 users/apps" — users don't appear in the UI.Unlike the authorizer (which has automatic
RunBootstrapinGrpcRegistrationHook), the organizations service requires the CLI commandcloudorganizations bootstrap-tenant organizationsto be explicitly invoked.Test plan
make generate-expected && make testpasses🤖 Generated with Claude Code