Membership call failed while creating project
Describe the bug
Creating a new project and checking the box "Add all members of my organization to this project" throws an error message because of uninitialized / pending users to this organization.
I've invited a colleague to my organization, but his invite is still pending. I've checked the box and got the following error message:
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "bad public key size"
}
This error message comes from the memberships call. In this payload you can see all current users of this organization. The problem is, that uninitialized / pending users are in this list too. I've watched the previous call users and because the user is not initialized, there isn't a public-key available for him. This results in in the error bad public key size (Screenshot below).
The project will indeed be created but with error messages and the creation flow won't be fulfilled correctly (e.g. mail sendout to invite members)
To Reproduce
Steps to reproduce the behavior:
- Create a new infisical instance and organization
- Invite one more user to the organization but DON'T accept the invite ("because you are in your holidays")
- Create a new project and check the "Add all members of my organization to this project" box
- See error messages
Expected behavior
Just add already verified / joined users to the organization and skip those ones with "pending" status
Screenshots
Platform you are having the issue on:
Linux / Kubernetes / Selfhosted