infisical icon indicating copy to clipboard operation
infisical copied to clipboard

Membership call failed while creating project

Open JonnyBDev opened this issue 1 year ago • 0 comments

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:

  1. Create a new infisical instance and organization
  2. Invite one more user to the organization but DON'T accept the invite ("because you are in your holidays")
  3. Create a new project and check the "Add all members of my organization to this project" box
  4. See error messages

Expected behavior

Just add already verified / joined users to the organization and skip those ones with "pending" status

Screenshots

image

Platform you are having the issue on:

Linux / Kubernetes / Selfhosted

JonnyBDev avatar Aug 13 '24 18:08 JonnyBDev