Skip to content

Conversation

@github-actions
Copy link
Contributor

Auto-generated prod update suggestion

neSpecc and others added 3 commits December 24, 2025 15:56
* update mongo driver

* fix tests

* fix integration tests, remove old billing

* Bump version up to 1.2.32

* lint

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* fix: model not supported region

* Bump version up to 1.2.32

* minor

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Peter <specc.dev@gmail.com>
* deps added, env updated

* bootstrap module

* models updated

* tests for model and factory method added

* rm redunant test cases

* Update .nvmrc

* Refactor SAML validation logic and add unit tests

Moved SAML audience, recipient, and time condition validation functions from SamlService to a new utils module for better separation of concerns. Added comprehensive unit tests for these utility functions and for SAML service logic. Improved test data isolation by introducing a unique test string generator. Updated existing user and usersFactory tests to use the new generator and ensure test isolation. Also, prevented MongoDB metrics setup in test environments.

* rm try-catch from tests

* Refactor SAML response validation to use node-saml

Replaces custom SAML assertion validation logic with @node-saml/node-saml for signature, audience, and time validation. Updates error handling to map node-saml errors to SamlValidationError types, adds fallback error type, and removes now-unnecessary utility functions and tests. Extends and improves test coverage for SAML response parsing, error cases, and attribute extraction.

* Implement SAML AuthnRequest generation and tests

Added logic to generate SAML AuthnRequest using node-saml, extract the request ID from the encoded request, and handle errors. Updated and expanded unit tests to cover successful generation, error cases, and correct invocation of SAML library methods.

* SamlStateStore implemetation

* Implement SAML SSO controller and tests

Added SAML SSO login and ACS endpoint logic to the controller, including user provisioning and session creation. Updated Jest config to use a dedicated test tsconfig. Added comprehensive tests for SAML controller behavior and created a test tsconfig.json.

* Add SSO config support with admin-only GraphQL directive

Introduces a new @definedOnlyForAdmins directive to restrict certain fields to workspace admins, returning null for non-admins. Adds SSO configuration types, inputs, and resolvers to the workspace schema, including the sso field and updateWorkspaceSso mutation, both protected for admin access. Updates schema wiring to register the new directive and its transformer.

* Add dynamic Node version and improve SAML SSO error handling

Dockerfiles and GitHub Actions workflow now use a dynamic Node.js version via build args, reading from .nvmrc for consistency. SAML SSO controller adds workspace ID validation, improved error handling, and clearer error responses for SSO initiation and ACS callback. Also documents REDIS_URL in environment types.

* Update build-and-push-docker-image.yml

* Update build-and-push-docker-image.yml

* Update mongodb.ts

* Update controller.test.ts

* Add public SSO workspace info query

Introduces the ssoWorkspace query to fetch public workspace info (id, name, image) for SSO login pages. Updates GraphQL type definitions with WorkspacePreview type and exposes ssoWorkspace query for unauthenticated access.

* Update workspace.js

* Enforce SSO login and refactor SSO config update

Added enforcement of SSO login for users in workspaces with enforced SSO. Refactored SSO configuration update logic by introducing setSsoConfig method in WorkspaceModel and updating resolver to use it, ensuring only SSO config is modified.

* add logs to the sso controller

* Shorten refresh token expiry for enforced SSO users

Refresh token lifetime is now 2 days instead of 30 for users in workspaces with enforced SSO. This change applies to both standard and SAML SSO flows to improve security by requiring more frequent re-authentication.

* Create sso.test.ts

* fixes for sso

* integration tests

* Bump version up to 1.2.33

* Update package.json

* lint

* fix tests

* Add pluggable SAML state store with Redis and memory support

Refactored SAML state management to support both Redis and in-memory stores via a new SamlStateStoreInterface. Added Redis-backed implementation for multi-instance deployments and a factory to select the store type based on the SAML_STORE_TYPE environment variable. Updated controller and router to use the new store abstraction, and extended environment and type definitions accordingly.

* fix unti tests

* fix integration tests

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@neSpecc neSpecc deleted the branch prod January 15, 2026 21:49
@neSpecc neSpecc closed this Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants