Update test setup to leverage legacy hash for API keys in order
to avoid the performance impact of bcrypt. Replace the API key
based test with a user subscription-based test to enhance
concurrency and reliability. Replace `OrganizationByAPIKey`
with `OrganizationsByUser` to optimize the retrieval process.
Remove bcrypt hashing for API keys to speed up concurrent tests and
replace it with a legacy hashing function. Reduce the number of
concurrent readers and writers in the test to improve performance
while retaining essential functionality checks. Use a more efficient
method to fetch organizations within the concurrency test block.
Updates the Node.js base image in the Dockerfile to the latest
24.11.1-alpine version for improved performance and security. This
change ensures the application runs on a stable and supported
version of Node.js.
Remove the deprecated annotation for ingress class and add
ingressClassName to align with current Kubernetes standards.
This ensures better compatibility and adherence to best practices.
Introduce `AddUserToOrganization`, `RemoveAPIKey`, and
`RemoveOrganization` commands to enhance organization
management. Implement validation for user addition and
API key removal. Update GraphQL schema to support new
mutations and add caching for the new events, ensuring
that organizations and their relationships are accurately
represented in the cache.
Adds unit tests for the `AddOrganization` and `AddAPIKey` commands.
These tests validate various scenarios, including success cases,
handling of already existing organizations or keys, and ensuring
required fields are checked. The
changes enhance test coverage and ensure robustness of the command
logic.
Decrease the number of goroutines in concurrent read and write tests to
minimize race conditions during testing. This ensures more reliable
test results and makes it easier to identify concurrency issues.
Introduce health checking functionality with liveness and readiness
endpoints to monitor the application's status. Implement a health
checker that verifies database connectivity and provides a simple
liveness check. Update service routing to use the new health
checker functionality. Add corresponding unit tests for validation.
Implement read-write mutex locks for cache functions to ensure
concurrency safety. Add debug logging for cache updates to enhance
traceability of operations. Optimize user addition logic to prevent
duplicates. Introduce a new test file for comprehensive cache
functionality testing, ensuring reliable behavior.
Adds a new hashed key storage mechanism for API keys in the cache.
Replaces direct mapping to API keys with composite keys based on
organizationId and name. Implements searching of API keys using
hash comparisons for improved security. Updates related tests to
ensure correct functionality and validate the hashing. Also,
adds support for a new dependency `golang.org/x/crypto`.