Commit Graph

276 Commits

Author SHA1 Message Date
leandrofars
9fef8849a1 feat: basic cwmp implementation 2024-04-24 14:06:56 -03:00
leandrofars
28a0e3e491 fix(adapter): usp handler online status | closes #248 2024-04-23 15:22:49 -03:00
leandrofars
03018af61e feat(acs): build and deployment 2024-04-22 13:23:44 -03:00
leandrofars
406d62550f feat: initial api for cwmp 2024-04-20 11:20:38 -03:00
leandrofars
5487ede44e feat: cwmp device status management 2024-04-18 19:48:49 -03:00
leandrofars
f596cf9e7b docs(adapter): readme update 2024-04-18 18:58:02 -03:00
leandrofars
63db492e4b feat: cwmp save basic device data 2024-04-18 18:56:46 -03:00
leandrofars
558088d74b feat: inital cwmp server 2024-04-18 17:00:48 -03:00
Leandro Antônio Farias Machado
a430857ce3
Merge pull request #243 from rogersacchelli/dev
Kubernetes Deployment
2024-04-17 12:41:15 -03:00
Roger Sacchelli
f39cd325b7 minor changes on Dockerfiles frontend 2024-04-16 23:06:08 -03:00
Roger Sacchelli
61f93f49e5 Kubernetes Deployment - WIP 2024-04-16 22:56:47 -03:00
Roger
b947d42ac2 Merge branch 'dev' of https://github.com/rogersacchelli/oktopus into dev
ok
2024-04-17 00:01:11 +00:00
Roger
be5a69f37c Config Map for HAProxy Ingress Controller 2024-04-16 23:59:55 +00:00
Leandro Antônio Farias Machado
22fe747f76
Merge pull request #240 from OktopUSP/dependabot/go_modules/backend/services/mtp/adapter/google.golang.org/protobuf-1.33.0
build(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /backend/services/mtp/adapter
2024-04-16 14:02:55 -03:00
Leandro Antônio Farias Machado
f8730905bd
Merge pull request #241 from OktopUSP/dependabot/go_modules/backend/services/controller/google.golang.org/protobuf-1.33.0
build(deps): bump google.golang.org/protobuf from 1.28.1 to 1.33.0 in /backend/services/controller
2024-04-16 14:02:47 -03:00
dependabot[bot]
16c6f8ed08
build(deps): bump google.golang.org/protobuf
Bumps google.golang.org/protobuf from 1.28.1 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 17:02:40 +00:00
dependabot[bot]
4e567988ac
build(deps): bump google.golang.org/protobuf
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 17:02:28 +00:00
dependabot[bot]
12b4b2fc04
build(deps): bump google.golang.org/protobuf in /backend/services/mtp/ws
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 17:02:08 +00:00
Leandro Antônio Farias Machado
546a1a2c38
Merge pull request #236 from OktopUSP/dependabot/npm_and_yarn/backend/services/utils/socketio/express-4.19.2
build(deps): bump express from 4.18.2 to 4.19.2 in /backend/services/utils/socketio
2024-04-16 14:01:37 -03:00
dependabot[bot]
bf9b564ffc
build(deps): bump express in /backend/services/utils/socketio
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-16 16:47:44 +00:00
leandrofars
57e14bf489 feat: websockets with tls 2024-04-16 13:46:57 -03:00
leandrofars
dce3ebd55b feat: mqtt with tls 2024-04-16 12:41:09 -03:00
leandrofars
f9428ae449 feat: dynamic credentials for usp controller 2024-04-15 19:46:37 -03:00
leandrofars
2d1a3157f6 feat(api): limit devices credentials access to admin user 2024-04-15 18:28:06 -03:00
leandrofars
73c4457284 feat: users crud | closes #65 2024-04-15 18:14:51 -03:00
leandrofars
2beda02ef6 docs: remove old commentary 2024-04-15 13:53:29 -03:00
leandrofars
decac33244 feat(api): stomp rtt 2024-04-14 13:15:26 -03:00
leandrofars
9ae5128800 fix: return general data info when a mtp is down 2024-04-13 15:30:45 -03:00
leandrofars
4047e1db0b feat: device auth as rbac via nats keyvalue store | closes #212 2024-04-12 19:26:48 -03:00
Roger Sacchelli
c7007538cf Dockerfile for mqtt fixed 2024-04-12 01:11:51 -03:00
Roger
2ae3286e87 Fix MQTT Workflow, mongodb operator user permissions 2024-04-12 03:47:00 +00:00
leandrofars
06a28f6b60 fix(ws): missing code because of gitignore | closes #206 2024-03-31 16:08:20 -03:00
leandrofars
8c7cb6d7e9 feat: deploy microservices via docker compose 2024-03-26 15:40:50 -03:00
leandrofars
b51614e5c8 feat: build system + docker compose for backend services 2024-03-25 23:54:26 -03:00
leandrofars
89fda0e188 feat: stomp mtp support 2024-03-23 16:06:56 -03:00
leandrofars
b146a6edfc feat: actual code migrated to nats 2024-03-23 09:41:53 -03:00
leandrofars
ca82895e20 feat(controller): device get database 2024-03-21 22:14:06 -03:00
leandrofars
60b2040b5a feat(controller): websockets communication 2024-03-21 21:05:16 -03:00
leandrofars
2a2f7ef405 feat(controller): initial communication with mtp as microservices 2024-03-20 22:36:06 -03:00
leandrofars
479198ead1 feat(adapter): listen for nats requests + small refacts 2024-03-19 23:37:35 -03:00
leandrofars
8b56913b07 chore: new folder structure 2024-03-17 22:47:10 -03:00
leandrofars
b434935941 feat: new software architecture 2024-03-17 22:45:33 -03:00
leandrofars
251a0b3f4e chore: remove compiled app 2024-03-12 12:07:17 -03:00
leandrofars
745e7d6658 fix(mqtt): ignored folders 2024-03-12 12:06:31 -03:00
leandrofars
1920b8b701 build: new build workflow with dokcer and makefile 2024-03-12 11:41:51 -03:00
leandrofars
bda64273c6 feat: websockets mtp migrate to microservices 2024-03-09 12:47:16 -03:00
leandrofars
be412cdaea feat: mqtt + nats communication with device status and info 2024-03-05 22:57:35 -03:00
leandrofars
9f05b8f364 refact(mqtt): code organization + own readme 2024-02-29 19:35:11 -03:00
leandrofars
73a9376a33 refact: change project folders name 2024-02-27 21:29:41 -03:00
leandrofars
ff3b808a46 chore(controller): increase jwt expiration time 2024-02-22 09:02:56 -03:00
leandrofars
f49fa5b3bf feat(controller): usp message via websockets 2024-02-19 22:28:29 -03:00
leandrofars
f4a8f42dbe fix(controller): db device operations consistency 2024-02-19 22:07:54 -03:00
leandrofars
921a869ca1 feat(controller): implement transactions in database 2024-02-18 12:08:26 -03:00
leandrofars
8d10205878 feat(controller): create index in database 2024-02-18 12:07:56 -03:00
leandrofars
34d75b65d7 feat(ws): tls server option 2024-02-17 11:16:17 -03:00
leandrofars
4c0da5ab71 feat(controller): connect to websockets via tls 2024-02-17 11:15:32 -03:00
leandrofars
7d1df69a69 feat(ws+controller): basic implementation 2024-02-10 10:04:31 -03:00
leandrofars
f31e5159c9 fix: disable multiple mtps block rule 2024-02-08 14:08:56 -03:00
leandrofars
bab2699f73 docs(controller): add todo statements 2024-02-06 00:19:41 -03:00
leandrofars
1203897646 chore(ws): add config lib depencies + env file 2024-02-06 00:19:05 -03:00
leandrofars
36a6cfc8d2 feat(ws): add gitignore 2024-02-06 00:18:32 -03:00
leandrofars
ef45c5cb0c feat(ws): adequate ws server to use dynamic config 2024-02-06 00:17:56 -03:00
leandrofars
9e549f722f feat(ws): config package to load env and flags 2024-02-06 00:16:35 -03:00
leandrofars
52ed7bfd8d feat(ws): controller endpoint with auth 2024-02-06 00:14:54 -03:00
leandrofars
c94ab348b5 feat: add ws mtp to main code + fix: done channel processes closing 2024-02-05 23:44:12 -03:00
leandrofars
577a50d68b refact: env file organization and comments 2024-02-05 23:42:45 -03:00
leandrofars
acc29c73f8 chore(ws): lib depencies 2024-02-05 23:42:21 -03:00
leandrofars
922de7e81f feat: initial ws client 2024-02-05 23:41:42 -03:00
leandrofars
d9560ec167 reaftor: mtp interface + mqtt disconnection log 2024-02-05 23:29:45 -03:00
leandrofars
ef34e499de feat(ws): create client messages segmentation 2024-02-04 22:56:48 -03:00
leandrofars
778e8f80d7 chore: remove deprecated code 2024-02-04 16:42:02 -03:00
leandrofars
2377b7d68d feeat(ws): establish communication with device 2024-02-04 16:38:36 -03:00
leandrofars
a60f0f0a28 feat: add usp webscokets header 2024-01-18 22:51:08 -03:00
leandrofars
46488fb3d5 chore(mochi): log websockets running info 2024-01-18 22:36:09 -03:00
leandrofars
48e03db960 initial websockets server 2024-01-16 23:45:56 -03:00
leandrofars
5fd6afc8fa chore(api): show online devices first 2024-01-11 19:19:35 -03:00
leandrofars
8f226d09a9 fix(api): device page number 2024-01-11 18:35:28 -03:00
leandrofars
64c256cadb Merge branch 'lost_commits' into dev 2024-01-11 18:11:26 -03:00
leandrofars
318720d9fa feat(controller): add details for devices list 2023-12-24 13:21:21 -03:00
leandrofars
3fa8315d62 fix(controller): list device by id 2023-12-24 11:19:53 -03:00
Leandro Antônio Farias Machado
db2678d8e8
Merge pull request #177 from OktopUSP/dependabot/npm_and_yarn/backend/services/socketio/koa/cors-5.0.0
chore(deps): bump @koa/cors from 4.0.0 to 5.0.0 in /backend/services/socketio
2023-12-23 13:00:50 -03:00
dependabot[bot]
921ae3ea31
chore(deps): bump @koa/cors in /backend/services/socketio
Bumps [@koa/cors](https://github.com/koajs/cors) from 4.0.0 to 5.0.0.
- [Changelog](https://github.com/koajs/cors/blob/master/History.md)
- [Commits](https://github.com/koajs/cors/compare/4.0.0...5.0.0)

---
updated-dependencies:
- dependency-name: "@koa/cors"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-23 15:59:56 +00:00
leandrofars
4b2dc84015 Merge branch 'dev' into dependabot/go_modules/backend/services/controller/golang.org/x/crypto-0.17.0 2023-12-23 12:59:07 -03:00
dependabot[bot]
c8e0b3ef00
chore(deps): bump golang.org/x/crypto in /backend/services/controller
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-23 14:59:51 +00:00
leandrofars
376de282f2 fix(security): jwt package 2023-12-23 11:23:20 -03:00
leandrofars
f96ff1d075 fix: info api dynamic broker connection 2023-12-13 09:03:12 -03:00
leandrofars
f26369c236 chore: remove trash log 2023-12-02 11:24:16 -03:00
leandrofars
08ef01bf1f feat(controller): list devices with pagination 2023-11-28 11:59:06 -03:00
leandrofars
8843cd9dab feat(api): dashboard and general info [ close #125 ] 2023-11-01 01:50:12 -03:00
leandrofars
2d9257f21c feat(api): mqtt conn info 2023-10-31 11:26:55 -03:00
leandrofars
e550ff37d1 chore(api): init device multiple mtp connection handlers 2023-10-28 17:18:23 -03:00
leandrofars
6ccd0aa0e8 feat(mtp): stomp server with custom usp spec 2023-10-28 16:00:27 -03:00
leandrofars
64f0d5a088 feat(mtp): stomp server 2023-10-27 01:47:53 -03:00
leandrofars
f6d53f8e73 feat(controller): connect to stomp server 2023-10-27 01:47:04 -03:00
leandrofars
c26cf8ebd0 refact(controller): api cors print info identation 2023-10-25 01:02:01 -03:00
leandrofars
fb25839045 refact(controller): mqtt client 2023-10-25 01:01:24 -03:00
leandrofars
4a5a72c1cc feat(api): firmware update 2023-10-23 23:43:59 -03:00
leandrofars
fa1af141e4 feat: http file server 2023-10-23 23:37:38 -03:00
leandrofars
2556eed53d feat(api): device command execute (operate msg) [ close #135 ] 2023-10-23 20:35:08 -03:00
leandrofars
a07082fb79 refact(api): controller clean code [ close #121 ] 2023-10-23 15:46:26 -03:00
leandrofars
a5592c4d3b fix(security): dependabot alert 2023-10-23 13:16:05 -03:00
leandrofars
1b4c09ae89 chore(socketio): add env file 2023-10-14 14:15:36 -03:00
leandrofars
b261cee228 feat(socketio): get cors allowed origins from env file 2023-10-13 20:29:08 -03:00
leandrofars
3c4829a355 fix(controller): env comment explation 2023-10-13 20:28:09 -03:00
leandrofars
bc3633e20b feat(controller): custom api cors trough env 2023-10-13 19:43:39 -03:00
Leandro Antônio Farias Machado
f866222b8d feat(api): new files organization + fix(api): map lock error 2023-09-04 01:28:16 -03:00
Leandro Antônio Farias Machado
274b0f51b8 feat(controller): get env vars form .env 2023-08-19 11:37:06 -03:00
Leandro Antônio Farias Machado
aab83ce587 feat: create admin if it doesn't exists 2023-07-31 11:07:53 -03:00
Leandro Antônio Farias Machado
fee4cf4690 chore: remove mosquitto useless folder 2023-07-29 10:36:36 -03:00
Leandro Antônio Farias Machado
51acf7569f refactor: mqtt broker mochi import packages + connack packet custom 2023-07-26 11:26:13 -03:00
Leandro Antônio Farias Machado
689e179f04 feat(api): wifi management through api resource 2023-07-03 23:32:45 -03:00
Leandro Antônio Farias Machado
b2c102fcf3 chore(device status): flow of messages and retention change 2023-07-03 20:11:51 -03:00
Leandro Antônio Farias Machado
9924ad50c6 chore(device status): change topic communication to allow retained messages 2023-07-02 15:57:13 -03:00
Leandro Antônio Farias Machado
5f64795225 chore(controller): remove commented code 2023-07-02 15:32:19 -03:00
Leandro Antônio Farias Machado
ca22a3edb0 chore(controller): automatic reconnection to broker 2023-07-02 15:26:12 -03:00
Leandro Antônio Farias Machado
3db57b2d9f chore(mochi): different log levels 2023-07-02 13:17:26 -03:00
Leandro Antônio Farias Machado
a3ef451e5d chore(mochi): device last Will message 2023-07-02 12:56:24 -03:00
Leandro Antônio Farias Machado
ef2c20848a fix(controller): increase api timeout (1) 2023-06-27 04:05:01 -03:00
Leandro Antônio Farias Machado
94b00ab945 chore(controller): increase api timeout 2023-06-27 03:56:03 -03:00
Leandro Antônio Farias Machado
b58b978b5f fix(controller): api request queue memory leak 2023-06-27 02:20:21 -03:00
Leandro Antônio Farias Machado
3c0a6f4a8c feat(mochi): connect to redis with password 2023-06-26 19:51:10 -03:00
Leandro Antônio Farias Machado
6932d6df92 fix(controller): geParameterInstances returning null 2023-06-24 11:32:49 -03:00
Leandro Antônio Farias Machado
1489573f89 chore: fix users returning password at api + GeSupportedDm null return 2023-06-24 11:13:18 -03:00
Leandro Antônio Farias Machado
9765b77e32 chore: remember to fix api methods 2023-06-24 10:02:43 -03:00
Leandro Antônio Farias Machado
13341f2291 feat(controller): GetParameterInstances + Firmware update 2023-06-24 08:57:46 -03:00
Leandro Antônio Farias Machado
e38a2cba9a chore(socketio): request to call another user 2023-06-22 10:58:26 -03:00
Leandro Antônio Farias Machado
4319b58321 chore(socektio): handles connections and disconnections situations 2023-06-22 10:42:42 -03:00
Leandro Antônio Farias Machado
526804c291 feat(socketio): get users online and offline (users status) 2023-06-18 22:25:16 -03:00
Leandro Antônio Farias Machado
b0e8794d94 feat(socketio): new server service structure 2023-06-17 14:18:51 -03:00
Leandro Antônio Farias Machado
8dae5960e7 feat(api): retrieve all users 2023-06-17 14:13:06 -03:00
Leandro Antônio Farias Machado
d4b6e6775a chore(controller): ignore tmp folder 2023-06-16 11:29:58 -03:00
Leandro Antônio Farias Machado
8e57b87378 feat(api): create users with different privileges 2023-06-16 11:28:33 -03:00
Leandro Antônio Farias Machado
57ebbc7c45 chore(controller): show alert on broker disconnection 2023-06-16 00:12:54 -03:00
Leandro Antônio Farias Machado
a0fef6c36e feat: initial socketio server 2023-06-16 00:12:22 -03:00
Leandro Antônio Farias Machado
9f7920b0e2 chore: websocket server (descontinued) - socketio version for golang is deprecated 2023-06-16 00:10:21 -03:00
Leandro Antônio Farias Machado
5da536ed96 feat(api): get supported parameters from device 2023-06-12 20:12:15 -03:00
Leandro Antônio Farias Machado
f9042ea2fc fix(mochi): run tls broker with and without tls simultaneously 2023-06-08 01:21:48 -03:00
Leandro Antônio Farias Machado
5a65fd9dff chore(nginx): create api specific route 2023-06-08 01:21:07 -03:00
Leandro Antônio Farias Machado
1138aaeb26 hotfix(mochi): servers id 2023-06-03 10:13:50 -03:00
Leandro Antônio Farias Machado
78ef20793c fix(mochi): broker to run with and without tls at the same time 2023-05-29 08:04:33 -03:00
Leandro Farias Machado
9f880ea8df Merge remote-tracking branch 'origin/main' 2023-05-28 19:24:03 -03:00
Leandro Farias Machado
bae078b734 feat(mochi): allows broker to run with and without tls at the same time 2023-05-28 19:22:44 -03:00
Leandro Farias Machado
976612057a chore(mqtt): enables mqtt connection over tls 2023-05-25 07:51:43 -03:00
Leandro Farias Machado
75603c6f6f chore(db): controller verifies connection with mongoDB 2023-05-25 07:49:21 -03:00
Leandro Antônio Farias Machado
9bf77a6a8e fix(tls/redis): tls keys misconception + redis condition 2023-05-18 01:10:16 -03:00
Leandro Antônio Farias Machado
307a9692fd chore(gitignore): mochi binary 2023-05-18 01:03:28 -03:00
Leandro Antônio Farias Machado
228fef7d21 chore(security): broker with tls config + cloud env 2023-05-17 23:23:44 -03:00
Leandro Antônio Farias Machado
0661b7cf21 chore(auth): increase jwt expiring time 2023-05-14 19:12:14 -03:00
Leandro Antônio Farias Machado
df51eefe02 chore(api): secret key encrypt + env variables 2023-05-14 10:25:06 -03:00
Leandro Antônio Farias Machado
7fb3f09570 chore(api): cors config dependencies 2023-05-13 12:47:34 -03:00