Dušan Borovčanin
61d0427898
NOISSUE - Rename to Magistrala ( #3427 )
...
Signed-off-by: dusan <borovcanindusan1@gmail.com >
2026-04-06 15:23:42 +02:00
Dušan Borovčanin
ef5c253c51
SMQ-3399 - Unify Magistrala and SuperMQ ( #3400 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
Signed-off-by: dusan <borovcanindusan1@gmail.com >
Co-authored-by: Steve Munene <stevenyaga2014@gmail.com >
2026-04-01 09:55:11 +02:00
Felix Gateru
bc7727c275
SMQ-3175 - Fix clearing domain metadata on domain name and tags update ( #3176 )
...
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-10-08 17:36:03 +02:00
Steve Munene
ae7c93020a
SMQ-3028 - Unify SMQ certs with Absmach Certs ( #3146 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2025-10-01 11:08:33 +02:00
Felix Gateru
b031dc08b8
NOISSUE - Group service middleware into single folder ( #2472 )
...
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-09-26 13:55:00 +02:00
Arvindh
e57ad79cd4
SMQ-3093 - User email verification ( #3101 )
...
Signed-off-by: Arvindh <arvindh91@gmail.com >
2025-09-05 15:23:58 +02:00
Dušan Borovčanin
a19cd9c97b
NOISSUE - Replace interface{} with any ( #3079 )
...
Signed-off-by: dusan <borovcanindusan1@gmail.com >
2025-08-25 18:06:41 +02:00
Steve Munene
8e70e1113e
SMQ-3201 - Replace Vault with openbao ( #3019 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2025-07-28 12:03:50 +02:00
Felix Gateru
1c0400d3a5
SMQ-2260 - Log full errors in logging middleware ( #3003 )
...
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-07-09 15:21:16 +02:00
Felix Gateru
7ecdd7ebe3
SMQ-2971 - Bump mockery version to 3.5.0 ( #2991 )
...
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-07-03 15:14:14 +02:00
Dušan Borovčanin
9a9e22fbce
SMQ-2869 - Switch to UTC time on backends ( #2870 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2025-05-15 12:01:34 +02:00
Sammy Kerata Oina
340098cec3
NOISSUE - Pass context on SDK to allow distributed tracing ( #2783 )
...
Signed-off-by: Sammy Oina <sammyoina@gmail.com >
2025-04-01 23:54:41 +02:00
Felix Gateru
6011cad546
NOISSUE - Update Mockery version and config ( #2784 )
...
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-04-01 20:56:07 +02:00
Dušan Borovčanin
e56b86823e
NOISSUE - Rename YAML files extension ( #2782 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2025-03-31 10:51:43 +02:00
Steve Munene
72c762f9cb
SMQ-2671 - Add request ID and use it to correlate traces, logs, and events ( #2709 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2025-02-19 13:42:06 +01:00
Felix Gateru
df5d752c4b
SMQ-2629 - Remove Boostrap and Provision services ( #2640 )
...
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-01-10 09:56:03 +01:00
Dušan Borovčanin
f0d014eba2
NOISSUE - Move API to the common package ( #2608 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-12-19 18:29:53 +01:00
Dušan Borovčanin
559e05f0f4
NOISSUE - Move SDK to pkg ( #2583 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-12-10 14:23:35 +01:00
Dušan Borovčanin
178aa46ad4
SMQ-2533 - Rename Magistrala to SuperMQ ( #2560 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-12-04 11:17:09 +01:00
Dušan Borovčanin
243ccade0b
MG-2456 - Refactor architecture ( #2494 )
...
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
Co-authored-by: Arvindh <30824765+arvindh123@users.noreply.github.com >
Co-authored-by: Felix Gateru <felix.gateru@gmail.com >
2024-12-03 17:12:46 +01:00
Nataly Musilah
0019f71b46
MG-2426 - Replace generic Clients in Users service ( #2436 )
...
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
Co-authored-by: Arvindh <arvindh91@gmail.com >
Co-authored-by: Felix Gateru <felix.gateru@gmail.com >
Co-authored-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-10-30 19:19:31 +01:00
Steve Munene
f88e11bdb2
NOISSUE - Remove domain from token ( #2468 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2024-10-25 14:41:51 +02:00
Steve Munene
ca8ed3b006
MG-2441 - Add domain ID to API ( #2442 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2024-10-23 21:40:13 +02:00
Dušan Borovčanin
eb881690c7
MG-2443 - Move Auth to the middleware ( #2444 )
...
Signed-off-by: 1998-felix <felix.gateru@gmail.com >
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
Signed-off-by: Arvindh <arvindh91@gmail.com >
Co-authored-by: Felix Gateru <felix.gateru@gmail.com >
Co-authored-by: Arvindh <arvindh91@gmail.com >
Co-authored-by: Arvindh <30824765+arvindh123@users.noreply.github.com >
2024-10-17 16:24:53 +02:00
Steve Munene
e5765c6a9b
MG-2359 - Replace Vault with Absmach certs ( #2425 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
Co-authored-by: b1ackd0t <28790446+rodneyosodo@users.noreply.github.com >
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@abstractmachines.fr >
2024-10-14 15:51:15 +02:00
Felix Gateru
48c4a7e7d4
MG-2264 - Split Auth Client into Separate Clients for AuthN/AuthZ and Policy CRUD ( #2392 )
...
Signed-off-by: 1998-felix <felix.gateru@gmail.com >
2024-09-03 16:50:28 +02:00
JMboya
6a41ea10a3
MG-2365 - Fix JaegerURL in readme.md and cmd/<svc>/main.go ( #2366 )
...
Signed-off-by: JeffMboya <jangina.mboya@gmail.com >
2024-08-02 16:28:26 +02:00
b1ackd0t
ee3716623c
MG-1557 - Export jaeger, metrics, postgres and apiutil packages ( #2262 )
...
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
Signed-off-by: rodneyosodo <blackd0t@protonmail.com >
2024-06-28 12:45:20 +02:00
Dušan Borovčanin
be9bc22df4
NOISSUE - Update CI tools ( #2314 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-06-25 13:45:11 +02:00
Dušan Borovčanin
6ea6d6756b
NOISSUE - Fix failed log message ( #2307 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-06-24 17:56:36 +02:00
Felix Gateru
20f8c084c1
MG-888 - Add Certs API tests ( #2265 )
...
Signed-off-by: 1998-felix <felix.gateru@gmail.com >
2024-06-12 09:40:21 +02:00
b1ackd0t
dba14f8c74
MG-2200 - Remove Unused Errors ( #2243 )
...
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2024-05-20 14:36:02 +02:00
Washington Kigani Kamadi
75db28c522
MG-2117 - Remove repository errors from API layer ( #2119 )
...
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
2024-05-10 15:09:21 +02:00
Steve Munene
8915b73953
MG-2173 - Generate mocks with mockery for Twins service ( #2174 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2024-04-23 14:18:42 +03:00
JMboya
3aa674fca0
MG-2137 - Generate mocks with mockery for Certs service ( #2138 )
...
Signed-off-by: JeffMboya <jangina.mboya@gmail.com >
2024-04-23 10:01:01 +03:00
b1ackd0t
c10c453eac
NOISSUE - Add property based testing to certs API ( #2096 )
...
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2024-04-12 17:40:46 +02:00
Dušan Borovčanin
658003080e
NOISSUE - Update Docker and Compose versions ( #2159 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-04-10 12:02:36 +02:00
Dušan Borovčanin
a39d46238b
NOISSUE - Fix links in README.md file ( #2129 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-04-03 11:55:06 +02:00
Arvindh
d716f3d02a
NOISSUE - Fix panic during revocation of expired certificate ( #2101 )
...
Signed-off-by: Arvindh <arvindh91@gmail.com >
2024-02-23 12:57:20 +01:00
Arvindh
5d0cb70df8
NOIISUE - Update Vault setup scripts to support Vault CLI ( #2091 )
...
Signed-off-by: Arvindh <arvindh91@gmail.com >
2024-02-22 10:09:50 +01:00
b1ackd0t
0ed79371a4
NOISSUE - Remove duplicate errors ( #2086 )
...
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2024-02-21 14:31:11 +01:00
Arvindh
ab4206cc93
NOISSUE - Vault operations with app role authentication ( #2084 )
...
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: arvindh123 <arvindh91@gmail.com >
2024-02-20 15:59:55 +01:00
Felix Gateru
7a93e6a893
NOISSUE - Improve tests in Auth service ( #262 )
...
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
2024-01-25 14:03:20 +01:00
Nataly Musilah
4a909a1ab2
MG-234 - Improve Logging Middleware ( #272 )
...
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
2024-01-24 18:04:29 +01:00
Dušan Borovčanin
79ef28a9ce
NOISSUE - Update dependencies ( #2061 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-01-23 13:09:07 +01:00
Nataly Musilah
8c084b177e
MG-234 - Improve Logging ( #255 )
...
Signed-off-by: Musilah <nataleigh.nk@gmail.co >
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
Co-authored-by: Musilah <nataleigh.nk@gmail.co >
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@abstractmachines.fr >
2024-01-18 15:28:04 +01:00
b1ackd0t
0016d67055
NOISSUE - Add Test for apiutil package ( #195 )
...
* Test for parsing and handling query parameters
The provided code includes test cases written that cover various scenarios for parsing and handling query parameters in HTTP requests.
These scenarios include valid and invalid queries, empty queries, and multiple queries with the same key.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* replace ReadUintQuery with ReadNumQuery
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2023-12-20 16:41:07 +01:00
b1ackd0t
da79c82208
NOISSUE - Generate Users repository mocks ( #160 )
...
* Generate users repository mocks
Add generation of users repository mocks for easier testing purposes
rather than writing the mocks
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* Change output dir for generated mocks
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2023-12-15 14:32:16 +01:00
b1ackd0t
aaf0756707
NOISSUE - Generate SDK Mocks ( #127 )
...
* fix(errors): Fix nil pointer error in NewSDKError
In the NewSDKError function, a check is added to handle the case where the input error is nil. Previously, if the error was nil, the function would panic. This fix ensures that the function returns nil instead of panicking when the input error is nil.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(sdk-mock): Add mock functions for SDK testing
This commit adds a set of mock functions for the software development kit (SDK) to facilitate testing. These functions simulate the behavior of the actual functions in the SDK and have defined input parameters and return values. The code also includes error handling logic and checks for different return types.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* test: use sdk mocked interface
* feat(workflow): check for generated files
The commit modifies the check-proto GitHub workflow to check-generated files. It checks for changes in specific paths and verifies the protobuf files and generated mocks. The code also includes checking if the SDK mock is up to date, installing a tool, generating mocks, and displaying an error message if the mocks are different. The tool we use is: https://github.com/vektra/mockery .
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(mocks): Add copyright notice to mocks.go
Added a copyright notice to the mocks.go file in the pkg/sdk/go directory for clarity and attribution.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(build): Add target for generating mocks
Added a new target to the Makefile for generating mocks using the mockery tool. The target checks if the mockery tool is installed and then runs the "go generate" command to generate mocks for the codebase..
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* Improve error messages in check-generated-files.yml
In this commit, I have made changes to the check-generated-files.yml file. Specifically, I have updated the error messages to provide more information about the issue. Instead of simply stating that the proto file and generated Go file are out of sync, the error message now includes a more detailed explanation and a suggestion for resolving the issue. Additionally, I have also added error messages for the generated mocks for the SDK. These error messages provide information about the sync issue and suggest running the necessary commands to resolve it. This commit aims to improve the clarity of error messages and help developers quickly identify and fix sync issues in the codebase.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2023-12-15 09:25:05 +01:00
Felix Gateru
4d038c633a
MG-31 - Fix pkg tests ( #123 )
...
* Fix pkg tests
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
* fix errors
* refactor groups tests
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
* Add opts to docker containers
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
* Fix pkg tests
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
* Remove unvailable publish test
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
* Remove unvailable publish test
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
* Cleaning up
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
* Cleaning up
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
---------
Signed-off-by: felix.gateru <felix.gateru@gmail.com >
2023-12-12 16:09:05 +01:00