Skip to content

[Bug] Self-hosted OSS invitations depend on active project and fail unless created from the default project #4061

@eduardofischer

Description

@eduardofischer

Describe the bug

In a self-hosted Agenta OSS deployment, organization invitations appear to depend on the project that is active at the time the invitation is created.

If the invite is created while a non-default project is selected, the invited user is unable to sign up / accept the invitation. In practice, invitations only seem to work when they are created from the default project.

This appears to happen because the invitation is created using the current project_id, but later validation/acceptance resolves the project from organization_id and uses the first/default project instead of the project originally used for the invite.

Setup

Self-hosted in Kubernetes using the Helm chart.

To Reproduce

  1. Run Agenta in a self-hosted OSS deployment.
  2. Create an organization with more than one project.
  3. Switch to a non-default project.
  4. Invite a new user to the organization/workspace.
  5. Open the invitation link and try to sign up / accept the invite with the invited email.
  6. Observe that signup or invite acceptance fails.
  7. Repeat the same process while the default project is selected.
  8. Observe that the invitation works from the default project.

Expected behavior

Invitations should be accepted successfully regardless of which project is active when the invitation is created. The invite flow should not depend on the currently selected project.

Screenshots

No response

Agenta SDK Version

v0.95.0

Agenta Image Tag

v0.95.0

Important Context

This was observed in a self-hosted OSS deployment.

Relevant behavior appears to be that invitation creation uses request.state.project_id, while the invite link includes that project_id, but invite validation/acceptance later resolves a project by organization_id and appears to use the first/default project instead of the project associated with the invitation. This leads to mismatches where invites created from non-default projects fail.

LinkedIn details

https://www.linkedin.com/in/edufischer/

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions