Commit Graph

5 Commits

Author SHA1 Message Date
argoyle 862060875b test: add validation and event tests for organization and API key
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.
2025-11-21 12:49:23 +01:00
argoyle 4468903535 feat(cache): implement hashed API key storage and retrieval
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`.
2025-11-20 22:11:24 +01:00
argoyle 4b0319d164 chore(deps): bump gitlab.com/unboundsoftware/eventsourced/pg
Bumps [gitlab.com/unboundsoftware/eventsourced/pg](https://gitlab.com/unboundsoftware/eventsourced/pg) from 1.12.0 to 1.13.1.
- [Commits](https://gitlab.com/unboundsoftware/eventsourced/pg/compare/v1.12.0...v1.13.1)
2023-10-27 16:04:50 +02:00
argoyle 554a6c252f feat: organizations and API keys 2023-04-27 07:46:52 +02:00
argoyle a1b4d4fc27 feat: initial commit 2022-10-09 20:37:48 +02:00