Skip to content

Add organizations service bootstrap for selfhosted deployments#376

Merged
aviator-app[bot] merged 1 commit into
mainfrom
monty/organizations-bootstrap
May 7, 2026
Merged

Add organizations service bootstrap for selfhosted deployments#376
aviator-app[bot] merged 1 commit into
mainfrom
monty/organizations-bootstrap

Conversation

@jmonty42
Copy link
Copy Markdown
Contributor

@jmonty42 jmonty42 commented May 7, 2026

Summary

  • Adds bootstrap init container to organizations service that runs bootstrap-tenant organizations after DB migration
  • Adds bootStrapConfig to organizations configMap using global.UNION_ORG

Problem

The organizations service requires a seeded orgs table for the identity service prefetcher to list users. Without this bootstrap, OrgService/List returns 0 orgs and the identity service reports "Prefetched 0 users/apps" — users don't appear in the UI.

Unlike the authorizer (which has automatic RunBootstrap in GrpcRegistrationHook), the organizations service requires the CLI command cloudorganizations bootstrap-tenant organizations to be explicitly invoked.

Test plan

  • make generate-expected && make test passes
  • Deploy to monty-selfhosted and verify orgs table is populated
  • Verify users appear in the UI after deployment

🤖 Generated with Claude Code

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]>
@aviator-app
Copy link
Copy Markdown
Contributor

aviator-app Bot commented May 7, 2026

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

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.

- name: bootstrap
args:
- cloudorganizations
- bootstrap-tenant
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not know this was a thing.

@aviator-app aviator-app Bot merged commit 53f8701 into main May 7, 2026
5 checks passed
@aviator-app aviator-app Bot deleted the monty/organizations-bootstrap branch May 7, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants