Mauricio Siu
cfb9534e06
feat(tests): enhance mock database with web server settings for testing
...
- Added mock implementations for `webServerSettings` to support the `getWebServerSettings` function in tests.
- This update improves the test environment by simulating necessary database interactions for web server settings.
2026-02-04 23:28:51 -06:00
Mauricio Siu
8335f40238
feat(tests): add mock database setup for Vitest testing environment
...
- Introduced a new mock database setup file to simulate database interactions during tests.
- Updated Vitest configuration to include the mock setup file, enhancing test reliability and isolation.
2026-02-04 09:20:19 -06:00
Mauricio Siu
2b36381f8d
fix: update import path for getPublicIpWithFallback in enterprise utility
2026-02-04 08:51:18 -06:00
Mauricio Siu
a70018f70a
feat(auth): add enterprise feature flags to user context and request validation
...
- Updated user context to include `enableEnterpriseFeatures` and `isValidEnterpriseLicense` properties.
- Modified request validation to set these properties based on user data, enhancing enterprise feature management.
- Adjusted the enterprise procedure to check user flags directly from the context instead of querying the database.
2026-02-01 22:01:13 -06:00
Mauricio Siu
354407cd12
chore(license): comment out cloud environment redirection logic in license settings page for future consideration
2026-02-01 20:11:19 -06:00
Mauricio Siu
766fd00be5
Merge branch 'canary' into feat/introduce-license-key-pay
2026-02-01 19:59:28 -06:00
Mauricio Siu
aa558b3a8c
feat(sso): update SAML registration dialog and settings for improved metadata handling
...
- Added support for IdP metadata XML in the SAML registration dialog, allowing users to paste full metadata for configuration.
- Updated the callback URL and audience handling to dynamically incorporate the base URL.
- Refactored the SSO settings to enable SAML provider registration and improved the display of callback URLs based on provider details.
- Enhanced trusted origins configuration in the authentication logic to include additional domains for development and production environments.
2026-02-01 19:50:33 -06:00
Mauricio Siu
11082f25d7
feat(sso): enhance OIDC registration mapping for Azure and other providers
...
- Updated the mapping logic in `register-oidc-dialog` to differentiate between Azure and other identity providers.
- Simplified the mapping structure for user attributes based on the issuer, improving flexibility in handling various OIDC providers.
2026-02-01 00:35:42 -06:00
Mauricio Siu
00ce8cad1b
feat(license): enhance license key management and authorization checks
...
- Added authorization checks to ensure only users with the "owner" role can activate or deactivate license keys.
- Updated the menu item visibility logic to simplify role checks for admin and owner users.
- Commented out the cloud environment redirection logic in the license settings page for future consideration.
2026-01-31 18:03:03 -06:00
Mauricio Siu
dc756e2bbb
refactor(auth): rename forgetPassword to requestPasswordReset for clarity
...
- Updated the method name from `forgetPassword` to `requestPasswordReset` in the password reset flow to better reflect its functionality.
2026-01-31 17:07:06 -06:00
Mauricio Siu
69ba901535
feat(sso): update SSO provider registration to handle multiple domains
...
- Refactored `register-oidc-dialog` and `register-saml-dialog` to accept an array of domains instead of a single domain string.
- Enhanced server-side validation to check for duplicate domains across registered providers.
- Updated SSO schema to reflect the change from a single domain to an array of domains, including validation for domain format.
2026-01-31 13:17:24 -06:00
bdkopen
4667cb525f
chore: update next
2026-01-31 10:04:53 -05:00
Mauricio Siu
54229b0dcd
Merge branch 'canary' into feat/introduce-license-key-pay
2026-01-31 05:16:27 -06:00
Mauricio Siu
7665b38b79
feat(sso): refine provider query to include user ID for enhanced security
...
- Updated the `listProviders` query to filter SSO providers by both organization ID and user ID.
- Modified the provider validation logic to ensure that only relevant providers are returned for the authenticated user.
2026-01-31 04:46:57 -06:00
Mauricio Siu
d5de5b8ad7
feat(sso): implement SSO provider registration and update related components
...
- Refactored SSO registration logic in `register-oidc-dialog` and `register-saml-dialog` to use a new mutation method.
- Removed unused imports and error handling for registration failures.
- Added foreign key constraint for `organization_id` in the `sso_provider` table.
- Introduced new SSO schema and updated user relations to include SSO providers.
- Enhanced authentication flow to support SSO provider registration.
2026-01-31 04:43:47 -06:00
Mauricio Siu
fa201a5a96
Update package.json
2026-01-31 04:35:39 -06:00
Mauricio Siu
bc5c65b2d2
Merge branch 'canary' into feat/introduce-license-key-pay
2026-01-31 03:44:31 -06:00
Mauricio Siu
0575fabb0f
Merge branch 'canary' into copilot/fix-swarm-settings-test-commands
2026-01-31 03:19:29 -06:00
copilot-swe-agent[bot]
d3f0bf654b
Fix TypeScript type annotations in health check form
...
Co-authored-by: Siumauricio <47042324+Siumauricio@users.noreply.github.com >
2026-01-31 09:16:49 +00:00
copilot-swe-agent[bot]
9e8dacfe06
Fix health check form to properly sync test commands with form state
...
Co-authored-by: Siumauricio <47042324+Siumauricio@users.noreply.github.com >
2026-01-31 09:14:40 +00:00
Mauricio Siu
acb3c1d238
Add Sign-In Options for Cloud Users: Integrate GitHub and Google sign-in components into the registration page, allowing cloud users to register using these methods. Update UI to present alternative registration options, enhancing user experience.
2026-01-31 01:23:30 -06:00
Mauricio Siu
cae7a92599
Refactor SSO Registration Dialogs: Update RegisterOidcDialog and RegisterSamlDialog components to use field arrays for managing multiple domains and scopes. Enhance validation logic to ensure at least one domain is provided. Improve UI for adding and removing domains and scopes dynamically, streamlining the user experience in SSO configuration.
2026-01-31 00:55:09 -06:00
Mauricio Siu
f3d9960b7f
Implement SSO Sign-In Options: Add components for signing in with GitHub, Google, and SSO, enhancing user authentication methods. Update SSO settings to conditionally render based on enterprise features and improve the overall login experience on the homepage.
2026-01-30 22:28:17 -06:00
autofix-ci[bot]
1f33b0fd24
[autofix.ci] apply automated fixes
2026-01-31 02:35:36 +00:00
Mauricio Siu
3c2f675eb9
Enhance SSO Functionality: Add detailed view for SSO providers in SSOSettings, including OIDC and SAML configuration parsing. Implement loading states for SSO sign-in on the homepage and expose a public API for listing SSO providers. Update UI components for better user experience and maintainability.
2026-01-30 20:35:17 -06:00
autofix-ci[bot]
61f6bbfe1c
[autofix.ci] apply automated fixes
2026-01-31 02:34:32 +00:00
Vicens Juan Tomas Monserrat
8caae549b2
fix(swarm): resolve Save Placement button not working for Preferences
...
The button was unresponsive because the form's flat data structure
({ SpreadDescriptor }) didn't match the Zod schema's nested structure
({ Spread: { SpreadDescriptor } }), causing silent validation failure.
Updated schema to match form state and transform to nested structure
only when submitting to the API.
2026-01-30 11:48:34 +01:00
Mauricio Siu
30c3e44422
Refactor SSO Registration Dialogs: Remove onSuccess prop from RegisterOidcDialog and RegisterSamlDialog components, replacing it with a call to invalidate the list of SSO providers after successful registration. Update SSOSettings to reflect these changes, enhancing the overall state management and consistency across the dialogs.
2026-01-29 22:56:25 -06:00
Mauricio Siu
82c06a487a
Remove refresh-license-validity API endpoint and integrate enterprise backup cron job initialization: Deleted the cron endpoint for refreshing license validity and added the initialization of enterprise backup cron jobs in the server setup. Updated the enterprise cron job logic to filter users based on license key and enterprise feature status.
2026-01-29 22:42:59 -06:00
Mauricio Siu
12a87f9f8b
Enhance License Key Management and Enterprise Features: Update license key validation logic to ensure proper handling of enterprise licenses, including new cron job for refreshing license validity. Introduce new SQL migration for isValidEnterpriseLicense column and refactor related API procedures for better error handling and user feedback.
2026-01-29 22:37:10 -06:00
Mauricio Siu
9a8de9ae16
Add Enterprise Feature Gate Component: Introduce EnterpriseFeatureGate and EnterpriseFeatureLocked components to manage access to enterprise features based on license validation. Integrate the EnterpriseFeatureGate into the SSO settings page to conditionally render SSOSettings based on license status.
2026-01-29 22:16:23 -06:00
Mauricio Siu
6064b8ca48
Implement SAML Provider Registration and Enhance OIDC Dialog: Add a new SAML provider registration dialog with form validation using Zod, integrate it into the SSO settings page, and refactor the OIDC registration dialog to utilize React Hook Form for improved state management and validation.
2026-01-29 22:11:09 -06:00
Mauricio Siu
7f27601f7f
Implement Single Sign-On (SSO) Feature: Add SSO settings page, integrate OIDC provider registration dialog, and update dependencies for better-auth to version 1.4.18. Enhance user interface with new SSO menu item and improve database schema for SSO providers.
2026-01-29 22:01:48 -06:00
Mauricio Siu
2e7f4dc1a2
Refactor License Key Settings UI: Simplify conditional rendering for license key management, update contact link to the official site, and enhance user feedback with improved loading states for activation and validation processes.
2026-01-29 08:14:35 -06:00
Mauricio Siu
2b52332e43
Enhance License Key Management: Add loading state for license key validation, implement query to check for valid license keys, and improve UI feedback during license key checks.
2026-01-29 07:58:50 -06:00
Mauricio Siu
346216fc71
Add License Settings Page: Introduce a new License settings page with server-side validation and layout integration, and update the sidebar menu to include a link for accessing the License settings.
2026-01-28 23:35:25 -06:00
Mauricio Siu
c9ffb99808
Refactor license key deactivation process: update API to retrieve the current user's license key and improve error handling for user validation and missing license keys.
2026-01-28 23:32:04 -06:00
Mauricio Siu
cbfa690a80
Improve error handling in license key management: update error logging to provide more informative messages for validation, activation, and deactivation processes.
2026-01-28 23:30:48 -06:00
Mauricio Siu
262960a59a
Refactor license key management: remove legacy license key settings component, enhance license key validation and activation in the API, and implement new methods for activating and deactivating license keys.
2026-01-28 23:26:04 -06:00
Mauricio Siu
709ffddd4f
Update better-auth dependency to version 1.2.8 and enhance license key validation in the API to require at least one of enableEnterpriseFeatures or licenseKey.
2026-01-28 22:50:10 -06:00
Mauricio Siu
0c299a3807
Refactor license key management: update API calls to use licenseKey router and clean up organization router by removing enterprise settings methods
2026-01-28 22:39:35 -06:00
Mauricio Siu
25fa362cdb
Add enterprise features management: implement license key settings and update user schema
2026-01-28 22:34:17 -06:00
Mauricio Siu
f680818b56
Add enterprise features management: implement license key settings and update user schema
2026-01-28 11:03:00 -06:00
Mauricio Siu
cee1dc97ba
chore(traefik): update Traefik version to 3.6.7 in setup scripts
2026-01-28 00:16:06 -06:00
Mauricio Siu
6bc07d7675
feat(drop): add optional bitbucketRepositorySlug field to baseApp configuration in tests
2026-01-28 00:12:42 -06:00
autofix-ci[bot]
f72dfb3fc7
[autofix.ci] apply automated fixes
2026-01-28 06:10:38 +00:00
Mauricio Siu
27a0490536
feat(bitbucket): add optional slug field for repositories and update related logic
2026-01-28 00:09:56 -06:00
Mauricio Siu
5c89973cc2
Merge pull request #3385 from stripsior/chore/bump-postgres
...
chore(databases): bump default postgres version while creating to 18
2026-01-27 21:18:50 -06:00
Mauricio Siu
4e8cdfbc80
Merge pull request #3447 from pluisol/feature/pushover-notifications
...
feat: add Pushover notification provider
2026-01-27 21:16:36 -06:00
Mauricio Siu
060a053fdb
Merge pull request #3527 from p8008d/fix/profile-firstname-update
...
fix: profile firstName field not updating
2026-01-27 13:39:32 -06:00