Commit Graph

41 Commits

Author SHA1 Message Date
Surya Prashanth
f35907b7a1 fix: refresh flags in monitor on workspace member sync (#2726) 2025-03-13 12:29:15 +05:30
Akshat Jain
573afc40e7 chore: fix caddy compose and monitor service (#2647)
* fix beat worker volume name

* add docker compose in monitor service

* removed `DEPLOY_PLATFORM` check condition from monitor service
2025-03-05 17:49:47 +05:30
Akshat Jain
91f2fbe8f9 chore: added Coolify as DEPLOY_PLATFORM in monitor service (#2645) 2025-03-05 14:02:48 +05:30
Akshat Jain
6adf38a6c6 infra: external deployments for commercial edition (#2523)
* restructured Proxy, Deploy/CLI-install contents

* removed caddy assets fron release

* fixed changes in variables.env

* fixed action

* test build

* testing release

* finalize the caddy changes

* renamed proxy-ee to proxy.

* chore: changed docker compose file swarm compatible

* fix: added port no in proxy configuration

* added Replica Envs for services

* compose file for coolify

* updated docker-compose

* fix changes

* updated docker-compose.yml

* updated monitor to handle COOLIFY

* updated deploy_platform value

* pulled latest preview

* updated variables env

* fix merge conflicts

* fix changes

* fix changes

* chore: coolify compose file

* chore: added github action to upload coolify compose file on s3

* fixed monitor build

* testing release build

* updated branch-build-ee

---------

Co-authored-by: Manish Gupta <manish@plane.so>
Co-authored-by: Manish Gupta <59428681+mguptahub@users.noreply.github.com>
2025-03-04 01:47:29 +05:30
Nikhil
213fd167f6 [WEB-3030] feat: business plan changes (#2395)
* chore: add business plan changes

* chore: monitor updates for business plan

* chore: license verification

* chore: add validation for license cancellation

* chore: proration preview endpoint

* chore:  add exception handling

* fix: license updates

* chore: add last payment failed date and count

* fix: invoice plan

* add current price amount

* feat: new add seats UI

* update price

* proration preview logic

* fix: invoicing endpoint

* add manage seats button to pro and bussiness card

---------

Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
2025-02-12 17:26:27 +05:30
Nikhil
d9887363b6 feat: business plan (#1890)
* chore: workspace license changes for  business plans

* chore: business plans

* chore: remove private key take from environment

* chore: updated the business sucess modal

* chore: business plan changes

* chore: add business plan seat addition

* chore: add license cancel endpoints

* chore: business plan changes

* chore: seat changes

* feat: enable 12-users restriction

* feat: enable workspace seats management for cloud

* chore: add business plan

* chore: add business plan changes

* feat: new paid plans modal

* fix: role misspell

* chore: new upgrade modal

* chore: disable workspace when free member count is exceeded

* fix: build errors

* chore: modal improvements

* chore: add required seats for all the link endpoints

* improvement: minor updates to upgrade modal

* chore: member seat validation

---------

Co-authored-by: gurusainath <gurusainath007@gmail.com>
Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
2024-12-17 17:51:53 +05:30
dependabot[bot]
d4c983e80c chore(deps): bump golang.org/x/crypto (#1911)
Bumps the go_modules group with 1 update in the /monitor/lib/feat_flag directory: [golang.org/x/crypto](https://github.com/golang/crypto).


Updates `golang.org/x/crypto` from 0.22.0 to 0.31.0
- [Commits](https://github.com/golang/crypto/compare/v0.22.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-12 12:55:23 +05:30
Nikhil
6b4a3bb485 chore: add app version for commercial edition instance register (#1879)
* chore: add app version for comercial edition instance register

* add: app version in the initialize instance endpoint
2024-12-05 15:16:48 +05:30
Nikhil
35cdf5f027 fix: monitor healthcheck to handle closed connections (#1805) 2024-11-21 18:29:02 +05:30
Henit Chobisa
fbaf5d34ec fix: private key parsing with PKCS1 (#1591) 2024-10-23 19:55:01 +05:30
Prateek Shourya
9ef5b73c81 [WEB-2524] feat: license sync and deactivation (#1245)
* feat: added manual sync handler for license refetch

* chore: add workspace license refresh endpoint

* chore: license sync request endpoint

* feat: added delink route inside monitor

* feat: added license delink route for delinking license

* chore: license delink endpoint

* feat: added delink route

* chore: license deactivation

* chore: license sync and deactivation for self managed users.

* chore: license sync and deactivation changes

* feat: handle case for free workspace

* chore: UI and UX updates.

* style: minor UI improvement.

---------

Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-10-03 17:28:18 +05:30
Manish Gupta
7dcefbd0c4 Create Build-Release action (#1160)
* Create Build-Release action

* added common action

* updated branch-build-ee

* fixed branch-build-ee

* fix action

* fix

* fix build

* action yaml fix

* fixes to monitor dockerfile for warnings

* updated releaser-ee

* added harbor push check in action

* fix: removing preview branch from ee workflow

---------

Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
2024-09-19 18:06:02 +05:30
Henit Chobisa
5903d2fe50 chore: removed user email from workspace member (#1159) 2024-09-17 20:22:50 +05:30
Henit Chobisa
974e854a8a fix: flags not loading because of missing licenses (#1156) 2024-09-17 17:19:58 +05:30
Henit Chobisa
8786675b3c feat: added prices and plans endpoint inside monitor, and prime ecosystem (#1146)
* feat: added endpoint for retrieving plans

* feat: added routes for retrieving and generating payment link

* chore: self-hosted upgrade.

* chore: self-hosted one upgrade.

* chore: product and payment link generation

* chore: count workspace members

* chore: activation modal.

* chore: self managed instance workspace upgrade modal.

* chore: billable members.

* chore: remove changelogs redirection from workspace pages header.

* chore: update seat count logic

* fix: exit process if monitor fails to decrypt feature flags

* chore: added docker compose rule to restart the monitor container for only 5 attempts

---------

Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-09-17 13:03:54 +05:30
Henit Chobisa
974231c9ac fix: forbid fetching flags for free workspaces (#1082) 2024-09-09 20:53:07 +05:30
Prateek Shourya
5c6d3fcd93 dev: feature flag OIDC SAML (#1079)
* chore: ff oidc saml init

* chore: admin feature flag endpoint

* [WEB-2413] chore: feature flag for admin app and OIDC SAML Auth validation.

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-09-09 17:55:27 +05:30
Henit Chobisa
49e8629fe2 fix: return error on failed to refresh feature flags (#1074) 2024-09-09 16:45:12 +05:30
Henit Chobisa
6dfa0198e4 fix: database locked when concurrently updating licenses (#1072) 2024-09-09 14:36:07 +05:30
Henit Chobisa
5ea4e4bf2a fix: deploy platform fix (#1058) 2024-09-06 16:09:44 +05:30
Nikhil
6040408d90 dev: primev2 (#1005)
* feat: added cron for updating feature flags on interval

* feat: added logic for updating seats in monitor

* feat: updated sync handler for using prime sync endpoint

* feat: added instance initialization on monitor boot

* chore: added new vars for monitor

* fix: license seats purchase validation flow

* dev: update invite return response

* remove: workspace license task to avoid creation of duplicate licenses

* dev: add more seats flow.

* fix: resync licenses

* chore: subscription portal endpoint

---------

Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
2024-09-02 15:28:43 +05:30
Henit Chobisa
b34dcdc11f fix: update license over syncing in monitor (#954) 2024-08-27 16:57:08 +05:30
Henit Chobisa
083d04f128 fix: one users need to be active for sync (#950)
* fix: one users need to be active for sync

* fix: added isolation for files for handlers

* fix: workspace offline activation for syncing users
2024-08-27 15:58:35 +05:30
Henit Chobisa
113b288f94 fix: model constraint for db (#948) 2024-08-27 14:16:48 +05:30
Henit Chobisa
3bc8a21690 feat: added constraints for db models in monitor (#946)
* feat: added constraints for db models in monitor

* feat: updated constraints
2024-08-27 13:49:28 +05:30
Henit Chobisa
d76a7c6236 fix: product check endpoint for license creation (#941) 2024-08-27 13:07:44 +05:30
Henit Chobisa
bebf00e601 feat: Added refresh worker job inside monitor for refreshing licenses (#937)
* dev: add instance validation endpoints

* feat: added startup refresh handler for getting new licenses

* feat: updated title

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-08-26 18:01:27 +05:30
Henit Chobisa
aec5646a48 fix: monitor build issues (#935) 2024-08-26 14:39:29 +05:30
Henit Chobisa
033f391d4e fix: private key parsing for monitor (#934)
* fix: throw error if private key is not parsable

* fix: printing private key

* fix: added print of private key in handler

* feat: optimized build for monitor

* feat: removed debug statements

* feat: added volume for compose
2024-08-26 14:33:17 +05:30
Henit Chobisa
24540ae34e fix: parsing of private key with base64 (#932) 2024-08-26 13:13:09 +05:30
Henit Chobisa
89019d8895 feat: added logs for debugging (#929) 2024-08-26 12:17:29 +05:30
Henit Chobisa
705d74b427 feat: added startup flag handler inside monitor (#927) 2024-08-23 21:23:51 +05:30
Nikhil
ebe6183f1a fix: monitor feature flagging (#926) 2024-08-23 20:56:17 +05:30
Henit Chobisa
3e9d9ef43c fixed monitor for CGO startup failure (#923)
* chore: current plan api and server base urls

* fix: monitor startup failure

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-08-23 18:57:19 +05:30
Henit Chobisa
7fa7dc223b fix: GitHub ci build for monitor (#919)
* fix: errors in github ci

* fix: added base 64 private key
2024-08-23 16:43:53 +05:30
Nikhil
4b31dd0c01 dev: new license activation workflow for one and pro users (#739)
* feat: added feature flag package for decrypting and refreshing the feature flags value

* feat: added feature flagging route for route handlers

* feat: added feature flag worker for managing and distributing feature flags

* feat: implemented feature flag api implementation inside ff handler

* feat: added exponential retry interval inside feature flagging

* fix: route pattern of feature flag endpoint from monitor

* feat: created endpoint to activate workspace from monitor

* feat: made changes to accomodate db and activate endpoint

* dev: update multi tenant environment settings

* dev: workspace license activation flow

* dev: update license activate endpoint

* dev: update workspace license activate endpoint

* feat: added feature flag user sync logic

* feat: added constants and sync logic with private key inside

* feat: added port as env variable

* feat: added modification for removing license key in healthcheck

* feat: example env pushed

* fix: update monitor endpoints and license activation function

* dev: initiate free workspace only for self hosted instances

* dev: self hosting license endpoint updates

* dev: remove monitor db

* dev: update handlers

* dev: self hosted license subscription web

* dev: removed computed in self hosted subscription

* fix: prime server url and delete old license while creating new license in sqlite

* chore: subscription activation alert after successfull activation.

* dev: update feature flag endpoints

* fix: handled several cases of feature flags

* fix: linting errors

* dev: update monitor to handle workspace activation

* dev: update decryption algorithm

* feat: separated activation payload with the sync payload

* dev: update feature flags endpoint

* dev: change type for workspace sync

* feat: added isActive flag for user activation

* feat: removed creation of free users in monitor

* feat: added method for workspace product

* dev: add user email in types

* feat: added method for workspace product

* fix: uer license feature flag fetch

* fix: handler fixed for feature key

* chore: self managed license activation

* chore: update validation license flow.

* chore: license activation success.

* dev: resync workspace license on activation

* chore: plane one success modal.

* feat: added constructs to inject private key build time

* feat: updated the docker file with private key build argument

* feat: added consumption od DEFAULT_PRIVATE_KEY when building monitor

* dev: update private key

---------

Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
Co-authored-by: gurusainath <gurusainath007@gmail.com>
Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
2024-08-22 17:39:19 +05:30
Henit Chobisa
b25c4d07cf fix: go mod error build resolved (#575) 2024-07-05 15:38:42 +05:30
dependabot[bot]
a05f1ca5bb chore(deps): bump github.com/gofiber/fiber/v2 in /monitor/lib/router (#541)
Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.52.4 to 2.52.5.
- [Release notes](https://github.com/gofiber/fiber/releases)
- [Commits](https://github.com/gofiber/fiber/compare/v2.52.4...v2.52.5)

---
updated-dependencies:
- dependency-name: github.com/gofiber/fiber/v2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-02 16:22:48 +05:30
Henit Chobisa
d70ccd9d5c feat: modified cron handler to get the accumilated result from the health check package (#483) 2024-06-25 14:33:43 +05:30
Henit Chobisa
e652592b07 feat: Added DNS Validation Endpoint to Monitor as an HTTP Endpoint (#471)
* feat: added worker for executing and scheduling parallel tasks

* feat: implemented worker based execution over cron handlers

* feat: added router to package to run go fiber for dns validation

* chore: added router package to go workspace

* feat: added dns route controller

* feat: added dns validation handler for route

* feat: added healthcheck as a core function

* feat: implemented worker for scheduling and running multiple tasks over goroutines

* feat: added cron and http start handlers

* feat: added prime scheduler handler to comply with prime scheduler

* feat: implemented worker in cli start command

* feat: added tests for dns validation handler

* feat: added run test script to run test inside monitor

* feat: added test for background worker

* feat: implemented graceful shutdown for cancellation of jobs

* feat: added readme for core package

* fix: worker cancellation of tasks with ctx

* fix: added closing channels in worker

* fix: handled case for repeated keys in dns validation endpoint
2024-06-24 13:09:05 +05:30
Henit Chobisa
a93467b95b feat: Added Prime Monitor Go Service for monitoring, health check and feature flagging (#411)
* feat: added build meta data to monitor

* feat: added versioning to prime-monitor

* feat: added logger package for prime-monitor

* feat: implemented logging in cmd

* feat: implemented moduled monorepo architecture

* feat: added cron package for healthcheck

* feat: added constants and modules for healthcheck

* feat: added environment service getter method

* feat: added environment service parser for parsing the recieved keys

* feat: added environment service provider method

* feat: added retry based executer for the test methods

* feat: added http health check method and placeholders for redis & pg

* feat: added tests for healthcheck methods

* feat: added PerformHealthCheck Controller Method for execution of healthcheck controller

* feat: added healthcheck test file for testing the healthcheck

* feat: added healthcheck to work file

* feat: added readme for healthcheck package

* feat: created healthcheck register for prime scheduler

* feat: added cron command for running cron subpart of monitor

* feat: added prime schedule handler for cron

* feat: added start command for starting up prime scheduler

* feat: added build utility files for monitor

* fix: goreleaser builds

* feat: removed Redis method from healthcheck methods

* feat: added docker file for building prime-monitor

* feat: added flag for adding healthcheck duration for cron start

* chore: removed redis as a healthcheck method

* chore: modified actions to build monitor on branch build and docker images

* feat: added monitor service in docker compose caddy

* feat: added description for HealthCheckJob

* fix: status code issue for reachable and non reachable

* feat: added api package for connecting with prime api

* feat: modified cmd package to report healthcheck status to prime

* feat: added api types inside prime-monitor

* feat: added message field for meta while status reporting

* fix: modified constants for environment variables

* feat: added monitor readme

* fix: build-branch monitor content shift to build-branch-ee

* chore: added build args on release

* feat: remove version meta data from cli

* fix: docker file changed to fix the build to default

* fix: removed build flags from github branch build

* fix: moved cron start to root level start cmd

* fix: passed the recieved machine signature to api headers

* feat: optimised docker build for monitor
2024-06-20 12:14:46 +05:30