Infisical / infisical

♾ Infisical is the open-source secret management platform: Sync secrets across your team/infrastructure, prevent secret leaks, and manage internal PKI
https://infisical.com
Other
15.71k stars 981 forks source link

Free-Tier incorrect `environmentLimit` #2468

Open 94726 opened 2 months ago

94726 commented 2 months ago

Describe the bug

The environmentLimit for free-tier projects does not match with the limits stated in https://infisical.com/pricing.

To Reproduce

  1. Go to https://app.infisical.com/
  2. Create new free-tier project
  3. Delete one of the 3 default environments
  4. Try to add a new 3rd environment
  5. See error / upgrade to pro tier

Expected behavior

One should be able to use the 3 environments even after deleting one of the default 3.

Screenshots

video example

https://github.com/user-attachments/assets/01637d74-9852-4033-89f6-31814ceaa864

fetched plan body with environmentLimit of 2

image

Blackmamoth commented 3 weeks ago

Hey @maidul98 I took a look at the table schema - 'slug' is just a string field. If business logic allows marking dev/staging/prod as default envs (to leave environmentLimit unchanged on deleting this slugs or re-adding them after deletion), I'd like to work on this issue.