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
- Run Agenta in a self-hosted OSS deployment.
- Create an organization with more than one project.
- Switch to a non-default project.
- Invite a new user to the organization/workspace.
- Open the invitation link and try to sign up / accept the invite with the invited email.
- Observe that signup or invite acceptance fails.
- Repeat the same process while the default project is selected.
- 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/
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 fromorganization_idand 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
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 thatproject_id, but invite validation/acceptance later resolves a project byorganization_idand 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/